symlinkat: Fix trailing slash handling.
[gnulib.git] / ChangeLog
blob2663445a73022c282c66d519f080ffe126a48c59
1 2021-01-04  Bruno Haible  <bruno@clisp.org>
3         symlinkat: Fix trailing slash handling.
4         * lib/symlinkat.c (rpl_symlinkat): Don't follow symlinks during the
5         trailing slash handling.
6         * modules/symlinkat (Depends-on): Update conditions.
8 2021-01-04  Bruno Haible  <bruno@clisp.org>
10         mkfifoat: Update module description.
11         * modules/mkfifoat (Depends-on): Update conditions after last commits.
13 2021-01-04  Bruno Haible  <bruno@clisp.org>
15         link: Improve trailing slash handling on native Windows.
16         * lib/link.c (link): If stat() fails, provide a better errno.
18 2021-01-04  Bruno Haible  <bruno@clisp.org>
20         mkfifoat: Work around trailing slash bug in mknodat() on AIX 7.2.
21         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Set also REPLACE_MKNODAT.
22         * lib/sys_stat.in.h (mknodat): Consider REPLACE_MKNODAT.
23         * lib/mknodat.c: Add an overriding implementation of mknodat().
24         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize REPLACE_MKNODAT.
25         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKNODAT.
26         * modules/mkfifoat (Depends-on, configure.ac): Consider REPLACE_MKNODAT.
27         * doc/posix-functions/mknodat.texi: Mention the AIX bug.
29         mkfifoat: Work around trailing slash bug in mkfifoat() on AIX 7.2.
30         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Add a test whether mkfifoat rejects
31         trailing slashes. Set REPLACE_MKFIFOAT if not.
32         * lib/sys_stat.in.h (mkfifoat): Consider REPLACE_MKFIFOAT.
33         * lib/mkfifoat.c: Add an overriding implementation of mkfifoat().
34         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
35         REPLACE_MKFIFOAT.
36         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKFIFOAT.
37         * modules/mkfifoat (Depends-on): Add fstatat.
38         (configure.ac): Consider REPLACE_MKFIFOAT.
39         * doc/posix-functions/mkfifoat.texi: Mention the AIX bug.
41 2021-01-04  Bruno Haible  <bruno@clisp.org>
43         libc-config: Avoid overriding the headers from an installed newer glibc.
44         Reported by Paul E Murphy <murphyp@linux.ibm.com> in
45         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00106.html>.
46         * lib/cdefs.h: Use a different include guard than glibc's <sys/cdefs.h>.
47         * lib/libc-config.h: Update accordingly.
49 2021-01-04  Simon Josefsson  <simon@josefsson.org>
51         maintainer-makefile: Invoke syntax-checks regardless of locale.
52         * top/maint.mk (syntax-check-rules): Invoke sed with LANG=C
53         environment because [a-z] may not include 'w' in all locales.
55 2021-01-04  Bruno Haible  <bruno@clisp.org>
57         nstrftime, time_rz: Avoid using an obsolete Autoconf macro.
58         Reported by Mike Gran <spk121@yahoo.com> in
59         <https://lists.gnu.org/archive/html/bug-gnulib/2021-01/msg00067.html>.
60         * lib/time-internal.h: Test HAVE_STRUCT_TM_TM_ZONE, not HAVE_TM_ZONE.
61         * lib/time_rz.c: Likewise.
62         * lib/nstrftime.c: Set and test HAVE_STRUCT_TM_TM_ZONE, not
63         HAVE_TM_ZONE.
64         * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Update comments.
66 2021-01-04  Bruno Haible  <bruno@clisp.org>
68         expm1f-ieee: Work around AIX 7.2 bug.
69         * m4/expm1f.m4 (gl_FUNC_EXPM1F): Initialize gl_expm1f_required. If
70         module 'expm1f-ieee' is in use, check whether expm1f works according to
71         IEEE.
72         * m4/expm1f-ieee.m4: New file.
73         * modules/expm1f-ieee (Files): Add it.
74         (Depends-on): Update conditions.
75         (configure.ac): Invoke gl_FUNC_EXPM1F_IEEE.
76         * doc/posix-functions/expm1f.texi: Mention the AIX bug.
78 2021-01-04  Bruno Haible  <bruno@clisp.org>
80         ffsl, ffsll: Work around AIX 7.2 problem.
81         * lib/string.in.h: On AIX, include <strings.h> for the declarations of
82         ffsl and ffsll.
83         * doc/glibc-functions/ffsl.texi: Document the AIX 7.2 problem.
84         * doc/glibc-functions/ffsll.texi: Likewise.
86 2021-01-04  Bruno Haible  <bruno@clisp.org>
88         ssfmalloc: Fix includes.
89         * lib/ssfmalloc.h: Include <strings.h>, for ffs().
90         * tests/test-ssfmalloc.c: Include <string.h>, for memset().
92 2021-01-03  Bruno Haible  <bruno@clisp.org>
94         quotearg tests: Avoid test failures on Solaris 11.3.
95         * tests/test-quotearg.sh: Copy the fr/ directory using 'cp -R', not
96         'cp -a'.
98 2021-01-03  Bruno Haible  <bruno@clisp.org>
100         tests: Fix link errors on Solaris, when libunistring-optional is in use.
101         * modules/wcwidth (Link): New section.
102         * modules/wcswidth (Link): New section.
103         * modules/mbchar (Link): New section.
104         * modules/mbfile (Link): Link against libunistring.
105         * modules/mbiter (Link): Likewise.
106         * modules/mbuiter (Link): Likewise.
107         * modules/mbmemcasecmp (Link): Likewise.
108         * modules/mbscasecmp (Link): Likewise.
109         * modules/mbscasestr (Link): Likewise.
110         * modules/mbschr (Link): Likewise.
111         * modules/mbscspn (Link): Likewise.
112         * modules/mbslen (Link): Likewise.
113         * modules/mbsncasecmp (Link): Likewise.
114         * modules/mbsnlen (Link): Likewise.
115         * modules/mbspbrk (Link): Likewise.
116         * modules/mbspcasecmp (Link): Likewise.
117         * modules/mbsrchr (Link): Likewise.
118         * modules/mbssep (Link): Likewise.
119         * modules/mbsspn (Link): Likewise.
120         * modules/mbsstr (Link): Likewise.
121         * modules/mbstok_r (Link): Likewise.
122         * modules/mbswidth (Link): Likewise.
123         * modules/exclude (Link): Likewise.
124         * modules/propername (Link): Likewise.
125         * modules/regex-quote (Link): Likewise.
126         * modules/trim (Link): Likewise.
127         * modules/mbmemcasecmp-tests (Makefile.am): Link the test program
128         against libunistring.
129         * modules/mbscasecmp-tests (Makefile.am): Likewise.
130         * modules/mbscasestr-tests (Makefile.am): Likewise.
131         * modules/mbschr-tests (Makefile.am): Likewise.
132         * modules/mbscspn-tests (Makefile.am): Likewise.
133         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
134         * modules/mbspbrk-tests (Makefile.am): Likewise.
135         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
136         * modules/mbsrchr-tests (Makefile.am): Likewise.
137         * modules/mbsspn-tests (Makefile.am): Likewise.
138         * modules/mbsstr-tests (Makefile.am): Likewise.
139         * modules/exclude-tests (Makefile.am): Likewise.
140         * modules/regex-quote-tests (Makefile.am): Likewise.
142 2021-01-03  Bruno Haible  <bruno@clisp.org>
144         c32ispunct tests: Avoid test failures on FreeBSD.
145         * tests/test-c32ispunct.c (main): On FreeBSD, disable tests that fail on
146         FreeBSD 12.1.1.
148 2021-01-04  Simon Josefsson  <simon@josefsson.org>
150         doc: Repeat warning that --with-tests cannot be used twice.
151         * doc/gnulib-tool.texi (Multiple instances): Remind reader of
152         --with-tests limitation.
154 2021-01-03  Bruno Haible  <bruno@clisp.org>
156         iconv, iconv_open: Improve documentation.
157         Reported by Noah Misch <noah@leadboat.com> in
158         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00172.html>.
159         * doc/posix-functions/iconv_open.texi: Add new paragraph "Portability
160         problems handled by Gnulib".
161         * doc/posix-functions/iconv.texi: Likewise. Update info about AIX.
162         * m4/iconv.m4 (AM_ICONV_LINK): Improve comments.
164 2021-01-03  Bruno Haible  <bruno@clisp.org>
166         iconv-h: Fix module description.
167         * modules/iconv-h (Include): Check HAVE_ICONV_H.
169 2021-01-03  Noah Misch  <noah@leadboat.com>
171         iconv_open: Fix module description.
172         * modules/iconv_open (Include): Check HAVE_ICONV, like modules/iconv.
174 2021-01-03  Bruno Haible  <bruno@clisp.org>
176         stddef: Override wrong max_align_t on AIX 7 with xlc in 64-bit mode.
177         * m4/stddef_h.m4 (gl_STDDEF_H): Make check for good max_align_t
178         stricter: Add tests for offsetof-based alignof.
179         * lib/stddef.in.h (max_align_t): Override on AIX in 64-bit mode.
180         * doc/posix-headers/stddef.texi: Document the AIX max_align_t bug.
182 2021-01-03  Bruno Haible  <bruno@clisp.org>
184         free-posix: Work around GCC mis-optimization bug.
185         Code by Bernhard Voelker <mail@bernhard-voelker.de>.
186         * lib/free.c (rpl_free): Add alternative complicated code for GCC.
188 2021-01-02  Bruno Haible  <bruno@clisp.org>
190         valgrind-tests: Disable valgrind if it would cause all tests to fail.
191         Suggested by Simon Josefsson <simon@josefsson.org> in
192         <https://lists.gnu.org/archive/html/help-gsasl/2021-01/msg00004.html>.
193         * m4/valgrind-tests.m4 (gl_VALGRIND_TESTS): Test $VALGRIND on an
194         executable produced by the current compiler. Set VALGRIND to empty if it
195         does not work. Don't set VALGRIND to empty if it merely does not accept
196         the --error-exitcode=1 --leak-check=full options.
198 2021-01-02  Bruno Haible  <bruno@clisp.org>
200         valgrind-tests: Really enable the valgrind options test.
201         * m4/valgrind-tests.m4 (gl_VALGRIND_TESTS): Don't assume that the
202         valgrind options --error-exitcode=1 --leak-check=full always work.
204 2021-01-02  Bruno Haible  <bruno@clisp.org>
206         utimensat: Fix test failures on macOS 10.13.
207         * lib/utimensat.c: Include <string.h>, <sys/stat.h>.
208         (rpl_utimensat): Check against invalid tv_nsec values. Before calling
209         utimensat, recognize a filename ending in a slash that does not point
210         to a directory.
212 2021-01-02  Bruno Haible  <bruno@clisp.org>
214         utimens: Fix test failure on macOS 10.13.
215         * lib/utimens.c: Include <string.h>.
217         utimens: Fix test failure on macOS 10.13.
218         * lib/utimens.c (fdutimens): Before calling utimensat, recognize a
219         filename ending in a slash that does not point to a directory.
221 2021-01-02  Bruno Haible  <bruno@clisp.org>
223         utimens: Avoid test failures on macOS 10.13.
224         Reported by Martin Storsjö <martin@martin.st> in
225         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
226         * tests/test-utimens-common.h (check_ctime): Define to -1 on macOS.
227         * tests/test-utimens.h (test_utimens): Don't expect a ctime change when
228         only the atime is requested to change.
229         * tests/test-futimens.h (test_futimens): Likewise.
230         * tests/test-lutimens.h (test_lutimens): Likewise.
232 2021-01-02  Bruno Haible  <bruno@clisp.org>
234         renameatu: Fix test failures on macOS.
235         Reported by Martin Storsjö <martin@martin.st> in
236         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
237         * lib/renameatu.c (renameatu): Don't call renameatx_np right away.
238         Instead, treat it as a variant of renameat, with all possible bugs that
239         renameat might have.
241 2021-01-02  Bruno Haible  <bruno@clisp.org>
243         getgroups test: Avoid warning with glibc >= 2.32 and gcc >= 10.
244         Reported by Bernhard Voelker <mail@bernhard-voelker.de> in
245         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00090.html>.
246         * tests/test-getgroups.c: Silence gcc warnings of type
247         -Wstringop-overflow.
249 2021-01-02  Bruno Haible  <bruno@clisp.org>
251         timespec_get: Add tests.
252         * tests/test-timespec_get.c: New file.
253         * modules/timespec_get-tests: New file.
255         timespec_get: New module.
256         * lib/time.in.h (timespec_get): New declaration.
257         * lib/timespec_get.c: New file.
258         * m4/timespec_get.m4: New file.
259         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
260         GNULIB_TIMESPEC_GET, HAVE_TIMESPEC_GET.
261         * modules/time (Makefile.am): Substitute GNULIB_TIMESPEC_GET,
262         HAVE_TIMESPEC_GET.
263         * modules/timespec_get: New file.
264         * tests/test-time-c++.cc (timespec_get): Check signature.
265         * doc/glibc-functions/timespec_get.texi: Mention the new module.
267 2021-01-01  Bruno Haible  <bruno@clisp.org>
269         time: Define TIME_UTC.
270         * lib/time.in.h (TIME_UTC, GNULIB_defined_TIME_UTC): New macros.
271         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Set TIME_H_DEFINES_TIME_UTC.
272         * modules/time (Makefile.am): Substitute TIME_H_DEFINES_TIME_UTC.
273         * tests/test-time.c: Check that TIME_UTC is defined and a positive
274         integer.
275         * doc/posix-headers/time.texi: Mention TIME_UTC.
277 2021-01-01  Bruno Haible  <bruno@clisp.org>
279         stddef: Try harder to get max_align_t defined on OpenBSD, part 2.
280         * modules/stddef (Depends-on): Add extensions.
282 2021-01-01  Paul Eggert  <eggert@cs.ucla.edu>
284         canonicalize: remove NARROW_ADDRESSES optimization
285         * lib/canonicalize-lgpl.c, lib/canonicalize.c (NARROW_ADDRESSES):
286         Remove, and remove all uses, as the optimization is arguably not
287         worth the extra complexity.  Suggested by Adhemerval Zanella in:
288         https://sourceware.org/pipermail/libc-alpha/2020-December/121203.html
290 2021-01-01  Bruno Haible  <bruno@clisp.org>
292         stddef: Try harder to get max_align_t defined on OpenBSD.
293         * m4/stddef_h.m4 (gl_STDDEF_H): Require gl_USE_SYSTEM_EXTENSIONS.
295 2021-01-01  Bruno Haible  <bruno@clisp.org>
297         aligned_alloc: Fix test failure on OpenBSD 6.8.
298         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): On OpenBSD, define
299         _ISOC11_SOURCE.
300         * m4/aligned_alloc.m4 (gl_FUNC_ALIGNED_ALLOC): Require it. Update
301         comment.
303 2021-01-01  Bruno Haible  <bruno@clisp.org>
305         posixtm tests: Disable part of the test on plaforms where it fails.
306         * tests/test-posixtm.c (T): Disable two tests on macOS as well.
308 2021-01-01  Bruno Haible  <bruno@clisp.org>
310         c32isgraph/c32isprint/c32ispunct tests: Avoid test failures on OmniOS.
311         * tests/test-c32isgraph.c (main): On Solaris, disable tests that fail on
312         Solaris 11 OmniOS.
313         * tests/test-c32isprint.c (main): Likewise.
314         * tests/test-c32ispunct.c (main): Likewise.
316 2021-01-01  Paul Eggert  <eggert@cs.ucla.edu>
318         libc-config: port to Sun C 5.9
319         * lib/libc-config.h (libc_hidden_proto): Omit ", ..." in macro
320         definition.  It’s not needed for Gnulib and elicits a diagnostic
321         from Sun C 5.9 Patch 124867-12 2009/11/22.
323 2021-01-01  Bruno Haible  <bruno@clisp.org>
325         quotearg tests: Avoid test failures on Solaris 11.
326         * modules/quotearg-tests (Makefile.am): Set host_os in
327         TESTS_ENVIRONMENT.
328         * tests/test-quotearg.sh: On Solaris 11 systems, make a copy of the fr/
329         directory that contains the .mo file.
331 2021-01-01  Bruno Haible  <bruno@clisp.org>
333         maint: Update copyright notices in --version output.
334         List the most recent year in which changes were made, per
335         <https://www.gnu.org/prep/standards/html_node/_002d_002dversion.html>.
336         * build-aux/declared.sh (func_version): Say 2019.
337         * build-aux/libtool-next-version (func_version): Likewise.
338         * build-aux/run-test (func_version): Likewise.
339         * check-module (COPYRIGHT_NOTICE): Say 2012.
340         * lib/git-merge-changelog.c (main): Say 2020.
342 2020-12-31  Paul Eggert  <eggert@cs.ucla.edu>
344         filename: change filename.h comment to LGPLv2.1+
345         * lib/filename.h: Change license notice to match what should be in
346         glibc, and what modules/filename specifies.  This is to simplify
347         syncing with glibc.
349         doc: mention year-0 bugs in Solaris etc.
350         * doc/posix-functions/gmtime.texi, doc/posix-functions/gmtime_r.texi:
351         * doc/posix-functions/localtime.texi:
352         * doc/posix-functions/localtime_r.texi:
353         * doc/posix-functions/mktime.texi:
354         Mention year-0 bugs in localtime etc.
356 2020-12-31  Bruno Haible  <bruno@clisp.org>
358         ptsname_r: Fix test failure on Solaris.
359         * lib/ptsname_r.c (__ptsname_r) [__sun]: Don't test the major number of
360         the device.
362 2020-12-31  Bruno Haible  <bruno@clisp.org>
364         posixtm tests: Disable part of the test on plaforms where it fails.
365         * tests/test-posixtm.c (T): Disable two tests on Solaris.
367 2020-12-31  Bruno Haible  <bruno@clisp.org>
369         poll tests: Avoid test failure on AIX.
370         * tests/test-poll.c (test_pipe): Disable the "expecting POLLHUP after
371         shutdown" test on AIX.
372         * doc/posix-functions/poll.texi: Mention the AIX bug.
374 2020-12-31  Bruno Haible  <bruno@clisp.org>
376         poll tests: Avoid test failure on BSD and Solaris systems.
377         * tests/test-poll.c (test_accept_first, test_socket_pair): Disable the
378         "expecting POLLHUP after shutdown" test on all platforms except Linux.
380 2020-12-31  Paul Eggert  <eggert@cs.ucla.edu>
382         fnmatch: merge from glibc + proposal
383         This merges the change proposed by Adhemerval Zanella in:
384         https://sourceware.org/pipermail/libc-alpha/2020-December/121212.html
385         which fixes a Gnulib bug that led to a failed assert.
386         * lib/fnmatch_loop.c (EXT): Use signed level, not unsigned, and
387         check that it stays nonnegative.  Use __flexarr instead of
388         FLEXIBLE_ARRAY_MEMBER, to port better to glibc.
389         * tests/test-fnmatch.c (main): New test cases, taken from glibc.
391         glob: merge proposed glibc changes
392         This merges the change proposed by Adhemerval Zanella in:
393         https://sourceware.org/pipermail/libc-alpha/2020-December/121211.html
394         * lib/glob.c (__lstat64, __stat64) [_LIBC]: Remove.
396 2020-12-31  Bruno Haible  <bruno@clisp.org>
398         memalign: Work around Solaris bug.
399         * lib/memalign.c: New file.
400         * m4/memalign.m4: New file.
401         * modules/memalign (Files): Add them.
402         (Depends-on): Add malloc-h.
403         (configure.ac): Invoke gl_FUNC_MEMALIGN. Conditionally compile
404         memalign.c. Set module indicator.
405         (Include): Include <malloc.h> unconditionally.
406         * doc/glibc-functions/memalign.texi: Mention the Solaris issues.
408         malloc-h: Add tests.
409         * tests/test-malloc-h.c: New file.
410         * modules/malloc-h-tests: New file.
411         * tests/test-malloc-h-c++.cc: New file.
412         * modules/malloc-h-c++-tests: New file.
414         malloc-h: New module.
415         * lib/malloc.in.h: New file.
416         * m4/malloc_h.m4: New file.
417         * modules/malloc-h: New file.
418         * doc/glibc-headers/malloc.texi: New file.
419         * doc/gnulib.texi (Glibc Header File Substitutes): Include it.
421 2020-12-31  Bruno Haible  <bruno@clisp.org>
423         unistd: Fix portability warnings.
424         * lib/unistd.in.h (fchownat, unlinkat): Fix module name in warning.
426 2020-12-31  Bruno Haible  <bruno@clisp.org>
428         utime: Fix compilation error on macOS and Solaris 9 (regr. 2020-12-24).
429         Reported by Tom G. Christensen <tgc@jupiterrise.com> in
430         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00295.html>.
431         * lib/utime.c: Include <errno.h>.
433 2020-12-30  Karl Berry  <karl@freefriends.org>
435         config: srclistvars doc.
436         * config/srclistvars.sh: doc a couple of unusual source repo urls.
438 2020-12-30  Bruno Haible  <bruno@clisp.org>
440         getlogin tests, getlogin_r tests: Avoid failure on Solaris OpenIndiana.
441         * tests/test-getlogin.c (main): Don't fail if getlogin() returns NULL
442         with no errno.
443         * tests/test-getlogin_r.c (main): Don't fail if getlogin_r() returns
444         EINVAL.
446 2020-12-29  Jim Meyering  <meyering@fb.com>
448         regex-tests: tweak to avoid a clang-10 warning
449         * tests/test-regex.c: Compare with explicit zero, rather than
450         as boolean to avoid this from clang-10:
451         test-regex.c:315:9: error: converting the result of '<<' to a \
452           boolean always evaluates to true \
453           [-Werror,-Wtautological-constant-compare]
454         if (! REG_STARTEND)
456         hash: add casts-to-float to avoid clang-10 warnings
457         * lib/hash.c (compute_bucket_size): Cast SIZE_MAX to float
458         to avoid this warning from clang-10 (for use in grep):
459           hash.c:501:11: error: implicit conversion from 'unsigned long' \
460             to 'float' changes value from 18446744073709551615 to \
461             18446744073709551616 [-Werror,-Wimplicit-int-float-conversion]
462           if (SIZE_MAX <= new_candidate)
463         (hash_insert_if_absent): Likewise.
465 2020-12-29  Paul Eggert  <eggert@cs.ucla.edu>
467         canonicalize: fix size overflow treatment
468         This also has some minor cleanups.
469         * lib/canonicalize-lgpl.c, lib/canonicalize.c: No need to include
470         stddef.h, since the code no longer refers directly to ptrdiff_t.
471         * lib/canonicalize-lgpl.c (realpath_stk):
472         * lib/canonicalize.c (canonicalize_filename_mode_stk):
473         Treat size overflow like other out-of-memory.
474         * lib/canonicalize.c: No need to include stdlib.h, since
475         the code no longer refers to stdlib.h functions (other
476         than those that canonicalize.h must declare).
477         * lib/canonicalize.c (canonicalize_filename_mode_stk):
478         Do not bother terminating the string result on error.
480 2020-12-29  Bruno Haible  <bruno@clisp.org>
482         list-c++, [o]map-c++, [o]set-c++: Fix conflict with 'free-posix' module.
483         * lib/gl_list.hh: Include <stdlib.h>.
484         * lib/gl_map.hh: Likewise.
485         * lib/gl_omap.hh: Likewise.
486         * lib/gl_set.hh: Likewise.
487         * lib/gl_oset.hh: Likewise.
489 2020-12-29  Paul Eggert  <eggert@cs.ucla.edu>
491         canonicalize: fix ptrdiff_t overflow bug
492         Problem reported by Adhemerval Zanella in:
493         https://sourceware.org/pipermail/libc-alpha/2020-December/121182.html
494         * lib/canonicalize-lgpl.c, lib/canonicalize.c:
495         Include intprops.h.
496         (NARROW_ADDRESSES): New constant.
497         * lib/canonicalize-lgpl.c (realpath_stk):m
498         * lib/canonicalize.c (canonicalize_filename_mode_stk):
499         Work even if strlen (END) does not fit in idx_t, or if adding
500         N to it overflows.
501         * modules/canonicalize, modules/canonicalize-lgpl (Depends-on):
502         Add intprops.
504 2020-12-28  Bruno Haible  <bruno@clisp.org>
506         havelib: Fix for Solaris 11 OpenIndiana and Solaris 11 OmniOS.
507         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): In
508         acl_is_expected_elfclass, use 'expr', not 'test'.
510 2020-12-28  Bruno Haible  <bruno@clisp.org>
512         ptsname_r: Fix a compiler warning on Solaris.
513         * lib/ptsname_r.c (__ptsname_r): Reduce the scope of variable 'err'.
515 2020-12-28  Bruno Haible  <bruno@clisp.org>
517         gnulib-tool: Fix logic whether to add a dummy.c.
518         * gnulib-tool (func_remove_if_blocks): New function.
519         (func_modules_add_dummy): Use it to eliminate all conditional statements
520         from the automake snippet.
522 2020-12-28  Paul Eggert  <eggert@cs.ucla.edu>
524         faccessat: revert recent EOVERFLOW change
525         I misunderstood the glibc source code.  Deduced from
526         Adhemerval Zanella’s proposed glibc patch in:
527         https://sourceware.org/pipermail/libc-alpha/2020-December/121131.html
528         * doc/posix-functions/faccessat.texi: It is not a problem.
529         * lib/canonicalize-lgpl.c, lib/canonicalize.c, lib/faccessat.c:
530         (FACCESSAT_NEVER_OVERFLOWS): Remove. All uses removed.
531         * lib/faccessat.c: Revert to simpler version now that
532         LSTAT_FOLLOWS_SLASHED_SYMLINK must be false.
533         * m4/faccessat.m4 (gl_FUNC_FACCESSAT_EOVERFLOW):
534         Remove.  All uses removed.
535         * modules/canonicalize, modules/canonicalize-lgpl (Files):
536         Remove m4/faccessat.m4.
538         canonicalize-lgpl: accommodate picky cpp
539         * lib/canonicalize-lgpl.c: Use "defined FUNC_REALPATH_WORKS" in
540         case preprocessor is picky.  Reported by Adhemerval Zanella in:
541         https://sourceware.org/pipermail/libc-alpha/2020-December/121130.html
543         canonicalize: simplify via scratch_buffer_dupfree
544         * config/srclist.txt: Adjust accordingly.
545         * lib/canonicalize-lgpl.c (realpath_stk):
546         * lib/canonicalize.c (canonicalize_filename_mode_stk):
547         Simplify by using scratch_buffer_dupfree.
548         * lib/malloc/scratch_buffer.h (scratch_buffer_dupfree): New function.
549         * lib/malloc/scratch_buffer_dupfree.c: New file.
550         * modules/scratch_buffer (Files, Depends-on):
551         Add malloc/scratch_buffer_dupfree.c.
553 2020-12-27  Paul Eggert  <eggert@cs.ucla.edu>
555         regex: remove glibc21.m4
556         It doesn’t seem to be needed any more; at least, I couldn’t
557         reproduce the circa-2013 problem.  Perhaps the recent
558         --conditional-dependencies fixes have removed the need for it.
559         * m4/glibc21.m4: Remove.  All uses removed.
561 2020-12-26  Bruno Haible  <bruno@clisp.org>
563         gnulib-tool: Make --conditional-dependencies work with --with-tests.
564         Reported by Paul Eggert in
565         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00236.html>.
566         * gnulib-tool (func_emit_tests_Makefile_am): Handle conditional
567         dependencies like func_emit_lib_Makefile_am.
569 2020-12-26  Bruno Haible  <bruno@clisp.org>
571         execvpe: Make dependency to stdbool explicit.
572         * lib/execvpe.c: Include <stdbool.h>.
573         * modules/execvpe (Depends-on): Add stdbool.
575         execlp: Add tests.
576         * tests/test-execlp-main.c: New file.
577         * tests/test-execlp.sh: New file.
578         * modules/execlp-tests: New file.
580         execlp: New module.
581         * lib/execlp.c: New file.
582         * m4/execlp.m4: New file.
583         * modules/execlp: New file.
584         * doc/posix-functions/execlp.texi: Mention more Windows problems and the
585         new module.
587         execle: Add tests.
588         * tests/test-execle-main.c: New file.
589         * tests/test-execle.sh: New file.
590         * modules/execle-tests: New file.
592         execle: New module.
593         * lib/execle.c: New file.
594         * m4/execle.m4: New file.
595         * modules/execle: New file.
596         * doc/posix-functions/execle.texi: Mention more Windows problems and the
597         new module.
599         execl: Add tests.
600         * tests/test-execl-main.c: New file.
601         * tests/test-execl.sh: New file.
602         * modules/execl-tests: New file.
604         execl: New module.
605         * lib/execl.c: New file.
606         * m4/execl.m4: New file.
607         * modules/execl: New file.
608         * doc/posix-functions/execl.texi: Mention more Windows problems and the
609         new module.
611         execv: Add tests.
612         * tests/test-execv-main.c: New file.
613         * tests/test-execv.sh: New file.
614         * modules/execv-tests: New file.
616         execv: New module.
617         * lib/execv.c: New file.
618         * m4/execv.m4: New file.
619         * modules/execv: New file.
620         * doc/posix-functions/execv.texi: Mention more Windows problems and the
621         new module.
623         execvp: Add tests.
624         * tests/test-execvp-main.c: New file.
625         * tests/test-execvp.sh: New file.
626         * modules/execvp-tests: New file.
628         execvp: New module.
629         * lib/execvp.c: New file.
630         * m4/execvp.m4: New file.
631         * modules/execvp: New file.
632         * doc/posix-functions/execvp.texi: Mention more Windows problems and the
633         new module.
635         execvpe: Add tests.
636         * tests/test-execvpe-main.c: New file.
637         * tests/test-execvpe.sh: New file.
638         * modules/execvpe-tests: New file.
640         execvpe: New module.
641         * lib/execvpe.c: New file.
642         * m4/execvpe.m4: New file.
643         * modules/execvpe: New file.
644         * doc/glibc-functions/execvpe.texi: Mention the Windows problems and the
645         new module.
647         execve: Add tests.
648         * tests/test-exec-child.c: New file.
649         * tests/test-execve-main.c: New file.
650         * tests/test-execve.sh: New file.
651         * modules/execve-tests: New file.
653         execve: New module.
654         * lib/execve.c: New file.
655         * m4/execve.m4: New file.
656         * modules/execve: New file.
657         * doc/posix-functions/execve.texi: Mention more Windows problems and the
658         new module.
660         execve, execvpe, execvp, execv, execl, execle, execlp: Prepare modules.
661         * lib/unistd.in.h (execl, execle, execlp, execv, execve, execvp,
662         execvpe): Add declarations for the new modules.
663         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether execl, execle, execlp,
664         execv, execve, execvp, execvpe are declared.
665         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EXEC*, HAVE_EXECVPE,
666         REPLACE_EXEC*.
667         * modules/unistd (Makefile.am): Substitute GNULIB_EXEC*, HAVE_EXECVPE,
668         REPLACE_EXEC*.
669         * tests/test-unistd-c++.cc: Check the signature of execl, execle,
670         execlp, execv, execve, execvp, execvpe.
672 2020-12-26  Bruno Haible  <bruno@clisp.org>
674         stack: Fix typo in comments.
675         * lib/stack.h: Fix typo in comments.
677 2020-12-26  Bruno Haible  <bruno@clisp.org>
679         bitset: Fix conflict with 'free-posix' module.
680         * lib/bitset/base.h: Include <stdlib.h>.
682 2020-12-25  Paul Eggert  <eggert@cs.ucla.edu>
684         idx: change idx.h comment to LGPLv2.1+
685         * lib/idx.h: Change license notice to match what should be in glibc.
686         gnulib-tool will change it as appropriate anyway, so this is just
687         to simplify syncing with glibc.
689 2020-12-25  Thien-Thi Nguyen  <ttn@gnu.org>
691         MODULES.html.sh: Update after 2020-12-19 change.
692         * MODULES.html.sh (func_all_modules): Do s/free/free-posix/.
694 2020-12-25  Bruno Haible  <bruno@clisp.org>
696         Make it possible to turn off the mkdir override on Windows.
697         * lib/sys_stat.in.h (mkdir): Conditionalize through GNULIB_MKDIR and
698         GNULIB_MDA_MKDIR. Also support GNULIB_POSIXCHECK.
699         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_MKDIR,
700         GNULIB_MDA_MKDIR.
701         * modules/sys_stat (Makefile.am): Substitute GNULIB_MKDIR,
702         GNULIB_MDA_MKDIR.
703         * modules/mkdir (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
704         * doc/posix-functions/mkdir.texi: Mention also the 'sys_stat' module.
706         Make it possible to turn off each of the Windows oldnames workarounds.
707         * lib/fcntl.in.h (creat, open):  Conditionalize each of the Windows
708         oldnames workarounds through a GNULIB_MDA_<func> symbol.
709         * lib/math.in.h (j0, j1, jn, y0, y1, yn): Likewise.
710         * lib/search.in.h (lfind, lsearch): Likewise.
711         * lib/stdio.in.h (fcloseall, fdopen, fileno, getw, putw, tempnam):
712         Likewise.
713         * lib/stdlib.in.h (ecvt, fcvt, gcvt, mktemp, putenv): Likewise.
714         * lib/string.in.h (memccpy, strdup): Likewise.
715         * lib/sys_stat.in.h (chmod, umask): Likewise.
716         * lib/time.in.h (tzset): Likewise.
717         * lib/unistd.in.h (access, chdir, close, dup, dup2, execl, execle,
718         execlp, execv, execve, execvp, execvpe, getcwd, getpid, isatty, lseek,
719         read, rmdir, swab, unlink, write): Likewise.
720         * lib/utime.in.h (utime): Likewise.
721         * lib/wchar.in.h (wcsdup): Likewise.
722         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize these
723         GNULIB_MDA_<func> symbols.
724         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Likewise.
725         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Likewise.
726         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
727         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
728         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
729         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
730         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Likewise.
731         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
732         * m4/utime_h.m4 (gl_UTIME_H_DEFAULTS): Likewise.
733         * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Likewise.
734         * modules/fcntl-h (Makefile.am): Substitute these GNULIB_MDA_<func>
735         symbols.
736         * modules/math (Makefile.am): Likewise.
737         * modules/search (Makefile.am): Likewise.
738         * modules/stdio (Makefile.am): Likewise.
739         * modules/stdlib (Makefile.am): Likewise.
740         * modules/string (Makefile.am): Likewise.
741         * modules/sys_stat (Makefile.am): Likewise.
742         * modules/time (Makefile.am): Likewise.
743         * modules/unistd (Makefile.am): Likewise.
744         * modules/utime-h (Makefile.am): Likewise.
745         * modules/wchar (Makefile.am): Likewise.
747 2020-12-24  Paul Eggert  <eggert@cs.ucla.edu>
749         canonicalize, canonicalize-lgpl: remove lint
750         Pacify GCC.  Some of these problems were reported by Bruno Haible in:
751         https://lists.gnu.org/r/bug-gnulib/2020-12/msg00217.html
752         * lib/canonicalize-lgpl.c, lib/canonicalize.c:
753         Sort shared include directives, for consistency.
754         (IF_LINT): New macro.
755         (suffix_requires_dir_check): Mark with _GL_ATTRIBUTE_PURE.
756         * lib/canonicalize-lgpl.c (GCC_LINT, _GL_ATTRIBUTE_PURE) [_LIBC]:
757         New macros.
758         (realpath_stk): Suppress bogus -Wmaybe-uninitialized warning.
759         * lib/canonicalize.c (canonicalize_filename_mode_stk):
760         Omit unused local.  Suppress bogus -Wmaybe-uninitialized warning.
762 2020-12-24  Bruno Haible  <bruno@clisp.org>
764         spawn-pipe: Use posix_spawn by default on native Windows.
765         * lib/spawn-pipe.c (SPAWN_PIPE_IMPL_AVOID_POSIX_SPAWN): New macro.
766         (create_pipe): Use it to decide among the two possible implementations.
767         * modules/spawn-pipe (Depends-on): Add posix_spawnattr_setpgroup.
769 2020-12-24  Bruno Haible  <bruno@clisp.org>
771         unistd-safer: Implement pipe_safer on native Windows.
772         * lib/pipe-safer.c (pipe_safer): Don't test HAVE_PIPE.
773         * modules/unistd-safer (Depends-on): Add pipe-posix.
775 2020-12-24  Bruno Haible  <bruno@clisp.org>
777         execute: Use posix_spawn by default on native Windows.
778         * lib/execute.c (EXECUTE_IMPL_AVOID_POSIX_SPAWN): New macro.
779         (execute): Use it to decide among the two possible implementations.
781 2020-12-24  Paul Eggert  <eggert@cs.ucla.edu>
783         canonicalize-lgpl: merge proposed libc changes
784         This merges the changes proposed for glibc in:
785         https://sourceware.org/pipermail/libc-alpha/2020-December/121085.html
786         https://sourceware.org/pipermail/libc-alpha/2020-December/121086.html
787         * lib/canonicalize-lgpl.c: Include idx.h and filename.h
788         unconditionally.
789         (idx_t, IDX_MAX, FILE_SYSTEM_PREFIX_LEN, IS_ABSOLUTE_FILE_NAME)
790         (ISSLASH) [_LIBC]: Remove.
792 2020-12-24  Bruno Haible  <bruno@clisp.org>
794         posix_spawn-internal: Implement for native Windows.
795         * lib/spawni.c (grow_inheritable_handles, shrink_inheritable_handles,
796         close_inheritable_handles, memiszero, sigisempty, open_handle, do_open,
797         do_dup2, do_close): New functions.
798         (__spawni): Implement on native Windows.
799         * modules/posix_spawn-internal (Depends-on): Add filename,
800         concat-filename, findprog-in, malloca, windows-spawn.
801         * doc/posix-functions/posix_spawn.texi: Update.
802         * doc/posix-functions/posix_spawnp.texi: Likewise.
804 2020-12-24  Bruno Haible  <bruno@clisp.org>
806         windows-spawn: Export another auxiliary function.
807         * lib/windows-spawn.h (convert_CreateProcess_error): New declaration.
808         * lib/windows-spawn.c (convert_CreateProcess_error): New function,
809         extracted from spawnpvech.
810         (spawnpvech): Use it.
812 2020-12-24  Bruno Haible  <bruno@clisp.org>
814         windows-spawn: Export some more auxiliary functions.
815         * lib/windows-spawn.h: Include <stdbool.h>.
816         (struct inheritable_handles): New type.
817         (init_inheritable_handles, compose_handles_block,
818         free_inheritable_handles): New declarations.
819         * lib/windows-spawn.c (init_inheritable_handles, compose_handles_block):
820         New functions, based on spawnvech.
821         (free_inheritable_handles): New function.
822         (spawnpvech): Use them.
824 2020-12-24  Bruno Haible  <bruno@clisp.org>
826         windows-spawn: Export another auxiliary function.
827         * lib/windows-spawn.h (compose_envblock): New declaration.
828         * lib/windows-spawn.c (compose_envblock): New function, extracted from
829         spawnpvech.
830         (spawnpvech): Use it.
832 2020-12-24  Bruno Haible  <bruno@clisp.org>
834         windows-spawn: Export an auxiliary function.
835         * lib/windows-spawn.h (compose_command): New declaration.
836         * lib/windows-spawn.c (compose_command): New function, extracted from
837         spawnpvech.
838         (spawnpvech): Use it.
840 2020-12-24  Bruno Haible  <bruno@clisp.org>
842         posix_spawn* tests: Add support for native Windows.
843         * tests/test-posix_spawn-open1.c (DATA_FILENAME): Treat native Windows
844         like Cygwin.
845         * tests/test-posix_spawn-dup2-stdin.c (main): Don't assume the signals
846         SIGHUP and SIGPIPE. On native Windows, don't call
847         posix_spawnattr_setsigmask.
848         * tests/test-posix_spawn-dup2-stdout.c (main): Likewise.
849         * tests/test-posix_spawn-fchdir.c (main): Likewise.
850         * tests/test-posix_spawn-chdir.c (test): Likewise. Accept the child
851         output from Cygwin's 'pwd' program.
852         * tests/test-posix_spawn-script.c (main): On native Windows, skip the
853         executable-shell-script part of the test.
854         * tests/test-posix_spawnp-script.c (main): Likewise.
855         * modules/posix_spawn-tests (Depends-on): Add freopen, waitpid.
856         (configure.ac): Don't define the POSIX_SPAWN_PORTED conditional.
857         (Makefile.am): Don't test the POSIX_SPAWN_PORTED conditional.
858         * modules/posix_spawnp-tests (Depends-on): Add  waitpid.
859         (configure.ac): Don't define the POSIX_SPAWN_PORTED conditional.
860         (Makefile.am): Don't test the POSIX_SPAWN_PORTED conditional.
861         * modules/posix_spawn_file_actions_addchdir-tests (Makefile.am): Don't
862         test the POSIX_SPAWN_PORTED conditional.
863         * modules/posix_spawn_file_actions_addfchdir-tests (configure.ac):
864         Define the POSIX_SPAWN_PORTED conditional here.
866 2020-12-24  Bruno Haible  <bruno@clisp.org>
868         sh-filename: Add support for native Windows.
869         * m4/sh-filename.m4 (gl_SH_FILENAME): Treat native Windows like Cygwin.
871 2020-12-24  Paul Eggert  <eggert@cs.ucla.edu>
873         careadlinkat: improve warning line number
874         This propagates an idea first used in canonicalize-lgpl.
875         * lib/careadlinkat.c (GCC_BOGUS_WRETURN_LOCAL_ADDR):
876         New macro.
877         (careadlinkat): Use it.
879         linkat: use eloop-threshold
880         * lib/linkat.c: Include eloop-threshold.h.
881         Do not include sys/param.h.
882         (MAXSYMLINKS): Remove.
883         (link_follow, linkat_follow): Use __eloop_threshold instead
884         of MAXSYMLINKS.
885         * m4/linkat.m4 (gl_FUNC_LINKAT): Omit sys/param.h check.
886         * modules/linkat (Depends-on): Add eloop-threshold.  Sort.
888         canonicalize-lgpl: use eloop-threshold
889         * lib/canonicalize-lgpl.c [!_LIBC]: Include eloop-threshold.h.
890         (MAXSYMLINKS, __eloop_threshold): Remove.
891         * modules/canonicalize-lgpl (Depends-on): Add eloop-threshold.
893         eloop-threshold: new module
894         * config/srclist.txt: Add a comment about it.
895         * lib/eloop-threshold.h, modules/eloop-threshold: New files.
897         canonicalize: prefer faccessat to stat
898         A proper faccessat doesn't have the EOVERFLOW problem, and can be
899         more efficient as it needn't gather data from the filesystem to
900         fill in struct stat.  So use stat only if faccessat is absent,
901         or when checking for symlink loops in canonicalize.c.
902         * lib/canonicalize-lgpl.c, lib/canonicalize.c:
903         Include fcntl.h, for AT_EACCESS.
904         (FACCESSAT_NEVER_EOVERFLOWS): Default to false.
905         (file_accessible): New function, based on faccessat but with
906         a fallback to stat and with an EOVERFLOW workaround.
907         (dir_check): Use it.
908         (dir_suffix): New static constant.
909         * lib/canonicalize-lgpl.c (FACCESSAT_NEVER_EOVERFLOWS) [_LIBC]:
910         Use __ASSUME_FACCESSAT2 to set FACCESSAT_NEVER_EOVERFLOWS
911         (__faccessat) [!_LIBC]: Define.
912         (realpath_stk): Use dir_suffix now.
913         * lib/canonicalize.c (canonicalize_filename_mode_stk):
914         If logical, don't check each component's existence; just check
915         at the end, as that's enough.
916         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
917         (gl_CANONICALIZE_LGPL_SEPARATE):
918         Require gl_FUNC_FACCESSAT_EOVERFLOW,
919         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and check for faccessat.
920         (gl_CANONICALIZE_LGPL_SEPARATE): Do not check for readlink,
921         as the code does not use HAVE_READLINK.
922         * modules/canonicalize, modules/canonicalize-lgpl (Files):
923         Add m4/faccessat.m4, m4/lstat.m4.
924         (Depends-on): Add fcntl-lh.
926         faccessat: work around F_OK EOVERFLOW bug
927         * doc/posix-functions/faccessat.texi: Mention the problem.
928         * lib/faccessat.c (FACCESSAT_NEVER_EOVERFLOWS): Default to 0.
929         (rpl_faccessat): If !FACCESSAT_NEVER_EOVERFLOWS, check
930         for F_OK and EOVERFLOW, which means we can return 0.
931         * m4/faccessat.m4 (gl_FUNC_FACCESSAT_EOVERFLOW): New macro.
932         (gl_FUNC_FACCESSAT): Use it.
934         stat failing with EOVERFLOW implies existence
935         * lib/euidaccess.c (euidaccess):
936         * lib/file-has-acl.c (file_has_acl):
937         * lib/link.c (link, rpl_link):
938         * lib/mkdir.c (rpl_mkdir):
939         * lib/mkfifo.c (rpl_mkfifo):
940         * lib/mknod.c (rpl_mknod):
941         * lib/ptsname_r.c (__ptsname_r):
942         * lib/symlink.c (rpl_symlink):
943         * lib/symlinkat.c (rpl_symlinkat):
944         * lib/unlink.c (rpl_unlink):
945         * lib/unlinkat.c (rpl_unlinkat):
946         * lib/utime.c (utime):
947         If stat fails with EOVERFLOW the file exists, so treat it that way
948         in file-existence tests that do not need struct stat values.
950         canonicalize-lgpl: remove freea macro
951         * lib/canonicalize-lgpl.c (freea) [_LIBC]: Remove; not needed.
953         canonicalize, canonicalize-lgpl: fix symlink bug
954         Problem reported by Adhemerval Zanella in:
955         https://lists.gnu.org/r/bug-gnulib/2020-12/msg00155.html
956         * lib/canonicalize-lgpl.c, lib/canonicalize.c:
957         (suffix_requires_dir_check, dir_check): New functions.
958         (GCC_BOGUS_WRETURN_LOCAL_ADDR): New macro, to put the diagnostic
959         closer to the related GCC diagnostics.
960         * lib/canonicalize-lgpl.c (realpath_stk):
961         * lib/canonicalize.c (canonicalize_file_mode_stk):
962         Use them to fix a bug with .../symlink-to-regular-file/ etc.
963         * lib/canonicalize-lgpl.c (__stat) [!_LIBC]: New macro.
964         (realpath_stk): New function,
965         with the contents of the old __realpath and a new scratch buffer arg.
966         This is needed to pacify GCC 10.1, as canonicalize.c is already doing.
967         (__realpath): Use it.
968         * tests/test-canonicalize-lgpl.c, tests/test-canonicalize.c:
969         Add test cases for the bugs.
971 2020-12-24  Bruno Haible  <bruno@clisp.org>
973         execute: Treat signalled processes like wait-process does.
974         * lib/execute.c: Include <sys/types.h>, <sys/wait.h>.
975         (execute): Recognize the case where the exit code indicates a signalled
976         child process.
977         * tests/test-execute-main.c (main): Update expected test result.
978         * modules/execute (Depends-on): Add sys_wait.
980 2020-12-24  Bruno Haible  <bruno@clisp.org>
982         windows-spawn: Improve errno upon failure on native Windows.
983         * lib/windows-spawn.c (spawnpvech): Map the CreateProcess errors
984         ERROR_BAD_FORMAT and ERROR_BAD_EXE_FORMAT to ENOEXEC.
985         * tests/executable-script.sh: New file.
986         * tests/test-posix_spawn-script.c (main): Also try executing
987         executable-script.sh.
988         * tests/test-posix_spawnp-script.c (main): Likewise.
989         * tests/test-execute-script.c (main): Likewise.
990         * tests/test-spawn-pipe-script.c (main): Likewise.
991         * modules/posix_spawn-tests (Files): Add tests/executable-script.sh.
992         * modules/posix_spawnp-tests (Files): Likewise.
993         * modules/execute-tests (Files): Likewise.
994         * modules/spawn-pipe-tests (Files): Likewise.
996 2020-12-24  Bruno Haible  <bruno@clisp.org>
998         findprog-in: Improve errno upon failure on native Windows.
999         * lib/findprog-in.c (find_in_given_path): If the file basename has no
1000         dot and the search with a suffix returned no result, do also a search
1001         without a suffix, and set errno = ENOEXEC if we find a file in this way.
1002         * tests/test-spawn-pipe-script.c (main): Update expected errno.
1004 2020-12-23  Bruno Haible  <bruno@clisp.org>
1006         posix_spawn, posix_spawnp: Fix execution of scripts.
1007         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_SECURE): New macro.
1008         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if posix_spawn
1009         or posix_spawnp allows unsecure execution of scripts.
1010         * doc/posix-functions/posix_spawn.texi: Document the script execution
1011         problem.
1012         * doc/posix-functions/posix_spawnp.texi: Likewise.
1014 2020-12-23  Bruno Haible  <bruno@clisp.org>
1016         Add unit tests regarding execution of scripts.
1017         * tests/executable-script: New file.
1018         * tests/executable-shell-script: New file.
1019         * tests/test-posix_spawn-script.c: New file.
1020         * tests/test-posix_spawnp-script.c: New file.
1021         * tests/test-execute-script.c: New file.
1022         * tests/test-spawn-pipe-script.c: New file.
1023         * modules/posix_spawn-tests (Files): Add
1024         tests/test-posix_spawn-script.c, tests/executable-script,
1025         tests/executable-shell-script.
1026         (Makefile.am): Compile and run test-posix_spawn-script.
1027         * modules/posix_spawnp-tests (Files): Add
1028         tests/test-posix_spawnp-script.c, tests/executable-script,
1029         tests/executable-shell-script.
1030         (Makefile.am): Compile and run test-posix_spawnp-script.
1031         * modules/execute-tests (Files): Add tests/test-execute-script.c,
1032         tests/executable-script, tests/executable-shell-script.
1033         (Makefile.am): Compile and run test-execute-script.
1034         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-script.c,
1035         tests/executable-script, tests/executable-shell-script.
1036         (Makefile.am): Compile and run test-spawn-pipe-script.
1038 2020-12-23  Bruno Haible  <bruno@clisp.org>
1040         Don't execute scripts without '#!' marker through /bin/sh.
1041         This reflects the change done in glibc through
1042         <https://sourceware.org/bugzilla/show_bug.cgi?id=13134> and
1043         <https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=d96de9634a334af16c0ac711074c15ac1762b23c>.
1044         * lib/spawni.c (internal_function): Remove macro.
1045         (script_execute): Remove function.
1046         (__spawni): Don't invoke script_execute.
1047         * lib/execute.c (execute): Disable the ENOEXEC handling.
1048         * lib/spawn-pipe.c (create_pipe): Likewise.
1049         * NEWS: Mention the change.
1051 2020-12-23  Bruno Haible  <bruno@clisp.org>
1053         posix_spawn[p]: Fix compilation error on Windows (regr. 2020-12-14).
1054         Reported by Adrian Ebeling <devl@adrian-ebeling.de> in
1055         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00189.html>.
1056         * lib/spawni.c (__spawni): Update function parameters.
1058 2020-12-23  Bruno Haible  <bruno@clisp.org>
1060         posix_spawn tests: Add two more tests.
1061         * tests/test-posix_spawn-inherit0.c: New file, based on
1062         tests/test-posix_spawn-open2.c.
1063         * tests/test-posix_spawn-inherit1.c: New file, based on
1064         tests/test-posix_spawn-open2.c.
1065         * modules/posix_spawn-tests (Files): Add them.
1066         (Depends-on): Add fflush.
1067         (Makefile.am): Compile and run test-posix_spawn-inherit0 and
1068         test-posix_spawn-inherit1.
1070 2020-12-23  Bruno Haible  <bruno@clisp.org>
1072         posix_spawn tests: Add another test.
1073         * tests/test-posix_spawn-open2.c: New file, based on
1074         tests/test-posix_spawn-open1.c.
1075         * modules/posix_spawn-tests (Files): Add it.
1076         (Makefile.am): Compile and run test-posix_spawn-open1.
1078 2020-12-20  Bruno Haible  <bruno@clisp.org>
1080         Remove support for broken <wchar.h> in AIX 3.
1081         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify test programs.
1083 2020-12-20  Bruno Haible  <bruno@clisp.org>
1085         Remove support for broken <wchar.h> in BSD/OS and OSF/1.
1086         * lib/wchar.in.h: Don't include <stdio.h>, <time.h>.
1087         * lib/mbchar.h: Likewise.
1088         * lib/mbiter.h: Likewise.
1089         * lib/mbuiter.h: Likewise.
1090         * m4/stdint.m4 (gl_STDINT_INCLUDES): Likewise.
1091         * lib/mbfile.h: Don't include <time.h>.
1092         * lib/mbswidth.h: Update comment.
1093         * lib/stdint.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> before
1094         <wchar.h>.
1095         * lib/wctype.in.h: Likewise.
1096         * m4/btowc.m4 (gl_FUNC_BTOWC): Simplify test programs.
1097         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Likewise.
1098         * m4/iswdigit.m4 (gl_FUNC_ISWDIGIT): Likewise.
1099         * m4/iswxdigit.m4 (gl_FUNC_ISWXDIGIT): Likewise.
1100         * m4/mbrlen.m4 (gl_FUNC_MBRLEN, gl_MBRLEN_INCOMPLETE_STATE,
1101         gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL): Likewise.
1102         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): Likewise.
1103         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_MBRTOWC_INCOMPLETE_STATE,
1104         gl_MBRTOWC_SANITYCHECK, gl_MBRTOWC_NULL_ARG1, gl_MBRTOWC_NULL_ARG2,
1105         gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL, gl_MBRTOWC_STORES_INCOMPLETE,
1106         AC_FUNC_MBRTOWC): Likewise.
1107         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Likewise.
1108         * m4/mbsnrtowcs.m4 (gl_MBSNRTOWCS_WORKS_IN_TRADITIONAL_LOCALE):
1109         Likewise.
1110         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS, gl_MBSRTOWCS_WORKS): Likewise.
1111         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
1112         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
1113         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Likewise.
1114         * m4/wchar_h.m4 (gl_WCHAR_H, gl_WCHAR_H_INLINE_OK): Likewise.
1115         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
1116         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Likewise.
1117         * m4/wcsnrtombs.m4 (gl_WCSNRTOMBS_WORKS_IN_TRADITIONAL_LOCALE):
1118         Likewise.
1119         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS, gl_WCSRTOMBS_TERMINATION,
1120         gl_WCSRTOMBS_NULL): Likewise.
1121         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Likewise.
1122         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
1123         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
1124         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
1125         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
1126         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Likewise.
1127         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Likewise.
1128         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Likewise.
1129         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Likewise.
1130         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Likewise.
1132 2020-12-20  Bruno Haible  <bruno@clisp.org>
1134         isnanf: Fix autoconf test.
1135         * m4/isnanf.m4 (gl_ISNANF_WORKS): Fix one of the NaN tests.
1137 2020-12-20  Bruno Haible  <bruno@clisp.org>
1139         Remove some of the support for obsolete IRIX 4 and 5.
1140         * m4/mountlist.m4 (AC_FUNC_GETMNTENT): Don't test for getmntent in
1141         libsun.
1142         * tests/init.sh (setup_): Don't talk about IRIX 5.
1144 2020-12-20  Bruno Haible  <bruno@clisp.org>
1146         filemode: Remove Cray support.
1147         * lib/filemode.c (IS_MIGRATED_FILE): Remove macro.
1148         (filemodestring): Don't produce an 'M' type.
1149         * m4/filemode.m4 (gl_FILEMODE): Don't invoke AC_STRUCT_ST_DM_MODE.
1150         * m4/st_dm_mode.m4: Remove file.
1151         * modules/filemode (Files): Remove it.
1153 2020-12-20  Paul Eggert  <eggert@cs.ucla.edu>
1155         free-posix: assume glibc 2.33 fixes this.
1156         * m4/free.m4 (gl_FUNC_FREE): Assume glibc 2.33+ is fixed.
1157         Use compile-time test rather than guessing for cross-builds.
1159 2020-12-20  Bruno Haible  <bruno@clisp.org>
1161         backupfile: Fix compilation error on native Windows (regr. 2018-10-23).
1162         Reported by Adrian Ebeling <adrianebeling@gmx.de> in
1163         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00156.html>.
1164         * lib/backupfile.c (fpathconf): Define fallback, like for pathconf.
1166 2020-12-20  Bruno Haible  <bruno@clisp.org>
1168         float: Fix compilation error when gnulib's float.h exists twice.
1169         Reported by Santiago Vila <sanvila@unex.es>.
1170         * lib/float.in.h (GNULIB_defined_long_double_union): New macro.
1172 2020-12-19  Bruno Haible  <bruno@clisp.org>
1174         free-posix: Assume future POSIX compliance only on OpenBSD and Solaris.
1175         * m4/free.m4 (gl_FUNC_FREE): Guess yes only on OpenBSD and Solaris.
1176         Don't trust _POSIX_VERSION for this test.
1178 2020-12-19  Paul Eggert  <eggert@cs.ucla.edu>
1180         free-posix: port to GNU/Linux
1181         * m4/free.m4 (gl_FUNC_FREE): Don’t assume GNU hosts are free of
1182         the bug, as it occurs on Ubuntu 20.10 x86-64 and, I assume, on
1183         other GNU/Linux hosts.
1185 2020-12-19  Bruno Haible  <bruno@clisp.org>
1187         free-posix: Add tests.
1188         * tests/test-free.c: New file.
1189         * tests/macros.h (ASSERT_NO_STDIO,
1190         WRITE_MACROEXPANDED_INTEGER_TO_STDERR, WRITE_INTEGER_TO_STDERR,
1191         WRITE_TO_STDERR): New macros.
1192         * modules/free-posix-tests: New file.
1194 2020-12-18  Bruno Haible  <bruno@clisp.org>
1196         free-posix: Add C++ declaration test.
1197         * tests/test-stdlib-c++.cc (free): New declaration.
1199 2020-12-18  Bruno Haible  <bruno@clisp.org>
1201         free-posix: New module, renamed from 'free'.
1202         * modules/free-posix: Renamed from modules/free.
1203         (configure.ac): Update gl_STDLIB_MODULE_INDICATOR invocation.
1204         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_FREE_POSIX,
1205         not GNULIB_FREE.
1206         * modules/stdlib (Makefile.am): Substitute GNULIB_FREE_POSIX, not
1207         GNULIB_FREE.
1208         * lib/stdlib.in.h (free): Test GNULIB_FREE_POSIX, not GNULIB_FREE.
1209         * doc/posix-functions/free.texi: Mention the module 'free-posix' and
1210         what it does.
1211         * NEWS: Mention that module 'free' no longer exists.
1212         * modules/canonicalize (Depends-on): Add free-posix. Remove free.
1213         * modules/canonicalize-lgpl (Depends-on): Likewise.
1215 2020-12-18  Bruno Haible  <bruno@clisp.org>
1217         free: Remove support for obsolete platforms.
1218         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works. Don't define
1219         CANNOT_FREE_NULL.
1220         * lib/free.c (rpl_free): Don't test CANNOT_FREE_NULL.
1221         * modules/free (Description): Update.
1222         * doc/posix-functions/free.texi: Don't mention SunOS 4 any more.
1224 2020-12-18  Paul Eggert  <eggert@cs.ucla.edu>
1226         intprops: port to ICC 2021.1 Beta 20201112
1227         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_P):
1228         Port to ICC 2021.1, which has a non-working __builtin_mul_overflow_p.
1229         Add a clause for other compilers that claim to support
1230         __builtin_mul_overflow_p, since we might as well find out about
1231         slackers other than Clang and ICC.
1232         (INT_MULTIPLY_WRAPV): ICC 2021 has GCC bug 91450, so treat it
1233         like older GCCs even when it claims to be a newer one.
1235 2020-12-18  Bruno Haible  <bruno@clisp.org>
1237         intprops: Avoid potentially buggy __builtin_add_overflow in GCC 5, 6.
1238         Reported by Stefan Liebler <stli@linux.ibm.com> in
1239         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00152.html>.
1240         * lib/intprops.h (_GL_HAS_BUILTIN_ADD_OVERFLOW): Don't define for
1241         GCC 5.x and 6.x.
1242         * lib/glob.c (size_add_wrapv): Don't use __builtin_add_overflow for
1243         GCC 5.x and 6.x.
1245 2020-12-17  Bruno Haible  <bruno@clisp.org>
1247         free: Fix warning.
1248         Reported by Pádraig Brady <P@draigBrady.com> in
1249         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00148.html>.
1250         * lib/stdlib.in.h (free): New declaration.
1251         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether 'free' is declared.
1252         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_FREE, REPLACE_FREE.
1253         * modules/stdlib (Makefile.am): Substitute GNULIB_FREE, REPLACE_FREE.
1254         * m4/free.m4 (gl_FUNC_FREE): Set REPLACE_FREE, instead of defining
1255         'free' as a macro here.
1256         * modules/free (Depends-on): Add stdlib.
1257         (configure.ac): Test REPLACE_FREE. Invoke gl_STDLIB_MODULE_INDICATOR.
1259 2020-12-17  Paul Eggert  <eggert@cs.ucla.edu>
1261         canonicalize-lgpl: fix AIX test failures
1262         This merges the recent canonicalize.c fix into canonicalize-lgpl.c.
1263         Problem reported by Bruno Haible in:
1264         https://lists.gnu.org/r/bug-gnulib/2020-12/msg00138.html
1265         * lib/canonicalize-lgpl.c: Include sys/stat.h.
1266         (__realpath): When testing a file name ending in '/', use stat
1267         rather than readlink, so that it does the right thing on AIX.
1268         * modules/canonicalize-lgpl (Depends-on): Add stat, sys_stat.
1270         canonicalize: omit second readlink when not needed
1271         * lib/canonicalize.c (canonicalize_filename_mode_stk):
1272         Omit second readlink when (can_exist != CAN_MISSING
1273         && startlen != 0 && !logical).  Simplify.
1275         canonicalize: remove arbitrary 8192-byte limit
1276         Remove canonicalize.c’s arbitrary 8192-byte limit on platforms
1277         like GNU Hurd that do not define the PATH_MAX macro, and similarly
1278         for canonicalize-lgpl.c’s arbitrary 1024-byte limit.  Do this by
1279         using scratch buffers.  Lessen the number of differences between
1280         the two source files, to simplify this and future maintenance.
1281         * lib/canonicalize-lgpl.c (__realpath):
1282         * lib/canonicalize.c (canonicalize_filename_mode_stk):
1283         Use scratch buffers instead of malloc and malloca.  This avoids
1284         the need for alloca, and avoids the need for malloc in most cases.
1285         * lib/canonicalize-lgpl.c, lib/canonicalize.c: Make these files
1286         easier to compare, e.g., by sorting include files and by switching
1287         to the GNU convention of calling file names "file names", not
1288         "path names".  Include stdbool.h, scratch_buffer.h.
1289         * lib/canonicalize-lgpl.c (IDX_MAX) [_LIBC]: New macro.
1290         (malloca) [_LIBC]: Remove.
1291         [!_LIBC]: Do not include malloca.h.
1292         (get_path_max): New function, so that pathconf is called only in
1293         the rare and dubious case when when RESOLVED is not null and
1294         PATH_MAX is not defined.  Invoke pathconf on "/" not the input
1295         file name, as we care about the longest file name starting from
1296         "/" (not from the input file name), and POSIX does not specify
1297         what pathconf does on a non-directory file anyway.  If PATH_MAX is
1298         not defined, do not worry about overriding a path_max of 0, and do
1299         not let path_max exceed IDX_MAX.
1300         (__realpath): Remove an assumption that file name components
1301         cannot exceed 1024 bytes when PATH_MAX is not defined (wrong for
1302         the Hurd, presumably).
1303         When allocating the result, allocate it to just the right size;
1304         this costs nothing when the result is smaller than 1023 bytes,
1305         and for larger results it's probably worth the CPU to call realloc,
1306         as canonicalize.c already does.
1307         * lib/canonicalize.c: Include attribute.h.
1308         Do not include pathmax.h or xgetcwd.h.
1309         (PATH_MAX): Do not define, so file names longer than 8192 bytes
1310         work on platforms with no fixed limit.
1311         (canonicalize_filename_mode_stk): New function, with
1312         the content of the old canonicalize_filename_mode.
1313         Use getcwd instead of xgetcwd, and readlink instead of areadlink,
1314         since the scratch buffers now do memory management for us.
1315         Use rawmemchr instead of adding strlen.
1316         Use mempcpy instead of mempcpy + size.
1317         Assume free preserves errno.
1318         (canonicalize_filename_mode): Use it.
1319         * modules/canonicalize (Depends-on): Remove areadlink, pathmax,
1320         xgetcwd.  Add attribute, free, getcwd, mempcpy, rawmemchr,
1321         scratch_buffer, stdbool, xalloc-die.
1322         * modules/canonicalize-lgpl (Depends-on): Remove alloca-opt,
1323         malloca, realloc-posix.  Add scratch_buffer, stdbool.
1325         canonicalize-lgpl: simplify merge to glibc
1326         This patch lessens the differences between git glibc
1327         stdlib/canonicalize.c and lib/canonicalize-lgpl.c.
1328         The (perhaps wishful) goal is to make them identical.
1329         * lib/canonicalize-lgpl.c [!_LIBC]:
1330         Include <libc-config.h>, not config.h.
1331         Omit an unnecessary (!HAVE_CANONICALIZE_FILE_NAME ||
1332         !FUNC_REALPATH_WORKS || defined _LIBC) #if.
1333         Do not include alloca.h, since we use malloca now.
1334         [_LIBC]: Include <eloop-threshold.h>, and define dummy macros
1335         FILE_SYSTEM_PREFIX_LEN, IS_ABSOLUTE_FILE_NAME, ISSLASH, malloca,
1336         freea so that the mainline code can be kept #ifdef free.
1337         [!_LIBC]: Remove dummy macros for SHLIB_COMPAT, versioned_symbol,
1338         compat_symbol, weak_alias, __set_errno since libc-config.h does that.
1339         Add redirecting macros __mempcpy, __pathconf, __rawmemchr,
1340         __eloop_threshold.  All uses of their definiens changed.
1341         (SIZE_MAX): Remove; no longer needed.
1342         (alloc_failed): Remove, and remove all instances.
1343         No need for alloc_failed now that free preserves errno.
1344         (__realpath): Default path_max to 1024 instead of 8192, as that’s
1345         the glibc tradition and is safer when the 2nd argument is null.
1346         Use __rawmemchr instead of strchr.
1347         Use __mempcpy where appropriate.
1348         Simplify test for overflow so that it does not need SIZE_MAX.
1349         Do not preserve errno around free or freea calls; no longer needed.
1350         Mark __realpath with libc_hidden_def.
1351         * modules/canonicalize-lgpl (Depends-on): Add free, libc-config,
1352         malloc-posix, mempcpy, realloc-posix, rawmemchr.
1353         * modules/free: Now LGPLv2+, for canonicalize-lgpl.
1355         free: preserve errno
1356         * lib/free.c (rpl_free): Preserve errno.  Check for null only if
1357         CANNOT_FREE_NULL is defined, as an optimization for POSIX 2008
1358         platforms that do not preserve errno.
1359         * m4/free.m4 (gl_FUNC_FREE): Check whether free preserves errno.
1360         Also, define CANNOT_FREE_NULL if free cannot free NULL.
1361         * modules/free (configure.ac): Also replace 'free' if
1362         it does not preserve errno.
1364         idx: simplify IDX_MAX, remove IDX_WIDTH
1365         * lib/idx.h (IDX_MAX): Simplify by removing obsolete reference
1366         to UNSIGNED_IDX_T.
1367         (IDX_WIDTH): Remove, since it’s not used and its value
1368         arguably should be PTRDIFF_WIDTH anyway.
1370 2020-12-16  Bruno Haible  <bruno@clisp.org>
1372         posix_spawn_file_actions_addfchdir-tests: Rename test.
1373         * tests/test-posix_spawn-fchdir.c: Renamed from
1374         tests/test-posix_spawn5.c.
1375         * modules/posix_spawn_file_actions_addfchdir-tests (Files, Makefile.am):
1376         Update.
1378         posix_spawn_file_actions_addchdir-tests: Rename test.
1379         * tests/test-posix_spawn-chdir.c: Renamed from
1380         tests/test-posix_spawn4.c.
1381         * modules/posix_spawn_file_actions_addchdir-tests (Files, Makefile.am):
1382         Update.
1384         posix_spawn-tests: Rename test.
1385         * tests/test-posix_spawn-open1.c: Renamed from
1386         tests/test-posix_spawn3.c.
1387         * modules/posix_spawn-tests (Files, Makefile.am): Update.
1389         posix_spawnp-tests: Rename test.
1390         * tests/test-posix_spawn-dup2-stdin.c: Renamed from
1391         tests/test-posix_spawn2.c.
1392         * tests/test-posix_spawn-dup2-stdin.in.sh: Renamed from
1393         tests/test-posix_spawn2.in.sh.
1394         * modules/posix_spawnp-tests (Files, Makefile.am): Update.
1396         posix_spawnp-tests: Rename test.
1397         * tests/test-posix_spawn-dup2-stdout.c: Renamed from
1398         tests/test-posix_spawn1.c.
1399         * tests/test-posix_spawn-dup2-stdout.in.sh: Renamed from
1400         tests/test-posix_spawn1.in.sh.
1401         * modules/posix_spawnp-tests (Files, Makefile.am): Update.
1403 2020-12-14  Bruno Haible  <bruno@clisp.org>
1405         findprog-in: Allow overriding the current directory.
1406         * lib/findprog.h (find_in_given_path): Add directory argument.
1407         * lib/findprog-in.c (find_in_given_path): Likewise.
1408         * lib/execute.c (execute): Update caller.
1409         * lib/spawn-pipe.c (create_pipe): Likewise.
1410         * lib/windows-spawn.c (spawnpvech): Likewise.
1411         * NEWS: Mention the change.
1413 2020-12-14  Bruno Haible  <bruno@clisp.org>
1415         posix_spawn-internal: Make better use of 'const'.
1416         * lib/spawn_int.h (__spawni): Does not need write access to the elements
1417         of argv and envp.
1418         * lib/spawni.c (__spawni, script_execute): Likewise.
1419         * lib/spawn.c (posix_spawn): Update caller.
1420         * lib/spawnp.c (posix_spawnp): Likewise.
1422 2020-12-14  Bruno Haible  <bruno@clisp.org>
1424         spawn: Make it compile on native Windows.
1425         * modules/spawn (Depends-on): Add signal-h.
1427 2020-12-14  Bruno Haible  <bruno@clisp.org>
1429         windows-spawn: Avoid shadowing a variable.
1430         * lib/windows-spawn.c (spawnpvech): Rename local variable 'flags'.
1432 2020-12-13  Paul Eggert  <eggert@cs.ucla.edu>
1434         string: port memchr macro to AIX 7.2 XLC
1435         Its <string.h> defines a memchr macro to help inlining.
1436         * lib/string.in.h (memchr): #undef before #defining.
1438         canonicalize: fix AIX test failures
1439         Problem reported by Bruno Haible in:
1440         https://lists.gnu.org/r/bug-gnulib/2020-12/msg00109.html
1441         * lib/canonicalize.c (canonicalize_filename_mode):
1442         When testing a file name ending in '/', use stat rather than
1443         readlink, so that it does the right thing on AIX.
1444         * modules/canonicalize (Depends-on): Add readlink, to pull in the
1445         recent changes in the Gnulib readlink module.
1447         Assume readlink/readlinkat ERANGE fix
1448         * lib/areadlink-with-size.c (areadlink_with_size):
1449         * lib/areadlinkat-with-size.c (areadlinkat_with_size):
1450         * lib/careadlinkat.c (readlink_stk):
1451         Do not worry about readlink or readlinkat failing with errno == ERANGE,
1452         since the Gnulib readlink and readlinkat modules now fix that.
1454         getcwd: port to AIX
1455         * lib/getcwd.c [!_LIBC]: Undef stat64 before #defining it,
1456         in case our sys/stat.h #defined a function macro with the same name.
1458         readlink, readlinkat: add ERANGE portability
1459         Fix some portability issues with Gnulib's readlink and readlinkat,
1460         notably mostly working around the ERANGE problem in AIX and HP-UX.
1461         * doc/posix-functions/readlink.texi:
1462         * doc/posix-functions/readlinkat.texi:
1463         ERANGE problem is mostly fixed now.  Mention AIX problem with
1464         trailing / and EINVAL.  Lessen differences between these two files.
1465         * lib/readlink.c (rpl_readlink):
1466         * lib/readlinkat.c (rpl_readlinkat):
1467         If stat ("FILE/", ...) reports EOVERFLOW, treat FILE/ as an
1468         existing directory.  Mostly work around READLINK_TRUNCATE BUG.
1469         Lessen spurious differences between the readlink and readlinkat code.
1470         * lib/readlinkat.c (rpl_readlinkat):
1471         Fix bug where stat was used where fstatat was intended.
1472         * m4/readlink.m4 (gl_FUNC_READLINK):
1473         Rename gl_cv_func_readlink_works to gl_cv_func_readlink_trailing_slash
1474         to identify readlink problems more precisely.  All uses changed.
1475         Guess no on AIX or HP-UX for this variable.
1476         Add check for whether readlink truncates results,
1477         and define new macro READLINK_TRUCATE_BUG accordingly.
1478         * m4/readlinkat.m4 (gl_FUNC_READLINKAT):
1479         Also check gl_cv_func_readlink_trailing_slash when deciding
1480         whether to replace readlinkat.
1481         * modules/readlinkat (Depends-on): Most dependencies are also
1482         needed if replacing readlinkat.  fstatat is different, as it
1483         is needed only if replacing an existing readlinkat.
1485 2020-12-13  Bruno Haible  <bruno@clisp.org>
1487         spawn-pipe: Fix hanging processes on Windows (regression 2020-11-30).
1488         * lib/spawn-pipe.c (create_pipe): After spawning the subprocess, close
1489         the stdin_handle and/or stdout_handle.
1491 2020-12-12  Bruno Haible  <bruno@clisp.org>
1493         Fix gnulib-tool error when some modules occur in tests/.
1494         * doc/gnulib.texi (Specification): Update statistics.
1495         (Autoconf macros): Don't suggest to use AC_LIBOBJ in a .m4 file.
1496         (Using AC_LIBOBJ): New section.
1497         * check-AC_LIBOBJ: New file.
1498         * modules/fnmatch-gnu (Files): Add lib/fnmatch.c.
1499         * modules/fopen-gnu (Files): Add lib/fopen.c.
1500         * modules/memmem (Files): Add lib/memmem.c.
1501         * modules/renameat (Files): Add lib/at-func2.c.
1502         * modules/strcasestr (Files): Add lib/strcasestr.c.
1503         * modules/strstr (Files): Add lib/strstr.c.
1505 2020-12-11  Bruno Haible  <bruno@clisp.org>
1507         sh-quote, execute, spawn-pipe, etc.: Make better use of 'const'.
1508         * lib/sh-quote.h (shell_quote_argv): Does not need write access to the
1509         elements of argv.
1510         * lib/sh-quote.c (shell_quote_argv): Likewise.
1511         * lib/windows-spawn.h (prepare_spawn): Add 'const' the argument type and
1512         the return type.
1513         * lib/windows-spawn.c (prepare_spawn): Likewise.
1514         * lib/os2-spawn.h (prepare_spawn): Likewise.
1515         * lib/os2-spawn.c (prepare_spawn): Likewise.
1516         * lib/execute.h (execute): Does not need write access to the elements of
1517         prog_argv.
1518         * lib/execute.c (execute): Likewise.
1519         * lib/spawn-pipe.h (create_pipe_out, create_pipe_in, create_pipe_bidi):
1520         Likewise.
1521         * lib/spawn-pipe.c (create_pipe, create_pipe_bidi, create_pipe_in,
1522         create_pipe_out): Likewise.
1523         * lib/pipe-filter.h (pipe_filter_ii_execute, pipe_filter_gi_create):
1524         Likewise.
1525         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Likewise.
1526         * lib/pipe-filter-gi.c (pipe_filter_gi_create): Likewise.
1527         * lib/javaexec.h (execute_fn): Does not need write access to the
1528         elements of prog_argv.
1529         * lib/javaexec.c (execute_java_class): Update variable types and remove
1530         casts to 'char *'.
1531         * lib/csharpexec.h (execute_fn): Does not need write access to the
1532         elements of prog_argv.
1533         * lib/csharpexec.c (execute_csharp_using_mono,
1534         execute_csharp_using_sscli): Update variable types and remove casts to
1535         'char *'.
1536         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
1537         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
1538         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
1539         is_jikes_present): Update variable types and remove casts to 'char *'.
1540         * lib/javaversion.c (execute_and_read_line): Does not need write access
1541         to the elements of prog_argv.
1542         * lib/csharpcomp.c (compile_csharp_using_mono,
1543         compile_csharp_using_sscli): Update variable types and remove casts to
1544         'char *'.
1545         * tests/test-sh-quote.c (main): Update variable types and remove casts
1546         to 'char *'.
1547         * tests/test-execute-main.c (main): Update variable types and remove
1548         casts to 'char *'.
1549         * tests/test-spawn-pipe-main.c (test_pipe): Update variable types and
1550         remove casts to 'char *'.
1551         * NEWS: Mention the changes.
1553 2020-12-11  Bruno Haible  <bruno@clisp.org>
1555         execute-tests: Fix compilation error with MSVC.
1556         * tests/test-execute-child.c (is_device): With _fstat, use
1557         'struct _stat', not 'struct stat'.
1559 2020-12-11  Paul Eggert  <eggert@cs.ucla.edu>
1561         vararrays: just use 2.70
1562         * m4/vararrays.m4 (AC_C_VARARRAYS): Do not override Autoconf 2.70
1563         and later, since Autoconf 2.70 matches Gnulib now.
1565         sys_types: just use 2.70
1566         * m4/sys_types_h.m4 (AC_HEADER_MAJOR):
1567         Reindent to match Autoconf sources.
1568         Use Autoconf 2.70 as a prerequisite, not 2.69c.
1570         stdint: port to Autoconf 2.70
1571         * m4/stdint.m4 (gl_STDINT_H): Check for inttypes.h and sys/types.h
1572         instead of assuming that AC_INCLUDES_DEFAULT does it.
1573         The old code relied on AC_INCLUDES_DEFAULT being called
1574         and setting ac_cv_header_inttypes_h and ac_cv_header_sys_types_h,
1575         but this does not occur in Autoconf 2.70.
1577         pid_t.m4: just use 2.70
1578         * m4/pid_t.m4 (AC_TYPE_PID_T):
1579         Use Autoconf 2.70 as a prerequisite, not 2.69c.
1581         largefile: just use 2.70
1582         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES):
1583         Use Autoconf 2.70 as a prerequisite, not 2.69c.
1585         AC_C_RESTRICT: update from Autoconf
1586         * m4/gnulib-common.m4 (gl_PROG_CC_C99): Use Autoconf 2.70
1587         as a prerequisite, not 2.69c, since 2.70 is now out.
1588         (AC_C_RESTRICT): Define only for 2.70 or earlier.
1589         Try __restrict__ before __restrict.
1591         extensions: update from Autoconf
1592         * m4/extensions.m4 (AC_CHECK_INCLUDES_DEFAULT):
1593         Provide a default implementation for Autoconf 2.69 or earlier.
1594         (AC_USE_SYSTEM_EXTENSIONS): Copy from Autoconf git.  Define only
1595         if Autoconf 2.70 or earlier, since 2.70.1 or later should be OK.
1597         alloca: update from Autoconf
1598         * m4/alloca.m4 (gl_PREREQ_ALLOCA):
1599         Trivial update to match Autoconf 2.70.
1601 2020-12-11  Bruno Haible  <bruno@clisp.org>
1603         memchr: Work around memory overrun bug on AIX 7.2.
1604         * m4/memchr.m4 (gl_FUNC_MEMCHR): Test against AIX 7.2 bug.
1605         * doc/posix-functions/memchr.texi: Mention the AIX bug.
1607 2020-12-11  Bruno Haible  <bruno@clisp.org>
1609         execute-tests: Fix compilation error on AIX in 32-bit mode.
1610         * tests/test-execute-child.c: In order to get the original definition of
1611         fstat, don't use '#undef fstat' and '#undef stat'. Instead, arrange to
1612         include the system's <sys/stat.h> and use it before including other
1613         header files.
1615 2020-12-10  Bruno Haible  <bruno@clisp.org>
1617         windows-spawn: Relicense under LGPLv2+.
1618         * modules/windows-spawn (License): Change to LGPLv2+.
1620 2020-12-10  Bruno Haible  <bruno@clisp.org>
1622         execute, spawn-pipe: Fix memory leak on native Windows.
1623         * lib/windows-spawn.h (prepare_spawn): Add a second parameter.
1624         * lib/windows-spawn.c: Don't include xalloc.h.
1625         (quoted_arg_length, quoted_arg_string): New functions, extracted from
1626         prepare_spawn.
1627         (prepare_spawn): Use malloc instead of XNMALLOC. Allocate memory for all
1628         elements of *new_argv together.
1629         * modules/windows-spawn (Depends-on): Remove xalloc. Add malloc-posix.
1630         * lib/os2-spawn.h (prepare_spawn): Add a second parameter.
1631         * lib/os2-spawn.c: Don't include xalloc.h.
1632         (prepare_spawn): Use malloc instead of XNMALLOC. Allocate memory for all
1633         elements of *new_argv together.
1634         * lib/execute.c: Include xalloc.h.
1635         (execute): Check return value of prepare_spawn. Free the memory
1636         allocated by prepare_spawn.
1637         * modules/execute (Depends-on): Add xalloc-die.
1638         * lib/spawn-pipe.c: Include xalloc.h.
1639         (create_pipe): Check return value of prepare_spawn. Free the memory
1640         allocated by prepare_spawn.
1641         * modules/spawn-pipe (Depends-on): Add xalloc-die.
1643 2020-12-10  Bruno Haible  <bruno@clisp.org>
1645         findprog-in: Relicense under LGPLv2+.
1646         Paul Smith's approval is in
1647         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00072.html>.
1648         * modules/findprog-in (License): Change to LGPLv2+.
1650 2020-12-10  Bruno Haible  <bruno@clisp.org>
1652         findprog-in: Don't exit upon out-of-memory.
1653         * lib/findprog.h (find_in_given_path): Document ENOMEM as possible error
1654         code.
1655         * lib/findprog-in.c: Don't include xalloc.h.
1656         (find_in_given_path): Call concatenated_filename, not
1657         xconcatenated_filename. Call strdup, not xstrdup. Upon out-of-memory,
1658         return NULL with errno set.
1659         * modules/findprog-in (Depends-on): Remove xconcat-filename, xalloc. Add
1660         concat-filename, strdup-posix, malloc-posix.
1662 2020-12-09  Bruno Haible  <bruno@clisp.org>
1664         fmaf: Work around a bug on FreeBSD 12.2/arm.
1665         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Add one more test.
1666         * doc/posix-functions/fmaf.texi: Mention the FreeBSD bug.
1668 2020-12-09  Bruno Haible  <bruno@clisp.org>
1670         threadlib: Fix test-fstrcmp failure on FreeBSD 11.
1671         * m4/threadlib.m4 (gl_THREADLIB_BODY): When weak symbols are not present
1672         on FreeBSD, define PTHREAD_IN_USE_DETECTION_HARD.
1673         * lib/glthread/threadlib.c: Include <errno.h>.
1674         (glthread_in_use): For FreeBSD, provide an alternative implementation
1675         that uses pthread_key_create.
1677 2020-12-09  Bruno Haible  <bruno@clisp.org>
1679         math C++ tests: Fix compilation error in with clang >= 7 on FreeBSD.
1680         * lib/math.in.h (isnan): For clang >= 7 on FreeBSD, declare 'rpl_isnan',
1681         not 'isnan'.
1683 2020-12-08  Bruno Haible  <bruno@clisp.org>
1685         std-gnu11: Make compatible with Autoconf 2.70.
1686         * m4/std-gnu11.m4: Disable the entire file if Autoconf >= 2.70 is in
1687         use.
1689 2020-12-08  Bruno Haible  <bruno@clisp.org>
1691         argp: Avoid undefined behaviour when invoking qsort().
1692         This fixes a test-argp-2.sh test failure on macOS and FreeBSD.
1693         Reported by Jeffrey Walton <noloader@gmail.com> in
1694         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00085.html>.
1695         * lib/argp-help.c (group_cmp): Remove third argument.
1696         (hol_sibling_cluster_cmp, hol_cousin_cluster_cmp): New functions, based
1697         upon hol_cluster_cmp.
1698         (hol_cluster_cmp): Use hol_cousin_cluster_cmp.
1699         (hol_entry_cmp): Rewritten to implement a total order.
1701 2020-12-08  Bruno Haible  <bruno@clisp.org>
1703         argp: Improve comments.
1704         * lib/argp-help.c: Add sectioning comments. Write NULL to designate a
1705         null pointer.
1706         (struct hol_entry): Fix comment regarding sort order of group.
1707         (hol_entry_short_iterate, hol_entry_long_iterate): Add comment.
1708         (until_short, canon_doc_option, hol_entry_qcmp): Improve comment.
1709         (hol_cluster_is_child, argp_hol): Move functions.
1710         (HOL_ENTRY_PTRCMP): Remove unused macro.
1712 2020-12-08  Bruno Haible  <bruno@clisp.org>
1714         argp: Don't pass invalid arguments to isspace() and isalnum().
1715         * lib/argp-help.c (canon_doc_option): Cast character to 'unsigned int'
1716         before passing it to isspace() or isalnum().
1718 2020-12-08  Bruno Haible  <bruno@clisp.org>
1720         argp: Don't rely on undefined behaviour of _tolower().
1721         Patch by Eric Blake
1722         <https://lists.gnu.org/archive/html/bug-gnulib/2009-09/msg00287.html>.
1723         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values that are
1724         not upper-case.  Pass correct range to tolower.
1726 2020-12-07  Bruno Haible  <bruno@clisp.org>
1728         unicodeio: Fix wrong result on FreeBSD.
1729         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
1730         characters on all platforms.
1732 2020-12-07  Bruno Haible  <bruno@clisp.org>
1734         get-rusage-data tests: Avoid test failure on FreeBSD/x86_64.
1735         * tests/test-get-rusage-data.c (main): Don't expect a strict increase on
1736         FreeBSD systems.
1738 2020-12-07  Bruno Haible  <bruno@clisp.org>
1740         get-rusage-data: Fix link error on FreeBSD 12.2/arm64.
1741         * modules/get-rusage-data (configure.ac): Test whether sbrk exists.
1742         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit): Define
1743         trivially of sbrk is not available.
1744         * doc/glibc-functions/sbrk.texi: Mention that the function does not
1745         exist in FreeBSD 12.2/arm64.
1746         * doc/glibc-functions/brk.texi: Likewise.
1748 2020-12-07  Bruno Haible  <bruno@clisp.org>
1750         Correct interaction between gl_ANSI_CXX and AC_PROG_CXX.
1751         Suggested by Zack Weinberg in
1752         <https://savannah.gnu.org/support/?110294>.
1753         * m4/ansi-c++.m4 (gl_ANSI_CXX): Mark AC_PROG_CXX as provided.
1754         * modules/uchar-c++-tests: Revert the workaround from 2020-08-18.
1756 2020-12-07  Bruno Haible  <bruno@clisp.org>
1758         Tweak the Windows oldnames workaround.
1759         Reported by Daniel R. Hurtmans <Daniel.Hurtmans@ulb.ac.be> in
1760         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00073.html>.
1761         * lib/unistd.in.h: On native Windows, include <io.h> and <direct.h>
1762         always.
1763         (getcwd): Use _GL_CXXALIAS_MDA_CAST.
1764         * lib/stdlib.in.h (putenv): Likewise.
1766 2020-12-06  Paul Eggert  <eggert@cs.ucla.edu>
1768         doc: fix flat address space discussion
1769         * doc/gnulib-readme.texi (Other portability assumptions):
1770         Move the all-bits-zero assumption outside the flat address space
1771         section, since the two issues are independent.
1773         doc: document -static-libubsan more
1774         * doc/gnulib-readme.texi (High Quality): Document pros and cons of
1775         -static-libubsan a bit more.  Mostly cons.
1777 2020-12-06  Bruno Haible  <bruno@clisp.org>
1779         doc: Add more details regarding the undefined behaviour sanitizer.
1780         * doc/gnulib-readme.texi (High Quality): Describe
1781         -fsanitize-undefined-trap-on-error better.
1783 2020-12-06  Bruno Haible  <bruno@clisp.org>
1785         Do the Windows oldnames workaround through the C++ GNULIB_NAMESPACE.
1786         Reported by Daniel R. Hurtmans <Daniel.Hurtmans@ulb.ac.be> in
1787         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00029.html>.
1788         * lib/c++defs.h (_GL_CXXALIAS_MDA_CAST): New macro.
1789         * lib/fcntl.in.h (creat, open):  In C++ mode, when GNULIB_NAMESPACE is
1790         defined: 1. Define a symbol in this namespace. 2. Don't redirect using
1791         a preprocessor #define.
1792         * lib/math.in.h (j0, j1, jn, y0, y1, yn): Likewise.
1793         * lib/search.in.h (lfind, lsearch): Likewise.
1794         * lib/stdio.in.h (fcloseall, fdopen, fileno, getw, putw, tempnam):
1795         Likewise.
1796         * lib/stdlib.in.h (ecvt, fcvt, gcvt, mktemp, putenv): Likewise.
1797         * lib/string.in.h (memccpy, strdup): Likewise.
1798         * lib/sys_stat.in.h (chmod, umask): Likewise.
1799         * lib/time.in.h (tzset): Likewise.
1800         * lib/unistd.in.h (access, chdir, close, dup, dup2, execl, execle,
1801         execlp, execv, execve, execvp, execvpe, getcwd, getpid, isatty, lseek,
1802         read, rmdir, swab, unlink, write): Likewise.
1803         * lib/utime.in.h (utime): Likewise.
1804         * lib/wchar.in.h (wcsdup): Likewise.
1805         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FCLOSEALL.
1806         (gl_STDIO_H): Set HAVE_DECL_FCLOSEALL.
1807         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FCLOSEALL.
1808         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_ECVT,
1809         HAVE_DECL_FCVT, HAVE_DECL_GCVT.
1810         (gl_STDLIB_H): Set HAVE_DECL_ECVT, HAVE_DECL_FCVT, HAVE_DECL_GCVT.
1811         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_ECVT,
1812         HAVE_DECL_FCVT, HAVE_DECL_GCVT.
1813         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_EXECVPE.
1814         (gl_UNISTD_H): Set HAVE_DECL_EXECVPE.
1815         * modules/unistd (Makefile.am): Substitute HAVE_DECL_EXECVPE.
1816         * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCSDUP.
1817         (gl_WCHAR_H): Set HAVE_DECL_WCSDUP.
1818         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCSDUP.
1820 2020-12-06  Bruno Haible  <bruno@clisp.org>
1822         doc: Mention some missing function declarations.
1823         * doc/glibc-functions/execvpe.texi: Mention the missing declaration on
1824         AIX.
1825         * doc/glibc-functions/fcloseall.texi: Mention the missing declaration on
1826         FreeBSD.
1827         * doc/pastposix-functions/ecvt.texi: Mention the missing declaration on
1828         Cygwin.
1829         * doc/pastposix-functions/fcvt.texi: Likewise.
1830         * doc/pastposix-functions/gcvt.texi: Likewise.
1832 2020-12-06  Bruno Haible  <bruno@clisp.org>
1834         doc: Tweak example.
1835         * doc/intprops.texi (Checking Integer Overflow): Use 'printf', not
1836         'print'.
1838 2020-12-06  Bruno Haible  <bruno@clisp.org>
1840         filenamecat-tests: Use idx_t for nonnegative ptrdiff_t variables.
1841         * tests/test-filenamecat.c: Include idx.h.
1842         (main): Mark prefixlen as nonnegative.
1843         * modules/filenamecat-tests (Depends-on): Add idx.
1845 2020-12-06  Bruno Haible  <bruno@clisp.org>
1847         time_rz: Use idx_t for nonnegative ptrdiff_t variables.
1848         * lib/time_rz.c: Include idx.h.
1849         (save_abbr): Mark zone_size as nonnegative.
1850         * modules/time_rz (Depends-on): Add idx.
1852 2020-12-06  Bruno Haible  <bruno@clisp.org>
1854         parse-datetime: Use idx_t for nonnegative ptrdiff_t variables.
1855         * lib/parse-datetime.y: Include idx.h.
1856         (textint): Mark digits as nonnegative.
1857         (parser_control): Mark dates_seen, days_seen, local_zones_seen,
1858         dsts_seen, times_seen, zones_seen as nonnegative.
1859         (lookup_word): Mark wordlen as nonnegative.
1860         (yylex): Mark count as nonnegative.
1861         (parse_datetime2): Mark tzsize as nonnegative.
1862         * modules/parse-datetime (Depends-on): Add idx.
1864 2020-12-06  Bruno Haible  <bruno@clisp.org>
1866         fnmatch: Use idx_t for nonnegative ptrdiff_t variables.
1867         * lib/fnmatch.c: Include idx.h. In glibc, define idx_t directly.
1868         * lib/fnmatch_loop.c (EXT): Mark slen, new_used, plensize as
1869         nonnegative.
1870         * modules/fnmatch (Depends-on): Add idx.
1872 2020-12-06  Bruno Haible  <bruno@clisp.org>
1874         c-stack: Use idx_t for nonnegative ptrdiff_t variables.
1875         * lib/c-stack.c: Include idx.h.
1876         (die): Mark buflen as nonnegative.
1877         * modules/c-stack (Depends-on): Add idx.
1879 2020-12-06  Bruno Haible  <bruno@clisp.org>
1881         backupfile: Use idx_t for nonnegative ptrdiff_t variables.
1882         * lib/backupfile.c: Include idx.h.
1883         (numbered_backup): Mark base_offset as nonnegative.
1884         (backupfile_internal): Likewise.
1885         * modules/backup-rename (Depends-on): Add idx.
1886         * modules/backupfile (Depends-on): Likewise.
1888 2020-12-05  Paul Eggert  <eggert@cs.ucla.edu>
1890         doc: fix curved quotes issue
1891         * doc/gnulib.texi: Set txicodequoteundirected and
1892         txicodequotebacktick so that ` and ' in examples do not generate
1893         curved single quotes that do the wrong thing when cut and pasted.
1895         doc: mention static and dynamic checking
1896         * doc/gnulib-readme.texi (High Quality): Add a bit of advice
1897         for static and dynamic checking.
1899         intprops: Add INT_ADD_OK etc.
1900         * doc/intprops.texi (Checking Integer Overflow): New section.
1901         * lib/intprops.h: From a suggestion by Bruno Haible in:
1902         https://lists.gnu.org/r/bug-gnulib/2020-12/msg00051.html
1903         (SAFE_INT_ADD, SAFE_INT_SUBTRACT, SAFE_INT_MULTIPLY): New macros.
1905         doc: move exotic platfroms to Target Platforms
1906         * doc/gnulib-intro.texi (Supported Platforms)
1907         (Formerly Supported Platforms, Unsupported Platforms):
1908         New subsections, split off from Target Platforms.
1909         (Unsupported Platforms): Move the exotic-platform stuff here ...
1910         * doc/gnulib-readme.texi (Exotic platforms): ... from this removed
1911         section.
1913         doc: mention intptr_t etc. and IBM i
1914         * doc/gnulib-readme.texi (Other portability assumptions):
1915         Mention intptr_t and uintptr_t, and that arithmetic on them
1916         works in the usual way.
1917         (Exotic platforms): New section, containing material from
1918         the old 'Integer Portability' section.  Also mention IBM i.
1919         * doc/intprops.texi (Wraparound Arithmetic):
1920         Say that the macros work on unsigned integers too.
1921         (Integer Portability): Remove.
1923 2020-12-04  Bruno Haible  <bruno@clisp.org>
1925         utime: Fix a test failure on macOS 10.13.
1926         Reported by Martin Storsjö <martin@martin.st> in
1927         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
1928         * m4/utime.m4 (gl_FUNC_UTIME): Test whether utime handles trailing
1929         slashes on files.
1930         * lib/utime.c (utime): Add alternative implementation for Unix
1931         platforms.
1932         * modules/utime (Depends-on): Add stat.
1933         * doc/posix-functions/utime.texi: Mention the macOS 10.13 bug.
1934         * doc/posix-functions/lstat.texi: Mention that macOS 10.13 also has the
1935         trailing-slash bug.
1936         * doc/posix-functions/open.texi: Likewise.
1937         * doc/posix-functions/stat.texi: Likewise.
1938         * doc/posix-functions/symlink.texi: Likewise.
1940 2020-12-04  Paul Eggert  <eggert@cs.ucla.edu>
1942         intprops: update doc and mention Unisys
1943         * doc/gnulib-readme.texi (Other portability assumptions):
1944         Also mention ptrdiff_t when talking about widths and overflow.
1945         * doc/intprops.texi (Integer Properties): Summarize new section.
1946         (Arithmetic Type Properties): Document that EXPR_SIGNED no longer
1947         evaluates its argument.
1948         (Integer Bounds): Fix typo.
1949         (Wraparound Arithmetic): Remove obsolete comment about efficiency.
1950         Document that the _WRAPV macros now support pointers to unsigned
1951         integers.
1952         (Integer Range Overflow): Update SEI CERT citation.
1953         (Integer Portability): New subsection, which mentions
1954         the oddball Unisys platforms as non-Gnulib targets.
1956 2020-12-03  Bruno Haible  <bruno@clisp.org>
1958         idx: Clarify that idx_t always behaves like a signed type.
1959         Suggested by Paul Eggert in
1960         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00034.html>.
1961         * lib/idx.h: Clarify that idx_t always behaves like a signed type.
1962         Don't test UNSIGNED_IDX_T.
1964 2020-12-03  Bruno Haible  <bruno@clisp.org>
1966         idx: New module.
1967         * lib/idx.h: New file.
1968         * modules/idx: New file.
1969         * lib/canonicalize-lgpl.c: Include idx.h. Use idx_t instead of
1970         ptrdiff_t.
1971         * lib/canonicalize.c: Likewise.
1972         * modules/canonicalize-lgpl (Depends-on): Add idx.
1973         * modules/canonicalize (Depends-on): Likewise.
1975 2020-12-03  Bruno Haible  <bruno@clisp.org>
1977         fprintf-posix-tests: Avoid a test failure on macOS 10.13.
1978         Reported by Martin Storsjö <martin@martin.st> in
1979         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
1980         * tests/test-fprintf-posix3.c: Skip the test on macOS.
1981         (main): Return a different exit code at each point. Allow 100 KB extra
1982         memory consumption.
1983         * tests/test-fprintf-posix3.sh: Update. Remove the "get_rusage_as()
1984         doesn't work" diagnostic.
1986 2020-12-02  Paul Eggert  <eggert@cs.ucla.edu>
1988         canonicalize: refactor can_mode flag
1989         * lib/canonicalize.c (MULTIPLE_BITS_SET): Remove, replacing with ...
1990         (multiple_bits_set): ... this new static function.  Uses changed.
1991         (canonicalize_filename_mode): Refactor for clarity to avoid
1992         modifying the CAN_MODE argument.
1994         canonicalize: prefer signed integer types
1995         * lib/canonicalize.c: Include stddef.h, for ptrdiff_t.
1996         (seen_triple, canonicalize_filename_mode): Prefer signed to
1997         unsigned types where either will do, as they avoid some glitches
1998         in comparisons and can trap on overflow when debugging.
2000         canonicalize: fix most of another EOVERFLOW issue
2001         * lib/canonicalize.c (canonicalize_filename_mode):
2002         Do not call stat if fewer than 20 symlinks have been traversed.
2003         This avoids EOVERFLOW failure in the common case where there
2004         are not that many symlinks, while continuing to catch loops
2005         (or fail due to EOVERFLOW) in the unusual case when there
2006         are many symlinks to traverse.
2008         canonicalize: do not assume symlinks have st_ino
2009         * lib/canonicalize.c (canonicalize_filename_mode):
2010         When checking for loops, use st_dev and st_ino from the parent
2011         directory not from the symlink, as pre-2017 POSIX says these
2012         members are not reliable for symlinks.  Couple this with START
2013         (the remaining file name to be resolved), not NAME (the whole file
2014         name with START as its suffix).
2015         * modules/canonicalize (Depends-on): Depend on stat, not lstat.
2017         canonicalize: fix EOVERFLOW bug
2018         * lib/canonicalize.c (canonicalize_filename_mode):
2019         When testing whether a directory entry is a symbolic link, or a
2020         directory or other, do not use lstat or stat or
2021         areadlink_with_size.  Just use areadlink, as this suffices and it
2022         avoids the EOVERFLOW problem that lstat and stat have.
2023         * modules/canonicalize (Depends-on): Depend on areadlink instead
2024         of areadlink-with-size and stat.
2026         canonicalize-lgpl: fix EOVERFLOW bug
2027         * lib/canonicalize-lgpl.c: Do not include <sys/stat.h>.
2028         (__realpath): Do not use lstat.  Just use readlink, as this
2029         suffices and it avoids the EOVERFLOW problem that lstat has.
2030         * modules/canonicalize-lgpl (Depends-on): Remove lstat, sys_stat.
2032 2020-12-02  Bruno Haible  <bruno@clisp.org>
2034         strsignal-tests: Fix test failure on macOS 10.13.
2035         Reported by Martin Storsjö <martin@martin.st> in
2036         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
2037         * tests/test-strsignal.c (ASSERT_DESCRIPTION): Allow the actual result
2038         to be longer than the expected result.
2040 2020-12-02  Bruno Haible  <bruno@clisp.org>
2042         Fix compilation errors in test-math-c++.cc on FreeBSD 12.2/arm64.
2043         * lib/math.in.h (_GL_INCLUDING_MATH_H): New macro, to work around
2044         recursive self-include problem on FreeBSD 12.2 in C++ mode.
2046 2020-12-02  Bruno Haible  <bruno@clisp.org>
2048         spawn-pipe: Allow caller to specify directory for the subprocess.
2049         * lib/spawn-pipe.h (create_pipe_out, create_pipe_in, create_pipe_bidi):
2050         Add directory argument.
2051         * lib/spawn-pipe.c: Include canonicalize.h, filename.h, findprog.h.
2052         (create_pipe): Add directory argument. If specified, resolve the program
2053         file name and make it absolute, first. Pass the directory to spawnpvech
2054         and posix_spawn_file_actions_addchdir.
2055         (create_pipe_bidi, create_pipe_in, create_pipe_out): Add directory
2056         argument.
2057         * modules/spawn-pipe (Depends-on): Add canonicalize, filename,
2058         findprog-in, posix_spawn, posix_spawn_file_actions_addchdir.
2059         * tests/test-spawn-pipe-main.c (test_pipe): Update.
2060         * NEWS: Mention the change.
2061         * lib/csharpcomp.c (compile_csharp_using_mono,
2062         compile_csharp_using_sscli): Update.
2063         * lib/javacomp.c (is_envjavac_gcj, is_envjavac_gcj43, is_gcj_present,
2064         is_gcj_43): Update.
2065         * lib/javaversion.c (execute_and_read_line): Update.
2066         * lib/pipe-filter-gi.c (pipe_filter_gi_create): Update.
2067         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Update.
2069 2020-12-02  Bruno Haible  <bruno@clisp.org>
2071         execute: Allow caller to specify directory for the subprocess.
2072         * lib/execute.h (execute): Add directory argument.
2073         * lib/execute.c: Include canonicalize.h, filename.h, findprog.h.
2074         (execute): Add directory argument. If specified, resolve the program
2075         file name and make it absolute, first. Pass the directory to spawnpvech
2076         and posix_spawn_file_actions_addchdir.
2077         * modules/execute (Depends-on): Add canonicalize, filename, findprog-in,
2078         posix_spawn, posix_spawn_file_actions_addchdir.
2079         * tests/test-execute-main.c: Add test for passing a directory.
2080         * tests/test-execute-child.c: Likewise.
2081         * tests/test-execute.sh: Update.
2082         * modules/execute-tests (Depends-on): Add mkdir.
2083         * NEWS: Mention the change.
2084         * lib/csharpcomp.c (compile_csharp_using_sscli): Update.
2085         * lib/csharpexec.c (execute_csharp_using_mono,
2086         execute_csharp_using_sscli): Update.
2087         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
2088         compile_using_javac, compile_using_jikes, is_javac_present,
2089         is_jikes_present): Update.
2090         * lib/javaexec.c (execute_java_class): Update.
2092 2020-12-01  Bruno Haible  <bruno@clisp.org>
2094         vma-iter: Add support for macOS11/arm64.
2095         Patch suggested by Hill Ma <maahiuzeon@gmail.com> in
2096         <https://gitlab.com/gnu-clisp/clisp/-/issues/27>
2097         and by Martin Storsjö <martin@martin.st> in
2098         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
2099         * lib/vma-iter.c (vma_iterate): On arm64, use 64-bit type definitions.
2101 2020-12-01  Bruno Haible  <bruno@clisp.org>
2103         spawn-pipe: Fix handling of OS/2 kLIBC.
2104         Reported by KO Myung-Hun <komh78@gmail.com> in
2105         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00005.html>.
2106         * modules/spawn-pipe (configure.ac): Use the common idiom for
2107         recognizing the OS/2 operating system.
2109 2020-11-30  Bruno Haible  <bruno@clisp.org>
2111         execute: Fix uninitialized use of errno.
2112         * lib/execute.c (execute): Preserve errno across several system calls.
2114 2020-11-30  Bruno Haible  <bruno@clisp.org>
2116         access tests: Fix test failure on native Windows.
2117         * tests/test-access.c (main): Change permissions of f2 file before
2118         attempting to remove it.
2120 2020-11-30  Paul Eggert  <eggert@cs.ucla.edu>
2122         faccessat: link with $(LIB_EACCESS)
2123         * modules/faccessat (Link:): Add $(LIB_EACCESS), since this
2124         module depends on euidaccess.
2126 2020-11-30  Bruno Haible  <bruno@clisp.org>
2128         execute, spawn-pipe: Make multithread-safe on native Windows.
2129         * lib/windows-spawn.h: Include <stdint.h>, <windows.h>.
2130         (dup_safer_noinherit, undup_safer_noinherit): Remove declarations.
2131         (spawnpvech): New declaration.
2132         * lib/windows-spawn.c: Include <stdio.h>, <process.h>, findprog.h.
2133         Don't include <unistd.h>, cloexec.h, error.h, gettext.h.
2134         (_): Remove macro.
2135         (dup_noinherit, fd_safer_noinherit, dup_safer_noinherit,
2136         undup_safer_noinherit): Remove functions.
2137         (spawnpvech): New function.
2138         * modules/windows-spawn (Depends-on): Add findprog-in, stdint. Remove
2139         cloexec, dup2, error, gettext-h.
2140         * lib/execute.c: Include msvc-nothrow.h.
2141         (execute) [WIN32]: Use _get_osfhandle, spawnpvech instead of _spawnvpe.
2142         * lib/spawn-pipe.c: Include msvc-nothrow.h.
2143         (create_pipe) [WIN32]: Use _get_osfhandle, DuplicateHandle, spawnpvech
2144         instead of _spawnvpe.
2145         * modules/execute (Depends-on): Add msvc-nothrow.
2146         * modules/spawn-pipe (Depends-on): Likewise.
2148 2020-11-30  Bruno Haible  <bruno@clisp.org>
2150         execute, spawn-pipe: Improve documentation.
2151         * lib/execute.h: Describe progname, prog_path, prog_argv.
2152         * lib/spawn-pipe.h: Likewise.
2154 2020-11-30  Bruno Haible  <bruno@clisp.org>
2156         execute tests: Add more tests.
2157         * tests/test-execute-main.c: Add tests for reading, writing, isatty on
2158         inherited file descriptors >= 3.
2159         * tests/test-execute-child.c: Likewise.
2160         * tests/test-execute.sh: Update.
2162 2020-11-30  Bruno Haible  <bruno@clisp.org>
2164         havelib: Fix for non-ELF platforms (regression 2019-11-17).
2165         Reported by comex <comexk@gmail.com> in
2166         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00188.html>.
2167         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On non-ELF platforms,
2168         don't expect an ELF header.
2170 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
2172         bitset: use integer_length in table implementation
2173         * lib/bitset/table.c (tbitset_list_reverse): Use
2174         BITSET_FOR_EACH_BIT_REVERSE.
2176 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
2178         bitset: use integer_length in list implementation
2179         * lib/bitset/list.c (lbitset_list_reverse): Use
2180         BITSET_FOR_EACH_BIT_REVERSE.
2182 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
2184         bitset: use integer_length in vector implementation
2185         * lib/bitset/array.c (vbitset_list_reverse): Use
2186         BITSET_FOR_EACH_BIT_REVERSE.
2188 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
2190         bitset: use integer_length in array implementation
2191         * modules/bitset (Depends-on): Add integer_length_l.
2192         * lib/bitset/base.h (bitset_fls_, BITSET_FOR_EACH_BIT_REVERSE): New.
2193         * lib/bitset/array.c (abitset_list_reverse): Use it.
2195 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
2197         bitset: style: use consistent names
2198         * bitset/list.c (lbitset_list_reverse): Rename 'bcount' as 'bitcnt',
2199         and 'boffset' as 'bitoff', for consistency with the other
2200         implementations.
2201         * bitset/table.c (tbitset_list_reverse): Likewise.
2203 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
2205         bitset: style: sort header
2206         * lib/bitset/base.h (bitset_ffs): Rename as...
2207         (bitset_ffs_): this.
2208         (bitset_ffs_, BITSET_FOR_EACH_BIT): Move to better places.
2210 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
2212         bitset: tests: check BITSET_FOR_EACH_REVERSE
2213         * tests/test-bitset.c (compare, check_zero, check_one_bit, check_ones):
2214         Check BITSET_FOR_EACH_REVERSE.
2216 2020-11-29  Bruno Haible  <bruno@clisp.org>
2218         spawn-pipe tests: Fix test failure with MSVC.
2219         * tests/test-spawn-pipe-child.c: Include <stdint.h>.
2220         (gl_msvc_invalid_parameter_handler): New function.
2221         (main): Set a global invalid-parameter handler.
2222         * modules/spawn-pipe-tests (Depends-on): Add msvc-inval, stdint.
2224 2020-11-29  Bruno Haible  <bruno@clisp.org>
2226         execute: Add tests.
2227         * tests/test-execute.sh: New file.
2228         * tests/test-execute-main.c: New file.
2229         * tests/test-execute-child.c: New file.
2230         * modules/execute-tests: New file.
2232 2020-11-29  Bruno Haible  <bruno@clisp.org>
2234         fcntl: Work around NetBSD bug with F_DUPFD_CLOEXEC.
2235         * m4/fcntl.m4 (gl_FUNC_FCNTL): Test whether F_DUPFD_CLOEXEC actually
2236         works.
2237         * lib/fcntl.c (rpl_fcntl_DUPFD_CLOEXEC): On NetBSD, use the same
2238         fallback implementation as on Haiku.
2239         * tests/test-fcntl.c (main): Add a test whether F_DUPFD_CLOEXEC is
2240         effective.
2241         * doc/posix-functions/fcntl.texi: Mention the NetBSD bug.
2243 2020-11-29  Bruno Haible  <bruno@clisp.org>
2245         spawn-pipe: Fix build on OS/2 kLIBC (regression 2020-11-28).
2246         * lib/os2-spawn.h: New file, based on lib/windows-spawn.h.
2247         * lib/os2-spawn.c: New file, based on lib/windows-spawn.c.
2248         * lib/spawn-pipe.c: On OS/2 kLIBC, include "os2-spawn.h".
2249         * lib/windows-spawn.c: Remove modifications for kLIBC.
2250         * modules/spawn-pipe (Files): Add the new files.
2251         (configure.ac): Arrange to compile os2-spawn.c on OS/2.
2253 2020-11-28  Bruno Haible  <bruno@clisp.org>
2255         asyncsafe-spin: Fix compilation error with GCC on 32-bit SPARC.
2256         Reported by Paul Eggert in
2257         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00066.html>.
2258         * m4/sparcv8+.m4: New file.
2259         * modules/sparcv8+: New file.
2260         * modules/asyncsafe-spin (Depends-on): Add sparcv8+.
2262 2020-11-28  Bruno Haible  <bruno@clisp.org>
2264         asyncsafe-spin: Fix build error with GCC on 32-bit SPARC.
2265         * lib/asyncsafe-spin.c: Don't use GCC >= 4.1 primitives on SPARC.
2267 2020-11-28  Bruno Haible  <bruno@clisp.org>
2269         windows-spawn: New module.
2270         * lib/windows-spawn.h: Renamed from lib/w32spawn.h. Remove
2271         implementations.
2272         * lib/windows-spawn.c: Renamed from lib/w32spawn.h.
2273         * modules/windows-spawn: New file.
2274         * lib/execute.c: Include "windows-spawn.h" instead of "w32spawn.h".
2275         * lib/spawn-pipe.c: Likewise.
2276         * modules/execute (Files): Remove lib/w32spawn.h.
2277         (Depends-on): Add windows-spawn. Remove cloexec, msvc-nothrow, strpbrk,
2278         xalloc.
2279         (Makefile.am): Remove w32spawn.h from lib_SOURCES.
2280         * modules/spawn-pipe (Files): Remove lib/w32spawn.h.
2281         (Depends-on): Add windows-spawn. Remove cloexec, msvc-nothrow, strpbrk,
2282         xalloc.
2283         (Makefile.am): Remove w32spawn.h from lib_SOURCES.
2285 2020-11-27  Bruno Haible  <bruno@clisp.org>
2287         ssfmalloc tests: Port to macOS 11.
2288         * tests/test-ssfmalloc.c (PAGESIZE_MAX): Set to 16384, not 8192.
2290 2020-11-26  Bruno Haible  <bruno@clisp.org>
2292         Fix dependencies of modules that use '_exit' on native Windows.
2293         Reported by Jim Meyering in
2294         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00159.html>.
2295         * modules/_Exit (Depends-on): Add unistd.
2296         * modules/closein (Depends-on): Likewise.
2297         * modules/closeout (Depends-on): Likewise.
2298         * modules/forkpty (Depends-on): Likewise.
2299         * modules/posix_spawn-internal (Depends-on): Likewise.
2300         * modules/savewd (Depends-on): Likewise.
2301         * modules/stat-time-tests (Depends-on): Likewise.
2303 2020-11-26  Bruno Haible  <bruno@clisp.org>
2305         raise-tests: Fix compilation error on MSVC (regression 2020-11-25).
2306         * modules/raise-tests (Depends-on): Add unistd.
2307         * doc/posix-functions/_exit.texi: Mention the 'unistd' module.
2309 2020-11-25  Jim Meyering  <meyering@fb.com>
2311         setlocale-tests: do not trigger gcc's -Wanalyzer-possible-null-argument
2312         * tests/test-setlocale1.c (main): Assert that each strcmp argument is
2313         non-NULL, since we don't bother handing strdup failure.
2315         raise-tests: avoid GCC 11's new exit-from-signal-handler warning
2316         gcc's -Wanalyzer-unsafe-call-within-signal-handler exposed this.
2317         * tests/test-raise.c: Include unistd.h.
2318         (handler): Use _exit, not exit.
2320 2020-11-23  Bruno Haible  <bruno@clisp.org>
2322         Use the correct printf format attribute for mingw.
2323         Reported by Reuben Thomas <rrt@sc3d.org> in
2324         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00133.html>.
2326         * modules/vfprintf-posix (configure.ac): Define GNULIB_VFPRINTF_POSIX.
2327         * modules/vprintf-posix (configure.ac): Define GNULIB_VPRINTF_POSIX.
2329         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF_STANDARD,
2330         _GL_ATTRIBUTE_SPEC_PRINTF_SYSTEM): New macros.
2331         (_GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD): Renamed from
2332         _GL_ATTRIBUTE_FORMAT_PRINTF. Use _GL_ATTRIBUTE_SPEC_PRINTF_STANDARD.
2333         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use
2334         _GL_ATTRIBUTE_SPEC_PRINTF_SYSTEM.
2336         * modules/vasnprintf (Depends-on): Add stdio.
2337         * lib/vasnprintf.h: Include <stdio.h>.
2338         (asnprintf, vasnprintf): Use the standard printf format attribute.
2340         * modules/xvasprintf (Depends-on): Add stdio.
2341         * lib/xvasprintf.h: Include <stdio.h>.
2342         (xasprintf, xvasprintf): Use the standard printf format attribute.
2344         * modules/xprintf (Depends-on): List stdio first.
2345         * lib/xprintf.h (xprintf, xvprintf): Use a printf format attribute that
2346         depends on GNULIB_VPRINTF_POSIX.
2347         (xfprintf, xvfprintf): Use a printf format attribute that depends on
2348         GNULIB_VFPRINTF_POSIX.
2350         * modules/c-vasnprintf (Depends-on): Add stdio.
2351         * lib/c-vasnprintf.h: Include <stdio.h>.
2352         (c_vasnprintf): Use the standard printf format attribute.
2354         * modules/c-vasprintf (Depends-on): Add stdio.
2355         * lib/c-vasprintf.h: Include <stdio.h>.
2356         (c_asprintf, c_vasprintf): Use the standard printf format attribute.
2358         * modules/c-vsnprintf (Depends-on): Add stdio.
2359         * lib/c-vsnprintf.h: Include <stdio.h>.
2360         (c_vsnprintf): Use the standard printf format attribute.
2362         * modules/c-snprintf (Depends-on): Add stdio.
2363         * lib/c-snprintf.h: Include <stdio.h>.
2364         (c_snprintf): Use the standard printf format attribute.
2366         * modules/c-xvasprintf (Depends-on): Add stdio.
2367         * lib/c-xvasprintf.h: Include <stdio.h>.
2368         (c_xasprintf, c_xvasprintf): Use the standard printf format attribute.
2370         * modules/error (Depends-on): Depend on stdio always.
2371         * lib/error.h: Include <stdio.h>.
2372         (_GL_ATTRIBUTE_SPEC_PRINTF): Remove macro.
2373         (error, error_at_line): Use a printf format attribute that depends on
2374         GNULIB_VFPRINTF_POSIX.
2375         * lib/error.c (_GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD): Renamed from
2376         _GL_ATTRIBUTE_FORMAT_PRINTF.
2378         * modules/verror (Depends-on): Add stdio.
2379         * lib/verror.h: Include <stdio.h>. Don't include "error.h".
2380         (verror, verror_at_line): Use the standard printf format attribute.
2381         * lib/verror.c: Include "error.h".
2383         * modules/argp (Depends-on): Add stdio.
2384         * lib/argp.h (argp_error, __argp_error, argp_failure, __argp_failure):
2385         Use a printf format attribute that depends on GNULIB_VFPRINTF_POSIX.
2387         * modules/libtextstyle-optional (Depends-on): Add stdio.
2388         * lib/textstyle.in.h (ostream_printf, ostream_vprintf): Use the standard
2389         printf format attribute.
2391         * tests/test-nonblocking-misc.h (dbgfprintf): Use the standard printf
2392         format attribute.
2394 2020-11-23  Pádraig Brady  <P@draigBrady.com>
2396         selinux-at, selinux-h: use const correct declarations
2397         * lib/se-selinux.in.h: Use const for "set" functions,
2398         to match current selinux, and support cleaner user code.
2399         * lib/selinux-at.c: Likewise.
2400         * lib/selinux-at.h: Likewise.
2402 2020-11-22  Paul Eggert  <eggert@cs.ucla.edu>
2404         canonicalize-lgpl: fix memory leak
2405         * lib/canonicalize-lgpl.c (__realpath): Fix unlikely memory leak,
2406         which could have occurred if BUF was so large that malloc was
2407         called.  Do this by allocating EXTRA_BUF and BUF at the same time;
2408         this eliminates the need to free BUF separately.
2410 2020-11-22  Bruno Haible  <bruno@clisp.org>
2412         Fix missing module dependencies to 'xalloc' (regression 2020-10-19).
2413         * modules/xvasprintf (Depends-on): Add xalloc.
2414         * modules/pipe-filter-gi (Depends-on): Likewise.
2415         * modules/execute (Depends-on): Likewise, for w32spawn.h.
2416         * modules/spawn-pipe (Depends-on): Likewise.
2418 2020-11-22  Jose E. Marchesi  <jemarch@gnu.org>
2420         bootstrap: add option hooks
2421         * build-aux/bootstrap (bootstrap_print_option_usage_hook): Define.
2422         (bootstrap_option_hook): Likewise.
2423         (usage): Call bootstrap_print_option_usage_hook.
2425 2020-11-22  Bruno Haible  <bruno@clisp.org>
2427         argp: Don't break getprogname on non-glibc systems.
2428         * m4/argp.m4 (gl_ARGP): Don't expect <argp.h> to exist when testing for
2429         program_invocation_name and program_invocation_short_name.
2431 2020-11-22  Bruno Haible  <bruno@clisp.org>
2433         doc: Document <link.h>.
2434         * doc/glibc-headers/link.texi: New file.
2435         * doc/gnulib.texi: Include it.
2437 2020-11-22  Bruno Haible  <bruno@clisp.org>
2439         doc: Add references to the LSB.
2440         * doc/glibc-functions/*.texi: Add references to LSB 5.0.
2441         * doc/posix-functions/*.texi: Likewise.
2443 2020-11-22  Bruno Haible  <bruno@clisp.org>
2445         doc: Fix a makeinfo warning (regression 2020-11-03).
2446         * doc/posix-functions/aligned_alloc.texi: Add missing @item.
2448 2020-11-21  Paul Eggert  <eggert@cs.ucla.edu>
2450         parse-datetime: fix printf format typo
2451         * lib/parse-datetime.y (parse_datetime2): Fix format typo in
2452         previous patch to this file.  Problem reported by Chris Elvidge in
2453         <https://bugs.gnu.org/44763#32>.
2455         setlocale-null-tests: work around GCC bug 44511
2456         * tests/test-setlocale_null-mt-all.c:
2457         * tests/test-setlocale_null-mt-one.c:
2458         Ignore -Wreturn-type, to work around GCC bug 44511.
2460         nl_langinfo-tests: work around GCC bug 44511
2461         * tests/test-nl_langinfo-mt.c: Ignore -Wreturn-type, to work
2462         around a GCC bug <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44511>.
2463         Problem reported for GNU grep by Andreas Schwab
2464         <https://bugs.gnu.org/44535>.
2466         selinux-h: add stubs for selabel_open etc.
2467         Coreutils with --enable-gcc-warnings does not build on Ubuntu 20.10
2468         because matchpathcon is deprecated in favor of selabel_open etc.,
2469         so this patch adds stubs for these functions.
2470         * lib/se-label.c, lib/se-label.in.h, m4/selinux-label-h.m4: New files.
2471         * lib/se-selinux.in.h (struct selinux_opt): Add incomplete decl,
2472         as it is needed for selabel_open and selinux/selinux.h declares
2473         this type here.
2474         * modules/selinux-h (Files): Add the new files.
2475         (configure.ac): Add gl_HEADERS_SELINUX_LABEL_H.
2476         (lib_SOURCES): Add se-label.in.h, se-label.c.
2477         (BUILT_SOURCES): Add $(SELINUX_LABEL_H).
2478         (selinux/label.h): New rule, mimicking selinux/context.h.
2479         (MOSTLYCLEANFILES): Add selinux/label.h, selinux/label.h-t.
2480         (Include): Add selinux/label.h.
2482 2020-11-21  Bruno Haible  <bruno@clisp.org>
2484         Update after 'test-driver' in Automake changed.
2485         * build-aux/test-driver.diff: Rebase.
2487 2020-11-21  Daiki Ueno  <ueno@gnu.org>
2489         read-file: remove dead assignment
2490         * lib/read-file.c (fread_file): Remove dead assignment when
2491         RF_SENSITIVE is set, flagged by clang-analyzer.
2493 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
2495         bitset: tests: exercise the stats too
2497         * tests/test-bitset.c: Display the stats at the end of the test.
2498         * lib/bitset/stats.c (bitset_log_histogram_print): When diplaying the
2499         last bin, display "256-..." rather that "256-511", since the last bin
2500         does count item greater than or equal to 256.
2502 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
2504         bitset: tests: try harder to break it
2505         * tests/test-bitset.c (compare): Be ready to use bitsets larger than
2506         BITSET_LIST_SIZE.
2507         (main): Likewise.
2508         While at it, also exercise super small bitsets.
2510 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
2512         bitset: use ffs where possible in the vector implementation
2513         * lib/bitset/vector.c (vbitset_list): Use BITSET_FOR_EACH_BIT.
2515 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
2517         bitset: use ffs where possible in the table implementation
2518         * lib/bitset/table.c (tbitset_list): Use BITSET_FOR_EACH_BIT.
2520 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
2522         bitset: check empty and full bitsets
2523         * tests/test-bitset.c (check_zero, check_ones): New.
2524         (check_attributes): Use them.
2526 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
2528         bitset: be sure to always return a value
2529         * lib/bitset/array.c (abitset_small_list): Always update *next and
2530         return a value.
2532 2020-11-19  Siddhesh Poyarekar  <siddhesh@gotplt.org>
2534         vcs-to-changelog: Expect spaces in file names
2535         Reported by Thierry Bothorel <thierry.bothorel@zaclys.net> in
2536         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00040.html>,
2537         * build-aux/vcstocl/vcs_git.py (exec_git_cmd): Do not transform
2538         tabs to spaces.
2539         (list_changes): Use tabs to identify file names.
2541 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
2543         bitset: strengthen tests
2544         * tests/test-bitset.c (compare): Also check count.
2545         Deal only with random values, move the one-bit tests to...
2546         (check_one_bit): this new function.
2547         (check_attributes): Call it.
2549 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
2551         bitset: fix iteration over table bitsets
2552         * lib/bitset/table.c (tbitset_list): Update bitno when windex is.
2554 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
2556         bitset: rename internal details for consistency
2557         * lib/bitset/table.c: Rename all the EBITSET_ symbols as TBITSET_.
2559 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
2561         bitset: test: run deterministic tests on several bitset sizes
2562         * tests/test-bitset.c (check_attributes): Run it with small and large
2563         sizes.
2565 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
2567         bitset: use ffs where possible in the list implementation
2568         * lib/bitset/list.c (lbitset_list): Use BITSET_FOR_EACH_BIT.
2570 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
2572         bitset: use ffs where possible in array implementation
2573         * lib/bitset/array.c (abitset_small_list): Use BITSET_FOR_EACH_BIT.
2575 2020-11-17  Bruno Haible  <bruno@clisp.org>
2577         posixcheck: Don't enable GNULIB_POSIXCHECK in C++ mode.
2578         Reported by Tom G. Christensen <tgc@jupiterrise.com> in
2579         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00062.html>.
2580         * m4/posixcheck.m4 (gl_POSIXCHECK): Don't define GNULIB_POSIXCHECK in
2581         C++ mode.
2583 2020-11-17  Bruno Haible  <bruno@clisp.org>
2585         Fix error when GNULIB_POSIXCHECK is enabled (regression 2019-06-04).
2586         * lib/unistd.in.h (copy_file_range): Don't assume that copy_file_range
2587         is always declared.
2588         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether copy_file_range is
2589         declared.
2591 2020-11-17  Bruno Haible  <bruno@clisp.org>
2593         Fix link errors on AIX.
2594         * modules/clean-temp (Link): Link with $(LIBTHREAD).
2595         * modules/getumask (Link): Link with $(LIBTHREAD).
2596         * modules/getumask-tests (Makefile.am): Link test-getumask with
2597         $(LIBTHREAD).
2598         * modules/supersede (Link): Link with $(LIBTHREAD).
2599         * modules/supersede-tests (Makefile.am): Link test-supersede with
2600         $(LIBTHREAD).
2601         * modules/fatal-signal (Link): New section.
2602         * modules/execute (Link): New section.
2603         * modules/csharpexec (Link): Link with $(LIBTHREAD).
2604         * modules/javaexec (Link): Link with $(LIBTHREAD).
2605         * modules/spawn-pipe (Link): New section.
2606         * modules/spawn-pipe-tests (Makefile.am): Link test-spawn-pipe-main with
2607         $(LIBTHREAD).
2608         * modules/csharpcomp (Link): Link with $(LIBTHREAD).
2609         * modules/javacomp (Link): Link with $(LIBTHREAD).
2610         * modules/javaversion (Link): Link with $(LIBTHREAD).
2611         * modules/pipe-filter-gi (Link): New section.
2612         * modules/pipe-filter-gi-tests (Makefile.am): Link test-pipe-filter-gi1,
2613         test-pipe-filter-gi2-main with $(LIBTHREAD).
2614         * modules/pipe-filter-ii (Link): New section.
2615         * modules/pipe-filter-ii-tests (Makefile.am): Link test-pipe-filter-ii1,
2616         test-pipe-filter-ii2-main with $(LIBTHREAD).
2617         * modules/term-style-control (Link): New section.
2618         * modules/term-style-control-tests (Makefile.am): Link
2619         test-term-style-control-hello, test-term-style-control-yes with
2620         $(LIBTHREAD).
2621         * modules/wait-process (Link): New section.
2622         * modules/nonblocking-pipe-tests (Makefile.am): Link
2623         test-nonblocking-pipe-main with $(LIBTHREAD).
2624         * modules/nonblocking-socket-tests (Makefile.am): Link
2625         test-nonblocking-socket-main with $(LIBTHREAD).
2627 2020-11-16  Bruno Haible  <bruno@clisp.org>
2629         Fix link errors on platforms with libunistring.
2630         * modules/c32isalnum (Link): New section.
2631         * modules/c32isalnum-tests (Makefile.am): Link test-c32isalnum with
2632         $(LIBUNISTRING).
2633         * modules/c32isalpha (Link): New section.
2634         * modules/c32isalpha-tests (Makefile.am): Link test-c32isalpha with
2635         $(LIBUNISTRING).
2636         * modules/c32isblank (Link): New section.
2637         * modules/c32isblank-tests (Makefile.am): Link test-c32isblank with
2638         $(LIBUNISTRING).
2639         * modules/c32iscntrl (Link): New section.
2640         * modules/c32iscntrl-tests (Makefile.am): Link test-c32iscntrl with
2641         $(LIBUNISTRING).
2642         * modules/c32isdigit (Link): New section.
2643         * modules/c32isdigit-tests (Makefile.am): Link test-c32isdigit with
2644         $(LIBUNISTRING).
2645         * modules/c32isgraph (Link): New section.
2646         * modules/c32isgraph-tests (Makefile.am): Link test-c32isgraph with
2647         $(LIBUNISTRING).
2648         * modules/c32islower (Link): New section.
2649         * modules/c32islower-tests (Makefile.am): Link test-c32islower with
2650         $(LIBUNISTRING).
2651         * modules/c32isprint (Link): New section.
2652         * modules/c32isprint-tests (Makefile.am): Link test-c32isprint with
2653         $(LIBUNISTRING).
2654         * modules/c32ispunct (Link): New section.
2655         * modules/c32ispunct-tests (Makefile.am): Link test-c32ispunct with
2656         $(LIBUNISTRING).
2657         * modules/c32isspace (Link): New section.
2658         * modules/c32isspace-tests (Makefile.am): Link test-c32isspace with
2659         $(LIBUNISTRING).
2660         * modules/c32isupper (Link): New section.
2661         * modules/c32isupper-tests (Makefile.am): Link test-c32isupper with
2662         $(LIBUNISTRING).
2663         * modules/c32isxdigit (Link): New section.
2664         * modules/c32isxdigit-tests (Makefile.am): Link test-c32isxdigit with
2665         $(LIBUNISTRING).
2666         * modules/unicodeio (Link): Mention $(LIBUNISTRING).
2667         * modules/unicodeio-tests (Makefile.am): Link test-unicodeio with
2668         $(LIBUNISTRING).
2670 2020-11-16  Bruno Haible  <bruno@clisp.org>
2672         Fix link errors on platforms with libintl (e.g. Solaris and AIX).
2673         Reported by Tom G. Christensen <tgc@jupiterrise.com> in
2674         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00062.html>.
2675         * modules/getumask-tests (Makefile.am): Link test-getumask with
2676         $(LIBINTL).
2677         * modules/stack-tests (Makefile.am): Link test-stack with $(LIBINTL).
2678         * modules/supersede-tests (Makefile.am): Link test-supersede with
2679         $(LIBINTL).
2680         * modules/unicodeio-tests (Makefile.am): Link test-unicodeio with
2681         $(LIBINTL).
2683 2020-11-16  Bruno Haible  <bruno@clisp.org>
2685         getumask: Document link dependencies.
2686         * modules/getumask (Link): New section.
2688 2020-11-16  Bruno Haible  <bruno@clisp.org>
2690         Update link dependencies in modules after 2020-09-09 change.
2691         * modules/tempname (Link): Add $(LIB_CLOCK_GETTIME).
2692         * modules/mkdtemp (Link): Likewise.
2693         * modules/mkostemp (Link): Likewise.
2694         * modules/mkostemps (Link): Likewise.
2695         * modules/mkstemp (Link): Likewise.
2696         * modules/mkstemps (Link): Likewise.
2697         * modules/supersede (Link): Likewise.
2698         * modules/tmpfile (Link): Likewise.
2699         * modules/tmpfile-safer (Link): Likewise.
2701 2020-11-15  Paul Eggert  <eggert@cs.ucla.edu>
2703         getumask-tests: port to Solaris 10 etc.
2704         Problem reported by Tom Christensen in:
2705         https://lists.gnu.org/r/bug-gnulib/2020-11/msg00062.html
2706         * modules/getumask-tests (test_getumask_LDADD):
2707         Add $(LIB_CLOCK_GETTIME).
2709 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
2711         bitset: use ffsl to accelerate iterations over set bits
2712         Suggested by Bruno Haible.
2713         * modules/bitset: Depend upon ffsl.
2714         * lib/bitset/base.h (bitset_ffs, BITSET_FOR_EACH_BIT): New.
2715         * lib/bitset/array.c (abitset_list): Use BITSET_FOR_EACH_BIT.
2717 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
2719         bitset: more tests
2720         * tests/test-bitset.c (compare): Make it clear that the random values
2721         should not be modified.
2722         Check bitset_first, bitset_last and BITSET_FOR_EACH.
2724 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
2726         bitset: fix the copy from lbitset to other types
2727         * lib/bitset/list.c (lbitset_copy): Rename as...
2728         (lbitset_copy_): this.
2729         (lbitset_copy): New.
2730         Dispatch to heterogeneous/homogeneous copy.
2732 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
2734         bitset: making debug traces more useful
2735         * lib/bitset.c (bitset_print): Print the bitset type in verbose mode.
2737         bitset: comment changes
2738         * lib/bitset.c: Move some documenting comments to...
2739         * lib/bitset.h: here.
2740         * lib/bitset/array.c: Fix some comments.
2742 2020-11-14  Paul Eggert  <eggert@cs.ucla.edu>
2744         careadlinkat: warn better about GCC bug 93644
2745         * lib/careadlinkat.c (readlink_stk): When --enable-gcc-warnings is
2746         not in effect, use "#warning" to let builders know more clearly
2747         about GCC bug 93644, because the bug triggers even if no -W option
2748         is given to GCC.
2750 2020-11-13  Jim Meyering  <meyering@fb.com>
2752         hard-locale-tests: avoid a -Wstrict-prototypes warning
2753         * tests/locale.c (main): Placate gcc's -Wstrict-prototypes by
2754         changing "main ()" to "main (void)". This was the only case that
2755         triggered a warning when building grep with --enable-gcc-warnings.
2757 2020-11-11  Paul Eggert  <eggert@cs.ucla.edu>
2759         time_rz: simplify CVE-2017-7476 fix
2760         * lib/time_rz.c: Do not include limits.h; I think it was included
2761         under the mistaken impression that limits.h defines SIZE_MAX.
2762         (SIZE_MAX): Remove.
2763         (save_abbr): Put string length into a ptrdiff_t variable,
2764         so that the size comparison works naturally.  This
2765         fixes CVE-2017-7476 in a cleaner way.
2767         parse-datetime: streamline overflow checking
2768         When parse-datetime.y’s overflow code was written, INT_ADD_WRAPV
2769         did not work for unsigned destinations, and since time_t might
2770         be unsigned that meant it did not work for time_t destinations.
2771         This limitation of INT_ADD_WRAPV has been fixed, so we can
2772         now streamline parse-datetime.y a bit.
2773         * lib/parse-datetime.y: Do not include limits.h, as LONG_MAX
2774         has not been used for a while.
2775         (yylex, parse_datetime2): Assume C99 declarations after statements.
2776         (yyles): Use INT_SUBTRACT_WRAPV instead of an explicit comparison
2777         to TYPE_MINIMUM.
2778         (parse_datetime2): No need for time_overflow now that
2779         INT_ADD_WRAPV works for unsigned results.
2781         parse-datetime-tests: port to Alpine Linux 3.12.1
2782         * tests/test-parse-datetime.c: Include errno.h for errno,
2783         and unistd.h for _SC_TZNAME_MAX and sysconf.
2784         (main): In the outlandishly-long time zone abbreviation test,
2785         do not exceed TZNAME_MAX as this has undefined behavior,
2786         and on Alpine Linux 3.12.1 it makes the test fail.
2788 2020-11-09  Pádraig Brady  <P@draigBrady.com>
2790         mgetgroups: avoid warning with clang
2791         * lib/mgetgroups.c: Xcode-12.1 identifies as GCC 4.2.1,
2792         so disable -Wpointer-sign for all clang versions.
2794 2020-11-07  Bruno Haible  <bruno@clisp.org>
2796         gnulib-tool: Fix link error with 'version-etc' (regression 2020-05-29).
2797         Reported by Simon Josefsson in
2798         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00032.html>.
2799         * gnulib-tool (func_emit_tests_Makefile_am): Add libtests.a to
2800         LDADD a third time, after the second occurrence of ../lib/libgnu.a.
2801         * pygnulib/GLEmiter.py (tests_Makefile_am): Likewise.
2803 2020-11-04  Paul Eggert  <eggert@cs.ucla.edu>
2805         tests: pacify Sun C 5.9
2806         Without these changes, Sun C 5.9 (2009/11/22) issues complaints like
2807         “"test-nl_langinfo-mt.c", line 75: warning: statement not reached”.
2808         * tests/test-nl_langinfo-mt.c (thread1_func, thread2_func)
2809         (thread3_func, thread4_func, thread5_func, thread6_func, threadN_func):
2810         * tests/test-setlocale_null-mt-all.c (thread1_func, thread2_func):
2811         * tests/test-setlocale_null-mt-one.c (thread1_func, thread2_func):
2812         Remove unreachable ‘return NULL;’s.
2814         tests: port better to XLC 12.01
2815         * tests/test-argmatch.c (CHECK): Do not use -1 as a subscript,
2816         even in code that is not executed, as IBM XLC 12.01 complains "The
2817         subscript -1 is less than zero."
2818         * tests/test-stdint.c (verify_width): Pass an (unused) 3rd
2819         argument to _GL_VERIFY, as ISO C requires.  Otherwise, IBM XLC
2820         12.01 complains "The invocation of macro _GL_VERIFY contains fewer
2821         arguments than are required by the macro definition."
2823 2020-11-03  Bruno Haible  <bruno@clisp.org>
2825         aligned-malloc: Use fixes from the new modules.
2826         * modules/aligned-malloc (Depends-on): Add posix_memalign,
2827         aligned_alloc, memalign.
2828         (configure.ac): Use AC_CHECK_FUNCS_ONCE.
2830 2020-11-03  Bruno Haible  <bruno@clisp.org>
2832         aligned_alloc: Add tests.
2833         * tests/test-aligned_alloc.c: New file.
2834         * modules/aligned_alloc-tests: New file.
2836         aligned_alloc: New module.
2837         * lib/stdlib.in.h (aligned_alloc): New declaration.
2838         * lib/aligned_alloc.c: New file.
2839         * m4/aligned_alloc.m4: New file.
2840         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether aligned_alloc is declared.
2841         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ALIGNED_ALLOC,
2842         HAVE_ALIGNED_ALLOC, REPLACE_ALIGNED_ALLOC.
2843         * modules/stdlib (Makefile.am): Substitute GNULIB_ALIGNED_ALLOC,
2844         HAVE_ALIGNED_ALLOC, REPLACE_ALIGNED_ALLOC.
2845         * modules/aligned_alloc: New file.
2846         * tests/test-stdlib-c++.cc (aligned_alloc): Check signature.
2847         * doc/posix-functions/aligned_alloc.texi: Mention the new module and the
2848         AIX bug.
2850 2020-11-03  Bruno Haible  <bruno@clisp.org>
2852         posix_memalign: Add tests.
2853         * tests/test-posix_memalign.c: New file.
2854         * modules/posix_memalign-tests: New file.
2856         posix_memalign: New module.
2857         * lib/stdlib.in.h (posix_memalign): New declaration.
2858         * lib/posix_memalign.c: New file.
2859         * m4/posix_memalign.m4: New file.
2860         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether posix_memalign is declared.
2861         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_POSIX_MEMALIGN,
2862         HAVE_POSIX_MEMALIGN, REPLACE_POSIX_MEMALIGN.
2863         * modules/stdlib (Makefile.am): Substitute GNULIB_POSIX_MEMALIGN,
2864         HAVE_POSIX_MEMALIGN, REPLACE_POSIX_MEMALIGN.
2865         * modules/posix_memalign: New file.
2866         * tests/test-stdlib-c++.cc (posix_memalign): Check signature.
2867         * doc/posix-functions/posix_memalign.texi: Mention the new module and
2868         the OpenBSD bug.
2870 2020-11-03  Bruno Haible  <bruno@clisp.org>
2872         memalign: Add tests.
2873         * tests/test-memalign.c: New file.
2874         * modules/memalign-tests: New file.
2876         memalign: New module.
2877         * modules/memalign: New file.
2878         * doc/glibc-functions/memalign.texi: Mention the new module.
2880 2020-11-03  Bruno Haible  <bruno@clisp.org>
2882         verify tests: Fix crash with GCC (regression 2020-11-02).
2883         * tests/test-verify.c (main): Fix initializer of s.
2885 2020-11-03  Pádraig Brady  <P@draigBrady.com>
2887         mountlist: recognize more file system types as remote
2889         * lib/mountlist.c (ME_REMOTE): Sync previously unconsidered
2890         "remote" file systems from stat.c in coreutils.
2892 2020-11-02  Bernhard Voelker  <mail@bernhard-voelker.de>
2894         verify tests: Fix -Wuninitialized warning (regression 2020-10-30).
2895         * tests/test-verify.c (main): Initialize state variable.
2896         Reported by Bruno Haible for GCC 5.4.0.
2898 2020-11-02  Paul Eggert  <eggert@cs.ucla.edu>
2900         dfa.h: support inclusion from C++
2901         * lib/dfa.h: Allow multiple inclusion, and inclusion from
2902         C++ code.  The latter was suggested by Arnold Robbins.
2904 2020-11-01  Bruno Haible  <bruno@clisp.org>
2906         ssfmalloc tests: Portability to Linux/PowerPC and Linux/SPARC.
2907         * tests/test-ssfmalloc.c: Include <limits.h>.
2908         (PAGESIZE_MAX): Set to 65536 on Linux/PowerPC.
2910 2020-11-01  Bruno Haible  <bruno@clisp.org>
2912         verify tests: Fix compilation error with MSVC (regression 2020-10-30).
2913         * tests/test-verify.c (test_assume_noreturn): Fix declaration.
2915 2020-11-01  Jim Meyering  <meyering@fb.com>
2917         dfa-tests: test for today's invalid-merge fix
2918         * tests/test-dfa-invalid-merge.sh: New file.
2919         * modules/dfa-tests (Files): Add it.
2920         (TESTS): Add it.
2922 2020-11-01  Norihiro Tanaka  <noritnk@kcn.ne.jp>
2924         dfa: retain sequences of similar nodes in optimization
2925         DFA was merging similar nodes when it should not.  For example,
2926         it would convert a+a+a to a+a.  Now, a sequence of similar nodes
2927         is not merged.  Problem reported by Gonzalo Padrino in
2928         https://bugs.gnu.org/44351
2929         * lib/dfa.c (merge_nfa_state): Skip the follow for repetition in
2930         optimization.
2932 2020-11-01  Jim Meyering  <meyering@fb.com>
2934         test-dfa-match-aux.c: accept EREs, not BREs
2935         * tests/test-dfa-match-aux.c (main): Specify RE_SYNTAX_EGREP, not
2936         RE_SYNTAX_GREP, so tests can use ERE syntax rather than BRE.
2938 2020-10-30  Bernhard Voelker  <mail@bernhard-voelker.de>
2940         verify tests: avoid -Wmissing-declarations warnings
2941         * tests/test-verify.c (test_assume_expressions): Add declaration.
2942         (test_assume_optimization): Likewise.
2943         (test_assume_noreturn): Likewise.
2944         (main): Move down after all other definitions.  While at it, also
2945         call test_assume_expressions and test_assume_optimization as a
2946         runtime check.
2948 2020-10-26  Paul Eggert  <eggert@cs.ucla.edu>
2950         sys_stat: update comments for S_IRWXUGO, S_IXUGO
2951         * lib/sys_stat.in.h (S_IXUGO, S_IRWXUGO): Update comments.
2952         Perhaps these macros should be removed, as they’re not in either
2953         POSIX or GNU.  They could be moved to stat-macros.h, which would
2954         be cleaner in some sense.
2956 2020-10-25  Bruno Haible  <bruno@clisp.org>
2958         ssfmalloc tests: Small tweaks.
2959         * tests/test-ssfmalloc.c: Add comments.
2960         (alloc_pages): Don't require PROT_EXEC bits.
2961         (block_sizes): Add more small sizes, for better coverage of
2962         ssfmalloc-bitmap.h.
2964         ssfmalloc tests: Portability to Minix.
2965         * modules/ssfmalloc-tests (Files): Add m4/mmap-anon.m4.
2966         (configure.ac): Invoke gl_FUNC_MMAP_ANON.
2967         * m4/mmap-anon.m4: Update comment.
2969         ssfmalloc: Portability to AIX.
2970         * modules/ssfmalloc (Include): Add ssfmalloc.h.
2971         (Link): New section.
2972         * modules/ssfmalloc-tests (Makefile.am): Link test-ssfmalloc with
2973         $(LIBTHREAD).
2975         ssfmalloc: Portability to Cygwin.
2976         * lib/ssfmalloc.h: Add parameter PAGESIZE_MAX.
2977         (pg_offset_t): Define depending on PAGESIZE_MAX.
2978         * tests/test-ssfmalloc.c: Undefine PAGESIZE.
2979         (PAGESIZE_MAX): New macro.
2981         ssfmalloc: Fix buffer overrun in bitmap search.
2982         * lib/ssfmalloc-bitmap.h (find_first_packet_set): Don't access the
2983         word *words_end.
2985 2020-10-24  Paul Eggert  <eggert@cs.ucla.edu>
2987         doc: mention ‘restrict’ and C++
2988         * doc/gnulib-readme.texi (C99 features assumed): Document
2989         that ‘restrict’ should be avoided in C++ code.
2991 2020-10-20  Bernhard Voelker  <mail@bernhard-voelker.de>
2993         selinux-at, selinux-h: port to SELinux 3.1
2994         The new release finally deprecated the typedef 'security_context_t',
2995         see <https://github.com/SELinuxProject/selinux/commit/7a124ca275>.
2996         Use the simpler 'char *' instead.
2997         * lib/getfilecon.c (getfilecon): Adjust type of context parameter.
2998         (lgetfilecon): Likewise.
2999         (fgetfilecon): Likewise.
3000         (map_to_failure): Likewise.
3001         (rpl_getfilecon): Likewise.
3002         (rpl_lgetfilecon): Likewise.
3003         (rpl_fgetfilecon): Likewise.
3004         * lib/se-selinux.in.h (security_context_t): Remove typedef.
3005         (getcon): Adjust type of context parameter.
3006         (freecon): Likewise.
3007         (getfscreatecon): Likewise.
3008         (setfscreatecon): Likewise.
3009         (matchpathcon): Likewise.
3010         (getfilecon): Likewise.
3011         (lgetfilecon): Likewise.
3012         (fgetfilecon): Likewise.
3013         (setfilecon): Likewise.
3014         (lsetfilecon): Likewise.
3015         (fsetfilecon): Likewise.
3016         (security_check_context): Likewise.
3017         (security_check_context_raw): Likewise.
3018         (setexeccon): Likewise.
3019         (security_compute_create): Likewise.
3020         * lib/selinux-at.c (getfileconat): Likewise.
3021         (lgetfileconat): Likewise.
3022         (setfileconat): Likewise.
3023         (lsetfileconat): Likewise.
3024         * lib/selinux-at.h: Likewise.
3026 2020-10-19  Bruno Haible  <bruno@clisp.org>
3028         xalloc-die: Fix link error with Solaris cc (regression 2020-07-27).
3029         * lib/xalloc.h (xalloc_die): Don't declare if GNULIB_XALLOC_DIE is 0.
3030         (xmalloc, xzalloc, xcalloc, xrealloc, x2realloc, xmemdup, xstrdup,
3031         XMALLOC, XNMALLOC, XZALLOC, XCALLOC, xnmalloc, xnrealloc, x2nrealloc,
3032         xcharalloc): Don't declare/define if GNULIB_XALLOC is 0.
3033         * modules/xalloc (configure.ac): Define GNULIB_XALLOC.
3034         * modules/xalloc-die (configure.ac): Define GNULIB_XALLOC_DIE.
3036 2020-10-18  Bruno Haible  <bruno@clisp.org>
3038         ssfmalloc: Add tests.
3039         * tests/test-ssfmalloc.c: New file.
3040         * modules/ssfmalloc-tests: New file.
3042         ssfmalloc: New module.
3043         * lib/ssfmalloc.h: New file.
3044         * lib/ssfmalloc-bitmap.h: New file.
3045         * modules/ssfmalloc: New file.
3047 2020-10-18  Bruno Haible  <bruno@clisp.org>
3049         wchar: Fix configure test result on some versions of AIX.
3050         Reported by Clément Chigot <clement.chigot@atos.net> in
3051         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00115.html>.
3052         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Execute the test only on glibc
3053         systems.
3055 2020-10-18  Bruno Haible  <bruno@clisp.org>
3057         time: Fix warning about asctime when asctime is not used.
3058         * lib/time.in.h (asctime_r, ctime, ctime_r): Fix _GL_WARN_ON_USE
3059         invocation.
3061 2020-10-18  Bruno Haible  <bruno@clisp.org>
3063         *-list, *-oset, *-omap: Avoid a GCC warning (regression 2020-10-10).
3064         * lib/gl_anylinked_list2.h (gl_linked_iterator_free): Remove
3065         '_GL_ATTRIBUTE_CONST'.
3066         * lib/gl_anytree_list2.h (gl_tree_iterator_free): Likewise.
3067         * lib/gl_anytree_omap.h (gl_tree_iterator_free): Likewise.
3068         * lib/gl_anytree_oset.h (gl_tree_iterator_free): Likewise.
3069         * lib/gl_array_list.c (gl_array_iterator_free): Likewise.
3070         * lib/gl_array_omap.c (gl_array_iterator_free): Likewise.
3071         * lib/gl_array_oset.c (gl_array_iterator_free): Likewise.
3072         * lib/gl_carray_list.c (gl_carray_iterator_free): Likewise.
3074 2020-10-18  Bruno Haible  <bruno@clisp.org>
3076         obstack: Fix a clang warning.
3077         * lib/obstack.c (print_and_abort): Mark as __attribute_noreturn__.
3079 2020-10-16  Bruno Haible  <bruno@clisp.org>
3081         hash: Rename hash_delete to hash_remove.
3082         * lib/hash.h (hash_remove): Renamed from hash_delete.
3083         (hash_delete): New declaration.
3084         * lib/hash.c (hash_remove): Renamed from hash_delete.
3085         (hash_delete): New function.
3086         * tests/test-hash.c (main): Update.
3087         * lib/fts-cycle.c (leave_dir): Likewise.
3088         * NEWS: Mention the change.
3090 2020-10-16  Bruno Haible  <bruno@clisp.org>
3092         hash, xhash: Make usable from C++.
3093         * lib/hash.h: Add extern "C".
3095 2020-10-16  Bruno Haible  <bruno@clisp.org>
3097         hash, xhash: Move comments to the .h file.
3098         * lib/hash.c: Move comments meant for the user from here...
3099         * lib/xhash.c: ... and here...
3100         * lib/hash.h: ... to here.
3102 2020-10-13  Philipp Klaus Krause  <pkk@spth.de>  (tiny change)
3104         Don't declare an intention to modify the return value of strerror.
3105         * tests/test-perror2.c (main): Assign the return value of strerror to a
3106         'const char *' variable.
3108 2020-10-11  Bruno Haible  <bruno@clisp.org>
3110         *printf: Avoid "expanded before it was required" warning.
3111         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99): Define through
3112         AC_DEFUN_ONCE.
3114 2020-10-11  Benji Wiebe  <benjiwiebe14@gmail.com>
3116         getprogname: Add support for OpenServer 6 and UnixWare 7.
3117         * lib/getprogname.c: Include <fcntl.h>, <stdlib.h>, <string.h>.
3118         (getprogname): On OpenServer6 and UnixWare, read /proc/<pid>/cmdline.
3120 2020-10-11  Bruno Haible  <bruno@clisp.org>
3122         tests: Avoid a name clash on UnixWare.
3123         Reported by Tim Rice <tim@multitalents.net> in
3124         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00025.html>.
3125         * tests/nap.h (nap): Define as gl_nap on OpenServer and UnixWare.
3127 2020-10-11  Bruno Haible  <bruno@clisp.org>
3129         stdioext: Update comments regarding UnixWare.
3130         Reported by Tim Rice <tim@multitalents.net> in
3131         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00005.html>.
3132         * lib/fbufmode.c: Update comments.
3133         * lib/fflush.c: Likewise.
3134         * lib/fpending.c: Likewise.
3135         * lib/fpurge.c: Likewise.
3136         * lib/freadable.h: Likewise.
3137         * lib/freadable.c: Likewise.
3138         * lib/freadahead.c: Likewise.
3139         * lib/freading.h: Likewise.
3140         * lib/freading.c: Likewise.
3141         * lib/freadptr.c: Likewise.
3142         * lib/freadseek.c: Likewise.
3143         * lib/fseeko.c: Likewise.
3144         * lib/fseterr.c: Likewise.
3145         * lib/fwritable.h: Likewise.
3146         * lib/fwritable.c: Likewise.
3147         * lib/fwriting.h: Likewise.
3148         * lib/fwriting.c: Likewise.
3150 2020-10-11  Bruno Haible  <bruno@clisp.org>
3152         stdioext: Treat OpenServer 6 and UnixWare 7 like OpenServer 5.
3153         Reported by Tim Rice <tim@multitalents.net> in
3154         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00005.html>.
3155         Uses the info from
3156         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00028.html>.
3157         * lib/stdio-impl.h: Test also __SCO_VERSION__ and __sysv5__.
3159 2020-10-11  Bruno Haible  <bruno@clisp.org>
3161         stdioext: Avoid compilation errors on UnixWare 7.
3162         Reported by Tim Rice <tim@multitalents.net> in
3163         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00127.html>.
3164         * lib/fbufmode.c: Don't include <stdio_ext.h> if it does not exist.
3165         * lib/fpurge.c: Likewise.
3166         * lib/freadable.h: Likewise.
3167         * lib/freading.h: Likewise.
3168         * lib/fwritable.h: Likewise.
3169         * lib/fwriting.h: Likewise.
3170         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether <stdio_ext.h> exists.
3171         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
3172         * m4/freadable.m4 (gl_FUNC_FREADABLE): Likewise.
3173         * m4/freading.m4 (gl_FUNC_FREADING): Likewise.
3174         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Likewise.
3175         * m4/fwriting.m4 (gl_FUNC_FWRITING): Likewise.
3177 2020-10-11  Bruno Haible  <bruno@clisp.org>
3179         stdioext: Update comments regarding Cygwin.
3180         * lib/fpending.c: Update comments.
3181         * lib/fpurge.c: Likewise.
3182         * lib/freadable.h: Likewise.
3183         * lib/freadable.c: Likewise.
3184         * lib/freading.h: Likewise.
3185         * lib/freading.c: Likewise.
3186         * lib/fwritable.h: Likewise.
3187         * lib/fwritable.c: Likewise.
3188         * lib/fwriting.h: Likewise.
3189         * lib/fwriting.c: Likewise.
3191 2020-10-11  KO Myung-Hun  <komh78@gmail.com>
3193         Fix "warning: implicit declaration of function 'pthread_sigmask'".
3194         * lib/signal.in.h [__KLIBC__]: Include <pthread.h>.
3195         * lib/sys_select.in.h [__KLIBC__]: Do not include <signal.h>.
3197 2020-10-10  Bruno Haible  <bruno@clisp.org>
3199         *-list, *-oset, *-omap: Avoid possible compiler warnings.
3200         Reported by Marc Nieper-Wißkirchen in
3201         <https://lists.gnu.org/r/bug-gnulib/2020-10/msg00025.html>.
3202         * lib/gl_anylinked_list2.h (gl_linked_iterator,
3203         gl_linked_iterator_from_to): Mark as 'pure'.
3204         (gl_linked_iterator_free): Mark as 'const'.
3205         * lib/gl_anytree_list2.h (gl_tree_size, gl_tree_node_value,
3206         gl_tree_search_from_to, gl_tree_indexof_from_to, gl_tree_iterator,
3207         gl_tree_iterator_from_to, gl_tree_sortedlist_search,
3208         gl_tree_sortedlist_search_from_to, gl_tree_sortedlist_indexof,
3209         gl_tree_sortedlist_indexof_from_to): Mark as 'pure'.
3210         (gl_tree_iterator_free): Mark as 'const'.
3211         * lib/gl_anytree_omap.h (gl_tree_size, gl_tree_iterator): Mark as
3212         'pure'.
3213         (gl_tree_iterator_free): Mark as 'const'.
3214         * lib/gl_anytree_oset.h (gl_tree_size, gl_tree_next_node,
3215         gl_tree_prev_node, gl_tree_iterator): Mark as 'pure'.
3216         (gl_tree_iterator_free): Mark as 'const'.
3217         * lib/gl_anytreehash_list1.h (node_position, compare_by_position,
3218         compare_position_threshold): Mark as 'pure'.
3219         * lib/gl_array_list.c (gl_array_size, gl_array_indexof_from_to,
3220         gl_array_search_from_to, gl_array_iterator, gl_array_iterator_from_to,
3221         gl_array_sortedlist_indexof_from_to, gl_array_sortedlist_indexof,
3222         gl_array_sortedlist_search_from_to, gl_array_sortedlist_search): Mark as
3223         'pure'.
3224         (gl_array_iterator_free): Mark as 'const'.
3225         * lib/gl_array_omap.c (gl_array_size, gl_array_indexof, gl_array_search,
3226         gl_array_search_atleast, gl_array_iterator): Mark as 'pure'.
3227         (gl_array_iterator_free): Mark as 'const'.
3228         * lib/gl_array_oset.c (gl_array_size, gl_array_indexof, gl_array_search,
3229         gl_array_indexof_atleast, gl_array_search_atleast, gl_array_iterator,
3230         gl_array_iterator_atleast): Mark as 'pure'.
3231         (gl_array_iterator_free): Mark as 'const'.
3232         * lib/gl_carray_list.c (gl_carray_size, gl_carray_node_value,
3233         gl_carray_next_node, gl_carray_previous_node, gl_carray_get_at,
3234         gl_carray_indexof_from_to, gl_carray_search_from_to, gl_carray_iterator,
3235         gl_carray_iterator_from_to, gl_carray_sortedlist_indexof_from_to,
3236         gl_carray_sortedlist_indexof, gl_carray_sortedlist_search_from_to,
3237         gl_carray_sortedlist_search): Mark as 'pure'.
3238         (gl_carray_iterator_free): Mark as 'const'.
3240 2020-10-10  Bruno Haible  <bruno@clisp.org>
3242         rbtree-list: Avoid possible compiler warnings.
3243         This mirrors the change of avltree-list on 2014-09-16.
3244         * lib/gl_rbtree_list.c (gl_rbtree_list_check_invariants): Add extern
3245         declaration. Add cast to void for ignored value of check_invariants.
3247 2020-10-10  Marc Nieper-Wißkirchen  <marc@nieper-wisskirchen.de>
3249         stack: New module.
3250         * MODULES.html.sh: Add entry for the stack module.
3251         * modules/stack: New file.
3252         * modules/stack-tests: New file.
3253         * lib/stack.h: New file.
3254         * tests/test-stack.c: New file.
3256 2020-10-10  Paul Eggert  <eggert@cs.ucla.edu>
3258         attribute: improve const, pure doc
3259         Problem reported by Marc Nieper-Wißkirchen in:
3260         https://lists.gnu.org/r/bug-gnulib/2020-10/msg00035.html
3261         * lib/attribute.h (ATTRIBUTE_CONST, ATTRIBUTE_PURE): Improv doc.  See:
3262         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51971#c1
3264 2020-10-05  Paul Eggert  <eggert@cs.ucla.edu>
3266         thread: pacify GCC on Solaris 10
3267         Problem reported by Kiyoshi KANAZAWA for grep (Bug#43666#29).
3268         * lib/glthread/thread.h (gl_thread_self): Use ‘(pthread_t) 0’
3269         instead of ‘(pthread_t) NULL’, to pacify GCC on Solaris 10
3270         where pthread_t is unsigned int.
3272 2020-10-04  Paul Eggert  <eggert@cs.ucla.edu>
3274         c-stack: avoid AS_IF
3275         Problem reported by Bruno Haible in:
3276         https://lists.gnu.org/r/bug-gnulib/2020-10/msg00018.html
3277         * m4/c-stack.m4 (gl_PREREQ_C_STACK): No need for AS_IF.
3279         c-stack: pacify GCC 9.3.1 when using libsigsegv
3280         * lib/c-stack.c [USE_LIBSIGSEGV]: Disable --suggest-attribute=pure.
3282 2020-10-04  Bruno Haible  <bruno@clisp.org>
3284         localename: Fix a couple of "unused parameter" warnings.
3285         Reported by Marc Nieper-Wißkirchen <marc@nieper-wisskirchen.de> in
3286         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00014.html>.
3287         * lib/localename.c (gl_locale_name_thread_unsafe, gl_locale_name_thread,
3288         gl_locale_name_posix, gl_locale_name_environ): Add _GL_UNUSED in
3289         parameter list.
3291 2020-10-04  Bruno Haible  <bruno@clisp.org>
3293         vasnprintf: Don't use %n on modern, ISO C 99 compliant platforms.
3294         Suggested by Jeremie Courreges-Anglas <jca@wxcvbn.org> in
3295         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00010.html>.
3296         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Define
3297         HAVE_SNPRINTF_TRUNCATION_C99.
3298         * lib/vasnprintf.c (VASNPRINTF): Don't use %n if
3299         HAVE_SNPRINTF_RETVAL_C99 && HAVE_SNPRINTF_TRUNCATION_C99.
3301 2020-10-03  Paul Eggert  <eggert@cs.ucla.edu>
3303         c-stack: streamline Solaris configuration
3304         * lib/c-stack.c: Omit mention of HAVE_SIGALTSTACK, since
3305         the code is used only if a test for sigaltstack worked
3306         in some other way.
3307         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Do not require gl_LIBSIGSEGV;
3308         instead, execute gl_LIBSIGSEGV only if needed (because the XSI
3309         heuristic does not work).
3310         * modules/c-stack (Files): Add m4/libsigsegv.m4, since
3311         we no longer require the libsigsegv module.
3312         (Depends-on): Depend on havelib, not libsigsegv.
3314         c-stack: stop using SIGSTKSZ
3315         It’s been proposed to stop making SIGSTKSZ an integer constant:
3316         https://sourceware.org/pipermail/libc-alpha/2020-September/118028.html
3317         Also, using SIGSTKSZ in #if did not conform to current POSIX.
3318         Also, avoiding SIGSTKSZ makes the code simpler and easier to grok.
3319         * lib/c-stack.c (SIGSTKSZ): Remove.
3320         (alternate_signal_stack): Now a 64 KiB array, for simplicity.
3321         All uses changed.
3323         c-stack: fix libsigsegv typo
3324         Problem reported by Bruno Haible in:
3325         https://lists.gnu.org/r/bug-gnulib/2020-09/msg00175.html
3326         * lib/c-stack.c (USE_LIBSIGSEGV): Fix typo that caused libsigsegv
3327         to be used only on Solaris (exactly where it is not needed!).
3329 2020-10-03  Thien-Thi Nguyen  <ttn@gnuvola.org>
3331         MODULES.html.sh: Fix typo.
3332         * MODULES.html.sh (Numeric conversion functions <stdlib.h>): Fix typo.
3334 2020-09-28  Paul Eggert  <eggert@cs.ucla.edu>
3336         version-etc: pacify Oracle Studio 12.6
3337         Without this patch, it complains: "version-etc.h", line 64:
3338         warning: token-less macro argument (E_TOKENLESS_MACRO)" when in
3339         pedantic mode.
3340         * lib/version-etc.h (version_etc): Port to C89 macro rules.
3342 2020-09-27  Bruno Haible  <bruno@clisp.org>
3344         Avoid "warning: The macro `AC_DECL_SYS_SIGLIST' is obsolete".
3345         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
3346         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00154.html>.
3347         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check for sys_siglist
3348         ourselves; don't use AC_DECL_SYS_SIGLIST.
3350 2020-09-27  Bruno Haible  <bruno@clisp.org>
3352         Avoid "warning: The macro `_AC_COMPUTE_INT' is obsolete".
3353         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
3354         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00154.html>.
3355         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Use AC_COMPUTE_INT
3356         instead of _AC_COMPUTE_INT.
3358 2020-09-27  Bruno Haible  <bruno@clisp.org>
3360         Avoid "warning: The macro `AC_HEADER_STDC' is obsolete".
3361         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
3362         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00154.html>.
3363         Based on a patch by Paul Eggert.
3364         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Don't require AC_HEADER_STDC. Don't
3365         test STDC_HEADERS. Assume <stdlib.h> exists.
3366         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Likewise.
3368 2020-09-27  Bruno Haible  <bruno@clisp.org>
3370         Enable testing of prereleases of Autoconf 2.70.
3371         Suggested by Paul Eggert in
3372         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00160.html>.
3373         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Test for Autoconf >= 2.69c, not
3374         >= 2.70.
3375         * m4/largefile.m4 (AC_SYS_LARGEFILE): Likewise.
3376         * m4/pid_t.m4 (AC_TYPE_PID_T): Likewise.
3377         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Likewise.
3379 2020-09-27  Bruno Haible  <bruno@clisp.org>
3381         Avoid "warning: The macro `AC_PROG_CC_STDC' is obsolete".
3382         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
3383         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00151.html>.
3384         * m4/gnulib-common.m4 (gl_PROG_CC_C99): Use AC_PROG_CC_C99 or
3385         AC_PROG_CC, depending on the Autoconf version.
3387 2020-09-27  Gavin Smith  <gavinsmith0123@gmail.com>
3389         Avoid "warning: The macro `AC_HELP_STRING' is obsolete".
3390         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Use AS_HELP_STRING instead
3391         of AC_HELP_STRING.
3392         * m4/libgcrypt.m4 (AM_PATH_LIBGCRYPT): Likewise.
3394 2020-09-27  Bruno Haible  <bruno@clisp.org>
3396         Avoid "warning: $as_echo_n is obsolete" from autoconf 2.69c.
3397         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
3398         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00151.html>.
3399         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): Use gl_SILENT.
3401 2020-09-27  Bruno Haible  <bruno@clisp.org>
3403         extensions: Simplify last commit.
3404         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't require
3405         AC_GNU_SOURCE ever.
3407 2020-09-26  Paul Eggert  <eggert@cs.ucla.edu>
3409         extensions: require AC_GNU_SOURCE only for <=2.63
3410         Problem reported by Gavin Smith in:
3411         https://lists.gnu.org/r/autoconf/2020-09/msg00012.html
3412         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS):
3413         Require AC_GNU_SOURCE only for Autoconf 2.63 and earlier, since it
3414         shouldn’t be needed after that, and Autoconf 2.70 complains about
3415         it being obsolete.
3417 2020-09-26  Bruno Haible  <bruno@clisp.org>
3419         regex-tests: Make test more robust.
3420         * tests/test-regex.c (main): Make sure to revert the locale to "C" after
3421         the test in "tr_TR.UTF-8" locale. Exit if we can't revert it.
3423 2020-09-25  Paul Eggert  <eggert@cs.ucla.edu>
3425         regex-tests: fix possible Turkish false-alarm
3426         * modules/regex-tests (Depends-on): Add wctype-h.
3427         * tests/test-regex.c: Include wctype.h.
3428         (main): Check that ‘i’ uppercases to ‘İ’ in Turkish,
3429         as the Turkish regex test assumes this.
3431         regex-tests: fix test and add debug output
3432         Perhaps this will fix the recent grep test failure reported at:
3433         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/199
3434         At least, the debug output should help narrow down the failure.
3435         * tests/test-regex.c: Include stdarg.h, stdio.h.
3436         (exit_status): New var.
3437         (report_error): New function.
3438         (main): Use it to report failures to stdout instead of merely
3439         exiting with some nonzero status.  The status info alone isn’t
3440         enough to do remote debugging.  In the new tr_TR.UTF-8 test, clear
3441         regex before calling re_compile_pattern, fixing a portability bug.
3443         regex: no longer match glibc
3444         * config/srclist.txt: Comment out regex_internal.c for now.
3446 2020-09-23  Paul Eggert  <eggert@cs.ucla.edu>
3448         regex: fix ignore-case Turkish bug
3449         * lib/regex_internal.c (build_wcs_upper_buffer):
3450         Do not assume that converting single-byte character to upper
3451         yields a single-byte character.  This is not true for Turkish,
3452         where towupper (L'i') yields L'İ', which is not single-byte.
3453         * tests/test-regex.c (main): Test for this bug.
3455         regex: port to weird isascii platforms
3456         * lib/regex_internal.h (isascii) [!_LIBC]: Supply glibc version.
3458 2020-09-20  Norihiro Tanaka  <noritnk@kcn.ne.jp>
3460         dfa: make dfasupported a global function
3461         * lib/dfa.c (dfasupported): Rename, and make it global.
3462         Update caller.
3463         * lib/dfa.h (dfasupported): Add prototype.
3465 2020-09-20  Bruno Haible  <bruno@clisp.org>
3467         canonicalize: Add support for UNC file names on native Windows.
3468         Reported and initial patch by Vaclav Slavik <vaclav@slavik.io> in
3469         <https://savannah.gnu.org/bugs/?59079>.
3470         * lib/canonicalize.c (canonicalize_filename_mode): For UNC file names,
3471         extend the prefix to include the server.
3473 2020-09-20  Bruno Haible  <bruno@clisp.org>
3475         supersede: Fix test failures on native Windows.
3476         * lib/supersede.c (open_supersede): Handle non-regular files on native
3477         Windows like on Solaris.
3478         * tests/test-supersede-open.h (test_open_supersede): Use O_BINARY flag.
3480 2020-09-20  Paul Eggert  <eggert@cs.ucla.edu>
3482         test-stdalign: test Oracle Studio better
3483         * doc/posix-headers/stdalign.texi (stdalign.h):
3484         * tests/test-stdalign.c (main):
3485         Sun Studio Bug #2125432 seems to be fixed.
3487         c-stack: output diagnostic in single 'write'
3488         * lib/c-stack.c (die): In the typical case, use just one 'write'
3489         syscall to output the diagnostic, as this lessens interleaving.
3490         (die, c_stack_action): Assume C99.
3491         * modules/c-stack (Depends-on): Add c99, mempcpy.
3493         c-stack: improve checking if !libsigsegv
3494         If SIGINFO_WORKS, do not treat a null pointer dereference as if it
3495         were a stack overflow.  Use uintptr_t and INT_ADD_WRAPV to avoid
3496         unlikely pointer overflow.  Also, fix some obsolete code and typos.
3497         I found these problems while looking into this bug report:
3498         https://lists.gnu.org/r/grep-devel/2020-09/msg00053.html
3499         * lib/c-stack.c: Include c-stack.h first, to test interface.
3500         Include inttypes.h for UINTPTR_MAX, stdbool.h, stddef.h for
3501         max_align_t, intprops.h for INT_ADD_WRAPV.
3502         (USE_LIBSIGSEGV): New macro; use it to simplify later code.
3503         (SIGSTKSZ): Simplify setup.  Work around libsigsegv bug only
3504         for libsigsegv 2.8 and earlier since the bug should be fixed
3505         after that.
3506         (alternate_signal_stack): Use max_align_t instead of doing it by hand.
3507         (segv_handler, overflow_handler, segv_handler) [DEBUG]:
3508         Assume sprintf returns byte count; this assumption is safe now.
3509         (page_size): New static volatile variable, since sysconf isn’t
3510         documented to be async-signal-safe on Solaris.  This variable is
3511         present and used if (!USE_LIBSIGSEGV && HAVE_SIGALTSTACK &&
3512         HAVE_DECL_SIGALTSTACK && HAVE_STACK_OVERFLOW_HANDLING &&
3513         SIGINFO_WORKS).
3514         (segv_handler): Use it if present.  Never report null pointer
3515         dereference as a stack overflow.  Check for (unlikely) unsigned
3516         and/or pointer overflow.
3517         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
3518         Rename cache variables to gl_cv_sys_stack_overflow_works
3519         and gl_cv_sys_xsi_stack_overflow_heuristic.
3520         All uses changed.
3521         (gl_PREREQ_C_STACK): Do not require AC_FUNC_ALLOCA, since
3522         c-stack no longer uses STACK_DIRECTION.
3523         Do not check for unistd.h, since we depend on unistd.
3524         Fix shell typo ‘$"ac_cv_sys_xsi_stack_overflow_heuristic"’.
3525         * modules/c-stack (Depends-on): Sort.  Add intprops, inttypes,
3526         stdbool, stddef.
3528 2020-09-20  Bruno Haible  <bruno@clisp.org>
3530         Revert now-unnecessary override of config.guess on Alpine Linux 3.10.
3531         * m4/musl.m4: Revert 2020-09-19 patch.
3532         * m4/setlocale_null.m4: Likewise.
3533         * modules/setlocale-null: Likewise.
3535 2020-09-19  Ben Pfaff  <blp@cs.stanford.edu>
3536             Bruno Haible  <bruno@clisp.org>
3538         relocatable-prog: Fix for multiple relocatable library directories.
3539         * build-aux/reloc-ldflags: Fix handling of multiple relocatable library
3540         directories.  Each one needs its own -Wl,-rpath,$dir option, instead of
3541         being attached to a single one.
3543 2020-09-19  Jim Meyering  <meyering@fb.com>
3545         test-verify.c: avoid -Wshadow warnings
3546         * tests/test-verify.c (gx): Rename global from "x". Adjust use.
3547         (enum): Capitalize member names. Adjust uses.
3549 2020-09-19  Bruno Haible  <bruno@clisp.org>
3551         havelib: Avoid linking with libc.a on GNU systems.
3552         Reported by Bruce Dubbs <bruce.dubbs@gmail.com> in
3553         <https://lists.gnu.org/archive/html/grep-devel/2020-09/msg00052.html>.
3554         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): When processing the
3555         dependency_libs value of a .la file, ignore '-lc' options on GNU
3556         systems.
3558 2020-09-19  Bruno Haible  <bruno@clisp.org>
3560         Fix recognition of musl libc on Alpine Linux 3.10.
3561         Reported by Jeffrey Walton <noloader@gmail.com> in
3562         <https://lists.gnu.org/archive/html/grep-devel/2020-09/msg00020.html>.
3563         * m4/musl.m4 (gl_MUSL_CANONICAL_HOST): New macro.
3564         (gl_MUSL_LIBC): Require it.
3565         * m4/setlocale_null.m4 (gl_FUNC_SETLOCALE_NULL): Likewise.
3566         * modules/setlocale-null (Files): Add m4/musl.m4.
3568 2020-09-19  Bruno Haible  <bruno@clisp.org>
3570         nl_langinfo: Make multithread-safe on Solaris 10 and Solaris 11.3.
3571         Reported for Solaris 10 by Dagobert Michelsen via Paul Eggert in
3572         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00023.html>
3573         and for Solaris 11.3 by Jeffrey Walton <noloader@gmail.com> in
3574         <https://lists.gnu.org/archive/html/bug-grep/2020-06/msg00013.html>.
3575         * lib/nl_langinfo-lock.c: New file, based on lib/setlocale_null-lock.c.
3576         * lib/nl_langinfo.c: Include <stdlib.h> and <windows.h> or <pthread.h>
3577         or <threads.h>.
3578         (ITEMS, MAX_RESULT_LEN): New macros.
3579         (nl_langinfo_unlocked): New function.
3580         (gl_get_nl_langinfo_lock): New declaration.
3581         (nl_langinfo_with_lock): New function, based on lib/setlocale_null.c.
3582         (rpl_nl_langinfo): Use nl_langinfo_with_lock instead of nl_langinfo.
3583         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Require gl_PTHREADLIB. Define
3584         HAVE_THREADS_H. Set NL_LANGINFO_MTSAFE. If setting it to 0, also set
3585         REPLACE_NL_LANGINFO.
3586         (gl_PREREQ_NL_LANGINFO_LOCK): New macro.
3587         * modules/nl_langinfo (Files): Add lib/nl_langinfo-lock.c,
3588         lib/windows-initguard.h, m4/threadlib.m4, m4/visibility.m4.
3589         (configure.ac): Compile nl_langinfo-lock.c when NL_LANGINFO_MTSAFE is 0.
3590         * doc/posix-functions/nl_langinfo.texi: Mention the Solaris bug.
3592 2020-09-18  Bruno Haible  <bruno@clisp.org>
3594         fsusage, getaddrinfo: Produce more regular configure output.
3595         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove AC_MSG_CHECKING without
3596         corresponding AC_MSG_RESULT.
3597         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
3599 2020-09-18  Bruno Haible  <bruno@clisp.org>
3601         Add back gl_SILENT.
3602         * m4/gnulib-common.m4 (GL_TMP_FD, gl_SILENT): New macros.
3604 2020-09-18  Paul Eggert  <eggert@cs.ucla.edu>
3606         c-stack-tests: fix -fsanitize=undefined false alarm
3607         * tests/test-c-stack2.sh: Skip the test-harness self-test
3608         if ‘gcc -fsanitize=undefined’ is in use.
3610 2020-09-17  Paul Eggert  <eggert@cs.ucla.edu>
3612         signalblocking: simplify and remove gl_SILENT
3613         gl_SILENT was problematic because if a trap was sprung, stderr
3614         generated during the trap was lost.  Avoid the problem by
3615         removing the need for gl_SILENT.
3616         * m4/gnulib-common.m4 (GL_TMP_FD, gl_SILENT): Remove.
3617         * m4/signalblocking.m4 (gl_SIGNALBLOCKING):
3618         Simplify, avoiding the need for gl_SILENT while preserving the
3619         ability of the user to override the value of the cache variable,
3620         now ac_cv_func_sigprocmask.
3622 2020-09-17  Bruno Haible  <bruno@clisp.org>
3624         sigprocmask: Fix configuration failure on Solaris 10 (regr. 2020-07-25).
3625         * m4/gnulib-common.m4 (GL_TMP_FD): New macro.
3626         (gl_SILENT): Use 'exec', not a compound statement, to redirect
3627         AS_MESSAGE_FD.
3629 2020-09-17  Paul Eggert  <eggert@cs.ucla.edu>
3631         intprops, xalloc: avoid __builtin_mul_overflow_p with Clang
3632         Problem reported by Nelson H. F. Beebe for clang 9.0.1 in:
3633         https://lists.gnu.org/r/grep-devel/2020-09/msg00028.html
3634         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_P) [__clang__]:
3635         Define to 0.
3636         * lib/xalloc-oversized.h (xalloc_oversized) [__clang__]:
3637         Do not use __builtin_mul_overflow_p.
3639         libc-config: port __THROW to Ubuntu 4
3640         * lib/cdefs.h (__THROW): Do not use __attribute__ ((__nothrow__))
3641         for GCC 3.3.  Problem reported by Jeffrey Walton in:
3642         https://lists.gnu.org/r/bug-gnulib/2019-07/msg00058.html
3643         The GCC 3.3.4 documentation says the attribute should work, but
3644         apparently it does not work on Ubuntu 4’s GCC 3.3.  There seems
3645         little point or desire to research this circa-2004 platform further,
3646         so just avoid the attribute there.
3648 2020-09-17  Jim Meyering  <meyering@fb.com>
3650         test-dfa-match.sh: port timeout work-around to newer Busybox
3651         * tests/test-dfa-match.sh: Update timeout -t portability test to
3652         accommodate Busybox 1.30.0 and newer.
3654 2020-09-16  Paul Eggert  <eggert@cs.ucla.edu>
3656         fnmatch: adjust to match glibc fix
3657         This fixes handling of collating symbols in fnmatch (glibc bug 26620).
3658         This does not affect Gnulib; it merely keeps Gnulib and glibc
3659         closer together, to help with any eventual merge, by incorporating
3660         a recent glibc patch.  The patch and the following commentary is
3661         by Andreas Schwab.
3662         * lib/fnmatch_loop.c (FCT) [WIDE_CHAR_VERSION]: The variable idx
3663         contains the index into the extra array, whereas wextra points
3664         into the extra array at this index, containing the length of the
3665         following collating sequence in the wide character representation.
3667 2020-09-16  Bruno Haible  <bruno@clisp.org>
3669         stat, fstat: Fix compilation error with old mingw headers.
3670         Reported by Eli Zaretskii <eliz@gnu.org> in
3671         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00027.html>.
3672         * lib/stat-w32.c (VOLUME_NAME_NONE): Define if the Windows headers don't
3673         define it.
3675 2020-09-16  Bruno Haible  <bruno@clisp.org>
3677         stat, fstat: Fix when compiling for versions older than Windows Vista.
3678         Reported by Eli Zaretskii <eliz@gnu.org> in
3679         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00027.html>.
3680         * lib/stat-w32.c: Include <sdkddkver.h>. Test the value of _WIN32_WINNT
3681         that was originally set before we redefined it.
3682         * m4/stat.m4 (gl_PREREQ_STAT_W32): New macro.
3683         (gl_PREREQ_STAT): Require it.
3684         * m4/fstat.m4 (gl_PREREQ_FSTAT): Likewise.
3686 2020-09-15  Paul Eggert  <eggert@cs.ucla.edu>
3688         dfa: remove dfa-heap-overrun workaround
3689         * lib/dfa.c (reorder_tokens): Go back to a single pass that
3690         both sets map[*] and does other things.  This reverts
3691         2020-09-14T01:20:01Z!eggert@cs.ucla.edu, which is no longer
3692         neeeded now that 2020-09-14T13:21:05Z!noritnk@kcn.ne.jp
3693         fixed the underlying problem.
3695 2020-09-13  Paul Eggert  <eggert@cs.ucla.edu>
3697         dfa: avoid use of uninitialized constraint
3698         * lib/dfa.c (merge_nfa_state): Do not initialize the constraint
3699         to zero here.
3700         (dfaoptimize): Do it here instead, via xcalloc.  This prevents the
3701         use of an uninitialized constraint by later code when ! (flags[i]
3702         & OPT_QUEUED) means merge_nfa_state was not called to initialize
3703         the constraint.  Problem found by running 'valgrind src/grep -E
3704         '(^| )*(a|b)*(c|d)*( |$)' < /dev/null' on Ubuntu 18.04.5 x86-64.
3706         dfa: assume C99 in reorder_tokens
3707         * lib/dfa.c (reorder_tokens): Assume C99 and simplify.
3709         dfa: fix dfa-heap-overrun failure
3710         * lib/dfa.c (reorder_tokens): When setting
3711         map[d->follows[i].elems[j].index], instead of incorrectly assuming
3712         that (i < d->follows[i].elems[j].index), use two loops, one to set
3713         the map array and the other to use it.  The incorrect assumption
3714         caused some elements to be missed, and this in turn caused grep's
3715         dfa-heap-overrun test to fail on Solaris 10 sparc when compiled
3716         with GCC.  I found this bug while investigating
3717         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/183
3718         and I think the bug also occurs on GNU/Linux but with more-subtle
3719         symptoms.  The bug predates the recent dfa.c changes; perhaps the
3720         recent changes make the bug more likely.
3722 2020-09-13  Bruno Haible  <bruno@clisp.org>
3724         parse-datetime: Make the build rule work with parallel 'make'.
3725         Reported by Daiki Ueno <ueno@gnu.org> in
3726         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00036.html>.
3727         * modules/parse-datetime (Makefile.am): Use a phony target and the
3728         general idiom for rules that produce multiple files.
3730 2020-09-13  Ben Pfaff  <blp@cs.stanford.edu>
3732         getpass: Check for nonnull prompt argument while avoiding warnings.
3733         * lib/getpass.c (_GL_ARG_NONNULL): Define to empty.
3734         (getpass) [!_WIN32]: Print prompt only if nonnull.
3736 2020-09-12  Paul Eggert  <eggert@cs.ucla.edu>
3738         dfa: epsilon-closure tweaks (Bug#40634)
3739         Rename BACKWORD to BACKWARD consistently.
3740         * lib/dfa.c (struct dfa): Reorder members to reduce fragmentation.
3741         (addtok_mb): Redo slightly to make it act more like a state machine.
3742         Check depth only when it increases.
3743         (epsclosure): Let the switch test the tokens.
3744         (dfaanalyze): Cache tindex.  Simplify position loops.
3745         Prefer xcalloc to xnmalloc + explicit zeroing.  Free BACKWARD
3746         only if it is not null, since we're testing that anyway.
3747         (dfaanalyze, build_state): Use merge2 instead of doing it by hand.
3749 2020-09-12  Norihiro Tanaka  <noritnk@kcn.ne.jp>
3751         dfa: use backward set in removal of epsilon closure
3752         When removing in epsilon closure, the code searched all nodes
3753         sequentially, and this was slow for some cases.  Build a backward
3754         set before search, and only check previous position with the set.
3755         Problem reported in <https://bugs.gnu.org/40634>.
3756         * lib/dfa.c (struct dfa): New member 'epsilon'.
3757         (addtok_mb): Check whether a pattern has epsilon node or not.
3758         (epsclosure): New arg BACKWORD; caller changed.  When removing
3759         epsilon node and reconnecting, check only previous positions.
3760         Treat BEG as if it were character.
3761         (dfaanalyze): Build backward set.
3763 2020-09-10  Paul Eggert  <eggert@cs.ucla.edu>
3765         canonicalize: fix pointer indexing bugs
3766         Problem reported by Florian Weimer in:
3767         https://lists.gnu.org/r/bug-gnulib/2020-09/msg00025.html
3768         * lib/canonicalize-lgpl.c (__realpath):
3769         * lib/canonicalize.c (canonicalize_filename_mode):
3770         Do not generate a pointer past the end of the array.
3771         * lib/canonicalize.c (canonicalize_filename_mode):
3772         Do not use a pointer after passing it to realloc.
3774 2020-09-09  Paul Eggert  <eggert@cs.ucla.edu>
3776         tempname: help merge with glibc
3777         Inspired by draft patches by Adhemerval Zanella in:
3778         https://sourceware.org/pipermail/libc-alpha/2020-September/117501.html
3779         https://sourceware.org/pipermail/libc-alpha/2020-September/117502.html
3780         * lib/tempname.c: Include stdalign.h, time.h.
3781         If _LIBC, do not include random-bits.h.
3782         (__getrandom, __clock_gettime64, __timespec64) [!_LIBC]: New macros.
3783         (RANDOM_BITS): Remove, replacing with ...
3784         (random_bits): ... this new static function.  All uses changed.
3785         Add entropy each time if getrandom is not supported.
3786         (RANDOM_VALUE, BASE_62_DIGITS, BASE_62_POWER):
3787         Assume 64-bit support a la C99.
3788         (try_tempname_len): Take advantage of ASLR when initializing
3789         random value.
3790         * modules/tempname (Depends-on): Add clock-time, stdalign, time.
3792         getcwd: merge recent glibc changes
3793         * lib/getcwd.c (GETCWD_RETURN_TYPE) [!_LIBC]: New macro.
3794         (__getcwd, getcwd) [_LIBC && !GETCWD_RETURN_TYPE]: Add aliases.
3796 2020-09-06  Bruno Haible  <bruno@clisp.org>
3798         attribute: Clarify which file to include.
3799         * modules/attribute (Include): Add "attribute.h".
3801 2020-09-06  Bruno Haible  <bruno@clisp.org>
3803         pipe-filter-ii, pipe-filter-gi: Fix warnings on native Windows.
3804         * lib/pipe-filter-ii.c: Include <process.h>.
3805         * lib/pipe-filter-gi.c: Likewise.
3807 2020-09-05  Paul Eggert  <eggert@cs.ucla.edu>
3809         verify: avoid __builtin_assume
3810         Our latest attempt to use Clang’s __builtin_assume caused a crash
3811         in GNU Emacs that we spent quite some time tracking down as being
3812         caused by the switch to __builtin_assume.  It’s not known whether
3813         the crash is due is a Clang bug or a portability bug in GNU Emacs.
3814         For now, play it safe and avoid __builtin_assume.
3815         * lib/verify.h (_GL_HAS_BUILTIN_ASSUME): Remove.
3816         (assume): Simplify by not trying to use Clang’s __builtin_assume.
3818 2020-09-05  Bruno Haible  <bruno@clisp.org>
3820         Fix several "warning: no previous prototype for function".
3821         * modules/unicase/locale-language (Makefile.am): Add a 'static' keyword
3822         in front of the declaration of the lookup function in
3823         unicase/locale-languages.h.
3824         * modules/unictype/bidiclass-byname (Makefile.am): Likewise in
3825         unictype/bidi_byname.h.
3826         * modules/unictype/category-byname (Makefile.am): Likewise in
3827         unictype/categ_byname.h.
3828         * modules/unictype/combining-class-byname (Makefile.am): Likewise in
3829         unictype/combiningclass_byname.h.
3830         * modules/unictype/joininggroup-byname (Makefile.am): Likewise in
3831         unictype/joininggroup_byname.h.
3832         * modules/unictype/joiningtype-byname (Makefile.am): Likewise in
3833         unictype/joiningtype_byname.h.
3834         * modules/unictype/property-byname (Makefile.am): Likewise in
3835         unictype/pr_byname.h.
3836         * modules/unictype/scripts (Makefile.am): Likewise in
3837         unictype/scripts_byname.h.
3838         * modules/uninorm/composition (Makefile.am): Likewise in
3839         uninorm/composition-table.h.
3841 2020-09-05  Bruno Haible  <bruno@clisp.org>
3843         select: Fix "warning: no previous prototype for function".
3844         * lib/select.c: Include <sys/select.h>.
3846 2020-09-05  Bruno Haible  <bruno@clisp.org>
3848         Use module 'c99' when needed for variadic macros with '...' syntax.
3849         * modules/crypto/sm3 (Depends-on): Add c99.
3851 2020-09-05  Bruno Haible  <bruno@clisp.org>
3853         Use module 'c99' when needed for subobject initializer syntax.
3854         * modules/tempname (Depends-on): Add c99.
3855         * modules/nstrftime-tests (Depends-on): Likewise.
3857 2020-09-05  Bruno Haible  <bruno@clisp.org>
3859         Use module 'c99' when needed for declaration-after-statement syntax.
3860         * modules/backup-rename (Depends-on): Add c99.
3861         * modules/backupfile (Depends-on): Likewise.
3862         * modules/bitset-tests (Depends-on): Likewise.
3863         * modules/bitsetv (Depends-on): Likewise.
3864         * modules/c-strtod (Depends-on): Likewise.
3865         * modules/c-strtold (Depends-on): Likewise.
3866         * modules/clean-temp (Depends-on): Likewise.
3867         * modules/copy-file (Depends-on): Likewise.
3868         * modules/crypto/hmac-md5-tests (Depends-on): Likewise.
3869         * modules/crypto/hmac-sha1-tests (Depends-on): Likewise.
3870         * modules/crypto/hmac-sha256-tests (Depends-on): Likewise.
3871         * modules/crypto/hmac-sha512-tests (Depends-on): Likewise.
3872         * modules/crypto/md5-buffer (Depends-on): Likewise.
3873         * modules/crypto/md5-tests (Depends-on): Likewise.
3874         * modules/crypto/sha1-buffer (Depends-on): Likewise.
3875         * modules/crypto/sha1-tests (Depends-on): Likewise.
3876         * modules/crypto/sha256-buffer (Depends-on): Likewise.
3877         * modules/crypto/sha256-tests (Depends-on): Likewise.
3878         * modules/crypto/sha512-buffer (Depends-on): Likewise.
3879         * modules/crypto/sha512-tests (Depends-on): Likewise.
3880         * modules/diffseq (Depends-on): Likewise.
3881         * modules/fatal-signal (Depends-on): Likewise.
3882         * modules/fchmodat (Depends-on): Likewise.
3883         * modules/fstrcmp (Depends-on): Likewise.
3884         * modules/fsusage (Depends-on): Likewise.
3885         * modules/fts (Depends-on): Likewise.
3886         * modules/fts-tests (Depends-on): Likewise.
3887         * modules/getumask (Depends-on): Likewise.
3888         * modules/git-merge-changelog (Depends-on): Likewise.
3889         * modules/hash-map (Depends-on): Likewise.
3890         * modules/hash-set (Depends-on): Likewise.
3891         * modules/lchmod (Depends-on): Likewise.
3892         * modules/libgmp-tests (Depends-on): Likewise.
3893         * modules/libtextstyle-optional-tests (Depends-on): Likewise.
3894         * modules/linkedhash-map (Depends-on): Likewise.
3895         * modules/linkedhash-set (Depends-on): Likewise.
3896         * modules/long-options (Depends-on): Likewise.
3897         * modules/mbrtoc32 (Depends-on): Likewise.
3898         * modules/memchr2-tests (Depends-on): Likewise.
3899         * modules/memmem-tests (Depends-on): Likewise.
3900         * modules/memrchr-tests (Depends-on): Likewise.
3901         * modules/mktime-internal (Depends-on): Likewise.
3902         * modules/nstrftime (Depends-on): Likewise.
3903         * modules/opendirat (Depends-on): Likewise.
3904         * modules/parse-datetime (Depends-on): Likewise.
3905         * modules/quotearg-simple-tests (Depends-on): Likewise.
3906         * modules/same (Depends-on): Likewise.
3907         * modules/supersede (Depends-on): Likewise.
3908         * modules/supersede-tests (Depends-on): Likewise.
3909         * modules/time_rz (Depends-on): Likewise.
3910         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
3911         * modules/unistr/u32-chr-tests (Depends-on): Likewise.
3912         * modules/unistr/u8-chr-tests (Depends-on): Likewise.
3913         * modules/xalloc (Depends-on): Likewise.
3914         * modules/xnanosleep (Depends-on): Likewise.
3916 2020-09-05  Bruno Haible  <bruno@clisp.org>
3918         Fix "warning: array initialized from parenthesized string constant".
3919         * tests/test-memmem.c (main): Remove parentheses around string constant.
3920         * tests/test-c-strcasestr.c (main): Likewise.
3921         * tests/test-strcasestr.c (main): Likewise.
3923 2020-09-05  Bruno Haible  <bruno@clisp.org>
3925         argmatch tests: Fix ISO C compliance warning.
3926         * tests/test-argmatch.c: Omit semicolon after ARGMATCH_DEFINE_GROUP
3927         invocation.
3929 2020-09-05  Bruno Haible  <bruno@clisp.org>
3931         uniname/uniname: Fix -Wshadow warning.
3932         * lib/uniname/uniname.c (unicode_name_word): Don't declare i upfront.
3933         * modules/uniname/uniname (Depends-on): Add c99.
3935 2020-09-05  Bruno Haible  <bruno@clisp.org>
3937         uniname/uniname: Fix -Wshorten-64-to-32 warnings.
3938         * lib/uniname/uniname.c (unicode_name_word_lookup): Change type of last
3939         argument to size_t.
3940         (unicode_name_character): Change type of len, n1, n2, n3, words_length,
3941         n to size_t.
3943 2020-09-05  Bruno Haible  <bruno@clisp.org>
3945         unistr/u{8,16,32}-uctomb: Avoid possible trouble with huge strings.
3946         * lib/unistr.in.h (u8_uctomb_aux, u8_uctomb, u16_uctomb_aux, u16_uctomb,
3947         u32_uctomb): Change type of last argument to ptrdiff_t.
3948         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
3949         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
3950         * lib/unistr/u16-uctomb.c (u16_uctomb): Likewise.
3951         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise.
3952         * lib/unistr/u32-uctomb.c (u32_uctomb): Likewise.
3954 2020-09-01  Paul Eggert  <eggert@cs.ucla.edu>
3956         manywarnings: remove -Wchkp and -Wabi from C++ too
3957         Suggested by Reuben Thomas in:
3958         https://lists.gnu.org/r/bug-gnulib/2020-09/msg00001.html
3959         At some point somebody should merge the many other manywarnings-c.m4
3960         changes into manywarnings-c++.m4 too, e.g.,
3961         2020-07-02T00:00:51Z!eggert@cs.ucla.edu.
3962         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
3963         Remove -Wchkp, -Wabi.
3965 2020-08-30  Bruno Haible  <bruno@clisp.org>
3967         strerrorname_np: Add tests.
3968         * tests/test-strerrorname_np.c: New file.
3969         * modules/strerrorname_np-tests: New file.
3971         strerrorname_np: New module.
3972         * lib/string.in.h (strerrorname_np): New declaration.
3973         * lib/strerrorname_np.c: New file.
3974         * m4/strerrorname_np.m4: New file.
3975         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether strerrorname_np
3976         is declared.
3977         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERRORNAME_NP,
3978         HAVE_STRERRORNAME_NP, REPLACE_STRERRORNAME_NP.
3979         * modules/string (Makefile.am): Substitute GNULIB_STRERRORNAME_NP,
3980         HAVE_STRERRORNAME_NP, REPLACE_STRERRORNAME_NP.
3981         * modules/strerrorname_np: New file.
3982         * tests/test-string-c++.cc: Verify the signature of strerrorname_np.
3983         * doc/glibc-functions/strerrorname_np.texi: Mention the new module and
3984         the glibc 2.32 bug.
3986 2020-08-27  Paul Eggert  <eggert@cs.ucla.edu>
3988         perror, strerror_r: remove unportable tests
3989         Problem reported by Florian Weimer in:
3990         https://lists.gnu.org/r/bug-gnulib/2020-08/msg00220.html
3991         * tests/test-perror2.c (main):
3992         * tests/test-strerror_r.c (main): Omit unportable tests.
3994 2020-08-26  Bruno Haible  <bruno@clisp.org>
3996         stdint, wchar, wctype-h: Change configure message.
3997         * m4/wint_t.m4 (gt_TYPE_WINT_T): Say "checking whether wint_t is large
3998         enough..." instead of "checking whether wint_t is too small...".
4000 2020-08-26  Bruno Haible  <bruno@clisp.org>
4002         time_rz: Change configure message.
4003         * m4/time_rz.m4 (gl_TIME_RZ): Say "checking whether localtime works even
4004         near extrema..." instead of "checking whether localtime loops forever
4005         near extrema...".
4007 2020-08-26  Bruno Haible  <bruno@clisp.org>
4009         stdint: Change configure message.
4010         * m4/stdint.m4 (gl_STDINT_H): Say "checking whether stdint.h works
4011         without ISO C predefines..." instead of "checking whether stdint.h
4012         predates C++11...".
4014 2020-08-26  Bruno Haible  <bruno@clisp.org>
4016         socketlib: Change configure message.
4017         * m4/socketlib.m4 (gl_SOCKETLIB): Say "checking for WSAStartup..."
4018         instead of "checking if we need to call WSAStartup in winsock2.h and
4019         -lws2_32...".
4021 2020-08-26  Bruno Haible  <bruno@clisp.org>
4023         include_next: Change configure message.
4024         * m4/include_next.m4 (gl_INCLUDE_NEXT): Say "checking whether source
4025         code line length is unlimited..." instead of "checking whether system
4026         header files limit the line length...".
4028 2020-08-26  Bruno Haible  <bruno@clisp.org>
4030         getcwd: Change configure message.
4031         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Say "checking
4032         whether getcwd succeeds when 4k < cwd_length < 16k..." instead of
4033         "checking whether getcwd aborts when 4k < cwd_length < 16k...".
4035 2020-08-26  Bruno Haible  <bruno@clisp.org>
4037         chdir-long: Change configure message.
4038         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Say "checking whether this
4039         system supports file names of any length..." instead of "checking
4040         whether this system has an arbitrary file name length limit...".
4041         Set gl_cv_have_unlimited_file_name_length instead of
4042         gl_cv_have_arbitrary_file_name_length_limit.
4043         * modules/chdir-long (Depends-on, configure.ac): Update accordingly.
4045 2020-08-26  Bruno Haible  <bruno@clisp.org>
4047         ceill: Change configure message.
4048         * m4/ceill.m4 (gl_FUNC_CEILL): Say "checking whether ceill() works..."
4049         instead of "checking whether ceill() breaks with small values...".
4051 2020-08-26  Bruno Haible  <bruno@clisp.org>
4053         iconv: Change configure message.
4054         * m4/iconv.m4 (AM_ICONV): Say "checking whether iconv is compatible
4055         with its POSIX signature..." instead of "checking for iconv
4056         declaration...". Remove K&R C support.
4058 2020-08-26  Paul Eggert  <eggert@cs.ucla.edu>
4060         getcwd: help the merge back into glibc
4061         This patch was inspired by Adhemerval Zanella’s proposed glibc patches:
4062         https://sourceware.org/pipermail/libc-alpha/2020-August/117294.html
4063         The idea is to make it easier for Gnulib lib/getcwd.c to match
4064         glibc io/getcwd-generic.c.
4065         * lib/getcwd.c [_LIBC]: Do not include pathmax.h.
4066         Include not-cancel.h.
4067         (HAVE_OPENAT, D_INO_IN_DIRENT, HAVE_MSVC_INVALID_PARAMETER_HANDLER)
4068         (HAVE_MINIMALLY_WORKING_GETCWD): Define for the _LIBC case.
4069         (__getcwd, __lstat, __readdir) [!_LIBC]: Remove these macros.
4070         (__close_nocancel_nostatus, __getcwd_generic, stat64, __fstat64)
4071         (__fstatat64, __lstat64, __readdir64, __fdopendir, __openat)
4072         (__rewinddir, __openat64, dirent64) [_LIBC]: New macros.
4073         (__getcwd_generic): Rename from __getcwd.
4074         Use the abovementioned macros for consistency with glibc.
4075         (weak_alias): Remove.
4077 2020-08-25  Bruno Haible  <bruno@clisp.org>
4079         verify: Avoid warnings when assume(0) is used.
4080         Reported by Mattias Engdegård <mattiase@acm.org> via Paul Eggert in
4081         <https://lists.gnu.org/archive/html/emacs-devel/2020-08/msg00838.html>.
4082         * lib/verify.h (assume): Use __builtin_unreachable if the argument is
4083         the constant 0.
4084         * tests/test-verify.c (f): New function.
4085         (state): New type.
4086         (test_assume_expressions, test_assume_optimization,
4087         test_assume_noreturn): New functions.
4089 2020-08-25  Bruno Haible  <bruno@clisp.org>
4091         fstrcmp: Clarification regarding NOTE_ORDERED.
4092         * lib/fstrcmp.c (NOTE_ORDERED): Define to false.
4094 2020-08-24  Paul Eggert  <eggert@cs.ucla.edu>
4096         diffseq: new option NOTE_ORDERED
4097         Problem reported by Phil Sainty <https://bugs.gnu.org/42931>.
4098         * NEWS: Mention this.
4099         * lib/diffseq.h (NOTE_ORDERED): New macro.
4100         (IF_LINT2): Remove; no longer needed.
4101         (compareseq): If (!NOTE_ORDERED), recurse on the smaller
4102         subproblem and iterate to do the larger.
4104 2020-08-23  Paul Eggert  <eggert@cs.ucla.edu>
4106         sys_types: let Autoconf 2.70 do pid_t
4107         * m4/pid_t.m4 (AC_TYPE_PID_T): Redefine this Autoconf macro
4108         only for Autoconf versions 2.69 and earlier, since 2.70
4109         will be fixed.
4111 2020-08-23  Bruno Haible  <bruno@clisp.org>
4113         tests: Don't assume that pid_t fits in an 'int'.
4114         * tests/test-nonblocking-pipe-main.c (main): Use type 'pid_t' instead
4115         of 'int'.
4116         * tests/test-nonblocking-socket-main.c (main): Likewise.
4118         sys_types: Fix definition of pid_t on 64-bit MSVC.
4119         * m4/pid_t.m4: New file.
4120         * modules/sys_types (Files): Add it.
4121         * modules/dirent (Files): Likewise.
4122         * modules/fcntl-h (Files): Likewise.
4123         * modules/sched (Files): Likewise.
4124         * modules/signal-h (Files): Likewise.
4125         * modules/spawn (Files): Likewise.
4126         * modules/sys_stat (Files): Likewise.
4127         * modules/sys_wait (Files): Likewise.
4128         * modules/termios (Files): Likewise.
4129         * modules/unistd (Files): Likewise.
4131 2020-08-23  Bruno Haible  <bruno@clisp.org>
4133         inttypes: Fix {PRI,SCN}*PTR on 32-bit native Windows (regr. 2020-07-21).
4134         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): Fix syntax error in test
4135         program.
4137 2020-08-23  Paul Eggert  <eggert@cs.ucla.edu>
4139         intprops: be consistent about +X vs X+0
4140         * lib/intprops.h (_GL_SIGNED_INT_MAXIMUM): Simplify.
4142         intprops: fix INT_MULTIPLY_WRAPV bit-field bug
4143         The bug occurs when using INT_MULTIPLY_WRAPV (a, b, c) where B
4144         is a bit-field, on older GCC or non-GCC compilers where we do
4145         things ourselves instead of using __builtin_mul_overflow.
4146         Without this fix, INT_MULTIPLY_WRAPV would not compile, due
4147         to applying sizeof to a bit-field.
4148         * lib/intprops.h (_GL_INT_MULTIPLY_RANGE_OVERFLOW):
4149         Promote B before giving it to TYPE_WIDTH, in case B is a bit-field.
4151 2020-08-23  Bruno Haible  <bruno@clisp.org>
4153         supersede: Avoid a failure when writing to /dev/null in Solaris zones.
4154         Reported by Jörg Sonnenberger <joerg@netbsd.org>
4155         via Thomas Klausner <tk@giga.or.at> in
4156         <https://pkgsrc.se/files.php?messageId=20200812233110.30230FB28@cvs.NetBSD.org>.
4157         * lib/supersede.c (open_supersede): When opening an existing non-regular
4158         file on Solaris, use O_CREAT although it should not be necessary.
4160 2020-08-23  Bruno Haible  <bruno@clisp.org>
4162         verify: Make assume work on bit field expressions (regr. 2020-08-22).
4163         Reported by Benno Schulenberg <bensberg@telfort.nl> in
4164         <https://lists.gnu.org/archive/html/bug-gnulib/2020-08/msg00202.html>.
4165         * lib/verify.h (assume): Use '_Bool' or 'bool' as type of the temporary
4166         variable.
4168 2020-08-23  Bruno Haible  <bruno@clisp.org>
4170         libc-config: Improve comments.
4171         * lib/cdefs.h (__warndecl, __warnattr, __errordecl): Explain why we
4172         cannot use clang's __diagnose_if__ here.
4174 2020-08-22  Bruno Haible  <bruno@clisp.org>
4176         verify: Do use __builtin_assume on clang.
4177         * lib/verify.h (assume): Use clang’s __builtin_assume, with a temporary
4178         variable in a statement expression.
4180 2020-08-22  Bruno Haible  <bruno@clisp.org>
4182         sig2str: Add more signals.
4183         * lib/sig2str.c (numname_table): Add SIGCPUFAIL, SIGTHR, SIGBREAK.
4185 2020-08-22  Bruno Haible  <bruno@clisp.org>
4187         doc: Update for OpenBSD 6.0, 6.7.
4188         * doc/*/*.texi: Update.
4189         * m4/printf.m4: Update comments and cross-compilation guesses.
4190         * m4/ceill.m4: Update comments.
4191         * m4/getcwd-abort-bug.m4: Likewise.
4192         * m4/ilogb.m4: Likewise.
4193         * m4/ilogbf.m4: Likewise.
4194         * m4/langinfo_h.m4: Likewise.
4195         * m4/modf.m4: Likewise.
4196         * m4/modff.m4: Likewise.
4198 2020-08-22  Bruno Haible  <bruno@clisp.org>
4200         doc: Mention sig2str module.
4201         * doc/glibc-functions/sigabbrev_np.texi: Mention the sig2str module.
4203 2020-08-21  Bruno Haible  <bruno@clisp.org>
4205         sigdescr_np: Add tests.
4206         * tests/test-sigdescr_np.c: New file.
4207         * modules/sigdescr_np-tests: New file.
4209         sigdescr_np: New module.
4210         * lib/string.in.h (sigdescr_np): New declaration.
4211         * lib/sigdescr_np.c: New file.
4212         * m4/sigdescr_np.m4: New file.
4213         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether sigdescr_np is
4214         declared.
4215         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_SIGDESCR_NP,
4216         HAVE_SIGDESCR_NP.
4217         * modules/string (Makefile.am): Substitute GNULIB_SIGDESCR_NP,
4218         HAVE_SIGDESCR_NP.
4219         * modules/sigdescr_np: New file.
4220         * tests/test-string-c++.cc: Verify the signature of sigdescr_np.
4221         * doc/glibc-functions/sigdescr_np.texi: Mention the new module.
4223 2020-08-20  Bruno Haible  <bruno@clisp.org>
4225         sigabbrev_np: Add tests.
4226         * tests/test-sigabbrev_np.c: New file.
4227         * modules/sigabbrev_np-tests: New file.
4229         sigabbrev_np: New module.
4230         * lib/string.in.h (sigabbrev_np): New declaration.
4231         * lib/sigabbrev_np.c: New file.
4232         * m4/sigabbrev_np.m4: New file.
4233         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether sigabbrev_np is
4234         declared.
4235         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_SIGABBREV_NP,
4236         HAVE_SIGABBREV_NP.
4237         * modules/string (Makefile.am): Substitute GNULIB_SIGABBREV_NP,
4238         HAVE_SIGABBREV_NP.
4239         * modules/sigabbrev_np: New file.
4240         * tests/test-string-c++.cc: Verify the signature of sigabbrev_np.
4241         * doc/glibc-functions/sigabbrev_np.texi: Mention the new module.
4243 2020-08-20  Bruno Haible  <bruno@clisp.org>
4245         stdalign tests: Skip test with AIX xlclang.
4246         * tests/test-stdalign.c (main): Skip alignas tests with AIX xlclang.
4248 2020-08-20  Bruno Haible  <bruno@clisp.org>
4250         stdalign: Fix test failures on 32-bit platforms with clang versions < 8.
4251         * lib/stdalign.in.h (_Alignof): For clang versions < 8, use the same
4252         workaround as for GCC versions < 4.9.
4254 2020-08-20  Siddhesh Poyarekar  <siddhesh@gotplt.org>
4256         Sync up ProjectQuirks comments and documentation
4257         Transform the ProjectQuirks comments into a docstring so that it can
4258         be accessed from python as ProjectQuirks.__doc__ and harmonize
4259         descriptions with the documentation.
4260         * build-aux/vcstocl/projectquirks.py (ProjectQuirks):
4261         Transform comments into a docstring.
4262         * doc/vcs-to-changelog.texi: Sync up description with comments.
4264         Split ProjectQuirks out into its own file
4265         ProjectQuirks is used by external quirks files and importing it from
4266         vcs-to-changelog.py is broken since it was renamed to use hyphens.  It
4267         is cleaner to put it in its own file anyway.
4268         * build-aux/vcstocl/projectquirks.py: A new file...
4269         * build-aux/vcs-to-changelog.py (ProjectQuirks): ...to which
4270         we move ProjectQuirks and import the file.
4272 2020-08-19  Bruno Haible  <bruno@clisp.org>
4274         uchar: Fix compilation errors in C++ mode on macOS.
4275         * m4/uchar.m4 (gl_UCHAR_H): Require gl_ANSI_CXX if present. Include some
4276         system header file before attempting to use 'char16_t' and 'char32_t'.
4278 2020-08-19  Bruno Haible  <bruno@clisp.org>
4280         ansi-c++-opt: Work around an autoconf macro reordering problem.
4281         * modules/ansi-c++-opt: Require gl_ANSI_CXX already in the early
4282         section.
4284 2020-08-19  Bruno Haible  <bruno@clisp.org>
4286         math C++ tests: Fix compilation error in with GCC 10.
4287         * lib/math.in.h (cbrt, ceil, copysign, exp2, expm1, floor, fma, fmod,
4288         hypot, ilogb, log, log10, log1p, log2, logb, modf, remainder, rint,
4289         round, trunc): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
4291 2020-08-19  Bruno Haible  <bruno@clisp.org>
4293         uchar: Fix compilation errors in C++ mode on OpenBSD.
4294         * lib/uchar.in.h (char16_t, char32_t): Don't define in C++ mode if
4295         CXX_HAS_UCHAR_TYPES is 1.
4296         * m4/uchar.m4 (gl_UCHAR_H): Determine whether the C++ compiler
4297         predefines char16_t and char32_t. Substitute CXX_HAS_UCHAR_TYPES.
4298         * modules/uchar (Makefile.am): Substitute CXX_HAS_UCHAR_TYPES.
4300 2020-08-19  Bruno Haible  <bruno@clisp.org>
4302         Fix compilation errors in C++ mode on OpenBSD.
4303         * lib/math.in.h (isfinite, isinf, isnan, signbit): In C++ mode on
4304         OpenBSD with clang, use the approach without C preprocessor macro.
4306 2020-08-18  Bruno Haible  <bruno@clisp.org>
4308         uchar C++ tests: Fix side effect on math modules (regr. 2020-08-17).
4309         * modules/uchar-c++-tests (configure.ac): Don't use AC_LANG_PUSH and
4310         AC_LANG_POP.
4312 2020-08-17  Paul Eggert  <eggert@cs.ucla.edu>
4314         verify: avoid __built_assume on Clang
4315         * lib/verify.h (assume): Do not use Clang’s __builtin_assume, as
4316         Clang 9 incorrectly diagnoses arguments as having side effects
4317         even when they do not.  I guess Clang 9 considers any function
4318         call as if it had a side effect here.
4320         libc-config: avoid Clang’s __diagnose_if__
4321         * lib/cdefs.h (__warndecl, __warnattr, __errordecl):
4322         For now, do not use __diagnose_if__ here, as this fails
4323         on Fedora 31 with Clang 9.0.1, with diagnostic
4324         "/usr/include/bits/stdio2.h:263:9: error: fgets called with bigger
4325         size than length of destination buffer
4326         [-Werror,-Wuser-defined-warnings]".  I guess Clang 9 warns even
4327         for functions that are not called?
4329         careadlinkat: speedup for GCC 10 with GCC_LINT
4330         Inspired by a suggestion by Bruno Haible in:
4331         https://lists.gnu.org/r/bug-gnulib/2020-08/msg00155.html
4332         * lib/careadlinkat.c (STACK_BUF_SIZE): New constant.
4333         (readlink_stk): New function, with most of the old careadlinkat
4334         contents and with a new STACK_BUF arg.  Inline it in GCC 10
4335         if GCC_LINT.
4336         (careadlinkat): Use the new function for everything but the
4337         stack buffer.
4339         * build-aux/gcc-warning.spec: Update comments.
4341 2020-08-17  Bruno Haible  <bruno@clisp.org>
4343         Assume autoconf >= 2.64.
4344         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO_LIMIT always.
4346 2020-08-17  Bruno Haible  <bruno@clisp.org>
4348         Revert autoupdate's revert.
4349         * config/srclist.txt: Mark regcomp.c as needing sync with glibc.
4351 2020-08-17  Bruno Haible  <bruno@clisp.org>
4353         uchar C++ tests: Fix build error on FreeBSD 12.
4354         * modules/uchar-c++-tests (configure.ac): Test whether <cuchar> exists.
4355         (Makefile.am): Don't include test-uchar-c++2.cc in the compilation if
4356         <cuchar> does not exist.
4358 2020-08-16  Paul Eggert  <eggert@cs.ucla.edu>
4360         time_rz: remove unused functions
4361         * lib/time_rz.c (isdst_differ, equal_tm): Remove; no longer used.
4363         time_rz: fix issues with mktime_z failures
4364         * lib/time_rz.c (mktime_z): Do not update *TM if revert_tz fails.
4365         Use a cheaper tm_yday test for failed mktime.
4367 2020-08-16  Bruno Haible  <bruno@clisp.org>
4369         intprops test: Strengthen on clang.
4370         * tests/test-intprops.c (VERIFY): Use verify_stmt.
4372 2020-08-16  Bruno Haible  <bruno@clisp.org>
4374         nstrftime: Guide inlining also on clang.
4375         * lib/nstrftime.c (iso_week_days): Inline also on clang.
4377 2020-08-16  Bruno Haible  <bruno@clisp.org>
4379         intprops: Avoid bogus "warning: division by zero is undefined" on clang.
4380         * lib/intprops.h (_GL__GENERIC_BOGUS): Define to 1 on clang.
4382 2020-08-16  Bruno Haible  <bruno@clisp.org>
4384         log2l: Disable MSVC workaround on clang.
4385         * lib/log2l.c (log2l): On clang, use the expression 0.0L/0.0L.
4387 2020-08-16  Bruno Haible  <bruno@clisp.org>
4389         argp: Emit a warning also with clang.
4390         * lib/argp-help.c (__argp_short_program_name): Use #warning also on
4391         clang.
4393 2020-08-16  Bruno Haible  <bruno@clisp.org>
4395         libc-config: Enable __REDIRECT macro also on clang.
4396         * lib/cdefs.h (__REDIRECT, __REDIRECT_NTH, __REDIRECT_NTHNL, __ASMNAME,
4397         __ASMNAME2): Define on clang like on GCC.
4399 2020-08-16  Bruno Haible  <bruno@clisp.org>
4401         regex: Use initializer shorthand syntax also with clang.
4402         * lib/regcomp.c (utf8_sb_map): Use the initializer shorthand syntax also
4403         with clang.
4405 2020-08-16  Bruno Haible  <bruno@clisp.org>
4407         regex: Use space optimization also with clang.
4408         * lib/regex_internal.h (re_token_t): Use a single byte for the type also
4409         with clang.
4411 2020-08-16  Bruno Haible  <bruno@clisp.org>
4413         Use _Static_assert and static_assert primitives when present on clang.
4414         * lib/cdefs.h (_Static_assert): Don't define as a macro on clang.
4415         * lib/verify.h (_GL_HAVE__STATIC_ASSERT, _GL_HAVE__STATIC_ASSERT1,
4416         _GL_HAVE_STATIC_ASSERT1): Define as appropriate on clang.
4418 2020-08-16  Bruno Haible  <bruno@clisp.org>
4420         Use 'throw ()' for optimization in C++ mode also on clang.
4421         * lib/cdefs.h (__THROW): Define to 'throw ()' also on clang.
4422         * lib/getopt-cdefs.in.h (__THROW): Likewise.
4423         * lib/md5.h (__THROW): Likewise.
4425 2020-08-16  Bruno Haible  <bruno@clisp.org>
4427         absolute-header: Add support for clang.
4428         * modules/absolute-header (Makefile.am): Include '__clang__' in the
4429         HAVE_INCLUDE_NEXT expression.
4431 2020-08-16  Bruno Haible  <bruno@clisp.org>
4433         Fix "warning: implicitly declaring library function 'strcasecmp'".
4434         * lib/argp-help.c: Include <strings.h>.
4436 2020-08-16  Bruno Haible  <bruno@clisp.org>
4438         stdio: Don't break attribute 'scanf' on clang.
4439         * lib/stdio.in.h (scanf): Treat clang like GCC.
4441 2020-08-16  Bruno Haible  <bruno@clisp.org>
4443         Use __restrict also on clang.
4444         * lib/argp.h (__restrict): Don't define as a macro on clang >= 3.
4445         * lib/glob.in.h (_Restrict_): Use __restrict on clang >= 3.
4446         * lib/unitypes.in.h (_UC_RESTRICT): Likewise.
4448 2020-08-16  Bruno Haible  <bruno@clisp.org>
4450         pthread-spin: Use GCC built-ins also on clang.
4451         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
4452         pthread_spin_trylock, pthread_spin_unlock): Use the newer GCC built-ins
4453         also on clang.
4455 2020-08-16  Bruno Haible  <bruno@clisp.org>
4457         asyncsafe-spin tests: Update.
4458         * tests/test-asyncsafe-spin2.c: Update to match the change in
4459         lib/asyncsafe-spin.c from 2020-08-11.
4461 2020-08-16  Bruno Haible  <bruno@clisp.org>
4463         setenv: Use tree code also with clang.
4464         * lib/setenv.c (USE_TSEARCH): Treat clang like GCC.
4466 2020-08-16  Bruno Haible  <bruno@clisp.org>
4468         math: Optimize signbit also on clang.
4469         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Optimize also
4470         on clang.
4472 2020-08-16  Bruno Haible  <bruno@clisp.org>
4474         avltreehash-list, rbtreehash-list: Optimize also on clang.
4475         * lib/gl_anytreehash_list1.h (add_nodes_to_buckets): Use
4476         __builtin_expect also on clang.
4478 2020-08-16  Bruno Haible  <bruno@clisp.org>
4480         Fix "warning: 'WSASocketA' is deprecated: Use WSASocketW() instead".
4481         * lib/socket.c: Use WSASocketW, not WSASocketA.
4483         Fix "warning: format specifies type 'unsigned long'".
4484         * tests/test-nonblocking-writer.h (main_writer_loop): Cast dbgfprintf
4485         argument to match the format directive.
4487         Fix "warning: no case matching constant switch condition '0'".
4488         * tests/test-fcntl.c (check_flags): Add a 'default' case.
4490         Fix "warning: integer overflow in expression".
4491         * tests/test-strtol.c (main): Use an 'unsigned long' expression to
4492         remove a 'long' overflow.
4494         Fix "warning: "getpagesize" redefined".
4495         * tests/test-getcwd.c (getpagesize): Don't redefine if defined as a
4496         macro.
4498         Fix "warning: implicitly declaring library function 'strncasecmp'".
4499         * lib/strptime.c: Include <strings.h>.
4501         Fix "warning: 'snprintf' macro redefined".
4502         * lib/strerror_r.c (snprintf): Undefine before redefining.
4504         Fix "warning: address of array 'locale' will always evaluate to 'true'".
4505         * lib/nl_langinfo.c (ctype_codeset): Remove redundant NULL test.
4507         Fix "warning: '__stat64' macro redefined".
4508         * lib/glob.c (__stat64): Undefine also on MSVC/clang.
4510         Fix "warning: 'format' attribute argument not supported: rpl_printf".
4511         * lib/stdio.in.h (printf): Treat clang like GCC.
4513         Fix "warning: attribute declaration must precede definition" with clang.
4514         * lib/math.in.h (acosl, asinl, atanl, ceill, cosl, expl, fabsf, fabsl,
4515         floorl, fmodl, frexpf, frexpl, hypotf, hypotl, ldexpf, ldexpl, logl,
4516         log10l, modfl, sinl, sqrtl, tanl): Disable _GL_CXXALIASWARN invocation
4517         on non-glibc systems.
4518         * lib/netdb.in.h (gai_strerror): Likewise.
4519         * lib/stdio.in.h (snprintf, vfscanf, vscanf, vsnprintf): Likewise.
4520         * lib/sys_stat.in.h (fstat): Likewise.
4521         * lib/utime.in.h (utime): Likewise.
4523         Fix undesired warnings.
4524         * lib/sys_select.in.h: Disable all _GL_WARN_ON_USE invocations with
4525         clang.
4527 2020-08-16  Bruno Haible  <bruno@clisp.org>
4529         C++ tests: Fix link errors on MSVC (regression from 2020-05-31).
4530         * modules/stdio-c++-tests (Makefile.am): Link test-stdio-c++ with
4531         $(LIB_GETRANDOM), needed for the rpl_tmpfile symbol.
4532         * modules/stdlib-c++-tests (Makefile.am): Link test-stdlib-c++ with
4533         $(LIB_GETRANDOM), needed for the mkdtemp and mkstemp symbols.
4535 2020-08-16  Bruno Haible  <bruno@clisp.org>
4537         Don't use Autoconf quadrigraphs.
4538         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Use '#' instead of the corresponding
4539         Autoconf quadrigraph.
4540         * m4/free.m4 (gl_FUNC_FREE): Likewise.
4541         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
4542         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES,
4543         _AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
4544         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
4545         * m4/math_h.m4 (gl_MATH_H): Likewise.
4546         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
4548 2020-08-16  Bruno Haible  <bruno@clisp.org>
4550         Fix quoting of AC_LANG_PROGRAM arguments.
4551         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Quote the AC_LANG_PROGRAM
4552         arguments through [[...]].
4553         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
4554         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
4555         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
4556         * m4/ld-output-def.m4 (gl_LD_OUTPUT_DEF): Likewise.
4557         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Likewise.
4558         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
4559         * m4/mountlist.m4 (gl_MOUNTLIST): Likewise.
4560         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
4561         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
4562         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
4563         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Likewise.
4564         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Likewise.
4565         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
4567 2020-08-16  Bruno Haible  <bruno@clisp.org>
4569         Assume autoconf >= 2.64.
4570         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Set to 2.64.
4571         * DEPENDENCIES: Require Autoconf 2.64 or newer.
4572         * NEWS: Mention the changed requirement.
4573         * m4/00gnulib.m4 (_m4_divert_diversion, AC_DEFUN_ONCE): Remove macros.
4574         * m4/gnulib-common.m4 (AS_VAR_IF, AS_VAR_COPY): Remove macros.
4575         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Quote pushdef'ed
4576         variables.
4577         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
4578         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
4579         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Likewise.
4580         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C), gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++),
4581         gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): Define through AC_DEFUN.
4582         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C), gl_MANYWARN_ALL_GCC(C++)):
4583         Likewise.
4584         * m4/iconv.m4 (AM_ICONV): Define through AC_DEFUN_ONCE directly.
4585         * m4/libunistring.m4 (gl_LIBUNISTRING): Likewise.
4586         * m4/configmake.m4: Update comment.
4588 2020-08-16  Bruno Haible  <bruno@clisp.org>
4590         sys_ioctl: Simplify.
4591         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Remove confusing use of
4592         AC_INCLUDES_DEFAULT.
4594 2020-08-16  Bruno Haible  <bruno@clisp.org>
4596         Fix quoting of AC_LANG_SOURCE arguments.
4597         * m4/printf.m4 (gl_PRINTF_ENOMEM): Fix an m4 quoting bug in the
4598         GL_NOCRASH expansion.
4599         * m4/locale-ar.m4 (gt_LOCALE_AR): Simplify m4 quoting.
4600         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
4601         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
4602         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
4603         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
4605 2020-08-15  Paul Eggert  <eggert@cs.ucla.edu>
4607         nstrftime: be more predictable about errno
4608         This aligns nstrftime better with draft POSIX 202x strftime.
4609         * lib/nstrftime.c: Include errno.h.
4610         (width_add, __strftime_internal): Set errno on failure,
4611         and preserve it on success.  Check for mktime_z failure.
4612         * modules/nstrftime (Depends-on): Add errno.
4613         * modules/nstrftime-tests (Depends-on): Add atoll, intprops.
4614         * tests/test-nstrftime.c: Include intprops.h, limits.h.
4615         (errno_test): New test function.
4616         (main): Call it.
4618 2020-08-15  Bruno Haible  <bruno@clisp.org>
4620         canonicalize: Fix a problem of the autoconf test on MSVC/clang.
4621         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Remove undesired file
4622         from dependency analysis first.
4624 2020-08-15  Bruno Haible  <bruno@clisp.org>
4626         Determine asm output option and filename suffix for MSVC/clang.
4627         * m4/asm-underscore.m4 (gl_C_ASM): Distinguish clang from cl and
4628         clang-cl.
4630 2020-08-15  Bruno Haible  <bruno@clisp.org>
4632         doc: Update for MSVC/clang.
4633         * doc/*-functions/*printf.texi: Mention that MSVC/clang has two bugs
4634         that MSVC 14 does not have.
4636 2020-08-15  Bruno Haible  <bruno@clisp.org>
4638         Revert autoupdate's revert.
4639         * config/srclist.txt: Mark mktime.c as needing sync with glibc.
4641 2020-08-15  Bruno Haible  <bruno@clisp.org>
4643         frexpl: Fix configuration test result on MSVC.
4644         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Avoid a division by a constant
4645         zero.
4647 2020-08-15  Bruno Haible  <bruno@clisp.org>
4649         Support compiling without -loldnames on native Windows.
4650         * m4/gnulib-common.m4 (GL_MDA_DEFINES, _GL_MDA_DEFINES): New macros.
4651         * m4/chown.m4 (AC_FUNC_CHOWN): In the test programs, use GL_MDA_DEFINES.
4652         (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
4653         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
4654         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
4655         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
4656         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Likewise.
4657         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Likewise.
4658         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
4659         * m4/fcntl.m4 (gl_FUNC_FCNTL): Likewise.
4660         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
4661         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
4662         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
4663         * m4/fopen.m4 (gl_FUNC_FOPEN_GNU): Likewise.
4664         * m4/freopen.m4 (gl_FUNC_FREOPEN): Likewise.
4665         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
4666         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
4667         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
4668         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL, gl_FUNC_GETCWD_SIGNATURE):
4669         Likewise.
4670         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Likewise.
4671         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
4672         * m4/lseek.m4 (gl_FUNC_LSEEK): Likewise.
4673         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
4674         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
4675         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
4676         * m4/open-slash.m4 (gl_OPEN_TRAILING_SLASH_BUG): Likewise.
4677         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
4678         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
4679         * m4/pread.m4 (gl_FUNC_PREAD): Likewise.
4680         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
4681         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Likewise.
4682         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
4683         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
4684         * m4/pwrite.m4 (gl_FUNC_PWRITE): Likewise.
4685         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
4686         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
4687         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
4688         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
4689         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
4690         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
4691         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
4692         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
4693         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
4694         * m4/utimens.m4 (gl_UTIMENS): Likewise.
4695         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
4696         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
4697         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): On native Windows, don't
4698         test for getcwd.
4699         * m4/utime.m4 (gl_FUNC_UTIME): On native Windows, don't test for utime.
4700         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): To test for wcsdup, use a test program
4701         with GL_MDA_DEFINES.
4702         * lib/c++defs.h (_GL_CXXALIAS_MDA): New macro.
4703         * lib/fcntl.in.h (creat, open):  On native Windows, use the underscore-
4704         prefixed symbol.
4705         * lib/search.in.h (lfind, lsearch): Likewise.
4706         * lib/stdio.in.h (fcloseall, fdopen, fileno, getw, putw, tempnam):
4707         Likewise.
4708         * lib/stdlib.in.h (ecvt, fcvt, gcvt, mktemp, putenv): Likewise.
4709         * lib/string.in.h (memccpy, strdup): Likewise.
4710         * lib/sys_stat.in.h (chmod, umask): Likewise.
4711         * lib/time.in.h (tzset): Likewise.
4712         * lib/unistd.in.h (access, chdir, close, dup, dup2, execl, execle,
4713         execlp, execv, execve, execvp, execvpe, getcwd, getpid, isatty, lseek,
4714         read, rmdir, swab, unlink, write): Likewise.
4715         * lib/utime.in.h (utime): Likewise.
4716         * lib/wchar.in.h (wcsdup): Likewise.
4717         * lib/math.in.h (j0, j1, jn, y0, y1, yn):  Likewise.
4718         (isfinite, isinf, isnan, signbit): On native Windows, don't define as an
4719         rpl_-prefixed macro.
4720         * lib/canonicalize-lgpl.c (__getcwd): On native Windows, use _getcwd.
4721         * lib/close.c (close_nothrow): On native Windows, use _close.
4722         * lib/creat.c (orig_creat): On native Windows, use _creat.
4723         * lib/dup.c (dup_nothrow): On native Windows, use _dup.
4724         * lib/dup2.c (dup2_nothrow): Use _dup2.
4725         * lib/fdopen.c (fdopen_nothrow): On native Windows, use _fdopen.
4726         * lib/getcwd-lgpl.c: On native Windows, use _getcwd.
4727         * lib/getcwd.c (getcwd_nothrow): Use _getcwd also on mingw.
4728         * lib/open.c (orig_open): On native Windows, use _open.
4729         * lib/read.c (read_nothrow): Use _read.
4730         * lib/rmdir.c: On native Windows, use _rmdir.
4731         * lib/unlink.c: On native Windows, use _unlink.
4732         * lib/write.c (write_nothrow): Use _write.
4733         * lib/sys_select.in.h (close): With clang, don't attach a warning on an
4734         undefined symbol.
4735         * lib/sys_socket.in.h (close): Likewise.
4736         * lib/sys_time.in.h (close): Likewise.
4737         * tests/test-spawn-pipe-child.c: On native Windows, use _fdopen.
4739 2020-08-15  Bruno Haible  <bruno@clisp.org>
4741         Fix "unknown pragma ignored" warnings with clang on native Windows.
4742         * lib/cbrt.c: Don't use '#pragma fenv_access (off)' with clang.
4743         * lib/cbrtf.c: Likewise.
4744         * lib/ceil.c: Likewise.
4745         * lib/floor.c: Likewise.
4746         * lib/fma.c: Likewise.
4747         * lib/fmod.c: Likewise.
4748         * lib/rint.c: Likewise.
4749         * lib/round.c: Likewise.
4750         * lib/trunc.c: Likewise.
4751         * tests/test-ceil2.c: Likewise.
4752         * tests/test-ceilf2.c: Likewise.
4753         * tests/test-floor2.c: Likewise.
4754         * tests/test-floorf2.c: Likewise.
4755         * tests/test-trunc2.c: Likewise.
4756         * tests/test-truncf2.c: Likewise.
4757         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
4758         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
4760 2020-08-15  Bruno Haible  <bruno@clisp.org>
4762         Fix compilation errors in C++ mode with clang on native Windows.
4763         * lib/pthread.in.h (pthread_*): Disable _GL_CXXALIASWARN invocation on
4764         non-glibc systems.
4765         * lib/sched.in.h (sched_yield): Likewise.
4767 2020-08-14  Bruno Haible  <bruno@clisp.org>
4769         stdnoreturn: Work around problem with MSVC/clang.
4770         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On native Windows, include some
4771         system header after <stdnoreturn.h>.
4772         * doc/posix-headers/stdnoreturn.texi: Mention the issue.
4774 2020-08-14  Bruno Haible  <bruno@clisp.org>
4776         utime-h: Generate an utime.h file always.
4777         * modules/utime-h (Makefile.am): Generate utime.h always.
4778         * m4/utime_h.m4 (gl_UTIME_H): Don't set UTIME_H. Don't define
4779         GL_GENERATE_UTIME_H.
4781 2020-08-14  Bruno Haible  <bruno@clisp.org>
4783         mktime, mktime-internal: Remove obsolete code.
4784         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Don't #undef putenv.
4786 2020-08-14  Bruno Haible  <bruno@clisp.org>
4788         getcwd: Remove obsolete code.
4789         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't #undef mkdir.
4790         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
4792 2020-08-14  Bruno Haible  <bruno@clisp.org>
4794         tzset: Assume the function exists.
4795         * lib/time.in.h (tzset): Assume HAVE_TZSET is 1.
4796         * lib/tzset.c: Define rpl_tzset, not tzset. Assume HAVE_TZSET is 1.
4797         * modules/tzset (configure.ac): Don't test HAVE_TZSET.
4798         * m4/tzset.m4 (gl_FUNC_TZSET): Don't test for tzset. Don't set
4799         HAVE_TZSET.
4800         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Don't initialize HAVE_TZSET.
4801         * modules/time (Makefile.am): Don't substitute HAVE_TZSET.
4803         nstrftime: Assume tzset exists.
4804         * lib/nstrftime.c (HAVE_TZSET): Remove macro.
4805         (__strftime_internal): Test my_strftime, not HAVE_TZSET.
4806         * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Don't test for tzset.
4808         mktime, mktime-internal: Assume tzset exists.
4809         * lib/mktime.c (my_tzset): Assume HAVE_TZSET is 1.
4810         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Don't test for tzset.
4812 2020-08-14  Bruno Haible  <bruno@clisp.org>
4814         strdup: Assume the function exists.
4815         * m4/strdup.m4 (gl_FUNC_STRDUP, gl_FUNC_STRDUP_POSIX): Don't test
4816         whether strdup exists.
4817         * modules/strdup (Files): Remove lib/strdup.c.
4818         (configure.ac): Don't compile strdup.c.
4819         * modules/strdup-posix (Depends-on, configure.ac): Don't test
4820         ac_cv_func_strdup.
4821         * doc/posix-functions/strdup.texi: Update.
4822         * lib/unistr/u8-strdup.c: Assume HAVE_STRDUP is 1.
4823         * modules/unistr/u8-strdup (Files): Remove lib/unistr/u-strdup.h.
4824         (Depends-on): Remove unistr/u8-strlen.
4826 2020-08-13  Bruno Haible  <bruno@clisp.org>
4828         sys_random: Work around an uClibc bug.
4829         Reported by akater <nuclearspace@gmail.com>
4830         via Stefan Kangas <stefan@marxist.se>
4831         in <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=42236>.
4832         * lib/sys_random.in.h: On uClibc, include <stddef.h> first.
4833         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Update comment.
4834         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Likewise.
4835         * doc/glibc-headers/sys_random.texi: Mention the uClibc bug.
4837 2020-08-12  Bruno Haible  <bruno@clisp.org>
4839         Avoid implicit conversion from 'unsigned int' to 'int' in initializers.
4840         Reported by Florian Weimer in
4841         <https://lists.gnu.org/archive/html/bug-gnulib/2020-08/msg00086.html>.
4842         * lib/gen-uni-tables.c (output_predicate): Change the element type of
4843         the level3 array to 'unsigned int'.
4844         * lib/unictype/bitmap.h (bitmap_lookup): Access an 'unsigned int'.
4845         * lib/unictype/categ_*.h: Regenerated.
4846         * lib/unictype/ctype_*.h: Regenerated.
4847         * lib/unictype/pr_*.h: Regenerated.
4848         * lib/unictype/sy_*.h: Regenerated.
4849         * lib/unicase/cased.h: Regenerated.
4850         * lib/unicase/ignorable.h: Regenerated.
4852 2020-08-12  Paul Eggert  <eggert@cs.ucla.edu>
4854         stdint: port intptr_t to more-recent MinGW
4855         Problem reported by Eli Zaretskii in <https://bugs.gnu.org/36597#106>.
4856         * lib/stdint.in.h (intptr_t, uintptr_t): Do not define on MinGW,
4857         even if _INTPTR_T_DEFINED and _UINTPTR_T_DEFINED are not defined.
4858         Apparently those two macros were removed in mingwrt-3.22
4859         dated 2016-07-14.
4861 2020-08-12  Bruno Haible  <bruno@clisp.org>
4863         thread-optim: Export function-like macros only.
4864         Suggested by Paul Eggert.
4865         * lib/thread-optim.h (gl_multithreaded): New macro.
4866         (IF_MT_DECL, IF_MT): Remove macros.
4867         * doc/multithread.texi (Multithreading Optimizations): Add a small
4868         example.
4869         * lib/fatal-signal.c: Update all uses.
4870         * lib/clean-temp.c: Likewise.
4871         * lib/localename.c: Likewise.
4872         * modules/localename (Depends-on): Add stdbool.
4874 2020-08-12  Bruno Haible  <bruno@clisp.org>
4876         Revert autoupdate's revert.
4877         * config/srclist.txt: Mark regex.h as needing sync with glibc.
4879 2020-08-11  Bruno Haible  <bruno@clisp.org>
4881         thread-optim: Fix a compiler warning.
4882         * lib/thread-optim.h (IF_MT_DECL): Define differently.
4884 2020-08-11  Bruno Haible  <bruno@clisp.org>
4886         Use __restrict also on clang.
4887         * lib/cdefs.h (__restrict): Don't define as a macro on clang.
4888         (__restrict_arr): On clang, define like on GCC.
4889         * lib/regex.h (_Restrict_): Use '__restrict' also on clang.
4890         (_Restrict_arr_): Use _Restrict_ also on clang.
4891         * lib/spawn.in.h (_Restrict_): Use '__restrict' also on clang.
4892         (_Restrict_arr_): Use _Restrict_ also on clang.
4894 2020-08-11  Bruno Haible  <bruno@clisp.org>
4896         Use flexible array syntax also on clang.
4897         * lib/cdefs.h (__flexarr, __glibc_c99_flexarr_available): For clang,
4898         define like for GCC 3.
4900 2020-08-11  Bruno Haible  <bruno@clisp.org>
4902         fcntl: On native Windows, use _setmode, not setmode.
4903         * lib/fcntl.c (dupfd): Use _setmode, not setmode.
4904         * lib/binary-io.h: Update comment.
4905         * tests/test-cloexec.c: Call set_binary_mode, not setmode.
4906         * tests/test-dup2.c: Likewise.
4907         * tests/test-dup-safer.c: Likewise.
4908         * tests/test-fcntl.c: Likewise.
4910 2020-08-11  Bruno Haible  <bruno@clisp.org>
4912         execute, spawn-pipe: Use _spawnvpe, not spawnvpe.
4913         * lib/execute.c (execute): Use _spawnvpe, not spawnvpe.
4914         * lib/spawn-pipe.c (create_pipe): Likewise.
4915         * tests/test-nonblocking-pipe-main.c (main): Likewise.
4916         * tests/test-nonblocking-socket-main.c (main): Likewise.
4917         * lib/wait-process.c: Update comment.
4918         * doc/posix-functions/fork.texi: Update.
4920 2020-08-11  Bruno Haible  <bruno@clisp.org>
4922         asyncsafe-spin: Use GCC built-ins also on clang.
4923         * lib/asyncsafe-spin.c (asyncsafe_spin_init, do_lock, do_unlock): Use
4924         the newer GCC built-ins also on clang.
4926 2020-08-11  Bruno Haible  <bruno@clisp.org>
4928         Use expression statements also on clang.
4929         * lib/cdefs.h (__extension__): Don't define to empty on clang.
4930         * lib/obstack.h (__extension__): Likewise.
4931         (obstack_object_size, obstack_room, obstack_make_room, obstack_empty_p,
4932         obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
4933         obstack_int_grow, obstack_ptr_grow_fast, obstack_int_grow_fast,
4934         obstack_blank, obstack_alloc, obstack_copy, obstack_copy0,
4935         obstack_finish, obstack_free): Enable as optimized macros also on clang.
4936         * lib/fpucw.h (fpucw_t etc.): Enable the definitions also on clang.
4938 2020-08-10  Bruno Haible  <bruno@clisp.org>
4940         Use many __attribute__s with clang.
4941         * m4/gnulib-common.m4 (_Noreturn): Use __attribute__ __noreturn__ also
4942         on clang.
4943         * lib/cdefs.h (__glibc_clang_has_attribute, __glibc_clang_has_builtin):
4944         New macros.
4945         (__THROW, __THROWNL, __NTH, __NTHNL): Use __attribute__ __nothrow__ also
4946         on clang.
4947         (__warndecl, __warnattr, __errordecl): Use __attribute__ __diagnose_if__
4948         also on older clang versions.
4949         (__attribute__): Don't define to empty on clang.
4950         (__attribute_malloc__): Use __attribute__ __malloc__ also on clang.
4951         (__attribute_pure__): Use __attribute__ __pure__ also on clang.
4952         (__attribute_const__): Use __attribute__ __const__ also on clang.
4953         (__attribute_used__): Use __attribute__ __used__ also on clang.
4954         (__attribute_noinline__): Use __attribute__ __noinline__ also on clang.
4955         (__attribute_deprecated__): Use __attribute__ __deprecated__ also on
4956         clang.
4957         (__attribute_format_arg__): Use __attribute__ __format_arg__ also on
4958         clang.
4959         (__attribute_format_strfmon__): Use __attribute__ __format__ __strfmon__
4960         also on clang.
4961         (__nonnull): Use __attribute__ __nonnull__ also on clang.
4962         (__attribute_warn_unused_result__): Use __attribute__
4963         __warn_unused_result__ also on clang.
4964         (__always_inline): Use __attribute__ __always_inline__ also on clang.
4965         (__attribute_artificial__): Use __attribute__ __artificial__ also on
4966         clang >= 7.
4967         (__glibc_unlikely, __glibc_likely): Use __builtin_expect also on older
4968         clang versions.
4969         (_Noreturn): Don't redefine on clang >= 3.5.
4970         * lib/arg-nonnull.h (_GL_ARG_NONNULL): Use __attribute__ __nonnull__
4971         also on clang.
4972         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Use __attribute__ __pure__ also
4973         on clang.
4974         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Likewise.
4975         * lib/string.in.h (_GL_ATTRIBUTE_PURE): Likewise.
4976         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Likewise.
4977         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT): Use __attribute__ __format__
4978         also on clang.
4979         * lib/monetary.in.h (_GL_ATTRIBUTE_FORMAT): Likewise.
4980         * lib/textstyle.in.h (ostream_printf, ostream_vprintf): Likewise.
4981         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST): Use __attribute__ __const__
4982         also on clang.
4983         (_UC_ATTRIBUTE_PURE): Use __attribute__ __pure__ also on clang.
4984         * lib/noreturn.h (_GL_NORETURN_FUNC, _GL_NORETURN_FUNCPTR): Use
4985         __attribute__ __noreturn__ also on clang.
4986         * lib/obstack.h (__attribute_noreturn__): Likewise.
4987         * lib/file-set.h (record_file): Use __attribute__ __nonnull__ also on
4988         clang.
4989         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__
4990         always_inline also on clang.
4991         * tests/test-printf-posix.c (func1, func2, func3, func4): Test also on
4992         clang.
4994 2020-08-10  Bruno Haible  <bruno@clisp.org>
4996         c-ldtoastr tests: Fix test failure.
4997         * tests/test-c-ldtoastr.c (main): Support platforms where 'long double'
4998         is longer than 'double'.
5000 2020-08-10  Bruno Haible  <bruno@clisp.org>
5002         Revert autoupdate's revert.
5003         * config/srclist.txt: Mark intprops.h as needing sync with glibc.
5005 2020-08-09  Bruno Haible  <bruno@clisp.org>
5007         string: Fix build error in C++ mode with clang (regression from today).
5008         * lib/warn-on-use.h (_GL_WARN_ON_USE_CXX): Expect two rettype
5009         parameters, one for GCC, one for clang.
5010         * lib/c++defs.h (_GL_CXXALIASWARN1_2): Update.
5011         * lib/string.in.h (strchr, strpbrk, strrchr): For clang, pass 'char *'
5012         as return type.
5014 2020-08-09  Bruno Haible  <bruno@clisp.org>
5016         ftruncate: Use _chsize, not chsize.
5017         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Test for _chsize, not chsize.
5018         * lib/ftruncate.c: Test HAVE__CHSIZE.
5019         (chsize_nothrow): Use _chsize, not chsize.
5021 2020-08-09  Bruno Haible  <bruno@clisp.org>
5023         Silence warnings from clang 10 with -Wimplicit-fallthrough.
5024         * lib/dfa.c (FALLTHROUGH): Use __attribute__ __fallthrough__ also on
5025         clang >= 10.
5026         * lib/fnmatch.c (FALLTHROUGH): Likewise.
5027         * lib/fts.c (FALLTHROUGH): Likewise.
5028         * tests/macros.h (FALLTHROUGH): Likewise.
5029         * lib/regex_internal.h (FALLTHROUGH): Likewise.
5030         * config/srclist.txt: Mark it as needing sync with glibc.
5032 2020-08-09  Bruno Haible  <bruno@clisp.org>
5034         stdbool tests: Enable the stricter tests also on clang.
5035         * tests/test-stdbool.c (ADDRESS_CHECK_OKAY): Define also on clang.
5036         (e): Enable the address-to-bool conversion test also on clang.
5038 2020-08-09  Bruno Haible  <bruno@clisp.org>
5040         count-one-bits: Use __builtin_popcount{,l,ll} on clang.
5041         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the GCC built-in.
5043 2020-08-09  Bruno Haible  <bruno@clisp.org>
5045         Use attribute __aligned__ with clang.
5046         * lib/stdalign.in.h (_Alignas): Treat clang like GCC.
5047         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS): Likewise.
5049 2020-08-09  Bruno Haible  <bruno@clisp.org>
5051         Use __alignof__ with clang.
5052         * m4/stddef_h.m4 (gl_STDDEF_H): Test the alignment of max_align_t also
5053         on clang.
5054         * lib/alignof.h (alignof_type): Use __alignof__ also on clang.
5055         * lib/stdalign.in.h (_Alignof): Don't activate the GCC workaround on
5056         clang.
5057         * lib/malloca.h (sa_alignof): Use __alignof__ also on clang.
5058         * lib/bitset/list.c (lbitset_elt_alloc): Use __alignof__ also on clang.
5059         * lib/bitset/table.c (tbitset_elt_alloc): Likewise.
5060         * tests/test-stddef.c: Very the behaviour of __alignof__ also on clang.
5062 2020-08-09  Bruno Haible  <bruno@clisp.org>
5064         ignore-value: Simplify on clang.
5065         * lib/ignore-value.h (ignore_value): With clang, no need to use the GCC
5066         workaround.
5068 2020-08-09  Bruno Haible  <bruno@clisp.org>
5070         Use __typeof__ with clang.
5071         * m4/stdint.m4 (gl_STDINT_H): Check for SIZE_MAX also on
5072         "clang -std=gnu99".
5073         * lib/intprops.h (_GL_HAVE___TYPEOF__): Define to 1 also on clang.
5074         * tests/test-stdint.c (verify_same_types): Enable the check also on
5075         clang.
5077 2020-08-09  Bruno Haible  <bruno@clisp.org>
5079         Add ability to emit user-defined warnings and errors with clang.
5080         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _GL_ATTRIBUTE_ERROR,
5081         _GL_ATTRIBUTE_WARNING using an attribute for clang.
5082         * lib/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_ATTRIBUTE,
5083         _GL_WARN_ON_USE_CXX): Define using an attribute for clang.
5084         * lib/cdefs.h (__warndecl, __warnattr, __errordecl): Define using an
5085         attribute for clang.
5087 2020-08-09  Bruno Haible  <bruno@clisp.org>
5089         intprops: Fix typo in comment.
5090         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_P): Fix typo in comment.
5092 2020-08-09  Bruno Haible  <bruno@clisp.org>
5094         Use __builtin_signbit* with clang.
5095         * lib/math.in.h (signbit): Use __builtin_signbit{,f,l} also on clang.
5096         * m4/signbit.m4 (gl_SIGNBIT): Use __builtin_signbit{,f,l} also on clang.
5097         Set REPLACE_SIGNBIT_USING_BUILTINS, not REPLACE_SIGNBIT_USING_GCC.
5098         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
5099         REPLACE_SIGNBIT_USING_BUILTINS, not REPLACE_SIGNBIT_USING_GCC.
5100         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_BUILTINS,
5101         not REPLACE_SIGNBIT_USING_GCC.
5103 2020-08-09  Bruno Haible  <bruno@clisp.org>
5105         Use __builtin_isnan with clang.
5106         * lib/isnanf-nolibm.h (isnanf): Use the GCC built-in __builtin_isnan,
5107         not __builtin_isnanf. Also on clang.
5108         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Use the GCC
5109         built-in __builtin_isnan, not __builtin_isnanf. Also on clang.
5110         * lib/isnand-nolibm.h (isnand): With clang, use the GCC built-in.
5111         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): With clang, use the GCC
5112         built-in.
5113         * lib/isnanl-nolibm.h (isnanf): Use the GCC built-in __builtin_isnan,
5114         not __builtin_isnanl. Also on clang.
5115         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_FUNC_ISNANL_WORKS): Use the
5116         GCC built-in __builtin_isnan, not __builtin_isnanl. Also on clang.
5117         * lib/math.in.h (__has_builtin): Remove macro.
5118         (isnanf, gl_isnan_f): Use the GCC built-in __builtin_isnan, not
5119         __builtin_isnanf. Also on clang.
5120         (isnand, gl_isnan_d): With clang, use the GCC built-in.
5121         (isnanl, gl_isnan_l): Use the GCC built-in __builtin_isnan, not
5122         __builtin_isnanl. Also on clang.
5123         (isnan): Use the GCC built-in __builtin_isnan in all three cases. Also
5124         on clang.
5126 2020-08-09  Bruno Haible  <bruno@clisp.org>
5128         thread-optim: Fix logic error.
5129         Reported by Paul Eggert.
5130         * lib/thread-optim.h (IF_MT): Fix logic error.
5132 2020-08-08  Bruno Haible  <bruno@clisp.org>
5134         localename: Use module 'thread-optim'.
5135         * lib/localename.c: Include thread-optim.h.
5136         (struniq): Use IF_MT macro.
5137         * modules/localename (Depends-on): Add thread-optim.
5139         clean-temp: Use module 'thread-optim'.
5140         * lib/clean-temp.c: Include thread-optim.h.
5141         (register_temporary_file, unregister_temporary_file, create_temp_dir,
5142         register_temp_file, unregister_temp_file, register_temp_subdir,
5143         unregister_temp_subdir, cleanup_temp_dir_contents, register_fd,
5144         close_temp, fclose_variant_temp): Use IF_MT macro.
5145         * modules/clean-temp (Depends-on): Add thread-optim.
5147         fatal-signal: Use module 'thread-optim'.
5148         * lib/fatal-signal.c: Include thread-optim.h.
5149         (at_fatal_signal, block_fatal_signals, unblock_fatal_signals): Use IF_MT
5150         macro.
5151         * modules/fatal-signal (Depends-on): Add thread-optim.
5153 2020-08-08  Bruno Haible  <bruno@clisp.org>
5155         New module 'thread-optim'.
5156         * lib/thread-optim.h: New file.
5157         * modules/thread-optim: New file.
5158         * doc/multithread.texi (Multithreading Optimizations): New section.
5160 2020-08-07  Paul Eggert  <eggert@cs.ucla.edu>
5162         doc: more updates for glibc 2.32
5163         * doc/glibc-functions/lchmod.texi, doc/posix-functions/faccessat.texi:
5164         * doc/posix-functions/fchmodat.texi: Update.
5166 2020-08-07  Bruno Haible  <bruno@clisp.org>
5168         doc: Update for glibc 2.32.
5169         * doc/glibc-functions/__libc_single_threaded.texi: New file.
5170         * doc/glibc-functions/pthread_attr_getsigmask_np.texi: New file.
5171         * doc/glibc-functions/pthread_attr_setsigmask_np.texi: New file.
5172         * doc/glibc-functions/sigabbrev_np.texi: New file.
5173         * doc/glibc-functions/sigdescr_np.texi: New file.
5174         * doc/glibc-functions/strerrordesc_np.texi: New file.
5175         * doc/glibc-functions/strerrorname_np.texi: New file.
5176         * doc/gnulib.texi: Include them.
5177         (Glibc sys/single_threaded.h): New section.
5178         * doc/pastposix-functions/h_errno.texi: Update.
5179         * doc/posix-functions/*.texi: Likewise.
5180         * doc/glibc-functions/*.texi: Likewise.
5182 2020-08-07  Bruno Haible  <bruno@clisp.org>
5184         alloca: No need to compile alloca.c with clang.
5185         * lib/alloca.c: Skip all code with clang.
5187         Use __builtin_alloca with clang.
5188         * lib/alloca.in.h (alloca): Define as __builtin_alloca on clang.
5190 2020-08-06  Bruno Haible  <bruno@clisp.org>
5192         Use __builtin_assume with clang.
5193         * lib/verify.h (_GL_HAS_BUILTIN_ASSUME): New macro.
5194         (assume): Use __builtin_assume when available.
5196 2020-08-06  Paul Eggert  <eggert@cs.ucla.edu>
5198         libgmp: add <gmp/gmp.h> support
5199         * m4/libgmp.m4 (gl_LIBGMP):
5200         * modules/libgmp (configure.ac, Makefile.am):
5201         Support platforms requiring ‘#include <gmp/gmp.h>’ instead of
5202         ‘#include <gmp.h>’.
5204 2020-08-06  Bruno Haible  <bruno@clisp.org>
5206         Consider that clang defines __OPTIMIZE__ like GCC does.
5207         * lib/streq.h: Define the inline functions also on clang.
5208         * lib/c-strcaseeq.h: Likewise.
5209         * lib/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't enable
5210         the GCC workaround to clang.
5212 2020-08-06  Bruno Haible  <bruno@clisp.org>
5214         safe-alloc: Remove unused code.
5215         * lib/safe-alloc.h (__GNUC_PREREQ): Remove macro.
5217 2020-08-06  Bruno Haible  <bruno@clisp.org>
5219         Use __builtin_expect with clang everywhere.
5220         * lib/cdefs.h (__glibc_unlikely, __glibc_likely): Use the GCC built-in
5221         also on clang.
5223 2020-08-05  Bruno Haible  <bruno@clisp.org>
5225         Use __builtin_ctz{,l,ll} and __builtin_ffs{,l,ll} with clang everywhere.
5226         * lib/count-trailing-zeros.h (COUNT_TRAILING_ZEROS): Use the GCC
5227         built-in also on clang.
5228         * lib/ffs.c: With clang, use the GCC built-in, not <intrin.h>.
5229         * lib/ffsl.h: Likewise. Assume GCC_BUILTIN is defined.
5231 2020-08-05  Bruno Haible  <bruno@clisp.org>
5233         Use __builtin_clz{,l,ll} with clang, also on Windows.
5234         * lib/integer_length.c: With clang, use the GCC built-in, not
5235         <intrin.h>.
5236         * lib/integer_length_l.c: Likewise.
5237         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS): Use the GCC built-in
5238         also on clang.
5239         * lib/vasnprintf.c (divide): Likewise.
5241 2020-08-04  Paul Eggert  <eggert@cs.ucla.edu>
5243         Update srclist.txt as per recent glibc changes
5244         * config/srclist.txt: Uncomment lines to reflect recent merges
5245         from Gnulib to glibc.
5247 2020-08-03  Bruno Haible  <bruno@clisp.org>
5249         Prefer documented autoconf macro 'm4_if' over 'ifelse'.
5250         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Use m4_if instead of ifelse.
5252 2020-08-03  Bruno Haible  <bruno@clisp.org>
5254         integer_length_ll: Optimize for MSVC in 64-bit mode.
5255         * lib/integer_length_l.c (MSVC_BUILTIN): Define for MSVC in 64-bit mode.
5256         (FUNC): On MSVC, use MSVC_BUILTIN if defined.
5258 2020-08-03  Bruno Haible  <bruno@clisp.org>
5260         integer_length_ll: Optimize for MSVC in 32-bit mode.
5261         * lib/integer_length_l.c: Include <intrin.h>.
5262         (integer_length): Define as inline function, like in
5263         lib/integer_length.c.
5265 2020-08-03  Bruno Haible  <bruno@clisp.org>
5267         integer_length: Optimize for MSVC.
5268         * lib/integer_length.c: Include <intrin.h>.
5269         (integer_length): With MSVC, use the _BitScanReverse built-in.
5271 2020-08-03  Bruno Haible  <bruno@clisp.org>
5273         ffsll: Optimize for MSVC in 64-bit mode.
5274         * lib/ffsl.h (FUNC): On MSVC, use MSVC_BUILTIN if defined.
5275         * lib/ffsll.c (MSVC_BUILTIN): Define for MSVC in 64-bit mode.
5276         * lib/ffsl.c (MSVC_BUILTIN): Define for MSVC.
5278 2020-08-03  Bruno Haible  <bruno@clisp.org>
5280         ffsll: Optimize for MSVC in 32-bit mode.
5281         * lib/ffsl.h: Include <intrin.h>.
5282         (ffs): Define as inline function, like in lib/ffs.c.
5284 2020-08-03  Bruno Haible  <bruno@clisp.org>
5286         ffs: Optimize for MSVC.
5287         * lib/ffs.c: Include <intrin.h>.
5288         (ffs): With MSVC, use the _BitScanForward built-in.
5290 2020-08-03  Bruno Haible  <bruno@clisp.org>
5292         sigprocmask: Try to avoid breakage for people who use an Autoconf cache.
5293         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Change the name of the cache
5294         variable.
5296 2020-08-03  Harald van Dijk  <harald@gigawatt.nl>  (tiny change)
5298         fopen: Avoid undesired interactions with glibc headers.
5299         * lib/fopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this instead of
5300         __need_FILE, as the latter does not work with glibc.
5302 2020-08-02  Paul Eggert  <eggert@cs.ucla.edu>
5304         fcntl: document some F_SETLK errno variations
5305         * doc/posix-functions/fcntl.texi (fcntl): Document
5306         OpenIndiana, GNU/Linux, FreeBSD on NFS files.
5308 2020-08-02  Bruno Haible  <bruno@clisp.org>
5310         oset: Add an 'iterator_atleast' operation.
5311         * lib/gl_array_oset.c (gl_array_indexof_atleast): New function,
5312         extracted from gl_array_search_atleast.
5313         (gl_array_search_atleast): Use it.
5314         (gl_array_iterator_atleast): New function.
5315         (gl_array_oset_implementation): Use it.
5316         * lib/gl_anytree_oset.h (gl_tree_iterator_atleast): New function.
5317         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Use it.
5318         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Likewise.
5319         * lib/gl_oset.h (struct gl_oset_implementation): Add 'iterator_atleast'
5320         member.
5321         (gl_oset_iterator_atleast): New function.
5322         * lib/gl_oset.hh (gl_OSet): Add 'begin_atleast' member.
5323         (gl_OSet::iterator): Add another auxiliary constructor.
5324         * tests/test-array_oset.c (is_at_least, gl_sortedlist_indexof_atleast):
5325         New functions.
5326         (main): Test also gl_oset_iterator_atleast.
5327         * tests/test-avltree_oset.c (is_at_least): New function.
5328         (main): Test also gl_oset_iterator_atleast.
5329         * tests/test-rbtree_oset.c (is_at_least): New function.
5330         (main): Test also gl_oset_iterator_atleast.
5331         * tests/test-oset-c++.cc (is_at_most): New function.
5332         (main): Test also gl_OSet::begin_atleast.
5334 2020-08-02  Bruno Haible  <bruno@clisp.org>
5336         oset-c++, omap-c++: Remove restriction for search_atleast method.
5337         * lib/gl_oset.hh (gl_OSet::search_atleast): Allow the threshold to be of
5338         a different type than the element.
5339         * lib/gl_omap.hh (gl_OMap::search_atleast): Allow the threshold to be of
5340         a different type than the key.
5342 2020-08-01  Paul Eggert  <eggert@cs.ucla.edu>
5344         gnumakefile: say ‘$(MAKE)’ not ‘make’
5345         * top/GNUmakefile (abort-due-to-no-makefile):
5346         Prefer ‘$(MAKE)’ to ‘make’ in a diagnostic.
5347         This change is backported from Autoconf.
5349 2020-08-01  Bruno Haible  <bruno@clisp.org>
5351         Prefer documented autoconf macro 'm4_if' over 'ifelse'.
5352         * m4/autobuild.m4 (AB_INIT): Use m4_if instead of ifelse.
5353         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
5354         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
5355         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
5356         * m4/libtextstyle.m4 (gl_LIBTEXTSTYLE): Likewise.
5358 2020-08-01  Bruno Haible  <bruno@clisp.org>
5360         libtextstyle-optional: Update tests.
5361         * modules/libtextstyle-optional-tests (configure.ac): Invoke
5362         gl_LIBTEXTSTYLE_OPTIONAL.
5364 2020-08-01  Bruno Haible  <bruno@clisp.org>
5366         parse-datetime: Fix wrong #line statements.
5367         * modules/parse-datetime (Makefile.am): Correct #line statements also in
5368         parse-datetime-gen.h.
5370 2020-08-01  Bruno Haible  <bruno@clisp.org>
5372         libtextstyle[-optional]: Allow requesting a minimum version.
5373         * m4/libtextstyle.m4 (gl_LIBTEXTSTYLE): Allow an optional argument.
5374         (gl_LIBTEXTSTYLE_NEWEST_VERSION, gl_LIBTEXTSTYLE_INITIALIZE,
5375         gl_LIBTEXTSTYLE_SEARCH): New macros.
5376         * modules/libtextstyle (configure.ac): Don't invoke gl_LIBTEXTSTYLE.
5377         * m4/libtextstyle-optional.m4 (gl_LIBTEXTSTYLE_OPTIONAL): Allow an
5378         optional argument. Invoke, not require, gl_LIBTEXTSTYLE.
5379         * modules/libtextstyle-optional (configure.ac): Don't invoke
5380         gl_LIBTEXTSTYLE_OPTIONAL.
5381         * NEWS: Mention the changes.
5383 2020-07-31  Bruno Haible  <bruno@clisp.org>
5385         _GL_CMP: Improve documentation.
5386         Reported by Paul Eggert in
5387         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00188.html>.
5388         * m4/gnulib-common.m4 (gl_COMMON_BODY): Clarify what arguments can be
5389         passed.
5391 2020-07-30  Paul Eggert  <eggert@cs.ucla.edu>
5393         largefile: sync with Autoconf master
5394         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES):
5395         Avoid undefined behavior on platforms where off_t is 32 bits.
5396         See: https://bugs.debian.org/742780
5398         alloca: sync with Autoconf master
5399         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
5400         Do not define if Autoconf 2.70 or later, since Autoconf master
5401         now matches us.
5403 2020-07-30  Bruno Haible  <bruno@clisp.org>
5405         unicodeio: Add comment.
5406         * lib/unicodeio.c (unicode_to_mb): Clarify why the code distinguishes
5407         different iconv behaviours.
5409 2020-07-30  Paul Eggert  <eggert@cs.ucla.edu>
5411         Work around some Oracle Studio attribute bugs
5412         These were discovered when building bleeding-edge Emacs with
5413         Oracle Studio.
5414         * m4/gnulib-common.m4 (_GL_ATTRIBUTE_COLD, _GL_ATTRIBUTE_MAY_ALIAS):
5415         Port to Oracle Studio 12.6, which mishandles __attribute__
5416         ((__cold__)) and __attribute__ ((__may_alias__)) even though
5417         __has_attribute says they work.
5419 2020-07-29  Bruno Haible  <bruno@clisp.org>
5421         unicodeio: Fix wrong result on musl libc.
5422         Reported by A. Wilcox <awilfox@adelielinux.org> in
5423         <https://www.openwall.com/lists/musl/2020/07/29/2>.
5424         * lib/unicodeio.c (unicode_to_mb): Handle asterisk fallback characters
5425         on musl libc.
5426         * m4/unicodeio.m4 (gl_UNICODEIO): Invoke gl_MUSL_LIBC.
5427         * modules/unicodeio (Files): Add m4/musl.m4.
5429 2020-07-29  Paul Eggert  <eggert@cs.ucla.edu>
5431         fsusage, regex, stat-size: remove Cray support
5432         As near as I can make out this is actually support for UNICOS/mp,
5433         last released 2005, and Cray hasn’t supported that for years.
5434         * config/srclist.txt: Comment out regex.h for now.
5435         * lib/fsusage.c (get_fs_usage):
5436         * lib/regex.h (re_comp, re_exec):
5437         * lib/stat-size.h (ST_NBLOCKSIZE):
5438         Don’t worry about _CRAY.
5440 2020-07-29  Bruno Haible  <bruno@clisp.org>
5442         parse-datetime: Fix compilation error with bison 3.7.
5443         * modules/parse-datetime (Makefile.am): Create a generated header file
5444         parse-datetime-gen.h in the source directory. Correct #include and
5445         #line statements during preprocessing.
5447 2020-07-28  Bruno Haible  <bruno@clisp.org>
5449         fopen-gnu: Create files correctly (regression from 2020-05-24).
5450         * lib/fopen.c (rpl_open): Pass a third argument to open().
5452 2020-07-27  Paul Eggert  <eggert@cs.ucla.edu>
5454         xalloc-die: don’t depend on xalloc
5455         This removes a circular dependency, as xalloc depends on xalloc-die.
5456         * modules/xalloc-die (Files): Add lib/xalloc.h.
5457         (Depends-on): Remove xalloc.
5458         Add extern-inline, stdint, xalloc-oversized (this is for xalloc.h).
5460         dfa-tests: port to MSVC
5461         Problem reported by Gisle Vanem in:
5462         https://lists.gnu.org/r/bug-gnulib/2020-07/msg00159.html
5463         Also, remove an unnecessary dependency on getprogname.
5464         * modules/dfa-tests (Depends-on): Remove getprogname.
5465         * tests/test-dfa-match-aux.c: Do not include getprogname.h.
5466         (exit_status): New static var.
5467         (dfawarn): Set it instead of exiting.
5468         Do not declare as _Noreturn, to pacify MSVC.
5469         (main): Return exit_status.
5471 2020-07-26  Paul Eggert  <eggert@cs.ucla.edu>
5473         argz: pacify MSVC
5474         * lib/argz.in.h: Avoid "*/*" to pacify MSVC.
5475         Problem reported by Gisle Vanem.
5477         libgmp: remove dependency on havelib
5478         * m4/libgmp.m4 (gl_LIBGMP): If gl_HAVE_MODULE_HAVELIB is not defined,
5479         use the more-traditional AC_SEARCH_LIBS approach.
5480         This should work better with GNU Emacs configuration,
5481         which uses pkg-config instead of a havelib-style approach.
5482         * modules/havelib (gl_HAVE_MODULE_HAVELIB): New witness macro.
5483         * modules/libgmp (Depends-on): Remove havelib.
5485         libgmp: remove HAVE_GMP, LIB_GMP
5486         * m4/libgmp.m4 (gl_LIBGMP): Do not define HAVE_GMP and LIB_GMP, as
5487         they’re redundant.  I’ll adjust GNU Coreutils accordingly.
5489 2020-07-26  Bruno Haible  <bruno@clisp.org>
5491         inttypes: Remove support for AIX 4.
5492         * lib/inttypes.in.h: Assume that PRI_MACROS_BROKEN is 0.
5493         * m4/inttypes-pri.m4: Remove file.
5494         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): Don't require gt_INTTYPES_PRI.
5495         (gl_INTTYPES_H_DEFAULTS): Don't initialize PRI_MACROS_BROKEN.
5496         * modules/inttypes-incomplete (Makefile.am): Don't substitute
5497         PRI_MACROS_BROKEN.
5498         * modules/inttypes (Files): Remove m4/inttypes-pri.m4.
5500 2020-07-26  Bruno Haible  <bruno@clisp.org>
5502         gettimeofday: Remove workaround for Mac OS X 10.0.
5503         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Remove macro.
5504         (gl_FUNC_GETTIMEOFDAY): Don't invoke it.
5505         * lib/gettimeofday.c: Don't include localtime-buffer.h.
5506         (gettimeofday): Don't test GETTIMEOFDAY_CLOBBERS_LOCALTIME.
5507         * lib/localtime.c: Don't test GETTIMEOFDAY_CLOBBERS_LOCALTIME.
5508         * modules/gettimeofday (Depends-on): Remove localtime-buffer.
5509         * modules/localtime-buffer: Remove file.
5510         * lib/localtime-buffer.h: Remove file.
5511         * lib/localtime-buffer.c: Remove file.
5512         * m4/localtime-buffer.m4: Remove file.
5513         * MODULES.html.sh (Date and time <time.h>): Remove localtime-buffer.
5515 2020-07-26  Bruno Haible  <bruno@clisp.org>
5517         tzset: Remove workaround for Solaris 2.6.
5518         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Remove macro.
5519         (gl_FUNC_TZSET): Don't invoke it. Don't define TZSET_CLOBBERS_LOCALTIME.
5520         Don't require gl_LOCALTIME_BUFFER_DEFAULTS.
5521         * lib/localtime-buffer.h: Don't test TZSET_CLOBBERS_LOCALTIME.
5522         * lib/localtime-buffer.c: Likewise.
5523         * lib/localtime.c: Likewise.
5524         * lib/tzset.c: Don't include localtime-buffer.h.
5525         (tzset): Don't test TZSET_CLOBBERS_LOCALTIME.
5526         * lib/nstrftime.c (__strftime_internal): Assume HAVE_RUN_TZSET_TEST
5527         is 1.
5528         * modules/tzset (Depends-on): Remove localtime-buffer.
5530 2020-07-26  Bruno Haible  <bruno@clisp.org>
5532         expl: Simplify autoconf test.
5533         * m4/expl.m4 (gl_FUNC_EXPL): Merge the "checking whether expl() breaks
5534         with small values..." test into the "checking whether expl works..."
5535         test.
5537 2020-07-26  Bruno Haible  <bruno@clisp.org>
5539         alloca: Remove Cray-2 and Cray Y-MP support.
5540         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Don't define CRAY_STACKSEG_END.
5541         Enable also on Autoconf >= 2.69.
5542         * lib/alloca.c (ADDRESS_FUNCTION, struct stack_control_header,
5543         struct stack_segment_linkage, struct stk_stat, struct stk_trailer,
5544         i00afunc): Remove.
5546 2020-07-25  Bruno Haible  <bruno@clisp.org>
5548         multiarch: Prepare for x86_64+arm64 universal binaries in macOS 11.
5549         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the ARM architectures.
5551 2020-07-25  Bruno Haible  <bruno@clisp.org>
5553         sigprocmask: Small autoconf macro improvement.
5554         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Make it possible for the
5555         user to override the value of gl_cv_func_sigprocmask.
5556         * m4/gnulib-common.m4 (gl_SILENT): New macro.
5558 2020-07-25  Bruno Haible  <bruno@clisp.org>
5560         Small autoconf macro improvements.
5561         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Make it possible for the user to
5562         override the value of gl_cv_func_working_mktime.
5563         * m4/multiarch.m4 (gl_MULTIARCH): Show a line "checking whether the
5564         compiler produces multi-arch binaries..." in the configure output.
5565         * m4/size_max.m4 (gl_SIZE_MAX): When not found, say "no".
5566         * m4/parse-datetime.m4 (gl_C_COMPOUND_LITERALS): Improve indentation.
5568 2020-07-25  Bruno Haible  <bruno@clisp.org>
5570         doc: Update for NetBSD 7.1, 8.0, 9.0.
5571         * doc/*/*.texi: Update.
5572         * m4/exp2l.m4: Update comments.
5573         * m4/expl.m4: Likewise.
5574         * m4/ilogb.m4: Likewise.
5575         * m4/ilogbf.m4: Likewise.
5576         * m4/log10l.m4: Likewise.
5577         * m4/logl.m4: Likewise.
5578         * m4/printf.m4: Likewise.
5579         * m4/rintl.m4: Likewise.
5580         * m4/wcwidth.m4: Likewise.
5582 2020-07-24  Bruno Haible  <bruno@clisp.org>
5584         doc: Update for Mac OS X 10.13.
5585         * doc/*/*.texi: Update.
5586         * m4/expm1l.m4: Update comments.
5587         * m4/getgroups.m4: Likewise.
5588         * m4/getlogin_r.m4: Likewise.
5589         * m4/linkat.m4: Likewise.
5590         * m4/printf.m4: Likewise.
5592 2020-07-24  Bruno Haible  <bruno@clisp.org>
5594         doc: Update for Cygwin 2.9.0.
5595         * doc/*/*.texi: Update.
5597 2020-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5599         parse-datetime: modernize doc
5600         * doc/parse-datetime.texi: Use more-current examples.
5601         Don’t lead with 32-bit time_t, as it’s on its way out.
5602         Capitalize “Epoch” to be consistent with POSIX.
5604         timespec: remove dependence on ‘verify’
5605         * lib/timespec.h: Do not include verify.h; no longer needed.
5606         * modules/timespec (Depends-on): Remove ‘verify’.
5608         Optimize a few more three-valued comparisons
5609         * lib/timespec.h (timespec_cmp, timespec_sign):
5610         * lib/utimecmp.c (utimecmpat):
5611         Avoid conditional branches by using _GL_CMP.
5613         Fix _GL_CMP parenthesization typo
5614         * m4/gnulib-common.m4 (_GL_CMP): Properly parenthesize.
5616 2020-07-24  Bruno Haible  <bruno@clisp.org>
5618         dfa: Revert breaking gawk.
5619         Reported by Arnold Robbins <arnold@skeeve.com>.
5620         * lib/dfa.c (compare): Don't reference the _GL_CMP macro.
5622 2020-07-23  Bruno Haible  <bruno@clisp.org>
5624         Optimize three-valued comparison between integers.
5625         (a > b ? 1 : a < b ? -1 : 0) is the same as (a > b) - (a < b).
5626         * m4/gnulib-common.m4 (gl_COMMON): Define _GL_CMP.
5627         * lib/c-strcasecmp.c (c_strcasecmp): Use _GL_CMP.
5628         * lib/c-strncasecmp.c (c_strncasecmp): Likewise.
5629         * lib/dfa.c (compare): Likewise.
5630         * lib/fts.c (fts_compare_ino): Likewise.
5631         * lib/mbmemcasecmp.c (mbmemcasecmp): Likewise.
5632         * lib/mbscasecmp.c (mbscasecmp): Likewise.
5633         * lib/mbsncasecmp.c (mbsncasecmp): Likewise.
5634         * lib/memcasecmp.c (memcasecmp): Likewise.
5635         * lib/memcmp2.c (memcmp2): Likewise.
5636         * lib/savedir.c (direntry_cmp_inode): Likewise.
5637         * lib/strcasecmp.c (strcasecmp): Likewise.
5638         * lib/strncasecmp.c (strncasecmp): Likewise.
5639         * lib/unistr/u-cmp2.h (FUNC): Likewise.
5641 2020-07-23  Bruno Haible  <bruno@clisp.org>
5643         lchmod: Use /proc on Cygwin.
5644         * lib/lchmod.c (lchmod): Use /proc on Cygwin.
5646 2020-07-23  Ken Brown  <kbrown@cornell.edu>
5648         fchmodat: Use /proc on Cygwin
5649         * lib/fchmodat.c (fchmodat): Use /proc on Cygwin.
5651 2020-07-21  Bruno Haible  <bruno@clisp.org>
5653         aligned-malloc: Optionally use aligned_alloc.
5654         * lib/aligned-malloc.h: Verify the alignment.
5655         (aligned_malloc): Use aligned_alloc as an alternative.
5656         * modules/aligned-malloc (configure.ac): Test for aligned_alloc.
5657         * doc/posix-functions/aligned_alloc.texi: Mention the modules
5658         'aligned-malloc' and 'pagealign_alloc'.
5660 2020-07-21  Bruno Haible  <bruno@clisp.org>
5662         aligned-malloc: Add tests.
5663         * tests/test-aligned-malloc.c: New file.
5664         * modules/aligned-malloc-tests: New file.
5666         aligned-malloc: New module.
5667         * lib/aligned-malloc.h: New file.
5668         * m4/malloc-align.m4: New file.
5669         * modules/aligned-malloc: New file.
5670         * doc/posix-functions/posix_memalign.texi: Mention the new module.
5671         * doc/glibc-functions/memalign.texi: Likewise.
5673 2020-07-21  Bruno Haible  <bruno@clisp.org>
5675         inttypes: Fix PRI*PTR and SCN*PTR on 64-bit native Windows.
5676         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): On 64-bit native Windows, make
5677         sure PRIPTR_PREFIX is defined to "ll", not "l".
5679 2020-07-21  Bruno Haible  <bruno@clisp.org>
5681         printf-posix: Make an autoconf test more future-proof.
5682         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): Include <inttypes.h> before
5683         using uintptr_t.
5685 2020-07-20  Bruno Haible  <bruno@clisp.org>
5687         list, oset, omap: Relicense some of the container modules under LGPLv2+.
5688         * modules/list (License): Change to LGPLv2+.
5689         * modules/array-list (License): Likewise.
5690         * modules/carray-list (License): Likewise.
5691         * modules/linked-list (License): Likewise.
5692         * modules/avltree-list (License): Likewise.
5693         * modules/rbtree-list (License): Likewise.
5694         * modules/oset (License): Likewise.
5695         * modules/array-oset (License): Likewise.
5696         * modules/avltree-oset (License): Likewise.
5697         * modules/rbtree-oset (License): Likewise.
5698         * modules/omap (License): Likewise.
5699         * modules/array-omap (License): Likewise.
5700         * modules/avltree-omap (License): Likewise.
5701         * modules/rbtree-omap (License): Likewise.
5703 2020-07-20  Bruno Haible  <bruno@clisp.org>
5705         oset: Add an 'update' operation.
5706         * lib/gl_array_oset.c (gl_array_update): New function.
5707         (gl_array_oset_implementation): Use it.
5708         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Add parameters.
5709         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Add parameters.
5710         * lib/gl_avltree_ordered.h (gl_tree_add_node_before): New function,
5711         extracted from gl_tree_nx_add_before.
5712         (gl_tree_nx_add_before): Invoke it.
5713         (gl_tree_add_node_after): New function, extracted from
5714         gl_tree_nx_add_after.
5715         (gl_tree_nx_add_after): Invoke it.
5716         (gl_tree_remove_node_no_free): New function, extracted from
5717         gl_tree_remove_node.
5718         (gl_tree_remove_node): Invoke it.
5719         * lib/gl_rbtree_ordered.h (gl_tree_add_node_before): New function,
5720         extracted from gl_tree_nx_add_before.
5721         (gl_tree_nx_add_before): Invoke it.
5722         (gl_tree_add_node_after): New function, extracted from
5723         gl_tree_nx_add_after.
5724         (gl_tree_nx_add_after): Invoke it.
5725         (gl_tree_remove_node_no_free): New function, extracted from
5726         gl_tree_remove_node.
5727         (gl_tree_remove_node): Invoke it.
5728         * lib/gl_anytree_oset.h (gl_tree_next_node): New function, extracted
5729         from gl_tree_iterator_next.
5730         (gl_tree_iterator_next): Invoke it.
5731         (gl_tree_prev_node, gl_tree_update): New functions.
5732         * lib/gl_avltree_oset.c (NODE_PAYLOAD_DISPOSE): Add parameters.
5733         (gl_avltree_oset_implementation): Use gl_tree_update.
5734         * lib/gl_rbtree_oset.c (NODE_PAYLOAD_DISPOSE): Add parameters.
5735         (gl_rbtree_oset_implementation): Use gl_tree_update.
5736         * lib/gl_oset.h (struct gl_oset_implementation): Add 'update' member.
5737         (gl_oset_update): New function.
5738         * lib/gl_oset.hh (gl_OSet): Add 'update' member.
5739         * modules/avltree-oset (configure.ac): Require AC_C_INLINE.
5740         * modules/rbtree-oset (configure.ac): Likewise.
5741         * tests/test-oset-update.h: New file.
5742         * tests/test-array_oset.c: Include test-oset-update.h.
5743         (main): Invoke test_update.
5744         * tests/test-avltree_oset.c: Likewise.
5745         * tests/test-rbtree_oset.c: Likewise.
5746         * modules/array-oset-tests (Files): Add tests/test-oset-update.h.
5747         * modules/avltree-oset-tests (Files): Likewise.
5748         * modules/rbtree-oset-tests (Files): Likewise.
5749         * tests/test-oset-c++.cc (action): New function.
5750         (main): Test the 'update' member function.
5752 2020-07-15  Paul Eggert  <eggert@cs.ucla.edu>
5754         md5, sha1, sha256, sha512: pacify Autoconf 2.70
5755         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Use m4_if rather than a
5756         shell if, so that the argument to AC_CHECK_HEADERS is
5757         a simple string that does not require shell evaluation.
5758         This fixes a warning generated by Autoconf 2.69b.
5760 2020-07-12  Bruno Haible  <bruno@clisp.org>
5762         libgmp: Avoid warning when --without-libgmp is used.
5763         * lib/mini-gmp-gnulib.c: Ignore -Wsuggest-attribute=malloc only for
5764         GCC >= 8, not for GCC >= 4.6.
5766 2020-07-12  Bruno Haible  <bruno@clisp.org>
5768         libgmp: Link to the correct shared library.
5769         * m4/libgmp.m4 (gl_LIBGMP): Invoke AC_LIB_HAVE_LINKFLAGS.
5770         * modules/libgmp (Depends-on): Add havelib.
5771         (Link): Mention $(LIBGMP) and $(LTLIBGMP).
5772         * modules/libgmp-tests (Makefile.am): Link test-libgmp with $(LIBGMP).
5774 2020-07-12  Bruno Haible  <bruno@clisp.org>
5776         libgmp tests: Add some safety checks.
5777         * modules/libgmp-tests (Depends-on): Add verify.
5778         * tests/test-libgmp.c: Verify GMP_NUMB_BITS value.
5779         (main): Verify that gmp.h and libgmp versions match.
5781 2020-07-10  Bruno Haible  <bruno@clisp.org>
5783         unicodeio: Fix wrong result on NetBSD.
5784         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
5785         characters also on NetBSD.
5787 2020-07-09  Bruno Haible  <bruno@clisp.org>
5789         unicodeio: Fix wrong result on Solaris 11.
5790         Reported by Kiyoshi Kanazawa <yoi_no_myoujou@yahoo.co.jp>
5791         via Akim Demaille <akim.demaille@gmail.com> in
5792         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00036.html>.
5793         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
5794         characters on Solaris.
5795         * tests/test-unicodeio.c (main): In the "C" locale, expect either the
5796         UTF-8 output or the specified fallback.
5798 2020-07-08  Bruno Haible  <bruno@clisp.org>
5800         unicodeio: Add tests.
5801         * tests/test-unicodeio.c: New file.
5802         * tests/test-unicodeio1.sh: New file.
5803         * tests/test-unicodeio2.sh: New file.
5804         * tests/test-unicodeio3.sh: New file.
5805         * modules/unicodeio-tests: New file.
5807 2020-07-08  Bruno Haible  <bruno@clisp.org>
5809         unicodeio: Document link requirements.
5810         * modules/unicodeio (Link): New section.
5812 2020-07-07  Bruno Haible  <bruno@clisp.org>
5814         doc: Remove support for some very old platforms.
5815         * doc/posix-functions/memcmp.texi: Don't mention "older platforms".
5816         * doc/posix-functions/memcpy.texi: Likewise.
5817         * doc/posix-functions/memmove.texi: Likewise.
5818         * doc/posix-functions/memset.texi: Likewise.
5819         * doc/posix-functions/getcwd.texi: Likewise.
5821         memchr: Remove support for some very old platforms.
5822         * m4/memchr-obsolete.m4: Remove file.
5823         * modules/memchr-obsolete: Remove file.
5824         * m4/memchr.m4 (gl_FUNC_MEMCHR): Assume module 'memchr-obsolete' is
5825         absent. Don't define HAVE_MEMCHR.
5826         * lib/string.in.h (memchr): Assume HAVE_MEMCHR is 1.
5827         * modules/memchr (Depends-on): Remove memchr-obsolete.
5828         (configure.ac): Assume HAVE_MEMCHR is 1.
5829         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
5830         HAVE_MEMCHR.
5831         * modules/string (Makefile.am): Don't substitute HAVE_MEMCHR.
5832         * doc/posix-functions/memchr.texi: Don't mention module
5833         'memchr-obsolete'.
5834         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Assume HAVE_MEMCHR is 1.
5835         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Assume HAVE_MEMCHR is 1.
5836         * modules/strnlen (Depends-on): Remove memchr-obsolete.
5838         dup2: Remove support for some very old platforms.
5839         * m4/dup2-obsolete.m4: Remove file.
5840         * modules/dup2-obsolete: Remove file.
5841         * m4/dup2.m4 (gl_FUNC_DUP2): Assume module 'dup2-obsolete' is absent.
5842         Don't define HAVE_DUP2.
5843         * lib/unistd.in.h (dup2): Assume HAVE_DUP2 is 1.
5844         * lib/dup2.c: Likewise.
5845         * modules/dup2 (Depends-on, configure.ac): Likewise.
5846         (Depends-on): Remove dup2-obsolete.
5847         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize HAVE_DUP2.
5848         * modules/unistd (Makefile.am): Don't substitute HAVE_DUP2.
5849         * doc/posix-functions/dup2.texi: Don't mention module 'dup2-obsolete'.
5851 2020-07-07  Bruno Haible  <bruno@clisp.org>
5853         canonicalize: Trim module dependencies.
5854         * lib/hash-triple.h: Group declarations.
5855         * lib/hash-triple-simple.c: New file, extracted from lib/hash-triple.c.
5856         * lib/hash-triple.c: Don't include <stdlib.h>, <string.h>, hash-pjw.h.
5857         (STREQ): Remove macro.
5858         (triple_hash, triple_compare_ino_str, triple_free): Remove functions.
5859         * modules/hash-triple-simple: New file, based on modules/hash-triple.
5860         * modules/hash-triple (Files): Remove lib/hash-triple.h.
5861         (Depends-on): Add hash-triple-simple. Remove hash-pjw.
5862         * modules/canonicalize (Depends-on): Remove hash-triple. Add
5863         hash-triple-simple.
5864         * modules/file-set (Depends-on): Likewise.
5866 2020-07-07  Bruno Haible  <bruno@clisp.org>
5868         Clarify dependencies to double-slash-root.
5869         * modules/canonicalize (Files): Remove m4/double-slash-root.m4.
5870         (Depends-on): Add double-slash-root.
5871         * modules/canonicalize-lgpl (Depends-on): Add double-slash-root.
5872         * modules/dirname-lgpl (Depends-on): Add double-slash-root.
5874 2020-07-06  Paul Eggert  <eggert@cs.ucla.edu>
5876         libgmp: new module
5877         The idea is to let programs simply include <gmp.h>, and
5878         so long as they live within the mini-gmp subset they need
5879         not worry about whether the GMP libraries are installed.
5880         * MODULES.html.sh: Mention it.
5881         * config/srclist.txt: Mention files copied from GMP source.
5882         * config/srclistvars.sh (GMP): New var.
5883         * lib/mini-gmp-gnulib.c, m4/libgmp.m4, modules/libgmp:
5884         * modules/libgmp-tests, tests/test-libgmp.c: New files.
5885         * lib/mini-gmp.c, lib/mini-gmp.h: New files, copied from GMP.
5887 2020-07-05  Bruno Haible  <bruno@clisp.org>
5889         mkancesdirs: Trim module dependencies.
5890         * lib/mkancesdirs.c: Include filename.h instead of dirname.h.
5891         * modules/mkancesdirs (Depends-on): Remove dirname-lgpl. Add filename.
5893 2020-07-05  Bruno Haible  <bruno@clisp.org>
5895         getprogname: Trim module dependencies.
5896         * lib/getprogname.c: Include basename-lgpl.h instead of dirname.h.
5897         * modules/getprogname (Depends-on): Remove dirname-lgpl. Add
5898         basename-lgpl.
5900 2020-07-05  Bruno Haible  <bruno@clisp.org>
5902         filenamecat-lgpl: Trim module dependencies.
5903         * lib/filenamecat-lgpl.c: Include basename-lgpl.h, filename.h instead of
5904         dirname.h.
5905         * modules/filenamecat-lgpl (Depends-on): Remove dirname-lgpl. Add
5906         basename-lgpl, filename.
5908 2020-07-05  Bruno Haible  <bruno@clisp.org>
5910         backupfile, backup-rename: Trim module dependencies.
5911         * lib/backupfile.c: Include basename-lgpl.h instead of dirname.h.
5912         * modules/backupfile (Depends-on): Remove dirname-lgpl. Add
5913         basename-lgpl.
5914         * modules/backup-rename (Depends-on): Likewise.
5916 2020-07-05  Bruno Haible  <bruno@clisp.org>
5918         argp: Trim module dependencies.
5919         * lib/argp-namefrob.h: Include basename-lgpl.h instead of dirname.h.
5920         * modules/argp (Depends-on): Remove dirname-lgpl. Add basename-lgpl.
5922 2020-07-05  Bruno Haible  <bruno@clisp.org>
5924         basename-lgpl: New module.
5925         * lib/basename-lgpl.h: New file, based on lib/dirname.h and
5926         lib/basename-lgpl.c.
5927         * lib/basename-lgpl.c: Include basename-lgpl.h, not dirname.h. Include
5928         <stdbool.h>, filename.h.
5929         (last_component): Rename a local variable.
5930         * lib/dirname.h: Include basename-lgpl.h.
5931         (DOUBLE_SLASH_IS_DISTINCT_ROOT): Remove macro.
5932         (last_component, base_len): Remove declarations.
5933         * modules/basename-lgpl: New file.
5934         * modules/dirname-lgpl (Files): Remove lib/basename-lgpl.c.
5935         (Depends-on): Add basename-lgpl. Remove double-slash-root.
5936         (Makefile.am): Don't compile basename-lgpl.c.
5937         * doc/posix-functions/basename.texi: Mention the module 'basename-lgpl',
5938         not 'dirname'.
5940 2020-07-05  Bruno Haible  <bruno@clisp.org>
5942         dirname, dirname-lgpl: Simplify.
5943         * m4/dirname.m4: Remove file.
5944         * modules/dirname (configure.ac): Don't invoke gl_DIRNAME.
5945         * modules/dirname-lgpl (Files): Remove m4/dirname.m4.
5946         (configure.ac): Don't invoke gl_DIRNAME_LGPL.
5948 2020-07-05  Bernhard Voelker  <mail@bernhard-voelker.de>
5950         tests: avoid shadowing warning
5951         * tests/test-memchr.c (main): Give page_boundary variable a tight scope.
5953 2020-07-05  Bruno Haible  <bruno@clisp.org>
5955         supersede: Add tests.
5956         * tests/test-supersede.c: New file.
5957         * tests/test-supersede-open.h: New file.
5958         * tests/test-supersede-fopen.h: New file.
5959         * modules/supersede-tests: New file.
5961         supersede: New module.
5962         * lib/supersede.h: New file.
5963         * lib/supersede.c: New file.
5964         * m4/supersede.m4: New file.
5965         * modules/supersede: New file.
5967 2020-07-05  Bruno Haible  <bruno@clisp.org>
5969         Add some copyright headers.
5970         * lib/dev-ino.h: Add copyright header.
5971         * lib/di-set.h: Likewise.
5972         * lib/fchown-stub.c: Likewise.
5973         * lib/file-set.h: Likewise.
5974         * lib/hash-triple.h: Likewise.
5975         * lib/idcache.h: Likewise.
5976         * lib/ino-map.h: Likewise.
5977         * lib/mkancesdirs.h: Likewise.
5978         * lib/scratch_buffer.h: Likewise.
5979         * lib/se-context.in.h: Likewise.
5980         * lib/stdopen.h: Likewise.
5981         * lib/userspec.h: Likewise.
5983 2020-07-04  Bruno Haible  <bruno@clisp.org>
5985         getrandom: Relicense under LGPLv2+.
5986         Paul Eggert's approval is in
5987         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00023.html>.
5988         * modules/getrandom (License): Change to LGPLv2+.
5990 2020-07-04  Bruno Haible  <bruno@clisp.org>
5992         getumask: Add tests.
5993         * tests/test-getumask.c: New file.
5994         * modules/getumask-tests: New file.
5996         getumask: New module.
5997         * lib/sys_stat.in.h (getumask): New declaration.
5998         * lib/getumask.c: New file.
5999         * m4/getumask.m4: New file.
6000         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether getumask is
6001         declared.
6002         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_GETUMASK, HAVE_GETUMASK.
6003         * modules/sys_stat (Makefile.am): Substitute GNULIB_GETUMASK,
6004         HAVE_GETUMASK.
6005         * modules/getumask: New file.
6006         * tests/test-sys_stat-c++.cc (getumask): Check signature.
6007         * doc/glibc-functions/getumask.texi: New file.
6008         * doc/gnulib.texi (Glibc sys/stat.h): Include it.
6010 2020-07-04  Bruno Haible  <bruno@clisp.org>
6012         clean-temp: Add support for temporary files with given mode.
6013         * lib/clean-temp.h (gen_register_open_temp): Add mode argument.
6014         * lib/clean-temp.c (struct try_create_file_params): New type.
6015         (try_create_file): New function.
6016         (gen_register_open_temp): Add mode argument. Use try_tempname instead of
6017         gen_tempname.
6019 2020-07-04  Bruno Haible  <bruno@clisp.org>
6021         clean-temp: Document limitations.
6022         * lib/clean-temp.h: Document limitations.
6024 2020-07-04  Bruno Haible  <bruno@clisp.org>
6026         clean-temp: Add support for temporary files with unpredictable names.
6027         * lib/clean-temp.h (gen_register_open_temp): New declaration.
6028         * lib/clean-temp.c: Include tempname.h.
6029         (gen_register_open_temp): New function.
6030         * modules/tempname (configure.ac): Define a module indicator.
6032 2020-07-04  Bruno Haible  <bruno@clisp.org>
6034         clean-temp: Add support for temporary files anywhere in the file system.
6035         * lib/clean-temp.h (register_temporary_file, unregister_temporary_file,
6036         cleanup_temporary_file): New declarations.
6037         * lib/clean-temp.c (file_cleanup_list_lock, file_cleanup_list): New
6038         variables.
6039         (dir_cleanup_list_lock): Renamed from cleanup_list_lock.
6040         (dir_cleanup_list): Renamed from cleanup_list.
6041         (cleanup_action): Process the file_cleanup_list as well.
6042         (do_init_clean_temp): New function.
6043         (clean_temp_once): New variable.
6044         (init_clean_temp): New function.
6045         (create_temp_dir): Invoke it.
6046         (register_temporary_file, unregister_temporary_file,
6047         cleanup_temporary_file): New functions.
6048         (do_unlink, do_rmdir): Remove 'dir' argument. Add 'cleanup_verbose'
6049         argument.
6051 2020-07-04  Bruno Haible  <bruno@clisp.org>
6053         clean-temp: Improve comments.
6054         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
6055         fwriteerror_temp, close_stream_temp): Clarify intended use.
6056         * lib/clean-temp.c: Likewise.
6058 2020-07-04  Bruno Haible  <bruno@clisp.org>
6060         clean-temp: Make multithread-safe, part 2.
6061         * lib/fatal-signal.h: Include <signal.h>.
6062         (get_fatal_signal_set): New declaration.
6063         * lib/fatal-signal.c (get_fatal_signal_set): New function.
6064         * lib/clean-temp.c: Include asyncsafe-spin.h, gl_linked_list.h.
6065         (struct closeable_fd): New type.
6066         (fatal_signal_set): New variable.
6067         (init_fatal_signal_set): New function.
6068         (asyncsafe_close, asyncsafe_fclose_variant): New functions.
6069         (cleanup_action): Invoke asyncsafe_close instead of close.
6070         (create_temp_dir): Invoke init_fatal_signal_set.
6071         (register_fd): Use a plain linked list. Add a 'struct closeable_fd *'
6072         element.
6073         (unregister_fd): Remove function.
6074         (close_temp): Cleanup descriptors list on the fly. Invoke
6075         init_fatal_signal_set. Invoke asyncsafe_close instead of close.
6076         (fclose_variant_temp): New function.
6077         (fclose_temp, fwriteerror_temp, close_stream_temp): Use it.
6078         * modules/clean-temp (Depends-on): Add asyncsafe-spin, linked-list.
6080 2020-07-04  Bruno Haible  <bruno@clisp.org>
6082         clean-temp: Make multithread-safe, part 1.
6083         * lib/clean-temp.c: Include glthread/lock.h.
6084         (cleanup_list_lock): New variable.
6085         (register_temp_file, unregister_temp_file, register_temp_subdir,
6086         unregister_temp_subdir, cleanup_temp_dir_contents): Use it.
6087         (create_temp_dir): Likewise. Don't free the old array.
6088         (descriptors_lock): New variable.
6089         (register_fd, unregister_fd): Use it.
6090         * modules/clean-temp (Depends-on): Add lock.
6092 2020-07-04  Bruno Haible  <bruno@clisp.org>
6094         fatal-signal: Make multithread-safe.
6095         * lib/fatal-signal.c (init_fatal_signals): Add comment.
6096         (do_init_fatal_signal_set): New function, extracted from
6097         init_fatal_signal_set.
6098         (fatal_signal_set_once): New variable.
6099         (init_fatal_signal_set): Use gl_once.
6101 2020-07-03  Bruno Haible  <bruno@clisp.org>
6103         getrandom: Fix compilation error on native Windows (regr. 2020-06-28).
6104         * lib/getrandom.c: Don't include <ntdef.h>. Instead, define NTSTATUS.
6105         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Include <windows.h> before
6106         <bcrypt.h>.
6108 2020-07-03  Bruno Haible  <bruno@clisp.org>
6110         dfa tests: Follow common file naming conventions.
6111         * tests/test-dfa-match-aux.c: Renamed from tests/dfa-match-aux.c.
6112         * tests/test-dfa-match.sh: Renamed from tests/dfa-match.sh. Update.
6113         * tests/test-dfa-invalid-char-class.sh: Renamed from
6114         tests/dfa-invalid-char-class.sh. Update.
6115         * modules/dfa-tests (Files, Makefile.am): Update.
6117 2020-07-03  Bruno Haible  <bruno@clisp.org>
6119         asyncsafe-spin: Use GCC extended asm syntax for SunStudio 12 compiler.
6120         * lib/asyncsafe-spin.c (memory_barrier, atomic_compare_and_swap): Use
6121         the GCC extended asm syntax also for the Sun Studio 12 compilers.
6123 2020-07-03  Bruno Haible  <bruno@clisp.org>
6125         asyncsafe-spin: Reduce code duplication.
6126         * lib/asyncsafe-spin.c (do_lock, do_unlock): New functions.
6127         (asyncsafe_spin_lock, asyncsafe_spin_unlock): Use them.
6128         * modules/asyncsafe-spin (configure.ac): Require AC_C_INLINE.
6130 2020-07-03  Bruno Haible  <bruno@clisp.org>
6132         lchmod: Simplify after 2020-02-22 change.
6133         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Don't require AC_C_INLINE.
6135 2020-07-03  Bruno Haible  <bruno@clisp.org>
6137         gen-uni-tables: Make sure the compiler does not barf on 'inline'.
6138         * modules/gen-uni-tables (configure.ac): Require AC_C_INLINE.
6140 2020-07-03  Bruno Haible  <bruno@clisp.org>
6142         dfa: Make sure the compiler does not barf on 'inline'.
6143         * modules/dfa (configure.ac): Require AC_C_INLINE.
6145 2020-07-03  Bruno Haible  <bruno@clisp.org>
6147         bitset: Make sure the compiler does not barf on 'inline'.
6148         * modules/bitset (configure.ac): New section.
6150 2020-07-01  Paul Eggert  <eggert@cs.ucla.edu>
6152         manywarnings: improve port to GCC 10.1
6153         * build-aux/gcc-warning.spec: Also list warnings that are default
6154         or are enabled by already-given flags.  This lets us speed up
6155         checking for attributes, and makes the generated compilation
6156         commands shorter.  Add -Wanalyzer-too-complex (too much noise).
6157         * m4/manywarnings.m4 (gl_MANYWARN_COMPLEMENT)
6158         (gl_MANYWARN_ALL_GCC): Use gl_AS_VAR_APPEND to append
6159         to shell variables that may have long values.
6160         (gl_MANYWARN_ALL_GCC): Omit flags that are default or are
6161         consequences of other flags, to speed up checking and
6162         shorten commands.
6164         tests: pacify gcc -fanalyzer on zerosize_ptr
6165         * tests/test-memcasecmp.c (main):
6166         * tests/test-memchr.c (main):
6167         * tests/test-memchr2.c (main):
6168         * tests/test-memcmp.c (main):
6169         * tests/test-memmem.c (main):
6170         * tests/test-memrchr.c (main):
6171         * tests/unistr/test-chr.h (main):
6172         * tests/unistr/test-cmp.h (test_cmp):
6173         Check whether zerosize_ptr returns NULL before using it.
6174         This pacifies GCC 10.1’s new fanalyzer option, and matches
6175         other uses of zerosize_ptr.
6177 2020-07-01  Bruno Haible  <bruno@clisp.org>
6179         asyncsafe-spin: Add tests.
6180         * tests/test-asyncsafe-spin1.c: New file.
6181         * tests/test-asyncsafe-spin2.c: New file, based on tests/test-lock.c and
6182         tests/test-pthread-spin.c.
6183         * modules/asyncsafe-spin-tests: New file.
6185 2020-07-01  Bruno Haible  <bruno@clisp.org>
6187         asyncsafe-spin: New module.
6188         * lib/asyncsafe-spin.h: New file.
6189         * lib/asyncsafe-spin.c: New file, based on lib/pthread-spin.c.
6190         * modules/asyncsafe-spin: New file.
6192 2020-07-01  Bruno Haible  <bruno@clisp.org>
6194         windows-spin: Fix race condition on multiprocessor systems.
6195         * lib/windows-spin.c (glwthread_spin_init): Add a memory barrier.
6197 2020-07-01  Bruno Haible  <bruno@clisp.org>
6199         pthread-spin: Add optimized fallback for GCC versions >= 4.1, < 4.7.
6200         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
6201         pthread_spin_trylock, pthread_spin_unlock): For GCC >= 4.1, < 4.7, use
6202         an implementation based on other GCC built-ins.
6204 2020-07-01  Bruno Haible  <bruno@clisp.org>
6206         pthread-spin: Optimize fallback for GCC versions >= 4.7.
6207         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
6208         pthread_spin_trylock, pthread_spin_unlock): Use a lock word instead of a
6209         lock byte.
6211 2020-07-01  Bruno Haible  <bruno@clisp.org>
6213         pthread-spin: Add error checking.
6214         * lib/pthread-spin.c: Include <stdbool.h>.
6215         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock,
6216         pthread_spin_unlock) [GCC>=4.7]: Prefer an implementation that verifies
6217         the unlocks.
6218         * modules/pthread-spin (Depends-on): Add stdbool.
6220 2020-07-01  Bruno Haible  <bruno@clisp.org>
6222         pthread-spin: Add tests.
6223         * tests/test-pthread-spin.c: New file, based on tests/test-lock.c.
6224         * modules/pthread-spin-tests: New file.
6226 2020-07-01  Bruno Haible  <bruno@clisp.org>
6228         tests: Reduce code duplication.
6229         * tests/atomic-int-posix.h: New file, extracted from
6230         tests/test-pthread-mutex.c.
6231         * tests/test-pthread-mutex.c: Include it. Remove the corresponding code.
6232         * tests/test-pthread-rwlock.c: Likewise.
6233         * modules/pthread-mutex-tests (Files): Add tests/atomic-int-posix.h.
6234         * modules/pthread-rwlock-tests (Files): Likewise.
6236 2020-07-01  Bruno Haible  <bruno@clisp.org>
6238         tests: Refactor.
6239         * tests/atomic-int-isoc.h: New file, extracted from tests/test-mtx.c.
6240         * tests/test-mtx.c: Include it. Remove the corresponding code.
6241         * modules/mtx-tests (Files): Add tests/atomic-int-isoc.h.
6243 2020-07-01  Bruno Haible  <bruno@clisp.org>
6245         tests: Refactor.
6246         * tests/atomic-int-gnulib.h: New file, extracted from tests/test-lock.c.
6247         * tests/test-lock.c: Include it. Remove the corresponding code.
6248         * modules/lock-tests (Files): Add tests/atomic-int-gnulib.h.
6250 2020-06-29  Bruno Haible  <bruno@clisp.org>
6252         sys_socket: Don't define socklen_t if it is already defined on mingw.
6253         Reported by Keith Marshall <keith.d.marshall@ntlworld.com> in
6254         <https://savannah.gnu.org/bugs/?57725>,
6255         by Rahul Das <bokul_4u@yahoo.com> in
6256         <https://lists.gnu.org/archive/html/bug-gnulib/2020-04/msg00081.html>,
6257         and by Eli Zaretskii <eliz@gnu.org> in
6258         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00068.html>.
6259         * lib/sys_socket.in.h (socklen_t): Remove definition.
6261 2020-06-29  Bruno Haible  <bruno@clisp.org>
6263         alloca-opt: Fix warning on mingw.
6264         Reported and solution by Eli Zaretskii <eliz@gnu.org> in
6265         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00069.html>.
6266         * lib/alloca.in.h: On mingw, include <alloca.h> and then test again
6267         whether alloca is defined.
6269 2020-06-28  Paul Eggert  <eggert@cs.ucla.edu>
6271         getrandom: do not depend on ‘open’ on mingw
6272         Similarly for at-internal, getloadavg.  These modules do not call
6273         the ‘open’ function when they are compiled on mingw.  On mingw,
6274         this avoids having to compile open.c when building Emacs, which
6275         does its own thing with ‘open’.
6276         * modules/at-internal, modules/getloadavg, modules/getrandom:
6277         (Depends-on): Don’t depend on ‘open’ on mingw.
6278         (Depends-on): Require AC_CANONICAL_HOST, for host_os.
6279         * modules/getloadavg (Depends-on):
6280         Depend on intprops, open, stdbool, stdlib only if compiling
6281         getloadavg.c.
6283 2020-06-28  Bruno Haible  <bruno@clisp.org>
6285         doc: Add a note about sigprocmask vs. pthread_sigmask.
6286         * doc/posix-functions/sigprocmask.texi: Add note.
6288 2020-06-28  Bruno Haible  <bruno@clisp.org>
6290         getrandom: Fix compilation errors on older versions of mingw.
6291         Reported by Eli Zaretskii <eliz@gnu.org> in
6292         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00059.html>.
6293         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Test whether <bcrypt.h> exists.
6294         * lib/getrandom.c: If <bcrypt.h> is not available, include <ntdef.h> and
6295         define/declare BCRYPT_ALG_HANDLE, BCRYPT_USE_SYSTEM_PREFERRED_RNG,
6296         BCryptGenRandom ourselves.
6298 2020-06-28  Bruno Haible  <bruno@clisp.org>
6300         clean-temp: Fix wrong errno in error message.
6301         * lib/clean-temp.c (create_temp_dir): Save errno around
6302         unblock_fatal_signals call.
6304 2020-06-27  Bruno Haible  <bruno@clisp.org>
6306         fatal-signal: Make multithread-safe.
6307         * lib/fatal-signal.c (at_fatal_signal): Don't free the old actions array.
6309 2020-06-27  Bruno Haible  <bruno@clisp.org>
6311         clean-temp: Don't force deletion of temporary files on native Windows.
6312         * lib/clean-temp.h (open_temp, fopen_temp): Add delete_on_close
6313         argument.
6314         * lib/clean-temp.c (open_temp, fopen_temp): Likewise.
6315         * NEWS: Mention the change.
6316         * lib/javacomp.c (write_temp_file): Update.
6318 2020-06-27  Bruno Haible  <bruno@clisp.org>
6320         fatal-signal: Make multithread-safe.
6321         * lib/fatal-signal.c: Include glthread/lock.h.
6322         (at_fatal_signal_lock): New variable.
6323         (at_fatal_signal): Use it.
6324         (fatal_signals_block_lock, fatal_signals_block_counter): New variables.
6325         (block_fatal_signals, unblock_fatal_signals): Use them.
6326         * modules/fatal-signal (Depends-on): Add lock.
6328 2020-06-27  Paul Eggert  <eggert@cs.ucla.edu>
6330         getloadavg: don’t depend on fopen-gnu
6331         This is for Emacs, which does not need fopen-gnu for anything else,
6332         and which would need it only on a NetBSD platform where getloadavg
6333         does not work (does that even happen?).
6334         * lib/getloadavg.c (getloadavg) [__NetBSD__]: Use open, not fopen.
6335         * modules/getloadavg (Depends-on): Remove fopen-gnu.
6337         * tests/test-getloadavg.c (main): Fix typo.
6339 2020-06-27  Bruno Haible  <bruno@clisp.org>
6341         tempname et al.: Fix link errors on MSVC (regression from 2020-05-31).
6342         * modules/tempname (Link): New section.
6343         * modules/mkdtemp (Link): Likewise.
6344         * modules/clean-temp (Link): Likewise.
6345         * modules/mkstemp (Link): Likewise.
6346         * modules/stdlib-safer (Link): Likewise.
6347         * modules/mkstemps (Link): Likewise.
6348         * modules/mkostemp (Link): Likewise.
6349         * modules/mkostemps (Link): Likewise.
6350         * modules/tmpfile (Link): Likewise.
6351         * modules/tmpfile-safer (Link): Likewise.
6352         * modules/javacomp (Link): Add $(LIB_GETRANDOM).
6353         * modules/argv-iter-tests (Makefile.am): Link test-argv-iter with
6354         $(LIB_GETRANDOM).
6355         * NEWS: Mention the changes.
6357 2020-06-27  Bruno Haible  <bruno@clisp.org>
6359         fopen-gnu: Simplify code.
6360         * lib/fopen.c: Include <stdbool.h>.
6361         (rpl_fopen): Use a single variable open_flags instead of
6362         open_flags_standard and open_flags_gnu. Make open_flags_gnu a bool.
6363         * modules/fopen (Depends-on): Add stdbool.
6365 2020-06-26  Bruno Haible  <bruno@clisp.org>
6367         canonicalize: Improve documentation.
6368         * lib/canonicalize.h (canonicalize_filename_mode): Document the failure
6369         return convention.
6371 2020-06-26  Bruno Haible  <bruno@clisp.org>
6373         xgetcwd: Improve documentation.
6374         * lib/xgetcwd.c (xgetcwd): Document the failure return convention.
6376 2020-06-26  Bruno Haible  <bruno@clisp.org>
6378         getcwd: Improve documentation.
6379         * lib/getcwd.c (__getcwd): Document the failure return convention.
6381 2020-06-26  Bruno Haible  <bruno@clisp.org>
6383         fchdir: Improve documentation.
6384         * lib/fchdir.c (get_name, _gl_register_fd): Document the failure return
6385         convention.
6387 2020-06-26  Bruno Haible  <bruno@clisp.org>
6389         filenamecat-lgpl: Set errno upon failure.
6390         * lib/filenamecat-lgpl.c (mfile_name_concat): Document the failure
6391         return convention.
6392         * modules/filenamecat-lgpl (Depends-on): Add malloc-posix.
6394 2020-06-26  Bruno Haible  <bruno@clisp.org>
6396         areadlink-with-size: Set errno upon failure.
6397         * lib/areadlink-with-size.c (areadlink_with_size): Set errno when malloc
6398         fails.
6399         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Add comment.
6401 2020-06-26  Bruno Haible  <bruno@clisp.org>
6403         copy-file: Shrink dependencies.
6404         * modules/copy-file (Depends-on): Remove acl. Add acl-permissions,
6405         qcopy-acl.
6407 2020-06-26  Bruno Haible  <bruno@clisp.org>
6409         doc: Mention declaration fixes implemented by some modules.
6410         * doc/posix-functions/chdir.texi: Mention the module 'chdir'.
6411         * doc/posix-functions/close.texi: Mention that Gnulib makes the function
6412         declaration appear in <unistd.h>.
6413         * doc/posix-functions/dup.texi: Likewise.
6414         * doc/posix-functions/dup2.texi: Likewise.
6415         * doc/posix-functions/gethostname.texi: Likewise.
6416         * doc/posix-functions/isatty.texi: Likewise.
6417         * doc/posix-functions/lseek.texi: Likewise.
6418         * doc/posix-functions/unlink.texi: Likewise.
6419         * doc/posix-functions/read.texi: Mention the module 'read'.
6420         * doc/posix-functions/write.texi: Mention the effects of the module
6421         'write'.
6423 2020-06-25  Marc Nieper-Wißkirchen  <marc@nieper-wisskirchen.de>
6425         c-dtoastr, c-ldtoastr: new modules
6426         These modules provide the same functionality as the modules
6427         dtoastr and ldtoastr except for the formatting taking place in the
6428         C locale.
6429         * MODULES.html.sh: Add c-dtoastr and c-ldtoastr.
6430         * lib/c-dtoastr.c, lib/c-ldtoastr.c: New files.
6431         * lib/ftoastr.c: Prefix exported functions when the macro C_LOCALE is
6432         defined.  Use c_snprintf and c_strtod/c_strtold instead of
6433         snprintf and strtod/strtold whhen the macro C_LOCALE is defined.
6434         * lib/ftoastr.h: Add prototypes for c_dtoastr and c_ldtoastr.
6435         * modules/c-dtoastr, modules/c-dtoastr-tests, modules/c-ldtoastr,
6436         modules/c-ldtoastr-tests: New files.
6437         * tests/test-c-dtoastr.c, tests/test-c-dtoastr.sh,
6438         tests-c-ldtoastr.c tests-c-ldtoastr.sh: New files.
6440 2020-06-21  Bruno Haible  <bruno@clisp.org>
6442         tzset: Fix compilation warnings on mingw (regression from 2017-05-01).
6443         * lib/tzset.c: Include <stdlib.h>, <string.h>.
6445 2020-06-16  Bruno Haible  <bruno@clisp.org>
6447         thread: Avoid possible compiler warnings in uses of gl_thread_exit.
6448         * lib/glthread/thread.h (gl_thread_exit): Add a cast to void.
6450 2020-06-16  Bruno Haible  <bruno@clisp.org>
6452         thread, thrd: Avoid a compiler warning.
6453         * lib/windows-thread.h (glwthread_thread_exit): Mark as non-returning.
6455 2020-06-16  Biswapriyo Nath  <nathbappai@gmail.com>  (tiny change)
6457         windows-thread: Avoid a compiler warning.
6458         * lib/windows-thread.h (glwthread_thread_exit): Change return type to
6459         void.
6460         * lib/windows-thread.c (glwthread_thread_exit): Likewise.
6462 2020-06-15  Bruno Haible  <bruno@clisp.org>
6464         unictype/joininggroup-name: Fix warning on 64-bit mingw.
6465         Reported by Biswapriyo Nath <nathbappai@gmail.com> in
6466         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00036.html>.
6467         * lib/unictype/joininggroup_name.c (ELEM): Cast struct offset to size_t
6468         first.
6470 2020-06-06  Bruno Haible  <bruno@clisp.org>
6472         calloc-gnu tests: Avoid a test failure with clang.
6473         * tests/test-calloc-gnu.c (main): Mark the pointer variable as
6474         'volatile', to defeat compiler optimizations.
6476 2020-06-01  Paul Eggert  <eggert@cs.ucla.edu>
6478         getloadavg: fix double-increment bug
6479         * lib/getloadavg.c (getloadavg): Fix double-increment typo on
6480         Linux without glibc, Android, Cygwin.  This fixes a bug I
6481         introduced in 2011-02-08T20:23:29Z!eggert@cs.ucla.edu.
6482         Problem and fix reported by Semen Verchenko in:
6483         https://lists.gnu.org/r/bug-gnulib/2020-06/msg00007.html
6485         tempname: use getrandom, not getentropy
6486         This removes a dependency, as getentropy depends on getrandom.
6487         * lib/tempname.c: Include sys/random.h instead of unistd.h.
6488         (RANDOM_BITS) [!_LIBC]: Use getrandom, not getentropy.
6489         * modules/tempname (Depends-on): Depend on getrandom, not getentropy.
6491 2020-06-01  Bruno Haible  <bruno@clisp.org>
6493         doc: New chapter 'Multithreading'.
6494         * doc/multithread.texi: New file.
6495         * doc/gnulib.texi: Include it.
6497 2020-06-01  Bruno Haible  <bruno@clisp.org>
6499         doc: Move 'Running self-tests under valgrind' section.
6500         * doc/gnulib.texi (Build Infrastructure Modules): Include
6501         valgrind-tests.texi here...
6502         (Miscellaneous Notes): ... not here.
6504 2020-06-01  Bruno Haible  <bruno@clisp.org>
6506         doc: Move 'Visual Studio Compatibility' section.
6507         * doc/gnulib.texi (Native Windows Support): Include ld-output-def.texi
6508         here...
6509         (Build Infrastructure Modules): ... not here.
6511 2020-06-01  Paul Eggert  <eggert@cs.ucla.edu>
6513         doc: improve randomness discussion
6514         Inspired by comments from Jeffrey Walton in:
6515         https://lists.gnu.org/r/bug-gnulib/2020-06/msg00002.html
6516         * doc/glibc-functions/getentropy.texi (getentropy):
6517         * doc/glibc-functions/getrandom.texi (getrandom):
6518         Improve discussion of problems with "random" data,
6519         and cite Ristenpart & Yilek.  Also, mention GRND_INSECURE.
6521 2020-06-01  Bruno Haible  <bruno@clisp.org>
6523         doc: Fix Texinfo syntax error.
6524         * doc/glibc-functions/getrandom.texi: Add missing '@item'.
6526 2020-06-01  Asher Gordon  <AsDaGo@posteo.net>
6528         doc: Change '.' to '@.' where appropriate.
6529         * doc/c-ctype.texi: Change '.' to '@.' where appropriate.
6530         * doc/glibc-functions/fstatfs.texi: Likewise.
6531         * doc/glibc-functions/fts_children.texi: Likewise.
6532         * doc/glibc-functions/fts_read.texi: Likewise.
6533         * doc/glibc-functions/getdirentries.texi: Likewise.
6534         * doc/glibc-functions/mkostemp.texi: Likewise.
6535         * doc/glibc-functions/mkostemps.texi: Likewise.
6536         * doc/glibc-functions/mkstemps.texi: Likewise.
6537         * doc/glibc-functions/preadv.texi: Likewise.
6538         * doc/glibc-functions/pwritev.texi: Likewise.
6539         * doc/glibc-functions/sendfile.texi: Likewise.
6540         * doc/glibc-functions/statfs.texi: Likewise.
6541         * doc/gnulib-intro.texi: Likewise.
6542         * doc/gnulib-tool.texi: Likewise.
6543         * doc/intprops.texi: Likewise.
6544         * doc/lib-symbol-visibility.texi: Likewise.
6545         * doc/licenses-texi.texi: Likewise.
6546         * doc/pastposix-functions/bcmp.texi: Likewise.
6547         * doc/pastposix-functions/bcopy.texi: Likewise.
6548         * doc/pastposix-functions/bzero.texi: Likewise.
6549         * doc/pastposix-functions/ecvt.texi: Likewise.
6550         * doc/pastposix-functions/fcvt.texi: Likewise.
6551         * doc/pastposix-functions/ftime.texi: Likewise.
6552         * doc/pastposix-functions/gcvt.texi: Likewise.
6553         * doc/pastposix-functions/getwd.texi: Likewise.
6554         * doc/pastposix-functions/index.texi: Likewise.
6555         * doc/pastposix-functions/mktemp.texi: Likewise.
6556         * doc/pastposix-functions/rindex.texi: Likewise.
6557         * doc/pastposix-functions/wcswcs.texi: Likewise.
6558         * doc/posix-functions/aio_cancel.texi: Likewise.
6559         * doc/posix-functions/aio_error.texi: Likewise.
6560         * doc/posix-functions/aio_fsync.texi: Likewise.
6561         * doc/posix-functions/aio_read.texi: Likewise.
6562         * doc/posix-functions/aio_return.texi: Likewise.
6563         * doc/posix-functions/aio_suspend.texi: Likewise.
6564         * doc/posix-functions/aio_write.texi: Likewise.
6565         * doc/posix-functions/creat.texi: Likewise.
6566         * doc/posix-functions/ctime.texi: Likewise.
6567         * doc/posix-functions/daylight.texi: Likewise.
6568         * doc/posix-functions/fgetpos.texi: Likewise.
6569         * doc/posix-functions/fopen.texi: Likewise.
6570         * doc/posix-functions/freopen.texi: Likewise.
6571         * doc/posix-functions/fseeko.texi: Likewise.
6572         * doc/posix-functions/fsetpos.texi: Likewise.
6573         * doc/posix-functions/fstatat.texi: Likewise.
6574         * doc/posix-functions/fstatvfs.texi: Likewise.
6575         * doc/posix-functions/ftello.texi: Likewise.
6576         * doc/posix-functions/ftruncate.texi: Likewise.
6577         * doc/posix-functions/getrlimit.texi: Likewise.
6578         * doc/posix-functions/lio_listio.texi: Likewise.
6579         * doc/posix-functions/localtime.texi: Likewise.
6580         * doc/posix-functions/lseek.texi: Likewise.
6581         * doc/posix-functions/mkstemp.texi: Likewise.
6582         * doc/posix-functions/mktime.texi: Likewise.
6583         * doc/posix-functions/open.texi: Likewise.
6584         * doc/posix-functions/openat.texi: Likewise.
6585         * doc/posix-functions/opendir.texi: Likewise.
6586         * doc/posix-functions/pread.texi: Likewise.
6587         * doc/posix-functions/pwrite.texi: Likewise.
6588         * doc/posix-functions/readdir.texi: Likewise.
6589         * doc/posix-functions/readdir_r.texi: Likewise.
6590         * doc/posix-functions/scandir.texi: Likewise.
6591         * doc/posix-functions/seekdir.texi: Likewise.
6592         * doc/posix-functions/setrlimit.texi: Likewise.
6593         * doc/posix-functions/statvfs.texi: Likewise.
6594         * doc/posix-functions/strftime.texi: Likewise.
6595         * doc/posix-functions/telldir.texi: Likewise.
6596         * doc/posix-functions/timezone.texi: Likewise.
6597         * doc/posix-functions/tmpfile.texi: Likewise.
6598         * doc/posix-functions/truncate.texi: Likewise.
6599         * doc/posix-functions/tzname.texi: Likewise.
6600         * doc/posix-functions/wcsftime.texi: Likewise.
6601         * doc/windows-sockets.texi: Likewise.
6603 2020-05-31  Paul Eggert  <eggert@cs.ucla.edu>
6605         getrandom-tests: do not assume GRND_RANDOM yields short read
6606         * tests/test-getrandom.c (main): Omit assertion that
6607         getrandom (b, sizeof b, GRND_RANDOM | GRND_NONBLOCK) < sizeof b
6608         when b’s size is 100000.  This assertion fails with Linux kernel
6609         5.6.13, as that kernel ignores the GRND_RANDOM flag.
6610         The separate blocking pool is going away in the Linux kernel, and
6611         they’ve added a flag GRND_INSECURE instead; see:
6612         https://lore.kernel.org/linux-api/705c5a091b63cc5da70c99304bb97e0109be0a26.1577088521.git.luto@kernel.org/
6613         The assertion was iffy anyway; what’s to prevent a kernel from
6614         lazily filling a large buffer with random bytes?
6616         read-file-test: pacify --enable-gcc-warnings
6617         * tests/test-read-file.c (test_read_file): Now static.
6619         tempname: merge from glibc and coreutils
6620         Also, merge in Gnulib’s more-recent methods of making it easier
6621         to share between Gnulib and glibc, and fix a few randomness
6622         glitches.
6623         * lib/tempname.c: Include libc-config.h, not config.h, if !_LIBC.
6624         (__set_errno): Remove; libc-config.h does that for us.
6625         Do not include <sys/time.h>.
6626         (__secure_getenv) [_LIBC]: New macro.
6627         (__try_tempname, __getpid, __gettimeofday) [!_LIBC]: Remove macros.
6628         (RANDOM_BITS): Rewrite.
6629         (RANDOM_VALUE_MAX, BASE_62_DIGITS, BASE_62_POWER): New macros.
6630         (random_value): New typedef.
6631         (try_file, try_dir, try_nocreate): Move up.
6632         (gen_tempname_len, try_tempname_len): New functions.
6633         (gen_tempname_len): Use a constant array rather than a switch.
6634         (try_tempname_len): Don’t assume string length fits in int.
6635         Generalize use of RANDOM_BITS.  If _LIBC, don’t assume RANDOM_BITS
6636         has enough entropy (it’s a bit short).
6637         (__gen_tempname): Rewrite in terms of gen_tempname_len.
6638         (__try_tempname): Rewrite in terms of try_tempname_len.
6639         * lib/tempname.h (gen_tempname_len, try_tempname_len): New decls.
6640         * modules/tempname (Depends-on): Remove gettimeofday, sys_time.
6641         Add getentropy, libc-config.
6643 2020-05-31  Bruno Haible  <bruno@clisp.org>
6645         getrandom, getentropy: Mention the crypto/gc-random module.
6646         Suggested by Simon Josefsson in
6647         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00400.html>.
6648         * doc/glibc-functions/getrandom.texi: Mention the quality issues and the
6649         crypto/gc-random module.
6650         * doc/glibc-functions/getentropy.texi: Likewise.
6652 2020-05-31  Bruno Haible  <bruno@clisp.org>
6654         getentropy: Enhance tests.
6655         * tests/test-getentropy.c (main): Add one more test.
6656         * tests/test-unistd-c++.cc: Check the signature of getentropy.
6658 2020-05-31  Bruno Haible  <bruno@clisp.org>
6660         getentropy: Work around a macOS and Solaris problem.
6661         * lib/unistd.in.h: Include <sys/random.h>, when needed for the
6662         'getentropy' module.
6663         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6664         UNISTD_H_HAVE_SYS_RANDOM_H.
6665         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Set
6666         UNISTD_H_HAVE_SYS_RANDOM_H.
6667         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_SYS_RANDOM_H.
6668         * doc/glibc-functions/getentropy.texi: Document the macOS and Solaris
6669         problem. List more platforms.
6671 2020-05-31  Paul Eggert  <eggert@cs.ucla.edu>
6673         fnmatch: merge from glibc
6674         Also, merge in Gnulib’s more-recent methods of making it easier
6675         to share between Gnulib and glibc.
6676         * lib/fnmatch.c: Reorder includes to match glibc better.
6677         Include libc-config.h instead of config.h.
6678         Include alloca.h only if _LIBC || HAVE_ALLOCA.
6679         Do not include "../locale/elem-hash.h" if _LIBC.
6680         Define macros for btowc, etc. if _LIBC.  All uses simplified.
6681         Define FALLTHROUGH if _LIBC, instead of including attribute.h.
6682         Include intprops.h, since glibc has it now.
6683         (SIZE_MAX): Remove; use (size_t) -1 instead.
6684         Omit the "Comment out all this code" ifdef, since Gnulib
6685         has never really needed it.
6686         (STREQ): Remove; no longer used.
6687         (__libc_use_alloca, alloca, alloca_account): Define as
6688         needed if !_LIBC.
6689         (ISWCTYPE): Remove; all uses replaced by iswctype.
6690         (HANDLE_MULTIBYTE): Remove.  All uses removed by assuming true.
6691         (internal_function): Remove.  All uses removed.
6692         (STRUCT): New macro.
6693         (WIDE_CHAR_VERSION): Define to 0 instead of leaving undefined.
6694         (WMEMCMP): New macro.
6695         (FINDIDX): Define if _LIBC, and include <locale/weight.h>
6696         and <locale/weightwc.h>.
6697         (fnmatch): Prefer __glibc_likely and __glibc_unlikely to
6698         __builtin_expect.  Check for integer overflow more
6699         systematically.  Account for alloca storage better when
6700         recursive.  Use strnlen instead of strlen for efficiency.
6701         * lib/fnmatch_loop.c: Include stdint.h if _LIBC, for int32_t etc.
6702         (struct STRUCT): New type.
6703         (FCT, EXT): New ENDS and ALLOCA_USED args.
6704         All callers changed.
6705         (FCT): Prefer __glibc_unlikely to __builtin_expect.
6706         Simplify by assuming WIDE_CHAR_SUPPORT.
6707         Copy _LIBC code from glibc without worrying Gnulib compatibility.
6708         Cast cold to UCHAR to avoid signedness warning.
6709         (END): Check for invalid pattern.
6710         (EXT): Improve alloca/malloc checking (taken from glibc),
6711         and improve it some more by using intprops.h and checking
6712         for integer overflow and using bool for booleans.
6713         * lib/libc-config.h (compat_symbol): New macro.
6714         (versioned_symbol): Make it ‘extern int dummy’ so that it’s
6715         acceptable to non-GCC when a trailing semicolon is added.
6716         * modules/fnmatch (Depends-on): Add alloca-opt, intprops,
6717         libc-config, strnlen.  Remove alloca.
6719 2020-05-31  Bruno Haible  <bruno@clisp.org>
6721         getrandom: Doc and test tweaks.
6722         * lib/getrandom.c (getrandom): Mention that it never returns 0, and that
6723         it sets errno when failing.
6724         * tests/test-getrandom.c (main): Disable the high-quality check on those
6725         platforms on which it fails.
6726         * doc/glibc-functions/getrandom.texi: Add Minix, AIX, HP-UX, IRIX,
6727         Cygwin to the list of platforms that don't have the function. Add a note
6728         about the quality of the result.
6729         * doc/glibc-headers/sys_random.texi: Don't mention the 'getrandom'
6730         declaration; this is fixed by module 'getrandom'.
6732 2020-05-31  Bruno Haible  <bruno@clisp.org>
6734         getrandom: Add support for native Windows.
6735         * lib/getrandom.c: Include <errno.h>, <windows.h>, <bcrypt.h>,
6736         <wincrypt.h>.
6737         (CRYPT_VERIFY_CONTEXT): New macro.
6738         (LoadLibrary, CryptAcquireContext): Redirect to the variant with suffix
6739         'A'.
6740         (GetProcAddress): New macro.
6741         (BCryptGenRandomFuncType): New type.
6742         (BCryptGenRandomFunc, initialized): New variables.
6743         (initialize): New function.
6744         (getrandom): On native Windows, use <bcrypt.h> API when available, and
6745         <wincrypt.h> API as fallback.
6746         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Set LIB_GETRANDOM.
6747         * modules/getrandom (Link): New section.
6748         * modules/getentropy (Link): Likewise.
6749         * modules/getrandom-tests (Makefile.am): Link test-getrandom against
6750         $(LIB_GETRANDOM).
6751         * modules/getentropy-tests (Makefile.am): Link test-getentropy against
6752         $(LIB_GETRANDOM).
6753         * modules/sys_random-c++-tests (Makefile.am): Link test-sys_random-c++
6754         against $(LIB_GETRANDOM).
6755         * doc/glibc-functions/getrandom.texi: Mention the native Windows
6756         support.
6758 2020-05-31  Bruno Haible  <bruno@clisp.org>
6760         getrandom: Simplify the determination of the random number devices.
6761         Suggested by Paul Eggert in
6762         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00383.html>.
6763         * lib/getrandom.c (NAME_OF_RANDOM_DEVICE, NAME_OF_NONCE_DEVICE): New
6764         macros.
6765         * modules/getrandom (Depends-on): Remove crypto/gc-random.
6767 2020-05-31  Bruno Haible  <bruno@clisp.org>
6769         crypto/gc-random: Fix list of crypto devices for Solaris.
6770         * m4/gc-random.m4 (gl_GC_RANDOM): Don't special-case Solaris.
6772 2020-05-31  Akim Demaille  <akim@lrde.epita.fr>
6774         list: fix GCC warnings
6775         * lib/gl_anytree_list2.h (gl_tree_iterator_free)
6776         (gl_tree_next_node, gl_tree_node_nx_set_value)
6777         (gl_tree_previous_node, gl_tree_next_node):
6778         Mark unused arguments.
6779         * lib/gl_anytree_oset.h (gl_tree_iterator_free): Likewise.
6780         * lib/gl_anylinked_list2.h (gl_linked_node_value)
6781         (gl_linked_node_nx_set_value, gl_linked_iterator_free): Likewise.
6783         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Avoid using
6784         the same variable name in nested scopes.
6786 2020-05-31  Bruno Haible  <bruno@clisp.org>
6788         list-c++, set-c++, oset-c++, map-c++, omap-c++: Don't fool the compiler.
6789         Reported by Akim Demaille in
6790         <https://lists.gnu.org/archive/html/bug-bison/2020-05/msg00102.html>.
6791         * lib/gl_list.hh (gl_List::iterator::next): Avoid a reinterpret_cast.
6792         * lib/gl_set.hh (gl_Set::iterator::next): Likewise.
6793         * lib/gl_oset.hh (gl_OSet::iterator::next): Likewise.
6794         * lib/gl_map.hh (gl_Map::iterator::next): Likewise.
6795         * lib/gl_omap.hh (gl_OMap::iterator::next): Likewise.
6797 2020-05-30  Bruno Haible  <bruno@clisp.org>
6799         wmemchr: Relicense under LGPLv2+.
6800         * modules/wmemchr (License): Set to LGPLv2+.
6802 2020-05-30  Bruno Haible  <bruno@clisp.org>
6804         wmempcpy: New module.
6805         Reported by Paul Eggert in
6806         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00387.html>.
6807         * lib/wchar.in.h (wmempcpy): New declaration.
6808         * lib/wmempcpy.c: New file.
6809         * m4/wmempcpy.m4: New file.
6810         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmempcpy is declared.
6811         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMPCPY, HAVE_WMEMPCPY.
6812         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMPCPY,
6813         HAVE_WMEMPCPY.
6814         * modules/wmempcpy: New file.
6815         * tests/test-wchar-c++.cc: Check the signature of wmempcpy.
6816         * doc/glibc-functions/wmempcpy.texi: Mention the new module.
6817         * modules/mempcpy (Description): Fix typo.
6819 2020-05-30  Bruno Haible  <bruno@clisp.org>
6821         crypto/gc-random: Fix list of crypto devices for NetBSD, OpenBSD.
6822         * m4/gc-random.m4 (gl_GC_RANDOM): Don't special-case NetBSD and OpenBSD.
6824 2020-05-30  Bruno Haible  <bruno@clisp.org>
6826         sys_random: Work around macOS bug.
6827         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Include <sys/types.h> and
6828         <stdlib.h> before <sys/random.h>.
6829         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Likewise.
6830         * lib/sys_random.in.h: On macOS, include <sys/types.h> and <stdlib.h>
6831         first.
6832         * doc/glibc-headers/sys_random.texi: Mention the macOS problem.
6834 2020-05-30  Bruno Haible  <bruno@clisp.org>
6836         getrandom: Override incompatible system function on Solaris 11.
6837         * lib/sys_random.in.h (getrandom): Override if REPLACE_GETRANDOM is 1.
6838         * lib/getrandom.c (getrandom): When the system has getrandom, just
6839         invoke it.
6840         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Set REPLACE_GETRANDOM if the
6841         system's getrandom function's prototype is not the expected one.
6842         * m4/sys_random_h.m4 (gl_SYS_RANDOM_H_DEFAULTS): Initialize
6843         REPLACE_GETRANDOM.
6844         * modules/sys_random (Makefile.am): Substitute REPLACE_GETRANDOM.
6845         * modules/getrandom (modules/getrandom): Consider REPLACE_GETRANDOM.
6846         * tests/test-getrandom.c (main): Allow error EINVAL as an alternative to
6847         EAGAIN.
6848         * doc/glibc-functions/getrandom.texi: Mention the new module and the
6849         Solaris problem.
6851 2020-05-30  Bruno Haible  <bruno@clisp.org>
6853         sys_random: Add C++ tests.
6854         * tests/test-sys_random-c++.cc: New file.
6855         * modules/sys_random-c++-tests: New file.
6856         * modules/sys_random-tests (Depends-on): Depend on it.
6858         sys_random: Add tests.
6859         * tests/test-sys_random.c: New file.
6860         * modules/sys_random-tests: New file.
6862         sys_random: New module.
6863         * lib/sys_random.in.h: Use the common idioms for overridable header
6864         files.
6865         * m4/sys_random_h.m4: New file.
6866         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Require gl_SYS_RANDOM_H_DEFAULTS.
6867         * modules/sys_random: New file.
6868         * modules/getrandom (Files): Remove lib/sys_random.in.h.
6869         (Depends-on): Add sys_random.
6870         (configure.ac): Use gl_SYS_RANDOM_MODULE_INDICATOR, not
6871         gl_UNISTD_MODULE_INDICATOR.
6872         (Makefile.am): Don't generate sys/random.h here.
6873         * doc/glibc-headers/sys_random.texi: New file.
6874         * doc/gnulib.texi: Include it.
6876 2020-05-30  Bruno Haible  <bruno@clisp.org>
6878         unistd: Remove conflicting declaration of getrandom().
6879         * lib/unistd.in.h (getrandom): Remove declaration.
6880         * m4/unistd_h.m4 (gl_UNISTD_H): Don't test whether getrandom is
6881         declared.
6882         (gl_UNISTD_H_DEFAULTS): Don't initialize GNULIB_GETRANDOM,
6883         HAVE_GETRANDOM.
6884         * modules/unistd (Makefile.am): Don't substitute GNULIB_GETRANDOM,
6885         HAVE_GETRANDOM.
6887 2020-05-30  Bruno Haible  <bruno@clisp.org>
6889         getrandom: Add tests.
6890         * tests/test-getrandom.c: New file.
6891         * modules/getrandom-tests: New file.
6893 2020-05-30  Bruno Haible  <bruno@clisp.org>
6895         crypto/gc-random: Fix link error on MSVC.
6896         * m4/gc-random.m4 (gl_GC_RANDOM): Set LIB_GC_RANDOM.
6897         * modules/crypto/gc-random (Link): New section.
6898         * modules/crypto/gc-tests (Makefile.am): Link test-gc against
6899         $(LIB_GC_RANDOM).
6901 2020-05-30  Bruno Haible  <bruno@clisp.org>
6903         Don't assume that UNICODE is not defined.
6904         Many Windows API functions are defined differently (redirecting to a
6905         function with suffix 'W') if the application defines the macro UNICODE
6906         than by default (redirecting to a function with suffix 'A').
6907         * lib/clean-temp.c (OSVERSIONINFO, GetVersionEx): Redirect to the
6908         variant with suffix 'A'.
6909         * lib/dirent-private.h (WIN32_FIND_DATA): Likewise.
6910         * lib/gc-gnulib.c (CryptAcquireContext): Likewise.
6911         * lib/getaddrinfo.c (GetModuleHandle): Likewise.
6912         * lib/getlogin.c (GetUserName): Likewise.
6913         * lib/getlogin_r.c (GetUserName): Likewise.
6914         * lib/gettimeofday.c (LoadLibrary): Likewise.
6915         * lib/isatty.c (LoadLibrary, QueryFullProcessImageName): Likewise.
6916         * lib/link.c (GetModuleHandle, CreateHardLink): Likewise.
6917         * lib/localename.c (GetLocaleInfo, EnumSystemLocales): Likewise.
6918         * lib/mountlist.c (GetDriveType): Likewise.
6919         * lib/nonblocking.c (GetNamedPipeHandleState): Likewise.
6920         * lib/opendir.c (WIN32_FIND_DATA, GetFullPathName, FindFirstFile):
6921         Likewise.
6922         * lib/physmem.c (GetModuleHandle): Likewise.
6923         * lib/poll.c (GetModuleHandle, PeekConsoleInput, CreateEvent,
6924         PeekMessage, DispatchMessage): Likewise.
6925         * lib/progreloc.c (GetModuleFileName): Likewise.
6926         * lib/putenv.c (SetEnvironmentVariable): Likewise.
6927         * lib/read.c (GetNamedPipeHandleState): Likewise.
6928         * lib/readdir.c (FindNextFile): Likewise.
6929         * lib/relocatable.c (GetModuleFileName): Likewise.
6930         * lib/rename.c (MoveFileEx): Likewise.
6931         * lib/rewinddir.c (FindFirstFile): Likewise.
6932         * lib/select.c (GetModuleHandle, PeekConsoleInput, CreateEvent,
6933         PeekMessage, DispatchMessage): Likewise.
6934         * lib/sethostname.c (GetComputerNameEx, SetComputerNameEx): Likewise.
6935         * lib/socket.c (WSASocket): Likewise.
6936         * lib/stat-w32.c (LoadLibrary, GetFinalPathNameByHandle): Likewise.
6937         * lib/stat.c (WIN32_FIND_DATA, CreateFile, FindFirstFile): Likewise.
6938         * lib/stdio-read.c (GetNamedPipeHandleState): Likewise.
6939         * lib/stdio-write.c (GetNamedPipeHandleState): Likewise.
6940         * lib/tmpdir.c (GetTempPath): Likewise.
6941         * lib/tmpfile.c (OSVERSIONINFO, GetVersionEx, GetTempPath): Likewise.
6942         * lib/uname.c (OSVERSIONINFO, GetVersionEx): Likewise.
6943         * lib/utime.c (CreateFile, GetFileAttributes): Likewise.
6944         * lib/windows-cond.c (CreateEvent): Likewise.
6945         * lib/windows-rwlock.c (CreateEvent): Likewise.
6946         * lib/windows-timedmutex.c (CreateEvent): Likewise.
6947         * lib/windows-timedrecmutex.c (CreateEvent): Likewise.
6948         * lib/windows-timedrwlock.c (CreateEvent): Likewise.
6949         * lib/write.c (GetNamedPipeHandleState): Likewise.
6951 2020-05-30  Bruno Haible  <bruno@clisp.org>
6953         physmem: Fix compilation errors on MSVC.
6954         * lib/physmem.c (PFN_MS_EX): Use BOOL, not WINBOOL.
6955         * modules/physmem (Depends-on): Add unistd.
6957 2020-05-29  Bruno Haible  <bruno@clisp.org>
6959         gnulib-tool: Fix link errors with a particular set of modules on mingw.
6960         * gnulib-tool (func_emit_tests_Makefile_am): Add ../lib/libgnu.a to
6961         LDADD a second time, after the second occurrence of libtests.a.
6962         * pygnulib/GLEmiter.py (tests_Makefile_am): Likewise.
6964 2020-05-29  Bruno Haible  <bruno@clisp.org>
6966         fnmatch: Rely on more gnulib modules.
6967         * modules/fnmatch (Depends-on): Add btowc, isblank, iswctype, wmemchr,
6968         wmempcpy, mempcpy.
6969         * lib/fnmatch.c: Assume that HAVE_WCTYPE_H, HAVE_BTOWC, HAVE_ISWCTYPE,
6970         HAVE_WMEMCHR, HAVE_WMEMPCPY, HAVE_ISBLANK, HAVE_DECL_ISBLANK,
6971         HAVE_MEMPCPY are all 1.
6972         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't test for btowc, isblank,
6973         iswctype, mempcpy, wmemchr, wmemcpy, wmempcpy, <wctype.h>.
6975 2020-05-29  Bruno Haible  <bruno@clisp.org>
6977         Avoid dynamic lookup of Windows API functions when possible.
6978         * lib/getaddrinfo.c (GetProcAddress, getaddrinfo_func,
6979         freeaddrinfo_func, getnameinfo_func, getaddrinfo_ptr, freeaddrinfo_ptr,
6980         getnameinfo_ptr): Don't define in a build for Windows XP or higher.
6981         (use_win32_p): Define differently.
6982         * lib/link.c (GetProcAddress, CreateHardLinkFuncType,
6983         CreateHardLinkFunc, initialized, initialize): Don't define in a build
6984         for Windows XP or higher.
6986 2020-05-29  Daiki Ueno  <ueno@gnu.org>
6988         read-file: disable buffering if RF_SENSITIVE is set
6989         * lib/read-file.c (read_file): Call setvbuf if RF_SENSITIVE.
6990         Suggested by Glenn Strauss.
6991         (fread_file): Suggest calling setvbuf before calling this
6992         function.  Suggested by Bruno Haible.
6994 2020-05-29  Bruno Haible  <bruno@clisp.org>
6996         wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset: Fix autoconf test.
6997         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Link, not only compile, the test
6998         program.
6999         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Likewise.
7000         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Likewise.
7001         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Likewise.
7002         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Likewise.
7004 2020-05-29  Bruno Haible  <bruno@clisp.org>
7006         Fix compilation error on native Windows (regression from 2020-05-28).
7007         Reported by Daiki Ueno.
7008         * lib/gettimeofday.c (GetSystemTimePreciseAsFileTimeFunc): Define as
7009         macro when not using dynamic loading.
7010         * lib/isatty.c (GetNamedPipeClientProcessIdFunc,
7011         QueryFullProcessImageNameFunc): Likewise.
7012         * lib/stat-w32.c (GetFileInformationByHandleExFunc,
7013         GetFinalPathNameByHandleFunc): Likewise.
7015 2020-05-29  Daiki Ueno  <ueno@gnu.org>
7017         fopen-gnu-tests: fix "\x" escape usage
7018         * tests/test-fopen-gnu.c (DATA): Use safer escape sequence.
7020 2020-05-28  Bruno Haible  <bruno@clisp.org>
7022         Avoid dynamic loading of Windows API functions when possible.
7023         Reported by Steve Lhomme <robux4@ycbcr.xyz> in
7024         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00182.html>.
7025         * lib/gettimeofday.c (GetProcAddress,
7026         GetSystemTimePreciseAsFileTimeFuncType,
7027         GetSystemTimePreciseAsFileTimeFunc, initialized, initialize): Don't
7028         define in a build for Windows 8 or higher.
7029         * lib/isatty.c (GetProcAddress, GetNamedPipeClientProcessIdFuncType,
7030         GetNamedPipeClientProcessIdFunc, QueryFullProcessImageNameFuncType,
7031         QueryFullProcessImageNameFunc, initialized, initialize): Don't define
7032         in a build for Windows Vista or higher.
7033         * lib/stat-w32.c (GetProcAddress, GetFileInformationByHandleExFuncType,
7034         GetFileInformationByHandleExFunc, GetFinalPathNameByHandleFuncType,
7035         GetFinalPathNameByHandleFunc, initialized, initialize): Likewise.
7037 2020-05-28  Paul Eggert  <eggert@cs.ucla.edu>
7039         explicit_bzero-tests: improve -Wmissing-declarations pacification
7040         * tests/test-explicit_bzero.c: Now noinline.
7041         Suggested by Bruno Haible in:
7042         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00300.html
7044 2020-05-28  Bruno Haible  <bruno@clisp.org>
7046         Fix build errors due to read-file changes (regression from 2020-05-27).
7047         * lib/git-merge-changelog.c (read_changelog_file): Update read_file
7048         invocation.
7049         * tests/test-sameacls.c (main): Likewise.
7050         * tests/test-pipe-filter-gi1.c (main): Call read_file instead of
7051         read_binary_file.
7052         * tests/test-pipe-filter-ii1.c (main): Likewise.
7054 2020-05-28  Bruno Haible  <bruno@clisp.org>
7056         fts: Make more robust in multithreaded applications.
7057         * lib/fts.c (fts_open): Pass an O_CLOEXEC flag to open().
7058         * modules/fts (Depends-on): Add 'open'.
7060 2020-05-28  Bruno Haible  <bruno@clisp.org>
7062         relocatable-prog: Make more robust in multithreaded applications.
7063         * lib/progreloc.c (O_CLOEXEC): Define fallback to 0 when use from module
7064         relocatable-prog-wrapper.
7065         (find_executable): Pass an O_CLOEXEC flag to open().
7066         * modules/relocatable-prog (Depends-on): Add 'open'.
7068 2020-05-28  Bruno Haible  <bruno@clisp.org>
7070         getloadavg: Make more robust in multithreaded applications.
7071         * lib/getloadavg.c (getloadavg): Pass an O_CLOEXEC flag to open().
7072         Simplify use of O_CLOEXEC.
7073         * modules/getloadavg (Depends-on): Add 'open'.
7075 2020-05-28  Bruno Haible  <bruno@clisp.org>
7077         vma-iter: Make more robust in multithreaded applications.
7078         * lib/vma-iter.c (rof_open, vma_iterate): Pass an O_CLOEXEC flag to
7079         open().
7080         * modules/vma-iter (Depends-on): Add 'open'.
7082 2020-05-28  Bruno Haible  <bruno@clisp.org>
7084         truncate: Make more robust in multithreaded applications.
7085         * lib/truncate.c (truncate): Pass an O_CLOEXEC flag to open().
7087 2020-05-28  Bruno Haible  <bruno@clisp.org>
7089         pagealign_alloc: Make more robust in multithreaded applications.
7090         * lib/pagealign_alloc.c (pagealign_alloc): Pass an O_CLOEXEC flag to
7091         open().
7092         * modules/pagealign_alloc (Depends-on): Add 'open'.
7094 2020-05-28  Bruno Haible  <bruno@clisp.org>
7096         openat: Make more robust in multithreaded applications.
7097         * lib/openat.c (openat_needs_fchdir): Pass an O_CLOEXEC flag to open().
7099 2020-05-28  Bruno Haible  <bruno@clisp.org>
7101         at-internal: Make more robust in multithreaded applications.
7102         * lib/openat-proc.c (openat_proc_name): Pass an O_CLOEXEC flag to
7103         open().
7105 2020-05-28  Bruno Haible  <bruno@clisp.org>
7107         mountlist: Make more robust in multithreaded applications.
7108         * lib/mountlist.c (read_file_system_list): Pass an O_CLOEXEC flag to
7109         open().
7110         * modules/mountlist (Depends-on): Add 'open'.
7112 2020-05-28  Bruno Haible  <bruno@clisp.org>
7114         login_tty: Make more robust in multithreaded applications.
7115         * lib/login_tty.c (login_tty): Pass an O_CLOEXEC flag to open().
7116         * modules/login_tty (Depends-on): Add 'open'.
7118 2020-05-28  Bruno Haible  <bruno@clisp.org>
7120         javacomp: Make more robust in multithreaded applications.
7121         * lib/javacomp.c (get_classfile_version): Pass an O_CLOEXEC flag to
7122         open().
7123         * modules/javacomp (Depends-on): Add 'open'.
7125 2020-05-28  Bruno Haible  <bruno@clisp.org>
7127         getprogname: Make more robust in multithreaded applications.
7128         * lib/getprogname.c (getprogname): Pass an O_CLOEXEC flag to open().
7129         * modules/getprogname (Depends-on): Add 'open'.
7131 2020-05-28  Bruno Haible  <bruno@clisp.org>
7133         get_progname_of: Make more robust in multithreaded applications.
7134         * lib/get_progname_of.c (get_progname_of): Pass an O_CLOEXEC flag to
7135         open().
7136         * modules/get_progname_of (Depends-on): Add 'open'.
7138 2020-05-28  Bruno Haible  <bruno@clisp.org>
7140         get_ppid_of: Make more robust in multithreaded applications.
7141         * lib/get_ppid_of.c (get_ppid_of): Pass an O_CLOEXEC flag to open().
7142         * modules/get_ppid_of (Depends-on): Add 'open'.
7144 2020-05-28  Bruno Haible  <bruno@clisp.org>
7146         get-rusage-as: Make more robust in multithreaded applications.
7147         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Pass an O_CLOEXEC
7148         flag to open().
7149         * modules/get-rusage-as (Depends-on): Add 'open'.
7151 2020-05-28  Bruno Haible  <bruno@clisp.org>
7153         crypto/gc: Make more robust in multithreaded applications.
7154         * lib/gc-gnulib.c (randomize): Pass an O_CLOEXEC flag to open().
7155         * modules/crypto/gc (Depends-on): Add 'open'.
7157 2020-05-28  Bruno Haible  <bruno@clisp.org>
7159         copy-file: Make more robust in multithreaded applications.
7160         * lib/copy-file.c (qcopy_file_preserving): Pass an O_CLOEXEC flag to
7161         open().
7163 2020-05-28  Bruno Haible  <bruno@clisp.org>
7165         chown: Make more robust in multithreaded applications.
7166         * lib/chown.c (rpl_chown): Pass an O_CLOEXEC flag to open().
7168 2020-05-28  Bruno Haible  <bruno@clisp.org>
7170         doc: Fix statement about O_CLOEXEC (wrong since 2017-08-14).
7171         * doc/posix-headers/fcntl.texi: Gnulib no longer defines O_CLOEXEC to 0.
7173 2020-05-28  Daiki Ueno  <ueno@gnu.org>
7175         fopen-gnu: make 'b' flag can be used with 'e' on Windows
7176         * lib/fopen.c (rpl_fopen): Pass O_BINARY to open, if a 'b' flag is
7177         specified on Windows.
7178         * tests/test-fopen-gnu.c (DATA): New define.
7179         (main): Add test for reading binary files with an 'e' flag.
7181 2020-05-27  Bruno Haible  <bruno@clisp.org>
7183         Don't assume that UNICODE is not defined.
7184         Some Windows types, such as TCHAR, LPTSTR, LPCTSTR, are defined
7185         differently if the application defines the macro UNICODE.
7186         Reported by Steve Lhomme <robux4@ycbcr.xyz> in
7187         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00184.html>.
7188         * lib/link.c (CreateHardLinkFuncType): Use LPCSTR, not LPCTSTR.
7189         * lib/localename.c (enum_locales_fn): Use LPSTR, not LPTSTR.
7190         * lib/stat-w32.c (GetFinalPathNameByHandleFuncType): Likewise.
7192 2020-05-27  Bruno Haible  <bruno@clisp.org>
7194         Improve pattern for defining _WIN32_WINNT.
7195         Newer versions of the Windows API may not only add, but also remove API
7196         functions. Therefore, when the user is e.g. building for Windows 10, we
7197         should not set _WIN32_WINNT to e.g. Windows 8, as this may enable the
7198         use of APIs that were present in Windows 8 but removed in Windows 10.
7199         Suggested by Steve Lhomme <robux4@ycbcr.xyz> in
7200         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00318.html>.
7201         * lib/ftruncate.c (_WIN32_WINNT): Don't set to a smaller value.
7202         * lib/sethostname.c (_WIN32_WINNT): Likewise.
7203         * lib/stat-w32.c (_WIN32_WINNT): Likewise.
7205 2020-05-27  Bruno Haible  <bruno@clisp.org>
7207         javacomp: Make more robust in multithreaded applications.
7208         * lib/javacomp.c (write_temp_file): Pass an 'e' flag to fopen_temp.
7209         * modules/javacomp (Depends-on): Add fopen-gnu.
7211 2020-05-27  Bruno Haible  <bruno@clisp.org>
7213         mountlist: Make more robust in multithreaded applications.
7214         * lib/mountlist.c (setmntent, read_file_system_list): Pass an 'e' flag
7215         to fopen.
7216         * modules/mountlist (Depends-on): Add fopen-gnu.
7218 2020-05-27  Bruno Haible  <bruno@clisp.org>
7220         sethostname: Make more robust in multithreaded applications.
7221         * lib/sethostname.c (sethostname): Pass an 'e' flag to fopen.
7222         * modules/sethostname (Depends-on): Add fopen-gnu.
7224 2020-05-27  Bruno Haible  <bruno@clisp.org>
7226         readutmp: Make more robust in multithreaded applications.
7227         * lib/readutmp.c (read_utmp): Pass an 'e' flag to fopen.
7228         * modules/readutmp (Depends-on): Add fopen-gnu.
7230 2020-05-27  Bruno Haible  <bruno@clisp.org>
7232         getpass: Make more robust in multithreaded applications.
7233         * lib/getpass.c (getpass): Pass an 'e' flag to fopen.
7234         * modules/getpass (Depends-on): Add fopen-gnu.
7236 2020-05-27  Bruno Haible  <bruno@clisp.org>
7238         getloadavg: Make more robust in multithreaded applications.
7239         * lib/getloadavg.c (getloadavg): Pass an 'e' flag to fopen.
7240         * modules/getloadavg (Depends-on): Add fopen-gnu.
7242 2020-05-27  Bruno Haible  <bruno@clisp.org>
7244         exclude: Make more robust in multithreaded applications.
7245         * lib/exclude.c (add_exclude_file): Pass an 'e' flag to fopen.
7246         * modules/exclude (Depends-on): Add fopen-gnu.
7248 2020-05-27  Bruno Haible  <bruno@clisp.org>
7250         bitset: Make more robust in multithreaded applications.
7251         * lib/bitset/stats.c (bitset_stats_read, bitset_stats_write): Pass an
7252         'e' flag to fopen.
7253         * modules/bitset (Depends-on): Add fopen-gnu.
7255 2020-05-27  Daiki Ueno  <ueno@gnu.org>
7257         read-file: add RF_SENSITIVE flag
7258         * lib/read-file.h (RF_SENSITIVE): New define.
7259         * lib/read-file.c (fread_file, read_file): Take into account of
7260         RF_SENSITIVE flag.
7261         * modules/read-file (Depends-on): Add explicit_bzero.
7262         This adds an alternative behavior of those functions to explicitly
7263         clear the internal memory block when it becomes unused.  This is
7264         useful for reading sensitive information from a file.
7266 2020-05-27  Daiki Ueno  <ueno@gnu.org>
7268         read-file: add flags to modify reading behavior
7269         * lib/read-file.h (RF_BINARY): New define.
7270         (fread_file, read_file): Take FLAGS argument.
7271         (read_binary_file): Remove.
7272         * lib/read-file.c (internal_read_file): Merge into ...
7273         (read_file): ... here.
7274         * modules/read-file-tests (Files): Add "tests/macros.h".
7275         * tests/test-read-file.c (main): Refactor using ASSERT macro.
7276         * NEWS: Mention this change.
7278 2020-05-26  Bernhard Voelker  <mail@bernhard-voelker.de>
7280         doc/gnulib-intro.texi: add missing "to" in sentence
7281         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
7282         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00316.html>.
7283         * doc/gnulib-intro.texi (Collaborative Development): Add "to".
7285 2020-05-26  Bruno Haible  <bruno@clisp.org>
7287         count-one-bits: Fix MSVC specific code.
7288         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
7289         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00309.html>.
7290         * lib/count-one-bits.h (COUNT_ONE_BITS_GENERIC): Don't define if we're
7291         using GCC.
7292         [_MSC_VER]: Use correct syntax for #pragma intrinsic.
7293         (__popcnt64): In 32-bit mode, define as an inline function.
7294         (COUNT_ONE_BITS): Rename first argument to GCC_BUILTIN.
7296 2020-05-26  Bruno Haible  <bruno@clisp.org>
7298         argz: Avoid name clashes through argz.h.
7299         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
7300         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00308.html>.
7301         * lib/argz.h: Don't use __ prefixed identifiers.
7302         (const): Remove definition.
7303         (argz_next): Remove inline definitions.
7305 2020-05-26  Daiki Ueno  <ueno@gnu.org>
7307         read-file: make use of fopen-gnu
7308         * lib/read-file.c (read_file): Pass an 'e' flag to fopen.
7309         (read_binary_file): Likewise.
7310         * modules/read-file (Depends-on): Add fopen-gnu.
7312 2020-05-25  Paul Eggert  <eggert@cs.ucla.edu>
7314         getentropy, getrandom: new modules
7315         * MODULES.html.sh (func_all_modules):
7316         * lib/unistd.in.h (getentropy, getrandom):
7317         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS):
7318         * modules/unistd (unistd.h):
7319         Add support for getentropy, getrandom.
7320         * doc/glibc-functions/getentropy.texi (getentropy):
7321         * doc/glibc-functions/getrandom.texi (getrandom):
7322         These are now fixed on some platforms.
7323         * lib/getentropy.c, lib/getrandom.c, lib/sys_random.in.h:
7324         * m4/getentropy.m4, m4/getrandom.m4:
7325         * modules/getentropy, modules/getentropy-tests:
7326         * modules/getrandom, modules/getrandom-tests:
7327         * tests/test-getentropy.c, tests/test-getrandom.c:
7328         New files.
7330 2020-05-25  Bruno Haible  <bruno@clisp.org>
7332         Add missing C99 dependencies.
7333         Reported by Paul Smith <psmith@gnu.org> in
7334         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00290.html>.
7335         * modules/assert (Depends-on): Add c99.
7336         * modules/filenamecat-lgpl (Depends-on): Likewise.
7337         * modules/libc-config (Depends-on): Likewise.
7338         * modules/mktime (Depends-on): Likewise.
7339         * modules/random_r (Depends-on): Likewise.
7340         * modules/regex (Depends-on): Likewise.
7341         * modules/scratch_buffer (Depends-on): Likewise.
7342         * modules/timespec-add (Depends-on): Likewise.
7343         * modules/timespec-sub (Depends-on): Likewise.
7344         * modules/verify (Depends-on): Likewise.
7346 2020-05-24  Paul Eggert  <eggert@cs.ucla.edu>
7348         explicit_bzero-tests: pacify -Wmissing-declarations
7349         * tests/test-explicit_bzero.c (do_secret_stuff, test_stack):
7350         Now static.
7352 2020-05-24  Bruno Haible  <bruno@clisp.org>
7354         fopen-gnu: Add tests.
7355         * tests/test-fopen-gnu.c: New file.
7356         * modules/fopen-gnu-tests: New file.
7358         fopen-gnu: New module.
7359         Suggested by Tim Rühsen <tim.ruehsen@gmx.de> in
7360         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00119.html>.
7361         * lib/fopen.c (rpl_fopen): When the fopen-gnu module is enabled and the
7362         mode contains an 'x' or 'e' flag, use open() followed by fdopen().
7363         * m4/fopen.m4 (gl_FUNC_FOPEN_GNU): New macro.
7364         * modules/fopen-gnu: New file.
7365         * doc/posix-functions/fopen.texi: Document the 'fopen-gnu' module.
7367 2020-05-24  Bruno Haible  <bruno@clisp.org>
7369         open, openat: Really support O_CLOEXEC.
7370         * lib/open.c (open): When have_cloexec is still undecided, do pass a
7371         O_CLOEXEC flag to orig_open.
7372         * lib/openat.c (rpl_openat): When have_cloexec is still undecided, do
7373         pass a O_CLOEXEC flag to orig_openat.
7374         * tests/test-open.h (test_open): Verify that O_CLOEXEC is honoured.
7375         * modules/open-tests (Depends-on): Add fcntl.
7376         * modules/openat-tests (Depends-on): Likewise.
7377         * modules/fcntl-safer-tests (Depends-on): Likewise.
7379 2020-05-24  Bruno Haible  <bruno@clisp.org>
7381         fopen: Fix the trailing slash workaround.
7382         * lib/fopen.c (rpl_fopen): Parse the mode string. Recognize "r+" as a
7383         write access. Pass the right flags to open().
7384         * tests/test-fopen.h (test_fopen): Add a few more tests on directories.
7386 2020-05-23  Paul Eggert  <eggert@cs.ucla.edu>
7388         assure: new macro ‘affirm’
7389         * lib/assure.h: Include verify.h.
7390         (affirm): New macro, after a suggestion by Marc Nieper-Wißkirchen in:
7391         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00263.html
7392         and commentary by Bruno Haible in:
7393         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00278.html
7394         * modules/assure (Depends-on:): Add verify.
7396 2020-05-23  Bruno Haible  <bruno@clisp.org>
7398         calloc-gnu: Make test work in non-flat address spaces.
7399         Uses code by Paul Eggert.
7400         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Allow a calloc() implementation
7401         to return more than SIZE_MAX bytes, but only without wrap-around bugs.
7403 2020-05-23  Bruno Haible  <bruno@clisp.org>
7405         calloc-gnu: Avoid wrong configure results with GCC's AddressSanitizer.
7406         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Split the AC_RUN_IFELSE into two
7407         AC_RUN_IFELSE invocations.
7409 2020-05-23  Bruno Haible  <bruno@clisp.org>
7411         isnanf, isnanl, isnan: Don't use nonexistent builtins with clang.
7412         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM,
7413         gl_ISNANF_WORKS): Don't use __builtin_isnanf on clang versions that
7414         don't have it.
7415         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
7416         gl_FUNC_ISNANL_WORKS): Don't use __builtin_isnanl on clang versions that
7417         don't have it.
7418         * lib/isnanf-nolibm.h (__has_builtin): New macro.
7419         (isnanf): Don't use __builtin_isnanf on clang versions that don't have
7420         it.
7421         * lib/isnanl-nolibm.h (__has_builtin): New macro.
7422         (isnanl): Don't use __builtin_isnanl on clang versions that don't have
7423         it.
7424         * lib/math.in.h (__has_builtin): New macro.
7425         (isnanf): Don't use __builtin_isnanf on clang versions that don't have
7426         it.
7427         (isnanl): Don't use __builtin_isnanl on clang versions that don't have
7428         it.
7429         (isnan): Don't use the builtins on clang versions that don't have
7430         __builtin_isnanf and __builtin_isnanl.
7432 2020-05-23  Bruno Haible  <bruno@clisp.org>
7434         calloc-gnu: Avoid wrong configure results with clang.
7435         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Mark the pointer variable as
7436         'volatile', to defeat compiler optimizations.
7438 2020-05-23  Bruno Haible  <bruno@clisp.org>
7440         isnanl, isnanl-nolibm: Make a test work better with "gcc -O2" on x86_64.
7441         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Pass the
7442         'long double' values by reference, with values taken from a statically
7443         allocated array.
7445 2020-05-23  Bruno Haible  <bruno@clisp.org>
7447         findprog-in: Ignore directories.
7448         Reported by Frederick Eaton via Dmitry Goncharov in
7449         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00003.html>.
7450         * lib/findprog-in.c (find_in_given_path): When the file found is a
7451         directory, set errno to EACCES and, during a PATH search, continue
7452         searching.
7453         * modules/findprog-in (Depends-on): Add sys_stat, stat.
7455 2020-05-23  Paul Eggert  <eggert@cs.ucla.edu>
7457         verify: document ‘assume’ better
7458         * lib/verify.h (assume): Say it’s for static analysis, not dynamic.
7460 2020-05-22  Asher Gordon  <AsDaGo@posteo.net>
7462         gendocs: Clarify licenses for templates.
7463         * doc/gendocs_template: Add a GNU All-Permissive license notice
7464         and bump Parent-Version.
7465         * doc/gendocs_template_min: Add a GNU All-Permissive license
7466         notice and copy the explanatory comment about the license notice
7467         at the bottom from gendocs_template.
7469 2020-05-21  Bruno Haible  <bruno@clisp.org>
7471         group-member: Relicense under LGPLv2+.
7472         Jim Meyering's approval is in
7473         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00218.html>.
7474         Paul Eggert's approval is in
7475         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00225.html>.
7476         Eric Blake's approval is in
7477         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00217.html>.
7478         * modules/group-member (License): Change to LGPLv2+.
7480 2020-05-21  Bruno Haible  <bruno@clisp.org>
7482         memmem: Avoid wrong configure results with "clang -fsanitize=undefined".
7483         Reported by Tim Rühsen in
7484         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
7485         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Use NULL + 1, not NULL.
7487 2020-05-21  Bruno Haible  <bruno@clisp.org>
7489         regex: Avoid wrong configure results with "clang -fsanitize=leak".
7490         Reported by Tim Rühsen in
7491         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
7492         * m4/regex.m4 (gl_REGEX): Free compiled regexes and allocated registers
7493         before returning with status 0.
7495 2020-05-21  Bruno Haible  <bruno@clisp.org>
7497         glob: Avoid wrong configure results with "clang -fsanitize=leak".
7498         Reported by Tim Rühsen in
7499         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
7500         * m4/glob.m4 (gl_GLOB): Free allocated memory before returning.
7502 2020-05-21  Bruno Haible  <bruno@clisp.org>
7504         fchownat: Support clang -fsanitize=implicit-integer-sign-change better.
7505         Reported by Tim Rühsen in
7506         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
7507         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
7508         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Cast -1 to uid_t or git_t,
7509         respectively.
7511 2020-05-18  Tim Rühsen  <tim.ruehsenqgmx.de>
7513         getdelim: Avoid wrong configure results with gcc -fsanitize=address.
7514         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Fix memleak.
7516 2020-05-19  Paul Eggert  <eggert@cs.ucla.edu>
7518         ftoastr: fix ifndef typo
7519         * lib/ftoastr.h (_GL_FTOASTR_H): Define.
7521 2020-05-19  Bruno Haible  <bruno@clisp.org>
7523         havelib: Tweak documentation.
7524         * doc/havelib.texi (Searching for Libraries): Fix typo.
7526 2020-05-18  Siddhesh Poyarekar  <siddhesh@gotplt.org>
7528         vcs-to-changelog: Rename vcs_to_changelog.py to use hyphens.
7529         This was needed earlier because modules had to import the main script,
7530         but that is no longer true.  Rename the script so that it is
7531         consistent with all other scripts in gnulib and uses hyphens.
7532         * build-aux/vcs_to_changelog.py: Rename to...
7533         * build-aux/vcs-to-changelog.py: ... this.
7534         * doc/vcs-to-changelog.texi (VCS To ChangeLog): Update reference.
7535         * modules/vcs-to-changelog: Likewise.
7537 2020-05-17  Bruno Haible  <bruno@clisp.org>
7539         Clarify intended usage of the license file modules.
7540         Reported by Asher Gordon <AsDaGo@posteo.net> in
7541         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00126.html>.
7542         * doc/licenses-texi.texi (License Texinfo sources): Mention the
7543         GNU AGPL. Explain the intended usage of the modules.
7544         * modules/fdl (Notice): Discourage use as a module.
7545         * modules/fdl-1.3 (Notice): Likewise.
7547 2020-05-17  Akim Demaille  <akim@lrde.epita.fr>
7549         hash: add hash_xinsert
7550         * lib/hash.h, lib/xhash.c (hash_xinsert): New.
7552 2020-05-16  Bruno Haible  <bruno@clisp.org>
7554         findprog-lgpl: Fix link error (existing since 2008-09-02).
7555         * modules/findprog-lgpl (Makefile.am): Arrange to compile
7556         findprog-lgpl.c, not findprog.c.
7557         * lib/findprog.c (find_in_path): Add LGPLed replacement code for
7558         XNMALLOC.
7560 2020-05-15  Paul Eggert  <eggert@cs.ucla.edu>
7562         c-stack: pacify -Wunused-result when DEBUG
7563         Problem reported by Marc Nieper-Wißkirchen in:
7564         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00132.html
7565         * lib/c-stack.c (segv_handler, overflow_handler, segv_handler) [DEBUG]:
7566         Explicitly ignore write failures.
7568 2020-05-13  Jim Meyering  <meyering@fb.com>
7570         announce-gen: improve a comment
7571         * build-aux/announce-gen: Improve comment.
7573 2020-05-12  Paul Eggert  <eggert@cs.ucla.edu>
7575         xalloc: pacify -Wanalyzer-possible-null-argument
7576         Problem reported for GCC 10.1.0 by Bruno Haible in:
7577         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00118.html
7578         * lib/xmalloc.c (HAVE_GNU_MALLOC, HAVE_GNU_REALLOC): New constants.
7579         (xmalloc): Suppress unnecessary check if HAVE_GNU_MALLOC.
7580         (xrealloc): Suppress unnecssary check if HAVE_GNU_REALLOC.
7582 2020-05-11  Paul Eggert  <eggert@cs.ucla.edu>
7584         careadlinkat: fix GCC 10 workaround
7585         * lib/careadlinkat.c (careadlinkat) [GCC_LINT]:
7586         Massage the code so that it’s closer to what it was before
7587         the GCC 10.1.0 workaround was introduced.  This fixes
7588         a loop when !buffer and the bug workaround is in effect.
7589         Remove unnecessary casts.  Defend in a different way
7590         against (buffer && !buffer_size), by adding at least 1
7591         to buf_size each time through the loop.
7593 2020-05-10  Bruno Haible  <bruno@clisp.org>
7595         doc: Mark HP-UX as unsupported.
7596         * doc/gnulib-intro.texi (Target Platforms): List HP-UX as unsupported.
7598 2020-05-10  Paul Eggert  <eggert@cs.ucla.edu>
7600         careadlinkat: limit GCC workaround
7601         * lib/careadlinkat.c (careadlinkat): Limit workaround to GCC
7602         10.1.0 and later, since the workaround is pretty bad and the GCC
7603         bug should get fixed.
7605 2020-05-10  Bruno Haible  <bruno@clisp.org>
7607         havelib: Enhance documentation.
7608         * doc/havelib.texi (Searching for Libraries): Mention the bad
7609         consequences of using LIBxxx instead of LTLIBxxx and vice versa.
7611 2020-05-10  Bruno Haible  <bruno@clisp.org>
7613         attribute: Clarify list of attributes.
7614         * lib/attribute.h: Reorder the list of attributes, and group them by
7615         purpose.
7617 2020-05-10  Bruno Haible  <bruno@clisp.org>
7619         string: Fix compilation error in C++ mode.
7620         * lib/warn-on-use.h (_GL_WARN_ON_USE_CXX): In C mode, use plain
7621         _GL_WARN_ON_USE.
7622         * lib/string.in.h (strchr, strpbrk, strrchr): Use _GL_WARN_ON_USE_CXX
7623         instead of _GL_WARN_ON_USE.
7625 2020-05-10  Akim Demaille  <akim@lrde.epita.fr>
7627         announce-gen: add support for dist-lzip
7628         * build-aux/announce-gen (@archive_suffixes): Add tar.lz.
7630 2020-05-09  Paul Eggert  <eggert@cs.ucla.edu>
7632         manywarnings: port to GCC 10.1
7633         * build-aux/gcc-warning.spec:
7634         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)):
7635         Add GCC 10.1.0 warnings.
7637         careadlinkat: pacify -Wreturn-local-addr
7638         * lib/careadlinkat.c (careadlinkat) [GCC_LINT]:
7639         Pacify gcc 10’s -Wreturn-local-addr option.
7640         Simplify some of the later code.
7642 2020-05-09  Paul Eggert  <eggert@cs.ucla.edu>
7644         attribute: remove ATTRIBUTE_DEPRECATED
7645         * lib/attribute.h: Improve recently-added comments, mostly
7646         by shortening them (use active voice, etc.).
7647         (ATTRIBUTE_DEPRECATED): Remove, as it duplicates DEPRECATED.
7648         Problem reported by Bruno Haible in:
7649         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00089.html
7651 2020-05-09  Bruno Haible  <bruno@clisp.org>
7653         attribute: Add comments.
7654         * lib/attribute.h: Document each macro.
7656 2020-05-09  Akim Demaille  <akim@lrde.epita.fr>
7658         bitset: use the attribute module
7659         * modules/bitset: Depend on 'attribute'.
7660         * lib/bitset/base.h (ATTRIBUTE_UNUSED): Remove.
7661         * lib/bitset.c, lib/bitset/array.c, lib/bitset/list.c,
7662         * lib/bitset/stats.c, lib/bitset/table.c, lib/bitset/vector.c:
7663         Use MAYBE_UNUSED instead of ATTRIBUTE_UNUSED.
7665 2020-05-09  Bruno Haible  <bruno@clisp.org>
7667         c-stack: Fix warning when DEBUG is enabled.
7668         Patch suggested by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
7669         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00081.html>.
7670         * lib/c-stack.c: Include <stdio.h>.
7672 2020-05-09  Bruno Haible  <bruno@clisp.org>
7674         Remove redundant definitions of _GL_ATTRIBUTE_FORMAT.
7675         * lib/argp.h (_GL_ATTRIBUTE_FORMAT): Remove macro.
7676         * lib/argp-fmtstream.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7677         * lib/c-snprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7678         * lib/c-vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7679         * lib/c-vasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7680         * lib/c-vsnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7681         * lib/c-xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7682         * lib/error.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7683         * lib/parse-datetime.y (_GL_ATTRIBUTE_FORMAT): Likewise.
7684         * lib/vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7685         * lib/xprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7686         * lib/xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7688 2020-05-09  Bruno Haible  <bruno@clisp.org>
7690         Remove redundant definitions of _GL_ATTRIBUTE_ALLOC_SIZE.
7691         Reported by Akim Demaille in
7692         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00077.html>.
7693         * lib/eealloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Remove macro.
7694         * lib/pagealign_alloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.
7695         * lib/xalloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.
7697 2020-05-09  Bruno Haible  <bruno@clisp.org>
7699         stdio, monetary: Don't redefine _GL_ATTRIBUTE_FORMAT.
7700         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT): Don't override the definition
7701         that usually comes from m4/gnulib-common.m4.
7702         * lib/monetary.in.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7704 2020-05-09  Bruno Haible  <bruno@clisp.org>
7706         dirent, stdlib, wchar, string: Don't redefine _GL_ATTRIBUTE_PURE.
7707         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Don't override the definition
7708         that usually comes from m4/gnulib-common.m4.
7709         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Likewise.
7710         * lib/string.in.h (_GL_ATTRIBUTE_PURE): Likewise.
7711         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Likewise.
7713 2020-05-09  Bruno Haible  <bruno@clisp.org>
7715         uchar: Work around incorrect char16_t, char32_t types on Haiku 2020.
7716         * lib/uchar.in.h (char16_t): Define as macro if
7717         GNULIB_OVERRIDES_CHAR16_T.
7718         (char32_t): Define as macro if GNULIB_OVERRIDES_CHAR32_T.
7719         * m4/uchar.m4 (gl_TYPE_CHAR16_T, gl_TYPE_CHAR32_T): New macros.
7720         (gl_UCHAR_H): Invoke them.
7721         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_OVERRIDES_CHAR16_T,
7722         GNULIB_OVERRIDES_CHAR32_T.
7723         * m4/mbrtoc32.m4 (gl_FUNC_MBRTOC32, gl_MBRTOC32_SANITYCHECK): Require
7724         gl_TYPE_CHAR32_T and test GNULIB_OVERRIDES_CHAR32_T.
7725         * modules/uchar (Makefile.am): Substitute GNULIB_OVERRIDES_CHAR16_T,
7726         GNULIB_OVERRIDES_CHAR32_T.
7728 2020-05-09  Bruno Haible  <bruno@clisp.org>
7730         Macro tweaks.
7731         * m4/c32rtomb.m4 (gl_FUNC_C32RTOMB): Correct config.h comment.
7732         * m4/wint_t.m4 (gt_TYPE_WINT_T): Correct indentation.
7734 2020-05-08  Bruno Haible  <bruno@clisp.org>
7736         c32rtomb: Avoid compilation failure on Haiku.
7737         * m4/c32rtomb.m4 (gl_FUNC_C32RTOMB): Test for c32rtomb without excluding
7738         inline definitions.
7739         * doc/posix-functions/c32rtomb.texi: Mention the Haiku problem.
7741 2020-05-08  Bruno Haible  <bruno@clisp.org>
7743         mbrtoc32: Avoid compilation failure on Haiku.
7744         * m4/mbrtoc32.m4 (gl_CHECK_FUNC_MBRTOC32): New macro.
7745         (gl_FUNC_MBRTOC32, gl_MBRTOC32_SANITYCHECK): Use it instead of
7746         AC_CHECK_FUNCS_ONCE.
7747         * doc/posix-functions/mbrtoc32.texi: Mention the Haiku problem.
7749 2020-05-08  Bruno Haible  <bruno@clisp.org>
7751         limits-h: Define LONG_BIT correctly on Haiku/x86_64.
7752         * lib/limits.in.h: Define and test _GL_ALREADY_INCLUDING_LIMITS_H.
7754 2020-05-08  Bruno Haible  <bruno@clisp.org>
7756         list: Update documentation.
7757         Reported by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
7758         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00062.html>.
7759         * doc/containers.texi (Container data types): Document the new list
7760         operations and their complexity.
7762 2020-05-08  Bruno Haible  <bruno@clisp.org>
7764         ignore-value tests: Use module 'attribute'.
7765         * m4/gnulib-common.m4 (gl_COMMON_BODY): Fix a typo.
7766         * tests/test-ignore-value.c: Include attribute.h.
7767         (_GL_ATTRIBUTE_RETURN_CHECK): Remove macro. Use NODISCARD instead.
7768         * modules/ignore-value-tests (Depends-on): Add attribute.
7770 2020-05-08  Bruno Haible  <bruno@clisp.org>
7772         uniname/uniname: Use module 'attribute'.
7773         * lib/uniname/gen-uninames.lisp: Emit a reference to ATTRIBUTE_PACKED.
7774         * lib/uniname/uninames.h: Regenerated.
7775         * lib/uniname/uniname.c: Include attribute.h.
7776         * modules/uniname/uniname (Depends-on): Add attribute.
7778 2020-05-08  Bruno Haible  <bruno@clisp.org>
7780         c32rtomb: Use module 'attribute'.
7781         * lib/c32rtomb.c: Include attribute.h.
7782         (FALLTHROUGH): Remove macro.
7783         * modules/c32rtomb (Depends-on): Add attribute.
7785 2020-05-08  Bruno Haible  <bruno@clisp.org>
7787         xsize: Use module 'attribute'.
7788         * lib/xsize.h: Include attribute.h. Use ATTRIBUTE_PURE.
7789         * modules/xsize (Depends-on): Add attribute.
7791 2020-05-06  Paul Eggert  <eggert@cs.ucla.edu>
7793         * m4/gnulib-common.m4 (gl_COMMON_BODY): Minor style fixes.
7795         * lib/attribute.h: Minor style fixes.
7797         Fix version-etc glitch on OpenIndiana
7798         Problem reported by Mats Erik Andersson in:
7799         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00067.html
7800         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Remove defn
7801         that now clashes with gnulib-common.h.  All uses changed.
7803 2020-05-03  Paul Eggert  <eggert@cs.ucla.edu>
7805         attribute: new module
7806         This simplifies use of GCC and C2X attributes like ‘deprecated’.
7807         * MODULES.html.sh: Add attribute.
7808         * doc/attribute.texi, lib/attribute.h, modules/attribute: New files.
7809         * doc/gnulib.texi (Particular Modules): Add Attributes.
7810         * lib/backupfile.c, lib/fnmatch.c, lib/freopen-safer.c:
7811         * lib/mbrtoc32.c, lib/mbrtowc.c, lib/nstrftime.c, lib/quotearg.c:
7812         * lib/savewd.c, lib/unistr/u8-uctomb-aux.c, lib/unistr/u8-uctomb.c:
7813         * lib/vasnprintf.c:
7814         Include attribute.h, and let it define FALLTHROUGH.
7815         * lib/bitset/base.h, lib/c-stack.c (__attribute__): Remove macro.
7816         * lib/bitset/base.h (ATTRIBUTE_UNUSED): Define in terms of
7817         _GL_ATTRIBUTE_MAYBE_UNUSED, for forwards compatibility to C2X.
7818         * lib/dfa.c (FALLTHROUGH): Define consistently with gl_COMMON_BODY.
7819         This is a copy since Gawk doesn’t use Gnulib.
7820         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Remove definition that
7821         is incompatible with gl_COMMON_BODY’s.  All uses changed.
7822         * lib/fts.c: Include attribte.h, for FALLTHROUGH.
7823         Keep the existing FALLTHROUGH definition since Glibc might use it,
7824         and it does no harm to Gnulib’s FALLTHROUGH.
7825         * lib/fts_.h, lib/inttostr.h:
7826         (__GNUC_PREREQ): Remove; no longer needed.
7827         (__attribute_warn_unused_result__): Remove.  All uses
7828         replaced by _GL_ATTRIBUTE_NODISCARD.
7829         * lib/gl_list.h, lib/gl_map.h, lib/gl_omap.h, lib/gl_oset.h:
7830         * lib/gl_set.h: Prefer _GL_ATTRIBUTE_NODISCARD to an ifdeffed
7831         __attribute__ ((__warn_unused_result__)), for forward
7832         compatibility to C2X.
7833         * lib/hash.h (_GL_ATTRIBUTE_WUR): Remove.  All uses replaced by
7834         _GL_ATTRIBUTE_NODISCARD.
7835         (_GL_ATTRIBUTE_DEPRECATED): Remove, since gl_COMMON_BODY defines it.
7836         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Remove.  All uses
7837         replaced by gl_COMMON_BODY’s implementation, which has a
7838         slightly different signature.
7839         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK):
7840         Remove.  All uses replaced by _GL_ATTRIBUTE_NODISCARD.
7841         * lib/unused-parameter.h (_GL_UNUSED_PARAMETER):
7842         Define in terms of _GL_ATTRIBUTE_MAYBE_UNUSED.
7843         No doubt all uses should be replaced, at some point.
7844         * m4/gnulib-common.m4 (_GL_GNUC_PREREQ): New macro.
7845         (_Noreturn): Use it.
7846         (_GL_HAS_ATTRIBUTE, _GL_ATTRIBUTE_ALLOC_SIZE)
7847         (_GL_ATTRIBUTE_ALWAYS_INLINE, _GL_ATTRIBUTE_ARTIFICIAL)
7848         (_GL_ATTRIBUTE_COLD)
7849         (_GL_ATTRIBUTE_DEPRECATED, _GL_ATTRIBUTE_ERROR)
7850         (_GL_ATTRIBUTE_WARNING, _GL_ATTRIBUTE_EXTERNALLY_VISIBLE)
7851         (_GL_ATTRIBUTE_FALLTHROUGH, _GL_ATTRIBUTE_FORMAT)
7852         (_GL_ATTRIBUTE_LEAF, _GL_ATTRIBUTE_MAY_ALIAS)
7853         (_GL_ATTRIBUTE_MAYBE_UNUSED)
7854         (_GL_ATTRIBUTE_NODISCARD, _GL_ATTRIBUTE_NOINLINE)
7855         (_GL_ATTRIBUTE_NONNULL, _GL_ATTRIBUTE_NONSTRING)
7856         (_GL_ATTRIBUTE_NOTHROW, _GL_ATTRIBUTE_PACKED, _GL_ATTRIBUTE_PURE)
7857         (_GL_ATTRIBUTE_RETURNS_NONNULL)
7858         (_GL_ATTRIBUTE_SENTINEL): New macros.
7859         * modules/backup-rename, modules/backupfile, modules/c-vasnprintf:
7860         * modules/fnmatch, modules/freopen-safer, modules/fts:
7861         * modules/mbrtoc32, modules/mbrtowc, modules/nstrftime:
7862         * modules/quotearg, modules/savewd:
7863         * modules/unistdio/u16-u16-vasnprintf:
7864         * modules/unistdio/u16-vasnprintf:
7865         * modules/unistdio/u32-u32-vasnprintf:
7866         * modules/unistdio/u32-vasnprintf:
7867         * modules/unistdio/u8-u8-vasnprintf:
7868         * modules/unistdio/u8-vasnprintf:
7869         * modules/unistdio/ulc-vasnprintf:
7870         * modules/unistr/u8-uctomb, modules/vasnprintf:
7871         (Depends-on:): Add attribute module.
7873 2020-05-03  Bruno Haible  <bruno@clisp.org>
7875         bison: Fix today's commit.
7876         * m4/bison.m4 (gl_PROG_BISON): Set ac_verc_fail to 'yes', not 'true'.
7878 2020-05-03  Bruno Haible  <bruno@clisp.org>
7880         list-c++: Add get_first, get_last, set_first, set_last operations.
7881         * lib/gl_list.hh (class gl_List): Add methods get_first, get_last,
7882         set_first, set_last.
7883         * lib/gl_list.h: Tweak comments.
7885 2020-05-03  Akim Demaille  <akim@lrde.epita.fr>
7887         bison: rely on bison's %require to check a version requirement
7888         See https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00021.html.
7889         * m4/bison.m4 (gl_PROG_BISON): Let bison itself decide if it it recent
7890         enough of not.
7891         So far it is the only know Yacc tool that supports '%require'.
7892         Other yaccs will actually even choke on seeing the -o option after the
7893         input file name.
7894         * m4/parse-datetime.m4: Simplify gl_PROG_BISON invocation.
7896 2020-05-02  Bruno Haible  <bruno@clisp.org>
7898         list: Add get_first, get_last, set_first, set_last operations.
7899         * lib/gl_list.h (gl_list_get_first, gl_list_get_last,
7900         gl_list_nx_set_first, gl_list_nx_set_last): New functions.
7901         * lib/gl_xlist.h (gl_list_set_first, gl_list_set_last): New functions.
7903 2020-05-02  Bruno Haible  <bruno@clisp.org>
7905         list: Remove redundant code for remove_first and remove_last operations.
7906         * lib/gl_list.h (struct gl_list_implementation): Remove fields
7907         remove_first, remove_last.
7908         (gl_list_remove_first, gl_list_remove_last): Implement in a generic way.
7909         * lib/gl_array_list.c: Revert last change.
7910         * lib/gl_carray_list.c: Likewise.
7911         * lib/gl_anylinked_list2.h: Likewise.
7912         * lib/gl_linked_list.c: Likewise.
7913         * lib/gl_linkedhash_list.c: Likewise.
7914         * lib/gl_anytree_list2.h: Likewise.
7915         * lib/gl_avltree_list.c: Likewise.
7916         * lib/gl_avltreehash_list.c: Likewise.
7917         * lib/gl_rbtree_list.c: Likewise.
7918         * lib/gl_rbtreehash_list.c: Likewise.
7919         * lib/gl_sublist.c: Likewise.
7921 2020-05-02  Bruno Haible  <bruno@clisp.org>
7923         bison-i18n: Add support for cross-compilation.
7924         Reported by Hongxu Jia <hongxu.jia@windriver.com> in
7925         <https://lists.gnu.org/archive/html/bison-patches/2016-02/msg00000.html>
7926         via Akim Demaille <akim@lrde.epita.fr>.
7927         * m4/bison-i18n.m4 (BISON_I18N): Accept a configure option
7928         --with-bison-prefix=PREFIX and use it to determine BISON_LOCALEDIR.
7929         Don't use bison's --print-localedir option when cross-compiling.
7930         Also, fix an error message and a comment.
7932 2020-05-01  Bruno Haible  <bruno@clisp.org>
7934         list: Add remove_first and remove_last operations.
7935         Suggested by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
7936         <https://lists.gnu.org/archive/html/bug-gnulib/2020-04/msg00092.html>.
7937         * lib/gl_list.h (struct gl_list_implementation): Add fields
7938         remove_first, remove_last.
7939         (gl_list_remove_first, gl_list_remove_last): New functions.
7940         * lib/gl_array_list.c (gl_array_remove_first, gl_array_remove_last): New
7941         functions, based on gl_array_remove_at.
7942         (gl_array_list_implementation): Implement the new operations.
7943         * lib/gl_carray_list.c (gl_carray_remove_first, gl_carray_remove_last):
7944         New functions, based on gl_carray_remove_at.
7945         (gl_carray_list_implementation): Implement the new operations.
7946         * lib/gl_anylinked_list2.h (gl_linked_remove_first,
7947         gl_linked_remove_last): New functions, based on gl_linked_remove_at.
7948         * lib/gl_linked_list.c (gl_linked_list_implementation): Implement the
7949         new operations.
7950         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation):
7951         Likewise.
7952         * lib/gl_anytree_list2.h (gl_tree_remove_first, gl_tree_remove_last):
7953         New functions, based on gl_tree_remove_at.
7954         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Implement the
7955         new operations.
7956         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
7957         Likewise.
7958         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Likewise.
7959         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation):
7960         Likewise.
7961         * lib/gl_sublist.c (gl_sublist_remove_first, gl_sublist_remove_last):
7962         New functions, based on gl_sublist_remove_at.
7963         (gl_sublist_list_implementation): Implement the new operations.
7964         * lib/gl_list.hh (class gl_List): Add methods remove_first,
7965         remove_last.
7966         * tests/test-array_list.c (main): Test also gl_list_remove_first and
7967         gl_list_remove_last.
7968         * tests/test-avltree_list.c (main): Likewise.
7969         * tests/test-avltreehash_list.c (main): Likewise.
7970         * tests/test-carray_list.c (main): Likewise.
7971         * tests/test-linked_list.c (main): Likewise.
7972         * tests/test-linkedhash_list.c (main): Likewise.
7973         * tests/test-rbtree_list.c (main): Likewise.
7974         * tests/test-rbtreehash_list.c (main): Likewise.
7976 2020-05-01  Bruno Haible  <bruno@clisp.org>
7978         parse-datetime: Fix a build failure with an older bison version.
7979         * modules/parse-datetime (Makefile.am): Don't do the post-processing of
7980         parse-datetime.tab.c if a suitable version of bison was not found.
7982 2020-05-01  Bruno Haible  <bruno@clisp.org>
7984         bison: New module.
7985         * m4/bison.m4 (gl_PROG_BISON): New macro, extracted from
7986         m4/parse-datetime.m4.
7987         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Invoke gl_PROG_BISON.
7988         * modules/bison: New file.
7989         * modules/parse-datetime (Files): Remove m4/bison.m4.
7990         (Depends-on): Add bison.
7992 2020-05-01  Jose E. Marchesi  <jemarch@gnu.org>
7994         Update users.txt.
7995         * users.txt: Add poke.
7997 2020-04-28  Bruno Haible  <bruno@clisp.org>
7999         posix_spawn_file_actions_addfchdir tests: Enhance test.
8000         * tests/test-posix_spawn5.c: Include findprog.h.
8001         (test): New function, extracted from main.
8002         (main): Invoke it. Also, invoke it with a program name such as
8003         "bin/pwd".
8004         * modules/posix_spawn_file_actions_addfchdir-tests (Depends-on): Add
8005         findprog.
8007 2020-04-28  Bruno Haible  <bruno@clisp.org>
8009         posix_spawn_file_actions_addchdir tests: Enhance test.
8010         * tests/test-posix_spawn4.c: Include findprog.h.
8011         (test): New function, extracted from main.
8012         (main): Invoke it. Also, invoke it with a program name such as
8013         "bin/pwd".
8014         * modules/posix_spawn_file_actions_addchdir-tests (Depends-on): Add
8015         findprog.
8017 2020-04-28  Bruno Haible  <bruno@clisp.org>
8019         posix_spawn_file_actions_destroy: Fix a crash (bug from 2019-06-10).
8020         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Don't
8021         access elements of the wrong union member.
8023 2020-04-27  Bruno Haible  <bruno@clisp.org>
8025         getdate: Remove deprecated module.
8026         * modules/getdate: Remove file.
8027         * doc/getdate.texi: Remove file.
8028         * lib/getdate.h: Remove file.
8029         * NEWS: Mention the removal.
8031 2020-04-27  Bruno Haible  <bruno@clisp.org>
8033         realloc: Remove deprecated module.
8034         * modules/realloc: Remove file.
8035         * NEWS: Mention the removal.
8037 2020-04-27  Bruno Haible  <bruno@clisp.org>
8039         calloc: Remove deprecated module.
8040         * modules/calloc: Remove file.
8041         * NEWS: Mention the removal.
8043 2020-04-27  Bruno Haible  <bruno@clisp.org>
8045         malloc: Remove deprecated module.
8046         * modules/malloc: Remove file.
8047         * NEWS: Mention the removal.
8049 2020-04-27  Bruno Haible  <bruno@clisp.org>
8051         fnmatch-posix: Remove deprecated module.
8052         * modules/fnmatch-posix: Remove file.
8053         * MODULES.html.sh (Enhancements for POSIX:2008 functions): Update.
8054         * NEWS: Mention the removal.
8056 2020-04-27  Bruno Haible  <bruno@clisp.org>
8058         pipe: Remove deprecated module.
8059         * modules/pipe: Remove file.
8060         * lib/pipe.h: Remove file.
8061         * NEWS: Mention the removal.
8063 2020-04-27  Bruno Haible  <bruno@clisp.org>
8065         getopt: Remove deprecated module.
8066         * modules/getopt: Remove file.
8067         * NEWS: Mention the removal.
8069 2020-04-27  Bruno Haible  <bruno@clisp.org>
8071         remove-dest-slash: Remove deprecated module.
8072         * modules/rename-dest-slash: Remove file.
8073         * MODULES.html.sh (Compatibility checks for POSIX:2008 functions):
8074         Update.
8075         * NEWS: Mention the removal.
8077 2020-04-27  Bruno Haible  <bruno@clisp.org>
8079         unictype/bidicategory-*: Remove deprecated modules.
8080         * modules/unictype/bidicategory-all: Remove file.
8081         * modules/unictype/bidicategory-byname: Remove file.
8082         * modules/unictype/bidicategory-name: Remove file.
8083         * modules/unictype/bidicategory-of: Remove file.
8084         * modules/unictype/bidicategory-test: Remove file.
8085         * MODULES.html.sh (Unicode string functions): Update.
8086         * NEWS: Mention the removals.
8088 2020-04-25  Paul Eggert  <eggert@cs.ucla.edu>
8090         Tune fts for FTS_LOGICAL+FTS_NOSTAT
8091         From a suggestion by Askar Safin in:
8092         https://lists.gnu.org/r/bug-gnulib/2020-04/msg00074.html
8093         * lib/fts.c (fts_build): If file types are known, optimize
8094         FTS_LOGICAL+FTS_NOSTAT for non-symlinks and non-directories the
8095         same way that we already optimize FTS_PHYSICAL+FTS_NOSTAT for
8096         non-directories.
8098 2020-04-19  Bruno Haible  <bruno@clisp.org>
8100         vasnprintf: Add support for printing wide characters using escapes.
8101         * lib/vasnprintf.c (ENABLE_WCHAR_FALLBACK): Document optional macro.
8102         (wctomb_fallback): New function.
8103         (local_wctomb): New function.
8104         (local_wcrtomb): New function or macro.
8105         (MAX_ROOM_NEEDED): Adjust estimate for %lc.
8106         (VASNPRINTF): Simplify %ls code by use of local_wcrtomb. Add code for
8107         %lc.
8109 2020-04-15  Paul Eggert  <eggert@cs.ucla.edu>
8111         fts: remove NOSTAT_LEAF_OPTIMIZATION
8112         It caused ‘find’ and ‘du’ to dump core, and it was useful
8113         only for obsolescent Linux filesystems anyway.  Problem reported in:
8114         https://lists.gnu.org/r/bug-gnulib/2020-04/msg00068.html
8115         Quite possibly there is still a serious underlying fts bug with
8116         tight-loop-check and mutating file systems, but if so this patch
8117         should cause the bug to be triggered less often.
8118         * lib/fts.c (enum leaf_optimization): Remove
8119         NOSTAT_LEAF_OPTIMIZATION, as it’s problematic.
8120         (S_MAGIC_REISERFS, S_MAGIC_XFS): Remove; no longer needed.
8121         (leaf_optimization): Remove special cases for ReiserFS and XFS.
8122         (fts_read): Remove NOSTAT_LEAF_OPTIMIZATION code.
8123         * lib/fts_.h (struct _ftsent.fts_n_dirs_remaining):
8124         Remove.  All uses removed.
8126 2020-04-13  Bastien Roucariès  <rouca@debian.org>
8128         explicit_bzero: Improve code style.
8129         * lib/explicit_bzero.c (explicit_bzero): Use '\0' instead of 0.
8131 2020-04-13  Bastien Roucariès  <rouca@debian.org>
8133         explicit_bzero: On native Windows, use SecureZeroMemory().
8134         * lib/explicit_bzero.c: Include <windows.h>.
8135         (explicit_bzero): On native Windows, use SecureZeroMemory.
8137 2020-04-13  Bastien Roucariès  <rouca@debian.org>
8139         explicit_bzero: Use memset_s() when available.
8140         * lib/explicit_bzero.c (__STDC_WANT_LIB_EXT1__): Define.
8141         (explicit_bzero): Use memset_s when available.
8142         * m4/explicit_bzero.m4 (gl_PREREQ_EXPLICIT_BZERO): Test for memset_s.
8144 2020-04-13  Bastien Roucariès  <rouca@debian.org>
8146         explicit_bzero tests: Fix test failure on OpenBSD 6.5.
8147         * tests/test-explicit_bzero.c (test_heap): Handle implementations of
8148         free() that overwrite the memory with canaries.
8150 2020-04-13  Akim Demaille  <akim@lrde.epita.fr>
8152         bootstrap: recommend git submodule update --init
8153         Reported by Bruno Haible.
8154         <https://lists.gnu.org/r/bug-gnulib/2020-03/msg00101.html>
8155         * build-aux/bootstrap: recommand "git submodule update --init"
8156         rather than "git submodule init".
8158 2020-04-12  Bruno Haible  <bruno@clisp.org>
8160         explicit_bzero: Add tests.
8161         * tests/test-explicit_bzero.c: New file.
8162         * modules/explicit_bzero-tests: New file.
8164 2020-04-11  Bruno Haible  <bruno@clisp.org>
8166         explicit_bzero: Relicense under LGPLv2+.
8167         Approved by Paul Eggert.
8168         * modules/explicit_bzero (License): Change to LGPLv2+.
8170 2020-04-10  Bruno Haible  <bruno@clisp.org>
8172         findprog, relocatable-prog: Ignore directories during PATH search.
8173         Reported by Frederick Eaton via Dmitry Goncharov in
8174         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00003.html>.
8176         * lib/findprog.c (find_in_path): When the file found in a PATH element
8177         is a directory, continue searching.
8178         * modules/findprog (Depends-on): Add sys_stat, stat.
8179         * modules/findprog-lgpl (Depends-on): Likewise.
8181         * lib/progreloc.c (maybe_executable): When the file found in a PATH
8182         element is a directory, continue searching.
8183         * lib/relocwrapper.c: Update comments.
8184         * modules/relocatable-prog-wrapper (Files): Add m4/largefile.m4.
8185         (configure.ac-early): New section.
8187 2020-04-10  Bruno Haible  <bruno@clisp.org>
8189         MODULES.html.sh: Support for reproducible builds from git-less tarballs.
8190         Reported by Bernhard M. Wiedemann <bwiedemann@suse.de> in
8191         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00061.html>.
8192         * MODULES.html.sh: In a git-less tarball, use the date of the first
8193         ChangeLog entry.
8195 2020-04-04  Bruno Haible  <bruno@clisp.org>
8197         Fix comments: The gettext library is under LGPL 2.1, not LGPL 2.0.
8198         * m4/gettext.m4: Fix comments regarding the gettext library.
8199         * m4/intl-thread-locale.m4: Likewise.
8200         * m4/intlmacosx.m4: Likewise.
8201         * m4/lcmessage.m4: Likewise.
8202         * m4/nls.m4: Likewise.
8203         * m4/po.m4: Likewise.
8204         * m4/progtest.m4: Likewise.
8206 2020-04-04  Jim Meyering  <meyering@fb.com>
8208         maint: remove a stray inter-word space in a 6x-repeated comment
8209         Induce the changes by running this:
8210           re='by  perl'; git grep -l "$re"|xargs perl -pi -e "s/$re/by perl/"
8211         * build-aux/announce-gen: Change "by  perl" to "by perl".
8212         * build-aux/gitlog-to-changelog: Likewise.
8213         * build-aux/prefix-gnulib-mk: Likewise.
8214         * build-aux/update-copyright: Likewise.
8215         * build-aux/useless-if-before-free: Likewise.
8216         * tests/test-update-copyright.sh: Likewise.
8218 2020-03-28  Bruno Haible  <bruno@clisp.org>
8220         Use module 'filename' instead of module 'dosname'.
8222         * lib/at-func.c: Include filename.h instead of dosname.h.
8223         * lib/unlinkat.c: Likewise.
8224         * modules/areadlinkat (Depends-on): Add filename. Remove dosname.
8225         * modules/areadlinkat-with-size (Depends-on): Likewise.
8226         * modules/faccessat (Depends-on): Likewise.
8227         * modules/fchmodat (Depends-on): Likewise.
8228         * modules/fchownat (Depends-on): Likewise.
8229         * modules/fstatat (Depends-on): Likewise.
8230         * modules/mkdirat (Depends-on): Likewise.
8231         * modules/mkfifoat (Depends-on): Likewise.
8232         * modules/readlinkat (Depends-on): Likewise.
8233         * modules/selinux-at (Depends-on): Likewise.
8234         * modules/symlinkat (Depends-on): Likewise.
8235         * modules/unlinkat (Depends-on): Likewise.
8236         * modules/utimensat (Depends-on): Likewise.
8238         * lib/at-func2.c: Include filename.h instead of dosname.h.
8239         * modules/linkat (Depends-on): Add filename. Remove dosname.
8240         * modules/renameatu (Depends-on): Likewise.
8242         * lib/canonicalize.c: Include filename.h instead of dosname.h.
8243         * lib/canonicalize-lgpl.c: Likewise.
8244         * modules/canonicalize (Depends-on): Add filename.
8245         * modules/canonicalize-lgpl (Depends-on): Likewise.
8247         * lib/dirname.h: Include filename.h instead of dosname.h.
8248         * modules/dirname-lgpl (Depends-on): Add filename. Remove dosname.
8250         * lib/fchdir.c: Include filename.h instead of dosname.h.
8251         * modules/fchdir (Depends-on): Add filename. Remove dosname.
8253         * lib/openat.c: Include filename.h instead of dosname.h.
8254         * modules/openat (Depends-on): Add filename. Remove dosname.
8256         * lib/rmdir.c: Include filename.h instead of dosname.h.
8257         * modules/rmdir (Depends-on): Add filename. Remove dosname.
8259         * lib/savewd.c: Include filename.h instead of dosname.h.
8260         * modules/savewd (Depends-on): Add filename. Remove dosname.
8262         * lib/unlink.c: Include filename.h instead of dosname.h.
8263         * modules/unlink (Depends-on): Add filename. Remove dosname.
8265         * modules/relocatable-prog-wrapper (Depends-on): Add filename.
8266         * lib/relocwrapper.c: Update comments.
8268         * modules/lstat (Depends-on): Remove dosname.
8270 2020-03-28  Bruno Haible  <bruno@clisp.org>
8272         dosname: Redirect to 'filename'.
8273         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
8274         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00042.html>.
8275         * lib/dosname.h: Remove all definitions. Just include filename.h.
8276         * modules/dosname (Status, Notice): Mark as deprecated.
8277         (Depends-on): Add 'filename'.
8279 2020-03-28  Bruno Haible  <bruno@clisp.org>
8281         dosname: Change IS_RELATIVE_FILE_NAME.
8282         * lib/dosname.h (IS_RELATIVE_FILE_NAME): On native Windows, OS/2, DOS,
8283         change the definition so that IS_RELATIVE_FILE_NAME("c:") is false.
8284         * NEWS: Mention the change.
8286 2020-03-28  Bruno Haible  <bruno@clisp.org>
8288         filename: Copy some definitions from module 'dosname'.
8289         * lib/filename.h: Include <string.h>, for IS_FILE_NAME_WITH_DIR.
8290         (HAS_DEVICE): Document macro.
8291         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New macro.
8292         (IS_ABSOLUTE_FILE_NAME): Consider
8293         FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE.
8294         (IS_RELATIVE_FILE_NAME, IS_FILE_NAME_WITH_DIR): New macros.
8295         (IS_ABSOLUTE_PATH, IS_PATH_WITH_DIR): Define as deprecated aliases.
8296         * lib/relocatable.c (IS_FILE_NAME_WITH_DIR): Renamed from
8297         IS_PATH_WITH_DIR.
8298         (DllMain): Update.
8299         * lib/progreloc.c (IS_FILE_NAME_WITH_DIR): Renamed from
8300         IS_PATH_WITH_DIR.
8301         (find_executable): Update.
8302         * NEWS: Document the deprecations.
8304 2020-03-25  Paul Eggert  <eggert@cs.ucla.edu>
8306         getopt-posix: port __GETOPT_PREFIX to macOS
8307         * lib/getopt-pfx-core.h (_GETOPT) [__APPLE__ && __GETOPT_PREFIX]:
8308         Define to work around a problem with asm on macOS (Bug#40205).
8310 2020-03-22  Bruno Haible  <bruno@clisp.org>
8312         MODULES.html.sh: Add support for reproducible builds.
8313         Reported by Bernhard M. Wiedemann <bwiedemann@suse.de> in
8314         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00024.html>.
8315         * MODULES.html.sh: Print the date of the last gnulib commit, not the
8316         current date.
8318 2020-03-22  Bruno Haible  <bruno@clisp.org>
8320         Several modules: Depend on stat.
8321         * modules/acl-permissions (Depends-on): Add stat.
8322         * modules/canonicalize (Depends-on): Likewise.
8323         * modules/file-has-acl (Depends-on): Likewise.
8324         * modules/fstat (Depends-on): Likewise.
8325         * modules/fstatat (Depends-on): Likewise.
8326         * modules/glob (Depends-on): Likewise.
8327         * modules/javacomp (Depends-on): Likewise.
8328         * modules/linkat (Depends-on): Likewise.
8329         * modules/mkdir (Depends-on): Likewise.
8330         * modules/pt_chown (Depends-on): Likewise.
8331         * modules/ptsname_r (Depends-on): Likewise.
8332         * modules/readlinkat (Depends-on): Likewise.
8333         * modules/rename (Depends-on): Likewise.
8334         * modules/renameatu (Depends-on): Likewise.
8335         * modules/tmpdir (Depends-on): Likewise.
8336         * modules/utimens (Depends-on): Likewise.
8337         * modules/relocatable-prog-wrapper (Depends-on): Add largefile.
8338         * modules/same (Depends-on): Remove stat.
8340 2020-03-22  Bruno Haible  <bruno@clisp.org>
8342         acl-permissions: Improve autoconf macro.
8343         * m4/acl.m4 (gl_FUNC_ACL): Test the value of gl_need_lib_has_acl
8344         more reliably.
8346 2020-03-22  Bruno Haible  <bruno@clisp.org>
8348         file-has-acl: Fix module description.
8349         * modules/file-has-acl (Files): Add lib/acl-internal.h, m4/acl.m4.
8350         (Depends-on): Depend on acl-permissions unconditionally.
8352 2020-03-21  Bruno Haible  <bruno@clisp.org>
8354         unlink: Ensure errno also on native Windows.
8355         * modules/unlink (Depends-on): Add malloc-posix.
8357 2020-03-21  Paul Eggert  <eggert@cs.ucla.edu>
8359         unlink: fix malloc errno typo
8360         Problem reported by Tim Rühsen in:
8361         https://lists.gnu.org/r/bug-gnulib/2020-03/msg00044.html
8362         * lib/unlink.c (rpl_unlink): Don’t mask malloc errno.
8364 2020-03-16  Bruno Haible  <bruno@clisp.org>
8366         *printf-posix: Fix m4 error (regression from 2020-03-08).
8367         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): Enable interpretation of
8368         brackets in AC_COMPILE_IFELSE invocation.
8370 2020-03-08  Bruno Haible  <bruno@clisp.org>
8372         crypto/af_alg, renameatu, same, term-style-control: Depend on fstat.
8373         * modules/crypto/af_alg (Depends-on): Add fstat.
8374         * modules/renameatu (Depends-on): Likewise.
8375         * modules/same (Depends-on): Likewise.
8376         * modules/term-style-control (Depends-on): Likewise.
8378 2020-03-08  Bruno Haible  <bruno@clisp.org>
8380         *printf-posix: Document why it's overridden on some glibc systems.
8381         Reported by Adrian Bunk <bunk@stusta.de> in
8382         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00011.html>.
8383         * doc/posix-functions/*printf.texi: Document the problem with the %n
8384         directive on some glibc systems.
8385         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Adjust
8386         the cross-compilation guesses accordingly.
8388 2020-03-07  Paul Eggert  <eggert@cs.ucla.edu>
8390         open, openat: port to (O_RDWR | O_RDONLY) != 0
8391         Potential portability problem reported by Dan Gohman in:
8392         https://lists.gnu.org/r/bug-gnulib/2020-03/msg00000.html
8393         * lib/open.c (open):
8394         * lib/openat.c (rpl_openat):
8395         Don’t assume O_RDONLY is disjoint from O_RDWR.
8397 2020-03-07  Bruno Haible  <bruno@clisp.org>
8399         openat: Fix theoretically possible issue on GNU/Hurd.
8400         Reported by Dan Gohman <sunfish@mozilla.com> in
8401         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00000.html>.
8402         * lib/openat.c (rpl_openat): When testing whether flags contains O_RDWR,
8403         ignore the bits that are also set in O_RDONLY.
8405 2020-02-24  Bruno Haible  <bruno@clisp.org>
8407         getloadavg: Don't use /usr/local when cross-compiling on AIX.
8408         Reported by Jens Rehsack <sno@netbsd.org> in
8409         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00136.html>.
8410         * m4/getloadavg.m4 (gl_GETLOADAVG): Don't look in /usr/local/lib when
8411         cross-compiling.
8413 2020-02-24  Bruno Haible  <bruno@clisp.org>
8415         fcntl: Add witness of gnulib override.
8416         Reported by Jens Rehsack <sno@netbsd.org> in
8417         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00137.html>.
8418         * lib/fcntl.in.h (GNULIB_defined_rpl_fcntl, GNULIB_defined_fcntl): New
8419         macros.
8421 2020-02-23  Assaf Gordon  <assafgordon@gmail.com>
8423         Update users.txt.
8424         * users.txt: Add datamash, time.
8426 2020-02-23  Bruno Haible  <bruno@clisp.org>
8428         uni*/base: Use 'restrict'.
8429         * lib/unitypes.in.h (_UC_RESTRICT): New macro, based on '_Restrict_'
8430         from lib/regex.h.
8431         * lib/unistr.in.h (u8_cpy, u16_cpy, u32_cpy, u8_strcpy, u16_strcpy,
8432         u32_strcpy, u8_stpcpy, u16_stpcpy, u32_stpcpy, u8_strncpy, u16_strncpy,
8433         u32_strncpy, u8_stpncpy, u16_stpncpy, u32_stpncpy, u8_strcat,
8434         u16_strcat, u32_strcat, u8_strncat, u16_strncat, u32_strncat, u8_strtok,
8435         u16_strtok, u32_strtok): Use '_UC_RESTRICT'.
8436         * lib/uninorm.in.h (u8_normalize, u16_normalize, u32_normalize): Use
8437         '_UC_RESTRICT'.
8438         * lib/uniconv.in.h (u8_conv_to_encoding, u16_conv_to_encoding,
8439         u32_conv_to_encoding): Use '_UC_RESTRICT'.
8440         * lib/unicase.in.h (u8_toupper, u16_toupper, u32_toupper, u8_tolower,
8441         u16_tolower, u32_tolower, u8_totitle, u16_totitle, u32_totitle,
8442         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
8443         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
8444         u32_ct_totitle, u8_casefold, u16_casefold, u32_casefold, u8_ct_casefold,
8445         u16_ct_casefold, u32_ct_casefold, u8_casexfrm, u16_casexfrm,
8446         u32_casexfrm, ulc_casexfrm): Use '_UC_RESTRICT'.
8447         * lib/unilbrk.in.h (u8_possible_linebreaks, u16_possible_linebreaks,
8448         u32_possible_linebreaks, ulc_possible_linebreaks, u8_width_linebreaks,
8449         u16_width_linebreaks, u32_width_linebreaks, ulc_width_linebreaks): Use
8450         '_UC_RESTRICT'.
8451         * lib/uniwbrk.in.h (ulc_wordbreaks): Use '_UC_RESTRICT'.
8452         * lib/unistdio.in.h (ulc_sprintf, ulc_snprintf, ulc_asnprintf,
8453         ulc_vsprintf, ulc_vsnprintf, ulc_vasnprintf, u8_u8_sprintf,
8454         u8_u8_snprintf, u8_u8_asnprintf, u8_u8_vsprintf, u8_u8_vsnprintf,
8455         u8_u8_vasnprintf, u16_u16_sprintf, u16_u16_snprintf, u16_u16_asnprintf,
8456         u16_u16_vsprintf, u16_u16_vsnprintf, u16_u16_vasnprintf,
8457         u32_u32_sprintf, u32_u32_snprintf, u32_u32_asnprintf, u32_u32_vsprintf,
8458         u32_u32_vsnprintf, u32_u32_vasnprintf): Use '_UC_RESTRICT'.
8460 2020-02-23  Bruno Haible  <bruno@clisp.org>
8462         glob, spawn: Use improved '_Restrict_' definition.
8463         * lib/glob.in.h (_Restrict_): Use same definition as in lib/regex.h.
8464         * lib/spawn.in.h (_Restrict_, _Restrict_arr_): Likewise.
8466 2020-02-23  Bruno Haible  <bruno@clisp.org>
8468         crypto/gc: Use 'restrict'.
8469         * lib/gc.h (gc_pbkdf2_hmac, gc_pbkdf2_sha1): Use 'restrict'.
8470         * m4/gc.m4 (gl_GC): Require AC_C_RESTRICT.
8472         crypto/hmac-*: Use 'restrict'.
8473         * lib/hmac.h (hmac_md5, hmac_sha1, hmac_sha256, hmac_sha512): Use
8474         'restrict'.
8475         * modules/crypto/hmac-md5 (configure.ac): Require AC_C_RESTRICT.
8476         * modules/crypto/hmac-sha1 (configure.ac): Likewise.
8477         * modules/crypto/hmac-sha256 (configure.ac): Likewise.
8478         * modules/crypto/hmac-sha512 (configure.ac): Likewise.
8480         crypto/sm3: Use 'restrict'.
8481         * lib/sm3.h (sm3_finish_ctx, sm3_read_ctx, sm3_buffer): Use 'restrict'.
8482         * m4/sm3.m4 (gl_SM3): Require AC_C_RESTRICT.
8484         crypto/*-buffer: Use 'restrict'.
8485         * lib/gl_openssl.h (GL_CRYPTO_FN (_finish_ctx), GL_CRYPTO_FN (_buffer),
8486         GL_CRYPTO_FN (_read_ctx)): Use 'restrict'.
8488         crypto/sha512-buffer: Use 'restrict'.
8489         * lib/sha512.h (sha512_finish_ctx, sha384_finish_ctx, sha512_read_ctx,
8490         sha384_read_ctx, sha512_buffer, sha384_buffer): Use 'restrict'.
8491         * modules/crypto/sha512-buffer (configure.ac): Require AC_C_RESTRICT.
8493         crypto/sha256-buffer: Use 'restrict'.
8494         * lib/sha256.h (sha256_finish_ctx, sha224_finish_ctx, sha256_read_ctx,
8495         sha224_read_ctx, sha256_buffer, sha224_buffer): Use 'restrict'.
8496         * modules/crypto/sha256-buffer (configure.ac): Require AC_C_RESTRICT.
8498         crypto/sha1-buffer: Use 'restrict'.
8499         * lib/sha1.h (sha1_finish_ctx, sha1_read_ctx, sha1_buffer): Use
8500         'restrict'.
8501         * modules/crypto/sha1-buffer (configure.ac): Require AC_C_RESTRICT.
8503         crypto/md5-buffer: Use 'restrict'.
8504         * lib/md5.h (__md5_finish_ctx, __md5_read_ctx, __md5_buffer): Use
8505         'restrict'.
8506         * modules/crypto/md5-buffer (configure.ac): Require AC_C_RESTRICT.
8508         crypto/md4: Use 'restrict'.
8509         * lib/md4.h (md4_finish_ctx, md4_read_ctx, md4_buffer): Use 'restrict'.
8510         * modules/crypto/md4 (configure.ac): Require AC_C_RESTRICT.
8512         crypto/md2: Use 'restrict'.
8513         * lib/md2.h (md2_finish_ctx, md2_read_ctx, md2_buffer): Use 'restrict'.
8514         * modules/crypto/md2 (configure.ac): Require AC_C_RESTRICT.
8516         crypto/rijndael: Use 'restrict'.
8517         * lib/rijndael-api-fst.h (rijndaelBlockEncrypt, rijndaelPadEncrypt,
8518         rijndaelBlockDecrypt, rijndaelPadDecrypt): Use 'restrict'.
8519         * modules/crypto/rijndael (configure.ac): Require AC_C_RESTRICT.
8521         crypto/arctwo: Use 'restrict'.
8522         * lib/arctwo.h (arctwo_encrypt, arctwo_decrypt): Use 'restrict'.
8523         * modules/crypto/arctwo (configure.ac): Require AC_C_RESTRICT.
8525         crypto/arcfour: Use 'restrict'.
8526         * lib/arcfour.h (arcfour_stream): Use 'restrict'.
8527         * modules/crypto/arcfour (configure.ac): Require AC_C_RESTRICT.
8529         careadlinkat: Use 'restrict'.
8530         * lib/careadlinkat.h (careadlinkat): Use 'restrict'.
8531         * modules/careadlinkat (configure.ac): Require AC_C_RESTRICT.
8532         * modules/relocatable-prog-wrapper (configure.ac): Likewise.
8534         regex-quote: Use 'restrict'.
8535         * lib/regex-quote.h (regex_quote_copy): Use 'restrict'.
8536         * modules/regex-quote (configure.ac): Require AC_C_RESTRICT.
8538         system-quote: Use 'restrict'.
8539         * lib/system-quote.h (system_quote_copy): Use 'restrict'.
8540         * modules/system-quote (configure.ac): Require AC_C_RESTRICT.
8542         sh-quote: Use 'restrict'.
8543         * lib/sh-quote.h (shell_quote_copy): Use 'restrict'.
8544         * modules/sh-quote (configure.ac): Require AC_C_RESTRICT.
8546         quotearg: Use 'restrict'.
8547         * lib/quotearg.h (quotearg_buffer): Use 'restrict'.
8548         * m4/quotearg.m4 (gl_QUOTEARG): Require AC_C_RESTRICT.
8550         parse-datetime: Use 'restrict'.
8551         * lib/parse-datetime.h (parse_datetime, parse_datetime2): Use
8552         'restrict'.
8553         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Require AC_C_RESTRICT.
8555         nstrftime: Use 'restrict'.
8556         * lib/strftime.h (nstrftime): Use 'restrict'.
8557         * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Require AC_C_RESTRICT.
8559         mbstok_r: Use 'restrict'.
8560         * lib/string.in.h (mbstok_r): Use 'restrict'.
8562         xmemcoll: Use 'restrict'.
8563         * lib/xmemcoll.h (xmemcoll): Use 'restrict'.
8564         * modules/xmemcoll (configure.ac): Require AC_C_RESTRICT.
8566         memcoll: Use 'restrict'.
8567         * lib/memcoll.h (memcoll): Use 'restrict'.
8568         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_C_RESTRICT.
8570         vasnprintf: Use 'restrict'.
8571         * lib/vasnprintf.h (asnprintf, vasnprintf): Use 'restrict'.
8572         * modules/vasnprintf (configure.ac): Require AC_C_RESTRICT.
8574         c-vasnprintf: Use 'restrict'.
8575         * lib/c-vasnprintf.h (c_vasnprintf): Use 'restrict'.
8576         * modules/c-vasnprintf (configure.ac): Require AC_C_RESTRICT.
8578         c-vsnprintf: Use 'restrict'.
8579         * lib/c-vsnprintf.h (c_vsnprintf): Use 'restrict'.
8580         * modules/c-vsnprintf (configure.ac): Require AC_C_RESTRICT.
8582         c-snprintf: Use 'restrict'.
8583         * lib/c-snprintf.h (c_snprintf): Use 'restrict'.
8584         * modules/c-snprintf (configure.ac): Require AC_C_RESTRICT.
8586         astrxfrm: Use 'restrict'.
8587         * lib/astrxfrm.h (astrxfrm): Use 'restrict'.
8588         * modules/astrxfrm (configure.ac): Require AC_C_RESTRICT.
8590         amemxfrm: Use 'restrict'.
8591         * lib/amemxfrm.h (amemxfrm): Use 'restrict'.
8592         * modules/amemxfrm (configure.ac): Require AC_C_RESTRICT.
8594 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
8596         fchmodat, lchmod: simplify
8597         It appears that we may have overengineered lchmod and fchmodat,
8598         in that the code was prepared for some hypothetical platforms but
8599         was so complicated that it was hard to understand.  I attempted to
8600         improve the situation by simplifying the code when this
8601         simplification should not hurt on real platforms; we can re-add
8602         complexity later to port to platforms I didn’t know about.
8603         * lib/fchmodat.c (fchmodat):
8604         * lib/lchmod.c (lchmod):
8605         Put the ‘defined __linux__ || defined __ANDROID__’ #ifdef only
8606         around the /proc code that needs it.
8607         * lib/fchmodat.c (fchmodat): Coalese calls to orig_fchmodat.
8608         * lib/lchmod.c (__need_system_sys_stat_h): Omit; no longer needed.
8609         Do not include <config.h> twice.
8610         (orig_lchmod) [HAVE_LCHMOD]: Remove, since we need not wrap
8611         lchmod on any known hosts.
8612         (lchmod): Do not defer to fchmodat, so that the lchmod module
8613         need not depend on the fchmodat module (which is a circular
8614         dependency).  Do not use openat, since ‘open’ suffices.
8615         Coalesce calls to lchmod/chmod.
8616         * lib/lchmod.c, lib/sys_stat.in.h (lchmod):
8617         * m4/sys_stat_h.m4 (REPLACE_FSTAT):
8618         * modules/lchmod (Depends-on, configure.ac):
8619         * modules/sys_stat (Depends-on):
8620         Do not worry about replacing lchmod, since that shouldn’t happen.
8621         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Do not check for fchmodat.
8622         Do not worry about whether lchmod works on non-symlinks,
8623         since every known lchmod works on non-symlinks.
8624         * modules/lchmod (Depends-on):
8625         Remove circular dependency on fchmodat.
8627 2020-02-22  Bruno Haible  <bruno@clisp.org>
8629         lchmod: Fix link error on Solaris 10 (regression from 2020-02-16).
8630         * lib/lchmod.c (lchmod): Use the code with lstat and chmod also when
8631         NEED_LCHMOD_NONSYMLINK_FIX is not defined.
8633 2020-02-22  Bruno Haible  <bruno@clisp.org>
8635         Use 'restrict' in all POSIX function declarations.
8636         * lib/iconv.in.h (iconv): Use 'restrict'.
8637         * lib/inttypes.in.h (strtoimax, strtoumax): Likewise.
8638         * lib/monetary.in.h (strfmon_l): Likewise.
8639         * lib/pthread.in.h (pthread_create, pthread_mutex_init,
8640         pthread_mutexattr_gettype, pthread_mutexattr_getrobust,
8641         pthread_mutex_timedlock, pthread_rwlock_init,
8642         pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock,
8643         pthread_cond_init, pthread_cond_wait, pthread_cond_timedwait): Likewise.
8644         * lib/search.in.h (tdelete): Likewise.
8645         * lib/signal.in.h (pthread_sigmask, sigprocmask): Likewise.
8646         * lib/stdio.in.h (dprintf, fgets, fopen, fprintf, fputs, fread, freopen,
8647         fscanf, fwrite, getdelim, getline, printf, scanf, snprintf, sprintf,
8648         vdprintf, vfprintf, vfscanf, vprintf, vscanf, vsnprintf, vsprintf):
8649         Likewise.
8650         * lib/stdlib.in.h (mbtowc, realpath, strtod, strtold, strtoll,
8651         strtoull): Likewise.
8652         * lib/string.in.h (strncat): Likewise.
8653         * lib/sys_socket.in.h (accept, getpeername, getsockname, getsockopt,
8654         recvfrom): Likewise.
8655         * lib/sys_stat.in.h (fstatat, lstat, stat): Likewise.
8656         * lib/time.in.h (strftime): Likewise.
8657         * lib/unistd.in.h (readlink, readlinkat): Likewise.
8658         * lib/wchar.in.h (mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs, wcrtomb,
8659         wcsrtombs, wcsnrtombs, wmemcpy, wcscpy, wcpcpy, wcsncpy, wcpncpy,
8660         wcscat, wcsncat, wcsxfrm, wcsstr, wcstok, wcsftime): Likewise.
8661         * m4/iconv_h.m4 (gl_ICONV_H): Require AC_C_RESTRICT.
8662         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Likewise.
8663         * m4/monetary_h.m4 (gl_MONETARY_H): Likewise.
8664         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
8665         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
8666         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
8667         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
8668         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
8669         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
8670         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
8671         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
8672         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Make consistent with the
8673         other *_h.m4 files.
8674         * m4/time_h.m4 (gl_HEADER_TIME_H): Likewise.
8676 2020-02-22  Bruno Haible  <bruno@clisp.org>
8678         Update NEWS.
8679         * NEWS: Mention the last change.
8681 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
8683         chmodat, chownat: new modules
8684         These are split from fchmodat, fchownat.  GNU Emacs needs the
8685         POSIX-specified fchmodat, but not the gnulib-specified chmodat and
8686         lchmodat.  Split the latter two into a new module chmodat.
8687         Similarly for fchownat.  This the same basic idea for why statat
8688         was split from fstatat on 2013-01-23.
8689         * lib/chmodat.c, lib/openat.h (CHMODAT_INLINE):
8690         Rename from FCHMODAT_INLINE.  All uses changed.
8691         * lib/chownat.c, lib/openat.h (CHOWNAT_INLINE):
8692         Rename from FCHOWNAT_INLINE.  All uses changed.
8693         * lib/openat.h:
8694         (chownat, lchownat): Define if GNULIB_CHOWNAT, not GNULIB_FCHOWNAT.
8695         (chmodat, lchmodat): Define if GNULIB_CHMODAT, not GNULIB_FCHMODAT.
8696         * modules/chmodat, modules/chownat, tests/test-chownat.c: New files.
8697         * modules/fchmodat (Files:): Remove lib/fchmodat.c.
8698         (configure.ac): Remove fchmodat module indicator.
8699         (Makefile.am): Omit chmodat.c.
8700         (Maintainer): Add self.
8701         * modules/fchownat: Similarly, but for chown.
8702         * tests/test-fchownat.c (BASE): Don't define if already defined.
8703         (do_chown, do_lchown) [!TEST_CHOWNAT]: Test fchownat instead.
8705 2020-02-22  Bruno Haible  <bruno@clisp.org>
8707         users.txt: Add groff.
8708         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is>.
8709         * users.txt: Add groff.
8711 2020-02-22  Bruno Haible  <bruno@clisp.org>
8713         gnulib-tool: Ensure copied files are writable.
8714         Reported by Benno Fünfstück <benno.fuenfstueck@gmail.com> in
8715         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00101.html>.
8716         * gnulib-tool (func_ensure_writable): New function.
8717         (func_ln_s, func_hardlink, func_lookup_file, func_import,
8718         func_create_testdir, copy-file): Invoke it after copying a file.
8720 2020-02-22  Bruno Haible  <bruno@clisp.org>
8722         users.txt: Update.
8723         * users.txt: Update URLs to projects that have moved or switched to git.
8724         Use canonical host names. Prefer gitweb over cgit. Prefer the tree view
8725         over the summary view. Add gawk.
8727 2020-02-21  Paul Eggert  <eggert@cs.ucla.edu>
8729         largefile: remove _DARWIN_USE_64_BIT_INODE
8730         It’s not needed in currently-supported macOS versions, and was
8731         problematic anyway in MacOS X 10.5 which was the only version that
8732         could use it.  Problem reported by Peter Eisentraut in:
8733         https://lists.gnu.org/r/bug-autoconf/2020-02/msg00004.html
8734         * m4/largefile.m4 (AC_SYS_LARGEFILE):
8735         Don’t define _DARWIN_USE_64_BIT_INODE.
8736         This syncs with Autoconf master.
8738         Add ‘extern "C"’ to count-one-bits.h etc.
8739         This ports these .h files to C++.
8740         Problem reported by Simon Marchi in:
8741         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00110.html
8742         * lib/count-leading-zeros.h, lib/count-one-bits.h:
8743         * lib/count-trailing-zeros.h: Add ‘extern "C"’.
8745 2020-02-19  Bruno Haible  <bruno@clisp.org>
8747         uninorm/decompose-internal: Avoid "no previous prototype" warning.
8748         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
8749         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00105.html>.
8750         * lib/array-mergesort.h: Accept an optional macro definition
8751         STATIC_FROMTO.
8752         * lib/uninorm/decompose-internal.c (STATIC_FROMTO): New macro.
8754 2020-02-16  Bruno Haible  <bruno@clisp.org>
8756         fchmodat: Make more future-proof.
8757         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Define
8758         NEED_FCHMODAT_NONSYMLINK_FIX.
8759         (gl_PREREQ_FCHMODAT): New macro.
8760         * lib/fchmodat.c (fchmodat): Test NEED_FCHMODAT_NONSYMLINK_FIX. Access
8761         /proc only on Linux. Return EOPNOTSUPP only on Linux and on platforms
8762         without lchmod function.
8763         * modules/fchmodat (configure.ac): Invoke gl_PREREQ_FCHMODAT.
8765 2020-02-16  Bruno Haible  <bruno@clisp.org>
8767         lchmod: Make more future-proof.
8768         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Define NEED_LCHMOD_NONSYMLINK_FIX.
8769         (gl_PREREQ_LCHMOD): New macro.
8770         * lib/lchmod.c (orig_lchmod): New function.
8771         (lchmod): Test NEED_LCHMOD_NONSYMLINK_FIX. Access /proc only on Linux.
8772         Return EOPNOTSUPP only on Linux and on platforms without lchmod
8773         function.
8774         * modules/lchmod (configure.ac): Invoke gl_PREREQ_LCHMOD.
8776         lchmod: Fix buggy override on macOS, HP-UX (regression from 2020-02-08).
8777         * modules/lchmod (Makefile.am): Don't add lchmod.c to lib_SOURCES.
8779 2020-02-16  Paul Eggert  <eggert@cs.ucla.edu>
8781         xnanosleep: prefer pause, and get remaining time
8782         Problem reported by Vladimir Panteleev in:
8783         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00052.html
8784         * lib/xnanosleep.c: Include intprops.h, unistd.h.
8785         (xnanosleep) [HAVE_PAUSE]: Prefer pause when sleeping infinitely.
8786         (xnanosleep): Obtain remaining time when nanosleep is interrupted.
8787         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Check for 'pause'.
8788         * modules/xnanosleep (Depends-on): Add intprops, unistd.
8790 2020-02-16  Bruno Haible  <bruno@clisp.org>
8792         lchmod: Improve cross-compilation guess.
8793         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require AC_CANONICAL_HOST. When
8794         cross-compiling, guess depending on the platform.
8796 2020-02-16  Bruno Haible  <bruno@clisp.org>
8798         fstrcmp: Add API to clean up resources.
8799         Reported by Akim Demaille <akim@lrde.epita.fr> in
8800         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00080.html>.
8801         * lib/fstrcmp.h (fstrcmp_free_resources): New declaration.
8802         * lib/fstrcmp.c (fstrcmp_free_resources): New function.
8804 2020-02-14  Bruno Haible  <bruno@clisp.org>
8806         wctype-h: Fix compilation errors in C++ (regression from 2020-01-25).
8807         Reported by Christian Biesinger in
8808         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00064.html>.
8809         * lib/wctype.in.h (iswdigit, iswxdigit): Don't declare if the
8810         corresponding module is not enabled.
8811         * tests/test-wctype-h-c++.cc (iswdigit, iswxdigit): Don't check the
8812         prototype if the corresponding module is not enabled.
8814 2020-02-13  Paul Eggert  <eggert@cs.ucla.edu>
8816         fchmodat, lchmod: port to buggy Linux filesystems
8817         Problem reported by Florian Weimer in:
8818         https://www.sourceware.org/ml/libc-alpha/2020-02/msg00534.html
8819         * lib/fchmodat.c (fchmodat):
8820         * lib/lchmod.c (lchmod):
8821         Don’t assume that chmod on the O_PATH-opened fd will do
8822         the right thing on a symbolic link.
8823         * lib/fchmodat.c (fchmodat):
8824         Don’t attempt to special-case
8825         any flag value other than AT_SYMLINK_NOFOLLOW.
8827 2020-02-11  Paul Eggert  <eggert@cs.ucla.edu>
8829         lchmod: pacify Coverity CID 1491216
8830         * lib/lchmod.c (lchmod): Redo #if nesting so that Coverity does
8831         not complain about unreachable code at the ‘struct stat st;’
8832         declaration.
8834 2020-02-10  Bruno Haible  <bruno@clisp.org>
8836         copysignf: Fix link error on HP-UX with cc.
8837         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Require AC_CANONICAL_HOST. On
8838         HP-UX, set COPYSIGNF_LIBM to -lm.
8840 2020-02-10  Bruno Haible  <bruno@clisp.org>
8842         pthread-mutex-tests, pthread-rwlock-tests: Fix link errors on HP-UX.
8843         * modules/pthread-mutex-tests (Makefile.am): Link test-pthread-mutex
8844         with $(LIB_SEMAPHORE).
8845         * modules/pthread-rwlock-tests (Makefile.am): Link test-pthread-rwlock
8846         with $(LIB_SEMAPHORE).
8848 2020-02-10  Bruno Haible  <bruno@clisp.org>
8850         ptsname_r-tests: Avoid unused function warning.
8851         * tests/test-ptsname_r.c: Don't include null-ptr.h if we don't need it.
8853 2020-02-08  Bruno Haible  <bruno@clisp.org>
8855         lchmod: Add tests.
8856         * tests/test-lchmod.c: New file.
8857         * modules/lchmod-tests: New file.
8859 2020-02-08  Bruno Haible  <bruno@clisp.org>
8861         lchmod: Ensure declaration on HP-UX.
8862         * lib/sys_stat.in.h (lchown): Declare also on HP-UX.
8863         * doc/glibc-functions/lchmod.texi: Mention the HP-UX problem.
8865 2020-02-08  Bruno Haible  <bruno@clisp.org>
8867         fchmodat: Strengthen tests.
8868         * tests/test-fchmodat.c (BASE): New macro.
8869         (main): Use it, to avoid conflicts with other unit tests. Verify that
8870         fchmodat changed the file permission bits.
8872 2020-02-08  Bruno Haible  <bruno@clisp.org>
8874         fchmodat: Fix endless recursion on Cygwin (regression from 2020-02-07).
8875         * lib/fchmodat.c (orig_fchmodat): Move definition to immediately after
8876         '#undef __need_system_sys_stat_h'.
8878 2020-02-08  Bruno Haible  <bruno@clisp.org>
8880         fchmodat: Improve cross-compilation guesses.
8881         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Require AC_CANONICAL_HOST. When
8882         cross-compiling, guess depending on the platform.
8883         * doc/posix-functions/fchmodat.texi: Clarify.
8885 2020-02-08  Bruno Haible  <bruno@clisp.org>
8887         Fix compilation errors in a testdir created with --with-c++-tests.
8888         * lib/c++defs.h (_GL_CXXALIASWARN1_2): Do not use __typeof__ (func),
8889         since it does not work any more with g++ >= 4.4.
8891 2020-02-08  Bruno Haible  <bruno@clisp.org>
8893         doc: Update for glibc 2.31.
8894         * doc/glibc-functions/pthread_clockjoin_np.texi: New file.
8895         * doc/gnulib.texi: Include it.
8896         * doc/pastposix-functions/h_errno.texi: Update.
8897         * doc/posix-functions/*.texi: Likewise.
8899 2020-02-08  Kenneth D'souza  <kdsouza@redhat.com>
8901         mountlist: consider smb3 file systems as remote
8902         * lib/mountlist.c (ME_REMOTE): Recognize file systems of type
8903         "smb3" as remote.
8905 2020-02-07  Paul Eggert  <eggert@cs.ucla.edu>
8907         fchmodat: AT_SYMLINK_NOFOLLOW fix for non-symlinks
8908         Fix lchmod, and fchmodat with AT_SYMLINK_NOFOLLOW, so that
8909         they act like chmod on non-symlinks.
8910         * NEWS:
8911         * doc/glibc-functions/lchmod.texi (lchmod):
8912         * doc/posix-functions/fchmodat.texi (fchmodat):
8913         Mention this.
8914         * lib/fchmodat.c: Define __need_system_sys_stat_h before including
8915         config.h, and undef it after including sys/stat.h the first time.
8916         Include fcntl.h, stdio.h, unistd.h, intprops.h, and include
8917         sys/stat.h a second time after defining orig_fchmodat.
8918         (orig_fchmodat) [HAVE_FCHMODAT]: New function.
8919         (fchmodat) [HAVE_FCHMODAT]: Work around the AT_SYMLINK_NOFOLLOW bug.
8920         * lib/lchmod.c: New file.
8921         * lib/sys_stat.in.h (fchmodat, lchmod):
8922         Support replacing these functions.
8923         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): If fchmodat exists,
8924         test that AT_SYMLINK_NOFOLLOW works on non-symlinks.
8925         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Check for lstat.
8926         Test that lchmod works on non-symlinks.
8927         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS):
8928         Default REPLACE_FCHMODAT and REPLACE_LCHMOD to 0.
8929         * modules/fchmodat (Depends-on): Add fstatat, intprops, lchmod, unistd.
8930         (Depends-on, configure.ac): Check REPLACE_FCHMODAT too.
8931         * modules/lchmod (Files): Add lib/lchmod.c.
8932         (Depends-on): Add errno, fcntl-h, fchmodat, intprops, lstat, unistd.
8933         (configure.ac): Compile lchmod.c if needed.
8934         (lib_SOURCES): Add lchmod.c.
8935         * modules/sys_stat (sys/stat.h): Substitute REPLACE_FCHMODAT
8936         and REPLACE_LCHMOD.
8937         * tests/test-fchmodat.c: Include fcntl.h, sys/stat.h.
8938         (main): Test fchmodat with AT_SYMLINK_NOFOLLOW on non-symlinks.
8940 2020-02-05  Marc Dionne  <marc.dionne@auristor.com>  (tiny change)
8942         mountlist: Consider AFS filesystems as remote
8943         df --local relies on the ME_REMOTE macro to determine if a given
8944         mount entry should be considered "local".  There is special logic
8945         for nfs and smb/cifs mounts, but /afs as mounted by OpenAFS, the
8946         kernel's kafs module or AuriStorFS is treated as a local mount.
8947         * lib/mountlist.c (ME_REMOTE): Treat mounts of type 'afs'
8948         (OpenAFS, kernel kafs) and 'auristorfs' (AuriStorFS) as remote.
8950 2020-02-04  Paul Eggert  <eggert@cs.ucla.edu>
8952         Port _Noreturn to older Clang
8953         Problem reported by Jeffery Walton in:
8954         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00013.html
8955         * lib/_Noreturn.h (_Noreturn):
8956         * m4/gnulib-common.m4 (gl_COMMON_BODY):
8957         Assume _Noreturn works in Clang 3.5 and later.
8958         It is documented to work in Clang 3.5:
8959         http://releases.llvm.org/3.5.0/tools/clang/docs/AttributeReference.html
8960         and is not documented in Clang 3.4:
8961         https://releases.llvm.org/3.4/tools/clang/docs/LanguageExtensions.html
8962         Apple sets __clang_version__ to a different value, so use
8963         __apple_build_version__ there.  See:
8964         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00017.html
8966 2020-02-04  Pádraig Brady  <P@draigBrady.com>
8968         test-canonicalize: avoid unused function warning
8969         * tests/test-canonicalize.c: Protect the inclusion of null-ptr.h
8970         with the same guard as that used to protect usage of the null_ptr
8971         function, so that one doesn't get a -Wunused warning.
8972         * tests/test-canonicalize-lgpl.c: Likewise.
8974 2020-02-03  Paul Eggert  <eggert@cs.ucla.edu>
8976         libc-config: port to Apple’s Clang variant
8977         * lib/libc-config.h (__glibc_clang_prereq):
8978         Port to Apple’s Clang variant, which uses a different
8979         numbering scheme for __clang_major__.
8981 2020-02-02  Bruno Haible  <bruno@clisp.org>
8983         Document the new modules list-c++, set-c++, oset-c++, map-c++, omap-c++.
8984         * doc/containers.texi: Document these new modules.
8986 2020-02-02  Bruno Haible  <bruno@clisp.org>
8988         omap-c++: Add tests.
8989         * tests/test-omap-c++.cc: New file.
8990         * modules/omap-c++-tests: New file.
8992         omap-c++: New module.
8993         * lib/gl_omap.hh: New file, based on lib/gl_omap.h.
8994         * modules/omap-c++: New file.
8996 2020-02-02  Bruno Haible  <bruno@clisp.org>
8998         map-c++: Add tests.
8999         * tests/test-map-c++.cc: New file.
9000         * modules/map-c++-tests: New file.
9002         map-c++: New module.
9003         * lib/gl_map.hh: New file, based on lib/gl_map.h.
9004         * modules/map-c++: New file.
9006 2020-02-02  Bruno Haible  <bruno@clisp.org>
9008         oset-c++: Add tests.
9009         * tests/test-oset-c++.cc: New file.
9010         * modules/oset-c++-tests: New file.
9012         oset-c++: New module.
9013         * lib/gl_oset.hh: New file, based on lib/gl_oset.h.
9014         * modules/oset-c++: New file.
9016 2020-02-02  Bruno Haible  <bruno@clisp.org>
9018         set-c++: Add tests.
9019         * tests/test-set-c++.cc: New file.
9020         * modules/set-c++-tests: New file.
9022         set-c++: New module.
9023         * lib/gl_set.hh: New file, based on lib/gl_set.h.
9024         * modules/set-c++: New file.
9026 2020-02-02  Bruno Haible  <bruno@clisp.org>
9028         list-c++: Add tests.
9029         * tests/test-list-c++.cc: New file.
9030         * modules/list-c++-tests: New file.
9032         list-c++: New module.
9033         * lib/gl_list.hh: New file, based on lib/gl_list.h.
9034         * modules/list-c++: New file.
9036 2020-02-02  Bruno Haible  <bruno@clisp.org>
9038         xalloc: Fix compilation error in C++ mode on FreeBSD 12.
9039         * lib/xalloc.h (xalloc_die): Comment out 'extern' keyword before
9040         '_Noreturn'.
9041         * lib/sigpipe-die.h (sigpipe_die): Likewise.
9043 2020-02-02  Pádraig Brady  <P@draigBrady.com>
9045         read-file: reduce max size from SIZE_MAX to PTRDIFF_MAX
9046         On x86_64 with glibc-2.30, gcc 9.2 is giving:
9047           error: argument 2 value '18446744073709551615'
9048           exceeds maximum object size 9223372036854775807
9049           [-Werror=alloc-size-larger-than=]
9050         The details of this restriction are discussed at:
9051         https://stackoverflow.com/q/42574890/4421
9052         * lib/read-file.c: s/SIZE_MAX/PTRDIFF_MAX/
9054 2020-02-02  Pádraig Brady  <P@draigBrady.com>
9056         sysctl.h: avoid including on glibc
9057         * lib/nproc.c: Avoid including deprecated and unneeded header on GLIBC.
9058         * lib/physmem.c: Likewise.
9060 2020-02-02  Bruno Haible  <bruno@clisp.org>
9062         list, set, oset, map, omap: Avoid imperative voice in documentation.
9063         * lib/gl_list.h: Use descriptive sentences instead of imperative voice
9064         in the specification of functions.
9065         * lib/gl_set.h: Likewise.
9066         * lib/gl_oset.h: Likewise.
9067         * lib/gl_map.h: Likewise.
9068         * lib/gl_omap.h: Likewise.
9069         * lib/gl_*.h: Likewise.
9071 2020-02-01  Bruno Haible  <bruno@clisp.org>
9073         ansi-c++-opt: Set CXXFLAGS to "-g -O2" by default.
9074         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Determine CXXFLAGS like AC_PROG_CXX
9075         does.
9077 2020-01-29  Bruno Haible  <bruno@clisp.org>
9079         array-map, hash-map, linkedhash-map: Fix module description.
9080         * modules/array-map (Description): Fix description.
9081         * modules/hash-map (Description): Likewise.
9082         * modules/linkedhash-map (Description): Likewise.
9084 2020-01-29  Paul Eggert  <eggert@cs.ucla.edu>
9086         dfa: do not depend on isblank
9087         This removes a difference between Gawk dfa.c and Gnulib dfa.c.
9088         * lib/dfa.c (isblank): Define if neither system nor Gnulib does.
9089         * modules/dfa (Depends-on): Remove isblank.
9090         * modules/isblank: Add a module indicator, for lib/dfa.c.
9092         dfa: do not assume 64-bit int
9093         Problem reported for VAX/VMS C (!) by Arnold Robbins in:
9094         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00173.html
9095         * lib/dfa.c (CHARCLASS_PAIR): Bring back this macro.
9096         (CHARCLASS_WORD_BITS, charclass_word) [!UINT_LEAST64_MAX]:
9097         Fall back to 32-bit words.
9098         (CHARCLASS_INIT): Go back to having 8 32-bit args instead
9099         of 4 64-bit args.  All uses changed.
9101 2020-01-27  Paul Eggert  <eggert@cs.ucla.edu>
9103         regex: remove limits-h dependency
9104         * modules/regex (Depends-on): Remove limits-h, since the
9105         code no longer depends on ULONG_WIDTH already being defined.
9107         regex: port to non-GCC pre-IEC-60559
9108         Problem reported by Arnold Robbins in:
9109         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00154.html
9110         * lib/regex_internal.h (ULONG_WIDTH): Make this usable in #if.
9112 2020-01-25  Bruno Haible  <bruno@clisp.org>
9114         c32isxdigit: Add tests.
9115         * tests/test-c32isxdigit.c: New file, based on tests/test-iswxdigit.c.
9116         * tests/test-c32isxdigit.sh: New file.
9117         * modules/c32isxdigit-tests: New file.
9119         c32isxdigit: New module.
9120         * lib/c32isxdigit.c: New file.
9121         * modules/c32isxdigit: New file.
9122         * doc/posix-functions/iswxdigit.texi: Mention the new module.
9124 2020-01-25  Bruno Haible  <bruno@clisp.org>
9126         c32isupper: Add tests.
9127         * tests/test-c32isupper.c: New file.
9128         * tests/test-c32isupper.sh: New file.
9129         * modules/c32isupper-tests: New file.
9131         c32isupper: New module.
9132         * lib/c32isupper.c: New file.
9133         * modules/c32isupper: New file.
9134         * doc/posix-functions/iswupper.texi: Mention the new module.
9136 2020-01-25  Bruno Haible  <bruno@clisp.org>
9138         c32isspace: Add tests.
9139         * tests/test-c32isspace.c: New file.
9140         * tests/test-c32isspace.sh: New file.
9141         * modules/c32isspace-tests: New file.
9143         c32isspace: New module.
9144         * lib/c32isspace.c: New file.
9145         * modules/c32isspace: New file.
9146         * doc/posix-functions/iswspace.texi: Mention the new module.
9148 2020-01-25  Bruno Haible  <bruno@clisp.org>
9150         c32ispunct: Add tests.
9151         * tests/test-c32ispunct.c: New file.
9152         * tests/test-c32ispunct.sh: New file.
9153         * modules/c32ispunct-tests: New file.
9155         c32ispunct: New module.
9156         * lib/c32ispunct.c: New file.
9157         * modules/c32ispunct: New file.
9158         * doc/posix-functions/iswpunct.texi: Mention the new module.
9160 2020-01-25  Bruno Haible  <bruno@clisp.org>
9162         c32isprint: Add tests.
9163         * tests/test-c32isprint.c: New file.
9164         * tests/test-c32isprint.sh: New file.
9165         * modules/c32isprint-tests: New file.
9167         c32isprint: New module.
9168         * lib/c32isprint.c: New file.
9169         * modules/c32isprint: New file.
9170         * doc/posix-functions/iswprint.texi: Mention the new module.
9172 2020-01-25  Bruno Haible  <bruno@clisp.org>
9174         c32islower: Add tests.
9175         * tests/test-c32islower.c: New file.
9176         * tests/test-c32islower.sh: New file.
9177         * modules/c32islower-tests: New file.
9179         c32islower: New module.
9180         * lib/c32islower.c: New file.
9181         * modules/c32islower: New file.
9182         * doc/posix-functions/iswlower.texi: Mention the new module.
9184 2020-01-25  Bruno Haible  <bruno@clisp.org>
9186         c32isgraph: Add tests.
9187         * tests/test-c32isgraph.c: New file.
9188         * tests/test-c32isgraph.sh: New file.
9189         * modules/c32isgraph-tests: New file.
9191         c32isgraph: New module.
9192         * lib/c32isgraph.c: New file.
9193         * modules/c32isgraph: New file.
9194         * doc/posix-functions/iswgraph.texi: Mention the new module.
9196 2020-01-25  Bruno Haible  <bruno@clisp.org>
9198         c32isdigit: Add tests.
9199         * tests/test-c32isdigit.c: New file, based on tests/test-iswdigit.c.
9200         * tests/test-c32isdigit.sh: New file.
9201         * modules/c32isdigit-tests: New file.
9203         c32isdigit: New module.
9204         * lib/c32isdigit.c: New file.
9205         * modules/c32isdigit: New file.
9206         * doc/posix-functions/iswdigit.texi: Mention the new module.
9208 2020-01-25  Bruno Haible  <bruno@clisp.org>
9210         c32iscntrl: Add tests.
9211         * tests/test-c32iscntrl.c: New file.
9212         * tests/test-c32iscntrl.sh: New file.
9213         * modules/c32iscntrl-tests: New file.
9215         c32iscntrl: New module.
9216         * lib/c32iscntrl.c: New file.
9217         * modules/c32iscntrl: New file.
9218         * doc/posix-functions/iswcntrl.texi: Mention the new module.
9220 2020-01-25  Bruno Haible  <bruno@clisp.org>
9222         c32isblank: Add tests.
9223         * tests/test-c32isblank.c: New file.
9224         * tests/test-c32isblank.sh: New file.
9225         * modules/c32isblank-tests: New file.
9227         c32isblank: New module.
9228         * lib/c32isblank.c: New file.
9229         * modules/c32isblank: New file.
9230         * doc/posix-functions/iswblank.texi: Mention the new module.
9232 2020-01-25  Bruno Haible  <bruno@clisp.org>
9234         c32isalpha: Add tests.
9235         * tests/test-c32isalpha.c: New file.
9236         * tests/test-c32isalpha.sh: New file.
9237         * modules/c32isalpha-tests: New file.
9239         c32isalpha: New module.
9240         * lib/c32isalpha.c: New file.
9241         * modules/c32isalpha: New file.
9242         * doc/posix-functions/iswalpha.texi: Mention the new module.
9244 2020-01-25  Bruno Haible  <bruno@clisp.org>
9246         c32isalnum: Add tests.
9247         * tests/test-c32isalnum.c: New file.
9248         * tests/test-c32isalnum.sh: New file.
9249         * modules/c32isalnum-tests: New file.
9251         c32isalnum: New module.
9252         * lib/c32isalnum.c: New file.
9253         * lib/c32is-impl.h: New file.
9254         * modules/c32isalnum: New file.
9255         * doc/posix-functions/iswalnum.texi: Mention the new module.
9257 2020-01-25  Bruno Haible  <bruno@clisp.org>
9259         uchar: Preparations for modules c32isalnum, ..., c32isxdigit.
9260         * lib/uchar.in.h (c32isalnum, c32isalpha, c32isblank, c32iscntrl,
9261         c32isdigit, c32isgraph, c32islower, c32isprint, c32ispunct, c32isspace,
9262         c32isupper, c32isxdigit): New declarations.
9263         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32ISALNUM,
9264         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
9265         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
9266         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
9267         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
9268         * modules/uchar (Makefile.am): Substitute GNULIB_C32ISALNUM,
9269         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
9270         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
9271         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
9272         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
9273         * tests/test-uchar-c++.cc: Test the signature of c32isalnum, c32isalpha,
9274         c32isblank, c32iscntrl, c32isdigit, c32isgraph, c32islower, c32isprint,
9275         c32ispunct, c32isspace, c32isupper, c32isxdigit.
9277 2020-01-25  Bruno Haible  <bruno@clisp.org>
9279         mbchar, wctype: Use the corrected iswxdigit function.
9280         * modules/mbchar (Depends-on): Add iswxdigit.
9281         * modules/wctype (Depends-on): Likewise.
9283         iswxdigit: Add tests.
9284         * tests/test-iswxdigit.c: New file.
9285         * tests/test-iswxdigit.sh: New file.
9286         * modules/iswxdigit-tests: New file.
9288         iswxdigit: New module.
9289         * m4/iswxdigit.m4: New file.
9290         * lib/wctype.in.h (iswxdigit): Potentially override.
9291         (iswxdigit, rpl_iswxdigit): Test REPLACE_ISWXDIGIT, not
9292         REPLACE_ISWCNTRL. Rely on ISO C compliant definition.
9293         * lib/iswxdigit.c: New file.
9294         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWXDIGIT,
9295         REPLACE_ISWXDIGIT.
9296         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWXDIGIT,
9297         REPLACE_ISWXDIGIT.
9298         * modules/iswxdigit: New file.
9299         * doc/posix-functions/iswxdigit.texi: Mention the portability problem.
9301 2020-01-25  Bruno Haible  <bruno@clisp.org>
9303         lseek: Fix the override to not undo the effects of AC_SYS_LARGEFILE.
9304         Reported by John Donoghue <john.david.donoghue@gmail.com> in
9305         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00146.html>.
9306         * lib/lseek.c (rpl_lseek): When AC_SYS_LARGEFILE has enabled a 64-bit
9307         off_t on mingw, invoke _lseeki64 instead of lseek.
9309 2020-01-25  Bruno Haible  <bruno@clisp.org>
9311         iswdigit tests: Avoid test failure on Cygwin.
9312         * tests/test-iswdigit.c (for_character): If mbrtowc cannot convert the
9313         byte sequence, return 0.
9315         iswdigit: Fix test failure on native Windows.
9316         * lib/wctype.in.h (rpl_iswdigit): Rely on ISO C compliant definition.
9318         mbchar, wctype: Use the corrected iswdigit function.
9319         * modules/mbchar (Depends-on): Add iswdigit.
9320         * modules/wctype (Depends-on): Likewise.
9322         iswdigit: Add tests.
9323         * tests/test-iswdigit.c: New file.
9324         * tests/test-iswdigit.sh: New file.
9325         * modules/iswdigit-tests: New file.
9327         iswdigit: New module.
9328         * m4/iswdigit.m4: New file.
9329         * lib/wctype.in.h (iswdigit): Potentially override.
9330         (iswdigit, rpl_iswdigit): Test REPLACE_ISWDIGIT, not REPLACE_ISWCNTRL.
9331         * lib/iswdigit.c: New file.
9332         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWDIGIT,
9333         REPLACE_ISWDIGIT.
9334         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWDIGIT,
9335         REPLACE_ISWDIGIT.
9336         * modules/iswdigit: New file.
9337         * doc/posix-functions/iswdigit.texi: Mention the portability problem.
9339 2020-01-25  Bruno Haible  <bruno@clisp.org>
9341         hard-locale tests: Make it easy to reuse the musl test.
9342         * m4/musl.m4: New file, extracted from modules/hard-locale-tests.
9343         * modules/hard-locale-tests (Files): Add it.
9344         (configure.ac): Invoke gl_MUSL_LIBC.
9346 2020-01-24  Paul Eggert  <eggert@cs.ucla.edu>
9348         regex: port to Gawk on nonstandard platforms
9349         * lib/regex_internal.h (ULONG_WIDTH): Define if not already defined.
9350         This is useful for Gawk, which does not use the Gnulib stdlib-h
9351         module.  Problem reported by Arnold Robbins in:
9352         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00138.html
9354 2020-01-21  Paul Eggert  <eggert@cs.ucla.edu>
9356         regex: fix bug with >=16 subexpressions
9357         * lib/regex_internal.h (struct re_backref_cache_entry):
9358         Use bitset_word_t as the type of eps_reachable_subexps_map,
9359         instead of unsigned short int.  This fixes a bug I introduced
9360         to glibc in 2005-09-28T17:33:18Z!drepper@redhat.com (glibc commit
9361         2c05d33f90861d074dc12808dafbde30f487b1a0, BZ #1302).
9362         Remove unused member 'unused'.
9364         regex: simplify definition of BITSET_WORD_BITS
9365         * config/srclist.txt: Remove regex.c, regex_internal.h temporarily.
9366         * lib/regex.c (__STDC_WANT_IEC_60559_BFP_EXT__): Define.
9367         * lib/regex_internal.h (BITSET_WORD_BITS):
9368         * modules/regex (Depends-on): Add limits-h.
9369         Simplify now that we can use ULONG_WIDTH.
9371 2020-01-20  Bruno Haible  <bruno@clisp.org>
9373         mbrtoc32: Add note about FreeBSD 12.
9374         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): Guess no also on FreeBSD.
9375         * doc/posix-functions/mbrtoc32.texi: Mention that FreeBSD 12 is also
9376         affected.
9378 2020-01-20  Bruno Haible  <bruno@clisp.org>
9380         unistr/u8-uctomb: Fix warning.
9381         Reported by Andreas Schwab <schwab@suse.de> in
9382         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00127.html>.
9383         * lib/unistr/u8-uctomb.c (FALLTHROUGH): New macro.
9384         (u8_uctomb): Add FALLTHROUGH markers.
9386 2020-01-20  Bruno Haible  <bruno@clisp.org>
9388         lock: Fix test-once1 failure on FreeBSD 11 (regression from 2020-01-19).
9389         * lib/glthread/lock.c (glthread_once_multithreaded): New function.
9390         * lib/glthread/lock.h (glthread_once_multithreaded): New declaration.
9391         (glthread_once): Use it.
9393 2020-01-19  Bruno Haible  <bruno@clisp.org>
9395         threadlib: Disable use of weak symbols on FreeBSD 11.
9396         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
9397         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00061.html>.
9398         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): Require AC_CANONICAL_HOST. Test
9399         against a bug in FreeBSD 11.
9401 2020-01-19  Bruno Haible  <bruno@clisp.org>
9403         iconv_open: Improve z/OS support.
9404         * lib/iconv_open-zos.gperf: Choose better aliases. Add mapping for
9405         ISO-8859-3, KOI8-R, KOI8-U, CP775, CP857, CP865, CP1129, CP1131, CP1257.
9406         Remove mapping for EUC-TW.
9408 2020-01-18  Bruno Haible  <bruno@clisp.org>
9410         Rename ~~gnulib.m4 to zzgnulib.m4.
9411         Suggested by Paul Eggert.
9412         * m4/zzgnulib.m4: Renamed from m4/~~gnulib.m4.
9413         * gnulib-tool (func_get_filelist): Update.
9414         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
9416 2020-01-18  Bruno Haible  <bruno@clisp.org>
9418         doc: Update license notices.
9419         * doc/*.texi: Reference the GFDL 1.3 through a URL, rather than by
9420         reference to a section or to a "file as part of this distribution".
9422 2020-01-18  Bruno Haible  <bruno@clisp.org>
9424         Avoid error "m4_require: circular dependency of AC_LANG_COMPILER(C)".
9425         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
9426         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00109.html>.
9427         * m4/00gnulib.m4 (gl_COMPILER_CLANG): Use _AC_COMPILE_IFELSE, not
9428         AC_EGREP_CPP.
9430 2020-01-18  Bruno Haible  <bruno@clisp.org>
9432         Ensure Automake does not drop ~~gnulib.m4.
9433         * m4/~~gnulib.m4 (gl_ZZGNULIB): New macro.
9434         * m4/gnulib-common.m4 (gl_COMMON): Require it.
9436 2020-01-18  Bruno Haible  <bruno@clisp.org>
9438         Fix major regression from 2020-01-10.
9439         Reported by Paul Eggert in
9440         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00079.html>.
9441         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
9442         Don't AC_REQUIRE anything.
9443         (gl_COMPILER_PREPARE_CHECK_DECL): Define through AC_DEFUN, not
9444         AC_DEFUN_ONCE. Use _AC_COMPILE_IFELSE, not AC_COMPILE_IFELSE.
9445         (_AC_CHECK_DECL_BODY): If ac_compile_for_check_decl has not been set,
9446         use ac_compile instead.
9447         (AC_CHECK_DECL): Remove override.
9448         * m4/~~gnulib.m4: New file.
9449         * gnulib-tool (func_get_filelist): Add also ~~gnulib.m4.
9450         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
9452 2020-01-17  Bruno Haible  <bruno@clisp.org>
9453             Paul Eggert  <eggert@cs.ucla.edu>
9455         glob: Fix use-after-free bug.
9456         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
9457         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00102.html>.
9458         * lib/glob.c (__glob): Delay freeing dirname until after the use of
9459         end_name.
9461 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
9463         vcs-to-changelog: Fix parsing of fndecl without args.
9464         * build-aux/vcstocl/frontend_c.py (FNDECL_RE): Fix regular expression
9465         for empty arguments.
9467 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
9469         vcs-to-changelog: Add documentation.
9470         * doc/vcs-to-changelog.texi: New file.
9471         * doc/gnulib.texi (Build Infrastructure Modules): Add vcs-to-changelog
9472         section.
9474 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
9476         vcs-to-changelog: Allow loading of custom quirks file.
9477         * build-aux/vcs_to_changelog.py: New commandline option -q.
9479 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
9481         vcs-to-changelog: Fix formatting of ChangeLog output.
9482         * build-aux/vcstocl/vcs_git.py (list_changes): Add newline in print
9483         output.
9485 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
9487         vcs-to-changelog: Drop python3 shebang from frontend_c.py.
9488         Reported in
9489         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00050.html>.
9490         * build-aux/vcstocl/frontend_c.py: Remove shebang.
9492 2020-01-15  Simon Josefsson  <simon@josefsson.org>
9494         crypto/gc-pbkdf2: New module.
9495         * MODULES.html.sh (func_all_modules): Add gc-pbkdf2.
9496         * NEWS: Deprecated gc-pbkdf2-sha1 in favor of gc-pbkdf2.
9497         * lib/gc-pbkdf2.c: New file.
9498         * lib/gc-pbkdf2-sha1.c: Use new interface.
9499         * lib/gc.h (GC_MAX_DIGEST_SIZE, gc_pbkdf2_hmac): Add.
9500         * modules/crypto/gc-pbkdf2: New file.
9501         * modules/crypto/gc-pbkdf2-tests: New file.
9502         * tests/test-gc-pbkdf2.c: New file.
9504 2020-01-12  Bruno Haible  <bruno@clisp.org>
9506         c32stombs: Add tests.
9507         * tests/test-c32stombs.c: New file, based on tests/test-c32srtombs.c.
9508         * tests/test-c32stombs-1.sh: New file, based on
9509         tests/test-c32srtombs-1.sh.
9510         * tests/test-c32stombs-2.sh: New file, based on
9511         tests/test-c32srtombs-2.sh.
9512         * tests/test-c32stombs-3.sh: New file, based on
9513         tests/test-c32srtombs-3.sh.
9514         * tests/test-c32stombs-4.sh: New file, based on
9515         tests/test-c32srtombs-4.sh.
9516         * modules/c32stombs-tests: New file, based on modules/c32srtombs-tests.
9518         c32stombs: New module.
9519         * lib/uchar.in.h (c32stombs): New declaration.
9520         * lib/c32stombs.c: New file.
9521         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32STOMBS.
9522         * modules/uchar (Makefile.am): Substitute GNULIB_C32STOMBS.
9523         * modules/c32stombs: New file.
9524         * tests/test-uchar-c++.cc: Test the signature of c32stombs.
9525         * doc/posix-functions/wcstombs.texi: Mention the new module.
9527 2020-01-11  Jim Meyering  <meyering@fb.com>
9529         perl: require the "warnings" module
9530         * m4/perl.m4: Also "use warnings", so we reject the perl found
9531         on at least one IRIX 6.5 system. Reported by Bruno Haible in
9532         https://lists.gnu.org/r/sed-devel/2020-01/msg00004.html
9534 2020-01-10  Bruno Haible  <bruno@clisp.org>
9536         Fix major regression from 2020-01-04.
9537         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
9538         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00072.html>.
9539         * m4/00gnulib.m4 (gl_COMPILER_PREPARE_CHECK_DECL): Define through
9540         AC_DEFUN_ONCE.
9541         (AC_CHECK_DECL): Invoke, not require, it.
9543 2020-01-10  Bruno Haible  <bruno@clisp.org>
9545         c32snrtombs: Add tests.
9546         * tests/test-c32snrtombs.c: New file, based on tests/test-wcsnrtombs.c.
9547         * tests/test-c32snrtombs-1.sh: New file, based on
9548         tests/test-wcsnrtombs1.sh.
9549         * tests/test-c32snrtombs-2.sh: New file, based on
9550         tests/test-wcsnrtombs2.sh.
9551         * tests/test-c32snrtombs-3.sh: New file, based on
9552         tests/test-wcsnrtombs3.sh.
9553         * tests/test-c32snrtombs-4.sh: New file, based on
9554         tests/test-wcsnrtombs4.sh.
9555         * modules/c32snrtombs-tests: New file, based on
9556         modules/wcsnrtombs-tests.
9558         c32snrtombs: New module.
9559         * lib/uchar.in.h (c32snrtombs): New declaration.
9560         * lib/wcsnrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
9561         INTERNAL_STATE, WCRTOMB.
9562         * lib/wcsnrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
9563         * lib/c32snrtombs.c: New file.
9564         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SNRTOMBS.
9565         * modules/uchar (Makefile.am): Substitute GNULIB_C32SNRTOMBS.
9566         * modules/c32snrtombs: New file.
9567         * tests/test-uchar-c++.cc: Test the signature of c32snrtombs.
9568         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
9570 2020-01-09  Bruno Haible  <bruno@clisp.org>
9572         c32srtombs: Add tests.
9573         * tests/test-c32srtombs.c: New file, based on tests/test-wcsrtombs.c.
9574         * tests/test-c32srtombs-1.sh: New file, based on
9575         tests/test-wcsrtombs1.sh.
9576         * tests/test-c32srtombs-2.sh: New file, based on
9577         tests/test-wcsrtombs2.sh.
9578         * tests/test-c32srtombs-3.sh: New file, based on
9579         tests/test-wcsrtombs3.sh.
9580         * tests/test-c32srtombs-4.sh: New file, based on
9581         tests/test-wcsrtombs4.sh.
9582         * modules/c32srtombs-tests: New file, based on modules/wcsrtombs-tests.
9584         c32srtombs: New module.
9585         * lib/uchar.in.h (c32srtombs): New declaration.
9586         * lib/wcsrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
9587         INTERNAL_STATE, WCRTOMB.
9588         * lib/wcsrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
9589         * lib/c32srtombs.c: New file.
9590         * lib/c32srtombs-state.c: New file, based on lib/wcsrtombs-state.c.
9591         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SRTOMBS.
9592         * modules/uchar (Makefile.am): Substitute GNULIB_C32SRTOMBS.
9593         * modules/c32srtombs: New file.
9594         * tests/test-uchar-c++.cc: Test the signature of c32srtombs.
9595         * doc/posix-functions/wcsrtombs.texi: Mention the new module.
9597 2020-01-08  Bruno Haible  <bruno@clisp.org>
9599         c32tob: Make consistent with mbrtoc32.
9600         * lib/c32tob.c: Include <stdio.h>, <string.h>, <wchar.h>.
9601         (c32tob): If the char32_t encoding and the wchar_t encoding may differ,
9602         use c32rtomb, not wctob.
9603         * modules/c32tob (Files): Add m4/mbrtoc32.m4.
9604         (Depends-on): Add c32rtomb.
9605         (configure.ac): Require gl_MBRTOC32_SANITYCHECK.
9607 2020-01-08  Bruno Haible  <bruno@clisp.org>
9609         c32rtomb: Add tests.
9610         * tests/test-c32rtomb.c: New file, based on tests/test-wcrtomb.c.
9611         * tests/test-c32rtomb.sh: New file, based on tests/test-wcrtomb.sh.
9612         * tests/test-c32rtomb-w32.c: New file, based on
9613         tests/test-wcrtomb-w32.c.
9614         * tests/test-c32rtomb-w32-1.sh: New file, based on
9615         tests/test-wcrtomb-w32-1.sh.
9616         * tests/test-c32rtomb-w32-2.sh: New file, based on
9617         tests/test-wcrtomb-w32-2.sh.
9618         * tests/test-c32rtomb-w32-3.sh: New file, based on
9619         tests/test-wcrtomb-w32-3.sh.
9620         * tests/test-c32rtomb-w32-4.sh: New file, based on
9621         tests/test-wcrtomb-w32-4.sh.
9622         * tests/test-c32rtomb-w32-5.sh: New file, based on
9623         tests/test-wcrtomb-w32-5.sh.
9624         * tests/test-c32rtomb-w32-6.sh: New file, based on
9625         tests/test-wcrtomb-w32-6.sh.
9626         * tests/test-c32rtomb-w32-7.sh: New file, based on
9627         tests/test-wcrtomb-w32-7.sh.
9628         * modules/c32rtomb-tests: New file.
9630         c32rtomb: New module.
9631         * lib/uchar.in.h (c32rtomb): New declaration.
9632         * lib/c32rtomb.c: New file, based on lib/unistr/u8-uctomb-aux.c.
9633         * m4/c32rtomb.m4: New file.
9634         * m4/uchar.m4 (gl_UCHAR_H): Test whether c32rtomb is declared.
9635         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32RTOMB, HAVE_C32RTOMB,
9636         REPLACE_C32RTOMB.
9637         * modules/uchar (Makefile.am): Substitute GNULIB_C32RTOMB,
9638         HAVE_C32RTOMB, REPLACE_C32RTOMB.
9639         * modules/c32rtomb: New file.
9640         * tests/test-uchar-c++.cc: Test the signature of c32rtomb.
9641         * doc/posix-functions/c32rtomb.texi: Document the new module.
9642         * doc/posix-functions/wcrtomb.texi: Mention the new module.
9644 2020-01-08  Bruno Haible  <bruno@clisp.org>
9646         mbrtoc32: Use the system's mbrtoc32 if it exists and basically works.
9647         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): New macro.
9648         (gl_FUNC_MBRTOC32): Require it. Set REPLACE_MBRTOC32 if mbrtoc32 exists
9649         but is not working.
9650         * lib/mbrtoc32.c: Include hard-locale.h, <locale.h>.
9651         (mbrtoc32): If the char32_t encoding and the wchar_t encoding may
9652         differ, use the system's mbrtoc32, adding workarounds.
9653         * modules/mbrtoc32 (Depends-on): Add hard-locale.
9654         * doc/posix-functions/mbrtoc32.texi: Mention the Solaris and native
9655         Windows problem.
9656         * lib/btoc32.c: Include <stdio.h>, <string.h>.
9657         (btoc32): If the char32_t encoding and the wchar_t encoding may differ,
9658         use mbrtoc32, not btowc.
9659         * modules/btoc32 (Depends-on): Add mbrtoc32.
9660         * lib/mbsrtoc32s.c (mbsrtoc32s): If the char32_t encoding and the
9661         wchar_t encoding may differ, use mbrtoc32, not mbsrtowcs.
9662         * modules/mbsrtoc32s (Depends-on): Update conditions.
9663         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
9664         * lib/mbsnrtoc32s.c (mbsnrtoc32s): If the char32_t encoding and the
9665         wchar_t encoding may differ, use mbrtoc32, not mbsnrtowcs.
9666         * modules/mbsnrtoc32s (Depends-on): Update conditions.
9667         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
9669 2020-01-07  Bruno Haible  <bruno@clisp.org>
9671         wcrtomb: Make multithread-safe, except possibly on IRIX.
9672         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Don't set REPLACE_WCRTOMB to 1 when
9673         REPLACE_MBSTATE_T is set. Define WCRTOMB_C_LOCALE_BUG and
9674         WCRTOMB_RETVAL_BUG.
9675         * lib/wcrtomb.c (wcrtomb): Use original wcrtomb whenever available. Use
9676         wctomb only on IRIX.
9678 2020-01-05  Jim Meyering  <meyering@fb.com>
9680         tests: skip thread-using tests when threading is disabled
9681         sed's configure.ac specifies gl_DISABLE_THREADS, and that caused three
9682         thread-using gnulib tests to fail. Add an #if-guarded exit (77) to each
9683         of those, so they are skipped in this case.
9684         * tests/test-nl_langinfo-mt.c (main): Exit 77 when threading is disabled.
9685         * tests/test-setlocale_null-mt-all.c (main): Likewise.
9686         * tests/test-setlocale_null-mt-one.c (main): Likewise.
9688 2020-01-05  Bruno Haible  <bruno@clisp.org>
9690         tests: Avoid GCC over-optimization caused by _GL_ARG_NONNULL attributes.
9691         Reported by Jim Meyering in
9692         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00040.html>.
9693         * lib/stdlib.in.h (GNULIB_defined_canonicalize_file_name): New macro.
9694         (GNULIB_defined_ptsname_r): New macro.
9695         * tests/test-canonicalize.c (_GL_ARG_NONNULL): Define to empty.
9696         (main): Disable the NULL argument test if canonicalize_file_name does
9697         not come from gnulib.
9698         * tests/test-canonicalize-lgpl.c (_GL_ARG_NONNULL): Define to empty.
9699         (main): Disable the NULL argument test if canonicalize_file_name does
9700         not come from gnulib.
9701         * tests/test-ptsname_r.c (_GL_ARG_NONNULL): Define to empty.
9702         (test_errors): Disable the NULL argument test if ptsname_r does not come
9703         from gnulib.
9705 2020-01-04  Jim Meyering  <meyering@fb.com>
9707         update-copyright: reenable its always-skipped test
9708         * tests/test-update-copyright.sh: Restore the "-pi" options removed
9709         on 2019-06-15. Without those, an internal preliminary test would
9710         fail, causing this test always to be skipped.
9711         Verify that the test is now run and passes via this:
9712           ./gnulib-tool --test --dir /tmp/x --with-tests update-copyright
9714 2020-01-05  Bruno Haible  <bruno@clisp.org>
9716         mbstoc32s: Add tests.
9717         * tests/test-mbstoc32s.c: New file, based on tests/test-mbsrtoc32s.c.
9718         * tests/test-mbstoc32s-1.sh: New file, based on
9719         tests/test-mbsrtoc32s-1.sh.
9720         * tests/test-mbstoc32s-2.sh: New file, based on
9721         tests/test-mbsrtoc32s-2.sh.
9722         * tests/test-mbstoc32s-3.sh: New file, based on
9723         tests/test-mbsrtoc32s-3.sh.
9724         * tests/test-mbstoc32s-4.sh: New file, based on
9725         tests/test-mbsrtoc32s-4.sh.
9726         * modules/mbstoc32s-tests: New file, based on modules/mbsrtoc32s-tests.
9728         mbstoc32s: New module.
9729         * lib/uchar.in.h (mbstoc32s): New declaration.
9730         * lib/mbstoc32s.c: New file.
9731         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSTOC32S.
9732         * modules/uchar (Makefile.am): Substitute GNULIB_MBSTOC32S.
9733         * modules/mbstoc32s: New file.
9734         * tests/test-uchar-c++.cc: Test the signature of mbstoc32s.
9735         * doc/posix-functions/mbstowcs.texi: Mention the new module.
9737 2020-01-05  Bruno Haible  <bruno@clisp.org>
9739         Tweak recently added tests.
9740         * tests/test-mbrtoc32.c: Make signature consistent with uchar.in.h.
9741         * tests/test-mbsrtoc32s.c: Likewise.
9742         * tests/test-mbsnrtoc32s.c: Likewise.
9744 2020-01-04  Bruno Haible  <bruno@clisp.org>
9746         mbsnrtoc32s: Add tests.
9747         * tests/test-mbsnrtoc32s.c: New file, based on tests/test-mbsnrtowcs.c.
9748         * tests/test-mbsnrtoc32s-1.sh: New file, based on
9749         tests/test-mbsnrtowcs1.sh.
9750         * tests/test-mbsnrtoc32s-2.sh: New file, based on
9751         tests/test-mbsnrtowcs2.sh.
9752         * tests/test-mbsnrtoc32s-3.sh: New file, based on
9753         tests/test-mbsnrtowcs3.sh.
9754         * tests/test-mbsnrtoc32s-4.sh: New file, based on
9755         tests/test-mbsnrtowcs4.sh.
9756         * modules/mbsnrtoc32s-tests: New file, based on
9757         modules/mbsnrtowcs-tests.
9759         mbsnrtoc32s: New module.
9760         * lib/uchar.in.h (mbsnrtoc32s): New declaration.
9761         * lib/mbsnrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
9762         INTERNAL_STATE, MBRTOWC.
9763         * lib/mbsnrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
9764         * lib/mbsnrtoc32s.c: New file.
9765         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOC32S.
9766         * modules/uchar (Makefile.am): Substitute GNULIB_MBSNRTOC32S.
9767         * modules/mbsnrtoc32s: New file.
9768         * tests/test-uchar-c++.cc: Test the signature of mbsnrtoc32s.
9769         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module.
9771 2020-01-04  Bruno Haible  <bruno@clisp.org>
9773         mbsrtoc32s tests: Enhance test.
9774         * tests/test-mbsrtoc32s.c (main): Include a non-BMP character in the
9775         test strings for UTF-8 and GB18030.
9777 2020-01-04  Bruno Haible  <bruno@clisp.org>
9779         mbsrtoc32s: Fix bug.
9780         * modules/mbsrtoc32s (configure.ac): Require gl_UCHAR_H, to make sure
9781         that SMALL_WCHAR_T is defined.
9783 2020-01-04  Bruno Haible  <bruno@clisp.org>
9785         mbsrtoc32s: Add tests.
9786         * tests/test-mbsrtoc32s.c: New file, based on tests/test-mbsrtowcs.c.
9787         * tests/test-mbsrtoc32s-1.sh: New file, based on
9788         tests/test-mbsrtowcs1.sh.
9789         * tests/test-mbsrtoc32s-2.sh: New file, based on
9790         tests/test-mbsrtowcs2.sh.
9791         * tests/test-mbsrtoc32s-3.sh: New file, based on
9792         tests/test-mbsrtowcs3.sh.
9793         * tests/test-mbsrtoc32s-4.sh: New file, based on
9794         tests/test-mbsrtowcs4.sh.
9795         * modules/mbsrtoc32s-tests: New file, based on modules/mbsrtowcs-tests.
9797         mbsrtoc32s: New module.
9798         * lib/uchar.in.h (mbsrtoc32s): New declaration.
9799         * lib/mbsrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
9800         INTERNAL_STATE, MBRTOWC.
9801         * lib/mbsrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
9802         * lib/mbsrtoc32s.c: New file.
9803         * lib/mbsrtoc32s-state.c: New file, based on lib/mbsrtowcs-state.c.
9804         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOC32S.
9805         * modules/uchar (Makefile.am): Substitute GNULIB_MBSRTOC32S.
9806         * modules/mbsrtoc32s: New file.
9807         * tests/test-uchar-c++.cc: Test the signature of mbsrtoc32s.
9808         * doc/posix-functions/mbsrtowcs.texi: Mention the new module.
9810 2020-01-04  Bruno Haible  <bruno@clisp.org>
9812         mbrtowc, mbrtoc32: Tighten dependendies.
9813         * modules/mbrtowc (Depends-on): Disable hard-locale, mbsinit if
9814         REPLACE_MBSTATE_T is 1.
9815         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
9816         REPLACE_MBSTATE_T is 0.
9817         * modules/mbrtoc32 (Depends-on): Remove hard-locale, mbsinit. Disable
9818         mbrtowc dependency if REPLACE_MBSTATE_T is 1.
9819         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
9820         REPLACE_MBSTATE_T is 0.
9822 2020-01-04  Bruno Haible  <bruno@clisp.org>
9824         uchar: Decide about _GL_LARGE_CHAR32_T at configure time.
9825         * m4/uchar.m4 (gl_UCHAR_H): Set SMALL_WCHAR_T.
9826         * modules/uchar (Files): Add stdint.m4.
9827         (Makefile.am): Substitute SMALL_WCHAR_T.
9828         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): Rely on SMALL_WCHAR_T.
9830 2020-01-04  Bruno Haible  <bruno@clisp.org>
9832         Fix AC_CHECK_DECL so that it deactivates clang's built-in declarations.
9833         Reported by Martin Storsjö <martin@martin.st> in
9834         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00016.html>.
9835         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
9836         New macros.
9837         (_AC_CHECK_DECL_BODY, AC_CHECK_DECL): Augment.
9839 2020-01-04  Bruno Haible  <bruno@clisp.org>
9841         btoc32: Add tests.
9842         * tests/test-btoc32.c: New file, based on tests/test-btowc.c.
9843         * tests/test-btoc32-1.sh: New file, based on tests/test-btowc1.sh.
9844         * tests/test-btoc32-2.sh: New file, based on tests/test-btowc2.sh.
9845         * modules/btoc32-tests: New file, based on modules/btowc-tests.
9847         btoc32: New module.
9848         * lib/uchar.in.h (btoc32): New declaration.
9849         * lib/btoc32.c: New file.
9850         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_BTOC32.
9851         * modules/uchar (Makefile.am): Substitute GNULIB_BTOC32.
9852         * modules/btoc32: New file.
9853         * tests/test-uchar-c++.cc: Test the signature of btoc32.
9854         * doc/posix-functions/btowc.texi: Mention the new module.
9856 2020-01-03  Bruno Haible  <bruno@clisp.org>
9858         uchar tests: Avoid compilation error with HP cc.
9859         * tests/test-uchar.c: Disable a test when HP cc is in use.
9861 2020-01-03  Bruno Haible  <bruno@clisp.org>
9863         mbrtoc32: Add tests.
9864         * tests/test-mbrtoc32.c: New file, based on tests/test-mbrtowc.c.
9865         * tests/test-mbrtoc32-1.sh: New file, based on tests/test-mbrtowc1.sh.
9866         * tests/test-mbrtoc32-2.sh: New file, based on tests/test-mbrtowc2.sh.
9867         * tests/test-mbrtoc32-3.sh: New file, based on tests/test-mbrtowc3.sh.
9868         * tests/test-mbrtoc32-4.sh: New file, based on tests/test-mbrtowc4.sh.
9869         * tests/test-mbrtoc32-5.sh: New file, based on tests/test-mbrtowc5.sh.
9870         * tests/test-mbrtoc32-w32.c: New file, based on tests/test-mbrtowc-w32.c.
9871         * tests/test-mbrtoc32-w32-1.sh: New file, based on
9872         tests/test-mbrtowc-w32-1.sh.
9873         * tests/test-mbrtoc32-w32-2.sh: New file, based on
9874         tests/test-mbrtowc-w32-2.sh.
9875         * tests/test-mbrtoc32-w32-3.sh: New file, based on
9876         tests/test-mbrtowc-w32-3.sh.
9877         * tests/test-mbrtoc32-w32-4.sh: New file, based on
9878         tests/test-mbrtowc-w32-4.sh.
9879         * tests/test-mbrtoc32-w32-5.sh: New file, based on
9880         tests/test-mbrtowc-w32-5.sh.
9881         * tests/test-mbrtoc32-w32-6.sh: New file, based on
9882         tests/test-mbrtowc-w32-6.sh.
9883         * tests/test-mbrtoc32-w32-7.sh: New file, based on
9884         tests/test-mbrtowc-w32-7.sh.
9885         * modules/mbrtoc32-tests: New file, based on modules/mbrtowc-tests.
9887         mbrtoc32: New module.
9888         * lib/uchar.in.h (mbrtoc32): New declaration.
9889         * lib/mbrtoc32.c: New file, based on lib/mbrtowc.c.
9890         * m4/mbrtoc32.m4: New file, based on m4/mbrtowc.m4.
9891         * m4/uchar.m4 (gl_UCHAR_H): Test whether mbrtoc32 is declared.
9892         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOC32, HAVE_MBRTOC32,
9893         REPLACE_MBRTOC32.
9894         * modules/uchar (Makefile.am): Substitute GNULIB_MBRTOC32,
9895         HAVE_MBRTOC32, REPLACE_MBRTOC32.
9896         * modules/mbrtoc32: New file, based on modules/mbrtowc.
9897         * tests/test-uchar-c++.cc (mbrtoc32): Verify the signature.
9898         * modules/uchar-c++-tests (Makefile.am): Link test-uchar-c++ with
9899         $(LIB_MBRTOWC).
9900         * doc/posix-functions/mbrtoc32.texi: Document the new module.
9901         * doc/posix-functions/mbrtowc.texi: Mention the new module.
9903 2020-01-03  Bruno Haible  <bruno@clisp.org>
9905         mbrtowc: Refactor to share code with mbrtoc32.
9906         * lib/mbrtowc-impl.h: New file, extracted from lib/mbrtowc.c.
9907         * lib/mbrtowc-impl-utf8.h: Likewise.
9908         * lib/mbrtowc.c (mbrtowc): Define macro FITS_IN_CHAR_TYPE. Include
9909         mbrtowc-impl.h.
9910         * modules/mbrtowc (Files): Add the new files.
9912 2020-01-03  Jim Meyering  <meyering@fb.com>
9914         doc: fix time.texi wording
9915         * doc/posix-headers/time.texi (time.h): Typo.
9917 2020-01-03  Bruno Haible  <bruno@clisp.org>
9919         mbrtowc: Refactor locale charset dispatching.
9920         * lib/lc-charset-dispatch.h: New file, extracted from lib/mbrtowc.c.
9921         * lib/lc-charset-dispatch.c: New file, extracted from lib/mbrtowc.c.
9922         * lib/mbrtowc.c: Include lc-charset-dispatch.h. Don't include
9923         localcharset.h, streq.h.
9924         (enc_t): Remove type.
9925         (locale_enc): Remove function.
9926         (cached_locale_enc): Remove variable.
9927         (locale_enc_cached): Remove function.
9928         (mbrtowc): Invoke locale_encoding_classification.
9929         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Update comment.
9930         * modules/mbrtowc (Files): Add lc-charset-dispatch.h,
9931         lc-charset-dispatch.c.
9932         (configure.ac): Arrange to compile lc-charset-dispatch.c.
9934 2020-01-03  Paul Eggert  <eggert@cs.ucla.edu>
9936         doc: mention 32-bit time_t issue
9937         * doc/posix-headers/sys_stat.texi (sys/stat.h):
9938         * doc/posix-headers/time.texi (time.h): Mention 2038.
9940 2020-01-03  Bruno Haible  <bruno@clisp.org>
9942         mbrtowc: Ensure the mbtowc_lock is unique.
9943         * lib/mbtowc-lock.c: New file, based on lib/setlocale-lock.c.
9944         * lib/mbtowc-lock.h: New file, extracted from lib/mbrtowc.c and
9945         lib/setlocale_null.c.
9946         * lib/mbrtowc.c: Include headers needed for mbtowc-lock.h. Don't include
9947         glthread/lock.h. Include mbtowc-lock.h.
9948         (mbtowc_lock): Remove declaration.
9949         (mbrtowc): Use mbtowc_with_lock.
9950         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Require gl_PTHREADLIB. Check for
9951         threads.h. Set LIB_MBRTOWC.
9952         (gl_PREREQ_MBTOWC_LOCK): New macro.
9953         * modules/mbrtowc (Files): Add lib/mbtowc-lock.h, lib/mbtowc-lock.c,
9954         lib/windows-initguard.h, m4/threadlib.m4, m4/visibility.m4.
9955         (Depends-on): Remove lock.
9956         (configure.ac): Arrange to compile mbtowc-lock.c.
9957         (Link): Mention $(LIB_MBRTOWC) instead of $(LIBTHREAD).
9958         * modules/acl (Link): Likewise.
9959         * modules/argmatch (Link): Likewise.
9960         * modules/backup-rename (Link): Likewise.
9961         * modules/backupfile (Link): Likewise.
9962         * modules/closein (Link): Likewise.
9963         * modules/closeout (Link): Likewise.
9964         * modules/copy-file (Link): Likewise.
9965         * modules/csharpcomp (Link): Likewise.
9966         * modules/csharpexec (Link): Likewise.
9967         * modules/dfa (Link): Likewise.
9968         * modules/exclude (Link): Likewise.
9969         * modules/fnmatch (Link): Likewise.
9970         * modules/fnmatch-gnu (Link): Likewise.
9971         * modules/fnmatch-posix (Link): Likewise.
9972         * modules/glob (Link): Likewise.
9973         * modules/human (Link): Likewise.
9974         * modules/javacomp (Link): Likewise.
9975         * modules/javaexec (Link): Likewise.
9976         * modules/javaversion (Link): Likewise.
9977         * modules/mbfile (Link): Likewise.
9978         * modules/mbiter (Link): Likewise.
9979         * modules/mbmemcasecmp (Link): Likewise.
9980         * modules/mbmemcasecoll (Link): Likewise.
9981         * modules/mbrlen (Link): Likewise.
9982         * modules/mbscasecmp (Link): Likewise.
9983         * modules/mbscasestr (Link): Likewise.
9984         * modules/mbschr (Link): Likewise.
9985         * modules/mbscspn (Link): Likewise.
9986         * modules/mbsinit (Link): Likewise.
9987         * modules/mbslen (Link): Likewise.
9988         * modules/mbsncasecmp (Link): Likewise.
9989         * modules/mbsnlen (Link): Likewise.
9990         * modules/mbsnrtowcs (Link): Likewise.
9991         * modules/mbspbrk (Link): Likewise.
9992         * modules/mbspcasecmp (Link): Likewise.
9993         * modules/mbsrchr (Link): Likewise.
9994         * modules/mbsrtowcs (Link): Likewise.
9995         * modules/mbssep (Link): Likewise.
9996         * modules/mbsspn (Link): Likewise.
9997         * modules/mbsstr (Link): Likewise.
9998         * modules/mbstok_r (Link): Likewise.
9999         * modules/mbswidth (Link): Likewise.
10000         * modules/mbuiter (Link): Likewise.
10001         * modules/mkdir-p (Link): Likewise.
10002         * modules/propername (Link): Likewise.
10003         * modules/quote (Link): Likewise.
10004         * modules/quotearg (Link): Likewise.
10005         * modules/quotearg-simple (Link): Likewise.
10006         * modules/regex-quote (Link): Likewise.
10007         * modules/rpmatch (Link): Likewise.
10008         * modules/sh-quote (Link): Likewise.
10009         * modules/system-quote (Link): Likewise.
10010         * modules/trim (Link): Likewise.
10011         * modules/unistdio/ulc-asnprintf (Link): Likewise.
10012         * modules/unistdio/ulc-fprintf (Link): Likewise.
10013         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
10014         * modules/unistdio/ulc-vasprintf (Link): Likewise.
10015         * modules/unistdio/ulc-vfprintf (Link): Likewise.
10016         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
10017         * modules/unistdio/ulc-vsprintf (Link): Likewise.
10018         * modules/xfreopen (Link): Likewise.
10019         * modules/xmemcoll (Link): Likewise.
10020         * modules/yesno (Link): Likewise.
10021         * modules/regex (Link): Add $(LIB_MBRTOWC).
10022         * modules/acl-tests (Makefile.am): Link the programs with $(LIB_MBRTOWC)
10023         instead of $(LIBTHREAD).
10024         * modules/argmatch-tests (Makefile.am): Likewise.
10025         * modules/closein-tests (Makefile.am): Likewise.
10026         * modules/copy-file-tests (Makefile.am): Likewise.
10027         * modules/dfa-tests (Makefile.am): Likewise.
10028         * modules/fnmatch-tests (Makefile.am): Likewise.
10029         * modules/glob-tests (Makefile.am): Likewise.
10030         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
10031         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
10032         * modules/mbrtowc-tests (Makefile.am): Likewise.
10033         * modules/mbscasecmp-tests (Makefile.am): Likewise.
10034         * modules/mbscasestr-tests (Makefile.am): Likewise.
10035         * modules/mbschr-tests (Makefile.am): Likewise.
10036         * modules/mbscspn-tests (Makefile.am): Likewise.
10037         * modules/mbsinit-tests (Makefile.am): Likewise.
10038         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
10039         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
10040         * modules/mbspbrk-tests (Makefile.am): Likewise.
10041         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
10042         * modules/mbsrchr-tests (Makefile.am): Likewise.
10043         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
10044         * modules/mbsspn-tests (Makefile.am): Likewise.
10045         * modules/mbsstr-tests (Makefile.am): Likewise.
10046         * modules/quotearg-simple-tests (Makefile.am): Likewise.
10047         * modules/quotearg-tests (Makefile.am): Likewise.
10048         * modules/readtokens-tests (Makefile.am): Likewise.
10049         * modules/sh-quote-tests (Makefile.am): Likewise.
10050         * modules/system-quote-tests (Makefile.am): Likewise.
10051         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
10052         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
10053         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
10054         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
10055         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
10056         * modules/yesno-tests (Makefile.am): Likewise.
10057         * modules/exclude-tests (Makefile.am): Link the programs with
10058         $(LIB_MBRTOWC).
10059         * modules/regex-tests (Makefile.am): Likewise.
10060         * modules/regex-quote-tests (Makefile.am): Likewise.
10062 2020-01-03  Bruno Haible  <bruno@clisp.org>
10064         getopt-posix: Fix compilation failure in testdirs.
10065         * lib/unistd.in.h: Include <getopt-cdefs.h> and <getopt-pfx-core.h> only
10066         when the gnulib module 'getopt-posix' is enabled.
10067         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETOPT_POSIX.
10068         * modules/getopt-posix (configure.ac): Set GNULIB_GETOPT_POSIX as a
10069         module indicator.
10070         * modules/unistd (Makefile.am): Substitute GNULIB_GETOPT_POSIX.
10072 2020-01-03  Bruno Haible  <bruno@clisp.org>
10074         doc: Mention the 64-bit inode number problem.
10075         * m4/largefile.m4 (AC_SYS_LARGEFILE): Mention that this macro fixes the
10076         64-bit inode number problem.
10077         * doc/posix-functions/stat.texi: Mention that this module fixes the
10078         64-bit inode number problem.
10079         * doc/posix-functions/lstat.texi: Likewise.
10080         * doc/posix-functions/fstat.texi: Likewise.
10081         * doc/posix-functions/readdir.texi: Add more details.
10082         * doc/posix-functions/readdir_r.texi: Likewise.
10084 2020-01-02  Bruno Haible  <bruno@clisp.org>
10086         wcrtomb: Add more tests.
10087         * tests/test-wcrtomb-w32.c: Include localcharset.h.
10088         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
10089         locale_charset() returns the expected value; otherwise, skip the test.
10090         * tests/test-wcrtomb-w32-6.sh: Remove old comment.
10091         * tests/test-wcrtomb-w32-7.sh: Likewise.
10092         * modules/wcrtomb-tests (Files): Add these files.
10093         (Depends-on): Add localcharset.
10094         (TESTS): Add test-wcrtomb-w32-6.sh, test-wcrtomb-w32-7.sh.
10096 2020-01-02  Bruno Haible  <bruno@clisp.org>
10098         mbrtowc: Add more tests.
10099         * tests/test-mbrtowc-w32.c: Include localcharset.h.
10100         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
10101         locale_charset() returns the expected value; otherwise, skip the test.
10102         * tests/test-mbrtowc-w32-6.sh: Remove old comment.
10103         * tests/test-mbrtowc-w32-7.sh: Likewise.
10104         * modules/mbrtowc-tests (Files): Add these files.
10105         (Depends-on): Add localcharset.
10106         (TESTS): Add test-mbrtowc-w32-6.sh, test-mbrtowc-w32-7.sh.
10108 2020-01-02  Bruno Haible  <bruno@clisp.org>
10110         mbrtowc: Fix test failures on MSVC (regression by previous commit).
10111         * m4/mbrtowc.m4 (gl_MBRTOWC_STORES_INCOMPLETE): New macro.
10112         (gl_FUNC_MBRTOWC): Invoke it. Define MBRTOWC_STORES_INCOMPLETE_BUG.
10113         * lib/mbrtowc.c (rpl_mbrtowc): Add workaround for
10114         MBRTOWC_STORES_INCOMPLETE_BUG.
10115         * doc/posix-functions/mbrtowc.texi: Mention the MSVC bug.
10117 2020-01-02  Paul Eggert  <eggert@cs.ucla.edu>
10119         doc: mention glibc bug 24269
10120         * doc/regex.texi (Back-reference Operator): Add glibc bug 24269.
10121         Reformat slightly so that it looks nicer in the Grep manual.
10123 2020-01-02  Bruno Haible  <bruno@clisp.org>
10125         mbrtowc: Don't replace mbstate_t on MSVC.
10126         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN): Require AC_CANONICAL_HOST. Ignore
10127         a missing mbsinit function on native Windows.
10128         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Likewise.
10129         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Strengthen the test, to detect an
10130         MSVC bug.
10131         * doc/posix-functions/wcrtomb.texi: Mention the MSVC bug.
10133 2020-01-02  Bruno Haible  <bruno@clisp.org>
10135         setlocale-null: Avoid crashing the MSVC linker.
10136         * lib/setlocale-lock.c: Don't define IMP(gl_get_setlocale_null_lock) on
10137         MSVC.
10139 2020-01-02  Bruno Haible  <bruno@clisp.org>
10141         wchar: Make the HP-UX workaround work on HP-UX 11.31.
10142         * modules/wchar (Depends-on): Add inttypes-incomplete.
10143         * lib/inttypes.in.h: Define _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H.
10144         * lib/wchar.in.h: Test _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H instead
10145         of strtoimax.
10147 2020-01-02  Bruno Haible  <bruno@clisp.org>
10149         mbrtowc: Fix compilation error on IRIX (regression from 2019-12-26).
10150         * lib/mbrtowc.c: Include <stdint.h>.
10151         * modules/mbrtowc (Depends-on): Add stdint.
10153 2020-01-01  Pádraig Brady  <P@draigBrady.com>
10155         md5, sha1, sha256, sha512: support --with-openssl=auto-gpl-compat
10156         * m4/gl-openssl.m4: Add a new "auto-gpl-compat" mode,
10157         which will auto enable use of openssl, only for >= version 3,
10158         which is newly licensed under the Apache Software License.
10160 2020-01-01  Bruno Haible  <bruno@clisp.org>
10162         mbrtowc: Include function name in macro names.
10163         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Define
10164         MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not C_LOCALE_MAYBE_EILSEQ.
10165         (gl_MBRTOWC_C_LOCALE): Change cache variable name to
10166         gl_cv_func_mbrtowc_C_locale_sans_EILSEQ.
10167         * lib/mbrtowc.c: Test MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not
10168         C_LOCALE_MAYBE_EILSEQ.
10170 2020-01-01  Bruno Haible  <bruno@clisp.org>
10172         c32tob: New module.
10173         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): New macro.
10174         (c32tob): New declaration.
10175         * lib/c32tob.c: New file.
10176         * m4/uchar.m4 (gl_UCHAR_MODULE_INDICATOR, gl_UCHAR_H_DEFAULTS): New
10177         macros.
10178         (gl_UCHAR_H): Require gl_UCHAR_H_DEFAULTS.
10179         * modules/uchar (Depends-on): Add snippet/c++defs.
10180         (Makefile.am): Include c++defs.h and substitute GNULIB_C32TOB in
10181         uchar.h.
10182         * modules/c32tob: New file.
10183         * tests/test-uchar.c: Verify that _GL_LARGE_CHAR32_T is correctly
10184         defined.
10185         * tests/test-uchar-c++.cc: Include signature.h. Test the signature of
10186         c32tob.
10187         * modules/uchar-c++-tests (Files): Add tests/signature.h.
10188         * doc/posix-functions/wctob.texi: Mention the new module.
10190 2020-01-01  Bruno Haible  <bruno@clisp.org>
10192         locale C++ tests: Fix link error on AIX (regression from 2019-12-18).
10193         * modules/locale-c++-tests (Makefile.am): Link test-locale-c++ with
10194         $(LIB_SETLOCALE).
10196 2020-01-01  Bruno Haible  <bruno@clisp.org>
10198         hard-locale tests: Fix a conflict with the C++ tests.
10199         * modules/hard-locale-tests (Makefile.am): Build a program named
10200         'current-locale', not 'locale'.
10202 2020-01-01  Bruno Haible  <bruno@clisp.org>
10204         doc: Update documentation about wchar_t.
10205         * doc/*/*wc*.texi: Clarify that 64-bit AIX does not have a too small
10206         wchar_t type.
10208 2020-01-01  Bruno Haible  <bruno@clisp.org>
10210         mbrtowc tests: Fix typos.
10211         * tests/test-mbrtowc.c (main): Fix typo.
10212         * tests/test-mbrtowc-w32.c (test_one_locale): Likewise.
10214 2019-12-31  Paul Eggert  <eggert@cs.ucla.edu>
10216         maint: update copyright notices
10217         Before doing the following changes done by hand, I also ran ‘make
10218         update-copyright’ and ‘config/srclist-update <config/srclist.txt’
10219         to do most of the copyright years automatically.  A few upstream
10220         sources are still in 2019 but these should eventually be changed
10221         automatically too.
10222         * build-aux/declared.sh (func_version):
10223         * build-aux/libtool-next-version (func_version):
10224         * build-aux/run-test (func_version):
10225         Update these notices by hand.  Put just the last year
10226         in output of programs, as per GNU coding standards.
10228 2019-12-31  Bruno Haible  <bruno@clisp.org>
10230         uchar: Add C++ tests.
10231         * tests/test-uchar-c++.cc: New file.
10232         * tests/test-uchar-c++2.cc: New file.
10233         * modules/uchar-c++-tests: New file.
10235         uchar: Add tests.
10236         * tests/test-uchar.c: New file.
10237         * modules/uchar-tests: New file.
10239         uchar: New module.
10240         * lib/uchar.in.h: New file.
10241         * m4/uchar.m4: New file.
10242         * modules/uchar: New file.
10243         * doc/posix-headers/uchar.texi: Mention the new module.
10245 2019-12-30  Jim Meyering  <meyering@fb.com>
10247         localeinfo: ->simple would be wrong for LC_ALL=C
10248         That would lead to using unnecessary and expensive code paths in dfa.c.
10249         * lib/localeinfo.c (using_simple_locale): Fix recently-introduced logic
10250         error that would have made grep many times slower in the C locale.
10251         With this change, and a file created like this:
10252           yes 00 | head -10000000 > in
10253         Running grep as follows becomes more than 40 times faster:
10254           LC_ALL=C grep -Fw 0 in
10256 2019-12-30  Paul Eggert  <eggert@cs.ucla.edu>
10258         doc: document trouble with back-references
10259         * doc/regex.texi (Back-reference Operator): Mention bugs etc.
10261 2019-12-29  Paul Eggert  <eggert@cs.ucla.edu>
10263         doc: use “back-reference” for \1 etc.
10264         * doc/regex.texi: Consistently spell “back-reference” with
10265         a hyphen, since that’s how POSIX does it.
10267 2019-12-26  Jim Meyering  <meyering@fb.com>
10269         test-framework-sh: tighten an internal grep regexp
10270         * tests/init.sh (gl_shell_test_script_): Tighten the grep regexp
10271         that helps test for a working printf.
10273 2019-12-26  Bruno Haible  <bruno@clisp.org>
10275         test-framework-sh: Avoid /bin/sh on AIX 7.2 due to its printf built-in.
10276         Reported by Paul Eggert in
10277         <https://lists.gnu.org/archive/html/grep-devel/2019-12/msg00020.html>.
10278         Simplification by Jim Meyering.
10279         * tests/init.sh (gl_shell_test_script_): Add a test of printf of an
10280         octal escape sequence in a UTF-8 locale.
10282 2019-12-26  Paul Eggert  <eggert@cs.ucla.edu>
10284         mbrtowc: port better to narrow-wchar_t platforms
10285         * lib/mbrtowc.c (mbrtowc): On platforms like AIX 7.2, where
10286         wchar_t is too narrow to represent all the Unicode characters,
10287         consider a byte sequence for an out-of-wchar_t-range character to
10288         be an encoding error.  This fixes grep’s surrogate-pair test
10289         failure on AIX 7.2.
10291 2019-12-24  Bruno Haible  <bruno@clisp.org>
10293         localcharset: Avoid referencing rpl_setlocale on native Windows.
10294         * lib/localcharset.c (setlocale): Undefine.
10296 2019-12-24  Bruno Haible  <bruno@clisp.org>
10298         lock tests: Fix link error on HP-UX/hppa (regression from 2019-12-21).
10299         * m4/semaphore.m4: New file.
10300         * modules/lock-tests (Files): Add it.
10301         (configure.ac): Require gl_SEMAPHORE.
10302         (Makefile.am): Link test-lock with $(LIB_SEMAPHORE).
10304 2019-12-24  Paul Eggert  <eggert@cs.ucla.edu>
10306         strptime: fix typo in previous patch
10307         Problem and fix reported by Bruno Haible in:
10308         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00202.html
10309         * lib/strptime.c (day_of_the_week): Fix paren bug.
10311 2019-12-24  Bruno Haible  <bruno@clisp.org>
10313         setlocale-null: Make it easy to rely on the lock in another library.
10314         * lib/setlocale-lock.c: Do not define anything if OMIT_SETLOCALE_LOCK is
10315         defined.
10317 2019-12-23  Paul Eggert  <eggert@cs.ucla.edu>
10319         gethrxtime, mktime, nstrftime, strptime: tweak division performance
10320         Performanced analyzed by Bruno Haible in:
10321         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00200.html
10322         * config/srclist.txt: Do not sync mktime.c for now.
10323         * lib/mktime.c (shr, ydhms_diff):
10324         * lib/nstrftime.c (SHR, tm_diff, __strftime_internal):
10325         * lib/strptime.c (day_of_the_week):
10326         * lib/xtime.h (xtime_sec):
10327         Redo with neither ‘%’ nor conditional branches.
10329 2019-12-23  Bruno Haible  <bruno@clisp.org>
10331         setlocale-null: Export the lock function also on non-Windows platforms.
10332         * lib/setlocale-lock.c (DLL_EXPORTED): New macro.
10333         (gl_get_setlocale_null_lock): Declare as DLL_EXPORTED.
10334         * m4/setlocale_null.m4 (gl_PREREQ_SETLOCALE_LOCK): New macro.
10335         * modules/setlocale-null (configure.ac): Invoke it.
10336         (Files): Add m4/visibility.m4.
10338 2019-12-22  Paul Eggert  <eggert@cs.ucla.edu>
10340         gethrxtime: fix rounding bug with negative args
10341         Problem reported by Bruno Haible in:
10342         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00192.html
10343         * lib/xtime.h (xtime_sec): Simplify calculation and correct bug
10344         with negative rounding.  Common platforms can compute / and % with
10345         a single instruction, so the simplified code should be shorter and
10346         faster on these platforms anyway.
10348 2019-12-22  Bruno Haible  <bruno@clisp.org>
10350         gethrxtime: remove incorrect overflow detection
10351         * lib/xtime.h (xtime_make): Remove attempt to prevent internal
10352         integer overflow, as it didn’t suffice.  This reverts the xtime.h
10353         part of 2018-10-12T04:46:09Z!akim.demaille@gmail.com, which I
10354         cannot now see the need for anyway (even in cases where it works),
10355         as the patch is helpful only when the signs of S and NS disagree,
10356         and all callers pass nonnegative values for S and NS.
10358 2019-12-22  Bruno Haible  <bruno@clisp.org>
10360         setlocale-null: Add standalone include file.
10361         * lib/setlocale_null.h: New file, extracted from lib/locale.in.h.
10362         * lib/locale.in.h: Include setlocale_null.h.
10363         (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX, setlocale_null_r,
10364         setlocale_null): Remove declarations.
10365         * lib/setlocale_null.c: Include setlocale_null.h.
10366         * lib/localename.c: Likewise.
10367         * modules/setlocale-null (Files): Add lib/setlocale_null.h.
10368         (Depends-on): Add snippet/arg-nonnull.
10369         (Include): Allow either "setlocale_null.h" or <locale.h>.
10371 2019-12-22  Bruno Haible  <bruno@clisp.org>
10373         strfmon_l: Fix test failures on FreeBSD and Cygwin.
10374         * m4/strfmon_l.m4 (gl_FUNC_STRFMON_L): Require gt_LOCALE_FR_UTF8. Add an
10375         AC_RUN_IFELSE test.
10376         * modules/strfmon_l (Files): Add locale-fr.m4, codeset.m4.
10377         * doc/posix-functions/strfmon_l.texi: Mention the FreeBSD and Cygwin
10378         problem.
10380 2019-12-22  Bruno Haible  <bruno@clisp.org>
10382         Prefer lib_SOURCES to unconditional AC_LIBOBJ.
10383         * modules/at-internal: Prefer a lib_SOURCES augmentation to an
10384         unconditional AC_LIBOBJ.
10385         * modules/selinux-at: Likewise.
10386         * modules/xmemdup0: Likewise.
10387         * modules/xstrtoll: Likewise.
10389 2019-12-22  Bruno Haible  <bruno@clisp.org>
10391         longlong: Mark module obsolete.
10392         * modules/longlong (Status, Notice): New sections.
10394         stdint: Assume that the compiler supports 'long long'.
10395         * lib/stdint.in.h (int64_t, uint64_t, intmax_t, uintmax_t, INT64_C,
10396         UINT64_C, INTMAX_C, UINTMAX_C): Assume HAVE_LONG_LONG_INT and
10397         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
10398         * m4/stdint.m4 (gl_STDINT_H): Don't require AC_TYPE_LONG_LONG_INT,
10399         AC_TYPE_UNSIGNED_LONG_LONG_INT.
10400         * modules/stdint (Files): Remove longlong.m4.
10401         (Makefile.am): Don't substitute HAVE_LONG_LONG_INT,
10402         HAVE_UNSIGNED_LONG_LONG_INT.
10404         inttypes-incomplete: Assume that the compiler supports 'long long'.
10405         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
10406         _SCNu64_PREFIX): Assume HAVE_LONG_LONG_INT and
10407         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
10408         * m4/inttypes.m4 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): Assume
10409         HAVE_LONG_LONG_INT to be 1.
10410         * modules/inttypes-incomplete (Makefile.am): Don't substitute
10411         HAVE_LONG_LONG_INT, HAVE_UNSIGNED_LONG_LONG_INT.
10413         malloca: Assume that the compiler supports 'long long'.
10414         * lib/malloca.h: Assume HAVE_LONG_LONG_INT to be 1.
10415         * m4/malloca.m4 (gl_MALLOCA): Don't require AC_TYPE_LONG_LONG_INT.
10416         * modules/malloca (Files): Remove longlong.m4.
10417         * modules/relocatable-prog-wrapper (Files): Likewise.
10419         atoll: Assume that the compiler supports 'long long'.
10420         * m4/atoll.m4 (gl_FUNC_ATOLL): Don't require AC_TYPE_LONG_LONG_INT.
10421         * modules/atoll (Files): Remove longlong.m4.
10423         strtoll: Assume that the compiler supports 'long long'.
10424         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Don't require AC_TYPE_LONG_LONG_INT.
10425         * modules/strtoll (Files): Remove longlong.m4.
10427         strtoull: Assume that the compiler supports 'long long'.
10428         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Don't require
10429         AC_TYPE_UNSIGNED_LONG_LONG_INT.
10430         * modules/strtoull (Files): Remove longlong.m4.
10432         strtoimax, strtoumax: Assume that the compiler supports 'long long'.
10433         * lib/strtoimax.c: Assume HAVE_LONG_LONG_INT and
10434         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
10435         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Don't require
10436         AC_TYPE_LONG_LONG_INT.
10437         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't require
10438         AC_TYPE_UNSIGNED_LONG_LONG_INT.
10439         * modules/strtoimax (Files): Remove longlong.m4.
10440         * modules/strtoumax (Files): Likewise.
10442         xstrtoll: Assume that the compiler supports 'long long'.
10443         * lib/xstrtol.h (xstrtoll, xstrtoull): Declare unconditionally.
10444         * modules/xstrtoll (configure.ac): Don't invoke AC_TYPE_LONG_LONG_INT.
10446         vasnprintf: Assume that the compiler supports 'long long'.
10447         * lib/printf-args.h: Assume HAVE_LONG_LONG_INT to be 1.
10448         * lib/printf-args.c (PRINTF_FETCHARGS): Likewise.
10449         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
10450         * lib/vasnprintf.c (MAX_ROOM_NEEDED, VASNPRINTF): Likewise.
10451         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Don't
10452         require AC_TYPE_LONG_LONG_INT.
10453         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
10454         gl_PREREQ_VASNPRINTF): Likewise.
10455         * modules/vasnprintf (Files): Remove longlong.m4.
10456         * modules/c-vasnprintf (Files): Likewise.
10457         * modules/unistdio/u8-vasnprintf (Files): Likewise.
10458         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
10459         * modules/unistdio/u16-vasnprintf (Files): Likewise.
10460         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
10461         * modules/unistdio/u32-vasnprintf (Files): Likewise.
10462         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
10463         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
10465         gethrxtime: Assume that the compiler supports 'long long'.
10466         * lib/xtime.h (xtime_t): Define to 'long long int' always.
10467         (XTIME_PRECISION): Define to 1000000000 always.
10468         (xtime_make, xtime_sec): Optimize accordingly.
10469         * m4/gethrxtime.m4 (gl_XTIME): Don't require AC_TYPE_LONG_LONG_INT.
10470         * modules/gethrxtime (Files): Remove longlong.m4.
10472         integer_length*: Assume that the compiler supports 'long long'.
10473         * lib/integer_length.h (integer_length_ll): Declare unconditionally.
10474         * modules/integer_length (Files): Remove longlong.m4.
10475         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
10476         * modules/integer_length_l (Files): Remove longlong.m4.
10477         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
10478         * modules/integer_length_ll (Files): Remove longlong.m4.
10479         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
10481         count-one-bits: Assume that the compiler supports 'long long'.
10482         * lib/count-one-bits.h (count_one_bits_ll): Define unconditionally.
10483         * m4/count-one-bits.m4: Remove file.
10484         * modules/count-one-bits (Files): Remove it.
10485         (configure.ac): Don't invoke gl_COUNT_ONE_BITS.
10486         * tests/test-count-one-bits.c (main): Test count_one_bits_ll
10487         unconditionally.
10489         count-trailing-zeros: Assume that the compiler supports 'long long'.
10490         * lib/count-trailing-zeros.h (count_trailing_zeros_ll): Define
10491         unconditionally.
10492         * m4/count-trailing-zeros.m4: Remove file.
10493         * modules/count-trailing-zeros (Files): Remove it.
10494         (configure.ac): Don't invoke gl_COUNT_TRAILING_ZEROS.
10495         * tests/test-count-trailing-zeros.c (main): Test count_trailing_zeros_ll
10496         unconditionally.
10498         count-leading-zeros: Assume that the compiler supports 'long long'.
10499         * lib/count-leading-zeros.h (count_leading_zeros_ll): Define
10500         unconditionally.
10501         * m4/count-leading-zeros.m4: Remove file.
10502         * modules/count-leading-zeros (Files): Remove it.
10503         (configure.ac): Don't invoke gl_COUNT_LEADING_ZEROS.
10504         * tests/test-count-leading-zeros.c (main): Test count_leading_zeros_ll
10505         unconditionally.
10507 2019-12-22  Bruno Haible  <bruno@clisp.org>
10509         localcharset: Update support for OpenBSD.
10510         * lib/localcharset.c (alias_table): Map "US-ASCII" to "ASCII".
10512 2019-12-21  Bruno Haible  <bruno@clisp.org>
10514         pthread_sigmask: Avoid test failure on NetBSD 8.0.
10515         * tests/test-pthread_sigmask2.c (main): Skip the error handling test on
10516         NetBSD.
10517         * doc/posix-functions/pthread_sigmask.texi: Mention the NetBSD problem.
10519 2019-12-21  Bruno Haible  <bruno@clisp.org>
10521         threadlib: Improve code structure.
10522         * m4/threadlib.m4: Reorder macros. Add comments.
10524 2019-12-21  Bruno Haible  <bruno@clisp.org>
10526         threadlib: Fix LIBMULTITHREAD on FreeBSD with --enable-threads=isoc.
10527         * m4/threadlib.m4 (gl_STDTHREADLIB_BODY): New macro (some code moved
10528         here from m4/threads.m4).
10529         (gl_THREADLIB_BODY): Don't test whether mtx_lock and cnd_timedwait exist
10530         in libc. Instead, rely on gl_STDTHREADLIB_BODY.
10531         (gl_STDTHREADLIB): New macro.
10532         * m4/threads.m4 (gl_THREADS_H): Require gl_STDTHREADLIB instead of
10533         gl_THREADLIB_BODY and gl_YIELD. Don't set LIBSTDTHREAD here.
10535 2019-12-21  Bruno Haible  <bruno@clisp.org>
10537         sched_yield: Don't depend on threadlib and yield.
10538         * m4/threadlib.m4 (gl_PTHREADLIB): Document that it sets
10539         LIB_SCHED_YIELD.
10540         (gl_PTHREADLIB_BODY): Set LIB_SCHED_YIELD (code moved here from
10541         m4/yield.m4).
10542         * m4/sched_yield.m4 (gl_FUNC_SCHED_YIELD): Require gl_PTHREADLIB, not
10543         gl_THREADLIB and gl_YIELD.
10544         * m4/yield.m4 (gl_YIELD): Require gl_PTHREADLIB. Determine YIELD_LIB
10545         based on $(LIB_SCHED_YIELD).
10546         * m4/threads.m4 (gl_THREADS_H): Don't require gl_YIELD. Use
10547         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
10548         * modules/sched_yield (Files): Remove yield.m4. Add threadlib.m4.
10549         (Depends-on): Remove threadlib.
10550         (Link): Mention $(LIB_SCHED_YIELD), not $(YIELD_LIB).
10551         * modules/threads-h (Files): Remove m4/yield.m4.
10552         * modules/pthread-cond-tests (Makefile.am): Link the programs against
10553         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
10554         * modules/pthread-mutex-tests (Makefile.am): Likewise.
10555         * modules/pthread-once-tests (Makefile.am): Likewise.
10556         * modules/pthread-rwlock-tests (Makefile.am): Likewise.
10557         * modules/pthread-tss-tests (Makefile.am): Likewise.
10559 2019-12-21  Bruno Haible  <bruno@clisp.org>
10561         threads-h: Don't depend on threadlib.
10562         * modules/threads-h (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY,
10563         not gl_THREADLIB_EARLY.
10565 2019-12-21  Bruno Haible  <bruno@clisp.org>
10567         nl_langinfo tests: Fix link error (regression from 2019-12-18).
10568         * modules/nl_langinfo-tests (Makefile.am): Link also test-nl_langinfo
10569         with $(LIB_SETLOCALE).
10571 2019-12-21  Bruno Haible  <bruno@clisp.org>
10573         threadlib: Remove unused dependency (left over from 2019-07-06).
10574         * modules/threadlib (Depends-on): Remove havelib.
10576 2019-12-21  Bruno Haible  <bruno@clisp.org>
10578         New convention for multithread-safety tests.
10579         * tests/test-setlocale_null-mt-one.c: Renamed from
10580         tests/test-setlocale_null-one.c.
10581         * tests/test-setlocale_null-mt-all.c: Renamed from
10582         tests/test-setlocale_null-all.c.
10583         * modules/setlocale-null-tests (Files, Makefile.am): Update.
10585 2019-12-21  Bruno Haible  <bruno@clisp.org>
10587         quotearg tests: Fix conflict with hard-locale tests.
10588         * tests/testlocale: Renamed from tests/locale.
10589         * modules/quotearg-tests (Files): Update.
10590         * tests/test-quotearg.sh (LOCALEDIR): Likewise.
10592 2019-12-21  Bruno Haible  <bruno@clisp.org>
10594         pthread-thread, lock: On z/OS, use PTHREAD_RWLOCK_INITIALIZER_NP.
10595         Reported by Daniel Richard G. in
10596         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>
10597         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00167.html>
10598         * lib/pthread.in.h (PTHREAD_RWLOCK_INITIALIZER): Define to
10599         PTHREAD_RWLOCK_INITIALIZER_NP when possible.
10600         * lib/glthread/lock.h: Allow PTHREAD_RWLOCK_INITIALIZER_NP as an
10601         alternative to PTHREAD_RWLOCK_INITIALIZER.
10602         * lib/glthread/lock.c: Likewise.
10604 2019-12-21  Bruno Haible  <bruno@clisp.org>
10606         memcmp tests: Work around the clang bug.
10607         * tests/test-memcmp.c (main): Use a volatile function pointer to disable
10608         the clang optimization.
10610 2019-12-20  Bruno Haible  <bruno@clisp.org>
10612         localcharset: Add support for z/OS encoding names.
10613         * lib/localcharset.h: Mention which encodings are used as locale
10614         encodings on z/OS.
10616 2019-12-20  Bruno Haible  <bruno@clisp.org>
10618         iconv_open: Add support for z/OS encoding names.
10619         Reported by Daniel Richard G. in
10620         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00172.html>.
10621         * lib/iconv_open-zos.gperf: New file.
10622         * modules/iconv_open (Files): Add iconv_open-zos.gperf.
10623         (Makefile.am): Add rules for generating iconv_open-zos.h from it.
10624         * lib/iconv_open.c (ICONV_FLAVOR_ZOS): New macro.
10625         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): On z/OS, use ICONV_FLAVOR_ZOS.
10626         * doc/posix-functions/iconv_open.texi: Mention z/OS.
10628 2019-12-20  Bruno Haible  <bruno@clisp.org>
10630         doc: Document the problem of the per-thread locale functions on z/OS.
10631         * doc/posix-functions/uselocale.texi: Document the z/OS problem.
10632         * doc/posix-functions/newlocale.texi: Likewise.
10633         * doc/posix-functions/duplocale.texi: Likewise.
10634         * doc/posix-functions/freelocale.texi: Likewise.
10636 2019-12-20  Bruno Haible  <bruno@clisp.org>
10638         localename, gettext: Fix host_os value for z/OS.
10639         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Fix host_os value in
10640         cross-configuration code.
10642 2019-12-19  Jim Meyering  <meyering@fb.com>
10644         nstrftime: avoid a shadowing warning
10645         * lib/nstrftime.c (libc_hidden_def): Rename inner "i" to "j",
10646         to avoid shadowing an "i" declared hundreds of lines above.
10648 2019-12-19  Paul Eggert  <eggert@cs.ucla.edu>
10650         dfa: struct dfamust now uses flexible array
10651         * lib/dfa.c: Include flexmember.h.
10652         (dfamust, dfamustfree): Adjust to struct dfamust change.
10653         This saves a call to malloc+free.
10654         * lib/dfa.h (struct dfamust): Make the final member a
10655         flexible array member.
10656         * modules/dfa (Depends-on): Add flexmember.
10658         dfa: fast->small for array elements
10659         * lib/dfa.c (charclass_word): Use uint_least64_t not uint_fast64_t,
10660         since this type is used in arrays.  This change is more for
10661         documentation than for any practical effect, since the two types
10662         are the same on all known platforms.
10664 2019-12-19  Bruno Haible  <bruno@clisp.org>
10666         iconv tests: Test canonicalized, not system-dependent, encoding names.
10667         * tests/test-iconv.c (main): Revert part of the 2016-08-17 patch.
10668         * modules/iconv-tests (Depends-on): Add iconv_open.
10670 2019-12-18  Bruno Haible  <bruno@clisp.org>
10672         localename: Fix test failure on AIX 7.2.
10673         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Enable nameless
10674         locales on AIX.
10675         * lib/localename.c (gl_locale_name_thread_unsafe): Handle nameless
10676         locales on AIX.
10678 2019-12-18  Paul Eggert  <eggert@cs.ucla.edu>
10680         Improve port of AC_C_RESTRICT to Oracle C++
10681         Problem reported by Christian Biesinger in:
10682         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00159.html
10683         * m4/gnulib-common.m4 (AC_C_RESTRICT): Port better to
10684         Oracle Developer Studio C++ 12.5 or later.
10686 2019-12-18  Bruno Haible  <bruno@clisp.org>
10688         wchar: Fix test failures on AIX and MSVC (regression from 2019-12-07).
10689         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Do define on AIX and MSVC.
10691 2019-12-18  Bruno Haible  <bruno@clisp.org>
10693         localename: Ensure multithread-safety in future changes.
10694         * lib/localename.c (setlocale): Reference the system's setlocale().
10695         (get_locale_t_name): Invoke setlocale_null instead of setlocale.
10696         (gl_locale_name_posix): Likewise.
10697         * modules/localename (Depends-on): Add setlocale-null.
10699 2019-12-18  Bruno Haible  <bruno@clisp.org>
10701         setlocale-null: Make API more useful.
10702         * lib/locale.in.h (setlocale_null_r): Renamed from setlocale_null. All
10703         callers changed.
10704         (setlocale_null): New declaration.
10705         * lib/setlocale_null.c (setlocale_null_androidfix): New function,
10706         extracted from setlocale_null_unlocked.
10707         (setlocale_null_unlocked): Invoke it.
10708         (setlocale_null_r): Renamed from setlocale_null.
10709         (setlocale_null): New function, extracted from setlocale_mtsafe in
10710         setlocale.c.
10711         * lib/setlocale.c: Don't include <errno.h>.
10712         (setlocale_mtsafe): Invoke setlocale_null.
10713         * lib/setlocale-lock.c: Update comments.
10714         * doc/posix-functions/setlocale.texi: Mention both functions.
10716 2019-12-18  Bruno Haible  <bruno@clisp.org>
10718         localename: Optimize code for native Windows.
10719         * lib/localename.c (gl_locale_name_posix): Remove handling of LC_ALL
10720         category (not allowed here).
10722 2019-12-18  Bruno Haible  <bruno@clisp.org>
10724         setlocale: Make calls with NULL argument multithread-safe.
10725         * lib/setlocale.c: Include <errno.h>.
10726         (setlocale_mtsafe): New function.
10727         (setlocale_unixlike): Invoke setlocale_mtsafe instead of setlocale.
10728         (setlocale_improved): Renamed from rpl_setlocale.
10729         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Require gl_FUNC_SETLOCALE_NULL.
10730         Set and define NEED_SETLOCALE_IMPROVED and NEED_SETLOCALE_MTSAFE. Set
10731         LIB_SETLOCALE.
10732         * modules/setlocale (Depends-on): Add setlocale-null. Update conditions.
10733         (Link): New section.
10734         * tests/locale.c: Undefine setlocale.
10735         * tests/test-setlocale_null-one.c: Likewise.
10736         * tests/test-setlocale_null-all.c: Likewise.
10737         * modules/setlocale-tests (Makefile.am): Link the test programs with
10738         $(LIB_SETLOCALE).
10739         * modules/astrxfrm-tests (Makefile.am): Likewise.
10740         * modules/btowc-tests (Makefile.am): Likewise.
10741         * modules/c-ctype-tests (Makefile.am): Likewise.
10742         * modules/c-snprintf-tests (Makefile.am): Likewise.
10743         * modules/c-strcase-tests (Makefile.am): Likewise.
10744         * modules/c-vasprintf-tests (Makefile.am): Likewise.
10745         * modules/c-vsnprintf-tests (Makefile.am): Likewise.
10746         * modules/c-xvasprintf-tests (Makefile.am): Likewise.
10747         * modules/dfa-tests (Makefile.am): Likewise.
10748         * modules/duplocale-tests (Makefile.am): Likewise.
10749         * modules/hard-locale-tests (Makefile.am): Likewise.
10750         * modules/localcharset-tests (Makefile.am): Likewise.
10751         * modules/localename-tests (Makefile.am): Likewise.
10752         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
10753         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
10754         * modules/mbrtowc-tests (Makefile.am): Likewise.
10755         * modules/mbscasecmp-tests (Makefile.am): Likewise.
10756         * modules/mbscasestr-tests (Makefile.am): Likewise.
10757         * modules/mbschr-tests (Makefile.am): Likewise.
10758         * modules/mbscspn-tests (Makefile.am): Likewise.
10759         * modules/mbsinit-tests (Makefile.am): Likewise.
10760         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
10761         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
10762         * modules/mbspbrk-tests (Makefile.am): Likewise.
10763         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
10764         * modules/mbsrchr-tests (Makefile.am): Likewise.
10765         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
10766         * modules/mbsspn-tests (Makefile.am): Likewise.
10767         * modules/mbsstr-tests (Makefile.am): Likewise.
10768         * modules/nl_langinfo-tests (Makefile.am): Likewise.
10769         * modules/quotearg-tests (Makefile.am): Likewise.
10770         * modules/regex-tests (Makefile.am): Likewise.
10771         * modules/strfmon_l-tests (Makefile.am): Likewise.
10772         * modules/strtod-tests (Makefile.am): Likewise.
10773         * modules/strtold-tests (Makefile.am): Likewise.
10774         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
10775         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
10776         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
10777         * modules/unigbrk/ulc-grapheme-breaks-tests (Makefile.am): Likewise.
10778         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
10779         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
10780         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
10781         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
10782         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
10783         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
10784         * modules/wcrtomb-tests (Makefile.am): Likewise.
10785         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
10786         * modules/wcsrtombs-tests (Makefile.am): Likewise.
10787         * modules/wcwidth-tests (Makefile.am): Likewise.
10788         * doc/posix-functions/setlocale.texi: Mention that the multithread-
10789         safety fix is also available in module 'setlocale'.
10791 2019-12-18  Bruno Haible  <bruno@clisp.org>
10793         hard-locale: Make multithread-safe.
10794         * lib/hard-locale.h (hard_locale): Move documentation to here.
10795         * lib/hard-locale.c: Don't include <stdlib.h>.
10796         (GLIBC_VERSION): Remove macro.
10797         (hard_locale): Assume that all systems name the "C" and "POSIX" locales
10798         "C" or "POSIX". Invoke setlocale_null instead of setlocale.
10799         * modules/hard-locale (Depends-on): Remove strdup. Add setlocale-null.
10800         (configure.ac): Require gl_FUNC_SETLOCALE_NULL. Set LIB_HARD_LOCALE.
10801         (Link): New section.
10802         * modules/hard-locale-tests (Makefile.am): Link test-hard-locale against
10803         $(LIB_HARD_LOCALE).
10805 2019-12-18  Bruno Haible  <bruno@clisp.org>
10807         hard-locale: Avoid test failure on Haiku.
10808         * tests/test-hard-locale.c (test_one): Treat Haiku like recent OpenBSD.
10810 2019-12-18  Bruno Haible  <bruno@clisp.org>
10812         setlocale-null: Handle NULL result from setlocale.
10813         * lib/locale.in.h (setlocale_null): Document EINVAL return value.
10814         * lib/setlocale_null.c (setlocale_null_unlocked): Handle NULL result
10815         from setlocale or _wsetlocale.
10817 2019-12-18  Bruno Haible  <bruno@clisp.org>
10819         hard-locale: Add test.
10820         * tests/test-hard-locale.c: New file.
10821         * tests/locale.c: New file.
10822         * modules/hard-locale-tests: New file.
10824 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
10826         dfa: do not match invalid UTF-8
10827         * lib/dfa.c (struct dfa): Grow utf8_anychar_classes member array
10828         from 5 to 9 tokens; this is needed due to the changes to
10829         add_utf8_anychar.
10830         (charclass_index): 2nd arg is now pointer-to-const.
10831         (add_utf8_anychar): Match only valid UTF-8 byte sequences
10832         instead of allowing overlong encodings or surrogate halves.
10834         dfa: simplify charclass by assuming C99
10835         * lib/dfa.c (CHARCLASS_WORD_BITS): Now always 64.
10836         (charclass_word): Now always uint_fast64_t.
10837         (CHARCLASS_PAIR): Remove.
10838         (CHARCLASS_INIT): Take 4 arguments instead of 8.  All uses changed.
10840         fts: tune via calloc
10841         * lib/fts.c (fts_open): Prefer calloc to malloc + memset.
10843         dfa: tune via xzalloc
10844         * lib/dfa.c (dfaoptimize): Prefer xzalloc to xmalloc + memset.
10846 2019-12-17  Bruno Haible  <bruno@clisp.org>
10848         localcharset: Fix multithread-safety bug on Windows and OS/2.
10849         * lib/localcharset.h (locale_charset): Clarify when the result becomes
10850         invalid.
10851         * lib/localcharset.c (locale_charset): Use a stack-allocated buffer to
10852         assemble the result.
10854 2019-12-17  Bruno Haible  <bruno@clisp.org>
10856         localcharset: Optimize code for native Windows.
10857         * lib/localcharset.c (locale_charset): Don't bother calling
10858         setlocale (LC_ALL, NULL) since we're not interested in its result.
10860 2019-12-17  Bruno Haible  <bruno@clisp.org>
10862         nl_langinfo: Fix multithread-safety bug on OpenBSD 3.8.
10863         * lib/nl_langinfo.c (ctype_codeset): Invoke setlocale_null instead of
10864         setlocale.
10865         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Require
10866         gl_FUNC_SETLOCALE_NULL. Set LIB_NL_LANGINFO.
10867         * modules/nl_langinfo (Depends-on): Add setlocale-null.
10869 2019-12-17  Bruno Haible  <bruno@clisp.org>
10871         nl_langinfo: Fix multithread-safety bug on mingw and MSVC.
10872         * lib/nl_langinfo.c (ctype_codeset, rpl_nl_langinfo): Use a
10873         stack-allocated buffer to assemble each result and different static
10874         buffers to return it.
10875         * tests/test-nl_langinfo-mt.c: New file.
10876         * modules/nl_langinfo-tests (Files): Add it.
10877         (Depends-on): Add thread, nanosleep.
10878         (Makefile.am): Build test-nl_langinfo-mt test.
10880 2019-12-17  Bruno Haible  <bruno@clisp.org>
10882         langinfo: Document more details.
10883         * doc/posix-headers/langinfo.texi: List platform details.
10884         * doc/posix-functions/nl_langinfo.texi: Likewise.
10886 2019-12-17  Bruno Haible  <bruno@clisp.org>
10888         mbsinit: Fix compilation error in mingw-w64 7.0 with _UCRT defined.
10889         Reported by Tom Kacvinsky <tom.kacvinsky@vector.com>
10890         and Martin Storsjö <martin@martin.st>
10891         in <https://savannah.gnu.org/bugs/?57406>.
10892         * lib/mbsinit.c: Accommodate an MSVC-like mbstate_t definition with
10893         mingw.
10895 2019-12-17  Bruno Haible  <bruno@clisp.org>
10897         glob: Avoid warning on mingw.
10898         Reported by Christian Biesinger <cbiesinger@google.com> in
10899         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00122.html>.
10900         * lib/glob.c (__stat64): Undefine first.
10902 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
10904         xalloc: tune xzalloc for fresh allocations
10905         * lib/xmalloc.c (xzalloc): Use xcalloc rather than xmalloc+memset,
10906         because when the memory is freshly allocated from the OS via sbrk
10907         or mmap, calloc can avoid doing the memset.
10909         dfa: new function dfacopysyntax
10910         * lib/dfa.c (struct dfa): Move syntax member later so
10911         that dfacopysyntax can easily clear earlier members.
10912         (dfacopysyntax): New function, used by Gawk.
10914 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
10916         dfa: port _GL_ATTRIBUTE_MALLOC to Gawk
10917         Gawk does not use Gnulib, and does not define _GL_ATTRIBUTE_MALLOC.
10918         * lib/dfa.h (_GL_ATTRIBUTE_MALLOC): Define to empty
10919         if not already defined.
10921         dfa: remove one dependency on MB_CUR_MAX
10922         * lib/dfa.c (dfamust): No need to refer to MB_CUR_MAX here.
10924         dfa: remove struct lexer_state.cur_mb_len
10925         * lib/dfa.c (struct lexer_state): Remove cur_mb_len member,
10926         as it’s not needed and the code is simpler without it.
10927         All uses removed.
10929 2019-12-16  Bruno Haible  <bruno@clisp.org>
10931         setlocale-null: Remove need for -lpthread on musl libc, *BSD, Haiku.
10932         Reported by Arnold Robbins <arnold@skeeve.com>.
10933         * lib/setlocale_null.c (c11_threads_in_use, pthread_in_use): New macros,
10934         copied from lib/glthread/lock.h.
10935         (pthread_mutex_lock, pthread_mutex_unlock): Mark as weak.
10936         (setlocale_null_with_lock): If pthread_in_use() is false, use
10937         setlocale_null_unlocked directly.
10938         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): New macro, extracted from
10939         gl_THREADLIB_BODY. Define HAVE_WEAK_SYMBOLS.
10940         (gl_THREADLIB_BODY): Invoke gl_WEAK_SYMBOLS.
10941         * m4/setlocale_null.m4 (gl_FUNC_SETLOCALE_NULL): Invoke gl_WEAK_SYMBOLS.
10942         Set LIB_SETLOCALE_NULL to empty if weak symbols are supported.
10943         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Add comment.
10945 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
10947         dfa: make dfasyntax thread-safe
10948         Problem reported by Bruno Haible in:
10949         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00099.html
10950         * lib/dfa.c: Do not include locale.h.
10951         (struct dfa): Remove simple_locale member.
10952         All uses replaced by localeinfo.simple.
10953         (using_simple_locale): Remove; now present (with some
10954         changes) in localeinfo.c.
10955         (dfasyntax): No need to initialize removed member.
10957         localeinfo: record whether locale is simple
10958         * lib/localeinfo.c (using_simple_locale): New function,
10959         copied here from lib/dfa.c but with a change: it uses
10960         strcoll for its heuristic, instead of using setlocale.
10961         This lets it be thread-safe.
10962         * lib/localeinfo.h (struct localeinfo): New member ‘simple’.
10964 2019-12-15  Bruno Haible  <bruno@clisp.org>
10966         duplocale: Fix multithread-safety bug on AIX.
10967         * lib/duplocale.c: Don't include <stdlib.h>.
10968         (rpl_duplocale): Invoke setlocale_null instead of setlocale.
10969         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Require gl_FUNC_SETLOCALE_NULL.
10970         Set LIB_DUPLOCALE.
10971         * modules/duplocale (Depends-on): Add setlocale-null.
10972         (Link): New section.
10973         * modules/duplocale-tests (Makefile.am): Link test-duplocale with
10974         $(LIB_DUPLOCALE).
10976 2019-12-15  Bruno Haible  <bruno@clisp.org>
10978         setlocale-null: Add tests.
10979         * tests/test-setlocale_null.c: New file.
10980         * tests/test-setlocale_null-one.c: New file.
10981         * tests/test-setlocale_null-all.c: New file.
10982         * modules/setlocale-null-tests: New file.
10984         setlocale-null: New module.
10985         * lib/locale.in.h (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX,
10986         setlocale_null): New declarations.
10987         * lib/setlocale_null.c: New file.
10988         * lib/setlocale-lock.c: New file.
10989         * m4/threadlib.m4 (gl_PTHREADLIB_BODY): Define C macro HAVE_PTHREAD_API.
10990         * m4/setlocale_null.m4: New file.
10991         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize
10992         GNULIB_SETLOCALE_NULL.
10993         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE_NULL.
10994         * modules/setlocale-null: New file.
10995         * doc/posix-functions/setlocale.texi: Mention the new module.
10997 2019-12-15  Bruno Haible  <bruno@clisp.org>
10999         lock tests: Skip test when no multithreading is enabled.
11000         * tests/test-rwlock1.c: Skip the test when no multithreading is enabled.
11002 2019-12-14  Bruno Haible  <bruno@clisp.org>
11004         locale, duplocale, localename: Fix last patch.
11005         Reported by Daniel Richard G. in
11006         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00093.html>.
11007         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE):
11008         Don't define if locale_t does not exist.
11010 2019-12-13  Bruno Haible  <bruno@clisp.org>
11012         locale, duplocale, localename: Fix errors if locale_t does not exist.
11013         Reported by Daniel Richard G. in
11014         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00078.html>.
11015         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE): New
11016         macros.
11017         * tests/test-locale.c: Test HAVE_WORKING_NEWLOCALE instead of
11018         HAVE_NEWLOCALE.
11019         * tests/test-localename.c: Likewise.
11020         * tests/test-duplocale.c: Test HAVE_WORKING_DUPLOCALE instead of
11021         HAVE_DUPLOCALE.
11022         * tests/test-locale-c++.cc: Likewise.
11024 2019-12-13  Bruno Haible  <bruno@clisp.org>
11026         wcstok: Fix test failure on HP-UX.
11027         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Set REPLACE_WCSTOK to 1 on HP-UX.
11028         * doc/posix-functions/wcstok.texi: Mention the HP-UX bug.
11030 2019-12-12  Bruno Haible  <bruno@clisp.org>
11032         strtod, strtold tests: Avoid test failure on AIX 7.2.
11033         * tests/test-strtod1.c (main): Allow implementations in which ',' and
11034         '.' both are radix characters.
11035         * tests/test-strtold1.c (main): Likewise.
11037 2019-12-12  Paul Eggert  <eggert@cs.ucla.edu>
11039         dfa: prefer ptrdiff_t for API, too
11040         Also, use ‘idx_t’ for ptrdiff_t values that must be nonnegative,
11041         but do this only for internal use for now.
11042         * NEWS: Mention the API change.
11043         * lib/dfa.c (idx_t, IDX_MAX): New type and max value, for internal
11044         use for now.  Use them instead of ptrdiff_t and PTRDIFF_MAX for
11045         values known to be nonnegative.
11046         (dfaparse, dfaexec_mb, dfaexec_sb, dfaexec_noop, dfaexec):
11047         Prefer idx_t or ptrdiff_t to size_t for API.
11048         * lib/dfa.h (dfaparse, dfacomp, dfaexec):
11049         Prefer ptrdiff_t to size_t for API.
11051         stdalign: port to xlclang 16.01
11052         Problem reportd by Bruno Haible in:
11053         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00064.html
11054         * lib/stdalign.in.h (_Alignas): Do not use __attribute__
11055         ((__aligned__ (...))) with xlclang, as a top-level
11056         ‘char __attribute__ ((__aligned__ (8))) c;’ does not work with
11057         xlclang version 16.01.0000.0001; the alignment directive is ignored.
11059 2019-12-12  Bruno Haible  <bruno@clisp.org>
11061         duplocale: Fix test failure on AIX 7.2 with xlclang.
11062         * lib/duplocale.c: Include <stdlib.h>.
11063         (rpl_duplocale): Use a heap-allocated copy of the first setlocale return
11064         value.
11066 2019-12-12  Bruno Haible  <bruno@clisp.org>
11068         stddef: Document the AIX xlc issue.
11069         * doc/posix-headers/stddef.texi: Document the NULL issue with AIX xlc.
11071 2019-12-12  Bruno Haible  <bruno@clisp.org>
11073         duplocale: Don't attempt to override if locale_t does not exist.
11074         Reported by Daniel Richard G. in
11075         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00039.html>.
11076         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): If locale_t does not exist, set
11077         HAVE_DUPLOCALE to 0.
11079 2019-12-12  Bruno Haible  <bruno@clisp.org>
11081         wcwidth: Avoid test failure on AIX 7.2.
11082         * tests/test-wcwidth.c (main): Don't fail if wcwidth(0x200B) is
11083         negative.
11084         * doc/posix-functions/wcwidth.texi: Mention the AIX issue.
11086 2019-12-12  Bruno Haible  <bruno@clisp.org>
11088         ilogbl: Work around Cygwin bug.
11089         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Test whether ilogbl(0.0L) is
11090         correct.
11091         * doc/posix-functions/ilogbl.texi: Mention the Cygwin bug.
11093 2019-12-12  Bruno Haible  <bruno@clisp.org>
11095         strtold: Work around Cygwin bug.
11096         * m4/strtold.m4 (gl_FUNC_STRTOLD): Add test for the underflow problem.
11097         If it is present, define STRTOLD_HAS_UNDERFLOW_BUG.
11098         * lib/strtod.c (HAVE_UNDERLYING_STRTOD): Set to 0 if
11099         STRTOLD_HAS_UNDERFLOW_BUG is defined.
11100         * doc/posix-functions/strtold.texi: Mention the Cygwin bug.
11102 2019-12-12  Bruno Haible  <bruno@clisp.org>
11104         strtold: Fix autoconf test.
11105         * m4/strtold.m4 (gl_FUNC_STRTOLD): Test strtold, not strtod.
11107 2019-12-11  Bruno Haible  <bruno@clisp.org>
11109         fsync tests: Skip test that is known to fail.
11110         * doc/posix-functions/fsync.texi: Update list of platforms.
11111         * tests/test-fsync.c (main): Skip test with read-only file descriptors
11112         that is known to fail on AIX and Cygwin.
11114 2019-12-11  Bruno Haible  <bruno@clisp.org>
11116         getaddrinfo: Fix calling convention in 32-bit mode on native Windows.
11117         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Test whether getaddrinfo has a
11118         non-POSIX signature. If so, set REPLACE_GETADDRINFO. Define
11119         HAVE_GETADDRINFO as a C macro.
11120         * lib/netdb.in.h (getaddrinfo, freeaddrinfo): If REPLACE_GETADDRINFO,
11121         declare as replacement functions.
11122         * lib/getaddrinfo.c (getaddrinfo, freeaddrinfo): If HAVE_GETADDRINFO,
11123         define as no-op overrides.
11124         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize REPLACE_GETADDRINFO.
11125         * modules/netdb (Makefile.am): Substitute REPLACE_GETADDRINFO.
11126         * modules/getaddrinfo (Depends-on, configure.ac): Test
11127         REPLACE_GETADDRINFO.
11128         * doc/posix-functions/getaddrinfo.texi: Mention calling convention
11129         problem.
11130         * doc/posix-functions/freeaddrinfo.texi: Mention header file and calling
11131         convention problems.
11133 2019-12-11  Paul Eggert  <eggert@cs.ucla.edu>
11135         dfa: prefer signed integers for internals
11136         Signed integers can be checked more easily for integer overflow.
11137         * lib/dfa.c (position, struct lexer_state, struct parser_state)
11138         (struct dfa, mbs_to_wchar, fetch_wc, parse_bracket_exp)
11139         (struct lexptr, lex, addtok_mb, add_utf8_anychar, atom)
11140         (nsubtoks, copytoks, closure, alloc_position_set, delete)
11141         (replace, state_index, epsclosure, charclass_context)
11142         (state_separate_contexts, merge_nfa_state, dfaoptimize)
11143         (dfaanalyze, build_state, dfaexec_main, dfa_supported)
11144         (maybe_disable_superset_dfa, dfassbuild, dfafree, enlist)
11145         (comsubs, inboth, allocmust):
11146         Prefer a signed to an unsigned integer when calculating indexes,
11147         unless the integer is part of the external API (a bigger deal,
11148         and to be done later).
11150         dfa: fix index overflow
11151         * lib/dfa.c (compare): Avoid integer overflow when analyzing
11152         very large regular expressions.
11154         dfa: update commentary for previous change
11155         * NEWS: Mention the change.
11156         * lib/dfa.c, lib/dfa.h (dfaparse, dfamust, dfacomp): Update comments.
11158 2019-12-11  Norihiro Tanaka  <noritnk@kcn.ne.jp>
11160         dfa: separate parse and compile phase
11161         ‘dfamust’ must be called after parsing and before tokens are
11162         reordered, but both are executed in the compilation phase.
11163         Token reordering was introduced in Gnulib commit
11164         2018-10-22T15:01:08Z!noritnk@kcn.ne.jp
11165         (5c7a0371823876cca7a1347fa09ca26bbbff0c98).
11166         * lib/dfa.c (dfaparse): Change it to global function.
11167         (dfacomp): If first argument is NULL, skip parse.
11168         * lib/dfa.h: (dfaparse): Add a prototype.
11170 2019-12-11  Bruno Haible  <bruno@clisp.org>
11172         unistd tests: Fix link error on MSVC.
11173         * modules/unistd-c++-tests (Makefile.am): Link test-unistd-c++ against
11174         $(LIB_GETLOGIN).
11176 2019-12-11  Bruno Haible  <bruno@clisp.org>
11178         doc: Document that ISO C or POSIX substitutes are supported in C++ mode.
11179         * doc/gnulib-intro.texi (Various Kinds of Modules): Document that ISO C
11180         and POSIX substitutes are supported in C++ mode.
11181         * NEWS: Likewise.
11183 2019-12-11  Bruno Haible  <bruno@clisp.org>
11185         stddef: Fix compilation error in C++ mode on MSVC.
11186         * lib/stddef.in.h (max_align_t): With MSVC in C++ mode, don't define it;
11187         instead, include <cstddef>.
11189 2019-12-11  Bruno Haible  <bruno@clisp.org>
11191         unistd: Fix compilation error in C++ mode on MSVC.
11192         * lib/unistd.in.h: Don't do include[_next] <unistd.h> if the platform
11193         does not have <unistd.h>.
11195 2019-12-11  Bruno Haible  <bruno@clisp.org>
11197         locale: Fix compilation error in C++ mode on MSVC.
11198         * m4/locale_h.m4 (gl_LOCALE_H): Don't set REPLACE_STRUCT_LCONV on MSVC.
11199         * lib/locale.in.h (int_p_cs_precedes, int_p_sign_posn,
11200         int_p_sep_by_space, int_n_cs_precedes, int_n_sign_posn,
11201         int_n_sep_by_space): Define as macros on MSVC.
11203 2019-12-11  Bruno Haible  <bruno@clisp.org>
11205         wchar: Fix compilation error in C++ mode on MSVC.
11206         * lib/wchar.in.h (mbstate_t): Don't override on MSVC.
11208 2019-12-11  Bruno Haible  <bruno@clisp.org>
11210         pthread-thread: Fix compilation error in C++ mode on MSVC.
11211         * lib/pthread.in.h (pthread_exit): Don't use _Noreturn in the
11212         _GL_CXXALIAS_RPL invocation.
11214 2019-12-08  Bruno Haible  <bruno@clisp.org>
11216         Fix compilation errors in C++ mode on Haiku.
11217         * lib/stdio.in.h (vdprintf): Disable _GL_CXXALIASWARN invocation on
11218         non-glibc systems.
11219         * lib/spawn.in.h (posix_spawnattr_getschedpolicy,
11220         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
11221         posix_spawnattr_setschedparam): Likewise.
11222         * lib/stdlib.in.h (random, initstate_r, setstate_r): Use
11223         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
11224         * lib/unistd.in.h (usleep): Likewise.
11226 2019-12-08  Bruno Haible  <bruno@clisp.org>
11228         Fix compilation errors in 32-bit C++ mode on HP-UX 11/ia64.
11229         * m4/largefile.m4 (gl_SET_LARGEFILE_SOURCE): New macro.
11230         * modules/fseeko (configure.ac-early): Require it instead of
11231         AC_FUNC_FSEEKO.
11232         * modules/ftello (configure.ac-early): Likewise.
11233         * modules/fflush (configure.ac-early): Likewise.
11235 2019-12-08  Bruno Haible  <bruno@clisp.org>
11237         Fix compilation error in C++ mode on HP-UX 11.
11238         * lib/unistd.in.h (getpagesize): Declare on HP-UX.
11239         * doc/glibc-functions/getpagesize.texi: Mention the HP-UX problem.
11241 2019-12-08  Bruno Haible  <bruno@clisp.org>
11243         Fix compilation errors on HP-UX 11/ia64.
11244         * lib/math.in.h (copysignf, fmaf, fma): Undefine before
11245         _GL_FUNCDECL_SYS.
11247 2019-12-08  Bruno Haible  <bruno@clisp.org>
11249         Fix compilation error in C++ mode on OpenBSD.
11250         * lib/signal.in.h (signal): Declare on OpenBSD.
11252 2019-12-08  Bruno Haible  <bruno@clisp.org>
11254         math tests: Don't fail if isfinite, isinf, isnan, signbit is a macro.
11255         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Use #warning
11256         instead of #error.
11258 2019-12-08  Bruno Haible  <bruno@clisp.org>
11260         Fix compilation errors in C++ mode on FreeBSD.
11261         * lib/pthread.in.h (pthread_exit): Remove _Noreturn from prototype.
11262         * tests/test-pthread-c++.cc (GNULIB_NAMESPACE::pthread_exit): Likewise.
11263         * lib/threads.in.h (thrd_exit): Likewise.
11264         * tests/test-threads-c++.cc (GNULIB_NAMESPACE::thrd_exit): Likewise.
11266 2019-12-08  Bruno Haible  <bruno@clisp.org>
11268         Fix compilation errors in C++ mode on macOS and FreeBSD.
11269         * lib/math.in.h (isfinite, isinf, isnan, signbit): In C++ mode on macOS
11270         or FreeBSD with clang, use the approach without C preprocessor macro.
11272 2019-12-07  Bruno Haible  <bruno@clisp.org>
11274         Fix compilation errors in C++ mode on AIX with xlclang++.
11275         Reported by Christian Biesinger <cbiesinger@google.com> in
11276         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
11277         * lib/wchar.in.h (mbstate_t): Don't override on AIX.
11279 2019-12-07  Bruno Haible  <bruno@clisp.org>
11281         Document compilation error in C++ mode on NetBSD 8.0.
11282         * doc/posix-headers/monetary.texi: Mention the NetBSD bug.
11284 2019-12-07  Bruno Haible  <bruno@clisp.org>
11286         Fix compilation errors in C++ mode on Solaris 10.
11287         * m4/stdbool.m4 (AM_STDBOOL_H): Require AC_CANONICAL_HOST. Set STDBOOL_H
11288         to non-empty on Solaris with a non-GCC compiler.
11289         * doc/posix-headers/stdbool.texi: Mention the Solaris issue.
11291 2019-12-07  Bruno Haible  <bruno@clisp.org>
11293         Reword NEWS entry.
11294         * NEWS: Reword the latest NEWS entry.
11296 2019-12-05  Pino Toscano  <ptoscano@redhat.com>
11298         Move xstrtol_fatal to a new xstrtol-error module.
11299         * lib/xstrtol.h: Stop including <getopt.h>.
11300         (xstrtol_fatal): Move ...
11301         * lib/xstrtol-error.h: ... here.  New file.
11302         * lib/xstrtol-error.c: Include xstrtol-error.h instead of xstrtol.h.
11303         * tests/test-xstrtol.c: Likewise.
11304         * modules/xstrtol (Files): Remove lib/xstrtol-error.c.
11305         (Depends-on): Remove exitfail, error, getopt-gnu, and gettext-h.
11306         (Makefile.am): Remove xstrtol-error.c from lib_SOURCES.
11307         * modules/xstrtol-error: New file.
11308         * modules/xstrtol-tests (Depends-on): Add xstrtol-error.
11309         * MODULES.html.sh: Add xstrtol-error.
11310         * NEWS: Document the change.
11312 2019-12-06  Paul Eggert  <eggert@cs.ucla.edu>
11314         nstrftime: better width support for %N, %z
11315         * lib/nstrftime.c (width_add, width_add1, width_cpy):
11316         New macros, which generalize ‘add’, ‘add1’, ‘cpy’ by adding
11317         a new WIDTH parameter.
11318         (add, add1, cpy): Use these macros.
11319         (width_add): Do not treat digits == 0 as a special case,
11320         do not pad if padding is ‘-’, and do not use a negative width.
11321         (__strftime_internal): Redo formatting of nanoseconds and numeric
11322         timezones to avoid buffer misuse in unusual cases, and so that
11323         widths make more sense.  Add support for widths greater than 9 to
11324         the %N format; they are zero filled on the right.
11325         * tests/test-nstrftime.c (posixtm_test): Add a %12N test.
11327 2019-12-05  Bruno Haible  <bruno@clisp.org>
11329         Fix compilation errors in C++ mode on Solaris 10 and Solaris 11.
11330         * m4/isfinite.m4 (gl_ISFINITE): Require AC_CANONICAL_HOST. On Solaris,
11331         set REPLACE_ISFINITE to 1.
11332         * m4/isinf.m4 (gl_ISINF): Require AC_CANONICAL_HOST. On Solaris, set
11333         REPLACE_ISINF to 1.
11334         * m4/signbit.m4 (gl_SIGNBIT): On Solaris, set REPLACE_SIGNBIT to 1.
11335         * lib/pthread.in.h (pthread_create, pthread_once, pthread_key_create):
11336         Use _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
11337         * lib/threads.in.h (call_once): Likewise.
11338         * lib/iconv.in.h (iconv): Likewise.
11340 2019-12-05  Bruno Haible  <bruno@clisp.org>
11342         wchar: Add more C++ tests.
11343         Reported by Christian Biesinger <cbiesinger@google.com> in
11344         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
11345         * tests/test-wchar-c++3.cc: New file.
11346         * modules/wchar-c++-tests (Files): Add it.
11347         (Makefile.am): Compile it.
11349 2019-12-05  Bruno Haible  <bruno@clisp.org>
11351         Add more C++ tests.
11353         assert-h: Add C++ tests.
11354         * tests/test-assert-h-c++.cc: New file.
11355         * tests/test-assert-h-c++2.cc: New file.
11356         * modules/assert-h-c++-tests: New file.
11357         * modules/assert-h-tests: New file.
11359         ctype: Add C++ tests.
11360         * tests/test-ctype-c++.cc: New file.
11361         * tests/test-ctype-c++2.cc: New file.
11362         * modules/ctype-c++-tests: New file.
11363         * modules/ctype-tests (Depends-on): Add ctype-c++-tests.
11365         errno: Add C++ tests.
11366         * tests/test-errno-c++.cc: New file.
11367         * tests/test-errno-c++2.cc: New file.
11368         * modules/errno-c++-tests: New file.
11369         * modules/errno-tests (Depends-on): Add errno-c++-tests.
11371         float: Add C++ tests.
11372         * tests/test-float-c++.cc: New file.
11373         * tests/test-float-c++2.cc: New file.
11374         * modules/float-c++-tests: New file.
11375         * modules/float-tests (Depends-on): Add float-c++-tests.
11377         inttypes: Add more C++ tests.
11378         * tests/test-inttypes-c++2.cc: New file.
11379         * modules/inttypes-c++-tests (Files): Add it.
11380         (Makefile.am): Compile it.
11382         limits-h: Add C++ tests.
11383         * tests/test-limits-h-c++.cc: New file.
11384         * tests/test-limits-h-c++2.cc: New file.
11385         * modules/limits-h-c++-tests: New file.
11386         * modules/limits-h-tests (Depends-on): Add limits-h-c++-tests.
11388         stdarg: Add C++ tests.
11389         * tests/test-stdarg-c++.cc: New file.
11390         * tests/test-stdarg-c++2.cc: New file.
11391         * modules/stdarg-c++-tests: New file.
11392         * modules/stdarg-tests: New file.
11394         stdbool: Add C++ tests.
11395         * tests/test-stdbool-c++.cc: New file.
11396         * tests/test-stdbool-c++2.cc: New file.
11397         * modules/stdbool-c++-tests: New file.
11398         * modules/stdbool-tests (Depends-on): Add stdbool-c++-tests.
11400         stddef: Add C++ tests.
11401         * tests/test-stddef-c++.cc: New file.
11402         * tests/test-stddef-c++2.cc: New file.
11403         * modules/stddef-c++-tests: New file.
11404         * modules/stddef-tests (Depends-on): Add stddef-c++-tests.
11406         stdint: Add C++ tests.
11407         * tests/test-stdint-c++.cc: New file.
11408         * tests/test-stdint-c++2.cc: New file.
11409         * modules/stdint-c++-tests: New file.
11410         * modules/stdint-tests (Depends-on): Add stdint-c++-tests.
11412         wchar: Add more C++ tests.
11413         * tests/test-wchar-c++2.cc: New file.
11414         * modules/wchar-c++-tests (Files): Add it.
11415         (Makefile.am): Compile it.
11417         wctype-h: Add more C++ tests.
11418         * tests/test-wctype-h-c++2.cc: New file.
11419         * modules/wctype-h-c++-tests (Files): Add it.
11420         (Makefile.am): Compile it.
11422 2019-12-04  Bruno Haible  <bruno@clisp.org>
11424         Fix compilation errors in C++ mode with xlclang++ on AIX.
11425         * lib/math.in.h (expm1l, fmal, remainderl, roundl): Don't redeclare in
11426         C++ mode on AIX.
11427         (isfinite, signbit): In C++ mode on AIX with clang, use the approach
11428         without C preprocessor macro.
11429         * lib/pthread.in.h (pthread_exit): Use _GL_CXXALIAS_SYS_CAST instead of
11430         _GL_CXXALIAS_SYS.
11431         * lib/threads.in.h (thrd_exit): Likewise.
11433 2019-12-04  Bruno Haible  <bruno@clisp.org>
11435         Fix compilation error in C++ mode on Solaris 11 OpenIndiana.
11436         * lib/wchar.in.h (wcsnrtombs): Force declaration in C++ mode on Solaris.
11437         * doc/posix-functions/wcsnrtombs.texi: Mention the issue.
11439 2019-12-04  Bruno Haible  <bruno@clisp.org>
11441         Disable more _GL_CXXALIASWARN on all platforms other than glibc systems.
11442         * lib/wchar.in.h (wcsnrtombs, wcwidth, wcswidth): Disable
11443         _GL_CXXALIASWARN invocation on non-glibc systems.
11444         * lib/wctype.in.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswgraph,
11445         iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit, wctype,
11446         iswctype, towlower, towupper): Likewise.
11448 2019-12-03  Bruno Haible  <bruno@clisp.org>
11450         Avoid hassles caused by [[noreturn]] in C++.
11451         Reported by Christian Biesinger <cbiesinger@google.com> in
11452         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00010.html>.
11453         * m4/gnulib-common.m4 (gl_COMMON_BODY): Disable the use of [[noreturn]].
11454         * lib/_Noreturn.h: Likewise.
11456 2019-12-02  Bruno Haible  <bruno@clisp.org>
11458         Fix mistakes in --enable-threads=isoc fixes from 2019-12-01.
11459         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Use LIBPMULTITHREAD, not
11460         LIBMULTITHREAD.
11461         * m4/pthread-rwlock.m4 (gl_PTHREAD_RWLOCK): Likewise.
11462         * m4/pthread-thread.m4 (gl_PTHREAD_THREAD): Likewise.
11463         * m4/timer_time.m4 (gl_TIMER_TIME): Likewise. Require gl_PTHREADLIB, not
11464         gl_THREADLIB.
11465         * modules/timer-time (Depends-on): Add pthread-h. Remove threadlib.
11467 2019-12-02  Bruno Haible  <bruno@clisp.org>
11469         Fix some more link errors with --enable-threads=isoc.
11470         * modules/pthread-mutex (Depends-on): Test $gl_threads_api differently.
11471         * modules/pthread-rwlock (Depends-on): Likewise.
11473 2019-12-02  Bruno Haible  <bruno@clisp.org>
11475         Fix link errors with --enable-threads=posix on AIX.
11476         * modules/string-c++-tests (Makefile.am): Link the test-string-c++
11477         program with $(LIBTHREAD).
11478         * modules/wchar-c++-tests (Makefile.am): Link the test-wchar-c++
11479         program with $(LIBTHREAD).
11481 2019-12-02  Bruno Haible  <bruno@clisp.org>
11483         Fix link errors with --enable-threads=posix on AIX.
11484         * modules/mbrtowc (Link): New section.
11485         * modules/acl (Link): Likewise.
11486         * modules/argmatch (Link): Likewise.
11487         * modules/backup-rename (Link): Likewise.
11488         * modules/backupfile (Link): Likewise.
11489         * modules/closein (Link): Likewise.
11490         * modules/closeout (Link): Likewise.
11491         * modules/copy-file (Link): Likewise.
11492         * modules/csharpcomp (Link): Likewise.
11493         * modules/csharpexec (Link): Likewise.
11494         * modules/dfa (Link): Likewise.
11495         * modules/exclude (Link): Likewise.
11496         * modules/fnmatch (Link): Likewise.
11497         * modules/fnmatch-gnu (Link): Likewise.
11498         * modules/fnmatch-posix (Link): Likewise.
11499         * modules/glob (Link): Likewise.
11500         * modules/human (Link): Likewise.
11501         * modules/javacomp (Link): Likewise.
11502         * modules/javaexec (Link): Likewise.
11503         * modules/javaversion (Link): Likewise.
11504         * modules/mbfile (Link): Likewise.
11505         * modules/mbiter (Link): Likewise.
11506         * modules/mbmemcasecmp (Link): Likewise.
11507         * modules/mbmemcasecoll (Link): Likewise.
11508         * modules/mbrlen (Link): Likewise.
11509         * modules/mbscasecmp (Link): Likewise.
11510         * modules/mbscasestr (Link): Likewise.
11511         * modules/mbschr (Link): Likewise.
11512         * modules/mbscspn (Link): Likewise.
11513         * modules/mbsinit (Link): Likewise.
11514         * modules/mbslen (Link): Likewise.
11515         * modules/mbsncasecmp (Link): Likewise.
11516         * modules/mbsnlen (Link): Likewise.
11517         * modules/mbsnrtowcs (Link): Likewise.
11518         * modules/mbspbrk (Link): Likewise.
11519         * modules/mbspcasecmp (Link): Likewise.
11520         * modules/mbsrchr (Link): Likewise.
11521         * modules/mbsrtowcs (Link): Likewise.
11522         * modules/mbssep (Link): Likewise.
11523         * modules/mbsspn (Link): Likewise.
11524         * modules/mbsstr (Link): Likewise.
11525         * modules/mbstok_r (Link): Likewise.
11526         * modules/mbswidth (Link): Likewise.
11527         * modules/mbuiter (Link): Likewise.
11528         * modules/mkdir-p (Link): Likewise.
11529         * modules/propername (Link): Likewise.
11530         * modules/quote (Link): Likewise.
11531         * modules/quotearg (Link): Likewise.
11532         * modules/quotearg-simple (Link): Likewise.
11533         * modules/regex-quote (Link): Likewise.
11534         * modules/rpmatch (Link): Likewise.
11535         * modules/sh-quote (Link): Likewise.
11536         * modules/system-quote (Link): Likewise.
11537         * modules/trim (Link): Likewise.
11538         * modules/unistdio/ulc-asnprintf (Link): Likewise.
11539         * modules/unistdio/ulc-fprintf (Link): Likewise.
11540         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
11541         * modules/unistdio/ulc-vasprintf (Link): Likewise.
11542         * modules/unistdio/ulc-vfprintf (Link): Likewise.
11543         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
11544         * modules/unistdio/ulc-vsprintf (Link): Likewise.
11545         * modules/xfreopen (Link): Likewise.
11546         * modules/xmemcoll (Link): Likewise.
11547         * modules/yesno (Link): Likewise.
11548         * modules/acl-tests (Makefile.am): Link the programs with $(LIBTHREAD).
11549         * modules/argmatch-tests (Makefile.am): Likewise.
11550         * modules/closein-tests (Makefile.am): Likewise.
11551         * modules/copy-file-tests (Makefile.am): Likewise.
11552         * modules/dfa-tests (Makefile.am): Likewise.
11553         * modules/fnmatch-tests (Makefile.am): Likewise.
11554         * modules/glob-tests (Makefile.am): Likewise.
11555         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
11556         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
11557         * modules/mbrtowc-tests (Makefile.am): Likewise.
11558         * modules/mbscasecmp-tests (Makefile.am): Likewise.
11559         * modules/mbscasestr-tests (Makefile.am): Likewise.
11560         * modules/mbschr-tests (Makefile.am): Likewise.
11561         * modules/mbscspn-tests (Makefile.am): Likewise.
11562         * modules/mbsinit-tests (Makefile.am): Likewise.
11563         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
11564         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
11565         * modules/mbspbrk-tests (Makefile.am): Likewise.
11566         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
11567         * modules/mbsrchr-tests (Makefile.am): Likewise.
11568         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
11569         * modules/mbsspn-tests (Makefile.am): Likewise.
11570         * modules/mbsstr-tests (Makefile.am): Likewise.
11571         * modules/quotearg-tests (Makefile.am): Likewise.
11572         * modules/quotearg-simple-tests (Makefile.am): Likewise.
11573         * modules/readtokens-tests (Makefile.am): Likewise.
11574         * modules/regex-quote-tests (Makefile.am): Likewise.
11575         * modules/sh-quote-tests (Makefile.am): Likewise.
11576         * modules/system-quote-tests (Makefile.am): Likewise.
11577         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
11578         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
11579         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
11580         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
11581         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
11582         * modules/yesno-tests (Makefile.am): Likewise.
11584 2019-12-02  Bruno Haible  <bruno@clisp.org>
11586         Simplify link sections.
11587         * modules/threadlib (Link): Stop mentioning LTLIBTHREAD.
11588         * modules/lock (Link): Likewise.
11589         * modules/cond (Link): Likewise.
11590         * modules/tls (Link): Likewise.
11591         * modules/yield (Link): Likewise.
11592         * modules/regex (Link): Likewise.
11593         * modules/localename (Link): Likewise.
11594         * modules/unicase/locale-language (Link): Likewise.
11595         * modules/thread (Link): Stop mentioning LTLIBMULTITHREAD.
11597 2019-12-02  Bruno Haible  <bruno@clisp.org>
11599         thread tests: Avoid link error with --enable-threads=isoc+posix on AIX.
11600         * tests/test-thread_self.c (main): Disable test on AIX.
11602 2019-12-01  Bruno Haible  <bruno@clisp.org>
11604         pthread-h: Fix link errors with --enable-threads=isoc on AIX.
11605         * m4/threadlib.m4 (gl_ANYTHREADLIB_EARLY): New macro, extracted from
11606         gl_THREADLIB_EARLY_BODY.
11607         (gl_THREADLIB_EARLY_BODY): Invoke it.
11608         (gl_PTHREADLIB_BODY): New macro, extracted from gl_THREADLIB_BODY.
11609         (gl_THREADLIB_BODY): Invoke it.
11610         (gl_PTHREADLIB): New macro.
11611         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_PTHREADLIB. Require
11612         gl_THREADLIB and test $gl_threads_api only if module 'threadlib' is
11613         present. Define LIB_PTHREAD using LIBPMULTITHREAD, not LIBMULTITHREAD.
11614         * modules/pthread-h (Files): Add threadlib.m4.
11615         (Depends-on): Remove threadlib.
11616         (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY. Don't set _REENTRANT
11617         and _THREAD_SAFE here.
11618         (Link): Use LIBPTHREAD, not LIBTHREAD.
11619         * modules/pthread-thread (Link): Use LIBPMULTITHREAD, not
11620         LIBMULTITHREAD.
11621         * modules/pthread-once (Link): Likewise.
11622         * modules/pthread-mutex (Link): Likewise.
11623         * modules/pthread-rwlock (Link): Likewise.
11624         * modules/pthread-cond (Link): Likewise.
11625         * modules/pthread-tss (Link): Likewise.
11626         * modules/pthread-spin (Link): Likewise.
11627         * modules/pthread (Link): Likewise.
11628         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Likewise.
11629         * modules/pthread-thread-tests (test_pthread_thread_LDADD): Likewise.
11630         * modules/pthread-once-tests (test_pthread_once1_LDADD,
11631         test_pthread_once2_LDADD): Likewise.
11632         * modules/pthread-mutex-tests (test_pthread_mutex_LDADD): Likewise.
11633         * modules/pthread-rwlock-tests (test_pthread_rwlock_LDADD): Likewise.
11634         * modules/pthread-cond-tests (test_pthread_cond_LDADD): Likewise.
11635         * modules/pthread-tss-tests (test_pthread_tss_LDADD): Likewise.
11637 2019-12-01  Bruno Haible  <bruno@clisp.org>
11639         cond: State linking requirements.
11640         * modules/cond (Link): New section.
11642 2019-12-01  Bruno Haible  <bruno@clisp.org>
11644         threadlib: Remove unnecessary file (left over from 2019-07-06).
11645         * modules/threadlib (Files): Remove config.rpath.
11647 2019-11-29  Tim Rühsen  <tim.ruehsen@gmx.de>
11649         gnulib-tool.py: Fix libgnu_la_LDFLAGS section in generated Makefile.am.
11650         Reported by Dagobert Michelsen <dam@opencsw.org> in
11651         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00086.html>.
11652         * pygnulib/GLModuleSystem.py (getLink): Don't join the parts. Return a
11653         list of strings instead of one string.
11654         * pygnulib/GLEmiter.py (lib_Makefile_am): Adapt accordingly.
11655         * pygnulib/GLImport.py (execute): Likewise.
11657 2019-11-27  Bruno Haible  <bruno@clisp.org>
11659         openpty, forkpty: Fix build error on Solaris 11.4.
11660         * m4/pty_h.m4 (gl_PTY_H): Test for termios.h. Look for the declarations
11661         also in <termios.h>.
11662         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Look for the declaration
11663         of the function also in <termios.h>.
11664         * doc/glibc-functions/openpty.texi: Mention the Solaris 11.4 problems.
11665         * doc/glibc-functions/forkpty.texi: Likewise.
11667 2019-11-27  Bruno Haible  <bruno@clisp.org>
11669         New options --enable-threads=isoc and --enable-threads=isoc+posix.
11670         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Accept the options
11671         --enable-threads=isoc and --enable-threads=isoc+posix.
11672         (gl_THREADLIB_BODY): Test whether the ISO C threads API is available.
11673         When both the ISO C and the POSIX threads API are available, choose
11674         USE_ISOC_AND_POSIX_THREADS instead of USE_POSIX_THREADS if
11675         --enable-threads=isoc+posix was specified. When only the ISO C threads
11676         API is available and --enable-threads=iso was specified, choose
11677         USE_ISOC_THREADS.
11678         * lib/glthread/lock.h: Add new code for USE_ISOC_THREADS ||
11679         USE_ISOC_AND_POSIX_THREADS.
11680         * lib/glthread/lock.c: Likewise.
11681         * lib/glthread/cond.h: Likewise.
11682         * lib/glthread/cond.c: Likewise.
11683         * lib/glthread/tls.h: Likewise.
11684         * lib/glthread/tls.c: Likewise.
11685         * lib/glthread/yield.h: Likewise.
11686         * lib/glthread/thread.h: Add new code for USE_ISOC_THREADS. Treat
11687         USE_ISOC_AND_POSIX_THREADS like USE_POSIX_THREADS.
11688         * lib/glthread/thread.c: Likewise.
11689         * lib/glthread/threadlib.c: Likewise.
11690         * tests/test-lock.c: Save and restore the values of USE_ISOC_THREADS and
11691         USE_ISOC_AND_POSIX_THREADS.
11692         * tests/test-cond.c: Consider USE_ISOC_THREADS and
11693         USE_ISOC_AND_POSIX_THREADS.
11694         * tests/test-tls.c: Likewise.
11695         * tests/test-thread_create.c (main): Likewise.
11696         * tests/test-pthread-cond.c: Likewise.
11697         * tests/test-pthread-mutex.c: Likewise.
11698         * tests/test-pthread-once2.c: Likewise.
11699         * tests/test-pthread-rwlock.c: Likewise.
11700         * tests/test-pthread-tss.c: Likewise.
11701         * tests/test-pthread_sigmask2.c: Treat USE_ISOC_AND_POSIX_THREADS like
11702         USE_POSIX_THREADS.
11704 2019-11-24  Bruno Haible  <bruno@clisp.org>
11706         mbrtowc: Modernize autoconf test.
11707         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Require
11708         gt_LOCALE_FR_UTF8. If a traditional Japanese locale is not available,
11709         try a UTF-8 locale.
11710         * doc/posix-functions/mbrtowc.texi: Update info about AIX.
11712 2019-11-24  Bruno Haible  <bruno@clisp.org>
11714         Fix errors in C++ mode on mingw.
11715         * lib/arpa_inet.in.h (inet_ntop, inet_pton): Use _GL_CXXALIAS_SYS_CAST
11716         instead of _GL_CXXALIAS_SYS.
11717         * lib/signal.in.h (pthread_sigmask): Likewise.
11718         * lib/spawn.in.h (posix_spawn_file_actions_addopen,
11719         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
11720         Likewise.
11721         * lib/wchar.in.h (btowc): Likewise.
11723 2019-11-24  Bruno Haible  <bruno@clisp.org>
11725         sys_time: Fix errors in C++ mode on mingw.
11726         * lib/sys_time.in.h (timeval): Restore the redirection
11727         '#define timeval rpl_timeval', for when the symbol timeval is being used
11728         outside the 'gnulib' namespace.
11729         * lib/sys_select.in.h (select): In C++, write 'timeval', not
11730         'struct timeval'.
11732 2019-11-24  Bruno Haible  <bruno@clisp.org>
11734         iswctype: Fix errors in C++ mode on mingw.
11735         * lib/wctype.in.h (rpl_iswctype): Override if GNULIB_OVERRIDES_WINT_T
11736         is 1.
11737         * lib/iswctype.c (iswctype): Add another implementation, for the
11738         GNULIB_defined_wint_t case.
11739         * modules/iswctype (configure.ac): Compile iswctype.c also if
11740         GNULIB_OVERRIDES_WINT_T is 1.
11742 2019-11-24  Bruno Haible  <bruno@clisp.org>
11744         windows-timedmutex: Fix errors in C++ mode on mingw.
11745         * lib/windows-timedmutex.h: Add closing brace.
11747 2019-11-24  Bruno Haible  <bruno@clisp.org>
11749         Fix errors in C++ mode on Cygwin.
11750         * lib/sys_wait.in.h (waitpid): Use _GL_CXXALIAS_SYS_CAST instead of
11751         _GL_CXXALIAS_SYS.
11753 2019-11-24  Bruno Haible  <bruno@clisp.org>
11755         time_r: Fix for mingw (regression from 2019-11-16).
11756         * m4/time_r.m4 (gl_TIME_R): Revert to using AC_CHECK_FUNCS_ONCE. Use the
11757         AC_LINK_IFELSE test only if the function does not appear to exist.
11759 2019-11-24  Bruno Haible  <bruno@clisp.org>
11761         wcstok: Add tests.
11762         * tests/test-wcstok.c: New file.
11763         * modules/wcstok-tests: New file.
11765 2019-11-24  Bruno Haible  <bruno@clisp.org>
11767         wcstok: Work around wrong signature on native Windows.
11768         * lib/wchar.in.h (wcstok): Override when REPLACE_WCSTOK is 1.
11769         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Check for signature of wcstok. Set
11770         REPLACE_WCSTOK.
11771         * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSTOK.
11772         * modules/wchar (Makefile.am): Substitute REPLACE_WCSTOK.
11773         * modules/wcstok (Depends-on, configure.ac): Consider REPLACE_WCSTOK.
11774         * doc/posix-functions/wcstok.texi: Mention the problem.
11776 2019-11-22  Paul Eggert  <eggert@cs.ucla.edu>
11778         intprops: INT_MULTIPLY_WRAPV speedup for GCC 8.4+
11779         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 8.x where 4 <= x,
11780         remove workaround for GCC bug 91450 as the bug should be fixed
11781         there too.
11783 2019-11-21  Bruno Haible  <bruno@clisp.org>
11785         Disable many _GL_CXXALIASWARN on all platforms other than glibc systems.
11786         Reported by Christian Biesinger <cbiesinger@google.com> in
11787         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00066.html>.
11788         * lib/fnmatch.in.h (fnmatch): Disable _GL_CXXALIASWARN invocation on
11789         non-glibc systems.
11790         * lib/locale.in.h (localeconv, setlocale): Likewise.
11791         * lib/math.in.h (cbrt, ceil, copysign, exp2, expm1, floor, fma, fmod,
11792         frexp, hypot, ilogb, log, log10, log1p, log2, logb, modf, remainder,
11793         rint, round, trunc): Likewise.
11794         * lib/monetary.in.h (strfmon_l): Likewise.
11795         * lib/pthread.in.h (pthread_mutexattr_getrobust,
11796         pthread_mutexattr_setrobust, pthread_mutex_lock, pthread_spin_init,
11797         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock,
11798         pthread_spin_destroy): Likewise.
11799         * lib/signal.in.h (raise, signal): Likewise.
11800         * lib/stdio.in.h (fclose, fflush, fgetc, fgets, fopen, fprintf, fputc,
11801         fputs, fread, freopen, fscanf, fseek, ftell, fwrite, getc, getchar,
11802         perror, printf, putc, putchar, puts, remove, rename, scanf, sprintf,
11803         tmpfile, vfprintf, vprintf, vsprintf): Likewise.
11804         * lib/stdlib.in.h (calloc, malloc, mbtowc, realloc, strtod, wctomb):
11805         Likewise.
11806         * lib/string.in.h (memchr, strncat, strpbrk, strstr, strerror):
11807         Likewise.
11808         * lib/time.in.h (mktime, localtime, ctime, strftime): Likewise.
11809         * lib/wchar.in.h (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs,
11810         wcrtomb, wcsrtombs, wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset,
11811         wcslen, wcscpy, wcsncpy, wcscat, wcsncat, wcscmp, wcsncmp, wcscoll,
11812         wcsxfrm, wcschr, wcsrchr, wcscspn, wcsspn, wcspbrk, wcsstr, wcstok,
11813         wcsftime): Likewise.
11814         * lib/wctype.in.h (iswblank, wctrans, towctrans): Likewise.
11816 2019-11-21  Bruno Haible  <bruno@clisp.org>
11818         Fix various errors in _GL_CXXALIAS_SYS invocations.
11819         * lib/locale.in.h (freelocale): Use _GL_CXXALIAS_SYS_CAST instead of
11820         _GL_CXXALIAS_SYS.
11821         * lib/pthread.in.h (pthread_mutexattr_gettype,
11822         pthread_mutexattr_getrobust): Likewise.
11823         * lib/stdlib.in.h (srandom, initstate, setstate): Likewise.
11824         * lib/sys_socket.in.h (recv, send): Likewise.
11825         * lib/unistd.in.h (getdtablesize): Likewise.
11826         * lib/sys_select.in.h (select): In C++, write 'timeval' instead of
11827         'struct timeval'.
11829 2019-11-21  Bruno Haible  <bruno@clisp.org>
11831         math tests: Update after 2019-08-28 change.
11832         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Expect a
11833         return type of 'bool', not 'int'.
11835 2019-11-21  Bruno Haible  <bruno@clisp.org>
11837         pthread-spin: Fix errors in C++ mode.
11838         * m4/pthread-spin.m4 (gl_PTHREAD_SPIN): Mark the pthread_spin_*
11839         functions as nonexistent when <pthread.h> exists but does not define
11840         the pthread_spinlock_t type.
11842 2019-11-21  Bruno Haible  <bruno@clisp.org>
11844         pthread-mutex: Fix errors in C++ mode.
11845         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Test whether
11846         pthread_mutexattr_getrobust exists. If not, define
11847         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
11848         * lib/pthread-mutex.c (pthread_mutexattr_getrobust,
11849         pthread_mutexattr_setrobust): Define also if <pthread.h> exists but
11850         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
11851         * modules/pthread-mutex (configure.ac): Compile pthread-mutex.c also
11852         when <pthread.h> exists but pthread_mutexattr_getrobust needs a gnulib
11853         definition.
11855 2019-11-19  Bruno Haible  <bruno@clisp.org>
11857         threads-h tests: Fix typo.
11858         * tests/test-threads-c++.cc: Fix references to undefined type 'mtx'.
11860 2019-11-19  Bruno Haible  <bruno@clisp.org>
11862         pthread-thread: Fix prototype of pthread_attr_getdetachstate.
11863         * lib/pthread.in.h (pthread_attr_getdetachstate): Change first parameter
11864         to 'const pthread_attr_t *'.
11865         * lib/pthread-thread.c (pthread_attr_getdetachstate): Likewise.
11866         * tests/test-pthread-c++.cc (pthread_attr_getdetachstate): Likewise.
11868 2019-11-19  Paul Eggert  <eggert@cs.ucla.edu>
11870         intprops: speed up INT_MULTIPLY_WRAPV in GCC 9.3
11871         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 9.3 or later, do not
11872         work around GCC bug 91450 as the bug should be fixed there.
11874 2019-11-18  Paul Eggert  <eggert@cs.ucla.edu>
11876         glob: get closer to glibc glob.c
11877         Omit differences from glibc when the differences don’t matter.
11878         * lib/glob.c [_LIBC]: Include shlib-compat.h.
11879         (__glob) [!_LIBC]: New macro.  All uses of glob changed to __glob.
11880         (glob_lstat): New function.
11881         (glob_in_dir): Use it.
11882         (GLOB_ATTRIBUTE): Define to empty if not already defined.
11883         Use changed.
11885 2019-11-18  Bruno Haible  <bruno@clisp.org>
11887         stdint: Define [u]intptr_t correctly on 64-bit native Windows.
11888         * lib/stdint.in.h (gl_intptr_t, gl_uintptr_t, INTPTR_MIN, INTPTR_MAX,
11889         UINTPTR_MAX): Consider _WIN64.
11890         * tests/test-stdint.c: Verify that [u]intptr_t is large enough to hold
11891         a pointer.
11893 2019-11-18  Bruno Haible  <bruno@clisp.org>
11895         stdint: Fix value of WINT_MAX when we override wint_t.
11896         * lib/stdint.in.h (WINT_MIN, WINT_MAX): Don't override a second time
11897         when GNULIB_OVERRIDES_WINT_T is 1.
11899 2019-11-18  Bruno Haible  <bruno@clisp.org>
11901         vcs-to-changelog: New module.
11902         * modules/vcs-to-changelog: New file.
11903         * MODULES.html.sh (func_all_modules): Add it.
11905 2019-11-01  Siddhesh Poyarekar  <siddhesh@gotplt.org>
11907         vcs-to-changelog: New script to generate ChangeLog-like output.
11908         Discussion:
11909         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00062.html>
11910         * build-aux/vcs_to_changelog.py: New file.
11911         * build-aux/vcstocl/frontend_c.py: New file.
11912         * build-aux/vcstocl/misc_util.py: New file.
11913         * build-aux/vcstocl/vcs_git.py: New file.
11915 2019-11-18  Bruno Haible  <bruno@clisp.org>
11917         stdint: Avoid triggering a "conflicting types" error on mingw 5.22.
11918         Reported by Keith Marshall <keith@users.osdn.me> in
11919         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00044.html>
11920         and <https://osdn.net/projects/mingw/ticket/39677>.
11921         * lib/stdint.in.h (intptr_t, uintptr_t): Don't define if the types have
11922         already been defined by mingw's <crtdefs.h>.
11924 2019-11-18  Bruno Haible  <bruno@clisp.org>
11926         gnulib-tool: Fix build error on macOS with --conditional-dependencies.
11927         * gnulib-tool (func_modules_add_dummy): Ignore modules that are
11928         conditionally enabled.
11930 2019-11-18  Bruno Haible  <bruno@clisp.org>
11932         gc: Mirror libgcrypt.m4 from libgcrypt.
11933         * config/srclistvars.sh (LIBGCRYPT): New variable.
11934         * config/srclist.txt: Use it to fetch m4/libgcrypt.m4.
11936 2019-11-17  Bruno Haible  <bruno@clisp.org>
11938         locale, localename: Improve z/OS support.
11939         Reported by Daniel Richard G. in
11940         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>.
11941         * m4/locale_h.m4 (gl_LOCALE_T): New macro, partially extracted from
11942         gl_LOCALE_H.
11943         (gl_LOCALE_H): Require it.
11944         * m4/localename.m4 (gl_LOCALENAME): Likewise. If locale_t is not
11945         defined, don't even check for newlocale, duplocale, freelocale.
11946         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Make the test fail when
11947         locale_t is not defined.
11949 2019-11-17  Bruno Haible  <bruno@clisp.org>
11951         havelib: Make libdirstems processing more flexible.
11952         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Set 3 libdirstem
11953         variables: Consider 'lib' always, also on Solaris. Look for lib32 in
11954         addition to lib64. Don't invoke /usr/bin/gcc (reverting the second
11955         patch from 2017-02-19).
11956         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Consider up to 3 additional
11957         libdirs, even when the first one exists as a directory.
11959 2019-11-17  Bruno Haible  <bruno@clisp.org>
11961         havelib: Match the bitness when searching for libraries.
11962         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Define a function
11963         acl_is_expected_elfclass.
11964         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): When testing whether a library
11965         file exists, in ELF, also test whether it has the ELF class that
11966         corresponds to the host's bitness.
11968 2019-11-17  Bruno Haible  <bruno@clisp.org>
11970         host-cpu-c-abi: Add support for unknown CPUs.
11971         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): Set
11972         gl_cv_host_cpu_c_abi_32bit to 'unknown' if we don't know whether it's
11973         32-bit or 64-bit.
11975 2019-11-17  Bruno Haible  <bruno@clisp.org>
11977         havelib: Remove redundant code.
11978         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Remove Solaris specific
11979         test for 64-bit host. Use gl_HOST_CPU_C_ABI_32BIT result instead.
11981 2019-11-17  Bruno Haible  <bruno@clisp.org>
11983         havelib: Fix a bug in dependency processing.
11984         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): During dependency processing
11985         of .la files, don't overwrite the value of additional_libdir for the
11986         next rounds.
11988 2019-11-16  Bruno Haible  <bruno@clisp.org>
11990         wctype-h: When overriding wint_t, override also the related functions.
11991         Reported by Christian Biesinger <cbiesinger@google.com> in
11992         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00027.html>.
11993         * m4/wctype_h.m4 (gl_WCTYPE_H): When GNULIB_OVERRIDES_WINT_T is 1, set
11994         REPLACE_ISWCNTRL to 1.
11995         * lib/wctype.in.h (rpl_iswalnum, rpl_iswalpha, rpl_iswblank,
11996         rpl_iswcntrl, rpl_iswdigit, rpl_iswgraph, rpl_iswlower, rpl_iswprint,
11997         rpl_iswpunct, rpl_iswspace, rpl_iswupper, rpl_iswxdigit, rpl_towlower,
11998         rpl_towupper): New definitions when GNULIB_OVERRIDES_WINT_T is 1.
11999         * doc/posix-headers/wchar.texi: Mention that wint_t is also overridden
12000         on mingw.
12001         * doc/posix-headers/wctype.texi: Likewise.
12003 2019-11-16  Bruno Haible  <bruno@clisp.org>
12005         time_r: Fix for mingw.
12006         Reported by Christian Biesinger <cbiesinger@google.com> in
12007         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00014.html>.
12008         * lib/time.in.h: On mingw, include <unistd.h>.
12009         * m4/time_r.m4 (gl_TIME_R): On mingw, include <unistd.h> before
12010         <time.h>. Test for localtime_r in a way that works when it is defined
12011         as an inline function.
12013 2019-11-13  Bruno Haible  <bruno@clisp.org>
12015         havelib: Revert last change.
12016         * build-aux/config.rpath: Revert last change. We can add msys2 support
12017         when it has been added to libtool.m4 upstream.
12019 2019-11-09  Paul Eggert  <eggert@cs.ucla.edu>
12021         config: add msys support
12022         Requested by Arnold Robbins in:
12023         https://lists.gnu.org/r/bug-gnulib/2019-11/msg00008.html
12024         He also requested a change to config.guess, which I’ll forward
12025         upstream.
12026         * build-aux/ar-lib (func_file_conv):
12027         * build-aux/compile (func_file_conv):
12028         * build-aux/config.rpath (wl, with_gnu_ld)
12029         (hardcode_libdir_flag_spec, libext, shrext, library_names_spec):
12030         Treat msys like cygwin.
12032 2019-11-06  Paul Eggert  <eggert@cs.ucla.edu>
12034         regex: now back in sync with glibc
12035         * config/srclist.txt: regcomp.c, regex_internal.c, regex_internal.h,
12036         regexec.c got merged into glibc and are now copies again.
12038 2019-10-27  Bruno Haible  <bruno@clisp.org>
12040         host-cpu-c-abi: Recognize i386 and a couple of other CPUs as 32-bit.
12041         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Include i386 in the case
12042         statement.
12043         (gl_HOST_CPU_C_ABI_32BIT): Likewise. Also recognize a couple of other
12044         32-bit CPUs.
12046 2019-10-24  Paul Eggert  <eggert@cs.ucla.edu>
12048         timespec-add, timespec-sub: simplify
12049         * lib/timespec-add.c (timespec_add):
12050         * lib/timespec-sub.c (timespec_sub):
12051         Simplify, now that INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
12052         work on unsigned integers.
12054 2019-10-23  Paul Eggert  <eggert@cs.ucla.edu>
12056         nstrftime: speed up integer overflow checking
12057         * lib/nstrftime.c: Include intprops.h.
12058         (INT_STRLEN_BOUND): Remove, as we can use intprops.h’s defn.
12059         (__strftime_internal): Use INT_MULTIPLY_WRAPV and INT_ADD_WRAPV
12060         instead of doing it by hand.
12061         * modules/nstrftime (Depends-on): Add intprops.
12063         Port better to GCC under macOS
12064         Work around macOS header that has ‘#define __has_builtin(x) 0’
12065         when compiled by GCC.  Apple really, really doesn’t want you to
12066         use GCC, apparently.  Rroblem reported by Akim Demaille in:
12067         https://lists.gnu.org/r/bug-bison/2019-10/msg00071.html
12068         The fix is to not trust __has_builtin when being compiled by
12069         recent-enough GCC.
12070         * lib/intprops.h (__has_builtin)
12071         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
12072         * lib/verify.h (__has_builtin, _GL_HAS___builtin_unreachable)
12073         (_GL_HAS___builtin_trap, _GL_TEMPDEF___has_builtin):
12074         Remove.  All uses removed.
12075         * lib/intprops.h (_GL_HAS_BUILTIN_ADD_OVERFLOW): Use __has_builtin
12076         directly, if defined and if not newer GCC.
12077         * lib/verify.h (_GL_HAS_BUILTIN_TRAP, _GL_HAS_BUILTIN_UNREACHABLE):
12078         New macro, that use __has_builtin directly, if defined and if
12079         not newer GCC.
12080         (assume): Use them.
12082 2019-10-22  Akim Demaille  <akim@lrde.epita.fr>
12084         maintainer-makefile: update rule for argmatch.
12085         * top/maint.mk (sc_prohibit_argmatch_without_use): Add ARGMATCH_DEFINE_GROUP.
12087 2019-10-21  Akim Demaille  <akim@lrde.epita.fr>
12089         bitset: let freeing functions accept NULL.
12090         * lib/bitset.c (bitset_free, bitset_obstack_free): Do nothing if
12091         given NULL.
12092         * lib/bitset.h: Document that.
12093         * doc/bitset.texi: Fix the example, and demonstrate bitset_free.
12095 2019-10-15  Paul Eggert  <eggert@cs.ucla.edu>
12097         inttypes: use more-robust test for int range
12098         This fixes Bison 3.4.2 when built with Oracle Solaris Studio 12.3.
12099         Problem reported by Dagobert Michelsen in:
12100         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00042.html
12101         * lib/inttypes.in.h: Rely only on limits.h when checking
12102         int range.
12104 2019-10-15  Bruno Haible  <bruno@clisp.org>
12106         libtextstyle-optional: Sync with current not-yet-released libtextstyle.
12107         * libtextstyle-optional (styled_ostream_get_hyperlink_ref,
12108         styled_ostream_get_hyperlink_id, styled_ostream_set_hyperlink,
12109         term_ostream_get_hyperlink_ref, term_ostream_get_hyperlink_id,
12110         term_ostream_set_hyperlink): New functions.
12111         (term_styled_ostream_get_hyperlink_ref,
12112         term_styled_ostream_get_hyperlink_id,
12113         term_styled_ostream_set_hyperlink): New function aliases.
12115 2019-10-14  Paul Eggert  <eggert@cs.ucla.edu>
12117         update-copyright: use en dashes in .texi ranges
12118         * build-aux/update-copyright: Match year ranges like "1998--2019",
12119         which are used in the Autoconf manual.  Also, update ranges in
12120         .tex, .texi, and .texinfo files to use en dashes instead of
12121         hyphens.
12123 2019-10-13  Paul Eggert  <eggert@cs.ucla.edu>
12125         * config/srclist.txt: Remove posix/regex_internal.c for now.
12127 2019-10-13  Bruno Haible  <bruno@clisp.org>
12129         git-version-gen: Allow 'snapshot' as .tarball-version contents.
12130         * build-aux/git-version-gen: Don't map non-numeric .tarball-version
12131         contents to the empty string.
12133 2019-10-12  Bruno Haible  <bruno@clisp.org>
12135         intprops tests: Fix compilation errors on HP-UX/ia64 with cc.
12136         * tests/test-intprops.c (main): Disable two more tests when using
12137         HP-UX cc.
12139 2019-10-11  Paul Eggert  <eggert@cs.ucla.edu>
12141         Simplify and regularize regex use of ‘assert’
12142         Also, tell GCC about the asserts even when compiling without
12143         debugging, to give it further optimization opportunities.
12144         * lib/regex_internal.h (DEBUG_ASSERT): New macro.
12145         * lib/regcomp.c (link_nfa_nodes, calc_eclosure)
12146         (parse_expression, parse_bracket_exp):
12147         * lib/regex_internal.c (build_wcs_buffer)
12148         (build_wcs_upper_buffer, re_string_reconstruct)
12149         (re_string_context_at):
12150         * lib/regexec.c (re_search_stub, re_copy_regs)
12151         (re_search_internal, prune_impossible_nodes, check_matching)
12152         (check_halt_state_context, set_regs, sift_states_backward)
12153         (build_sifted_states, transit_state_mb, transit_state_bkref)
12154         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
12155         (match_ctx_add_subtop):
12156         Use it instead of plain ‘assert’.
12158 2019-10-09  Paul Eggert  <eggert@cs.ucla.edu>
12160         regex: omit debug assignment when not debugging
12161         * lib/regexec.c (re_search_internal) [!DEBUG]:
12162         Remove unnecessary assignment.
12164         regex: tell compiler there’s at most 256 arcs out
12165         Partly this is to help the reader (and maybe help GCC);
12166         partly this is to pacify Coverity.
12167         * lib/regex_internal.h: Include verify.h.
12168         * lib/regexec.c (group_nodes_into_DFAstates):
12169         Tell the compiler that ndests cannot exceed SBC_MAX.
12170         * modules/regex (Depends-on): Add ‘verify’.
12172         regex: simplify by assuming C99
12173         * config/srclist.txt: Comment out regex_internal.h and regexec.c
12174         temporarily.
12175         * lib/regex_internal.h (lock_define, re_match_context_t):
12176         Simplify by assuming C99 macros and const.
12177         * lib/regexec.c (re_search_internal): Simplify by assuming C99
12178         initializers.  Remove unnecessary assignment, as mctx is now
12179         safely initialized earlier.
12181         regex: avoid copying of uninitialized storage
12182         * config/srclist.txt: Comment out regcomp.c temporarily.
12183         * lib/regcomp.c (build_charclass_op, create_tree) [! (GCC_LINT||lint)]:
12184         Initialize even when not checking for lint, as the behavior is
12185         arguably undefined otherwise and Coverity warns about it.
12187 2019-10-06  Bruno Haible  <bruno@clisp.org>
12189         access tests: Fix test failure when run as root.
12190         * tests/test-access.c: Include root-uid.h.
12191         (geteuid): Define fallback.
12192         (main): Don't expect that writing to a read-only file would fail when
12193         running as root. Also, remove the created files at the end.
12194         * modules/access-tests (Depends-on): Add root-uid.
12195         (configure.ac): Test whether geteuid exists.
12197 2019-10-06  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
12199         users.txt: add GNU nano
12200         Nano has been making use of gnulib since March 2017, version 2.8.0.
12202 2019-10-05  Paul Eggert  <eggert@cs.ucla.edu>
12204         bootstrap: simplify debugging of wget failures
12205         Problem reported by Tim Rühsen in:
12206         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00000.html
12207         * build-aux/bootstrap (po_download_command_format):
12208         Invoke wget with -nv instead of -q, to make debugging easier.
12210 2019-09-29  Bruno Haible  <bruno@clisp.org>
12212         avltree-list: Fix compilation warning (introduced on 2014-09-16).
12213         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Remove
12214         'const' attribute.
12216 2019-09-29  Bruno Haible  <bruno@clisp.org>
12218         fbufmode: Fix compilation error on glibc >= 2.28 systems.
12219         * lib/stdio-impl.h (_IO_UNBUFFERED): Define fallback on glibc >= 2.28.
12221 2019-09-28  Bruno Haible  <bruno@clisp.org>
12223         Update comments that refer to POSIX.
12224         * lib/creat.c, lib/fopen.c, lib/open.c, lib/openat.c: Cite the relevant
12225         sentence about trailing slashes.
12226         * lib/fflush.c: Clarify the reasoning.
12227         * tests/test-fflush2.c: Cite the relevant sentence.
12229 2019-09-28  Bruno Haible  <bruno@clisp.org>
12231         access: Document limitations on Windows.
12232         Suggested by Zaretskii <eliz@gnu.org>.
12233         * doc/posix-functions/access.texi: Mention two limitations on Windows.
12235 2019-09-28  Bruno Haible  <bruno@clisp.org>
12237         findprog-in: Fix comment.
12238         Reported by Eli Zaretskii <eliz@gnu.org>.
12239         * lib/findprog.h (find_in_given_path): Extend description of EACCES
12240         condition.
12241         * lib/stat.c (rpl_stat): Fix typo in comment.
12242         * lib/utime.c (_gl_utimens_windows): Likewise.
12244 2019-09-23  Paul Eggert  <eggert@cs.ucla.edu>
12246         Update URLs and associated text
12247         (Thanks to Bruno Haible for proofreading this patch.)
12248         Prefer https: to http: in URLs where either will do, for the usual
12249         security reasons.  I also updated broken and/or moved URLs
12250         discovered during the process. In a few places I had to resort to
12251         archive.org, since I didn't find the originals elsewhere.
12253 2019-09-15  Paul Smith  <psmith@gnu.org>
12254             Bruno Haible  <bruno@clisp.org>
12256         findprog-in: Set errno when the search fails.
12257         * lib/findprog-in.c: Include <errno.h>.
12258         (find_in_given_path): Set errno before returning NULL.
12259         * lib/findprog.h (find_in_given_path): Update comment accordingly.
12260         Define the term "slash".
12262 2019-09-15  Bruno Haible  <bruno@clisp.org>
12264         findprog, findprog-lgpl, findprog-in: Fix crash on MSVC.
12265         * modules/findprog (Depends-on): Add access.
12266         * modules/findprog-lgpl (Depends-on): Likewise.
12267         * modules/findprog-in (Depends-on): Likewise.
12269 2019-09-15  Bruno Haible  <bruno@clisp.org>
12271         access: Add tests.
12272         * tests/test-access.c: New file.
12273         * modules/access-tests: New file.
12275         access: New module.
12276         * lib/unistd.in.h (access): New declaration.
12277         * lib/access.c: New file.
12278         * m4/access.m4: New file.
12279         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether access is declared.
12280         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ACCESS, REPLACE_ACCESS.
12281         * modules/unistd (Makefile.am): Substitute GNULIB_ACCESS,
12282         REPLACE_ACCESS.
12283         * modules/access: New file.
12284         * tests/test-unistd-c++.cc (access): Check signature.
12285         * doc/posix-functions/access.texi: Mention the new module.
12287 2019-09-15  Bruno Haible  <bruno@clisp.org>
12289         fcntl-h: Fix compilation error of creat.c on MSVC.
12290         * lib/fcntl.in.h: Include <io.h> also when __need_system_fcntl_h is
12291         defined.
12293 2019-09-15  Bruno Haible  <bruno@clisp.org>
12295         creat: Add tests.
12296         * tests/test-creat.c: New file, based on tests/test-open.h.
12297         * modules/creat-tests: New file.
12299         creat: New module.
12300         * lib/fcntl.in.h (creat): New declaration.
12301         * lib/creat.c: New file, based on lib/open.c.
12302         * m4/creat.m4: New file.
12303         * m4/open-slash.m4: New file, extracted from m4/open.m4.
12304         * m4/open.m4 (gl_FUNC_OPEN): Move trailing-slash test to open-slash.m4.
12305         Invoke gl_OPEN_TRAILING_SLASH_BUG.
12306         * modules/open (Files): Add m4/open-slash.m4.
12307         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_CREAT,
12308         REPLACE_CREAT.
12309         * modules/fcntl-h (Makefile.am): Substitute GNULIB_CREAT, REPLACE_CREAT.
12310         * modules/creat: New file.
12311         * tests/test-fcntl-h-c++.cc (creat): Check signature.
12312         * doc/posix-functions/creat.texi: Mention the new module.
12314 2019-09-15  Bruno Haible  <bruno@clisp.org>
12316         open tests: Enhance test.
12317         * tests/test-open.h (test_open): Test the creation of an executable
12318         regular file. Also improve initial cleanup.
12320 2019-09-15  Bruno Haible  <bruno@clisp.org>
12322         intprops tests: Avoid build failure with HP-UX cc.
12323         * tests/test-intprops.c: Disable a check that makes HP cc choke with
12324         "error 4018: Macro param too large after substitution - use -H option.".
12326 2019-09-14  Bruno Haible  <bruno@clisp.org>
12328         Make autoconf tests work with -Werror=implicit-function-declaration.
12329         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Include <wctype.h>, for
12330         towupper() declaration.
12331         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Include <stdlib.h>, for ptsname()
12332         declaration.
12334 2019-09-14  Bruno Haible  <bruno@clisp.org>
12336         findprog-in: Better mimic the system on native Windows.
12337         Reported by Paul Smith <psmith@gnu.org>.
12338         * lib/findprog-in.c (find_in_given_path): On native Windows, don't try
12339         non-empty suffixes when the file name already contains a '.'.
12341 2019-09-10  Bruno Haible  <bruno@clisp.org>
12343         wctob: Fix autoconf test.
12344         Based on patch by Florian Weimer <fweimer@redhat.com>.
12345         * m4/wctob.m4 (gl_FUNC_WCTOB): Include <stdlib.h> before using mbtowc.
12347 2019-09-09  Akim Demaille  <akim@lrde.epita.fr>
12349         xhash: provide hash_xinitialize.
12350         Suggested by Egor Pugin <egor.pugin@gmail.com>
12351         https://lists.gnu.org/archive/html/bison-patches/2019-09/msg00026.html
12352         * modules/xhash, lib/xhash.c: New.
12353         * lib/hash.h (hash_xinitialize): New.
12355 2019-09-09  Bruno Haible  <bruno@clisp.org>
12357         findprog-in: Make exec optimization optional.
12358         * lib/findprog.h: Add double-inclusion guard. Include <stdbool.h>.
12359         (find_in_given_path): Add optimize_for_exec parameter.
12360         * lib/findprog-in.c (find_in_given_path): Likewise.
12362 2019-09-08  Bruno Haible  <bruno@clisp.org>
12364         Add option to assume the best, not the worst, when cross-compiling.
12365         Suggested by Jonas Termansen <sortie@maxsi.org>.
12366         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add --enable-cross-guesses=...
12367         option. Set gl_cross_guess_normal and gl_cross_guess_inverted.
12368         * m4/argz.m4 (gl_FUNC_ARGZ): Obey --enable-cross-guesses for
12369         lt_cv_sys_argz_works.
12370         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Obey --enable-cross-guesses for
12371         ac_cv_func_calloc_0_nonnull.
12372         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Obey
12373         --enable-cross-guesses for gl_cv_func_realpath_works.
12374         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Obey --enable-cross-guesses for
12375         gl_cv_func_cbrtl_ieee.
12376         * m4/ceil.m4 (gl_FUNC_CEIL): Obey --enable-cross-guesses for
12377         gl_cv_func_ceil_ieee.
12378         * m4/ceilf.m4 (gl_FUNC_CEILF): Obey --enable-cross-guesses for
12379         gl_cv_func_ceilf_ieee.
12380         * m4/ceill.m4 (gl_FUNC_CEILL): Obey --enable-cross-guesses for
12381         gl_cv_func_ceill_ieee.
12382         * m4/chown.m4 (AC_FUNC_CHOWN): Obey --enable-cross-guesses for
12383         ac_cv_func_chown_works.
12384         (gl_FUNC_CHOWN): Obey --enable-cross-guesses for
12385         gl_cv_func_chown_slash_works, gl_cv_func_chown_ctime_works.
12386         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Obey
12387         --enable-cross-guesses for gl_cv_struct_dirent_d_ino.
12388         * m4/exp2l.m4 (gl_FUNC_EXP2L): Obey --enable-cross-guesses for
12389         gl_cv_func_exp2l_works, gl_cv_func_exp2l_ieee.
12390         * m4/expl.m4 (gl_FUNC_EXPL): Obey --enable-cross-guesses for
12391         gl_cv_func_expl_works.
12392         * m4/expm1.m4 (gl_FUNC_EXPM1): Obey --enable-cross-guesses for
12393         gl_cv_func_expm1_ieee.
12394         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Obey --enable-cross-guesses for
12395         gl_cv_func_expm1l_works.
12396         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Obey --enable-cross-guesses for
12397         gl_cv_func_open_directory_works.
12398         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Obey
12399         --enable-cross-guesses for gl_cv_func_fchownat_nofollow_works.
12400         (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Obey --enable-cross-guesses for
12401         gl_cv_func_fchownat_empty_filename_works.
12402         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Obey --enable-cross-guesses for
12403         gl_cv_func_fdopendir_works.
12404         * m4/floor.m4 (gl_FUNC_FLOOR): Obey --enable-cross-guesses for
12405         gl_cv_func_floor_ieee.
12406         * m4/floorf.m4 (gl_FUNC_FLOORF): Obey --enable-cross-guesses for
12407         gl_cv_func_floorf_ieee.
12408         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Obey --enable-cross-guesses for
12409         gl_cv_func_fma_works.
12410         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Obey --enable-cross-guesses for
12411         gl_cv_func_fmaf_works.
12412         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Obey --enable-cross-guesses for
12413         gl_cv_func_fmal_works.
12414         * m4/fmod.m4 (gl_FUNC_FMOD): Obey --enable-cross-guesses for
12415         gl_cv_func_fmod_ieee.
12416         * m4/fmodf.m4 (gl_FUNC_FMODF): Obey --enable-cross-guesses for
12417         gl_cv_func_fmodf_ieee.
12418         * m4/fmodl.m4 (gl_FUNC_FMODL): Obey --enable-cross-guesses for
12419         gl_cv_func_fmodl_ieee.
12420         * m4/fpurge.m4 (gl_FUNC_FPURGE): Obey --enable-cross-guesses for
12421         gl_cv_func_fpurge_works.
12422         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Obey
12423         --enable-cross-guesses for gl_cv_func_getcwd_path_max.
12424         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Obey --enable-cross-guesses for
12425         gl_cv_func_getcwd_null.
12426         (gl_FUNC_GETCWD): Update for getcwd-path-max.m4 change.
12427         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Obey --enable-cross-guesses for
12428         gl_cv_func_working_getdelim.
12429         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Obey --enable-cross-guesses for
12430         ac_cv_func_getgroups_works. Keep this macro also in Autoconf >= 2.70.
12431         (gl_FUNC_GETGROUPS): Obey --enable-cross-guesses for
12432         gl_cv_func_getgroups_works.
12433         * m4/getline.m4 (gl_FUNC_GETLINE): Obey --enable-cross-guesses for
12434         am_cv_func_working_getline.
12435         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Obey --enable-cross-guesses
12436         for gl_cv_func_getopt_gnu.
12437         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Obey
12438         --enable-cross-guesses for gl_cv_func_gettimeofday_clobber.
12439         * m4/hypot.m4 (gl_FUNC_HYPOT): Obey --enable-cross-guesses for
12440         gl_cv_func_hypot_ieee.
12441         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Obey --enable-cross-guesses for
12442         gl_cv_func_hypotf_ieee.
12443         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Obey --enable-cross-guesses for
12444         gl_cv_func_hypotl_ieee.
12445         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Obey
12446         --enable-cross-guesses for gl_cv_func_iconv_supports_utf.
12447         * m4/link.m4 (gl_FUNC_LINK): Obey --enable-cross-guesses for
12448         gl_cv_func_link_works.
12449         * m4/linkat.m4 (gl_FUNC_LINKAT): Obey --enable-cross-guesses for
12450         gl_cv_func_linkat_slash.
12451         * m4/log.m4 (gl_FUNC_LOG): Obey --enable-cross-guesses for
12452         gl_cv_func_log_ieee.
12453         * m4/logf.m4 (gl_FUNC_LOGF): Obey --enable-cross-guesses for
12454         gl_cv_func_logf_ieee.
12455         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Obey --enable-cross-guesses for
12456         gl_cv_func_logl_works.
12457         * m4/log10.m4 (gl_FUNC_LOG10): Obey --enable-cross-guesses for
12458         gl_cv_func_log10_ieee.
12459         * m4/log10f.m4 (gl_FUNC_LOG10F): Obey --enable-cross-guesses for
12460         gl_cv_func_log10f_ieee.
12461         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Obey --enable-cross-guesses for
12462         gl_cv_func_log10l_works.
12463         * m4/log1p.m4 (gl_FUNC_LOG1P): Obey --enable-cross-guesses for
12464         gl_cv_func_log1p_ieee.
12465         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Obey --enable-cross-guesses for
12466         gl_cv_func_log1pf_ieee.
12467         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Obey --enable-cross-guesses for
12468         gl_cv_func_log1pl_ieee.
12469         * m4/log2.m4 (gl_FUNC_LOG2): Obey --enable-cross-guesses for
12470         gl_cv_func_log2_ieee.
12471         * m4/log2f.m4 (gl_FUNC_LOG2F): Obey --enable-cross-guesses for
12472         gl_cv_func_log2f_ieee.
12473         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Obey
12474         --enable-cross-guesses for
12475         gl_cv_func_lstat_dereferences_slashed_symlink.
12476         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Obey --enable-cross-guesses for
12477         ac_cv_func_malloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
12478         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Obey --enable-cross-guesses for
12479         gl_cv_C_locale_sans_EILSEQ.
12480         * m4/memchr.m4 (gl_FUNC_MEMCHR): Obey --enable-cross-guesses for
12481         gl_cv_func_memchr_works.
12482         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Obey --enable-cross-guesses for
12483         gl_cv_func_memmem_works_always.
12484         (gl_FUNC_MEMMEM): Obey --enable-cross-guesses for
12485         gl_cv_func_memmem_works_fast.
12486         * m4/mkdir.m4 (gl_FUNC_MKDIR): Obey --enable-cross-guesses for
12487         gl_cv_func_mkdir_trailing_slash_works,
12488         gl_cv_func_mkdir_trailing_dot_works.
12489         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Obey --enable-cross-guesses for
12490         gl_cv_func_mkfifo_works.
12491         * m4/mknod.m4 (gl_FUNC_MKNOD): Obey --enable-cross-guesses for
12492         gl_cv_func_mknod_works.
12493         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Obey --enable-cross-guesses for
12494         gl_cv_func_working_mkstemp.
12495         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Obey --enable-cross-guesses for
12496         gl_cv_func_working_mktime.
12497         * m4/modf.m4 (gl_FUNC_MODF): Obey --enable-cross-guesses for
12498         gl_cv_func_modf_ieee.
12499         * m4/modff.m4 (gl_FUNC_MODFF): Obey --enable-cross-guesses for
12500         gl_cv_func_modff_ieee.
12501         * m4/modfl.m4 (gl_FUNC_MODFL): Obey --enable-cross-guesses for
12502         gl_cv_func_modfl_ieee.
12503         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Obey --enable-cross-guesses for
12504         gl_cv_func_nanosleep.
12505         * m4/perror.m4 (gl_FUNC_PERROR): Obey --enable-cross-guesses for
12506         gl_cv_func_perror_works.
12507         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Obey --enable-cross-guesses for
12508         gl_cv_func_printf_sizes_c99.
12509         (gl_PRINTF_INFINITE): Obey --enable-cross-guesses for
12510         gl_cv_func_printf_infinite.
12511         (gl_PRINTF_INFINITE_LONG_DOUBLE): Obey --enable-cross-guesses for
12512         gl_cv_func_printf_infinite_long_double.
12513         (gl_PRINTF_DIRECTIVE_A): Obey --enable-cross-guesses for
12514         gl_cv_func_printf_directive_a.
12515         (gl_PRINTF_DIRECTIVE_F): Obey --enable-cross-guesses for
12516         gl_cv_func_printf_directive_f.
12517         (gl_PRINTF_FLAG_ZERO): Obey --enable-cross-guesses for
12518         gl_cv_func_printf_flag_zero.
12519         (gl_PRINTF_ENOMEM): Obey --enable-cross-guesses for
12520         gl_cv_func_printf_enomem.
12521         (gl_SNPRINTF_TRUNCATION_C99): Obey --enable-cross-guesses for
12522         gl_cv_func_snprintf_truncation_c99.
12523         (gl_SNPRINTF_RETVAL_C99): Obey --enable-cross-guesses for
12524         gl_cv_func_snprintf_retval_c99.
12525         (gl_SNPRINTF_DIRECTIVE_N): Obey --enable-cross-guesses for
12526         gl_cv_func_snprintf_directive_n.
12527         (gl_VSNPRINTF_ZEROSIZE_C99): Obey --enable-cross-guesses for
12528         gl_cv_func_vsnprintf_zerosize_c99.
12529         * m4/pselect.m4 (gl_FUNC_PSELECT): Obey --enable-cross-guesses for
12530         gl_cv_func_pselect_detects_ebadf.
12531         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
12532         Obey --enable-cross-guesses for
12533         gl_cv_pthread_rwlock_rdlock_prefer_writer.
12534         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Obey --enable-cross-guesses for
12535         gl_cv_func_ptsname_sets_errno.
12536         * m4/putenv.m4 (gl_FUNC_PUTENV): Obey --enable-cross-guesses for
12537         gl_cv_func_svid_putenv.
12538         * m4/readlink.m4 (gl_FUNC_READLINK): Obey --enable-cross-guesses for
12539         gl_cv_func_readlink_works.
12540         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Obey --enable-cross-guesses for
12541         ac_cv_func_realloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
12542         * m4/regex.m4 (gl_REGEX): Obey --enable-cross-guesses for
12543         gl_cv_func_re_compile_pattern_working.
12544         * m4/remainder.m4 (gl_FUNC_REMAINDER): Obey --enable-cross-guesses for
12545         gl_cv_func_remainder_ieee.
12546         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Obey --enable-cross-guesses for
12547         gl_cv_func_remainderf_ieee.
12548         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Obey --enable-cross-guesses for
12549         gl_cv_func_remainderl_ieee.
12550         * m4/rintl.m4 (gl_FUNC_RINTL): Obey --enable-cross-guesses for
12551         gl_cv_func_rintl_works.
12552         * m4/rmdir.m4 (gl_FUNC_RMDIR): Obey --enable-cross-guesses for
12553         gl_cv_func_rmdir_works.
12554         * m4/round.m4 (gl_FUNC_ROUND): Obey --enable-cross-guesses for
12555         gl_cv_func_round_ieee.
12556         * m4/roundf.m4 (gl_FUNC_ROUNDF): Obey --enable-cross-guesses for
12557         gl_cv_func_roundf_ieee.
12558         * m4/roundl.m4 (gl_FUNC_ROUNDL): Obey --enable-cross-guesses for
12559         gl_cv_func_roundl_ieee.
12560         * m4/select.m4 (gl_FUNC_SELECT): Obey --enable-cross-guesses for
12561         gl_cv_func_select_detects_ebadf.
12562         * m4/setenv.m4 (gl_FUNC_SETENV): Obey --enable-cross-guesses for
12563         gl_cv_func_setenv_works.
12564         (gl_FUNC_UNSETENV): Obey --enable-cross-guesses for
12565         gl_cv_func_unsetenv_works.
12566         * m4/signbit.m4 (gl_SIGNBIT): Obey --enable-cross-guesses for
12567         gl_cv_func_signbit, gl_cv_func_signbit_gcc.
12568         * m4/sleep.m4 (gl_FUNC_SLEEP): Obey --enable-cross-guesses for
12569         gl_cv_func_sleep_works.
12570         * m4/stat.m4 (gl_FUNC_STAT): Obey --enable-cross-guesses for
12571         gl_cv_func_stat_file_slash.
12572         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Obey --enable-cross-guesses for
12573         gl_cv_func_stpncpy.
12574         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Obey
12575         --enable-cross-guesses for gl_cv_func_strcasestr_works_always.
12576         (gl_FUNC_STRCASESTR): Obey --enable-cross-guesses for
12577         gl_cv_func_strcasestr_linear.
12578         * m4/strerror.m4 (gl_FUNC_STRERROR): Obey --enable-cross-guesses for
12579         gl_cv_func_working_strerror.
12580         (gl_FUNC_STRERROR_0): Obey --enable-cross-guesses for
12581         gl_cv_func_strerror_0_works.
12582         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Obey
12583         --enable-cross-guesses for gl_cv_func_strerror_r_works.
12584         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Obey --enable-cross-guesses for
12585         gl_cv_func_strstr_works_always.
12586         (gl_FUNC_STRSTR): Obey --enable-cross-guesses for
12587         gl_cv_func_strstr_linear.
12588         * m4/strtod.m4 (gl_FUNC_STRTOD): Obey --enable-cross-guesses for
12589         gl_cv_func_strtod_works.
12590         * m4/strtold.m4 (gl_FUNC_STRTOLD): Obey --enable-cross-guesses for
12591         gl_cv_func_strtold_works.
12592         * m4/symlink.m4 (gl_FUNC_SYMLINK): Obey --enable-cross-guesses for
12593         gl_cv_func_symlink_works.
12594         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Obey --enable-cross-guesses for
12595         gl_cv_func_symlinkat_works.
12596         * m4/trunc.m4 (gl_FUNC_TRUNC): Obey --enable-cross-guesses for
12597         gl_cv_func_trunc_ieee.
12598         * m4/truncf.m4 (gl_FUNC_TRUNCF): Obey --enable-cross-guesses for
12599         gl_cv_func_truncf_ieee.
12600         * m4/truncl.m4 (gl_FUNC_TRUNCL): Obey --enable-cross-guesses for
12601         gl_cv_func_truncl_ieee.
12602         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Obey --enable-cross-guesses for
12603         gl_cv_func_tzset_clobber.
12604         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Obey --enable-cross-guesses for
12605         gl_cv_func_ungetc_works.
12606         * m4/unlink.m4 (gl_FUNC_UNLINK): Obey --enable-cross-guesses for
12607         gl_cv_func_unlink_honors_slashes, gl_cv_func_unlink_parent_fails.
12608         * m4/usleep.m4 (gl_FUNC_USLEEP): Obey --enable-cross-guesses for
12609         gl_cv_func_usleep_works.
12610         * m4/utimens.m4 (gl_UTIMENS): Obey --enable-cross-guesses for
12611         gl_cv_func_futimesat_works.
12612         * m4/utimes.m4 (gl_FUNC_UTIMES): Obey --enable-cross-guesses for
12613         gl_cv_func_working_utimes.
12614         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Obey --enable-cross-guesses for
12615         gl_cv_func_wcwidth_works.
12616         * m4/glob.m4 (gl_GLOB): When cross-compiling, don't create symlinks for
12617         testing. Obey --enable-cross-guesses for gl_cv_glob_lists_symlinks.
12618         * m4/rename.m4 (gl_FUNC_RENAME): When cross-compiling, don't create
12619         links for testing. Obey --enable-cross-guesses for
12620         gl_cv_func_rename_slash_dst_works, gl_cv_func_rename_slash_src_works,
12621         gl_cv_func_rename_link_works, gl_cv_func_rename_dest_works.
12623 2019-09-08  Bruno Haible  <bruno@clisp.org>
12625         Clarify that cross-compilation guesses are guesses.
12626         * m4/threads.m4 (gl_THREADS_H): Say "guessing yes" or "guessing no" when
12627         cross-compiling.
12629 2019-09-08  Bruno Haible  <bruno@clisp.org>
12631         chown: Fix configure output (regression from 2019-03-23).
12632         * m4/chown.m4 (gl_FUNC_CHOWN): Fix reference to
12633         gl_cv_func_chown_follows_symlink variable.
12635 2019-09-08  Bruno Haible  <bruno@clisp.org>
12637         findprog-in: New module.
12638         Suggested by Paul Smith <psmith@gnu.org>.
12639         * lib/findprog.h (find_in_given_path): New declaration.
12640         * lib/findprog-in.c: New file, based on lib/findprog.c.
12641         * m4/findprog-in.m4: New file, based on m4/findprog.m4.
12642         * modules/findprog-in: New file.
12644 2019-09-08  Bruno Haible  <bruno@clisp.org>
12646         findprog: Remove unused dependency.
12647         * modules/findprog (Depends-on): Remove strdup.
12649 2019-09-08  Bruno Haible  <bruno@clisp.org>
12651         findprog: Remove test that is obsolete since 2006-04-24.
12652         * m4/findprog.m4 (gl_FINDPROG): Don't test for unistd.h.
12654 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
12656         bitset: style changes
12657         * lib/bitset/vector.c (vbitset_resize): Factor computation.
12658         * lib/bitset.c, lib/bitset/stats.c, lib/bitsetv.c: Prefer
12659         xzalloc to xcalloc.
12660         Suggested by Paul Eggert.
12662 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
12664         bitset: check memory allocation
12665         Reported by 江 祖铭 (Zu-Ming Jiang).
12666         With help from Paul Eggert.
12667         https://lists.gnu.org/archive/html/bug-bison/2019-08/msg00016.html
12668         * lib/bitset/table.c (tbitset_resize): When growing, use xrealloc
12669         instead of realloc.
12670         When shrinking, accept failures.
12671         * lib/bitset/vector.c (vbitset_resize): Likewise.
12673 2019-09-07  Paul Eggert  <eggert@cs.ucla.edu>
12675         scratch_buffer: sync from glibc
12676         * config/srclist.txt: Add the scratch_buffer source
12677         code from glibc, since these should be in sync.
12678         Autoupdate.
12680 2019-09-07  Bruno Haible  <bruno@clisp.org>
12682         doc: Update for glibc 2.30.
12683         * doc/glibc-functions/gettid.texi: New file.
12684         * doc/glibc-functions/pthread_cond_clockwait.texi: New file.
12685         * doc/glibc-functions/pthread_mutex_clocklock.texi: New file.
12686         * doc/glibc-functions/pthread_rwlock_clockrdlock.texi: New file.
12687         * doc/glibc-functions/pthread_rwlock_clockwrlock.texi: New file.
12688         * doc/glibc-functions/sem_clockwait.texi: New file.
12689         * doc/glibc-functions/tgkill.texi: New file.
12690         * doc/glibc-functions/twalk_r.texi: New file.
12691         * doc/gnulib.texi: Include them.
12692         (Glibc semaphore.h): New section.
12693         * doc/pastposix-functions/h_errno.texi: Update.
12694         * doc/posix-functions/*.texi: Likewise.
12696 2019-09-06  Bruno Haible  <bruno@clisp.org>
12698         symlink tests: Avoid test failure on Linux with Lustre file system.
12699         Reported by Thomas C Oppe <Thomas.C.Oppe@erdc.dren.mil>
12700         at <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=37312>.
12701         * tests/test-symlink.h (test_symlink): Accept errno value ENOENT.
12703 2019-09-01  Bruno Haible  <bruno@clisp.org>
12705         gitsub.sh: Add support for shallow-cloning of subdirectories.
12706         * top/gitsub.sh (func_usage): Document allowed git options with
12707         'git pull'.
12708         (func_pull): Accept GIT_OPTIONS argument.
12709         (pull): Parse git options before complaining about too many arguments.
12710         Pass the git options to func_pull.
12712 2019-08-29  Bruno Haible  <bruno@clisp.org>
12714         lock: Fix cross-compilation guesses.
12715         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
12716         Require AC_CANONICAL_HOST. When cross-compiling, guess no on most
12717         platforms.
12719 2019-08-28  Bruno Haible  <bruno@clisp.org>
12721         isfinite, isinf, isnan, signbit: Fix error in C++ mode on mingw.
12722         Reported by Martin Storsjö <martin@martin.st> in
12723         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00075.html>.
12724         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Add more arguments.
12725         (isfinite, isinf, isnan, signbit): On platforms that use C++ include
12726         files from GCC 6 or newer, use an override through '#define', because
12727         the inline definitions in the platform's <cmath> cannot be overridden
12728         in another way.
12730 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
12732         Revert macOS INT_MULTIPLY_WRAPV patch
12733         Problem reported by Bruno Haible in:
12734         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00076.html
12735         * lib/intprops.h (_GL_HAS___builtin_mul_overflow): Remove.
12736         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
12737         Go back to working around the Clang bug on macOS.
12739 2019-08-27  Bruno Haible  <bruno@clisp.org>
12741         libtool-next-version: Fix error output.
12742         * build-aux/libtool-next-version (func_fatal_error): Fix the program
12743         name.
12745 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
12747         Speed up INT_MULTIPLY_WRAPV on macOS
12748         Assume that __builtin_mul_overflow works OK with Clang on macOS.
12749         Mattias Engdegård says it’s safe to assume the relevant library
12750         is always available there.
12751         * lib/intprops.h (_GL_HAS___builtin_mul_overflow):
12752         New temporary internal macro.
12753         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
12754         No need to work around the Clang bug on macOS.
12756 2019-08-25  Paul Eggert  <eggert@cs.ucla.edu>
12758         intprops.h, verify.h: port better to clang
12759         Improve code generated by INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
12760         with Clang.  Problem reported privately by Mattias Engdegård.
12761         Also, insulate intprops.h and verify.h better against each other’s
12762         definitions of __has_builtin on non-Clang hosts.
12763         * lib/intprops.h (__has_builtin): Define a temporary substitute
12764         if __has_builtin is not already defined.
12765         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
12766         New temporary internal macros.
12767         (_GL_HAS_BUILTIN_ADD_OVERFLOW, _GL_HAS_BUILTIN_MUL_OVERFLOW):
12768         Now two separate macros, replacing the old
12769         _GL_HAS_BUILTIN_OVERFLOW, since we no longer assume that
12770         __builtin_mul_overflow is like the rest.  All uses changed.
12771         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV):
12772         Adjust to above changes.
12773         (_GL_INT_OP_WRAPV): Remove ‘builtin’ arg, since it’s no
12774         longer relevant.  All uses changed.
12775         * lib/verify.h (__has_builtin): Treat like intprops.h,
12776         so that the two .h files do not collide with each other.
12777         (_GL_HAS___builtin_unreachable, _GL_HAS___builtin_trap)
12778         (_GL_TEMPDEF___has_builtin): New temporary internal macros.
12780 2019-08-24  Paul Eggert  <eggert@cs.ucla.edu>
12782         intprops: say why not Clang __builtin_add_overflow
12783         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW):
12784         Mention Clang in comment, responding to a query from
12785         Mattias Engdegård.
12787 2019-08-24  Bruno Haible  <bruno@clisp.org>
12789         doc: Document most of the files outside of modules.
12790         * doc/gnulib.texi (Build Infrastructure Files,
12791         Release Management Files): New chapters.
12793 2019-08-24  Bruno Haible  <bruno@clisp.org>
12795         bootstrap: Keep in sync with the 'gettext' module.
12796         Reported by Assaf Gordon in
12797         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00045.html>.
12798         * build-aux/po/Makefile.in.in: Update to gettext 0.20.
12799         * build-aux/po/remove-potcdate.sin: Likewise.
12801 2019-08-24  Bruno Haible  <bruno@clisp.org>
12803         crypto/gc-sha512: Add tests.
12804         * tests/test-gc-sha512.c: New file, based on tests/test-gc-sha1.c.
12805         * modules/crypto/gc-sha512-tests: New file.
12807         crypto/gc-sha256: Add tests.
12808         * tests/test-gc-sha256.c: New file, based on tests/test-gc-sha1.c.
12809         * modules/crypto/gc-sha256-tests: New file.
12811         crypto/gc-sha256, crypto/gc-sha512: New modules.
12812         * lib/gc.h (gc_sha256, gc_sha512): New declarations.
12813         * lib/gc-gnulib.c: Include sha256.h, sha512.h.
12814         (MAX_DIGEST_SIZE): Set to 64.
12815         (_gc_hash_ctx, gc_hash_open, gc_hash_digest_length, gc_hash_write,
12816         gc_hash_read, gc_hash_buffer): Add support for sha256 and sha512.
12817         (gc_sha256, gc_sha512): New functions.
12818         * lib/gc-libgcrypt.c (gc_sha256, gc_sha512): New functions.
12819         * modules/crypto/gc-sha256: New file, based on modules/crypto/gc-sha1.
12820         * modules/crypto/gc-sha512: New file, based on modules/crypto/gc-sha1.
12822 2019-08-24  Bruno Haible  <bruno@clisp.org>
12824         crypto/gc-sha1 tests: Improve output when the test fails.
12825         * tests/test-gc-sha1.c (main): In case of mismatch, print the entire
12826         output.
12828 2019-08-24  Bruno Haible  <bruno@clisp.org>
12830         crypto/gc-sm3: Fix compilation error with --with-libgcrypt.
12831         * m4/gc-sm3.m4 (gl_GC_SM3): Test whether libgcrypt supports SM3. Define
12832         LIBGCRYPT_HAS_MD_SM3.
12833         * lib/gc-libgcrypt.c: Include sm3.h.
12834         (_gc_hash_ctx, gc_hash_open, gc_hash_hmac_setkey, gc_hash_write,
12835         gc_hash_read, gc_hash_close, gc_hash_buffer, gc_sm3): Use the gnulib
12836         implementation if libgcrypt does not support SM3.
12838 2019-08-24  Bruno Haible  <bruno@clisp.org>
12840         crypto/gc-md2: Optimize and clarify code.
12841         * lib/gc-gnulib.c (gc_hash_open): Comment out md2_init_ctx invocation.
12842         * lib/gc-libgcrypt.c (gc_hash_open): Clarify why md2_init_ctx invocation
12843         is not needed.
12845 2019-08-24  Bruno Haible  <bruno@clisp.org>
12847         crypto/gc-md2: Add comment.
12848         * lib/gc-libgcrypt.c: Add comment.
12850 2019-08-24  Bruno Haible  <bruno@clisp.org>
12852         crypto/gc-{md[24],rijndael} tests: Fix link error with --with-libgcrypt.
12853         * modules/crypto/gc-md2-tests (test_gc_md2_LDADD): New variable.
12854         * modules/crypto/gc-md4-tests (test_gc_md4_LDADD): New variable.
12855         * modules/crypto/gc-rijndael-tests (test_gc_rijndael_LDADD): New
12856         variable.
12858 2019-08-24  Bruno Haible  <bruno@clisp.org>
12860         crypto/gc: Fix link error with --with-libgcrypt.
12861         * m4/gc.m4 (gl_GC): Set LIB_CRYPTO to the value found by the
12862         AC_LIB_HAVE_LINKFLAGS invocation.
12864 2019-08-24  Bruno Haible  <bruno@clisp.org>
12866         crypto/gc: Access the module indicators correctly.
12867         * lib/gc-gnulib.c: Use '#if GNULIB_GC_*', not '#ifdef GNULIB_GC_*'.
12868         * lib/gc-libgcrypt.c: Likewise.
12870 2019-08-24  Bruno Haible  <bruno@clisp.org>
12872         crypto/gc: Fix configuration with --with-libgcrypt.
12873         * m4/libgcrypt.m4: New file, copied from libgcrypt/src/libgcrypt.m4.
12874         * modules/crypto/gc (Files): Add it.
12875         * m4/gc.m4 (gl_GC): Assume AM_PATH_LIBGCRYPT is defined.
12877 2019-08-24  Bruno Haible  <bruno@clisp.org>
12879         Remove unused file.
12880         * m4/stat-macros.m4: Remove file.
12882 2019-08-21  Paul Eggert  <eggert@cs.ucla.edu>
12884         New strip-trailing-space option for srclist-update
12885         * config/srclist-update (fixfile): Support new option.
12886         * config/srclist.txt (texinfo.tex, maintain.texi, standards.texi):
12887         Use it.
12889 2019-08-20  Eric Blake  <eblake@redhat.com>
12891         accept4: Support SOCK_NONBLOCK, if defined
12892         * lib/accept4.c (accept4): If SOCK_NONBLOCK is defined, honor it.
12894         accept4: Fix compilation when native accept4() exists.
12895         Reported by Richard W.M. Jones <rjones@redhat.com> in
12896         https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00029.html
12897         * lib/accept4.c (accept4): Match witness symbol to m4 file update.
12899 2019-08-18  Bruno Haible  <bruno@clisp.org>
12901         Defeat -flto GCC optimization in math autoconf tests.
12902         Reported by Tomasz Kłoczko <kloczko.tomasz@gmail.com>
12903         at <https://savannah.gnu.org/bugs/?56109>.
12904         * m4/mathfunc.m4 (gl_MATHFUNC): Mark function pointer as 'volatile'.
12905         * m4/acosl.m4 (gl_FUNC_ACOSL): Likewise.
12906         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
12907         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
12908         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
12909         * m4/exp2.m4 (gl_FUNC_EXP2): Likewise.
12910         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
12911         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
12912         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
12913         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
12914         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
12915         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
12917 2019-08-17  Bruno Haible  <bruno@clisp.org>
12919         windows-spin: Implement declared functions.
12920         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
12921         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00024.html>.
12922         * lib/windows-spin.c (glwthread_spin_trylock): Fix typo in function
12923         name.
12925 2019-08-17  Paul Eggert  <eggert@cs.ucla.edu>
12927         intprops: port to Oracle Developer Studio 12.6
12928         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix recently-introduced
12929         typos that were in a section not compiled by GCC.
12931 2019-08-14  Paul Eggert  <eggert@cs.ucla.edu>
12933         intprops: support uchar, ushort _WRAPV dests
12934         * lib/intprops.h (_GL_INT_OP_WRAPV_SMALLISH): New macro, defined
12935         when __builtin_add_overflow etc. and _Generic are not used.
12936         (_GL_INT_OP_WRAPV): Use it to support destinations that
12937         are unsigned char or unsigned short, even in compilers
12938         that lack __typeof__ and are not C11-compatible.
12940         intprops: pacify picky GCC
12941         * lib/intprops.h (_GL_BUILTIN_MUL_OVERFLOW):
12942         Pacify GCC’s complaints about ignoring __builtin_mul_overflow’s
12943         possibly-incorrect result.
12944         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): Pacify GCC’s complaints
12945         about (A) used as a boolean, when A is an expression like 3 * 4.
12947         intprops: support unsigned *_WRAPV results
12948         Add support for unsigned, unsigned long, and unsigned long long
12949         results to INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, and
12950         INT_MULTIPLY_WRAPV.  Also, work around GCC bug 91450, and fix a
12951         bug with unsigned inputs reported by Eli Zaretskii in:
12952         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00012.html
12953         * config/srclist.txt: Break the glibc connection for intprops.h
12954         temporarily, while more testing is done in Gnulib-using apps.
12955         * lib/intprops.h (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
12956         (INT_MULTIPLY_WRAPV, _GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH):
12957         Support unsigned results no narrower than unsigned int.  Report
12958         overflow correctly if some arguments are unsigned.
12959         (_GL_BUILTIN_MUL_OVERFLOW): New macro, to work around GCC bug 91450.
12960         (_GL_INT_OP_CALC): Simplify now that the OVERFLOW argument does
12961         the right thing with narrow args.
12962         (_GL_INT_OP_CALC1): Remove.  All callers removed.
12963         (_GL_INT_ADD_RANGE_OVERFLOW, _GL_INT_SUBTRACT_RANGE_OVERFLOW)
12964         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): New macros.
12965         * tests/test-intprops.c: Check for bugs and test new behavior.
12967 2019-08-14  Bruno Haible  <bruno@clisp.org>
12969         get_progname_of: New module.
12970         * lib/get_progname_of.h: New file.
12971         * lib/get_progname_of.c: New file, based on lib/getprogname.c.
12972         * lib/getprogname.c (getprogname): Tweak coding style.
12973         * lib/vma-iter.c (vma_iterate_bsd): Update comment.
12974         * modules/get_progname_of: New file.
12976 2019-08-14  Bruno Haible  <bruno@clisp.org>
12978         get_ppid_of: New module.
12979         * lib/get_ppid_of.h: New file.
12980         * lib/get_ppid_of.c: New file.
12981         * modules/get_ppid_of: New file.
12983 2019-08-13  Bruno Haible  <bruno@clisp.org>
12985         libtextstyle-optional tests: Support the NO_COLOR environment variable.
12986         * tests/test-libtextstyle.c (main): Do not emit styling when the
12987         environment variable NO_COLOR is set.
12989 2019-08-12  Paul Eggert  <eggert@cs.ucla.edu>
12991         verify: improve diagnostic quality in recent GCC
12992         If ‘verify’ fails in a deeply-nested macro, GCC does not output a
12993         useful line number containing the top-level caller of the macro.
12994         So, bring back the older way of issuing a diagnostic containing
12995         the top-level call’s arg, so that it is easier to diagnose
12996         ‘verify’ failures with recent GCC.
12997         * lib/verify.h (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE):
12998         Bring back DIAGNOSTIC arg.  All callers changed.
12999         (verify): Just use _GL_VERIFY.
13001 2019-08-11  Bruno Haible  <bruno@clisp.org>
13003         localcharset: Add more aliases for OS/2.
13004         Based on patch by KO Myung-Hun <komh78@gmail.com> in
13005         <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2019-08/msg00004.html>.
13006         * lib/localcharset.c (alias_table) [OS2]: Add more aliases.
13008 2019-08-10  Eric Blake  <eblake@redhat.com>
13010         configmake: Update advice on usage.
13011         * modules/configmake (Include): No longer necessary to include
13012         last, since configmake.h itself worries about collision avoidance.
13014 2019-08-10  Assaf Gordon <assafgordon@gmail.com>
13016         parse-datetime: fix 'T' military timezone handling
13017         * lib/parse-datetime.y (zone):
13018         follow-up to the previous commit: the 'T' case is handled outside the
13019         conversion table (used as either military timezone UTC-7 or ISO8601
13020         separator). Change it from "HOUR(7)" to "-HOUR(7)" to match other
13021         timezone letters.
13023 2019-08-09  Paul Eggert  <eggert@cs.ucla.edu>
13025         parse-datetime: fix military timezone letters
13026         Problem and trivial fix reported by Neil Hoggarth in:
13027         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00005.html
13028         * lib/parse-datetime.y (military_table):
13029         Do it the right way, not the RFC 822 way.
13031 2019-08-08  Eric Blake  <eblake@redhat.com>
13033         configmake: Avoid namespace pollution issue on mingw.
13034         * modules/configmake (Makefile.am): If the project uses
13035         <winsock2.h>, include that header before defining DATADIR.
13037 2019-07-28  Bruno Haible  <bruno@clisp.org>
13039         mbrtowc tests: Fix regression on mingw (regression from 2018-02-24).
13040         * tests/test-mbrtowc.c (main): Fix expected value of wc.
13042 2019-07-24  Bruno Haible  <bruno@clisp.org>
13044         pthread-h: Fix definitions of types and macros on mingw.
13045         * lib/pthread.in.h (pthread_t, pthread_attr_t, PTHREAD_CREATE_JOINABLE,
13046         PTHREAD_CREATE_DETACHED): Define also when module 'pthread-thread' is
13047         not in use.
13048         (pthread_once_t, PTHREAD_ONCE_INIT): Define also when module
13049         'pthread-once' is not in use.
13050         (pthread_mutex_t, pthread_mutexattr_t, PTHREAD_MUTEX_INITIALIZER,
13051         PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL, PTHREAD_MUTEX_ERRORCHECK,
13052         PTHREAD_MUTEX_RECURSIVE): Define also when module 'pthread-mutex' is not
13053         in use.
13054         (pthread_rwlock_t, pthread_rwlockattr_t, PTHREAD_RWLOCK_INITIALIZER):
13055         Define also when module 'pthread-rwlock' is not in use.
13056         (pthread_cond_t, pthread_condattr_t, PTHREAD_COND_INITIALIZER): Define
13057         also when module 'pthread-cond' is not in use.
13058         (pthread_key_t, PTHREAD_DESTRUCTOR_ITERATIONS): Define also when module
13059         'pthread-tss' is not in use.
13060         (pthread_spinlock_t): Define also when module 'pthread-spin' is not in
13061         use.
13063 2019-07-24  Simon Josefsson  <simon@josefsson.org>
13065         crypto/gc: Cope with libgcrypt without SM3.
13066         * lib/gc-libgcrypt.c (gc_hash_open): Guard SM3 usage.
13068 2019-07-23  Paul Eggert  <eggert@cs.ucla.edu>
13070         backupfile: fix resource leak on memory failure
13071         Problem found by Coverity (CID 1484214).
13072         * lib/backupfile.c (backupfile_internal): Don’t leak dirp.
13074 2019-07-22  Bruno Haible  <bruno@clisp.org>
13076         Avoid missing-declarations warning in various tests.
13077         * tests/test-argp.c (fail, test1, test2, test_file, test3, test4, test5,
13078         test6, test_optional, test7, test8, test9, test10, test11, test12,
13079         test13, test14, test15, test_fun): Declare static.
13080         * tests/test-cnd.c (test_cnd_wait): Likewise.
13081         * tests/test-cond.c (test_cond): Likewise.
13083 2019-07-22  Bernhard Voelker  <mail@bernhard-voelker.de>
13085         pthread tests: Avoid missing-declarations warning.
13086         * tests/test-pthread-cond.c (test_pthread_cond_wait): Declare static.
13088 2019-07-19  Bruno Haible  <bruno@clisp.org>
13090         parse-datetime: Avoid warnings from bison versions >= 3.3.
13091         Reported by Bernhard Voelker <mail@bernhard-voelker.de>.
13092         * modules/parse-datetime (Makefile.am): Don't pass option '-y' to bison.
13094 2019-07-19  Bruno Haible  <bruno@clisp.org>
13096         parse-datetime: Require Bison 2.4 or newer.
13097         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Set PARSE_DATETIME_BISON.
13098         Code taken from gettext's intl.m4.
13099         * modules/parse-datetime (Makefile.am): Use PARSE_DATETIME_BISON instead
13100         of YACC.
13102 2019-07-19  Bruno Haible  <bruno@clisp.org>
13104         areadlink-with-size, xgethostname, xgetdomainname: Fix GCC warning.
13105         * lib/areadlink-with-size.c: Include <string.h>.
13106         * lib/areadlinkat-with-size.c: Likewise.
13107         * lib/xgethostname.c: Likewise.
13108         * lib/xgetdomainname.c: Likewise.
13110 2019-07-19  Bernhard Voelker  <mail@bernhard-voelker.de>
13112         parse-datetime: avoid "%pure-parser" deprecation warning from Bison 3.4
13113         * lib/parse-datetime.y: Use "%define api.pure" rather than obsolescent
13114         "%pure-parser".  The former is available since Bison 2.3b (2008),
13115         while the latter is marked as obsolete since version 3.4 (May 2019).
13117 2019-07-16  Bruno Haible  <bruno@clisp.org>
13119         update-copyright: Make it work again (regression from 2019-06-15).
13120         Reported by Brian C. Lane <bcl@redhat.com>.
13121         * build-aux/update-copyright: Add back the -0777, -p, -i options.
13123 2019-07-14  Bruno Haible  <bruno@clisp.org>
13125         doc: Update info about <pthread.h>.
13126         * doc/posix-headers/pthread.texi: Mention the module 'pthread-h' instead
13127         of 'pthread'.
13129 2019-07-14  Bruno Haible  <bruno@clisp.org>
13131         pthread_sigmask tests: Use new multithread modules.
13132         * tests/test-pthread_sigmask2.c: Include <pthread.h> instead of
13133         glthread/thread.h.
13134         (main_thread, killer_thread): Change type to pthread_t.
13135         (main): Update accordingly.
13136         * modules/pthread_sigmask-tests (Depends-on): Add pthread-thread. Remove
13137         thread.
13139 2019-07-14  Bruno Haible  <bruno@clisp.org>
13141         pthread-tss: Add tests.
13142         * tests/test-pthread-tss.c: New file, based on tests/test-tls.c and
13143         tests/test-tss.c.
13144         * modules/pthread-tss-tests: New file.
13146 2019-07-14  Bruno Haible  <bruno@clisp.org>
13148         pthread-cond: Add tests.
13149         * tests/test-pthread-cond.c: New file, based on tests/test-cond.c and
13150         tests/test-cnd.c.
13151         * modules/pthread-cond-tests: New file.
13153 2019-07-14  Bruno Haible  <bruno@clisp.org>
13155         pthread-rwlock: Add tests.
13156         * tests/test-pthread-rwlock.c: New file, based on tests/test-lock.c.
13157         * modules/pthread-rwlock-tests: New file.
13159 2019-07-14  Bruno Haible  <bruno@clisp.org>
13161         pthread-mutex: Add tests.
13162         * tests/test-pthread-mutex.c: New file, based on tests/test-lock.c and
13163         tests/test-mtx.c.
13164         * modules/pthread-mutex-tests: New file.
13166 2019-07-14  Bruno Haible  <bruno@clisp.org>
13168         pthread-once: Add tests.
13169         * tests/test-pthread-once1.c: New file, based on tests/test-once.c and
13170         tests/test-call_once.c.
13171         * tests/test-pthread-once2.c: New file, based on tests/test-lock.c and
13172         tests/test-mtx.c.
13173         * modules/pthread-once-tests: New file.
13175 2019-07-14  Bruno Haible  <bruno@clisp.org>
13177         pthread-thread: Add tests.
13178         * tests/test-pthread-thread.c: New file, based on
13179         tests/test-thread_create.c and tests/test-thrd_create.c.
13180         * modules/pthread-thread-tests: New file.
13182 2019-07-14  Bruno Haible  <bruno@clisp.org>
13184         pthread: Turn into a convenience module.
13185         * lib/pthread.in.h: Remove declarations for extern inline functions.
13186         * lib/pthread.c: Remove file.
13187         * modules/pthread (Files): Remove it.
13188         (Depends-on): Add pthread-thread, pthread-once, pthread-mutex,
13189         pthread-rwlock, pthread-cond, pthread-tss, pthread-spin.
13190         (configure.ac): Don't compile lib/pthread.c. Don't set GNULIB_PTHREAD.
13191         * m4/pthread_h.m4 (gl_PTHREAD_H_DEFAULTS): Don't initialize
13192         GNULIB_PTHREAD.
13193         * modules/pthread-h (Makefile.am): Don't substitute GNULIB_PTHREAD.
13195 2019-07-14  Bruno Haible  <bruno@clisp.org>
13197         pthread-spin: New module.
13198         * lib/pthread.in.h (pthread_spin_init, pthread_spin_destroy,
13199         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock): Remove
13200         inline definitions.
13201         * lib/pthread-spin.c: New file.
13202         * m4/pthread-spin.m4: New file.
13203         * modules/pthread-spin: New file.
13204         * doc/posix-functions/pthread_spin_init.texi: Mention the new module.
13205         * doc/posix-functions/pthread_spin_lock.texi: Likewise.
13206         * doc/posix-functions/pthread_spin_trylock.texi: Likewise.
13207         * doc/posix-functions/pthread_spin_unlock.texi: Likewise.
13208         * doc/posix-functions/pthread_spin_destroy.texi: Likewise.
13210 2019-07-14  Bruno Haible  <bruno@clisp.org>
13212         pthread-tss: New module.
13213         * lib/pthread-tss.c: New file.
13214         * m4/pthread-tss.m4: New file.
13215         * modules/pthread-tss: New file.
13216         * doc/posix-functions/pthread_key_create.texi: Mention the new module.
13217         * doc/posix-functions/pthread_setspecific.texi: Likewise.
13218         * doc/posix-functions/pthread_getspecific.texi: Likewise.
13219         * doc/posix-functions/pthread_key_delete.texi: Likewise.
13221 2019-07-14  Bruno Haible  <bruno@clisp.org>
13223         pthread-cond: New module.
13224         * lib/pthread.in.h (pthread_cond_destroy, pthread_cond_init,
13225         pthread_cond_signal, pthread_cond_wait): Remove inline definitions.
13226         * lib/pthread-cond.c: New file.
13227         * m4/pthread-cond.m4: New file.
13228         * modules/pthread-cond: New file.
13229         * doc/posix-functions/pthread_cond_init.texi: Mention the new module.
13230         * doc/posix-functions/pthread_condattr_init.texi: Likewise.
13231         * doc/posix-functions/pthread_condattr_destroy.texi: Likewise.
13232         * doc/posix-functions/pthread_cond_wait.texi: Likewise.
13233         * doc/posix-functions/pthread_cond_timedwait.texi: Likewise.
13234         * doc/posix-functions/pthread_cond_signal.texi: Likewise.
13235         * doc/posix-functions/pthread_cond_broadcast.texi: Likewise.
13236         * doc/posix-functions/pthread_cond_destroy.texi: Likewise.
13238 2019-07-14  Bruno Haible  <bruno@clisp.org>
13240         pthread-rwlock: New module.
13241         * lib/pthread-rwlock.c: New file, based on lib/glthread/lock.c.
13242         * m4/pthread-rwlock.m4: New file.
13243         * modules/pthread-rwlock: New file.
13244         * doc/posix-functions/pthread_rwlock_init.texi: Mention the new module
13245         and the Android problem.
13246         * doc/posix-functions/pthread_rwlockattr_init.texi: Likewise.
13247         * doc/posix-functions/pthread_rwlockattr_destroy.texi: Likewise.
13248         * doc/posix-functions/pthread_rwlock_rdlock.texi: Likewise.
13249         * doc/posix-functions/pthread_rwlock_wrlock.texi: Likewise.
13250         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likewise.
13251         * doc/posix-functions/pthread_rwlock_trywrlock.texi: Likewise.
13252         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
13253         * doc/posix-functions/pthread_rwlock_timedwrlock.texi: Likewise.
13254         * doc/posix-functions/pthread_rwlock_unlock.texi: Likewise.
13255         * doc/posix-functions/pthread_rwlock_destroy.texi: Likewise.
13257 2019-07-14  Bruno Haible  <bruno@clisp.org>
13259         pthread-mutex: New module.
13260         * lib/pthread.in.h (pthread_mutexattr_destroy, pthread_mutexattr_init,
13261         pthread_mutexattr_settype, pthread_mutex_destroy, pthread_mutex_init,
13262         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_timedlock,
13263         pthread_mutex_unlock): Remove inline definitions.
13264         * lib/pthread-mutex.c: New file.
13265         * m4/pthread-mutex.m4: New file.
13266         * modules/pthread-mutex: New file.
13267         * doc/posix-functions/pthread_mutex_init.texi: Mention the new module.
13268         * doc/posix-functions/pthread_mutexattr_init.texi: Likewise.
13269         * doc/posix-functions/pthread_mutexattr_gettype.texi: Likewise.
13270         * doc/posix-functions/pthread_mutexattr_settype.texi: Likewise.
13271         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
13272         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
13273         * doc/posix-functions/pthread_mutexattr_destroy.texi: Likewise.
13274         * doc/posix-functions/pthread_mutex_lock.texi: Likewise.
13275         * doc/posix-functions/pthread_mutex_trylock.texi: Likewise.
13276         * doc/posix-functions/pthread_mutex_timedlock.texi: Likewise.
13277         * doc/posix-functions/pthread_mutex_unlock.texi: Likewise.
13278         * doc/posix-functions/pthread_mutex_destroy.texi: Likewise.
13280 2019-07-14  Bruno Haible  <bruno@clisp.org>
13282         pthread-once: New module.
13283         * lib/pthread-once.c: New file.
13284         * m4/pthread-once.m4: New file.
13285         * modules/pthread-once: New file.
13286         * doc/posix-functions/pthread_once.texi: Mention the new module.
13288 2019-07-14  Bruno Haible  <bruno@clisp.org>
13290         pthread-thread: New module.
13291         * lib/pthread.in.h (pthread_create, pthread_exit, pthread_join): Remove
13292         inline definitions.
13293         * lib/pthread-thread.c: New file.
13294         * m4/pthread-thread.m4: New file.
13295         * modules/pthread-thread: New file.
13296         * doc/posix-functions/pthread_create.texi: Mention the new module.
13297         * doc/posix-functions/pthread_attr_init.texi: Likewise.
13298         * doc/posix-functions/pthread_attr_getdetachstate.texi: Likewise.
13299         * doc/posix-functions/pthread_attr_setdetachstate.texi: Likewise.
13300         * doc/posix-functions/pthread_attr_destroy.texi: Likewise.
13301         * doc/posix-functions/pthread_self.texi: Likewise.
13302         * doc/posix-functions/pthread_equal.texi: Likewise.
13303         * doc/posix-functions/pthread_detach.texi: Likewise.
13304         * doc/posix-functions/pthread_join.texi: Likewise.
13305         * doc/posix-functions/pthread_exit.texi: Likewise.
13307 2019-07-14  Bruno Haible  <bruno@clisp.org>
13309         pthread-h: Prepare for adding new modules.
13310         * lib/pthread.in.h: Define the types and macros for each of the
13311         facilities separately.
13312         * m4/pthread_h.m4 (gl_PTHREAD_H): Set HAVE_PTHREAD_CREATE_DETACHED,
13313         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
13314         HAVE_PTHREAD_PROCESS_SHARED.
13315         (gl_PTHREAD_H_DEFAULTS): Initialize HAVE_PTHREAD_CREATE_DETACHED,
13316         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
13317         HAVE_PTHREAD_PROCESS_SHARED.
13318         * modules/pthread-h (Makefile.am): Substitute
13319         HAVE_PTHREAD_CREATE_DETACHED, HAVE_PTHREAD_MUTEX_RECURSIVE,
13320         HAVE_PTHREAD_MUTEX_ROBUST, HAVE_PTHREAD_PROCESS_SHARED.
13322 2019-07-14  Bruno Haible  <bruno@clisp.org>
13324         pthread-h: Add declarations of essential pthread functions.
13325         * lib/pthread.in.h: Include snippets.
13326         (pthread_create, pthread_attr_init, pthread_attr_getdetachstate,
13327         pthread_attr_setdetachstate, pthread_attr_destroy, pthread_self,
13328         pthread_equal, pthread_detach, pthread_join, pthread_exit, pthread_once,
13329         pthread_mutex_init, pthread_mutexattr_init, pthread_mutexattr_gettype,
13330         pthread_mutexattr_settype, pthread_mutexattr_getrobust,
13331         pthread_mutexattr_setrobust, pthread_mutexattr_destroy,
13332         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_unlock,
13333         pthread_mutex_destroy, pthread_rwlock_init, pthread_rwlockattr_init,
13334         pthread_rwlockattr_destroy, pthread_rwlock_rdlock,
13335         pthread_rwlock_wrlock, pthread_rwlock_tryrdlock,
13336         pthread_rwlock_trywrlock, pthread_rwlock_timedrdlock,
13337         pthread_rwlock_timedwrlock, pthread_rwlock_unlock,
13338         pthread_rwlock_destroy, pthread_cond_init, pthread_condattr_init,
13339         pthread_condattr_destroy, pthread_cond_wait, pthread_cond_timedwait,
13340         pthread_cond_signal, pthread_cond_broadcast, pthread_cond_destroy,
13341         pthread_key_create, pthread_setspecific, pthread_getspecific,
13342         pthread_key_delete, pthread_spin_init, pthread_spin_lock,
13343         pthread_spin_trylock, pthread_spin_unlock, pthread_spin_destroy): New
13344         declarations.
13345         (pthread_mutex_timedlock): Move declaration.
13346         * m4/pthread_h.m4 (gl_PTHREAD_H): Check whether the new functions are
13347         declared.
13348         (gl_PTHREAD_H_DEFAULTS): Initialize GNULIB_PTHREAD_THREAD,
13349         GNULIB_PTHREAD_ONCE, GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK,
13350         GNULIB_PTHREAD_COND, GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the
13351         HAVE_* and REPLACE_* variables for the new functions.
13352         * modules/pthread-h (Depends-on): Add snippet/c++defs,
13353         snippet/_Noreturn, snippet/arg-nonnull, snippet/warn-on-use.
13354         (Makefile.am): Substitute GNULIB_PTHREAD_THREAD, GNULIB_PTHREAD_ONCE,
13355         GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK, GNULIB_PTHREAD_COND,
13356         GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the HAVE_* and REPLACE_*
13357         variables for the new functions. Split the sed script, to avoid the
13358         limit of 99 commands of HP-UX sed.
13359         * tests/test-pthread-c++.cc: Check the signature of the new functions.
13361 2019-07-14  Bruno Haible  <bruno@clisp.org>
13363         pthread-h: Respect --enable-threads={posix|windows} option on mingw.
13364         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_THREADLIB. Set
13365         HAVE_PTHREAD_H if gl_threads_api is 'windows'.
13366         (LIB_PTHREAD): Rely on $LIBMULTITHREAD from threadlib.m4.
13367         * modules/pthread (Link): Change to $(LIBMULTITHREAD).
13368         * modules/pthread-h (Depends-on): Add threadlib.
13369         (Link): Change to $(LIBTHREAD).
13370         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Use
13371         $(LIBMULTITHREAD) instead of $(LIB_PTHREAD).
13373 2019-07-14  Bruno Haible  <bruno@clisp.org>
13375         pthread-h: Add C++ tests.
13376         * tests/test-pthread-c++.cc: New file.
13377         * modules/pthread-h-c++-tests: New file.
13379 2019-07-14  Bruno Haible  <bruno@clisp.org>
13381         pthread-h: Add tests.
13382         * tests/test-pthread.c: New file.
13383         * modules/pthread-h-tests: New file.
13385 2019-07-14  Bruno Haible  <bruno@clisp.org>
13387         pthread-h: New module.
13388         * lib/pthread.in.h: Define replacement functions only if GNULIB_PTHREAD
13389         is 1.
13390         * m4/pthread_h.m4: Renamed from m4/pthread.m4.
13391         (gl_PTHREAD_H): Renamed from gl_PTHREAD_CHECK. Don't test whether
13392         <pthread.h> pollutes the namespace; instead, prepare for generating a
13393         pthread.h always. Substitute HAVE_PTHREAD_H here.
13394         (gl_PTHREAD_H_DEFAULTS): Renamed from gl_PTHREAD_DEFAULTS. Initialize
13395         GNULIB_PTHREAD. Don't initialize HAVE_PTHREAD_H here.
13396         * modules/pthread-h: New file, based on modules/pthread.
13397         * modules/pthread: Rely on 'pthread-h'.
13398         * m4/pthread_mutex_timedlock.m4 (gl_FUNC_PTHREAD_MUTEX_TIMEDLOCK):
13399         Update.
13400         * modules/pthread_mutex_timedlock (Depends-on): Add pthread-h. Remove
13401         pthread.
13403 2019-07-14  Bruno Haible  <bruno@clisp.org>
13405         sched_yield: New module.
13406         * lib/sched.in.h: Add _GL_FUNCDECL_RPL, _GL_WARN_ON_USE placeholders.
13407         (sched_yield): New declaration.
13408         * lib/sched_yield.c: New file.
13409         * m4/sched_yield.m4: New file.
13410         * m4/sched_h.m4 (gl_SCHED_H): Require gl_SCHED_H_DEFAULTS. Arrange to
13411         provide a replacement sched.h always. Test whether sched_yield is
13412         declared.
13413         (gl_SCHED_MODULE_INDICATOR, gl_SCHED_H_DEFAULTS): New macros.
13414         * modules/sched (Depends-on): Add snippet/c++defs, snippet/warn-on-use.
13415         (Makefile.am): Provide a replacement sched.h always. Substitute
13416         GNULIB_SCHED_YIELD, HAVE_SCHED_YIELD, REPLACE_SCHED_YIELD,
13417         _GL_FUNCDECL_RPL, _GL_WARN_ON_USE.
13418         * modules/sched_yield: New file.
13419         * doc/posix-functions/sched_yield.texi: Mention the new module.
13421 2019-07-14  Bruno Haible  <bruno@clisp.org>
13423         windows-spin: New module.
13424         * lib/windows-spin.h: New file.
13425         * lib/windows-spin.c: New file.
13426         * modules/windows-spin: New file.
13428 2019-07-14  Bruno Haible  <bruno@clisp.org>
13430         windows-timedrwlock: New module.
13431         * lib/windows-timedrwlock.h: New file, based on windows-rwlock.h.
13432         * lib/windows-timedrwlock.c: New file, based on windows-rwlock.c and
13433         windows-cond.c.
13434         * lib/windows-cond.h (struct glwthread_waitqueue_link): Protect against
13435         redefinition conflict with windows-timedrwlock.h.
13436         * modules/windows-timedrwlock: New file.
13438 2019-07-14  Bruno Haible  <bruno@clisp.org>
13440         windows-rwlock: New module.
13441         * lib/windows-rwlock.h: New file, extracted from lib/glthread/lock.h.
13442         * lib/windows-rwlock.c: New file, extracted from lib/glthread/lock.c.
13443         * lib/glthread/lock.h: Include windows-rwlock.h. Don't include
13444         windows-initguard.h.
13445         (gl_rwlock_t): Define using glwthread_rwlock_t.
13446         (gl_rwlock_initializer): Define using GLWTHREAD_RWLOCK_INIT.
13447         (glthread_rwlock_init): Define using glwthread_rwlock_init.
13448         (glthread_rwlock_rdlock): Define using glwthread_rwlock_rdlock.
13449         (glthread_rwlock_wrlock): Define using glwthread_rwlock_wrlock.
13450         (glthread_rwlock_unlock): Define using glwthread_rwlock_unlock.
13451         (glthread_rwlock_destroy): Define using glwthread_rwlock_destroy.
13452         (glthread_rwlock_init_func, glthread_rwlock_rdlock_func,
13453         glthread_rwlock_wrlock_func, glthread_rwlock_unlock_func,
13454         glthread_rwlock_destroy_func): Remove declarations.
13455         * lib/glthread/lock.c (gl_waitqueue_t): Remove type.
13456         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_notify_first,
13457         gl_waitqueue_notify_all, glthread_rwlock_init_func,
13458         glthread_rwlock_rdlock_func, glthread_rwlock_wrlock_func,
13459         glthread_rwlock_unlock_func, glthread_rwlock_destroy_func): Remove
13460         functions.
13461         * modules/windows-rwlock: New file.
13462         * modules/lock (Depends-on): Add windows-rwlock.
13464 2019-07-14  Bruno Haible  <bruno@clisp.org>
13466         windows-thread: Add support for creating a thread in detached state.
13467         * lib/windows-thread.h (GLWTHREAD_ATTR_DETACHED): New macro.
13468         (glwthread_thread_create): Add attr argument.
13469         * lib/windows-thread.c (glwthread_thread_create): Likewise.
13470         * lib/glthread/thread.h (glthread_create): Update.
13471         * lib/thrd.c (thrd_create): Update.
13473 2019-07-14  Bruno Haible  <bruno@clisp.org>
13475         windows-*: Rename glwthread_spinlock_t to glwthread_initguard_t.
13476         * lib/windows-initguard.h: Renamed from lib/windows-spinlock.h.
13477         (glwthread_initguard_t): Renamed from glwthread_spinlock_t.
13478         (GLWTHREAD_INITGUARD_INIT): Renamed from GLWTHREAD_SPINLOCK_INIT.
13479         * lib/windows-mutex.h: Update.
13480         * lib/windows-recmutex.h: Likewise.
13481         * lib/windows-timedmutex.h: Likewise.
13482         * lib/windows-timedrecmutex.h: Likewise.
13483         * lib/windows-cond.h: Likewise.
13484         * lib/glthread/lock.h: Likewise.
13485         * modules/windows-mutex (Files): Add lib/windows-initguard.h. Remove
13486         lib/windows-spinlock.h.
13487         * modules/windows-recmutex (Files): Likewise.
13488         * modules/windows-timedmutex (Files): Likewise.
13489         * modules/windows-timedrecmutex (Files): Likewise.
13490         * modules/windows-cond (Files): Likewise.
13491         * modules/threads-h (Files): Likewise.
13493 2019-07-14  Bruno Haible  <bruno@clisp.org>
13495         doc: Fix info about pthread API in HP-UX.
13496         * doc/posix-functions/pthread_*.texi: Fix info about HP-UX 11.
13498 2019-07-14  Bruno Haible  <bruno@clisp.org>
13500         threads-h: Fix generation of threads.h.
13501         * modules/threads-h (Makefile.am): Insert the required header file
13502         snippets.
13504 2019-07-09  Bruno Haible  <bruno@clisp.org>
13506         striconveh test: Fix a compilation failure when iconv is not available.
13507         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13508         * tests/test-striconveh.c (main): Move iconv_close invocations inside
13509         HAVE_ICONV.
13511 2019-07-07  Akim Demaille  <akim@lrde.epita.fr>
13513         argmatch: adjust columns for help2man.
13514         * lib/argmatch.h (argmatch_##Name##_doc_col): If some argument
13515         requires column 20 or more, return 20.
13517 2019-07-06  Paul Eggert  <eggert@cs.ucla.edu>
13519         areadlink-with-size: avoid realloc when size==0
13520         * lib/areadlink-with-size.c (areadlink_with_size):
13521         * lib/areadlinkat-with-size.c (areadlinkat_with_size):
13522         Reallocate at the end to the actual size, to avoid memory waste,
13523         as suggested by Bruno Haible.  But when the guessed size is zero -
13524         useful when the size is unknown - do the initial small readlink
13525         into the stack, to avoid that realloc in the usual case.
13527 2019-07-06  Pádraig Brady  <P@draigBrady.com>
13529         areadlink-with-size: guess a buffer size with 0 size
13530         The size is usually taken from st_size, which can be zero,
13531         resulting in inefficient operation.
13532         Instead let zero select an initial memory allocation
13533         of 128 bytes, which most symlinks fit within.
13534         * lib/areadlink-with-size.c (areadlink_with_size):
13535         Start with a 128 byte buffer, for SIZE == 0.
13536         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Likewise.
13538 2019-07-06  Konstantin Kharlamov  <Hi-Angel@yandex.ru>
13540         Replace manually crafted hex regexes with [:xdigit:]
13541         * build-aux/gitlog-to-changelog (parse_amend_file)
13542         (git_dir_option):
13543         Replace various combinations of [0-9a-fA-F] with [[:xdigit:]].
13544         This patch is backported from Emacs (Bug#36167).
13546 2019-07-06  Bruno Haible  <bruno@clisp.org>
13548         error: Fix documentation.
13549         * doc/glibc-functions/error_at_line.texi: Document what the 'error'
13550         module provides.
13551         * doc/glibc-functions/error_message_count.texi: Likewise.
13552         * doc/glibc-functions/error_one_per_line.texi: Likewise.
13553         * doc/glibc-functions/error_print_progname.texi: Likewise.
13555 2019-07-06  Bruno Haible  <bruno@clisp.org>
13557         doc: Remove documentation of glibc <= 2.1.x as a supported platform.
13558         * doc/gnulib-intro.texi (Target Platforms): Mention that glibc 2.1.x
13559         and older is unsupported.
13560         * doc/**/*.texi: Update.
13562 2019-07-06  Bruno Haible  <bruno@clisp.org>
13564         doc: Remove documentation of Linux libc5 as a supported platform.
13565         * doc/posix-functions/iswalnum.texi: Don't mention workarounds specific
13566         to Linux libc5.
13567         * doc/posix-functions/iswalpha.texi: Likewise.
13568         * doc/posix-functions/iswblank.texi: Likewise.
13569         * doc/posix-functions/iswcntrl.texi: Likewise.
13570         * doc/posix-functions/iswdigit.texi: Likewise.
13571         * doc/posix-functions/iswgraph.texi: Likewise.
13572         * doc/posix-functions/iswlower.texi: Likewise.
13573         * doc/posix-functions/iswprint.texi: Likewise.
13574         * doc/posix-functions/iswpunct.texi: Likewise.
13575         * doc/posix-functions/iswspace.texi: Likewise.
13576         * doc/posix-functions/iswupper.texi: Likewise.
13577         * doc/posix-functions/iswxdigit.texi: Likewise.
13578         * doc/posix-functions/snprintf.texi: Likewise.
13579         * doc/posix-functions/vsnprintf.texi: Likewise.
13581 2019-07-06  Bruno Haible  <bruno@clisp.org>
13583         doc: Remove documentation of Tandem/NSK as a supported platform.
13584         * doc/posix-headers/stdlib.texi: Don't mention workarounds specific to
13585         Tandem/NSK.
13586         * doc/**/*.texi: Update.
13588 2019-07-06  Bruno Haible  <bruno@clisp.org>
13590         doc: Remove documentation of Mac OS X <= 10.4 as a supported platform.
13591         * doc/gnulib-intro.texi (Target Platforms): Mention that Mac OS X 10.4
13592         and older is unsupported.
13593         * doc/posix-functions/acosl.texi: Don't mention workarounds specific to
13594         Mac OS X 10.4 and older.
13595         * doc/posix-functions/asinl.texi: Likewise.
13596         * doc/posix-functions/atanl.texi: Likewise.
13597         * doc/posix-functions/cosl.texi: Likewise.
13598         * doc/posix-functions/expl.texi: Likewise.
13599         * doc/posix-functions/frexpl.texi: Likewise.
13600         * doc/posix-functions/gettimeofday.texi: Likewise.
13601         * doc/posix-functions/logl.texi: Likewise.
13602         * doc/posix-functions/mkstemp.texi: Likewise.
13603         * doc/posix-functions/sinl.texi: Likewise.
13604         * doc/posix-functions/sqrtl.texi: Likewise.
13605         * doc/posix-functions/tanl.texi: Likewise.
13606         * doc/posix-functions/wcswidth.texi: Likewise.
13607         * doc/**/*.texi: Update.
13609 2019-07-06  Bruno Haible  <bruno@clisp.org>
13611         doc: Remove documentation of AIX 4 as a supported platform.
13612         * doc/gnulib-intro.texi (Target Platforms): Mention that AIX 4 is
13613         unsupported.
13614         * doc/posix-functions/nanosleep.texi: Don't mention AIX 4 specific
13615         workarounds.
13616         * doc/posix-functions/strnlen.texi: Likewise.
13617         * doc/posix-headers/inttypes.texi: Likewise.
13618         * doc/**/*.texi: Update.
13620 2019-07-06  Bruno Haible  <bruno@clisp.org>
13622         doc: Remove documentation of HP-UX 10 as a supported platform.
13623         * doc/gnulib-intro.texi (Target Platforms): Mention that HP-UX 10 is
13624         unsupported.
13625         * doc/*-functions/*printf.texi: Don't mention HP-UX 10 specific
13626         workarounds.
13627         * doc/posix-functions/gmtime_r.texi: Likewise.
13628         * doc/posix-functions/localtime_r.texi: Likewise.
13629         * doc/posix-functions/mkstemp.texi: Likewise.
13630         * doc/**/*.texi: Update.
13632 2019-07-06  Bruno Haible  <bruno@clisp.org>
13634         doc: Remove documentation of Interix 3.5 as a supported platform.
13635         * doc/gnulib-intro.texi (Target Platforms): Mention that Interix is
13636         unsupported.
13637         * doc/posix-functions/select.texi: Don't mention Interix specific
13638         workarounds.
13639         * doc/posix-headers/signal.texi: Likewise.
13640         * doc/**/*.texi: Update.
13642 2019-07-06  Bruno Haible  <bruno@clisp.org>
13644         doc: Remove documentation of IRIX 6.4 and older as supported platforms.
13645         * doc/gnulib-intro.texi (Target Platforms): Mention that IRIX <= 6.4 is
13646         unsupported.
13647         * doc/pastposix-functions/usleep.texi: Don't mention IRIX specific
13648         workarounds.
13649         * doc/posix-functions/nl_langinfo.texi: Likewise.
13650         * doc/posix-functions/remainder.texi: Likewise.
13651         * doc/posix-functions/towlower.texi: Likewise.
13652         * doc/posix-functions/towupper.texi: Likewise.
13653         * doc/posix-functions/vsnprintf.texi: Likewise.
13654         * doc/posix-functions/wcscat.texi: Likewise.
13655         * doc/posix-functions/wcschr.texi: Likewise.
13656         * doc/posix-functions/wcscmp.texi: Likewise.
13657         * doc/posix-functions/wcscpy.texi: Likewise.
13658         * doc/posix-functions/wcscspn.texi: Likewise.
13659         * doc/posix-functions/wcslen.texi: Likewise.
13660         * doc/posix-functions/wcsncat.texi: Likewise.
13661         * doc/posix-functions/wcsncmp.texi: Likewise.
13662         * doc/posix-functions/wcsncpy.texi: Likewise.
13663         * doc/posix-functions/wcspbrk.texi: Likewise.
13664         * doc/posix-functions/wcsrchr.texi: Likewise.
13665         * doc/posix-functions/wcsspn.texi: Likewise.
13666         * doc/posix-headers/langinfo.texi: Likewise.
13667         * doc/posix-headers/signal.texi: Likewise.
13668         * doc/posix-headers/wchar.texi: Likewise.
13669         * doc/posix-headers/wctype.texi: Likewise.
13670         * doc/**/*.texi: Update.
13672 2019-07-05  Bruno Haible  <bruno@clisp.org>
13674         doc: Remove documentation of OSF/1 as supported platform.
13675         * doc/gnulib-intro.texi (Target Platforms): Mention that OSF/1 is
13676         unsupported.
13677         * doc/glibc-functions/getdomainname.texi: Don't mention OSF/1 specific
13678         workarounds.
13679         * doc/glibc-functions/pthread_setname_np.texi: Likewise.
13680         * doc/glibc-functions/ptsname_r.texi: Likewise.
13681         * doc/posix-functions/ceil.texi: Likewise.
13682         * doc/posix-functions/ceilf.texi: Likewise.
13683         * doc/posix-functions/ceill.texi: Likewise.
13684         * doc/posix-functions/fchdir.texi: Likewise.
13685         * doc/posix-functions/floor.texi: Likewise.
13686         * doc/posix-functions/floorf.texi: Likewise.
13687         * doc/posix-functions/fmod.texi: Likewise.
13688         * doc/posix-functions/fmodf.texi: Likewise.
13689         * doc/posix-functions/fmodl.texi: Likewise.
13690         * doc/posix-functions/log.texi: Likewise.
13691         * doc/posix-functions/logf.texi: Likewise.
13692         * doc/posix-functions/logl.texi: Likewise.
13693         * doc/posix-functions/log10.texi: Likewise.
13694         * doc/posix-functions/log10f.texi: Likewise.
13695         * doc/posix-functions/log10l.texi: Likewise.
13696         * doc/posix-functions/log2.texi: Likewise.
13697         * doc/posix-functions/log2f.texi: Likewise.
13698         * doc/posix-functions/log2l.texi: Likewise.
13699         * doc/posix-functions/mbrtowc.texi: Likewise.
13700         * doc/posix-functions/recv.texi: Likewise.
13701         * doc/posix-functions/recvfrom.texi: Likewise.
13702         * doc/posix-functions/remainder.texi: Likewise.
13703         * doc/posix-functions/remainderf.texi: Likewise.
13704         * doc/posix-functions/remainderl.texi: Likewise.
13705         * doc/posix-functions/round.texi: Likewise.
13706         * doc/posix-functions/roundf.texi: Likewise.
13707         * doc/posix-functions/roundl.texi: Likewise.
13708         * doc/posix-functions/send.texi: Likewise.
13709         * doc/posix-functions/sendto.texi: Likewise.
13710         * doc/posix-functions/setenv.texi: Likewise.
13711         * doc/posix-functions/snprintf.texi: Likewise.
13712         * doc/posix-functions/tcgetsid.texi: Likewise.
13713         * doc/posix-functions/trunc.texi: Likewise.
13714         * doc/posix-functions/truncf.texi: Likewise.
13715         * doc/posix-functions/truncl.texi: Likewise.
13716         * doc/posix-functions/ttyname_r.texi: Likewise.
13717         * doc/posix-functions/unsetenv.texi: Likewise.
13718         * doc/posix-functions/wcsrtombs.texi: Likewise.
13719         * doc/posix-headers/sys_select.texi: Likewise.
13720         * doc/posix-headers/wchar.texi: Likewise.
13721         * doc/posix-headers/wctype.texi: Likewise.
13722         * doc/**/*.texi: Update.
13724 2019-07-05  Bruno Haible  <bruno@clisp.org>
13726         doc: Remove documentation of BSDI and BSD/OS as supported platforms.
13727         * doc/**/*.texi: Update.
13729 2019-07-05  Bruno Haible  <bruno@clisp.org>
13731         doc: Remove documentation of Solaris 8 and older as supported platforms.
13732         * doc/gnulib-intro.texi (Target Platforms): Mention that Solaris <= 8 is
13733         unsupported.
13734         * doc/posix-functions/mbrtowc.texi: Don't mention Solaris specific
13735         workarounds.
13736         * doc/posix-functions/memcmp.texi: Likewise.
13737         * doc/posix-functions/rename.texi: Likewise.
13738         * doc/posix-functions/tzset.texi: Likewise.
13739         * doc/posix-headers/wctype.texi: Likewise.
13740         * doc/**/*.texi: Update.
13742 2019-07-05  Bruno Haible  <bruno@clisp.org>
13744         doc: Remove documentation of Interix 3.5 as a supported platform.
13745         * doc/**/*.texi: Update.
13747 2019-07-05  Bruno Haible  <bruno@clisp.org>
13749         doc: Remove documentation of BeOS as a supported platform.
13750         * doc/gnulib-intro.texi (Target Platforms): Mention that BeOS is
13751         unsupported.
13752         * doc/*-functions/*printf.texi: Don't mention BeOS specific workarounds.
13753         * doc/posix-functions/getdelim.texi: Likewise.
13754         * doc/**/*.texi: Update.
13756 2019-07-05  Bruno Haible  <bruno@clisp.org>
13758         thread, lock, cond, tls: Remove support for Pth threads.
13759         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
13760         --enable-threads=pth any more.
13761         (gl_THREADLIB_BODY): Don't set USE_PTH_THREADS any more.
13762         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Update comment.
13763         * m4/threads.m4 (gl_THREADS_H): Remove test for conflict between Pth
13764         threads and ISO C11 threads.
13765         * lib/glthread/thread.h: Remove code for USE_PTH_THREADS.
13766         * lib/glthread/lock.h: Likewise.
13767         * lib/glthread/lock.c: Likewise.
13768         * lib/glthread/cond.h: Likewise.
13769         * lib/glthread/cond.c: Likewise.
13770         * lib/glthread/tls.h: Likewise.
13771         * lib/glthread/tls.c: Likewise.
13772         * lib/glthread/yield.h: Likewise.
13773         * lib/regex_internal.h: Likewise.
13774         * tests/test-thread_create.c: Likewise.
13775         * tests/test-lock.c: Likewise.
13776         * tests/test-cond.c: Likewise.
13777         * tests/test-tls.c: Likewise.
13778         * tests/test-rwlock1.c: Don't include glthread/yield.h.
13779         (main): Sleep without calling gl_thread_yield.
13781 2019-07-05  Bruno Haible  <bruno@clisp.org>
13783         thread, lock, cond, tls: Remove support for old Solaris threads.
13784         Solaris >= 2.5.1 has POSIX threads.
13785         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
13786         --enable-threads=solaris any more.
13787         (gl_THREADLIB_BODY): Don't set USE_SOLARIS_THREADS any more.
13788         * lib/glthread/thread.c: Update comment.
13789         * lib/glthread/thread.h: Remove code for USE_SOLARIS_THREADS.
13790         * lib/glthread/lock.h: Likewise.
13791         * lib/glthread/lock.c: Likewise.
13792         * lib/glthread/cond.h: Likewise.
13793         * lib/glthread/cond.c: Likewise.
13794         * lib/glthread/tls.h: Likewise.
13795         * lib/glthread/tls.c: Likewise.
13796         * lib/glthread/yield.h: Likewise.
13797         * lib/regex_internal.h: Likewise.
13798         * tests/test-thread_create.c: Likewise.
13799         * tests/test-lock.c: Likewise.
13800         * tests/test-cond.c: Likewise.
13801         * tests/test-tls.c: Likewise.
13803 2019-07-05  Bruno Haible  <bruno@clisp.org>
13805         getcwd-lgpl, getcwd: Don't call realloc when it is pointless.
13806         * lib/getcwd-lgpl.c (rpl_getcwd): Don't call realloc if the result's
13807         needed size is equal to the allocated size.
13808         * lib/getcwd.c (__getcwd): Likewise.
13810 2019-07-05  Bruno Haible  <bruno@clisp.org>
13812         xgetdomainname: Don't return an excessive memory allocation.
13813         * lib/xgetdomainname.c (xgetdomainname): Shrink the domainname buffer
13814         before returning it.
13816 2019-07-05  Bruno Haible  <bruno@clisp.org>
13818         xgethostname: Don't return an excessive memory allocation.
13819         * lib/xgethostname.c (xgethostname): Shrink the hostname buffer before
13820         returning it.
13822 2019-07-05  Bruno Haible  <bruno@clisp.org>
13824         areadlinkat-with-size: Don't return an excessive memory allocation.
13825         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Shrink the buffer
13826         before returning it.
13828 2019-07-05  Bruno Haible  <bruno@clisp.org>
13830         areadlink-with-size: Don't return an excessive memory allocation.
13831         Reported by Andreas Dilger <adilger@whamcloud.com>.
13832         * lib/areadlink-with-size.c (areadlink_with_size): Shrink the buffer
13833         before returning it.
13835 2019-07-03  Bruno Haible  <bruno@clisp.org>
13837         renameatu: Fix test failure on MSVC.
13838         * lib/at-func2.c (at_func2): Fail with ENOENT if file1 or file2 is the
13839         empty string.
13841 2019-07-03  Bruno Haible  <bruno@clisp.org>
13843         mbrtowc: Fix invalid use of mbtowc() on MSVC.
13844         * lib/mbrtowc.c: Include glthread/lock.h.
13845         (mbtowc_lock): New variable.
13846         (mbrtowc): Treat UTF-8 encoding without locking. For the other
13847         encodings, explicitly reset the internal state of mbtowc, and protect
13848         this through a lock.
13849         * modules/mbrtowc (Depends-on): Add lock.
13851 2019-07-03  Akim Demaille  <akim@lrde.epita.fr>
13853         argmatch: don't define _ in the header.
13854         Reported by Jim Meyering.
13855         * lib/argmatch.h (N_, _): Don't define.
13856         Use gettext instead.
13857         * lib/argmatch.h (_): Define.
13858         * tests/test-argmatch.c (N_): Define.
13860 2019-07-02  Paul Eggert  <eggert@cs.ucla.edu>
13862         verify: document ‘assume’ better
13863         * lib/verify.h: Reword doc (Bug#36370).
13865 2019-07-02  Bruno Haible  <bruno@clisp.org>
13867         localcharset, nl_langinfo: Fix return value for UTF-8 locales on MSVC.
13868         * lib/localcharset.c (locale_charset): Return "UTF-8" instead of
13869         "CPutf8".
13870         * lib/nl_langinfo.c (ctype_codeset): Likewise.
13872 2019-07-02  Bruno Haible  <bruno@clisp.org>
13874         getcwd: Fix crash when invoked with size = 0 on MSVC.
13875         * lib/getcwd.c: Include msvc-inval.h.
13876         (getcwd_nothrow): New function/macro.
13877         (getcwd_system): New macro.
13878         (__getcwd): Use it instead of getcwd.
13879         * modules/getcwd (Depends-on): Add msvc-inval.
13880         * doc/posix-functions/getcwd.texi: Mention the MSVC issue.
13882 2019-07-02  Bruno Haible  <bruno@clisp.org>
13884         nonblocking-pipe tests: Fix test failure on MSVC.
13885         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE): Set to 10000 on
13886         native Windows.
13888 2019-07-02  Bruno Haible  <bruno@clisp.org>
13890         usleep: Implement with millisecond resolution on native Windows.
13891         * lib/usleep.c (usleep): On native Windows, implement using Sleep().
13892         * doc/pastposix-functions/usleep.texi: Update accordingly.
13894 2019-07-02  Bruno Haible  <bruno@clisp.org>
13896         lstat tests: Fix test failure on MSVC.
13897         * tests/test-lstat.h (test_lstat_func): Don't test SAME_INODE values on
13898         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
13900 2019-07-02  Bruno Haible  <bruno@clisp.org>
13902         stat tests: Fix test failure on MSVC.
13903         * tests/test-stat.h (test_stat_func): Don't test SAME_INODE values on
13904         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
13906 2019-07-02  Bruno Haible  <bruno@clisp.org>
13908         getaddrinfo tests: Fix test failure on MSVC.
13909         * tests/test-getaddrinfo.c: Include sockets.h.
13910         (main): Invoke gl_sockets_startup.
13911         * modules/getaddrinfo-tests (Depends-on): Add sockets.
13913 2019-07-01  Hannes Müller  <h.c.f.mueller@gmx.de>
13915         poll: Fix type of timeout pointer passed to select() on mingw x86_64.
13916         * lib/poll.c: Call Windows native select() with Windows native timeval.
13918 2019-06-30  Bruno Haible  <bruno@clisp.org>
13920         argmatch: Fix compilation errors.
13921         * lib/argmatch.h: Include <limits.h>, for INT_MAX.
13922         * tests/test-argmatch.c (main): Update after last-minute function names
13923         change.
13925 2019-06-30  Bruno Haible  <bruno@clisp.org>
13927         Include <stdlib.h> when needed.
13928         * lib/cnd.c: Include <stdlib.h>, needed for abort().
13929         * lib/fcntl.c: Likewise.
13930         * lib/mbscasestr.c: Likewise.
13931         * lib/mbssep.c: Likewise.
13932         * lib/mbsstr.c: Likewise.
13933         * lib/openat.c: Include <stdlib.h>, needed for free().
13934         * lib/windows-tls.c: Include <stdlib.h>, needed for malloc(), free(),
13935         abort().
13937 2019-06-30  Bruno Haible  <bruno@clisp.org>
13939         Include <stdlib.h> when needed.
13940         * lib/areadlinkat.c: Include <stdlib.h>, needed for free() in at-func.c.
13941         * lib/faccessat.c: Likewise.
13942         * lib/fchmodat.c: Likewise.
13943         * lib/fchownat.c: Likewise.
13944         * lib/fstatat.c: Likewise.
13945         * lib/mkfifoat.c: Likewise.
13946         * lib/mknodat.c: Likewise.
13947         * lib/readlinkat.c: Likewise.
13948         * lib/symlinkat.c: Likewise.
13949         * lib/utimensat.c: Likewise.
13950         * lib/mkdirat.c: Likewise. Include also the specification header.
13952 2019-06-30  Bruno Haible  <bruno@clisp.org>
13954         inet_ntop, inet_pton: Avoid conflict with native Windows functions.
13955         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WS2TCPIP): New macro, extracted
13956         from gl_PREREQ_SYS_H_SOCKET.
13957         (gl_PREREQ_SYS_H_SOCKET): Invoke it.
13958         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Invoke
13959         gl_PREREQ_SYS_H_WS2TCPIP.
13960         * modules/arpa_inet (Files): Add m4/sys_socket_h.m4, m4/socklen.m4.
13961         (Makefile.am): Substitute HAVE_WS2TCPIP_H.
13962         * lib/arpa_inet.in.h: Include <ws2tcpip.h>.
13964 2019-06-30  Bruno Haible  <bruno@clisp.org>
13966         inet_ntop, inet_pton: Forward-compatibility with newer Windows versions.
13967         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): On native Windows, set
13968         REPLACE_INET_NTOP to 1 always.
13969         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): On native Windows, set
13970         REPLACE_INET_PTON to 1 always.
13972 2019-06-30  Bruno Haible  <bruno@clisp.org>
13974         inet_pton: Fix link error on mingw with _WIN32_WINNT >= 0x0600.
13975         * modules/inet_pton (Depends-on, configure.ac): Test REPLACE_INET_PTON,
13976         not REPLACE_INET_NTOP.
13978 2019-06-30  Bruno Haible  <bruno@clisp.org>
13980         poll: Add comment.
13981         * lib/poll.c: Add comment about WSAPoll.
13983 2019-06-30  Bruno Haible  <bruno@clisp.org>
13985         poll-h: Fix compilation error on mingw with _WIN32_WINNT >= 0x0600.
13986         Reported by Hannes Müller <h.c.f.mueller@gmx.de>.
13987         * lib/poll.in.h: Include <winsock2.h>.
13988         (POLL*, pollfd): Override on native Windows.
13989         * m4/poll_h.m4 (gl_POLL_H): Invoke gl_PREREQ_SYS_H_WINSOCK2.
13990         * modules/poll-h (Files): Add m4/sys_socket_h.m4.
13991         (Makefile.am): Substitute HAVE_WINSOCK2_H.
13993 2019-06-28  Bruno Haible  <bruno@clisp.org>
13995         accept4: Fix compilation error on OpenIndiana.
13996         Reported by Michal Nowak <mnowak@startmail.com>
13997         via Mark H Weaver <mhw@netris.org>.
13998         * m4/accept.m4 (gl_FUNC_ACCEPT4): Test whether accept4 is declared, not
13999         whether it exists as a function.
14001 2019-06-26  Paul Eggert  <eggert@cs.ucla.edu>
14003         strverscmp: sync from glibc
14004         * lib/strverscmp.c: Sync from glibc, except use UTF-8 encoding in
14005         comments, include libc-config.h, define __strverscmp to be
14006         strverscmp, and don’t assume types line uint8_t and int8_t that
14007         that C99 doesn’t guarantee.
14008         [!_LIBC]: Include libc-config.h; define __strverscmp.
14009         Include stdint.h.
14010         (__strverscmp): Assume C99.  Use uint_least8_t
14011         and int_least8_t instead of unsigned char and signed char.
14012         * modules/strverscmp (Depends-on): Add libc-config, stdint.
14014 2019-06-25  Bruno Haible  <bruno@clisp.org>
14016         tss tests: Add tests for destructors and races.
14017         * tests/test-tss.c (worker_thread): Fix typo in debug message.
14018         (test_tss_dtorcheck1, test_tss_dtorcheck2, test_tss_racecheck): New
14019         functions.
14020         (main): Invoke them.
14021         * modules/tls-tests (Depends-on): Add mtx.
14023 2019-06-25  Bruno Haible  <bruno@clisp.org>
14025         tls tests: Add tests for destructors and races.
14026         * tests/test-tls.c: Include glthread/lock.h.
14027         (test_tls_dtorcheck1, test_tls_dtorcheck2, test_tls_racecheck): New
14028         functions.
14029         (main): Invoke them.
14030         * modules/tls-tests (Depends-on): Add lock.
14032 2019-06-25  Bruno Haible  <bruno@clisp.org>
14034         windows-tls: Implement TLS key destructors for native Windows.
14035         * lib/windows-tls.h (glwthread_tls_process_destructors): New
14036         declaration.
14037         (GLWTHREAD_DESTRUCTOR_ITERATIONS): New macro.
14038         * lib/windows-tls.c: Include <limits.h>, windows-once.h.
14039         (dtor_table_init_once, dtor_table_lock: New variables.
14040         (struct dtor): New type.
14041         (dtor_table, dtors_count, dtors_used, dtors_allocated,
14042         dtor_processing_threads): New variables.
14043         (dtor_table_initialize, dtor_table_ensure_initialized,
14044         dtor_table_shrink_used, glwthread_tls_process_destructors): New
14045         functions.
14046         (glwthread_tls_key_create, glwthread_tls_key_delete): Rewritten to
14047         handle non-NULL destructors.
14048         * modules/windows-tls (Depends-on): Add windows-once.
14049         * lib/glthread/tls.h (glthread_tls_key_init, glthread_tls_key_destroy):
14050         Use the functions declared in windows-tls.h.
14051         * lib/threads.in.h (TSS_DTOR_ITERATIONS): Define using
14052         GLWTHREAD_DESTRUCTOR_ITERATIONS.
14053         * lib/windows-thread.c: Include windows-tls.h.
14054         (wrapper_func, glwthread_thread_exit): Invoke
14055         glwthread_tls_process_destructors.
14056         * modules/windows-thread (Depends-on): Add windows-tls.
14058 2019-06-25  Bruno Haible  <bruno@clisp.org>
14060         threadlib: Avoid autoconf warning "was expanded before it was required".
14061         * modules/threadlib (configure.ac): Require gl_THREADLIB.
14063 2019-06-25  Akim Demaille  <akim@lrde.epita.fr>
14065         argmatch: remove duplicate const qualifier
14066         * lib/argmatch.h (ARGMATCH_DEFINE_GROUP): Here.
14068 2019-06-24  Paul Eggert  <eggert@cs.ucla.edu>
14070         unistd: stddef.h and sys/types.h namespace cleanup
14071         * lib/unistd.in.h [__GLIBC__]:
14072         Do not include stddef.h or sys/types.h.
14073         [!__GLIBC__]: Always include sys/types.h, since unistd.h is
14074         supposed to declare off_t and ssize_t.  Problem found when looking
14075         at why @GNULIB_PWRITE@ was different from the newly-added
14076         @GNULIB_COPY_FILE_RANGE@ with respect to ssize_t.
14078 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
14080         maintainer-makefile: restore portability to non-GNU awks
14081         Reported by Tim Rühsen.
14082         * top/maint.mk (AWK): New variable.  Use it.
14083         (sc_prohibit_gnu_make_extensions): Skip if $(AWK) is not gawk.
14085 2019-06-23  Paul Eggert  <eggert@cs.ucla.edu>
14087         Document setvbuf _IOLBF problem
14088         * doc/posix-functions/setvbuf.texi (setvbuf):
14089         Document MS-Windows portability problem with _IOLBF.
14091         Document lseek SEEK_DATA/SEEK_HOLE
14092         * doc/posix-functions/lseek.texi (lseek):
14093         Document some systems that do not support SEEK_DATA and SEEK_HOLE.
14095 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
14097         argmatch: put all the docs member last.
14098         Reported by Bruno Haible.
14099         * lib/argmatch.h (argmatch_##Name##_group_type): Put the args
14100         member before the docs done.
14101         * doc/argmatch.texi, tests/test-argmatch.c: Adjust.
14103 2019-06-21  Akim Demaille  <akim@lrde.epita.fr>
14105         argmatch: add support to generate the usage message.
14106         * lib/argmatch.c: Move some #includes and gettext support to...
14107         * lib/argmatch.h: here.
14108         (ARGMATCH_DEFINE_GROUP): New macro.
14109         * tests/test-argmatch.c (argmatch_backup_docs, argmatch_backup_args)
14110         (argmatch_backup_group): New.
14111         (CHECK): New.
14112         (main): Check argmatch_backup_value, argmatch_backup_xvalue,
14113         argmatch_backup_argument and argmatch_backup_usage.
14114         * modules/argmatch: We depend on c99.
14115         * doc/argmatch.texi (Recognizing Option Arguments): New.
14116         * doc/gnulib.texi: Use it.
14118 2019-06-21  Bruno Haible  <bruno@clisp.org>
14120         thrd: Add comment.
14121         * lib/thrd.c (pthread_main_func): Add comment.
14123 2019-06-21  Bruno Haible  <bruno@clisp.org>
14125         threads-h: Define 'thread_local' if and only if it actually works.
14126         * m4/threads.m4 (gl_THREAD_LOCAL_DEFINITION): New macro.
14127         (gl_THREADS_H): Define _Thread_local to __thread also for ARM C, IBM C,
14128         Oracle Solaris Studio C. Compile a simple program, to see whether
14129         _Thread_local basically works. Set HAVE_THREAD_LOCAL and LIBTHREADLOCAL.
14130         (gl_THREADS_H_DEFAULTS): Initialize HAVE_THREAD_LOCAL.
14131         * lib/threads.in.h (thread_local): Undefine if it does not work.
14132         * modules/threads-h (Makefile.am): Substitute HAVE_THREAD_LOCAL.
14133         (Link): Mention LIBTHREADLOCAL.
14134         * tests/test-threads.c: Don't check that thread_local is defined.
14135         * tests/test-thread_local.c: New file.
14136         * modules/threads-h-tests (Files): Add it and macros.h.
14137         (Depends-on): Add thrd and stdint.
14138         (configure.ac): Test whether 'alarm' is declared.
14139         (Makefile.am): Arrange to build and link test-thread_local.
14140         * doc/posix-headers/threads.texi: Mention the platforms that don't
14141         support 'thread_local'.
14143 2019-06-20  Bruno Haible  <bruno@clisp.org>
14145         threads-h: Simplify link dependencies.
14146         * m4/threads.m4 (gl_THREADS_H): Bail out if Pth threading is requested.
14147         Don't set LTLIBSTDTHREAD.
14148         * modules/thrd (Link): Simplify accordingly.
14149         * modules/mtx (Link): Likewise.
14150         * modules/cnd (Link): Likewise.
14151         * modules/tss (Link): Likewise.
14152         * modules/threads (Link): Likewise.
14154 2019-06-20  Bruno Haible  <bruno@clisp.org>
14156         threads-h: Fix link error on FreeBSD 11.
14157         * m4/threads.m4 (gl_THREADS_H): When linking with -lstdthreads, link
14158         also with -lpthread.
14160 2019-06-20  Bruno Haible  <bruno@clisp.org>
14162         threadlib: Fix typo (regression from today).
14163         * m4/threadlib.m4 (gl_THREADLIB_BODY): Fix typo in comment marker.
14165 2019-06-20  Bruno Haible  <bruno@clisp.org>
14167         windows-thread, windows-tls: Fix compilation error on 32-bit mingw.
14168         * lib/windows-thread.c: Include <errno.h>.
14169         * lib/windows-tls.c: Likewise.
14171 2019-06-20  Bruno Haible  <bruno@clisp.org>
14173         tss tests: Small improvement.
14174         * tests/test-tss.c (test_tss): Pass a different id to each thread.
14176 2019-06-20  Bruno Haible  <bruno@clisp.org>
14178         threads: New module.
14179         * modules/threads: New file.
14181 2019-06-20  Bruno Haible  <bruno@clisp.org>
14183         tss: Add tests.
14184         * tests/test-tss.c: New file, based on tests/test-tls.c.
14185         * modules/tss-tests: New file.
14187 2019-06-20  Bruno Haible  <bruno@clisp.org>
14189         cnd: Add tests.
14190         * tests/test-cnd.c: New file, based on tests/test-cond.c.
14191         * modules/cnd-tests: New file.
14193 2019-06-20  Bruno Haible  <bruno@clisp.org>
14195         mtx: Add tests.
14196         * tests/test-mtx.c: New file, based on tests/test-lock.c.
14197         * tests/test-call_once.c: New file, based on tests/test-once.c.
14198         * modules/mtx-tests: New file.
14200 2019-06-20  Bruno Haible  <bruno@clisp.org>
14202         thrd: Add tests.
14203         * tests/test-thrd_create.c: New file, based on
14204         tests/test-thread_create.c.
14205         * tests/test-thrd_current.c: New file, based on
14206         tests/test-thread_self.c.
14207         * modules/thrd-tests: New file.
14209 2019-06-20  Bruno Haible  <bruno@clisp.org>
14211         tss: New module.
14212         * lib/tss.c: New file.
14213         * modules/tss: New file.
14214         * doc/posix-functions/tss_create.texi: Mention the new module.
14215         * doc/posix-functions/tss_set.texi: Likewise.
14216         * doc/posix-functions/tss_get.texi: Likewise.
14217         * doc/posix-functions/tss_delete.texi: Likewise.
14219 2019-06-20  Bruno Haible  <bruno@clisp.org>
14221         cnd: New module.
14222         * lib/cnd.c: New file.
14223         * modules/cnd: New file.
14224         * doc/posix-functions/cnd_init.texi: Mention the new module.
14225         * doc/posix-functions/cnd_wait.texi: Likewise.
14226         * doc/posix-functions/cnd_timedwait.texi: Likewise.
14227         * doc/posix-functions/cnd_signal.texi: Likewise.
14228         * doc/posix-functions/cnd_broadcast.texi: Likewise.
14229         * doc/posix-functions/cnd_destroy.texi: Likewise.
14231 2019-06-20  Bruno Haible  <bruno@clisp.org>
14233         mtx: New module.
14234         * lib/mtx.c: New file.
14235         * modules/mtx: New file.
14236         * doc/posix-functions/call_once.texi: Mention the new module.
14237         * doc/posix-functions/mtx_init.texi: Likewise.
14238         * doc/posix-functions/mtx_lock.texi: Likewise.
14239         * doc/posix-functions/mtx_trylock.texi: Likewise.
14240         * doc/posix-functions/mtx_timedlock.texi: Likewise.
14241         * doc/posix-functions/mtx_unlock.texi: Likewise.
14242         * doc/posix-functions/mtx_destroy.texi: Likewise.
14244 2019-06-20  Bruno Haible  <bruno@clisp.org>
14246         thrd: New module.
14247         * lib/thrd.c: New file.
14248         * m4/thrd.m4: New file.
14249         * modules/thrd: New file.
14250         * doc/posix-functions/thrd_current.texi: Mention the new module.
14251         * doc/posix-functions/thrd_detach.texi: Likewise.
14252         * doc/posix-functions/thrd_equal.texi: Likewise.
14253         * doc/posix-functions/thrd_exit.texi: Likewise.
14254         * doc/posix-functions/thrd_sleep.texi: Likewise.
14255         * doc/posix-functions/thrd_yield.texi: Likewise.
14256         * doc/posix-functions/thrd_create.texi: Mention the new module and the
14257         AIX bug.
14258         * doc/posix-functions/thrd_join.texi: Mention the new module and the
14259         AIX and Solaris bugs.
14261 2019-06-20  Bruno Haible  <bruno@clisp.org>
14263         threads-h: Add tests.
14264         * tests/test-threads.c: New file.
14265         * modules/threads-h-tests: New file.
14266         * tests/test-threads-c++.cc: New file.
14267         * modules/threads-h-c++-tests: New file.
14269 2019-06-20  Bruno Haible  <bruno@clisp.org>
14271         threads-h: New module.
14272         * lib/threads.in.h: New file.
14273         * m4/threads.m4: New file.
14274         * m4/yield.m4 (gl_YIELD): Update comment.
14275         * modules/threads-h: New file.
14276         * modules/yields (configure.ac): Use AC_REQUIRE.
14277         * doc/posix-headers/threads.texi: Mention the new module and the AIX
14278         bugs.
14280 2019-06-20  Bruno Haible  <bruno@clisp.org>
14282         windows-thread: New module.
14283         * lib/windows-thread.h: New file, based on lib/glthread/thread.h.
14284         * lib/windows-thread.c: New file, based on lib/glthread/thread.c.
14285         * lib/glthread/thread.h: Include windows-thread.h.
14286         (gl_thread_t): Define using glwthread_thread_t.
14287         (glthread_create): Define using glwthread_thread_create.
14288         (glthread_join): Define using glwthread_thread_join.
14289         (gl_thread_self): Define using glwthread_thread_self.
14290         (gl_thread_exit): Define using glwthread_thread_exit.
14291         (glthread_create_func, glthread_join_func, gl_thread_self_func,
14292         gl_thread_exit_func): Remove declarations.
14293         * lib/glthread/thread.c (self_key): Remove variable.
14294         (do_init_self_key, init_self_key): Remove functions.
14295         (struct gl_thread_struct): Remove type.
14296         (get_current_thread_handle, gl_thread_self_func, wrapper_func,
14297         glthread_create_func, glthread_join_func, gl_thread_exit_func): Remove
14298         functions.
14299         * modules/windows-thread: New file.
14300         * modules/thread (Depends-on): Add windows-thread.
14302 2019-06-20  Bruno Haible  <bruno@clisp.org>
14304         windows-tls: New module.
14305         * lib/windows-tls.h: New file, based on lib/glthread/tls.h.
14306         * lib/windows-tls.c: New file, based on lib/glthread/tls.h.
14307         * lib/glthread/tls.h: Include windows-tls.h.
14308         (gl_tls_key_t): Define using glwthread_tls_key_t.
14309         * modules/windows-tls: New file.
14310         * modules/tls (Depends-on): Add windows-tls.
14312 2019-06-20  Bruno Haible  <bruno@clisp.org>
14314         windows-cond: New module.
14315         * lib/windows-cond.h: New file, based on lib/glthread/cond.h.
14316         * lib/windows-cond.c: New file, based on lib/glthread/cond.c.
14317         * lib/glthread/cond.h: Include windows-cond.h.
14318         (struct gl_waitqueue_link, gl_linked_waitqueue_t): Remove types.
14319         (gl_cond_t): Define using glwthread_cond_t.
14320         (gl_cond_initializer): Define using GLWTHREAD_COND_INIT.
14321         (glthread_cond_init): Define using glwthread_cond_init.
14322         (glthread_cond_wait): Define using glwthread_cond_wait.
14323         (glthread_cond_timedwait): Define using glwthread_cond_timedwait.
14324         (glthread_cond_signal): Define using glwthread_cond_signal.
14325         (glthread_cond_broadcast): Define using glwthread_cond_broadcast.
14326         (glthread_cond_destroy): Define using glwthread_cond_destroy.
14327         (glthread_cond_init_func, glthread_cond_wait_func,
14328         glthread_cond_timedwait_func, glthread_cond_signal_func,
14329         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
14330         declarations.
14331         * lib/glthread/cond.c (gl_waitqueue_t, gl_waitqueue_element): Remove
14332         types.
14333         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
14334         gl_waitqueue_notify_first, gl_waitqueue_notify_all,
14335         glthread_cond_init_func, glthread_cond_wait_func,
14336         glthread_cond_timedwait_func, glthread_cond_signal_func,
14337         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
14338         functions.
14339         * modules/windows-cond: New file.
14340         * modules/cond (Depends-on): Add windows-cond. Remove gettimeofday.
14342 2019-06-20  Bruno Haible  <bruno@clisp.org>
14344         windows-timedrecmutex: New module.
14345         * lib/windows-timedrecmutex.h: New file, based on windows-recmutex.h.
14346         * lib/windows-timedrecmutex.c: New file, based on windows-recmutex.c.
14347         * modules/windows-timedrecmutex: New file.
14349 2019-06-20  Bruno Haible  <bruno@clisp.org>
14351         windows-timedmutex: New module.
14352         * lib/windows-timedmutex.h: New file, based on windows-mutex.h.
14353         * lib/windows-timedmutex.c: New file, based on windows-mutex.c.
14354         * modules/windows-timedmutex: New file.
14356 2019-06-20  Bruno Haible  <bruno@clisp.org>
14358         windows-recmutex: New module.
14359         * lib/windows-recmutex.h: New file, extracted from lib/glthread/lock.h.
14360         * lib/windows-recmutex.c: New file, extracted from lib/glthread/lock.c.
14361         * lib/glthread/lock.h: Include windows-recmutex.h.
14362         (gl_recursive_lock_t): Define using glwthread_recmutex_t.
14363         (gl_recursive_lock_initializer): Define using GLWTHREAD_RECMUTEX_INIT.
14364         (glthread_recursive_lock_init): Define using glwthread_recmutex_init.
14365         (glthread_recursive_lock_lock): Define using glwthread_recmutex_lock.
14366         (glthread_recursive_lock_unlock): Define using
14367         glwthread_recmutex_unlock.
14368         (glthread_recursive_lock_destroy): Define using
14369         glwthread_recmutex_destroy.
14370         (glthread_recursive_lock_init_func, glthread_recursive_lock_lock_func,
14371         glthread_recursive_lock_unlock_func,
14372         glthread_recursive_lock_destroy_func): Remove declarations.
14373         * lib/glthread/lock.c (glthread_recursive_lock_init_func,
14374         glthread_recursive_lock_lock_func, glthread_recursive_lock_unlock_func,
14375         glthread_recursive_lock_destroy_func): Remove functions.
14376         * modules/windows-recmutex: New file.
14377         * modules/lock (Depends-on): Add windows-recmutex.
14379 2019-06-20  Bruno Haible  <bruno@clisp.org>
14381         windows-mutex: New module.
14382         * lib/windows-mutex.h: New file, extracted from lib/glthread/lock.h.
14383         * lib/windows-mutex.c: New file, extracted from lib/glthread/lock.c.
14384         * lib/windows-spinlock.h: New file, extracted from lib/glthread/lock.h.
14385         * lib/glthread/lock.h: Include windows-spinlock.h, windows-mutex.h.
14386         (gl_spinlock_t): Remove type.
14387         (gl_lock_t): Define using glwthread_mutex_t.
14388         (gl_lock_initializer): Define using GLWTHREAD_MUTEX_INIT.
14389         (glthread_lock_init): Define using glwthread_mutex_init.
14390         (glthread_lock_lock): Define using glwthread_mutex_lock.
14391         (glthread_lock_unlock): Define using glwthread_mutex_unlock.
14392         (glthread_lock_destroy): Define using glwthread_mutex_destroy.
14393         (glthread_lock_init_func, glthread_lock_lock_func,
14394         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
14395         declarations.
14396         Use glwthread_spinlock_t instead of gl_spinlock_t.
14397         (gl_rwlock_initializer, gl_recursive_lock_initializer): Define using
14398         GLWTHREAD_SPINLOCK_INIT.
14399         * lib/glthread/lock.c (glthread_lock_init_func, glthread_lock_lock_func,
14400         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
14401         functions.
14402         * lib/glthread/cond.h: Use glwthread_spinlock_t instead of
14403         gl_spinlock_t.
14404         * modules/windows-mutex: New file.
14405         * modules/lock (Depends-on): Add windows-mutex.
14407 2019-06-20  Bruno Haible  <bruno@clisp.org>
14409         windows-once: New module.
14410         * lib/windows-once.h: New file, extracted from lib/glthread/lock.h.
14411         * lib/windows-once.c: New file, extracted from lib/glthread/lock.c.
14412         * lib/glthread/lock.h: Include windows-once.h.
14413         (gl_once_t): Define using glwthread_once_t.
14414         (gl_once_define): Define using GLWTHREAD_ONCE_INIT.
14415         (glthread_once): Define using glwthread_once.
14416         (glthread_once_func): Remove declaration.
14417         * lib/glthread/lock.c (glthread_once_func): Remove function.
14418         * modules/windows-once: New file.
14419         * modules/lock (Depends-on): Add windows-once.
14421 2019-06-20  Bruno Haible  <bruno@clisp.org>
14423         lock, cond: Avoid possible counter wraparound on Windows.
14424         * lib/glthread/lock.c (glthread_lock_lock_func): Leave the 'started'
14425         field of the guard unchanged if it was already positive.
14426         (glthread_rwlock_rdlock_func): Likewise.
14427         (glthread_rwlock_wrlock_func): Likewise.
14428         (glthread_recursive_lock_lock_func): Likewise.
14429         * lib/glthread/cond.c (glthread_cond_wait_func): Likewise.
14430         (glthread_cond_timedwait_func): Likewise.
14432 2019-06-20  Bruno Haible  <bruno@clisp.org>
14434         cond: Make glthread_cond_timedwait more reliable on Windows.
14435         * lib/glthread/cond.c (glthread_cond_timedwait_func): Initialize the
14436         condition variable before looking at the current time.
14438 2019-06-20  Bruno Haible  <bruno@clisp.org>
14440         pthread_mutex_timedlock: New module.
14441         * lib/pthread.in.h (pthread_mutex_timedlock): New dummy function and
14442         new declaration.
14443         * lib/pthread_mutex_timedlock.c: New file.
14444         * m4/pthread_mutex_timedlock.m4: New file.
14445         * m4/pthread.m4 (gl_PTHREAD_CHECK): Don't call AC_LIBOBJ here. Test
14446         whether pthread_mutex_timedlock is declared.
14447         (gl_PTHREAD_MODULE_INDICATOR): New macro.
14448         (gl_PTHREAD_DEFAULTS): Initialize GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
14449         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
14450         * modules/pthread (configure.ac): Call AC_LIBOBJ here.
14451         (Makefile.am): Substitute GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
14452         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
14453         * modules/pthread_mutex_timedlock: New file.
14454         * doc/posix-functions/pthread_mutex_timedlock.texi: Mention the new
14455         module.
14457 2019-06-20  Bruno Haible  <bruno@clisp.org>
14459         thread, lock, cond, tls: Recognize C11 multithreaded applications.
14460         * m4/threadlib.m4 (gl_THREADLIB_BODY): Test for <threads.h>.
14461         * lib/glthread/thread.h (c11_threads_in_use): New macro.
14462         (pthread_in_use, pth_in_use, thread_in_use): Use it.
14463         * lib/glthread/lock.h (c11_threads_in_use): New macro.
14464         (pthread_in_use, pth_in_use, thread_in_use): Use it.
14465         * lib/glthread/cond.h (c11_threads_in_use): New macro.
14466         (pthread_in_use, pth_in_use, thread_in_use): Use it.
14467         * lib/glthread/tls.h (c11_threads_in_use): New macro.
14468         (pthread_in_use, pth_in_use, thread_in_use): Use it.
14470 2019-06-20  Bruno Haible  <bruno@clisp.org>
14472         tls tests: Small improvements.
14473         * tests/test-tls.c: Include <stdint.h>.
14474         (worker_thread): Avoid gcc warning on 64-bit mingw.
14475         (test_tls): Pass a different id to each thread.
14476         * modules/tls-tests (Depends-on): Add stdint.
14478 2019-06-20  Bruno Haible  <bruno@clisp.org>
14480         cond tests: Simplify.
14481         * tests/test-cond.c (test_timedcond): Remove redundant assignment.
14483 2019-06-20  Bruno Haible  <bruno@clisp.org>
14485         lock tests: Avoid reference to undefined variable if !ENABLE_LOCKING.
14486         * tests/test-lock.c (test_once): Don't reference fire_signal if
14487         !ENABLE_LOCKING.
14489 2019-06-19  Bruno Haible  <bruno@clisp.org>
14491         nanosleep: Relicense under LGPLv2+.
14492         Approved by Jim Meyering, Paul Eggert, Eric Blake, Pádraig Brady.
14493         * modules/nanosleep (License): Change to LGPLv2+.
14495 2019-06-19  Bruno Haible  <bruno@clisp.org>
14497         Reorder pieces of header in perl scripts.
14498         The desired order is
14499         - Prologue part 1 (2 lines with #!)
14500         - Program short description
14501         - Copyright and license notice
14502         - Written-by notice
14503         - Program short description (optional)
14504         - Program long description (optional)
14505         - Prologue part 2
14506         - Time stamp
14507         - Code
14508         Reported by Paul Eggert.
14509         * build-aux/announce-gen: Reorder header.
14510         * build-aux/gitlog-to-changelog: Likewise.
14511         * build-aux/useless-if-before-free: Likewise.
14512         * build-aux/prefix-gnulib-mk: Add copyright notice and short
14513         description.
14514         * build-aux/update-copyright: Likewise. Add short description. Bump
14515         time-stamp-line-limit to 200.
14517 2019-06-18  Paul Eggert  <eggert@cs.ucla.edu>
14519         verify-tests: work around xlc bug
14520         Problem reported by Bruno Haible in:
14521         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00049.html
14522         * tests/test-verify.c (item): Move the arithmetic inside the
14523         verify_expr, to avoid tickling a bug in IBM AIX xlc V12.1.
14525 2019-06-16  Bruno Haible  <bruno@clisp.org>
14527         Restore Emacs time-stamp hook applicability.
14528         Reported by Darshit Shah <darnir@gnu.org>.
14529         * build-aux/useless-if-before-free: Bump time-stamp-line-limit to 50.
14530         * build-aux/announce-gen: Likewise.
14531         * build-aux/gitlog-to-changelog: Likewise.
14532         * build-aux/prefix-gnulib-mk: Likewise.
14533         * build-aux/update-copyright: Likewise.
14535 2019-06-15  Bruno Haible  <bruno@clisp.org>
14537         Fix scripts to have valid executable format on Alpine Linux.
14538         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
14539         Idea by Paul Eggert.
14540         * build-aux/useless-if-before-free: Use a prologue that starts with
14541         '#!/bin/sh'.
14542         * build-aux/announce-gen: Likewise.
14543         * build-aux/gitlog-to-changelog: Likewise.
14544         * build-aux/prefix-gnulib-mk: Likewise.
14545         * build-aux/update-copyright: Likewise.
14546         * tests/test-update-copyright.sh: Update test program accordingly.
14548 2019-06-10  Bruno Haible  <bruno@clisp.org>
14550         nproc: Ensure nproc(NPROC_ALL) ≥ nproc(NPROC_CURRENT) with glibc ≥ 2.26.
14551         Reported by Nikita Ermakov <arei@altlinux.org> in
14552         <https://lists.gnu.org/archive/html/bug-gnulib/2019-06/msg00003.html>.
14553         * lib/nproc.c (num_processors_ignoring_omp): Treat a return value of
14554         sysconf (_SC_NPROCESSORS_CONF) == 2 like a return value == 1.
14556 2019-06-10  Bruno Haible  <bruno@clisp.org>
14558         posix_spawn_file_actions_addchdir: Fix possible use-after-free bug.
14559         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
14560         * lib/spawn_faction_addchdir.c (posix_spawn_file_actions_addchdir): Make
14561         a copy of the path argument.
14562         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
14563         it.
14565 2019-06-10  Bruno Haible  <bruno@clisp.org>
14567         posix_spawn_file_actions_addopen: Fix possible use-after-free bug.
14568         Reported at <https://sourceware.org/bugzilla/show_bug.cgi?id=17048>.
14569         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
14570         * lib/spawn_faction_addopen.c (posix_spawn_file_actions_addopen): Make
14571         a copy of the path argument.
14572         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
14573         it.
14575 2019-06-10  Bruno Haible  <bruno@clisp.org>
14577         posix_spawn_file_actions_addfchdir: Add tests.
14578         * tests/test-posix_spawn_file_actions_addfchdir.c: New file.
14579         * tests/test-posix_spawn5.c: New file.
14580         * modules/posix_spawn_file_actions_addfchdir-tests: New file.
14582 2019-06-10  Bruno Haible  <bruno@clisp.org>
14584         posix_spawn_file_actions_addfchdir: New module.
14585         * lib/spawn.in.h (posix_spawn_file_actions_addfchdir): New declaration.
14586         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_fchdir' and
14587         union member 'fchdir_action'.
14588         * lib/spawn_faction_addfchdir.c: New file.
14589         * lib/spawni.c (__spawni): Implement the spawn_do_fchdir action.
14590         * m4/posix_spawn_faction_addfchdir.m4: New file.
14591         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
14592         'posix_spawn_file_actions_addfchdir' is present and whether
14593         posix_spawn_file_actions_addfchdir_np exists. Set REPLACE_POSIX_SPAWN.
14594         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
14595         posix_spawn_file_actions_addfchdir is declared.
14596         (gl_SPAWN_H_DEFAULTS): Initialize
14597         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
14598         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
14599         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
14600         * modules/spawn (Makefile.am): Substitute
14601         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
14602         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
14603         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
14604         * modules/posix_spawn_file_actions_addfchdir: New file.
14605         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addfchdir): Check
14606         signature.
14607         * doc/posix-functions/posix_spawn.texi: Mention the new module.
14608         * doc/posix-functions/posix_spawnp.texi: Likewise.
14609         * doc/glibc-functions/posix_spawn_file_actions_addfchdir_np.texi:
14610         Likewise.
14612 2019-06-10  Bruno Haible  <bruno@clisp.org>
14614         doc: Document existence of posix_spawn_file_actions_addchdir module.
14615         * doc/glibc-functions/posix_spawn_file_actions_addchdir_np.texi: Mention
14616         the posix_spawn_file_actions_addchdir module.
14618 2019-06-10  Bruno Haible  <bruno@clisp.org>
14620         posix_spawn-internal: Fix module description.
14621         * modules/posix_spawn (configure.ac): Move request to compile spawni.c
14622         from here...
14623         * modules/posix_spawnp (configure.ac): ... and here...
14624         * modules/posix_spawn-internal (configure.ac): ... to here.
14626 2019-06-10  Bruno Haible  <bruno@clisp.org>
14628         doc: Update and improve documentation of glibc functions.
14629         This is a series of commits that
14630         - updates the documentation to the state of glibc 2.29,
14631         - adds references to Linux man pages and glibc documentation,
14632         - marks Linux specific functions as such.
14633         These are the commits:
14634         doc: Update after removal of crypt functions from glibc 2.28.
14635         doc: Remove mention of function vm86 (does not exist on x86_64).
14636         doc: Remove mention of functions that are gone from glibc.
14637         doc: Mention that glibc no longer provides h_errno.
14638         doc: Mention the availability of specific functions in glibc versions.
14639         doc: Mention eaccess.
14640         doc: Add references to Linux man pages.
14641         doc: Add references to glibc documentation.
14642         doc: Mention inotify_* functions.
14643         doc: Mention ppoll.
14644         doc: Mention sched_getcpu.
14645         doc: Mention sync_file_range.
14646         doc: Mention epoll_pwait.
14647         doc: Mention eventfd, eventfd_read, eventfd_write.
14648         doc: Mention signalfd.
14649         doc: Mention timerfd_create, timerfd_gettime, timerfd_settime.
14650         doc: Mention epoll_create1.
14651         doc: Mention getauxval.
14652         doc: Mention pthread_getattr_default_np, pthread_setattr_default_np.
14653         doc: Mention nextdown, nextup.
14654         doc: Mention more ISO TS 18661-1 <math.h> functions.
14655         doc: Mention ISO TS 18661-1 <fenv.h> functions.
14656         doc: Mention getrandom, getentropy.
14657         doc: Mention strfromf, strfromd, strfroml.
14658         doc: Mention preadv2, pwritev2.
14659         doc: Mention copy_file_range.
14660         doc: Mention memfd_create.
14661         doc: Mention mlock2.
14662         doc: Mention pkey_alloc, pkey_set, pkey_get, pkey_free, pkey_mprotect.
14663         doc: Mention more ISO TS 18661-1 <math.h> functions.
14664         doc: Mention renameat2.
14665         doc: Mention statx.
14666         doc: Mention the ISO C11 multithreading header and functions.
14667         doc: Mention getcpu.
14668         doc: Mention posix_spawn_file_actions_add[f]chdir_np.
14669         doc: Some glibc functions also exist on IRIX 6.5 in 32-bit mode.
14670         doc: Some glibc functions also exist on FreeBSD, AIX, HP-UX, Solaris 11.
14671         doc: Some glibc functions also exist on FreeBSD, Solaris 11.
14672         doc: Some glibc functions also exist on Solaris 11.
14673         doc: Some glibc functions also exist on Solaris 11.4.
14674         doc: Some glibc functions also exist on FreeBSD.
14675         doc: Some glibc functions also exist on BeOS.
14676         doc: Some glibc functions also exist on Haiku.
14677         doc: Mark functions which exist only on Linux.
14678         doc: Mark functions which exist only on Linux and illumos.
14680 2019-06-06  Paul Eggert  <eggert@cs.ucla.edu>
14682         copy-file: fix typo
14683         * lib/copy-file.c (qcopy_file_preserving): Remove unused label.
14685         copy-file-range: simplify into a stub
14686         Based on a comment by Florian Weimer in:
14687         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00007.html
14688         It turns out that Emacs (which will use this module) won’t need an
14689         emulation and I suspect other programs won’t either, because these
14690         programs will need to fall back on read+write anyway.  Perhaps I
14691         am wrong and other programs will be able to use an emulation; if
14692         so, this patch can be reverted.
14693         * lib/copy-file-range.c (COPY_FILE_RANGE): Replace with a stub.
14694         Just call it copy_file_range.
14695         * m4/copy-file-range.m4 (gl_FUNC_COPY_FILE_RANGE):
14696         Check via AC_LINK_IFELSE.
14697         * modules/copy-file-range (Depends-on): Remove modules no longer used.
14699 2019-06-04  Paul Eggert  <eggert@cs.ucla.edu>
14701         copy-file: prefer copy_file_range
14702         * lib/copy-file.c: Do not include xalloc.h.
14703         (qcopy_file_preserving): Allocate a buffer only if
14704         copy_file_range does not suffice.  If the allocation fails
14705         don't give up; just use a small stack-based buffer.
14706         Prefer copy_file_range if it works.
14707         * modules/copy-file (Depends-on): Add copy-file-range.
14708         Remove xalloc.
14710         copy-file-range: new module
14711         * MODULES.html.sh: Add copy-file-range.
14712         * lib/copy-file-range.c, m4/copy-file-range.m4:
14713         * modules/copy-file-range: New files.
14714         * lib/unistd.in.h (copy_file_range): Declare.
14715         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS):
14716         Set up GNULIB_COPY_FILE_RANGE and HAVE_COPY_FILE_RANGE.
14717         * modules/unistd (unistd.h): Substitute them.
14719 2019-05-28  Bruno Haible  <bruno@clisp.org>
14721         binary-io: Attempted use of O_BINARY on consoles no longer fails.
14722         Reported by KO Myung-Hun <komh78@gmail.com> in
14723         <https://lists.gnu.org/archive/html/bug-gnulib/2019-05/msg00124.html>.
14724         * lib/binary-io.h (__gl_setmode_check): Remove function.
14725         (set_binary_mode): Declare as notinline on DJGPP and EMX.
14726         * lib/binary-io.c (__gl_setmode_check): Remove function.
14727         (set_binary_mode): Define here on DJGPP and EMX. Inline
14728         __gl_setmode_check. In case of a tty, don't return an error code.
14730 2019-05-28  James Youngman  <jay@gnu.org>
14732         dirent-safer: Make opendir_safer usable from C++.
14733         * lib/dirent-safer.h: use extern "C".
14735 2019-05-28  James Youngman  <jay@gnu.org>
14737         canonicalize: Make canonicalize_filename_mode usable from C++.
14738         * lib/canonicalize.h: use extern "C".
14740 2019-05-26  Akim Demaille  <akim@lrde.epita.fr>
14742         prefix-gnulib-mk: Fix CPPFLAGS migration.
14743         * build-aux/prefix-gnulib-mk (prefix_assignment): Don't forget the
14744         _a part of the library name.
14746 2019-05-24  Paul Eggert  <eggert@cs.ucla.edu>
14748         flexmember: update comments again
14749         * lib/flexmember.h, m4/flexmember.m4: Improve comments further.
14751         flexmember: update comment
14752         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER): Improve comment.
14754 2019-05-20  Bruno Haible  <bruno@clisp.org>
14756         setlocale: Improve fallback on macOS.
14757         * lib/setlocale.c (search): Optimize away a redundant strcmp()
14758         invocation.
14759         (locales_with_principal_territory): New array.
14760         (langcmp, get_main_locale_with_same_language): New functions.
14761         (locales_with_principal_language): New array.
14762         (terrcmp, get_main_locale_with_same_territory): New functions.
14763         (rpl_setlocale): When setlocale_single failed, try again with a locale
14764         that is more likely to exist. Don't warn if the environment variable
14765         SETLOCALE_VERBOSE is not set.
14767 2019-05-19  Bruno Haible  <bruno@clisp.org>
14769         localename: Fix default on macOS.
14770         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Don't test for CFLocaleCopyCurrent.
14771         * lib/localename.c: Remove includes for HAVE_CFLOCALECOPYCURRENT.
14772         (gl_locale_name_environ, gl_locale_name_default): Remove code for
14773         HAVE_CFLOCALECOPYCURRENT.
14774         * lib/localename.h (gl_locale_name_default): Update.
14776 2019-05-19  Karl Berry  <karl@freefriends.org>
14778         * config/srclistvars.sh (TEXINFOTEX): make ftp.gnu.org be the
14779         source for texinfo.tex, replacing TEXINFOSRC, per Texinfo maintainer.
14780         * config/srclist.txt (texinfo.tex): use it. (Also doc changes.)
14782 2019-05-18  Akim Demaille  <akim@lrde.epita.fr>
14784         maintainer-makefile: catch uses of $< in non-implicit rules
14785         * top/maint.mk (sc_prohibit_magic_number_exit): New.
14787 2019-05-18  Bruno Haible  <bruno@clisp.org>
14789         threadlib: Provide an easy way to avoid mingw's winpthreads library.
14790         * m4/threadlib.m4 (gl_AVOID_WINPTHREAD): New macro.
14791         (gl_THREADLIB_EARLY_BODY): Recognize when it was invoked, and set
14792         gl_use_threads accordingly.
14794 2019-05-18  Bruno Haible  <bruno@clisp.org>
14796         pthread_sigmask: Fix compilation error with --enable-threads=windows.
14797         Reported by Tim Rühsen in
14798         <https://lists.gnu.org/archive/html/bug-gnulib/2018-01/msg00018.html>
14799         and Michele Locati in
14800         <https://lists.gnu.org/archive/html/bug-gettext/2019-04/msg00057.html>.
14801         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Revert change from
14802         2015-06-01. Test whether pthread_sigmask is a macro, regardless of
14803         $LIBMULTITHREAD. Consider it regardless whether module 'threadlib' is
14804         in use and regardless which threads API is chosen.
14806 2019-05-14  Paul Eggert  <eggert@cs.ucla.edu>
14808         close-stream, closein, closeout: simplify
14809         I noticed this opportunity for simplification while drafting a
14810         new, related module that I haven’t had time to finish yet.
14811         * m4/close-stream.m4, m4/closein.m4, m4/closeout.m4: Remove.
14812         * modules/close-stream (Files): Remove m4/close-stream.m4.
14813         (configure.ac): Omit gl_CLOSE_STREAM.
14814         * modules/closein (Files): Remove m4/closein.m4
14815         (configure.ac): Omit gl_CLOSEIN.
14816         * modules/closeout (Files): Remove m4/closeout.m4.
14817         (configure.ac): Omit gl_CLOSEOUT.
14819 2019-05-12  Bruno Haible  <bruno@clisp.org>
14821         libtool-next-version: New program.
14822         * build-aux/libtool-next-version: New file.
14824 2019-05-11  John Darrington  <john@darrington.wattle.id.au>
14825             Bruno Haible  <bruno@clisp.org>
14827         version-etc: Ease translation.
14828         * lib/version-etc.c (version_etc_arn, emit_bug_reporting_address): Move
14829         URLs and formatting newlines out of translatable string.
14831 2019-05-11  Bruno Haible  <bruno@clisp.org>
14833         gnupload: Explain how to create symlinks.
14834         * build-aux/gnupload (usage): Add an example that creates symlinks.
14836 2019-05-11  Paul Eggert  <eggert@cs.ucla.edu>
14838         fpucw: port to gcc -pedantic
14839         * lib/fpucw.h (GET_FPUCW, SET_FPUCW):
14840         Use __extension__ if using ({ ... }).
14842         crypto/af_alg: port to strict C compilers
14843         * lib/af_alg.c: Include af_alg.h regardless, so that the
14844         compilation unit is nonempty.
14846 2019-05-10  Bruno Haible  <bruno@clisp.org>
14848         base64: Avoid false positive warning from Coverity.
14849         Reported by Kamil Dudka <kdudka@redhat.com>.
14850         Idea by Paul Eggert.
14851         * lib/base64.c (base64_encode_fast, base64_encode): Add a no-op
14852         '& 0x3f' to the array index expressions. This convinces Coverity that
14853         there is no out-of-bounds array reference, regardless of the input.
14855 2019-05-09  Bruno Haible  <bruno@clisp.org>
14857         gettext: Update to gettext 0.20.
14858         * modules/gettext (Files): Remove m4/codeset.m4, m4/fcntl-o.m4,
14859         m4/glibc2.m4, m4/glibc21.m4, m4/intdiv0.m4, m4/intl.m4, m4/intldir.m4,
14860         m4/intmax.m4, m4/inttypes_h.m4, m4/inttypes-pri.m4, m4/lcmessage.m4,
14861         m4/lock.m4, m4/longlong.m4, m4/printf-posix.m4, m4/size_max.m4,
14862         m4/stdint_h.m4, m4/threadlib.m4, m4/uintmax_t.m4, m4/visibility.m4,
14863         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4. Add m4/host-cpu-c-abi.m4.
14864         (configure.ac): Request infrastructure compatible with gettext 0.20.
14865         * m4/glibc2.m4: Remove file.
14866         * m4/intdiv0.m4: Remove file.
14867         * m4/intl.m4: Remove file.
14868         * m4/intldir.m4: Remove file.
14869         * m4/intmax.m4: Remove file.
14870         * m4/printf-posix.m4: Remove file.
14871         * m4/uintmax_t.m4: Remove file.
14872         * m4/gettext.m4: Update from gettext 0.20.
14873         * m4/po.m4: Likewise.
14875 2019-05-09  Paul Eggert  <eggert@cs.ucla.edu>
14877         verify: remove verify_true
14878         * NEWS: Mention this.
14879         * lib/verify.h (verify_true): Remove.
14880         * tests/test-verify.c (item): Test verify_expr, not verify_true.
14882         Support C2X and C++17 static_assert
14883         C2X and C++17 finally added support for a simple, single-argument
14884         ‘static_assert’ that implements what the Gnulib ‘verify’ macro was
14885         doing back in 2005.  Implement static_assert on older platforms.
14886         The only remaining advantage of ‘verify’ is a shorter name.
14887         * doc/posix-headers/assert.texi (assert.h):
14888         * doc/verify.texi (Compile-time Assertions):
14889         Modernize for C2X and C++17.
14890         * lib/verify.h (_GL_HAVE__STATIC_ASSERT1, _GL_HAVE_STATIC_ASSERT1):
14891         New macros.
14892         (_GL_HAVE__STATIC_ASSERT): Remove.
14893         (_GL_HAVE__STATIC_ASSERT): Rely more heavily on __STDC_VERSION__.
14894         (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE): Remove 2nd arg, the diagnostic
14895         string.  All callers changed.
14896         (_GL_VERIFY): Require 3 or more args, of which only the first 2
14897         are used.  All callers changed.
14898         (_Static_assert): Allow either 1 or 2 args, and define if
14899         !_GL_HAVE__STATIC_ASSERT1 instead of defining if
14900         !_GL_HAVE__STATIC_ASSERT.
14901         (static_assert): Define if !_GL_HAVE_STATIC_ASSERT1 instead
14902         of defining if !_GL_HAVE_STATIC_ASSERT.
14903         (verify_expr, verify): Don’t bother trying to copy the expression
14904         into the diagnostic, since 1-argument static_assert doesn’t.
14905         (verify): Prefer 1-argument _Static_assert if it works.
14906         * m4/assert_h.m4 (gl_ASSERT_H): Check for 1-argument static_assert.
14908 2019-05-08  Paul Eggert  <eggert@cs.ucla.edu>
14910         Fix _GL_HAVE__STATIC_ASSERT typo
14911         * lib/verify.h (_Static_assert): For the FreeBSD workaround,
14912         use _GL_HAVE__STATIC_ASSERT, not _GL_HAVE_STATIC_ASSERT.
14914 2019-05-05  Bruno Haible  <bruno@clisp.org>
14916         wcwidth: Ensure width 1, not 2, for ambiguous characters.
14917         Reported by Kiyoshi KANAZAWA <yoi_no_myoujou@yahoo.co.jp>
14918         via Akim Demaille <akim.demaille@gmail.com>.
14919         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the width of U+2202. Use an
14920         en_US.UTF-8 locale, since that is more likely to be present than an
14921         fr_FR.UTF-8 locale.
14922         * tests/test-wcwidth.c (main): Check the width of U+2202.
14923         * doc/posix-functions/wcwidth.texi: Mention the issue.
14925 2019-05-03  Paul Eggert  <eggert@cs.ucla.edu>
14927         Port manywarnings to GCC 9
14928         * build-aux/gcc-warning.spec: Sort.  Add -Wattribute-alias,
14929         -Wc11-c2x-compat, -Wcast-result (for the D programming language),
14930         -Wclass-conversion, -Wdeprecated-copy, -Wdeprecated-copy-dtor,
14931         -Winit-list-lifetime, -Wpessimizing-move, -Wprio-ctor-dtor,
14932         -Wredundant-move.  Adjust to minor wording changes in GCC 9’s
14933         --help=warnings output.
14934         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wabsolute-value,
14935         -Waddress-of-packed-member, -Wattribute-warning, -Wcannot-profile,
14936         -Wmissing-profile.  Change -Wattribute-alias to -Wattribute-alias=2.
14938 2019-04-30  Paul Eggert  <eggert@cs.ucla.edu>
14940         Sync lib/mktime-internal.h from glibc
14941         * config/srclist.txt: Add entry for lib/mktime-internal.h.
14942         * lib/mktime-internal.h: Autoupdate.
14944 2019-04-28  Bruno Haible  <bruno@clisp.org>
14946         tls tests: Prevent that the test takes too long.
14947         * tests/test-tls.c: Include <signal.h>, <unistd.h>.
14948         (main): Let the test fail if it takes more than 10 minutes.
14949         * modules/tls-tests (configure.ac): Test whether 'alarm' is declared.
14951 2019-04-27  Bruno Haible  <bruno@clisp.org>
14953         lock tests: Prevent that the test takes too long.
14954         * tests/test-lock.c: Include <signal.h>, <unistd.h>.
14955         (main): Let the test fail if it takes more than 10 minutes.
14956         * modules/lock-tests (configure.ac): Test whether 'alarm' is declared.
14958 2019-04-27  Bruno Haible  <bruno@clisp.org>
14960         localename: Fix crash on mingw (regression from 2018-11-23).
14961         * lib/localename.c (gl_locale_name_posix): Don't attempt to convert a
14962         locale name that is null.
14964 2019-04-27  Bruno Haible  <bruno@clisp.org>
14966         Fix gcc warnings on 64-bit mode mingw.
14967         * lib/clean-temp.c: Include <stdint.h> instead of defining uintptr_t.
14968         * lib/gl_array_list.c: Likewise.
14969         * lib/gl_array_map.c: Likewise.
14970         * lib/gl_array_set.c: Likewise.
14971         * lib/gl_carray_list.c: Likewise.
14972         * lib/gl_sublist.c: Likewise.
14973         * lib/gl_avltreehash_list.c (uintptr_t): Remove definition.
14974         * lib/gl_rbtreehash_list.c (uintptr_t): Likewise.
14975         * lib/gl_hash_map.c (uintptr_t): Likewise.
14976         * lib/gl_hash_set.c (uintptr_t): Likewise.
14977         * lib/gl_linkedhash_list.c (uintptr_t): Likewise.
14978         * lib/gl_linkedhash_map.c (uintptr_t): Likewise.
14979         * lib/gl_linkedhash_set.c (uintptr_t): Likewise.
14980         * lib/iconv.c (uintptr_t): Likewise.
14981         * lib/iconv_close.c (uintptr_t): Likewise.
14982         * tests/test-lock.c: Include <stdint.h>.
14983         (once_contender_thread, test_once): Cast through 'intptr_t' instead of
14984         'long'.
14985         * modules/clean-temp (Depends-on): Add stdint.
14986         * modules/array-list (Depends-on): Likewise.
14987         * modules/array-map (Depends-on): Likewise.
14988         * modules/array-set (Depends-on): Likewise.
14989         * modules/carray-list (Depends-on): Likewise.
14990         * modules/sublist (Depends-on): Likewise.
14991         * modules/lock-tests (Depends-on): Likewise.
14993 2019-04-27  Bruno Haible  <bruno@clisp.org>
14995         error: Tweak indentation.
14996         * lib/error.c: Correct indentation.
14998 2019-04-27  Bruno Haible  <bruno@clisp.org>
15000         term-style-control: Fix gcc warning on mingw.
15001         * lib/term-style-control.c (ensure_other_signal_handlers): Reduce scope
15002         of i.
15004 2019-04-26  Bruno Haible  <bruno@clisp.org>
15006         pipe-filter-gi, pipe-filter-ii: Fix gcc warning.
15007         * lib/pipe-filter-aux.h (read): Undefine before redefinition.
15009 2019-04-26  Bruno Haible  <bruno@clisp.org>
15011         relocatable-prog: Fix gcc warning on mingw.
15012         * lib/progreloc.c (maybe_executable): Don't define on native Windows and
15013         on EMX.
15015 2019-04-02  Bruno Haible  <bruno@clisp.org>
15017         gitsub.sh: New file.
15018         * top/gitsub.sh: New file.
15020 2019-04-18  Akim Demaille  <akim@lrde.epita.fr>
15022         argmatch: use void* for raw memory pointers
15023         * lib/argmatch.h, lib/argmatch.c (argmatch, argmatch_valid)
15024         (__xargmatch_internal, argmatch_to_argument): Use void* for pointers
15025         to "values", keep char* for strings.
15027 2019-04-21  Akim Demaille  <akim@lrde.epita.fr>
15029         prefix-gnulib-mk: fix the support for gnulib-po
15030         * build-aux/prefix-gnulib-mk (prefix_assignment): Remove useless $res.
15031         Don't touch HAVE_* variables.
15032         Map AM_CPPFLAGS and AM_CPPFLAGS to the library's corresponding variables.
15034 2019-04-18  Bernhard Voelker  <mail@bernhard-voelker.de>
15036         di-set: allow free with 'ino_map' being NULL.
15037         * lib/di-set.c (di_set_free): Avoid ino_map_free() when dis->ino_map
15038         is NULL.  Bug introduced in commit 3703dbbe88dd.
15039         * tests/test-di-set.c: Add di_set_free() right after di_set_alloc()
15040         as a test.
15042 2019-04-14  Paul Eggert  <eggert@cs.ucla.edu>
15044         * lib/str-two-way.h: Fix comment typo.
15046 2019-04-13  Bruno Haible  <bruno@clisp.org>
15048         x-to-1: Restore ability to use original calling convention.
15049         * build-aux/x-to-1.in: Add comments. Accept the original form of
15050         HELP2MAN argument as well as the form expected since 2012-12-12.
15052 2019-04-13  Bruno Haible  <bruno@clisp.org>
15054         x-to-1: Avoid failure due to missing perl modules.
15055         * build-aux/x-to-1.in: Test whether all the perl modules that help2man
15056         needs are installed.
15058 2019-04-13  Bruno Haible  <bruno@clisp.org>
15060         openmp-init: New module.
15061         * modules/openmp-init: New file.
15062         * modules/openmp: (Files, Depends-on, configure.ac, Makefile.am): Revert
15063         the changes from 2019-04-09.
15065 2019-04-12  Bruno Haible  <bruno@clisp.org>
15067         signbit: Fix compilation error when gnulib's math.h exists twice.
15068         * lib/math.in.h (GNULIB_defined_signbit): New macro.
15070 2019-04-12  Bruno Haible  <bruno@clisp.org>
15072         openmp: Fix compilation error on platforms without OpenMP.
15073         * lib/omp-init.c: Include <omp.h> only if _OPENMP.
15075 2019-04-09  Bernhard Voelker  <mail@bernhard-voelker.de>
15077         mountlist: make parsing /proc/self/mountinfo more robust
15078         Cater for the following issues with mountinfo parsing (the first
15079         one was reported by Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
15080         in <https://bugs.gnu.org/35137>).
15081         1. The fields source, target, mntroot and fstype may contain characters
15082         like '\r'; sscanf(3) fails to read such values with the %s format
15083         specifier because it would stop at such characters.
15084         Example: "mount -t tmpfs tmpfs /foo^Mbar".
15085         The only true separator in that file is the ' ' character.
15086         2. The source field may be an empty string, which happens e.g. with
15087         "mount -t tmpfs '' /target".
15088         3. The fstype field may contain mangled characters as well which need
15089         unescaping.
15090         * lib/mountlist.c (terminate_at_blank): Add utility function.
15091         (read_file_system_list): In the block trying to read the mountinfo file,
15092         avoid using sscanf(3) with %s format; instead, parse the above fields
15093         separated by spaces one by one.
15094         This also handles the case when the source field is an empty string.
15095         Unescape the fstype field.
15097 2019-04-09  Bruno Haible  <bruno@clisp.org>
15099         openmp: Add workaround for 32-bit programs on AIX.
15100         * lib/omp.in.h: New file.
15101         * lib/omp-init.c: New file, based on lib/nproc.c.
15102         * m4/omp_h.m4: New file.
15103         * modules/openmp (Files): Add them.
15104         (Depends-on): Add include_next, c-ctype, setenv.
15105         (configure.ac): Invoke gl_OMP_H.
15106         (Makefile.am): Add rules to create omp.h and compile omp-init.c.
15107         (Include): Mention <omp.h>.
15109 2019-04-09  Bruno Haible  <bruno@clisp.org>
15111         nproc: Fix return value for privileged processes.
15112         * lib/nproc.c (num_processors_ignoring_omp): Test getuid(), not
15113         getpid().
15115 2019-04-07  Bruno Haible  <bruno@clisp.org>
15117         Add copyright notices in several files.
15118         Reported by <ineiev@gnu.org> in <https://savannah.gnu.org/bugs/?54809>.
15119         * lib/_Noreturn.h: Add LGPLv2+ copyright notice.
15120         * lib/libunistring.valgrind: Likewise.
15121         * lib/iconv_open-*.gperf: Add GPLv2+ copyright notice.
15122         * lib/uniname/gen-uninames.lisp: Add GPLv3+ copyright notice.
15123         * lib/memchr.valgrind: Likewise.
15124         * lib/memchr2.valgrind: Likewise.
15125         * lib/rawmemchr.valgrind: Likewise.
15126         * lib/relocatable.valgrind: Likewise.
15127         * lib/strchrnul.valgrind: Likewise.
15129 2019-03-25  Bruno Haible  <bruno@clisp.org>
15131         term-style-control tests: Fix link error.
15132         Reported by Tom G. Christensen in
15133         <https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00108.html>.
15134         * modules/term-style-control-tests (Makefile.am): Link
15135         test-term-style-control-hello and test-term-style-control-yes against
15136         LIBINTL.
15138 2019-03-24  Bruno Haible  <bruno@clisp.org>
15140         term-style-control: Add tests.
15141         * tests/test-term-style-control-hello.c: New file.
15142         * tests/test-term-style-control-yes.c: New file.
15143         * modules/term-style-control-tests: New file.
15145         term-style-control: New module.
15146         * lib/term-style-control.h: New file, based on libtextstyle's
15147         term-ostream.oo.h and term-ostream.oo.c.
15148         * lib/term-style-control.c: New file, based on libtextstyle's
15149         term-ostream.oo.c.
15150         * modules/term-style-control: New file.
15152 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
15154         _Noreturn: beware of C's _Noreturn in C++ pre C++11.
15155         * lib/_Noreturn.h, m4/gnulib-common.m4: Using C's _Noreturn in
15156         C++98 appears to be supported by Clang, but not by GCC nor ICC.
15158 2019-03-23  Bruno Haible  <bruno@clisp.org>
15160         Support cross-compilation to musl libc.
15161         Reported by Necktwi Ozfguah <necktwi@ferryfair.com>.
15162         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Add cross-compilation guesses for
15163         musl libc.
15164         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
15165         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
15166         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
15167         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
15168         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
15169         * m4/chown.m4 (gl_FUNC_CHOWN): Likewise.
15170         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
15171         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
15172         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
15173         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
15174         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
15175         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
15176         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
15177         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
15178         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
15179         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
15180         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
15181         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
15182         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
15183         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
15184         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
15185         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
15186         * m4/getgroups.m4 (AC_FUNC_GETGROUPS, gl_FUNC_GETGROUPS): Likewise.
15187         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
15188         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
15189         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
15190         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
15191         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
15192         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Likewise.
15193         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
15194         * m4/log.m4 (gl_FUNC_LOG): Likewise.
15195         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
15196         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
15197         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
15198         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
15199         * m4/log10l.m4 (gl_FUNC_LOG10L): Likewise.
15200         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
15201         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
15202         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
15203         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
15204         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
15205         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Likewise.
15206         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
15207         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
15208         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
15209         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
15210         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
15211         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
15212         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_INFINITE,
15213         gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_A,
15214         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO, gl_SNPRINTF_TRUNCATION_C99,
15215         gl_SNPRINTF_RETVAL_C99, gl_SNPRINTF_DIRECTIVE_N,
15216         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
15217         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
15218         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
15219         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Likewise.
15220         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
15221         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
15222         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
15223         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
15224         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
15225         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
15226         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
15227         * m4/setenv.m4 (gl_FUNC_SETENV): Likewise.
15228         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
15229         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
15230         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
15231         * m4/strerror.m4 (gl_FUNC_STRERROR, gl_FUNC_STRERROR_0): Likewise.
15232         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
15233         * m4/strtold.m4 (gl_FUNC_STRTOLD): Likewise.
15234         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
15235         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
15236         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15237         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
15238         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
15239         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
15240         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
15241         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
15243 2019-03-23  Bruno Haible  <bruno@clisp.org>
15245         posix_spawn_file_actions_*: Document musl libc bugs.
15246         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
15247         the bug.
15248         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Likewise.
15249         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Likewise.
15250         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): When
15251         cross-compiling to a musl system, guess no.
15252         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): Likewise.
15253         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
15255 2019-03-23  Bruno Haible  <bruno@clisp.org>
15257         futimens: Document musl libc bug.
15258         * doc/posix-functions/futimens.texi: Mention the bug.
15259         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Require AC_CANONICAL_HOST. When
15260         cross-compiling, guess no on glibc and musl systems.
15262 2019-03-23  Bruno Haible  <bruno@clisp.org>
15264         Clarify that cross-compilation guesses are guesses.
15265         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): When cross-compiling, add
15266         prefix 'guessing ' to gl_cv_func_chown_follows_symlink.
15267         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): When cross-compiling, add
15268         prefix 'guessing ' to gl_cv_func_fchownat_nofollow_works.
15269         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): When
15270         cross-compiling, add prefix 'guessing ' to gl_cv_func_getcwd_abort_bug.
15271         * m4/glob.m4 (gl_GLOB): When cross-compiling, add prefix 'guessing ' to
15272         gl_cv_glob_lists_symlinks.
15273         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): When cross-compiling, add prefix
15274         'guessing ' to ac_cv_func_malloc_0_nonnull.
15275         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): When cross-compiling, add prefix
15276         'guessing ' to ac_cv_func_realloc_0_nonnull.
15277         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, add prefix
15278         'guessing ' to gl_cv_func_poll.
15279         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): When cross-
15280         compiling, add prefix 'guessing ' to gl_cv_func_iconv_supports_utf.
15281         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Update accordingly.
15283 2019-03-23  Bruno Haible  <bruno@clisp.org>
15285         strtold: Fix typo.
15286         * m4/strtold.m4 (gl_FUNC_STRTOLD): Fix typo in variable name.
15288 2019-03-23  Bruno Haible  <bruno@clisp.org>
15290         noreturn: In C++ mode with clang, use _Noreturn as fallback.
15291         Reported by Akim Demaille.
15292         * lib/noreturn.h (_GL_NORETURN_FUNC): In C++ mode with clang, when
15293         [[noreturn]] would not work, use _Noreturn instead.
15295 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
15297         libtextstyle-optional: Fix compiler warnings.
15298         * lib/textstyle.in.h (html_styled_ostream_create): Flag arguments
15299         as unused.
15301 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
15303         bitset: fix memory leaks
15304         Reported by Bruno Haible.
15305         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00027.html
15306         * lib/bitset/vector.c (vbitset_free): New.
15307         (vbitset_vtable): Use it.
15309 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
15311         bitset: minor changes
15312         * lib/bitset/base.h (bitset_alloc_type): Remove, unused.
15313         * lib/bitset/table.c: Formatting changes.
15314         Remove useless braces.
15315         Prefer using else in cascades of if/else-if with returns.
15316         * lib/bitset/vector.c: Reduce scopes.
15318 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
15320         bitset: expose bitset_resize
15321         * lib/bitset.h (bitset_resize): Bounce on the polymorphic implementation.
15322         * tests/test-bitset.c (check_attributes): Check bitset_resize.
15323         (main): Use a variable bitset as reference, since fixed does not support resize.
15325 2019-03-19  Bruno Haible  <bruno@clisp.org>
15327         doc: Document the 'stdnoreturn' and 'noreturn' modules.
15328         Reported by Akim Demaille.
15329         * doc/noreturn.texi: New file.
15330         * doc/gnulib.texi: Include it.
15332 2019-03-19  Bruno Haible  <bruno@clisp.org>
15334         doc: Document how to use 'static inline'.
15335         * doc/static-inline.texi: New file.
15336         * doc/gnulib.texi: Include it.
15338 2019-03-19  Bruno Haible  <bruno@clisp.org>
15340         libtextstyle-optional: Add tests.
15341         * tests/test-libtextstyle.c: New file, based on libtextstyle's
15342         adhoc-tests/hello.c.
15343         * tests/test-libtextstyle-default.css: New file, copied from
15344         libtextstyle's adhoc-tests/hello-default.css.
15345         * modules/libtextstyle-optional-tests: New file.
15347         libtextstyle-optional: New module.
15348         * lib/textstyle.in.h: New file, based on libtextstyle's textstyle.h.
15349         * m4/libtextstyle-optional.m4: New file, based on m4/libtextstyle.m4.
15350         * modules/libtextstyle-optional: New file.
15352 2019-03-19  Bruno Haible  <bruno@clisp.org>
15354         c-stack: Make signal handlers more reliable.
15355         * lib/c-stack.c (progname): New variable.
15356         (die): Use it.
15357         (c_stack_action): Initialize it.
15358         (segv_handler): Save and restore errno.
15360 2019-03-19  Bruno Haible  <bruno@clisp.org>
15362         Help making signal handlers more reliable.
15363         * m4/gnulib-common.m4 (gl_COMMON_BODY): Emit definition of
15364         _GL_ASYNC_SAFE into config.h.
15365         * lib/nanosleep.c (sighandler): Mark as _GL_ASYNC_SAFE.
15366         * lib/fatal-signal.h (at_fatal_signal): Add _GL_ASYNC_SAFE marker to
15367         argument.
15368         * lib/fatal-signal.c (action_t, uninstall_handlers,
15369         fatal_signal_handler): Mark as _GL_ASYNC_SAFE.
15370         * lib/clean-temp.c (cleanup_action): Mark as _GL_ASYNC_SAFE.
15371         * lib/wait-process.c (cleanup_slaves, cleanup_slaves_action): Mark as
15372         _GL_ASYNC_SAFE.
15373         * lib/c-stack.h (c_stack_action): Add _GL_ASYNC_SAFE marker to argument.
15374         * lib/c-stack.c: Add _GL_ASYNC_SAFE markers.
15376 2019-03-18  Bruno Haible  <bruno@clisp.org>
15378         _Noreturn: clang and MSVC do support [[noreturn]] in C++11 mode.
15379         * lib/_Noreturn.h: Use [[noreturn]] if __GNUC__ and __GNUC_MINOR__
15380         indicate clang, or if _MSC_VER indicates MSVC++ 14.0 or newer.
15382 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
15384         _Noreturn: GCC 4.7 does not support [[noreturn]] in C++11 mode
15385         * lib/_Noreturn.h, m4/gnulib-common.m4: Don't use [[noreturn]] before
15386         GCC 4.8.
15388 2019-03-17  Paul Eggert  <eggert@cs.ucla.edu>
15390         fts: minor simplification
15391         * lib/fts.c (fts_safe_changedir): Remove redundant assignment.
15393 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
15395         bitset, timevar: Depend on c99.
15396         Reported by Bruno Haible.
15397         * modules/bitset, modules/timevar (Depends-on): Add c99.
15399 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
15401         bitset: a bit (...) more tests
15402         * tests/test-bitset.c (check_attributes): Check zero and ones.
15404 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
15406         bitset: fix overflows.
15407         Reported by Bruno Haible.
15408         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00017.html
15409         * lib/bitset/table.c (tbitset_test): last_bit is the position of
15410         the bit in the array of bitset_word, so be sure to take its modulo
15411         number-of-bits-in-bitset-word (i.e., EBITSET_ELT_WORDS).
15412         * lib/bitset/list.c (lbitset_unused_clear): Likewise.
15414 2019-03-14  Akim Demaille  <akim@lrde.epita.fr>
15416         bitset: style changes.
15417         * lib/bitset/table.c: Use NULL, not 0, for pointers.
15418         Formatting changes.
15419         (tbitset_list): Reduce scopes.
15421 2019-03-16  Bruno Haible  <bruno@clisp.org>
15423         fatal-signal: Pass the signal number to the action.
15424         * lib/fatal-signal.h (at_fatal_signal): Change the signature.
15425         * lib/fatal-signal.c (action_t): Take the signal number as parameter.
15426         (fatal_signal_handler): Pass the signal number to the action.
15427         * lib/clean-temp.c (cleanup_action): Renamed from cleanup. Take the
15428         signal number as parameter.
15429         (create_temp_dir): Update.
15430         * lib/wait-process.c (cleanup_slaves_action): New function.
15431         (register_slave_subprocess): Update at_fatal_signal invocation.
15432         * NEWS: Mention the change.
15434 2019-03-16  Bruno Haible  <bruno@clisp.org>
15436         fatal-signal: Add function that lists the fatal signals.
15437         * lib/fatal-signal.h (get_fatal_signals): New declaration.
15438         * lib/fatal-signal.c (get_fatal_signals): New function.
15440 2019-03-14  Bruno Haible  <bruno@clisp.org>
15442         isatty: Make it return true in Cygwin consoles on native Windows.
15443         * lib/isatty.c: Include <string.h>.
15444         (GetProcAddress): New macro.
15445         (GetNamedPipeClientProcessIdFuncType): New type.
15446         (GetNamedPipeClientProcessIdFunc): New variable.
15447         (QueryFullProcessImageNameFuncType): New type.
15448         (QueryFullProcessImageNameFunc): New variable.
15449         (initialized): New variable.
15450         (initialize): New function.
15451         (IsCygwinConsoleHandle): New function.
15452         (isatty): Invoke it.
15453         * doc/posix-functions/isatty.texi: Mention the issue.
15455 2019-03-14  Bruno Haible  <bruno@clisp.org>
15457         all: Update URLs to msdn.microsoft.com.
15458         * lib/stat-w32.c et al.: Update URLs after most of msdn.microsoft.com
15459         was moved to docs.microsoft.com.
15461 2019-03-13  Bruno Haible  <bruno@clisp.org>
15463         gnulib-tool: Clarify the coding style.
15464         Suggested by Pavel Raiskup <praiskup@redhat.com>.
15465         * gnulib-tool: Add comment about coding style.
15467 2019-03-11  Paul Eggert  <eggert@cs.ucla.edu>
15469         strtod: fix clash with strtold
15470         Problem reported for RHEL 5 by Jesse Caldwell (Bug#34817).
15471         * lib/strtod.c (compute_minus_zero, minus_zero):
15472         Simplify by remving the macro / external variable,
15473         and having just a function.  User changed.  This avoids
15474         the need for an external variable that might clash.
15476 2019-03-10  Bruno Haible  <bruno@clisp.org>
15478         alloca-opt: Fix conflict mingw's new <alloca.h> file.
15479         Reported by Eli Zaretskii <eliz@gnu.org>.
15480         * lib/alloca.in.h: On mingw systems that have <alloca.h>, include that.
15481         * m4/alloca.m4 (gl_FUNC_ALLOCA): Set HAVE_ALLOCA_H.
15482         * modules/alloca-opt (Makefile.am): Substitute HAVE_ALLOCA_H.
15484 2019-03-10  Bruno Haible  <bruno@clisp.org>
15486         tests: Avoid havoc with "gcc -fcheck-pointer-bounds".
15487         * tests/test-fprintf-posix2.c: Skip the test when -fcheck-pointer-bounds
15488         is in use.
15489         * tests/test-printf-posix2.c: Likewise.
15491 2019-03-10  Bruno Haible  <bruno@clisp.org>
15493         uninorm tests: Free allocated memory.
15494         * tests/uninorm/test-u32-normalize-big.h
15495         (struct normalization_test_file): Remove 'const' from allocated member.
15496         (free_normalization_test_file): New declaration.
15497         * tests/uninorm/test-u32-normalize-big.c (test_other): Free allocated
15498         memory.
15499         (free_normalization_test_file): New function.
15500         * tests/uninorm/test-u32-nfc-big.c (main): Free allocated
15501         'struct normalization_test_file' contents.
15502         * tests/uninorm/test-u32-nfd-big.c (main): Likewise.
15503         * tests/uninorm/test-u32-nfkc-big.c (main): Likewise.
15504         * tests/uninorm/test-u32-nfkd-big.c (main): Likewise.
15506 2019-03-10  Bruno Haible  <bruno@clisp.org>
15508         di-set: Fix memory leak.
15509         * lib/di-set.c (di_set_free): Free the ino_map through ino_map_free(),
15510         not free().
15512 2019-03-10  Bruno Haible  <bruno@clisp.org>
15514         tests: Free allocated memory.
15515         Reported by <deltatau@protonmail.com> via Assaf Gordon.
15516         * tests/test-astrxfrm.c (main): Free allocated memory.
15517         * tests/test-bitset.c (compare, check_attributes): Free allocated
15518         bitsets.
15519         * tests/test-filenamecat.c (main): Free allocated memory.
15520         * tests/test-freadahead.c (main): Free allocated memory and close stdin.
15521         * tests/test-freadptr.c (main): Likewise.
15522         * tests/test-freadptr2.c (main): Free allocated memory.
15523         * tests/test-freadseek.c (main): Likewise.
15524         * tests/test-gc-arcfour.c (main): Close allocated context.
15525         * tests/test-gc-arctwo.c (main): Likewise.
15526         * tests/test-gc-des.c (main): Close all allocated contexts.
15527         * tests/test-pipe-filter-gi1.c (main): Free allocated memory.
15528         * tests/test-pipe-filter-ii1.c (main): Likewise.
15529         * tests/test-posix_spawn_file_actions_addchdir.c (main): Destroy the
15530         allocated file actions.
15531         * tests/test-posix_spawn_file_actions_addclose.c (main): Likewise.
15532         * tests/test-posix_spawn_file_actions_adddup2.c (main): Likewise.
15533         * tests/test-posix_spawn_file_actions_addopen.c (main): Likewise.
15534         * tests/test-sameacls.c (main): Free allocated memory and ACLs.
15535         * tests/test-strfmon_l.c (main): Free allocated locales.
15536         * tests/test-striconveh.c (main): Free allocated iconv_t objects.
15537         * tests/uniconv/test-u8-conv-to-enc.c (main): Free allocated memory.
15538         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
15539         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
15540         * tests/unistr/test-chr.h (main): Free input32.
15541         * tests/unistr/test-strchr.h (test_strchr): Likewise.
15543 2019-03-10  Bruno Haible  <bruno@clisp.org>
15545         tests: Prepare for using valgrind.
15546         * tests/*.sh: Invoke all test programs through ${CHECKER}.
15547         * tests/*/*.sh: Likewise.
15548         * tests/test-freadptr.c (main): Update accordingly.
15549         * tests/test-freadseek.c (main): Likewise.
15551 2019-03-09  Bruno Haible  <bruno@clisp.org>
15553         get-rusage-as, pthread_sigmask tests: Fix -fsanitize=thread findings.
15554         * lib/get-rusage-as.c (get_rusage_as): When compiled by
15555         "gcc -fsanitize=thread", don't try get_rusage_as_via_setrlimit.
15556         * tests/test-pthread_sigmask2.c (main): Clean up the killer_thread
15557         before exiting.
15559 2019-03-09  Jim Meyering  <meyering@fb.com>
15561         test-userspec.c: don't print NULL
15562         * tests/test-userspec.c (main): A test release of gcc,
15563         9.0.1 20190310, warned that this test would attempt to
15564         print a NULL pointer via a %s printf format.  Fix that
15565         and remove the unnecessary preceding "!diag" conjunct.
15566         Also add a comment.
15568 2019-03-03  Bruno Haible  <bruno@clisp.org>
15570         getloadavg: Write NULL for the null pointer.
15571         Reported by Michal Privoznik <mprivozn@redhat.com>.
15572         * lib/getloadavg.c (getloadavg): Write NULL instead of 0.
15574 2019-02-28  Michal Privoznik  <mprivozn@redhat.com>
15576         alloca, tsearch-tests: Write NULL for the null pointer.
15577         * lib/alloca.c (i00afunc): Write NULL instead of 0.
15578         * tests/test-tsearch.c (mangle_tree): Likewise.
15580 2019-03-09  Bruno Haible  <bruno@clisp.org>
15582         strfmon_l: Fix -fsanitize=address finding.
15583         * lib/strfmon_l.c: Include <errno.h>, <stdbool.h>, <stdlib.h>,
15584         <string.h>.
15585         (MAX_ARGS): Renamed from MAX_ARG_WORDS.
15586         (directive_t, directives_t): New types.
15587         (fmon_parse): New function.
15588         (rpl_strfmon_l): Don't call va_arg more often than needed for the
15589         format string. Consume 'long double' arguments in places where the
15590         format string indicates so.
15591         * modules/strfmon_l (Depends-on): Add 'stdbool'.
15593 2019-03-09  Bruno Haible  <bruno@clisp.org>
15595         crypto/des: Fix undefined behaviour.
15596         * lib/des.c (READ_64BIT_DATA): Cast bytes to 'unsigned int', to avoid
15597         shift operations on 'int'.
15599 2019-03-09  Bruno Haible  <bruno@clisp.org>
15601         Fix undefined behaviour.
15602         * lib/bitrotate.h (rotl16, rotr16, rotl8, rotr8): Cast x to
15603         'unsigned int', to avoid shift operations on 'int'.
15604         * lib/xmemdup0.c (xmemdup0): Don't invoke memcpy with a zero size.
15605         * tests/test-count-leading-zeros.c (main): Use a random number that has
15606         as many bits as TYPE, not only 2*15 or 2*31 bits.
15607         * tests/test-count-trailing-zeros.c (main): Likewise.
15608         * tests/test-count-one-bits.c (main): Likewise.
15609         * tests/test-memmem.c: Don't include "null-ptr.h".
15610         (main): Use zerosize_ptr() instead of null_ptr().
15611         * modules/memmem-tests (Files): Remove tests/null-ptr.h.
15613 2019-03-08  Bruno Haible  <bruno@clisp.org>
15615         unilbrk/u*-possible-linebreaks: Fix undefined behaviour.
15616         Reported by Jeffrey Walton <noloader@gmail.com>.
15617         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks): Don't
15618         invoke memset with a zero size.
15619         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
15620         Likewise.
15621         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
15622         Adjust accordingly.
15624 2019-03-08  Bruno Haible  <bruno@clisp.org>
15626         unistr/*, uniconv/*: Fix undefined behaviour.
15627         Reported by Jeffrey Walton <noloader@gmail.com>.
15628         * lib/unistr/u-cpy.h (FUNC): Don't invoke memcpy with a zero size.
15629         * lib/unistr/u-cpy-alloc.h (FUNC): Likewise.
15630         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
15631         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
15633 2019-03-08  Bruno Haible  <bruno@clisp.org>
15635         unistr/u8-cmp: Fix undefined behaviour.
15636         Reported by Jeffrey Walton <noloader@gmail.com>.
15637         * lib/unistr/u8-cmp.c (u8_cmp): Don't invoke memcmp if n is zero.
15639 2019-03-08  Bruno Haible  <bruno@clisp.org>
15641         unictype/numeric: Fix undefined behaviour.
15642         Reported by Jeffrey Walton <noloader@gmail.com>.
15643         * lib/unictype/numeric.c (uc_numeric_value): Avoid undefined behaviour
15644         on shift overflow, caught by "gcc -fsanitize=undefined".
15645         * lib/unictype/bidi_of.c (uc_bidi_class): Add cast, for clarity.
15646         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
15647         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
15649 2019-03-05  Paul Eggert  <eggert@cs.ucla.edu>
15651         git-version-gen: fix --version copyright year
15652         * build-aux/git-version-gen, build-aux/move-if-change (version):
15653         --version output copyright year is now taken from script year,
15654         so that it no longer needs to be updated by hand.
15656 2019-03-04  Bruno Haible  <bruno@clisp.org>
15658         relocatable-prog: Use wrapper-free installation on Mac OS X, take 2.
15659         This approach supports relocatable installation of shared libraries
15660         which depend on other shared libraries from the same package.
15661         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
15662         If use_macos_tools is true, use reloc-ldflags and set LIBTOOL to be a
15663         wrapper around the original LIBTOOL.
15664         * build-aux/reloc-ldflags: Add support for Mac OS X, which uses the
15665         token '@loader_path' instead of '$ORIGIN'.
15666         * build-aux/libtool-reloc: New file.
15667         * modules/relocatable-prog (Files): Add it.
15668         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
15669         the recent changes. Document the need to set the *_LDFLAGS of libraries.
15670         RELOCATABLE_LIBRARY_PATH and RELOCATABLE_CONFIG_H_DIR should be set in
15671         Makefile.am, not in configure.ac.
15673 2019-03-04  Bruno Haible  <bruno@clisp.org>
15675         relocatable-prog: Revert "Use wrapper-free installation on Mac OS X."
15676         * build-aux/install-reloc: Revert change.
15677         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
15679 2019-02-24  Paul Eggert  <eggert@cs.ucla.edu>
15681         nstrftime: support the ‘+’ flag
15682         * lib/nstrftime.c (add, __strftime_internal):
15683         Add support for the ‘+’ flag introduced in POSIX.1-2017.
15684         (__strftime_internal): New arg ‘width’.  All uses changed.
15685         (DO_YEARISH, DO_MAYBE_SIGNED_NUMBER): New macros.
15687 2019-02-24  Bruno Haible  <bruno@clisp.org>
15689         relocatable-prog: Improve verbose output.
15690         * build-aux/install-reloc (func_verbose): Escape characters that would
15691         be interpreted by the shell.
15693 2019-02-24  Bruno Haible  <bruno@clisp.org>
15695         stat, lstat: Fix conflict with relocatable-prog-wrapper module.
15696         * lib/stat.c: On platforms other than OSF/1, include <sys/stat.h>, not
15697         "sys/stat.h".
15698         * lib/lstat.c: Likewise.
15699         * lib/fstat.c: Likewise.
15700         * lib/fstatat.c: Likewise.
15702 2019-02-23  Bernhard Voelker  <mail@bernhard-voelker.de>
15704         long-options: add parse_gnu_standard_options_only
15705         Discussed in https://bugs.gnu.org/33468 .
15707         * lib/long-options.c (parse_long_options): Use EXIT_SUCCESS instead of 0
15708         (parse_gnu_standard_options_only): Add function to process
15709         the GNU default options --help and --version and fail for
15710         any other unknown long or short option. See
15711         https://gnu.org/prep/standards/html_node/Command_002dLine-Interfaces.html
15712         * lib/long-options.h (parse_gnu_standard_options_only): Declare it.
15713         * modules/long-options (depends-on): Add stdbool, exitfail.
15714         * top/maint.mk (sc_prohibit_long_options_without_use): Update
15715         syntax-check rule, add new function name.
15717 2019-02-23  Bruno Haible  <bruno@clisp.org>
15719         relocatable-prog: Update documentation.
15720         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
15721         the recent changes.
15723 2019-02-23  Paul Eggert  <eggert@cs.ucla.edu>
15725         nstrftime: tweak arg order
15726         * lib/nstrftime.c (__strftime_internal): Interchange arg order.
15727         All callers changed.  Suggested by TAMUKI Shoichi in:
15728         https://lists.gnu.org/r/bug-gnulib/2019-02/msg00052.html
15730 2019-02-23  Bruno Haible  <bruno@clisp.org>
15732         relocatable-prog: Use wrapper-free installation also on Mac OS X.
15733         Reported by Paul Smith <psmith@gnu.org>.
15734         * build-aux/install-reloc: Accept a 'mode' argument as first argument.
15735         (func_relativize): New function, from gnulib-tool.
15736         Handle mode 'macosx' through invocations of 'otool' and
15737         'install_name_tool'.
15738         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
15739         If use_macos_tools is true, set INSTALL_PROGRAM_ENV to an
15740         'install-reloc' invocation with mode 'macosx'.
15742 2019-02-23  Bruno Haible  <bruno@clisp.org>
15744         relocatable-prog: Use $ORIGIN trick also on GNU/Hurd.
15745         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
15746         Hurd with glibc >= 2.27.
15748 2019-02-21  Paul Eggert  <eggert@cs.ucla.edu>
15750         nstrftime: merge glibc strftime changes
15751         This incorporates:
15752         2019-02-11 Fix a few whitespace arrangement inconsistencies
15753         2019-01-24 strftime: Pass flags from "%EY" to "%Ey" [BZ #24096]
15754         2019-01-24 Set the default width of "%Ey" to 2 [BZ #23758]
15755         2019-01-11 strftime: use the "L_" macro with character literals
15756         * lib/nstrftime.c (__strftime_internal): New arg yr_spec.  All
15757         callers changed.  Default width of %Ey is now 2.  This is needed
15758         for proper handling of Japanese dates starting on 2019-05-01.
15760 2019-02-19  Bruno Haible  <bruno@clisp.org>
15762         relocatable-prog: Use $ORIGIN trick on more platforms.
15763         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
15764         FreeBSD >= 7.3, DragonFly >= 3.0, NetBSD >= 8.0, OpenBSD >= 5.4,
15765         Solaris >= 10, Haiku. But don't use it on Android.
15766         * build-aux/reloc-ldflags: Allow the use of the $ORIGIN trick also on
15767         Hurd, FreeBSD, DragonFly, NetBSD, OpenBSD, Solaris, Haiku.
15769 2019-02-19  Bruno Haible  <bruno@clisp.org>
15771         progreloc: Speed up executable lookup on various platforms.
15772         * lib/progreloc.c: Include <errno.h>.
15773         (safe_read, full_read): New functions.
15774         (find_executable): On GNU/kFreeBSD, FreeBSD, DragonFly, NetBSD, Solaris,
15775         prefer the information from the /proc file system to a PATH search.
15777 2019-02-19  Bruno Haible  <bruno@clisp.org>
15779         progreloc: Simplify code for Android.
15780         * lib/progreloc.c (executable_fd): Don't define on Android.
15781         (maybe_executable, find_executable): Don't use executable_fd on Android.
15783 2019-02-15  Bruno Haible  <bruno@clisp.org>
15785         gnulib-tool: Support --import with just a few tests, not --with-tests.
15786         * gnulib-tool (func_import): New variable 'gentests'. Use it instead of
15787         'inctests' when generating files; use 'inctests' only for computing the
15788         transitive closure.
15790 2019-02-14  Bruno Haible  <bruno@clisp.org>
15792         gnulib-tool: Improve handling of multiple --local-dir options.
15793         * doc/gnulib.texi (Extending Gnulib): Explain how multiple --local-dir
15794         options work.
15795         * gnulib-tool (func_path_prepend): Remove function.
15796         (func_path_foreach): Make IFS handling more robust.
15797         (local_gnulib_path): Collect --local-dir values using func_path_append,
15798         not func_path_prepend.
15799         (func_determine_path_separator): Make IFS handling more robust.
15800         (func_lookup_file_cb): New function.
15801         (func_lookup_file): Rewritten to use func_lookup_file_cb instead of
15802         func_lookup_local_file. Apply the patches in the reverse order of their
15803         origin in $local_gnulib_path.
15804         (func_count_relative_local_gnulib_path): Make IFS handling more robust.
15805         * NEWS: Mention that the first --local-dir option is the one with
15806         highest priority.
15808 2019-02-10  Bruno Haible  <bruno@clisp.org>
15810         libtextstyle: New module.
15811         * m4/libtextstyle.m4: New file.
15812         * modules/libtextstyle: New file.
15814 2019-02-05  Bruno Haible  <bruno@clisp.org>
15816         declared.sh: Fix bug with variables of pointer type.
15817         * build-aux/declared.sh (sed_extract_extern_declared): Allow the space
15818         before the symbol to be omitted if the preceding character is a '*'.
15820 2019-02-04  Bruno Haible  <bruno@clisp.org>
15822         Add script for running tests under valgrind.
15823         * build-aux/run-test: New file, from GNU libunistring.
15824         * doc/valgrind-tests.texi: Rewritten to mention alternative approaches
15825         as well.
15827 2019-02-04  Bruno Haible  <bruno@clisp.org>
15829         declared.sh: Fix --version output.
15830         * build-aux/declared.sh (func_version): Update package name.
15832 2019-02-03  Bruno Haible  <bruno@clisp.org>
15834         Add script for determining the set of symbols to export from a library.
15835         * build-aux/declared.sh: New file, from GNU libunistring.
15836         * doc/lib-symbol-visibility.texi (Exported Symbols of Shared Libraries):
15837         Mention it.
15839 2019-02-02  Paul Eggert  <eggert@cs.ucla.edu>
15841         vla: add commentary about VLA_ELEMS
15842         * lib/vla.h (VLA_ELEMS): Add commentary,
15843         some inspired by Bruno Haible’s proposal in:
15844         https://lists.gnu.org/r/bug-gnulib/2019-01/msg00109.html
15846         dtoastr,ftoastr,ldtoastr: port to c-strtod changes
15847         Decouple these modules from c-strtod.  Nowadays it’s reasonable to
15848         assume the C99 signatures for strtod and strtold.  Programs that
15849         require stricter adherence to C99 should also use the strtod and
15850         strtold modules as needed, and we no longer need the
15851         HAVE_C99_STRTOLD macro.
15852         * NEWS: Mention this.
15853         * lib/ftoastr.c (STRTOF) [LENGTH == 3]: Assume strtold.
15854         * m4/c-strtod.m4 (gl_C_STRTOLD): Do not define HAVE_C99_STRTOLD.
15855         * modules/dtoastr, modules/ftoastr, modules/ldtoastr:
15856         (Files): Remove m4/c-strtod.m4.
15857         (configure.ac): Do not require gl_C99_STRTOLD, which no longer
15858         exists.
15860 2019-02-02  Bruno Haible  <bruno@clisp.org>
15862         fma: Improve code style.
15863         * lib/fma.c: Include <limits.h>, for CHAR_BIT.
15865 2019-02-02  Colin Watson  <cjwatson@debian.org>
15867         *-map tests: Fix compilation error.
15868         * tests/test-array_map.c: Include <limits.h>, for CHAR_BIT.
15869         * tests/test-hash_map.c: Likewise.
15870         * tests/test-linkedhash_map.c: Likewise.
15872 2019-01-31  Bruno Haible  <bruno@clisp.org>
15874         c-strtod, c-strtold: Use the bug fixes for strtod, strtold.
15875         * lib/stdlib.in.h (GNULIB_defined_strtod_function,
15876         GNULIB_defined_strtold_function): New macros.
15877         * lib/c-strtod.c (HAVE_GOOD_STRTOD_L): New macro.
15878         (STRTOD): Ignore HAVE_C99_STRTOLD.
15879         (c_locale): Don't define it on platforms where strtod_l/strtold_l is
15880         deemed buggy. But do use it on platforms where uselocale exists and is
15881         usable.
15882         (C_STRTOD): Don't use STRTOD_L on platforms where strtod_l/strtold_l is
15883         deemed buggy. On platforms where uselocale exists and is usable, use
15884         uselocale and strtod/strtold.
15885         * m4/c-strtod.m4 (gl_C99_STRTOLD): Remove macro.
15886         (gl_C_STRTOD): Require gt_FUNC_USELOCALE.
15887         (gl_C_STRTOLD): Likewise. Define HAVE_C99_STRTOLD unconditionally.
15888         * modules/c-strtod (Files): Add m4/intl-thread-locale.m4.
15889         (Depends-on): Add strtod.
15890         * modules/c-strtold (Files): Add m4/intl-thread-locale.m4.
15891         (Depends-on): Add strtold.
15893 2019-01-31  Bruno Haible  <bruno@clisp.org>
15895         strtod, strtold: Use the locale's decimal point.
15896         * lib/strtod.c: Include <locale.h>, <stdio.h>, <langinfo.h>.
15897         (decimal_point_char): New function, copied from lib/vasnprintf.c.
15898         (parse_number): Add a radixchar argument. Use it instead of '.'.
15899         (STRTOD): Invoke decimal_point_char and pass the result to parse_number.
15900         * m4/strtod.m4 (gl_PREREQ_STRTOD): Test whether nl_langinfo exists.
15901         * m4/strtold.m4 (gl_PREREQ_STRTOLD): Likewise.
15902         * tests/test-strtod1.c: New file.
15903         * tests/test-strtod1.sh: New file.
15904         * modules/strtod-tests (Files): Add test-strtod1.{sh,c}. Add
15905         locale-fr.m4 and its dependencies.
15906         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
15907         (Makefile.am): Arrange to compile test-strtod1.c and run
15908         test-strtod1.sh.
15909         * tests/test-strtold1.c: New file.
15910         * tests/test-strtold1.sh: New file.
15911         * modules/strtold-tests (Files): Add test-strtold1.{sh,c}. Add
15912         locale-fr.m4 and its dependencies.
15913         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
15914         (Makefile.am): Arrange to compile test-strtold1.c and run
15915         test-strtold1.sh.
15917 2019-01-31  Bruno Haible  <bruno@clisp.org>
15919         strtod, strtold tests: Simplify tests.
15920         * tests/test-strtod.c (main): Assume no rounding errors for 0.5.
15921         * tests/test-strtold.c (main): Likewise.
15923 2019-01-31  Bruno Haible  <bruno@clisp.org>
15925         strtod, strtold: Avoid unnecessary rounding errors.
15926         * lib/strtod.c (parse_number): Drop trailing zeroes before doing the
15927         decimal to DOUBLE conversion.
15929 2019-01-31  Bruno Haible  <bruno@clisp.org>
15931         strtod, strtold: Work around HP-UX 11.31/ia64 bug.
15932         * lib/strtod.c (STRTOD): When there is an extra character after the
15933         exponent marker 'p', reparse the number.
15934         * doc/posix-functions/strtod.texi: Document the HP-UX 11.31 bug.
15935         * doc/posix-functions/strtold.texi: Likewise.
15937 2019-01-29  Bruno Haible  <bruno@clisp.org>
15939         strtold: Add tests.
15940         * tests/test-strtold.c: New file, based on tests/test-strtod.c.
15941         * modules/strtold-tests: New file.
15943 2019-01-29  Bruno Haible  <bruno@clisp.org>
15945         strtold: New module.
15946         * lib/stdlib.in.h (strtold): New declaration.
15947         * lib/strtold.c: New file.
15948         * lib/strtod.c: Consider USE_LONG_DOUBLE.
15949         (STRTOD, LDEXP, HAVE_UNDERLYING_STRTOD, DOUBLE, MIN, MAX, L_,
15950         USE_LDEXP): New macros.
15951         (LDEXP, scale_radix_exp, parse_number, STRTOD): Adapt for
15952         USE_LONG_DOUBLE.
15953         (underlying_strtod): Remove function. Replace with some macros.
15954         Re-add the code for a missing underlying function that was removed on
15955         2013-02-19.
15956         * m4/strtold.m4: New file.
15957         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether strtold is declared.
15958         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLD, HAVE_STRTOLD,
15959         REPLACE_STRTOLD.
15960         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLD, HAVE_STRTOLD,
15961         REPLACE_STRTOLD.
15962         * modules/strtold: New file.
15963         * doc/posix-functions/strtold.texi: Document the new module.
15965 2019-01-29  Bruno Haible  <bruno@clisp.org>
15967         strtod: Fix compilation error on IRIX 6.5.
15968         * modules/strtod (Depends-on): Add 'math'.
15970 2019-01-28  Bruno Haible  <bruno@clisp.org>
15972         Fix build error when building a shared libunistring on Android.
15973         * tests/uninorm/test-nfc.c (n): Don't define on Android.
15974         (main): Add 'volatile', to defeat a GCC optimization that would
15975         eliminate the reference.
15976         * tests/uninorm/test-nfd.c (n): Don't define on Android.
15977         (main): Add 'volatile', to defeat a GCC optimization that would
15978         eliminate the reference.
15979         * tests/uninorm/test-nfkc.c (n): Don't define on Android.
15980         (main): Add 'volatile', to defeat a GCC optimization that would
15981         eliminate the reference.
15982         * tests/uninorm/test-nfkd.c (n): Don't define on Android.
15983         (main): Add 'volatile', to defeat a GCC optimization that would
15984         eliminate the reference.
15986 2019-01-27  Bruno Haible  <bruno@clisp.org>
15988         Avoid build errors due to wrong references between modules.
15989         * lib/uninorm/canonical-decomposition.c: Include
15990         "uninorm/decomposition-table.h", not "decomposition-table.h".
15991         * lib/uninorm/decomposition.c: Likewise.
15992         * lib/uninorm/u8-normalize.c: Include "uninorm/decompose-internal.h",
15993         not "decompose-internal.h".
15994         * lib/uninorm/u16-normalize.c: Likewise.
15995         * lib/uninorm/u32-normalize.c: Likewise.
15996         * lib/uninorm/uninorm-filter.c: Likewise.
15997         * lib/uninorm/nfkc.c: Likewise.
15998         * lib/uninorm/nfkd.c: Likewise.
15999         * lib/unicase/u8-casemap.c: Include "unicase/caseprop.h", not
16000         "caseprop.h".
16001         * lib/unicase/u8-ct-totitle.c: Likewise.
16002         * lib/unicase/u8-prefix-context.c: Likewise.
16003         * lib/unicase/u8-suffix-context.c: Likewise.
16004         * lib/unicase/u16-casemap.c: Likewise.
16005         * lib/unicase/u16-ct-totitle.c: Likewise.
16006         * lib/unicase/u16-prefix-context.c: Likewise.
16007         * lib/unicase/u16-suffix-context.c: Likewise.
16008         * lib/unicase/u32-casemap.c: Likewise.
16009         * lib/unicase/u32-ct-totitle.c: Likewise.
16010         * lib/unicase/u32-prefix-context.c: Likewise.
16011         * lib/unicase/u32-suffix-context.c: Likewise.
16012         * lib/unicase/u8-tolower.c: Include "unicase/unicasemap.h", not
16013         "unicasemap.h".
16014         * lib/unicase/u8-toupper.c: Likewise.
16015         * lib/unicase/u8-ct-tolower.c: Likewise.
16016         * lib/unicase/u8-ct-toupper.c: Likewise.
16017         * lib/unicase/u16-tolower.c: Likewise.
16018         * lib/unicase/u16-toupper.c: Likewise.
16019         * lib/unicase/u16-ct-tolower.c: Likewise.
16020         * lib/unicase/u16-ct-toupper.c: Likewise.
16021         * lib/unicase/u32-tolower.c: Likewise.
16022         * lib/unicase/u32-toupper.c: Likewise.
16023         * lib/unicase/u32-ct-tolower.c: Likewise.
16024         * lib/unicase/u32-ct-toupper.c: Likewise.
16025         * lib/unicase/u8-ct-casefold.c: Include "unicase/unicasemap.h", not
16026         "unicasemap.h", and "unicase/casefold.h", not "casefold.h".
16027         * lib/unicase/u16-ct-casefold.c: Likewise.
16028         * lib/unicase/u32-ct-casefold.c: Likewise.
16030 2019-01-27  Bruno Haible  <bruno@clisp.org>
16032         gperf: Fix error when this module is required by some test module.
16033         * modules/gperf (Applicability): Set to 'all'.
16035 2019-01-27  Bruno Haible  <bruno@clisp.org>
16037         tmpfile: Add support for Android.
16038         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Add a runtime test whether tmpfile()
16039         works.
16040         * lib/tmpfile.c (tmpfile): Add an alternative implementation for
16041         Android.
16042         * modules/tmpfile (Depends-on): Add 'stdbool'.
16043         * doc/posix-functions/tmpfile.texi: Mention the Android bug.
16044         * modules/argv-iter-tests (Depends-on): Add 'tmpfile'.
16046 2019-01-27  Akim Demaille  <akim@lrde.epita.fr>
16048         bitsetv: allow free on NULL.
16049         * lib/bitsetv.c (bitsetv_free): Do nothing when the bitsetv is NULL.
16051 2019-01-27  Bruno Haible  <bruno@clisp.org>
16053         test-framework-sh: Improve maintainability.
16054         * tests/init.sh: Clarify what belongs together. Reorder definitions.
16056 2019-01-27  Bruno Haible  <bruno@clisp.org>
16058         tests: Don't assume that /tmp exists.
16059         * tests/test-set-mode-acl-1.sh: Skip the test if /tmp does not exist.
16060         * tests/test-copy-acl-1.sh: Likewise.
16061         * tests/test-file-has-acl-1.sh: Likewise.
16062         * tests/test-copy-file-1.sh: Likewise.
16064 2019-01-27  Bruno Haible  <bruno@clisp.org>
16066         tests: Accommodate a shell that is not in /bin/sh.
16067         * tests/init.sh (setup_): Set srcdir and builddir.
16068         (BOURNE_SHELL): New variable.
16069         * modules/acl-tests (Depends-on): Add 'test-framework-sh'.
16070         * modules/file-has-acl-tests (Depends-on): Likewise.
16071         * modules/copy-file-tests (Depends-on): Likewise.
16072         * tests/test-set-mode-acl-1.sh: Use the test framework. Invoke shell
16073         scripts through $BOURNE_SHELL.
16074         * tests/test-set-mode-acl-2.sh: Likewise.
16075         * tests/test-copy-acl-1.sh: Likewise.
16076         * tests/test-copy-acl-2.sh: Likewise.
16077         * tests/test-file-has-acl-1.sh: Likewise.
16078         * tests/test-file-has-acl-2.sh: Likewise.
16079         * tests/test-copy-file-1.sh: Likewise.
16080         * tests/test-copy-file-2.sh: Likewise.
16081         * tests/test-set-mode-acl.sh (builddir): Consider value set by the
16082         invoker.
16083         * tests/test-copy-acl.sh (builddir): Likewise.
16084         * tests/test-file-has-acl.sh (builddir): Likewise.
16085         * tests/test-copy-file.sh (builddir): Likewise.
16086         * tests/test-vc-list-files-cvs.sh: Don't create shims for executables in
16087         build-aux/. Instead, invoke shell scripts through $BOURNE_SHELL.
16088         * tests/test-vc-list-files-git.sh: Likewise.
16090 2019-01-27  Bruno Haible  <bruno@clisp.org>
16092         tests: Fix some "unused variable" warnings.
16093         * tests/test-fts.c (fts_dealloc): Remove unused variable.
16094         * tests/unigbrk/test-uc-grapheme-breaks.c (main): Likewise.
16095         * tests/test-striconveh.c (main): Move some variable into the
16096         '#if HAVE_ICONV'.
16097         * tests/test-striconveha.c (main): Likewise.
16098         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
16099         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
16100         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
16101         * tests/uniconv/test-u8-conv-to-enc.c (main): Likewise.
16102         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
16103         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
16104         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
16105         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
16106         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
16107         * tests/uniconv/test-u8-strconv-to-enc.c (main): Likewise.
16108         * tests/uniconv/test-u16-strconv-to-enc.c (main): Likewise.
16109         * tests/uniconv/test-u32-strconv-to-enc.c (main): Likewise.
16110         * tests/test-tsearch.c (main): Move some variable into the
16111         '#if HAVE_INITSTATE'.
16113 2019-01-27  Bruno Haible  <bruno@clisp.org>
16115         unigbrk/uc-grapheme-breaks: Fix build failure.
16116         * lib/unigbrk/uc-grapheme-breaks.c: Don't include unistr.h.
16117         * modules/unigbrk/uc-grapheme-breaks (Makefile.am): Fix typo.
16119 2019-01-27  Bruno Haible  <bruno@clisp.org>
16121         mountlist: Merge two .m4 files.
16122         * m4/mountlist.m4 (gl_MOUNTLIST): Inline gl_LIST_MOUNTED_FILE_SYSTEMS.
16123         (AC_FUNC_GETMNTENT): Move to here, from m4/ls-mntd-fs.m4.
16124         * m4/ls-mntd-fs.m4: Remove file.
16125         * modules/mountlist (Files): Remove m4/ls-mntd-fs.m4.
16127 2019-01-27  Bruno Haible  <bruno@clisp.org>
16129         tests: Enable Linux specific tests on Android.
16130         * tests/test-flock.c (main): Treat Android like Linux.
16131         * tests/test-openat-safer.c (main): Likewise.
16133 2019-01-27  Bruno Haible  <bruno@clisp.org>
16135         relocatable-prog: Use Linux code on Android.
16136         * lib/progreloc.c: Treat Android like Linux.
16138 2019-01-26  Bruno Haible  <bruno@clisp.org>
16140         getloadavg: Add support for Android.
16141         * lib/getloadavg.c: Treat Android like Linux.
16143 2019-01-26  Bruno Haible  <bruno@clisp.org>
16145         vma-iter: Add support for Android.
16146         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Android as well.
16147         * lib/vma-iter.c: Treat Android like Linux.
16148         * lib/get-rusage-data.c (get_rusage_data): Likewise.
16150 2019-01-26  Bruno Haible  <bruno@clisp.org>
16152         fts: Optimize on Android.
16153         * lib/fts.c: Treat Android like Linux.
16155 2019-01-26  Bruno Haible  <bruno@clisp.org>
16157         fts: Add support for Android.
16158         * m4/fts.m4 (gl_FUNC_FTS_CORE): Avoid conflicts between the symbols
16159         defined by this module and the ones in libc.
16160         * tests/test-fts.c (main): Treat mkdir error EMLINK like EMFILE.
16162 2019-01-26  Bruno Haible  <bruno@clisp.org>
16164         mountlist: Use Linux code on Android.
16165         * lib/mountlist.c (setmntent, endmntent): Define fallbacks.
16166         (unescape_tab, read_file_system_list): Enable Linux code on Android
16167         as well.
16168         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Test for setmntent
16169         and endmntent.
16170         * modules/mountlist (Depends-on): Add 'getline'.
16172 2019-01-26  Bruno Haible  <bruno@clisp.org>
16174         localename tests: Fix test failure on Android.
16175         * modules/localename-tests (Depends-on): Add 'setlocale'.
16177 2019-01-26  Bruno Haible  <bruno@clisp.org>
16179         mountlist: Port better to Android.
16180         * lib/mountlist.c (MOUNTED): Redefine on Android.
16181         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Redefine MOUNTED on
16182         Android.
16184 2019-01-26  Bruno Haible  <bruno@clisp.org>
16186         striconveh: Fix use of uninitialized iconv_t.
16187         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
16188         <https://lists.gnu.org/archive/html/bug-libunistring/2019-01/msg00000.html>.
16189         * lib/striconveh.c (iconveh_open): Correct the iconv_close argument.
16191 2019-01-26  Bruno Haible  <bruno@clisp.org>
16193         nonblocking-socket-tests: Fix test failure on Android 4.3.
16194         * tests/test-nonblocking-socket.h (SOCKET_HAS_LARGE_BUFFER): Define to 1
16195         also on Android.
16197 2019-01-26  Bruno Haible  <bruno@clisp.org>
16199         sh-filename: Add support for Android 4.3.
16200         * m4/sh-filename.m4 (gl_SH_FILENAME): Set to "sh" on Android.
16202 2019-01-26  Bruno Haible  <bruno@clisp.org>
16204         ptsname_r: Work around bug on Android 4.3.
16205         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Define
16206         HAVE_ESSENTIALLY_WORKING_PTSNAME_R. Test whether the return value is
16207         correct.
16208         * lib/ptsname_r.c (__ptsname_r): If HAVE_ESSENTIALLY_WORKING_PTSNAME_R
16209         is defined, just fix the return value.
16210         * doc/glibc-functions/ptsname_r.texi: Mention the Android bug. Reword:
16211         The behaviour of musl libc is nothing to be "fixed", since it is
16212         compliant with the next POSIX standard.
16214 2019-01-26  Bruno Haible  <bruno@clisp.org>
16216         ttyname_r: Work around bug on Android 4.3.
16217         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is a stub.
16218         * lib/ttyname_r.c (ttyname_r): Implement for Android.
16219         * doc/posix-functions/ttyname_r.texi: Mention the Android bug.
16220         * doc/posix-functions/ttyname.texi: Likewise.
16222 2019-01-25  Bruno Haible  <bruno@clisp.org>
16224         getprogname: Port to Android 4.3.
16225         * lib/getprogname.c (getprogname): On Android, take only the last
16226         component of __progname.
16228 2019-01-25  Bruno Haible  <bruno@clisp.org>
16230         wcrtomb: Work around bug on Android 4.3.
16231         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test also whether wcrtomb works in
16232         the C locale.
16233         * lib/wcrtomb.c (wcrtomb): Provide alternate implementation for Android,
16234         which does not have the 'wctomb' function.
16235         * doc/posix-functions/wcrtomb.texi: Mention the Android bug.
16236         * tests/test-wcrtomb.c (main): Accept argument '5'.
16237         * tests/test-wcrtomb.sh: Add tests in the POSIX locale.
16239 2019-01-25  Bruno Haible  <bruno@clisp.org>
16241         setlocale: Work around bug on Android 4.3.
16242         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Test whether setlocale supports
16243         the "C" locale.
16244         * lib/setlocale.c (setlocale_unixlike): New wrapper for Android.
16245         * doc/posix-functions/setlocale.texi: Mention the Android bug.
16247 2019-01-24  Bruno Haible  <bruno@clisp.org>
16249         memchr: Work around bug on Android <= 5.0.
16250         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add test against the Android bug.
16251         * doc/posix-functions/memchr.texi: Mention the Android bug.
16253 2019-01-24  Bruno Haible  <bruno@clisp.org>
16255         random: Fix compilation error on Android 4.3.
16256         * lib/stdlib.in.h (random, srandom): Test also REPLACE_RANDOM.
16257         (initstate): Test REPLACE_INITSTATE and HAVE_INITSTATE, not HAVE_RANDOM.
16258         (setstate): Test REPLACE_SETSTATE and HAVE_SETSTATE, not HAVE_RANDOM.
16259         * m4/random.m4 (gl_FUNC_RANDOM): Set HAVE_INITSTATE, HAVE_SETSTATE,
16260         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
16261         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_INITSTATE,
16262         HAVE_SETSTATE, REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
16263         * modules/stdlib (Makefile.am): Substitute HAVE_INITSTATE, HAVE_SETSTATE,
16264         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
16265         * modules/random (Depends-on, configure.ac): Test also REPLACE_RANDOM,
16266         REPLACE_INITSTATE, REPLACE_SETSTATE.
16267         * doc/posix-functions/random.texi: Correct the description of the
16268         situation on Android.
16269         * doc/posix-functions/srandom.texi: Likewise.
16270         * doc/posix-functions/rand.texi: Likewise.
16271         * doc/posix-functions/srand.texi: Likewise.
16273 2019-01-24  Bruno Haible  <bruno@clisp.org>
16275         mbtowc: Fix compilation error on Android 4.3.
16276         * lib/stdlib.in.h (mbtowc): Test also HAVE_MBTOWC.
16277         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Test whether mbtowc exists. Set
16278         HAVE_MBTOWC.
16279         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether mbtowc is declared.
16280         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MBTOWC.
16281         * modules/stdlib (Makefile.am): Substitute HAVE_MBTOWC.
16282         * modules/mbtowc (Depends-on, configure.ac): Test also HAVE_MBTOWC.
16283         * doc/posix-functions/mbtowc.texi: Mention the change.
16285 2019-01-24  Bruno Haible  <bruno@clisp.org>
16287         fdatasync: Fix compilation error on Android 4.3.
16288         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): On platforms other than Solaris,
16289         test whether fdatasync() exists.
16291 2019-01-24  Bruno Haible  <bruno@clisp.org>
16293         unlinkat: Fix compilation error on Android 4.3.
16294         * lib/unistd.in.h: Include <fcntl.h> when module 'unlinkat' is in use
16295         also on Android.
16296         * doc/posix-functions/unlinkat.texi: Mention the issue.
16298 2019-01-24  Bruno Haible  <bruno@clisp.org>
16300         renameat: Fix compilation error on Android 4.3.
16301         * lib/stdio.in.h: Include <sys/stat.h> when module 'renameat' is in use.
16302         * doc/posix-functions/renameat.texi: Mention the issue.
16304 2019-01-24  Bruno Haible  <bruno@clisp.org>
16306         fchownat: Fix compilation error on Android 4.3.
16307         * lib/unistd.in.h: Include <sys/stat.h> when module 'fchownat' is in
16308         use.
16309         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
16310         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Include also <sys/stat.h>.
16311         * doc/posix-functions/fchownat.texi: Mention the issue.
16313 2019-01-23  Bruno Haible  <bruno@clisp.org>
16315         gnulib-tool: Support running testdirs on Android.
16316         * build-aux/test-driver.diff: New file.
16317         * gnulib-tool (func_create_testdir, func_create_megatestdir): Patch
16318         build-aux/test-driver after running automake.
16320 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
16322         relocatable-prog: avoid warnings from Automake
16323         * modules/relocatable-prog: Don't declare PHONY dependencies in
16324         Automake conditionals.
16326 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
16328         array-list: Pacify warnings about unused arguments (-Wunused-parameter).
16329         * lib/gl_array_list.c (gl_array_iterator_free): "Use" the argument.
16331 2019-01-23  Bruno Haible  <bruno@clisp.org>
16333         threadlib: Revert commit from 2018-06-25. We now have a better fix.
16334         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't attempt to defeat a
16335         preceding -Wl,--as-needed option. Don't check whether the linker
16336         supports --as-needed/--no-as-needed and --push-state/--pop-state.
16338 2019-01-23  Bruno Haible  <bruno@clisp.org>
16340         thread: Force linking with -lpthread, even when --as-needed is in use.
16341         Reported by Richard W.M. Jones <rjones@redhat.com> in
16342         <https://lists.gnu.org/archive/html/bug-gnulib/2019-01/msg00123.html>.
16343         * lib/glthread/thread.h (pthread_create): Don't declare weak.
16345 2019-01-23  Akim Demaille  <akim.demaille@gmail.com>
16346             Bruno Haible  <bruno@clisp.org>
16348         relocatable: avoid compiler warnings (-Wshadow)
16349         * lib/relocatable.c (compute_curr_prefix): Rename local variables
16350         to avoid name collisions with global variables.
16352 2019-01-22  Bruno Haible  <bruno@clisp.org>
16354         vasnprintf: Don't use %n on Android.
16355         Reported and fix suggested by Hugo Beauzée-Luyssen <hugo@beauzee.fr> in
16356         <https://lists.gnu.org/archive/html/bug-gnulib/2018-12/msg00123.html>.
16357         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on Android.
16359 2019-01-22  Bruno Haible  <bruno@clisp.org>
16361         *printf: Support cross-compilation to Android.
16362         * m4/printf.m4: Add cross-compilation guesses for Android.
16364 2019-01-21  Bruno Haible  <bruno@clisp.org>
16366         diacrit: Mark deprecated.
16367         * modules/diacrit (Status, Notice): Mark as deprecated.
16368         * NEWS: Mention it.
16370 2019-01-20  Bruno Haible  <bruno@clisp.org>
16372         rintl: Override broken implementation on NetBSD.
16373         * lib/math.in.h (rintl): Test also REPLACE_RINTL.
16374         * m4/rintl.m4 (gl_FUNC_RINTL): Add test for negative arguments. Set
16375         REPLACE_RINTL.
16376         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_RINTL.
16377         * modules/math (Makefile.in): Substitute REPLACE_RINTL.
16378         * modules/rintl (Depends-on, configure.ac): Test REPLACE_RINTL.
16379         * doc/posix-functions/rintl.texi: Mention the NetBSD bug.
16381 2019-01-20  Bruno Haible  <bruno@clisp.org>
16383         log10l: Work around inaccurate implementation on NetBSD.
16384         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Add test for a certain accuracy.
16385         * lib/log10l.c: Comment out too simplistic override.
16386         * doc/posix-functions/log10l.texi: Mention the NetBSD bug.
16388 2019-01-20  Bruno Haible  <bruno@clisp.org>
16390         logl: Work around inaccurate implementation on NetBSD.
16391         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Add test for a certain accuracy.
16392         * lib/logl.c: Comment out unused code.
16393         * doc/posix-functions/logl.texi: Mention the NetBSD bug.
16395 2019-01-20  Bruno Haible  <bruno@clisp.org>
16397         expm1l: Work around inaccurate implementation on NetBSD.
16398         * lib/math.in.h (expm1l): Test also REPLACE_EXPM1L.
16399         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Add test for a certain accuracy. Set
16400         REPLACE_EXPM1L.
16401         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1L.
16402         * modules/math (Makefile.in): Substitute REPLACE_EXPM1L.
16403         * modules/expm1l (Depends-on, configure.ac): Test REPLACE_EXPM1L.
16404         * doc/posix-functions/expm1l.texi: Mention the NetBSD bug.
16406 2019-01-20  Bruno Haible  <bruno@clisp.org>
16408         expl: Work around inaccurate implementation on NetBSD.
16409         * lib/math.in.h (expl): Test also REPLACE_EXPL.
16410         * m4/expl.m4 (gl_FUNC_EXPL): Add test for a certain accuracy. Set
16411         REPLACE_EXPL.
16412         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPL.
16413         * modules/math (Makefile.in): Substitute REPLACE_EXPL.
16414         * modules/expl (Depends-on, configure.ac): Test REPLACE_EXPL.
16415         * doc/posix-functions/expl.texi: Mention the NetBSD bug.
16417 2019-01-20  Bruno Haible  <bruno@clisp.org>
16419         exp2l: Work around inaccurate implementation on NetBSD.
16420         * m4/exp2l.m4 (gl_FUNC_EXP2L): Add test for a certain accuracy.
16421         * doc/posix-functions/exp2l.texi: Mention the NetBSD bug.
16423 2019-01-20  Bruno Haible  <bruno@clisp.org>
16425         floor, floorl: Avoid autoconf warnings.
16426         * modules/floor (configure.ac): Use AC_REQUIRE.
16427         * modules/floorl (configure.ac): Likewise.
16429 2019-01-20  Bruno Haible  <bruno@clisp.org>
16431         Defeat current GCC optimizations in math autoconf tests.
16432         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Mark function pointer as 'volatile'.
16433         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
16434         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
16435         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
16436         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
16437         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
16438         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
16439         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
16440         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
16441         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
16442         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
16443         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
16444         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
16445         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
16446         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
16447         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
16448         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Likewise.
16449         * m4/log.m4 (gl_FUNC_LOG): Likewise.
16450         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
16451         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
16452         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
16453         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
16454         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
16455         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
16456         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
16457         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
16458         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
16459         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
16460         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
16461         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
16462         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
16463         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
16464         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
16465         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
16466         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
16467         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
16468         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
16469         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
16471 2019-01-19  Pádraig Brady  <P@draigBrady.com>
16473         gettext: support disabling use of VLAs
16474         * lib/gettext.h: Disable use of VLAs if GNULIB_NO_VLA is defined
16476 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
16478         sys_stat: Fix 'implicit declaration of function' warning on OS/2 kLIBC.
16479         * lib/sys_stat.in.h [kLIBC]: Include <unistd.h>.
16481 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
16483         fcntl: Fix syntax error (regression from 2018-10-05).
16484         * lib/fcntl.c (klibc_fcntl): Remove mis-placed ';'.
16486 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
16488         relocatable: improve documentation.
16489         * doc/relocatable-maint.texi (Supporting Relocation): For
16490         substitutions performed by config.status, we need more variables
16491         (for instance datarootdir defaults to '${prefix}/share' so we need
16492         prefix).
16494 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
16496         backup: update dependencies
16497         * modules/backup-rename (Depends-on): It now depends on opendirat
16498         instead of opendir.  It also uses stdint, and xalloc-oversized.
16499         But no longer dirfd.
16500         * modules/backupfile (Depends-on): Add xalloc-oversized.
16502 2019-01-13  Bruno Haible  <bruno@clisp.org>
16504         getcwd: Fix test failure when building on a Linux 9p file system.
16505         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): On Linux, treat error
16506         EINVAL from mkdir like ENAMETOOLONG.
16507         * tests/test-getcwd.c (test_long_name): Likewise.
16509 2019-01-12  Tim Rühsen  <tim.ruehsen@gmx.de>
16511         Fix typos found by codespell.
16512         * lib/*.[hc]: Fix typos in comments.
16513         * pygnulib/*.py: Fix typos in error messages and comments.
16515 2019-01-12  Bruno Haible  <bruno@clisp.org>
16517         doc: Fix documentation about container data types.
16518         Reported by Werner Lemberg <wl@gnu.org>.
16519         * doc/containers.texi (Container data types): Fix typo.
16521 2019-01-10  Bruno Haible  <bruno@clisp.org>
16523         verify: Enable _GL_HAVE_STATIC_ASSERT for recent G++ versions.
16524         Reported by Reuben Thomas <rrt@sc3d.org>.
16525         * lib/verify.h (_GL_HAVE_STATIC_ASSERT): Define for g++ versions >= 6.
16527 2019-01-06  Bruno Haible  <bruno@clisp.org>
16529         maintainer-makefile: Make the configure.ac section optional.
16530         * top/maint.mk (GREP, SED): Define if not defined.
16532 2019-01-06  Bruno Haible  <bruno@clisp.org>
16534         localename: Assume setlocale function.
16535         * lib/localename.c (gl_locale_name_posix): Assume setlocale exists.
16536         * m4/localename.m4 (gl_LOCALENAME): Don't test whether setlocale exists.
16538 2019-01-06  Bruno Haible  <bruno@clisp.org>
16540         doc: Add documentation about container data types.
16541         * doc/containers.texi: New file.
16542         * doc/gnulib.texi (Particular Modules): Include it.
16544 2019-01-06  Bruno Haible  <bruno@clisp.org>
16546         doc: Update documentation about 'progname' module.
16547         * doc/progname.texi: Rename from doc/error.texi. Change node name and
16548         title. Rewrite.
16549         * doc/gnulib.texi (Particular Modules): Update.
16551 2019-01-06  Bruno Haible  <bruno@clisp.org>
16553         doc: Document the xstdopen and *-safer modules.
16554         * doc/xstdopen.texi: New file.
16555         * doc/gnulib.texi (Particular Modules): Include it.
16557 2019-01-06  Bruno Haible  <bruno@clisp.org>
16559         xstdopen: Add tests.
16560         * tests/test-xstdopen.c: New file.
16561         * tests/test-xstdopen.sh: New file.
16562         * modules/xstdopen-tests: New file.
16564         xstdopen: New module.
16565         * lib/xstdopen.h: New file.
16566         * lib/xstdopen.c: New file.
16567         * modules/xstdopen: New file.
16569 2019-01-06  Bruno Haible  <bruno@clisp.org>
16571         stdopen: Fix compilation error with IRIX cc.
16572         * lib/stdopen.c (stdopen): Do not use C99-style decl in loop.
16574 2019-01-05  Paul Eggert  <eggert@cs.ucla.edu>
16576         xfreopen need not include stdio--.h
16577         * lib/xfreopen.c: Do not include stdio--.h.
16579         xfreopen need not depend on freopen-safer
16580         * modules/xfreopen (Depends-on):
16581         Depend on freopen, not freopen-safer.
16583         stdopen: modernize and simplify
16584         * lib/stdopen.c: Update copyright date
16585         Do not include sys/types.h; no longer needed these days.
16586         (stdopen): Use C99-style decl in loop.  Return int errno
16587         value, rather than just a bool.  Do not worry about fd mismatches,
16588         since the caller cares only if 0, 1, 2 are occupied.
16589         * lib/stdopen.h: No need to include <stdbool.h>.
16590         * m4/stdopen.m4: Remove.
16591         * modules/stdopen: New file.
16593         stdopen: copy from last use in coreutils
16594         * lib/stdopen.c, lib/stdopen.h, m4/stdopen.m4:
16595         New files, taken from their last commit in coreutils
16596         2007-07-23T12:35:58Z!jim@meyering.net
16597         71aa3ea88084d17bcb4fc1031ad7b66f8647115e.
16599 2019-01-05  Bruno Haible  <bruno@clisp.org>
16601         argp: Don't pass an invalid argument to dgettext().
16602         Reported by He X <xw897002528@gmail.com>.
16603         * lib/argp-help.c (print_header, argp_doc): Don't pass a NULL doc to
16604         dgettext().
16606 2019-01-05  Bruno Haible  <bruno@clisp.org>
16608         argp: Don't pass an invalid argument to dgettext().
16609         Reported by He X <xw897002528@gmail.com>.
16610         * lib/argp.h (struct argp): Clarify that the args_doc field may be NULL.
16611         * lib/argp-help.c (argp_args_usage): Don't pass a NULL args_doc to
16612         dgettext().
16614 2018-12-22  Paul Eggert  <eggert@cs.ucla.edu>
16616         stdioext: port to newer 32-bit Android
16617         Problem reported by Tom Yan in:
16618         https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00014.html
16619         * lib/stdio-impl.h (_gl_FILE_flags_t) [__ANDROID__]: New macro.
16620         (fp_) [__ANDROID__]: Use it.
16622 2019-01-04  Bruno Haible  <bruno@clisp.org>
16624         lock: Fix link error with --enable-threads=pth.
16625         * lib/glthread/lock.h (pth_cond_init, pth_cond_await, pth_cond_notify):
16626         Mark as weak.
16628 2019-01-04  Bruno Haible  <bruno@clisp.org>
16630         Fix link errors in unit tests.
16631         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16632         * modules/bitset-tests (Makefile.am): Link test-bitset against libintl.
16633         * modules/array-map-tests (Makefile.am): Link test-array_map against
16634         libintl.
16635         * modules/array-set-tests (Makefile.am): Link test-array_set against
16636         libintl.
16637         * modules/hash-map-tests (Makefile.am): Link test-hash_map against
16638         libintl.
16639         * modules/hash-set-tests (Makefile.am): Link test-hash_set against
16640         libintl.
16641         * modules/linkedhash-map-tests (Makefile.am): Link test-linkedhash_map
16642         against libintl.
16643         * modules/linkedhash-set-tests (Makefile.am): Link test-linkedhash_set
16644         against libintl.
16646 2019-01-04  Bruno Haible  <bruno@clisp.org>
16648         Fix incorrect 'Link' sections.
16649         * modules/regex (Link): Mention the link requirement of module 'lock'.
16650         * modules/regex-tests (Makefile.am): Don't use LIB_PTHREAD.
16652 2019-01-04  Bruno Haible  <bruno@clisp.org>
16654         Fix some 'Link' sections.
16655         * modules/c-stack (Link): Add link directive from the 'gettext-h'
16656         dependency.
16657         * modules/getaddrinfo (Link): Likewise.
16659 2019-01-04  Bruno Haible  <bruno@clisp.org>
16661         Remove redundant 'Link' sections.
16662         * modules/canon-host (Link): Remove section.
16663         * modules/timevar (Link): Likewise.
16665 2019-01-04  Bruno Haible  <bruno@clisp.org>
16667         Remove incorrect 'Link' sections.
16668         * modules/acl (Link): Remove section. Use combined 'Link' sections from
16669         the dependencies instead.
16670         * modules/crypto/md5 (Link): Likewise.
16671         * modules/crypto/sha1 (Link): Likewise.
16672         * modules/crypto/sha256 (Link): Likewise.
16673         * modules/crypto/sha512 (Link): Likewise.
16674         * modules/faccessat (Link): Likewise.
16675         * modules/fdutimensat (Link): Likewise.
16676         * modules/iconv_open-utf (Link): Likewise.
16677         * modules/propername (Link): Likewise.
16678         * modules/qacl (Link): Likewise.
16679         * modules/unicodeio (Link): Likewise.
16680         * modules/utimecmp (Link): Likewise.
16681         * modules/utimensat (Link): Likewise.
16682         * modules/xstriconv (Link): Likewise.
16683         * modules/xstriconveh (Link): Likewise.
16685 2019-01-04  Bruno Haible  <bruno@clisp.org>
16687         gnulib-tool: New option --extract-recursive-link-directive.
16688         * gnulib-tool (func_usage): Document the new options
16689         --extract-recursive-dependencies, --extract-recursive-link-directive.
16690         (func_verify_module): Document output variables.
16691         (func_get_dependencies_recursively): New function.
16692         (func_get_link_directive_recursively): New function.
16693         Use them to implement the new options
16694         --extract-recursive-dependencies, --extract-recursive-link-directive.
16695         * doc/gnulib-tool.texi (Link-time requirements): New section.
16697 2019-01-04  Bruno Haible  <bruno@clisp.org>
16699         Clarify meaning of 'Link' section in module description.
16700         * doc/gnulib.texi (Module description): Clarify the meaning of the
16701         'Link' section versus the one of the dependencies.
16702         * NEWS: Mention the change.
16704 2019-01-04  Bruno Haible  <bruno@clisp.org>
16706         pselect: Fix module description.
16707         * modules/pselect (Link): Put one link option per line.
16709 2019-01-04  Bruno Haible  <bruno@clisp.org>
16711         cosl: Fix module description.
16712         * modules/cosl (Link): Fix typo.
16713         * modules/mathl (configure.ac): Likewise.
16715 2019-01-04  Bruno Haible  <bruno@clisp.org>
16717         c-xvasprintf: Fix module dependencies.
16718         * modules/c-xvasprintf (Depends-on): Add 'xalloc-die'.
16720 2019-01-04  Akim Demaille  <akim@lrde.epita.fr>
16722         bootstrap: die when some submodules are not initialized
16723         * build-aux/bootstrap: Make sure all submodules are initialized.
16725 2019-01-04  Bruno Haible  <bruno@clisp.org>
16727         bitsetv: Fix module dependencies.
16728         * lib/bitsetv.c: Include xalloc.h.
16729         * modules/bitsetv (Depends-on): Add 'xalloc'.
16731 2019-01-04  Bruno Haible  <bruno@clisp.org>
16733         xmemdup0: Remove redundant code.
16734         * lib/xmemdup0.h (xalloc_die): Remove declaration.
16736 2019-01-04  Bruno Haible  <bruno@clisp.org>
16738         backupfile: Fix module dependencies.
16739         * modules/backupfile (Depends-on): Add 'xalloc'.
16741 2019-01-03  Paul Eggert  <eggert@cs.ucla.edu>
16743         bitset, crypto/gc: fix conflicts with Solaris 11
16744         * lib/bitset.h (_GL_BITSET_H): Rename from _BITSET_H, to
16745         avoid clash with Solaris 11 <sys/bitset.h>.
16746         * lib/gc.h (_GL_GC_H): Rename from GC_H, to avoid clash
16747         with Solaris 11 <xorg/gc.h>.
16749 2019-01-04  Bruno Haible  <bruno@clisp.org>
16751         safe-read, safe-write: Fix conflict with Illumos-Joyent <sys/limits.h>.
16752         Reported by Andy Fiddaman <andy@omniosce.org>.
16753         * lib/sys-limits.h: Add a '_GL' prefix to the guard symbol.
16755 2019-01-03  Eric Blake  <eblake@redhat.com>
16757         maintainer-makefile: fix typo in previous patch
16758         * top/maint.mk (_sc_search_regexp): Fix my accidental corruption
16759         of Roman's work.
16761 2019-01-02  Roman Bolshakov <r.bolshakov@yadro.com>  (tiny change)
16763         maintainer-makefile: prefer $(GREP) over grep
16764         * modules/maintainer-makefile (configure.ac): Ensure $(GREP) is
16765         defined.
16766         * top/maint.mk: Use it everywhere.
16768         maintainer-makefile: split long argument lines
16769         * top/maint.mk: Use xargs to split $(VC_LIST_EXCEPT) usage where
16770         it would be too long for exec limits on BSD.
16772 2018-12-27  Paul Eggert  <eggert@cs.ucla.edu>
16774         mkfifo: bring back HAVE_MKFIFO macro
16775         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): #define HAVE_MKFIFO as needed.
16776         Problem reported by Andrew Janke in:
16777         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00147.html
16779 2018-12-21  Bruno Haible  <bruno@clisp.org>
16781         Assume Autoconf >= 2.63.
16782         * modules/stdarg (configure.ac-early): Remove comment about Autoconf
16783         versions < 2.60.
16785 2018-12-21  Bruno Haible  <bruno@clisp.org>
16787         memcmp: Mention the clang bug.
16788         * tests/test-memcmp.c: Add comment about a known test failure.
16789         * doc/posix-functions/memcmp.texi: Mention the clang bug.
16791 2018-12-20  Jim Meyering  <meyering@fb.com>
16793         revert v0.1-2213-gae4b73e28 and part of v0.1-2281-g95cd86dd7
16794         v0.1-2213-gae4b73e28 caused a regression in grep-3.2 (no match):
16795           echo '123-x'|LC_ALL=C grep -E '.\bx'
16796         The goal is to revert the first, but reverting it requires to restore
16797         the function deleted in the second. I ran this to restore the deleted
16798         function:
16799           git show v0.1-2281-g95cd86dd7 lib/dfa.c \
16800             | perl -0777 -pe 's/^@@[^\n]*dfaan.*//ms' \
16801             | patch -R -p1
16802         * lib/dfa.c (charclass_context): Restore deleted function.
16803         Reverting the primary commit removes this change:
16804         dfa: Simplify a building state
16805         * lib/dfa.c (build_state): Simplify a building state.
16807 2018-12-20  Paul Eggert  <eggert@cs.ucla.edu>
16809         version-etc: allow zero authors
16810         * lib/version-etc.c (version_etc_arn): If no authors are given,
16811         omit authorship info instead of dumping core.
16813 2018-12-19  Bruno Haible  <bruno@clisp.org>
16815         lchown tests: Be more permissive regarding errno values.
16816         Reported by Ivan Zakharyaschev <imz@altlinux.org>.
16817         * tests/test-lchown.h (test_lchown): Recognize EOPNOTSUPP as an
16818         alternative to ENOSYS.
16819         * modules/lchown-tests (Depends-on): Add 'errno'.
16820         * modules/fchownat-tests (Depends-on): Likewise.
16822 2018-12-18  Bruno Haible  <bruno@clisp.org>
16824         duplocale: Avoid test failure on AIX 7.
16825         * modules/duplocale-tests (Files): Add m4/intl-thread-locale.m4.
16826         (configure.ac): Invoke gt_FUNC_USELOCALE.
16827         * tests/test-duplocale.c: Test HAVE_WORKING_USELOCALE instead of
16828         HAVE_USELOCALE. Assume that nl_langinfo_l only works when uselocale
16829         works.
16831 2018-12-18  Bruno Haible  <bruno@clisp.org>
16833         localename: Fix test failure on AIX 7.
16834         Reported by Assaf Gordon in
16835         <https://lists.gnu.org/archive/html/sed-devel/2018-12/msg00019.html>.
16836         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): New macro.
16837         (gt_INTL_THREAD_LOCALE_NAME): Invoke it. Test gt_cv_func_uselocale_works
16838         instead of ac_cv_func_uselocale.
16839         * lib/localename.c: Test HAVE_WORKING_USELOCALE instead of
16840         HAVE_USELOCALE.
16841         * lib/localename-table.h: Likewise.
16842         * lib/localename-table.c: Likewise.
16843         * tests/test-localename.c: Likewise.
16844         * doc/posix-functions/uselocale.texi: Mention the AIX problem.
16846 2018-12-18  Bruno Haible  <bruno@clisp.org>
16848         localename: Update comments regarding Cygwin.
16849         * lib/localename.c: Update comment.
16850         * doc/posix-functions/uselocale.texi: Update platforms list.
16851         * doc/posix-functions/newlocale.texi: Likewise.
16852         * doc/posix-functions/duplocale.texi: Likewise.
16853         * doc/posix-functions/freelocale.texi: Likewise.
16855 2018-12-16  Bruno Haible  <bruno@clisp.org>
16857         c-stack: Fix for Linux/sparc.
16858         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Set
16859         ac_cv_sys_xsi_stack_overflow_heuristic to 'no' on Linux/sparc.
16861 2018-12-16  Bruno Haible  <bruno@clisp.org>
16863         localename: Avoid test failure on some glibc systems.
16864         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
16865         Unset environment variables that might disturb the first setlocale call,
16866         and verify that this setlocale call succeeds.
16868 2018-12-16  Assaf Gordon  <assafgordon@gmail.com>
16870         random: Fix build error on native Windows (regression from 2018-06-21).
16871         * lib/random.c (__srandom, __initstate, __setstate, __random,
16872         __srandom_r, __initstate_r, __setstate_r, __random_r) [!_LIBC]: Redirect
16873         to the symbols without '__' prefix.
16875 2018-12-16  Bruno Haible  <bruno@clisp.org>
16877         obstack, libc-config: Support HP-UX cc in C99 mode.
16878         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER): Treat HP-UX cc as a pre-C99
16879         compiler, even when in C99 mode.
16880         * lib/cdefs.h (__flexarr): Likewise.
16881         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Update comment.
16883 2018-12-16  Bruno Haible  <bruno@clisp.org>
16885         localename: Fix test failure on OpenBSD >= 6.2.
16886         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Test for fake
16887         locale system. Define HAVE_FAKE_LOCALES in this case.
16888         * lib/localename.c (HAVE_GOOD_USELOCALE): New macro. Use it instead of
16889         HAVE_USELOCALE.
16890         * tests/test-localename.c (HAVE_GOOD_USELOCALE): New macro. Use it
16891         instead of HAVE_NEWLOCALE && HAVE_USELOCALE.
16892         * doc/posix-functions/uselocale.texi: Mention OpenBSD problem. Update
16893         platforms list.
16894         * doc/posix-functions/newlocale.texi: Likewise.
16895         * doc/posix-functions/duplocale.texi: Update platforms list.
16896         * doc/posix-functions/freelocale.texi: Likewise.
16898 2018-12-16  Bruno Haible  <bruno@clisp.org>
16900         duplocale tests: Re-enable the test on platforms without <monetary.h>.
16901         * tests/test-duplocale.c: Use more fine-grained #ifs to re-enable most
16902         of the test, on platforms without <monetary.h>.
16904 2018-12-16  Bruno Haible  <bruno@clisp.org>
16906         localename: Update comments.
16907         * lib/localename.c (HAVE_USELOCALE): Update list of platforms.
16909 2018-12-15  Jim Meyering  <meyering@fb.com>
16911         regex: fix indentation
16912         * m4/regex.m4 (gl_REGEX): Indent with spaces, not TABs.
16914 2018-12-15  Bruno Haible  <bruno@clisp.org>
16916         openat-safer tests: Avoid test failure on NetBSD 8.
16917         * tests/test-openat-safer.c (main): Execute a Linux specific test only
16918         on Linux.
16920 2018-12-15  Jim Meyering  <meyering@fb.com>
16922         regex: work around a bug in glibc-2.27 and prior
16923         * m4/regex.m4 (gl_REGEX): Reject any system regexp that gets a failed
16924         assertion for /0|()0|\1|0/.
16925         * tests/test-regex.c (main): Add the same test here.
16927 2018-12-15  Bruno Haible  <bruno@clisp.org>
16929         localename: Fix use of uninitialized shell variable.
16930         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Initialize
16931         gt_cv_locale_solaris114 always before use. Remove assignment without
16932         effect.
16934 2018-12-15  Bruno Haible  <bruno@clisp.org>
16936         dfa tests: Avoid test failure on Alpine Linux.
16937         * tests/dfa-match.sh (timeout_10): Accommodate the BusyBox 'timeout'
16938         command found on Alpine Linux.
16940 2018-12-15  Jim Meyering  <meyering@fb.com>
16942         dfa: avoid new warnings from gcc
16943         These would prevent building with -Werror and a Dec snapshot of gcc.
16944         * lib/dfa.c (dfaanalyze): Avoid shadowing warnings for "pos".
16945         Rename each inner instance to "p".
16946         (charclass_context): Remove unused static function.
16948 2018-12-14  Paul Eggert  <eggert@cs.ucla.edu>
16950         mkdir-p: improve diagnostic for FUSE mounts
16951         Problem reported by Niklas Hambüchen in:
16952         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00074.html
16953         * lib/mkdir-p.c (make_dir_parents): In diagnostic, prefer stat
16954         errno to mkdir errno if the stat errno is likely more interesting.
16956 2018-12-14  Bruno Haible  <bruno@clisp.org>
16958         hash-map: Add tests.
16959         * tests/test-hash_map.c: New file.
16960         * modules/hash-map-tests: New file.
16962         linkedhash-map: Add tests.
16963         * tests/test-linkedhash_map.c: New file.
16964         * modules/linkedhash-map-tests: New file.
16966         array-map: Add tests.
16967         * tests/test-array_map.c: New file.
16968         * modules/array-map-tests: New file.
16970         xmap: New module.
16971         * lib/gl_xmap.h: New file.
16972         * lib/gl_xmap.c: New file.
16973         * modules/xmap: New file.
16975         hash-map: New module.
16976         * lib/gl_hash_map.h: New file.
16977         * lib/gl_hash_map.c: New file.
16978         * modules/hash-map: New file.
16980         linkedhash-map: New module.
16981         * lib/gl_linkedhash_map.h: New file.
16982         * lib/gl_linkedhash_map.c: New file.
16983         * lib/gl_anyhash1.h: Update comments.
16984         * lib/gl_anyhash2.h: Likewise.
16985         * modules/linkedhash-map: New file.
16987         array-map: New module.
16988         * lib/gl_array_map.h: New file.
16989         * lib/gl_array_map.c: New file.
16990         * modules/array-map: New file.
16992         map: New module.
16993         * lib/gl_map.h: New file.
16994         * lib/gl_map.c: New file.
16995         * lib/gl_omap.h (gl_mapkey_dispose_fn, gl_mapvalue_dispose_fn): Avoid
16996         conflict with gl_map.h.
16997         * modules/map: New file.
16999 2018-12-13  Bruno Haible  <bruno@clisp.org>
17001         select tests: Avoid test failure on Cygwin.
17002         * tests/test-select.h (test_bad_fd): Use an fd < FD_SETSIZE.
17004 2018-12-13  Bruno Haible  <bruno@clisp.org>
17006         localtime-buffer: Avoid endless recursion in localtime and gmtime.
17007         * lib/localtime-buffer.c: Undefine localtime and gmtime before use.
17009 2018-12-13  Bruno Haible  <bruno@clisp.org>
17011         localeconv tests: Avoid test failure on Cygwin.
17012         * tests/test-localeconv.c (main): On Cygwin, skip the 'grouping' and
17013         'mon_grouping' tests.
17015 2018-12-11  Bruno Haible  <bruno@clisp.org>
17017         omap: Don't dispose the old value when the function returns it.
17018         * lib/gl_array_omap.c (gl_array_remove_at): Don't invoke the vdispose_fn
17019         here.
17020         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
17021         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
17022         * lib/gl_omap.h (gl_omap_nx_put, gl_omap_remove): Invoke the vdispose_fn
17023         here.
17025         array-omap, avltree-omap, rbtree-omap: Tweak style.
17026         * lib/gl_anytree_omap.h (gl_tree_nx_getput): Return 1 or 0, not true or
17027         false.
17028         * lib/gl_array_omap.c (gl_array_nx_getput): Likewise.
17030         rbtree-omap: Add tests.
17031         * tests/test-rbtree_omap.c: New file.
17032         * modules/rbtree-omap-tests: New file.
17034         avltree-omap: Add tests.
17035         * tests/test-avltree_omap.c: New file.
17036         * modules/avltree-omap-tests: New file.
17038         array-omap: Add tests.
17039         * tests/test-array_omap.c: New file.
17040         * modules/array-omap-tests: New file.
17042         xomap: New module.
17043         * lib/gl_xomap.h: New file.
17044         * lib/gl_xomap.c: New file.
17045         * modules/xomap: New file.
17047         rbtree-omap: New module.
17048         * lib/gl_rbtree_omap.h: New file.
17049         * lib/gl_rbtree_omap.c: New file.
17050         * lib/gl_rbtree_ordered.h: Code moved to here from lib/gl_rbtree_oset.c.
17051         Parameterize.
17052         * lib/gl_rbtree_oset.c: Include gl_rbtree_ordered.h.
17053         * modules/rbtree-omap: New file.
17054         * modules/rbtree-oset (Files): Add lib/gl_rbtree_ordered.h.
17055         (Makefile.am): Add gl_rbtree_ordered.h to lib_SOURCES.
17057         avltree-omap: New module.
17058         * lib/gl_avltree_omap.h: New file.
17059         * lib/gl_avltree_omap.c: New file.
17060         * lib/gl_avltree_ordered.h: Code moved to here from
17061         lib/gl_avltree_oset.c. Parameterize.
17062         * lib/gl_avltree_oset.c: Include gl_avltree_ordered.h.
17063         * lib/gl_anytree_omap.h: New file.
17064         * modules/avltree-omap: New file.
17065         * modules/avltree-oset (Files): Add lib/gl_avltree_ordered.h.
17066         (Makefile.am): Add gl_avltree_ordered.h to lib_SOURCES.
17068         array-omap: New module.
17069         * lib/gl_array_omap.h: New file.
17070         * lib/gl_array_omap.c: New file.
17071         * modules/array-omap: New file.
17073         omap: New module.
17074         * lib/gl_omap.h: New file.
17075         * lib/gl_omap.c: New file.
17076         * modules/omap: New file.
17078 2018-12-11  Bruno Haible  <bruno@clisp.org>
17080         hash-set, linkedhash-set: Reduce code duplication.
17081         * lib/gl_anyhash1.h: Rename from lib/gl_anyhash_list1.h and
17082         lib/gl_anyhash_set1.h.
17083         * lib/gl_anyhash2.h: Rename from lib/gl_anyhash_list2.h and
17084         lib/gl_anyhash_set2.h. Parameterize.
17085         (hash_resize_after_add): New function, from lib/gl_anyhash_set2.h.
17086         * lib/gl_anytreehash_list1.h (hash_resize_after_add): Remove function.
17087         * lib/gl_avltreehash_list.c: Include gl_anyhash1.h instead of
17088         gl_anyhash_list1.h. Include gl_anyhash2.h instead of gl_anyhash_list2.h.
17089         * lib/gl_rbtreehash_list.c: Likewise.
17090         * lib/gl_linkedhash_list.c: Likewise.
17091         (hash_resize_after_add): Remove function.
17092         * lib/gl_linkedhash_set.c: Include gl_anyhash1.h instead of
17093         gl_anyhash_set1.h. Include gl_anyhash2.h instead of gl_anyhash_set2.h.
17094         * gl_hash_set.c: Likewise.
17095         * modules/avltreehash-list (Files, Makefile.am): Update file list.
17096         * modules/rbtreehash-list (Files, Makefile.am): Likewise.
17097         * modules/linkedhash-list (Files, Makefile.am): Likewise.
17098         * modules/linkedhash-set (Files, Makefile.am): Likewise.
17099         * modules/hash-set (Files, Makefile.am): Likewise.
17101 2018-12-11  Bruno Haible  <bruno@clisp.org>
17103         array-set: Optimize.
17104         * lib/gl_array_set.c (gl_array_search, gl_array_remove): Test equals_fn
17105         outside the loop, not inside the loop.
17107 2018-12-11  Bruno Haible  <bruno@clisp.org>
17109         times: Fix tests.
17110         * tests/test-times.c (doublecmp): Implement a total order.
17112 2018-12-11  Bruno Haible  <bruno@clisp.org>
17114         array-set, linkedhash-set, hash-set: Fix tests.
17115         * tests/test-array_set.c (cmp_objects_in_array): New function.
17116         (check_equals): Use it.
17117         * tests/test-hash_set.c: Likewise.
17118         * tests/test-linkedhash_set.c: Likewise.
17120 2018-12-08  Bruno Haible  <bruno@clisp.org>
17122         Fix comments.
17123         * lib/gl_list.h (gl_list_free): Clarify what it does.
17124         * lib/gl_oset.h (gl_oset_free): Likewise.
17125         * lib/gl_set.h (gl_set_free): Likewise.
17126         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Fix typo in comment.
17127         * lib/gl_array_oset.c (gl_array_search_atleast): Likewise.
17128         * lib/gl_anyavltree_list1.h (MAXHEIGHT): Likewise.
17129         * lib/gl_avltree_oset.c (MAXHEIGHT): Likewise.
17131 2018-12-03  Bruno Haible  <bruno@clisp.org>
17133         hash-set: Add tests.
17134         * tests/test-hash_set.c: New file.
17135         * modules/hash-set-tests: New file.
17137         linkedhash-set: Add tests.
17138         * tests/test-linkedhash_set.c: New file.
17139         * modules/linkedhash-set-tests: New file.
17141         array-set: Add tests.
17142         * tests/test-array_set.c: New file.
17143         * modules/array-set-tests: New file.
17145         xset: New module.
17146         * lib/gl_xset.h: New file.
17147         * lib/gl_xset.c: New file.
17148         * modules/xset: New file.
17150         hash-set: New module.
17151         * lib/gl_hash_set.h: New file.
17152         * lib/gl_hash_set.c: New file.
17153         * modules/hash-set: New file.
17155         linkedhash-set: New module.
17156         * lib/gl_linkedhash_set.h: New file.
17157         * lib/gl_linkedhash_set.c: New file.
17158         * lib/gl_anyhash_set1.h: New file, based on lib/gl_anyhash_list1.h.
17159         * lib/gl_anyhash_set2.h: New file, based on lib/gl_anyhash_list2.h.
17160         * lib/gl_anyhash_primes.h: New file, extracted from
17161         lib/gl_anyhash_list2.h.
17162         * lib/gl_anyhash_list2.h: Include it.
17163         (primes, next_prime): Remove definitions.
17164         * modules/linkedhash-set: New file.
17165         * modules/avltreehash-list (Files): Add lib/gl_anyhash_primes.h.
17166         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
17167         * modules/linkedhash-list (Files): Add lib/gl_anyhash_primes.h.
17168         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
17169         * modules/rbtreehash-list (Files): Add lib/gl_anyhash_primes.h.
17170         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
17172         array-set: New module.
17173         * lib/gl_array_set.h: New file.
17174         * lib/gl_array_set.c: New file.
17175         * modules/array-set: New file.
17177         set: New module.
17178         * lib/gl_set.h: New file.
17179         * lib/gl_set.c: New file.
17180         * lib/gl_oset.h (gl_setelement_dispose_fn): Avoid conflict with
17181         gl_set.h.
17182         * modules/set: New file.
17184 2018-12-07  Akim Demaille  <akim@lrde.epita.fr>
17186         bison: don't force the Yacc mode
17187         Passing -y forces Bison into POSIX YACC mode.  This includes reporting
17188         errors when Bison features are used in the grammar file.  Some of
17189         these features (such as %expect) were flagged non-yacc recently.  Most
17190         of the time, -y is actually used to please Automake's ylwrap which
17191         expects the output to be y.tab.c.
17192         * m4/bison.m4 (gl_BISON): Use `-o y.tab.c` rather than `-y`.
17194 2018-12-01  Bruno Haible  <bruno@clisp.org>
17196         gnupload: Document short options.
17197         * build-aux/gnupload (usage): Document the short options.
17199 2018-11-28  Ben Elliston  <bje@gnu.org>
17201         gnupload: Support option -h as alias of --help.
17202         * build-aux/gnupload: Support -h.
17204 2018-11-30  Paul Eggert  <eggert@cs.ucla.edu>
17206         memrchr: port better to clang
17207         * lib/memrchr.c (__memrchr): Cast to void * instead of to
17208         longword *, to pacify clang -Wcast-align (Bug#33544).
17210 2018-11-29  Eric Blake  <eblake@redhat.com>
17212         docs: mention printf %m considerations
17213         * doc/glibc-functions/asprintf.texi (asprintf): Document that %m
17214         is not portable, and is easy enough to work around.
17215         * doc/glibc-functions/obstack_printf.texi (obstack_printf): Likewise.
17216         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf): Likewise.
17217         * doc/glibc-functions/vasprintf.texi (vasprintf): Likewise.
17218         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
17219         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
17220         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
17221         * doc/posix-functions/printf.texi (printf): Likewise.
17222         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
17223         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
17224         * doc/posix-functions/swprintf.texi (swprintf): Likewise.
17225         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
17226         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
17227         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
17228         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
17229         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
17230         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
17231         * doc/posix-functions/vswprintf.texi (vswprintf): Likewise.
17232         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
17233         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
17235 2018-11-29  Akim Demaille  <akim@lrde.epita.fr>
17237         bitset: rename ebitset/expandable.* as tbitset/table.*
17238         See
17239         https://lists.gnu.org/archive/html/bug-gnulib/2018-11/msg00096.html.
17240         * lib/bitset/expandable.h, lib/bitset/expandable.c: Rename as...
17241         * lib/bitset/table.h, lib/bitset/table.c: these.
17242         Rename all the ebitset* symbols as tbitset*.
17243         Adjust dependencies.
17245 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
17247         bitset: check the operations
17248         * tests/test-bitset.c (bitset_random): New.
17249         Use it.
17250         * lib/bitset/expandable.c (ebitset_not): Fix typo.
17252 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
17254         bitset: properly use false/true instead of 0/1 for Booleans
17255         * lib/bitset/expandable.c, lib/bitset/vector.c: Use false/true, not
17256         0/1, as Booleans.
17258 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
17260         bitset: rename BITSET_VARRAY as BITSET_VECTOR
17261         For consistency with the name of the file.
17262         * doc/bitset.texi, lib/bitset.c, lib/bitset/base.h,
17263         * lib/bitset/stats.c, lib/bitset/vector.c
17264         (BITSET_VARRAY): Rename as...
17265         (BITSET_VECTOR): this.
17267 2018-11-28  Paul Eggert  <eggert@cs.ucla.edu>
17269         strerror_r-posix: memmove, not memcpy
17270         * lib/strerror_r.c (safe_copy): Use memmove, not memcpy,
17271         since the source and destination might overlap in the call
17272         ‘safe_copy (buf, buflen, strerror_r (errnum, buf, buflen))’.
17273         Simplify.
17275 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
17277         bitsetv: new module
17278         * lib/bitsetv.c, lib/bitsetv.h, modules/bitsetv: New.
17280 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
17282         bitset: add tests and doc
17283         First stabs at providing a documentation and test for the bitset
17284         module.
17285         * doc/bitset.texi, modules/test-bitset, tests/bitset-tests.c: New.
17287 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
17289         bitset: new module
17290         * lib/bitset.c, lib/bitset.h, lib/bitset/array.c,
17291         * lib/bitset/array.h, lib/bitset/base.h, lib/bitset/expandable.c,
17292         * lib/bitset/expandable.h, lib/bitset/list.c, lib/bitset/list.h,
17293         * lib/bitset/stats.c, lib/bitset/stats.h, lib/bitset/vector.c,
17294         * lib/bitset/vector.h, modules/bitset:
17295         New.
17297 2018-11-23  Bruno Haible  <bruno@clisp.org>
17299         localename: Fix gettext test failures on mingw.
17300         * lib/localename.c (gl_locale_name_posix): Convert the result of
17301         gl_locale_name_environ to XPG syntax.
17303 2018-11-23  Karl Berry  <karl@freefriends.org>
17305         * config/srclistvars.txt,
17306         * config/srclist.txt: remove all gettext references;
17307         the gettext maintainers will sync as needed.
17309 2018-11-21  Paul Eggert  <eggert@cs.ucla.edu>
17311         mktime: add libc-config dependency
17312         I missed this when we synced from glibc.
17313         * modules/mktime (Depends-on): Add libc-config.
17315 2018-11-13  Paul Eggert  <eggert@cs.ucla.edu>
17317         longlong: fix comment typo
17318         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Fix typo.
17320 2018-11-11  Bruno Haible  <bruno@clisp.org>
17322         havelib: Remove the need to include asm-underscore.m4.
17323         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): New macro.
17324         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use it instead of
17325         gl_HOST_CPU_C_ABI.
17326         * modules/havelib (Files): Add host-cpu-c-abi.m4.
17327         (Depends-on): Remove host-cpu-c-abi.
17329 2018-11-03  Paul Eggert  <eggert@cs.ucla.edu>
17331         parse-datetime: simplify test for mktime failure
17332         * lib/parse-datetime.y (mktime_ok): Simplify.
17333         Remove args TZ and T; no longer needed.  Callers changed.
17335         posixtm: simplify test for mktime failure
17336         * lib/posixtm.c (posixtime): Simplify.
17338         nstrftime: simplify test for mktime failure
17339         * lib/nstrftime.c (__strftime_internal): Simplify.
17341 2018-11-02  Paul Eggert  <eggert@cs.ucla.edu>
17343         gnulib-common.m4: port _Noreturn to C++
17344         Problem reported by Akim Demaille in:
17345         https://lists.gnu.org/r/bug-bison/2018-10/msg00067.html
17346         * m4/gnulib-common.m4 (gl_COMMON_BODY): If C++, use [[noreturn]].
17347         Merge adjustments from _Noreturn.h and from glibc into the non-C++
17348         version.
17349         * lib/_Noreturn.h: Match gnulib-common.
17351 2018-10-30  Bruno Haible  <bruno@clisp.org>
17353         gnu-make: Fix for NetBSD 8 'make'.
17354         Reported by Reuben Thomas in
17355         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00135.html>.
17356         * m4/gnu-make.m4 (gl_GNU_MAKE): Use a heuristic based on the --version
17357         output, ignoring exit codes.
17359 2018-10-28  Bernhard Voelker  <mail@bernhard-voelker.de>
17361         maintainer-makefile: fix syntax-check rule for "same.h"
17362         * top/maint.mk (sc_prohibit_same_without_use): Adjust regex to check
17363         for 'same_nameat', too.
17365 2018-10-25  Paul Eggert  <eggert@cs.ucla.edu>
17367         havelib: fix nested ‘configure’ chatter
17368         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Don’t nest
17369         AC_CACHE_CHECK calls, which resulted in confusing output like
17370         “checking for the common suffixes of directories in the library
17371         search path... checking for 64-bit host... no lib,lib”.
17373         backupfile: tweak for better code
17374         * lib/backupfile.c: Sort include directives, and remove
17375         unnecessary <limits.h> include.
17376         (FALLTHROUGH): New macro, copied from other modules.
17377         (backupfile_internal): Use it to avoid code duplication.
17378         This lets GCC 8.2.1 generate better code by inlining the
17379         call to check_extension.
17381 2018-10-23  Paul Eggert  <eggert@cs.ucla.edu>
17383         backupfile: new dir_fd args
17384         New module opendirat with code taken from fts.
17385         Use this module to let backupfile use a directory file descriptor.
17386         * NEWS: Document the incompatible change.
17387         * lib/backup-find.c (find_backup_file_name):
17388         * lib/backup-rename.c (backup_file_rename):
17389         New arg DIR_FD.
17390         * lib/backupfile.c: Include stdint.h, for SIZE_MAX.
17391         (SIZE_MAX): Remove.
17392         Include opendirat.h rather than dirent--.h.
17393         (check_extension): New args DIR_FD and BASE_MAX.  All callers changed.
17394         (numbered_backup): New args DIR_FD and PNEW_FD.  All callers changed.
17395         (backupfile_internal): New arg DIR_FD.  All callers changed.
17396         * lib/fts.c: Include opendirat.h.
17397         (opendirat): Move to opendirat.c.
17398         * lib/opendirat.c, lib/opendirat.h, modules/opendirat: New files.
17399         * modules/backupfile (Depends-on): Remove dirfd, opendir.
17400         Add opendirat.
17401         * modules/fts (Depends-on): Remove fdopendir, openat-safer.
17402         Add opendirat.
17404 2018-10-23  Bruno Haible  <bruno@clisp.org>
17406         localename: Simplify support for per-thread locales on Solaris 11.4.
17407         * m4/intl-thread-locale.m4: Renamed from m4/intlsolaris.m4.
17408         (gt_INTL_THREAD_LOCALE_NAME): Renamed from gt_INTL_SOLARIS. Define
17409         HAVE_SOLARIS114_LOCALES instead of HAVE_NAMELESS_LOCALES.
17410         * lib/localename.c: Handle HAVE_SOLARIS114_LOCALES through Solaris
17411         specific code.
17412         * lib/localename-table.h: Update comments.
17413         * lib/localename-table.c: Update comments.
17414         * m4/localename.m4 (gl_LOCALENAME): Require gt_INTL_THREAD_LOCALE_NAME.
17415         Test for 'uselocale'. Don't invoke gt_INTL_SOLARIS.
17416         * m4/intl.m4 (AM_INTL_SUBDIR): Require gt_INTL_THREAD_LOCALE_NAME. Test
17417         for 'uselocale'. Set HAVE_NAMELESS_LOCALES.
17418         (gt_INTL_SUBDIR_CORE): Don't invoke gt_INTL_SOLARIS. Don't set
17419         HAVE_NAMELESS_LOCALES here.
17420         * modules/localename (Files): Add m4/intl-thread-locale.m4. Remove
17421         m4/intlsolaris.m4.
17422         * modules/gettext (Files): Likewise.
17424 2018-10-22  Bruno Haible  <bruno@clisp.org>
17426         std-gnu11: Support Autoconf versions < 2.64.
17427         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO as fallback
17428         when _AC_DO_LIMIT does not exist.
17430 2018-10-22  Bruno Haible  <bruno@clisp.org>
17432         Assume Autoconf >= 2.63.
17433         * DEPENDENCIES: Mention the requirement.
17435         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Bump to 2.63.
17436         (func_get_filelist): Don't list m4/onceonly.m4 any more.
17437         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
17438         * m4/onceonly.m4: Remove file.
17440         * m4/openmp.m4: Remove file.
17441         * modules/openmp (Files): Remove m4/openmp.m4.
17443         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Don't set datarootdir, docdir,
17444         htmldir, dvidir, pdfdir, psdir, localedir.
17445         * m4/po.m4 (AM_PO_SUBDIRS): Don't set localedir.
17447         * m4/gnulib-common.m4 (m4_foreach_w): Remove fallback for
17448         Autoconf < 2.60.
17449         (AC_PROG_MKDIR_P): Remove definition for Autoconf < 2.62.
17450         (AC_PROG_SED): Remove fallback for Autoconf < 2.60.
17452         * m4/errno_h.m4 (AC_COMPUTE_INT): Remove fallback for Autoconf < 2.61.
17453         * m4/size_max.m4 (AC_COMPUTE_INT): Likewise.
17454         * m4/stdint.m4 (AC_COMPUTE_INT): Likewise.
17456         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Assume AC_USE_SYSTEM_EXTENSIONS
17457         exists.
17458         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Likewise,
17460         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Remove workaround for
17461         Autoconf < 2.61.
17463         * m4/lib-prefix.m4 (AC_LIB_ARG_WITH): Remove macro.
17464         (AC_LIB_PREFIX): Use AC_ARG_WITH, assuming semantics of
17465         Autoconf >= 2.52.
17467         * m4/longlong.m4: Require Autoconf >= 2.62. Update comments.
17468         * m4/ls-mntd-fs.m4: Require Autoconf >= 2.60. Update comments.
17469         * m4/gettext.m4 (AM_GNU_GETTEXT): Update comment.
17471 2018-10-22  Bruno Haible  <bruno@clisp.org>
17473         Assume Automake >= 1.11.
17474         * m4/configmake.m4: Update comments.
17475         * m4/lib-link.m4 (AC_LIB_RPATH): Assume AC_REQUIRE_AUX_FILE exists.
17476         * m4/po.m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Eliminate uses
17477         of 'eval'.
17478         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am,
17479         func_create_testdir, func_create_megatestdir): Emit a Makefile.am that
17480         requires Automake >= 1.11.
17482 2018-10-22  Bruno Haible  <bruno@clisp.org>
17484         localename: Fix typo in comment.
17485         * tests/test-locale-c++.cc (newlocale): Fix typo in comment.
17487 2018-10-22  Bruno Haible  <bruno@clisp.org>
17489         Fix failure of 'gnulib-tool --create-testdir' with all modules.
17490         * gnulib-tool (func_create_testdir): Exclude 'timevar' module.
17492 2018-10-21  Bruno Haible  <bruno@clisp.org>
17494         locale: Ease integration with GNU libintl.
17495         * lib/locale.in.h (GNULIB_defined_newlocale, GNULIB_defined_duplocale,
17496         GNULIB_defined_freelocale): New macros.
17498 2018-10-21  Bruno Haible  <bruno@clisp.org>
17500         localename: Fine-tune support for per-thread locales on Solaris 11.4.
17501         * lib/localename-table.h: New file, extracted from lib/localename.c.
17502         * lib/localename-table.c: Likewise.
17503         * lib/localename.c: Include localename-table.h.
17504         (get_locale_t_name, newlocale, duplocale, freelocale): Invoke
17505         locale_hash_function instead of pointer_hash.
17506         * modules/localename (Files): Add lib/localename-table.h,
17507         lib/localename-table.c.
17508         (lib_SOURCES): Add localename-table.c.
17509         * m4/intlsolaris.m4 (gt_INTL_SOLARIS): Require AC_CANONICAL_HOST. Test
17510         for Solaris 11.4 locale system only on Solaris. Test for it
17511         independently whether getlocalename_l exists.
17512         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Don't test for 'uselocale' and
17513         'getlocalename_l'. Instead, invoke gt_INTL_SOLARIS. Set
17514         HAVE_NAMELESS_LOCALES.
17515         * modules/gettext (Files): Add m4/intlsolaris.m4.
17517 2018-10-21  Bruno Haible  <bruno@clisp.org>
17519         Small update from gettext.
17520         * m4/intl.m4: Update from gettext:
17521         - 2018-01-02: Fix 'ar' invocation when cross-compiling and in 64-bit
17522         mode on AIX.
17523         - 2018-01-02: Don't use -lc explicitly when linking with libtool.
17524         - 2017-05-19: (AM_INTL_SUBDIR): Require AC_C_FLEXIBLE_ARRAY_MEMBER.
17526 2018-10-16  Bruno Haible  <bruno@clisp.org>
17528         mountlist: Remove support for Cray with UNICOS 9.
17529         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
17530         MOUNTED_LISTMNTENT.
17531         * lib/mountlist.c: Remove MOUNTED_LISTMNTENT case.
17533 2018-10-16  Bruno Haible  <bruno@clisp.org>
17535         fsusage, mountlist, getloadavg, getgroups: Remove support for Ultrix.
17536         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't define
17537         STAT_STATFS2_FS_DATA.
17538         * lib/fsusage.c: Remove STAT_STATFS2_FS_DATA case.
17539         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
17540         MOUNTED_GETMNT.
17541         * lib/mountlist.c: Remove MOUNTED_GETMNT case.
17542         * lib/getloadavg.c (decstation): Remove definition and case.
17543         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Mention NeXTstep, not Ultrix.
17544         * lib/getgroups.c: Likewise.
17545         * doc/posix-functions/getgroups.texi: Likewise.
17546         * lib/time.in.h: Update comments.
17548 2018-10-16  Bruno Haible  <bruno@clisp.org>
17550         getloadavg: Remove support for ConvexOS.
17551         * lib/getloadavg.c: Remove convex case.
17553 2018-10-16  Bruno Haible  <bruno@clisp.org>
17555         getloadavg: Remove support for Sony NEWS.
17556         * lib/getloadavg.c: Remove sony_news case.
17558 2018-10-16  Bruno Haible  <bruno@clisp.org>
17560         fsusage, mountlist, getloadavg: Remove support for Dynix/ptx.
17561         * lib/fsusage.c: Remove _SEQUENT_ case.
17562         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
17563         * lib/mountlist.c: Don't test for MNTTABNAME.
17564         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Don't test for libseq.
17565         (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't test for MNTTABNAME.
17566         * lib/getloadavg.c: Remove _SEQUENT_ and sequent cases.
17567         * lib/stat-size.h: Don't mention the Sequent bug.
17568         * doc/posix-functions/utime.texi: Don't mention the Dynix bug.
17570 2018-10-16  Bruno Haible  <bruno@clisp.org>
17572         fsusage: Remove support for AIX 3.
17573         * lib/fsusage.c: Remove code for AIX 3.
17574         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Update comments.
17576 2018-10-16  Bruno Haible  <bruno@clisp.org>
17578         fsusage, stat-size, getloadavg: Remove support for AIX PS/2.
17579         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for dustat.h.
17580         * lib/fsusage.c: Remove code for AIX PS/2.
17581         * lib/stat-size.h (ST_NBLOCKSIZE): Likewise.
17582         * lib/getloadavg.c: Likewise.
17584 2018-10-16  Bruno Haible  <bruno@clisp.org>
17586         getloadavg: Remove support for HP-UX on m68k.
17587         * lib/getloadavg.c: Remove hp9000s300 case.
17589 2018-10-16  Bruno Haible  <bruno@clisp.org>
17591         fsusage, mountlist: Remove support for DolphinOS (an SVR3 variant).
17592         * lib/fsusage.c: Remove DOLPHIN case.
17593         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
17594         * lib/mountlist.c: Remove MOUNTED_GETMNTTBL case.
17596 2018-10-16  Bruno Haible  <bruno@clisp.org>
17598         getloadavg: Remove support for Alliant FX/2800.
17599         * lib/getloadavg.c: Remove alliant case.
17601 2018-10-16  Bruno Haible  <bruno@clisp.org>
17603         getloadavg: Remove support for tek4300.
17604         * lib/getloadavg.c: Remove tek4300 case.
17606 2018-10-16  Bruno Haible  <bruno@clisp.org>
17608         getloadavg: Remove support for Ardent.
17609         * lib/getloadavg.c: Remove ardent case.
17611 2018-10-16  Bruno Haible  <bruno@clisp.org>
17613         mountlist: Remove support for SVR2.
17614         Reported by Andrew Borodin <aborodin@vmail.ru> in
17615         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00101.html>.
17616         * lib/mountlist.c: Remove MOUNTED_FREAD case.
17617         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
17618         MOUNTED_FREAD.
17620 2018-10-15  Paul Eggert  <eggert@cs.ucla.edu>
17622         libc-config: merge from glibc
17623         * lib/cdefs.h (__glibc_has_attribute): New macro.
17625         regex: depend on libc-config
17626         * modules/regex (Depends-on): Add libc-config.
17627         This is needed after the recent autoupdate from glibc.
17629 2018-10-14  Bruno Haible  <bruno@clisp.org>
17631         localename: Add support for per-thread locales on Solaris 11.4.
17632         * lib/locale.in.h (newlocale, freelocale): New declarations.
17633         (duplocale): Declare also when the 'localename' module requests it.
17634         * lib/localename.c (struniq_hash_node): Renamed from hash_node.
17635         (STRUNIQ_HASH_TABLE_SIZE): Renamed from HASH_TABLE_SIZE.
17636         (struniq): Update.
17637         (struct locale_categories_names, struct locale_hash_node): New types.
17638         (LOCALE_HASH_TABLE_SIZE): New constant.
17639         (locale_hash_table, locale_lock): New variables.
17640         (pointer_hash, get_locale_t_name): New functions.
17641         (newlocale, duplocale, freelocale): New overridden functions.
17642         (gl_locale_name_thread_unsafe): Use get_locale_t_name.
17643         * m4/intlsolaris.m4: New file.
17644         * m4/localename.m4 (gl_LOCALENAME): Require gl_LOCALE_H_DEFAULTS. Invoke
17645         gt_INTL_SOLARIS. Set HAVE_NEWLOCALE, HAVE_DUPLOCALE, HAVE_FREELOCALE,
17646         REPLACE_NEWLOCALE, REPLACE_DUPLOCALE, REPLACE_FREELOCALE.
17647         * m4/locale_h.m4 (gl_LOCALE_H): Test whether newlocale, freelocale are
17648         declared.
17649         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALENAME, HAVE_NEWLOCALE,
17650         HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
17651         * modules/locale (Makefile.am): Substitute GNULIB_LOCALENAME,
17652         HAVE_NEWLOCALE, HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
17653         * modules/localename (Files): Add intlsolaris.m4.
17654         (Depends-on): Add 'locale'.
17655         (configure.ac): Invoke gl_LOCALE_MODULE_INDICATOR.
17656         * tests/test-locale-c++.cc (newlocale, freelocale): Prepare for checking
17657         the signatures.
17659 2018-10-14  Akim Demaille  <akim@lrde.epita.fr>
17661         timevar: use gethrxtime to get wall clock time
17662         clock_gettime is not portable.  gethrxtime takes the best available
17663         option to get the wall clock time, including clock_gettime (monotonic
17664         clock), and gettime (non monotonic).
17665         Also, using xtime_t instead of float preserves the precision.
17666         Suggested by Bruno Haible.
17667         * lib/xtime.h (xtime_make): Handle overflows of nanoseconds.
17668         * modules/timevar (Depends-on): We need gethrxtime.
17669         We no longer use times().
17670         (Link): Update.
17671         * lib/timevar.h (timevar_time_def): Use xtime_t.
17672         * lib/timevar.c (set_to_current_time): Use gethrxtime.
17673         (timevar_print): Instead of checking whether the timings themselves
17674         are large enough for the timevar to be printed, check the percentages.
17676 2018-10-14  Bruno Haible  <bruno@clisp.org>
17678         wcsnrtombs: Work around Solaris 11.4 bug.
17679         * m4/wcsnrtombs.m4 (gl_WCSNRTOMBS_WORKS_IN_TRADITIONAL_LOCALE): New
17680         macro.
17681         (gl_FUNC_WCSNRTOMBS): Invoke it.
17682         * doc/posix-functions/wcsnrtombs.texi: Mention the Solaris bug.
17684 2018-10-14  Bruno Haible  <bruno@clisp.org>
17686         mbsnrtowcs: Work around Solaris 11.4 bug.
17687         * m4/mbsnrtowcs.m4 (gl_MBSNRTOWCS_WORKS_IN_TRADITIONAL_LOCALE): New
17688         macro.
17689         (gl_FUNC_MBSNRTOWCS): Invoke it.
17690         * doc/posix-functions/mbsnrtowcs.texi: Mention the Solaris bug.
17692 2018-10-14  Bruno Haible  <bruno@clisp.org>
17694         doc: Update for Solaris 11.4.
17695         * doc/**/*.texi: For bugs that exist in both Solaris 11.3 and 11.4,
17696         mention Solaris 11.4.
17697         * m4/printf.m4: Update comments about Solaris.
17698         * m4/log.m4: Likewise.
17699         * m4/log10.m4: Likewise.
17700         * m4/logb.m4: Likewise.
17701         * m4/logbf.m4: Likewise.
17702         * m4/logbl.m4: Likewise.
17703         * m4/rename.m4: Likewise.
17704         * m4/wcrtomb.m4: Likewise.
17705         * m4/hostent.m4: Likewise.
17706         * m4/servent.m4: Likewise.
17708 2018-10-14  Bruno Haible  <bruno@clisp.org>
17710         floor, ceil, trunc, truncf, truncl: Defeat GCC optimizations.
17711         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Use 'floor' also through a function
17712         pointer.
17713         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use 'ceil' also through a function
17714         pointer.
17715         * m4/trunc.m4 (gl_FUNC_TRUNC): Use 'trunc' also through a function
17716         pointer.
17717         * m4/truncf.m4 (gl_FUNC_TRUNCF): Use 'truncf' also through a function
17718         pointer.
17719         * m4/truncl.m4 (gl_FUNC_TRUNCL): Use 'truncl' also through a function
17720         pointer.
17722 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
17724         bootstrap: fix wget command for po files.
17725         * build-aux/bootstrap (po_download_command_format): Fix comment,
17726         and adjust callers.
17728 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
17730         timevar: improve the output format
17731         Suggested by Bruno Haible.
17732         See https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00040.html.
17733         * lib/timevar.c (timevar_print): Use %7.3f for usr/sys and %11.6f for
17734         wall, since its resolution is much higher.
17736 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
17738         timevar: expect that getrusage is available.
17739         Don't keep both times and getrusage as backend: both are guaranteed by
17740         gnulib, a single one suffices.  Using getrusage is open to possibly
17741         tracking other types of resources in the future.
17742         * modules/timevar (Depends-on): Add getrusage.
17743         (configure.ac): Remove gl_TIMEVAR.
17744         (Files): Remove m4/timevar.m4.
17745         * m4/timevar.m4: Remove, rely on gnulib for getrusage.
17746         * lib/timevar.h (timevar_enabled): Clarify documentation.
17747         * lib/timevar.c: Remove all the code about times.
17748         Remove all the CPP guards about getrusage: expect it to be present
17749         (courtesy of gnulib).
17751 2018-10-12  Bruno Haible  <bruno@clisp.org>
17753         mountlist: Improve support for Solaris in 64-bit mode.
17754         Reported by David Wood <David.Wood@deshaw.com> in
17755         <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=6816>.
17756         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): On Solaris 8 or
17757         newer, define MOUNTED_GETEXTMNTENT instead of MOUNTED_GETMNTENT2.
17758         * lib/mountlist.c: Add code for MOUNTED_GETEXTMNTENT case.
17760 2018-10-12  Bruno Haible  <bruno@clisp.org>
17762         mountlist: Add support for Minix.
17763         Reported by Assaf Gordon in
17764         <https://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00074.html>.
17765         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use
17766         AC_CHECK_FUNCS to check for 'getmntinfo'.
17767         * lib/mountlist.c: Update comments.
17769 2018-10-12  Bruno Haible  <bruno@clisp.org>
17771         Make better use of Autoconf.
17772         * m4/environ.m4: Use AC_CACHE_CHECK where possible.
17773         * m4/manywarnings.m4: Likewise.
17774         * m4/manywarnings-c++.m4: Likewise.
17775         * m4/socklen.m4: Likewise.
17776         * m4/sockpfaf.m4: Likewise.
17777         * m4/stdarg.m4: Likewise.
17778         * m4/visibility.m4: Likewise.
17779         * m4/fsusage.m4: Use AC_CACHE_CHECK where possible. Modernize
17780         indentation.
17781         * m4/ls-mntd-fs.m4: Likewise.
17783 2018-10-11  Bruno Haible  <bruno@clisp.org>
17785         mountlist: Modernize platform lists.
17786         * m4/ls-mntd-fs.m4: Clarify which MOUNTED_* symbol applies to which
17787         platforms, deemphasizing the obsolete ones.
17788         * lib/mountlist.c: Likewise.
17790 2018-10-11  Bruno Haible  <bruno@clisp.org>
17792         getprogname: Add support for 32-bit programs on HP-UX.
17793         * lib/getprogname.c (getprogname) [HP-UX]: If pstat_getproc fails,
17794         try the similar functions 32-bit programs on 64-bit HP-UX.
17796 2018-10-11  Bruno Haible  <bruno@clisp.org>
17798         getprogname: Work around program name truncation when possible.
17799         * lib/getprogname.c (getprogname) [HP-UX]: When pst_ucomm is truncated,
17800         possibly use pst_cmd instead.
17802 2018-10-08  Paul Eggert  <eggert@cs.ucla.edu>
17804         fts: cleanup after FTS_NOATIME removal
17805         * lib/fts_.h (FTS_VERBATIM, FTS_OPTIONMASK, FTS_NAMEONLY)
17806         (FTS_STOP): Shrink to minimal values.  We don’t need to
17807         worry about binary compatibility in Gnulib, and the old way
17808         of doing things had a hole in the user options that caused
17809         FTS_OPTIONMASK to not work as desired.
17811 2018-10-08  Bernhard Voelker  <mail@bernhard-voelker.de>
17813         fts: remove FTS_NOATIME
17814         This reverts commit da4d6974013c822af1498941e32db774b2031765.
17815         We cannot guarantee that O_NOATIME works: e.g. openat fails
17816         with EPERM if the effective user ID of the caller does not match
17817         the owner of the file and the caller is not privileged.
17818         Downstream findutils has never picked up FTS_NOATIME.  Discussed at
17819         <https://lists.gnu.org/r/bug-gnulib/2018-09/msg00122.html>.
17820         * lib/fts_.h (FTS_NOATIME): Remove bit flag.
17821         (FTS_OPTIONMASK): Adjust.
17822         * lib/fts.c (diropen, fts_open, fts_build): Likewise.
17823         (fd_ring_check): Likewise.
17825 2018-10-08  Bruno Haible  <bruno@clisp.org>
17827         csharpcomp*, csharpexec*: Remove support for pnet.
17828         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Don't test for cscc. Don't set
17829         HAVE_CSCC.
17830         * build-aux/csharpcomp.sh.in (options_cscc): Remove variable.
17831         Don't test HAVE_CSCC.
17832         * lib/csharpcomp.c (compile_csharp_using_pnet): Remove function.
17833         (compile_csharp_class): Don't invoke it.
17834         * m4/csharpexec.m4 (gt_CSHARPEXEC): Don't test for ilrun. Don't set
17835         HAVE_ILRUN.
17836         * build-aux/csharpexec.sh.in (options_ilrun): Remove variable.
17837         Don't test HAVE_ILRUN.
17838         * lib/csharpexec.c (execute_csharp_using_pnet): Remove function.
17839         (execute_csharp_program): Don't invoke it.
17840         * m4/csharp.m4 (gt_CSHARP_CHOICE): Don't recognize --enable-csharp=pnet
17841         any more.
17843 2018-10-07  Andreas Henriksson  <andreas@fatal.se>  (tiny change)
17845         renameatu: prefer renameat2 to syscall
17846         * lib/renameatu.c (renameatu) [HAVE_RENAMEAT2]:
17847         Use renameat2 instead of syscall (Bug#32796).
17848         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Check for renameat2.
17850 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
17852         bootstrap, gnulib-tool: use https instead of insecure rsync
17853         * build-aux/bootstrap (download_po_files, po_download_command_format):
17854         Don't try using rsync; always use wget over https to fetch PO files.
17855         * gnulib-tool (func_import): Likewise.
17856         * pygnulib/GLImport.py (GLImport.execute): Likewise.
17858 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
17860         bootstrap, gnulib-tool: correct the translations wget command
17861         * build-aux/bootstrap (po_download_command_format2): Restrict
17862         recursion to a single level.
17863         * gnulib-tool (func_import): Likewise.
17864         * pygnulib/GLImport.py (GLImport.execute): Likewise.
17866 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
17868         doc: the gnulib snapshots are not maintained
17869         * doc/gnulib-intro.texi (Steady Development): Don't mention them.
17871 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
17873         timevar: add to lib_SOURCES
17874         * modules/timevar (lib_SOURCES): Add timevar.c and timevar.def.
17876 2018-10-07  Bruno Haible  <bruno@clisp.org>
17878         dirent: Update documentation.
17879         * doc/posix-headers/dirent.texi: The MSVC issue is fixed by Gnulib.
17881 2018-10-05  Bruno Haible  <bruno@clisp.org>
17883         strpbrk: Make it possible to namespace the defined symbol.
17884         * lib/strpbrk.c (strpbrk): Don't undefine outside of glibc.
17886 2018-10-05  Bruno Haible  <bruno@clisp.org>
17888         strcspn: Make it possible to namespace the defined symbol.
17889         * lib/strcspn.c (strcspn): Don't undefine outside of glibc.
17891 2018-10-05  Bruno Haible  <bruno@clisp.org>
17893         raise: Make it possible to namespace the defined symbol.
17894         * lib/raise.c (raise): Undefine only after the replacement function has
17895         been defined.
17896         (raise): Renamed from rpl_raise.
17897         (raise_nothrow): Move to the end of the compilation unit.
17899 2018-10-05  Bruno Haible  <bruno@clisp.org>
17901         memcmp: Make it possible to namespace the defined symbol.
17902         * lib/memcmp.c (memcmp): Don't undefine outside of glibc.
17904 2018-10-05  Bruno Haible  <bruno@clisp.org>
17906         explicit_bzero: Make it possible to namespace the defined symbol.
17907         * lib/explicit_bzero.c (explicit_bzero): Don't undefine outside of
17908         glibc.
17910 2018-10-05  Bruno Haible  <bruno@clisp.org>
17912         mkdir-p: Depend on 'mkdir'.
17913         * modules/mkdir-p (Depends-on): Add 'mkdir'.
17915 2018-10-05  Bruno Haible  <bruno@clisp.org>
17917         tempname: Depend on 'mkdir'.
17918         Reported by Maarten Bosmans <mkbosmans@gmail.com>
17919         at <https://savannah.gnu.org/bugs/?33379>.
17920         * modules/tempname (Depends-on): Add 'mkdir'.
17922 2018-10-05  Akim Demaille  <akim@lrde.epita.fr>
17924         timevar: rely on gnulib modules for time portability.
17925         * modules/timevar (Depends-on): Add sys_time, sys_times, and times.
17926         * m4/timevar.m4: Don't check for clock_t and struct tms,
17927         guaranteed by gnulib.
17928         * lib/timevar.h: Use extern "C" protection.
17929         Include <stdio.h> for FILE.
17930         * lib/timevar.c: Include sys/time.h, sys/times.h unconditionally,
17931         they are guaranteed by gnulib.
17932         Remove uses of clock as (now useless) fallback.
17934 2018-10-04  Bruno Haible  <bruno@clisp.org>
17936         sh-filename: New module.
17937         * m4/sh-filename.m4: New file.
17938         * modules/sh-filename: New file.
17939         * lib/spawni.c (_PATH_BSHELL): Use BOURNE_SHELL instead of hardcoding
17940         "/bin/sh".
17941         * tests/test-posix_spawn1.c (main): Likewise.
17942         * tests/test-posix_spawn2.c (main): Likewise.
17943         * lib/javacomp.c (compile_using_envjavac, is_envjavac_gcj,
17944         is_envjavac_gcj43): Likewise.
17945         * lib/javaexec.c (execute_java_class): Likewise.
17946         * modules/posix_spawn-internal (Depends-on): Add sh-filename.
17947         * modules/posix_spawnp-tests (Depends-on): Likewise.
17948         * modules/javacomp (Depends-on): Likewise.
17949         * modules/javaexec (Depends-on): Likewise.
17951 2018-10-04  Bruno Haible  <bruno@clisp.org>
17953         spawn-pipe tests: Avoid test failure on native Windows.
17954         * tests/test-spawn-pipe-child.c (main): On native Windows, don't expect
17955         that fd 2 is closed.
17957 2018-10-04  Bruno Haible  <bruno@clisp.org>
17959         fcntl: Make it possible to namespace the defined symbol.
17960         * lib/fcntl.c (fcntl): Undefine only after the replacement function has
17961         been defined.
17962         (fcntl): Renamed from rpl_fcntl.
17963         (rpl_fcntl_DUPFD, rpl_fcntl_DUPFD_CLOEXEC): New functions, extracted
17964         from fcntl.
17965         (klibc_fcntl): Move to the end of the compilation unit.
17967 2018-10-02  Bruno Haible  <bruno@clisp.org>
17969         vasnprintf tests: Avoid test failure on HP-UX/hppa and IRIX.
17970         * tests/test-vasnprintf.c (test_function): Change the test added on
17971         2018-09-23 to check only the 18 most significant digits.
17973         vasnprintf tests: Avoid test failure on Cygwin.
17974         * tests/test-vasnprintf.c (test_function): Change the test added on
17975         2018-09-23 to check only the 42 most significant digits.
17977 2018-10-01  Bruno Haible  <bruno@clisp.org>
17979         mkostemp, mkostemps: Update documentation.
17980         * doc/glibc-functions/mkostemp.texi: Mention the Mac OS X issue.
17981         * doc/glibc-functions/mkostemps.texi: Likewise.
17983 2018-10-01  Tom Tromey  <tom@tromey.com>
17985         mkostemp, mkostemps: Fix compilation error in C++ mode on Mac OS X.
17986         * lib/stdlib.in.h: Include <unistd.h> for mkostemp and mkostemps
17987         on OS X.
17989 2018-09-30  Pádraig Brady  <P@draigBrady.com>
17991         hmac-*: refactor to remove repetitive code
17992         * lib/hmac.c: A new parameterized single implementation.
17993         * lib/hmac-md5.c: Define parameters and include implementation.
17994         * lib/hmac-sha1.c: Likewise.
17995         * lib/hmac-sha256.c: Likewise.
17996         * lib/hmac-sha512.c: Likewise.
17997         * modules/crypto/hmac-md5: Reference the new implementation file.
17998         * modules/crypto/hmac-sha1: Likewise.
17999         * modules/crypto/hmac-sha256: Likewise.
18000         * modules/crypto/hmac-sha512: Likewise.
18001         * tests/test-hmac-md5.c: Refactor common code to a single function.
18002         * tests/test-hmac-sha1.c: Likewise.
18003         * tests/test-hmac-sha256.c: Likewise.
18004         * tests/test-hmac-sha512.c: Likewise.
18006 2018-09-30  Zhang Qing  <zhangqingl@126.com>
18008         hmac-sha512: fix hash for keys > blocksize (128 bytes)
18009         * lib/hmac-sha512.c (hmac_sha512): Set the computed/shortened
18010         key length to that output by sha512, not the blocksize.
18011         Otherwise uninitialized data from the stack
18012         is used when computing the hash.
18013         * tests/test-hmac-sha512.c: Add a shortened key test case.
18014         Reported at https://github.com/coreutils/gnulib/pull/5
18016 2018-09-30  Bruno Haible  <bruno@clisp.org>
18018         vasnprintf: Avoid warnings from GCC's -Wsign-compare.
18019         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
18020         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00105.html>.
18021         * lib/vasnprintf.c (VASNPRINTF): Cast 'count' from 'int' to
18022         'unsigned int' before comparison with an unsigned value.
18024 2018-09-30  Bruno Haible  <bruno@clisp.org>
18026         grantpt: Remove unnecessary dependency.
18027         * modules/grantpt (Depends-on): Remove 'builtin-expect'.
18029 2018-09-30  Bruno Haible  <bruno@clisp.org>
18031         timevar: Small tweaks.
18032         * lib/timevar.h: Fix comments. Add parameter names to function
18033         declarations.
18034         * lib/timevar.c: Include timevar.h immediately after config.h.
18035         * lib/timevar.def: Fix comments.
18036         * modules/timevar (Maintainer): List Akim Demaille.
18038 2018-09-30  Bruno Haible  <bruno@clisp.org>
18040         timevar: Include documentation in gnulib manual.
18041         * doc/timevar.texi: Change node and section name to 'Profiling of
18042         program phases'.
18043         In the code snippets, tweak the #includes and use GNU coding style.
18044         * doc/gnulib.texi: Include timevar.texi.
18046 2018-09-27  Akim Demaille  <akim@lrde.epita.fr>
18048         timevar: import from Bison.
18049         * m4/timevar.m4, modules/timevar, lib/timevar.h, lib/timevar.c:
18050         New files.
18051         * lib/timevar.def: New file.
18052         * doc/timevar.texi: New file.
18054 2018-09-26  Bruno Haible  <bruno@clisp.org>
18056         javacomp-script, javacomp: Add preliminary support for Java 12..17.
18057         * m4/javacomp.m4 (gt_JAVACOMP): Treat Java versions 12..17 like 11.
18058         * lib/javacomp.c (default_target_version): Likewise.
18060 2018-09-26  Bruno Haible  <bruno@clisp.org>
18062         javacomp-script, javacomp: Add support for Java 11.
18063         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 11 and
18064         target-version 11.
18065         * lib/javaversion.h: Update comments.
18066         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
18067         source_version_index, get_goodcode_snippet, get_failcode_snippet,
18068         TARGET_VERSION_BOUND, target_version_index,
18069         corresponding_classfile_version): Accept source_version 11 and
18070         target_version 11.
18071         * lib/javacomp.h: Update comments accordingly.
18073 2018-09-23  Bruno Haible  <bruno@clisp.org>
18075         vasnprintf: Fix heap memory overrun bug.
18076         Reported by Ben Pfaff <blp@cs.stanford.edu> in
18077         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00107.html>.
18078         * lib/vasnprintf.c (convert_to_decimal): Allocate one more byte of
18079         memory.
18080         * tests/test-vasnprintf.c (test_function): Add another test.
18082 2018-09-19  Paul Eggert  <eggert@cs.ucla.edu>
18084         maint: mktime.c now shared with glibc
18085         * config/srclist.txt: intprops.h, timegm.c and mktime.c
18086         are now the same in Gnulib and glibc.
18088         mktime: fix _LIBC typo
18089         * lib/mktime.c (mktime): Fix typo (misspelled "_LIBC").
18091 2018-09-19  Norihiro Tanaka  <noritnk@kcn.ne.jp>
18093         dfa: optimization for state merge
18094         * lib/dfa.c (merge2): New function.
18095         (merge_nfa_state): Use it.
18097 2018-09-18  Jim Meyering  <meyering@fb.com>
18099         dfa: trivial comment fix: s/is/if/
18100         * lib/dfa.c (maybe_disable_superset_dfa): Fix comment typo.
18102 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
18104         dfa: use more-informative function name
18105         * lib/dfa.c (maybe_disable_superset_dfa):
18106         Rename from dfautf8noss.  Use change.
18108         dfa: tweak allocation performance
18109         * lib/dfa.c (merge_nfa_state, dfaoptimize):
18110         Prefer ptrdiff_t for indexes some more.
18111         Use char for flags, as it’s wide enough.
18112         Allocate queue and flags together, with one malloc call.
18113         No need to use xnmalloc since the multiplication and
18114         addition cannot overflow (it’s already been checked by
18115         earlier allocation).  Prefer memset to open-coding.
18117         dfa: prune states as we go
18118         * lib/dfa.c (prune): Remove.
18119         dfa: reorder enum for efficiency
18120         (merge_nfa_state): Prune as we go instead of at the end.
18121         Prefer ptrdiff_t for indexes, as this helps the compiler a bit.
18123         * lib/dfa.c (END): Now -1 again.  Reorder other elements
18124         of the enumeration to make it easier for GCC to generate
18125         efficient code by using fewer comparisons to check for
18126         ranges of values.
18127         (atom): Take advantage of the reordering.
18129 2018-09-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
18131         dfa: optimize alternation in NFA
18132         Even when similar states exist in alternation, the DFA treats them
18133         as separate items, which may complicate the transition in NFA and
18134         cause slowdown.  This change assembles the states into one.  For
18135         example, ab|ac is changed into a(b|c).  This change speeds-up
18136         matching for many branched patterns.  For example, grep speeds up
18137         more than 30× in:
18139           seq 10000 | sed 's/$/ abcdefghijklmnopqrstuvwxyz/; s/$/./' >in
18140           time -p env LC_ALL=C grep -vf in in
18142         * lib/dfa.c (prune): New function.
18143         (merge_nfa_state): New function.  It merges similar NFA states.
18144         (dfaoptimize): New function.  It seeks merged and removed nodes.
18145         (dfaanalyze): Call new function.
18146         (dfautf8noss): Change name from dfaoptimize because of addition of new
18147         function.
18148         (dfacomp): Update caller.
18150         dfa: simplify initial state
18151         Simplifying the initial state enables easier optimization of the NFA.
18152         * lib/dfa.c (enum token): Add new element BEG.
18153         (prtok): Adjust due to adding element BEG.
18154         (dfaparse): Put BEG at a head of tokens.
18155         (state_index): Adjust due to adding element BEG.
18156         (dfaanalyze): Concatenate BEG to other tokens, and simplify to
18157         build initial state.
18158         (dfamust): Adjust due to adding element BEG.  DFAMUST ignores it.
18160 2018-09-18  Bruno Haible  <bruno@clisp.org>
18162         file-has-acl: Fix test failure on Cygwin 2.9.
18163         * m4/acl.m4 (gl_FUNC_ACL): Update comments regarding Cygwin.
18164         * lib/acl-internal.h: Likewise.
18165         (HAVE_ACL_EXTENDED_FILE): Undefine on Cygwin.
18166         * lib/acl-internal.c: Update comments regarding Cygwin.
18167         * lib/acl_entries.c: Likewise.
18168         * lib/file-has-acl.c: Likewise.
18169         (file_has_acl): For Cygwin, use a different way to determine whether
18170         the "default" ACL of a directory is nontrivial.
18171         * lib/get-permissions.c: Update comments regarding Cygwin.
18172         * lib/set-permissions.c: Likewise.
18174 2018-09-18  Bruno Haible  <bruno@clisp.org>
18176         stat-time tests: Fix test failure on Cygwin.
18177         * tests/nap.h (nap_get_stat): Treat Cygwin like native Windows.
18179 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
18181         doc: OS X 10.11 lacked ns time functions
18182         According to <https://github.com/zeromq/libzmq/issues/2175>,
18183         nanosecond-resolution timestamp functions were introduced
18184         in macOS 10.12, so document the last version (OS X 10.11)
18185         where they were absent.
18187         gettime: nanotime never existed
18188         Problem reported by Bruno Haible in:
18189         https://lists.gnu.org/r/bug-gnulib/2018-09/msg00082.html
18190         * lib/gettime.c (gettime) [HAVE_NANOTIME]: Remove unused code.
18191         * m4/gettime.m4 (gl_GETTIME): Don’t check for nanotime.
18193 2018-09-18  Bruno Haible  <bruno@clisp.org>
18195         doc: Update statement about target platforms.
18196         Reported by Simon Sobisch.
18197         * doc/gnulib-intro.texi (Target Platforms): Update. Mention
18198         restrictions on MSVC versions.
18200 2018-09-18  Bruno Haible  <bruno@clisp.org>
18202         posix_spawn tests: Fix link error on 64-bit Cygwin.
18203         * tests/test-posix_spawn1.c (environ): Remove declaration.
18204         * tests/test-posix_spawn2.c (environ): Likewise.
18205         * tests/test-posix_spawn3.c (environ): Likewise.
18206         * tests/test-posix_spawn4.c (environ): Likewise.
18207         * modules/posix_spawn-tests (Depends-on): Add 'environ'.
18208         * modules/posix_spawnp-tests (Depends-on): Likewise.
18210 2018-09-16  Paul Eggert  <eggert@cs.ucla.edu>
18212         timespec: new function current_timespec
18213         * lib/gettime.c (gettime): Prefer clock_gettime to nanotime,
18214         and don’t worry about it failing on a CLOCK_REALTIME arg.
18215         POSIX requires it to succeed and I don’t know of any
18216         counterexamples where the fallbacks would work.
18217         (current_timespec): New function, taken from Emacs.  It is more
18218         convenient than gettime, and can help register allocation.
18219         * lib/timespec.h: Include arg-nonnull.h.
18220         (current_timespec): New declaration.
18221         (gettime, settime): Declare args to be nonnull.
18222         * modules/timespec (Depends-on): Add snippet/arg-nonnull.
18224 2018-09-16  Bruno Haible  <bruno@clisp.org>
18226         setlocale: Improve locale handling on macOS 10.12 or newer.
18227         * lib/setlocale.c: Include header files for CoreFoundation. Declare
18228         gl_locale_name_canonicalize.
18229         (libintl_setlocale): Try harder to set a locale for categories LC_CTYPE
18230         and LC_MESSAGES.
18231         * m4/setlocale.m4 (gl_PREREQ_SETLOCALE): Add comment.
18233 2018-09-16  Bruno Haible  <bruno@clisp.org>
18235         Update list of locale names with scripts on macOS.
18236         * lib/localename.c (gl_locale_name_canonicalize): Update tables to
18237         match Mac OS X 10.13 and recent glibc.
18239 2018-09-16  Bruno Haible  <bruno@clisp.org>
18241         gettext: Use newer macOS APIs when possible.
18242         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Check for
18243         CFLocaleCopyPreferredLanguages.
18245 2018-09-16  Bruno Haible  <bruno@clisp.org>
18247         localename: Revisit macOS specific code.
18248         * lib/localename.c (gl_locale_name_default): Reduce code duplication.
18249         Fix comments about Mac OS X versions.
18251 2018-09-15  Bruno Haible  <bruno@clisp.org>
18253         setlocale: Improve support for locales not supported by libc.
18254         Reported by Dapeng Gao <peter@dpgao.cc> at
18255         <https://savannah.gnu.org/bugs/?54479>.
18256         * gettext-runtime/intl/setlocale.c: Include <stdio.h>.
18257         (libintl_setlocale): Use a more error-tolerant strategy when the locale
18258         to be set is not supported by libc: Emit warnings instead of failing.
18260 2018-09-15  Bruno Haible  <bruno@clisp.org>
18262         strstr, strcasestr: Add workaround against glibc-2.28 bug.
18263         Reported by Michael Brunnbauer via Siddhesh Poyarekar and Eric Blake.
18264         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Set
18265         gl_cv_func_strstr_works_always to 'no' on glibc 2.28.
18266         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Set
18267         gl_cv_func_strcasestr_works_always to 'no' on glibc 2.28.
18268         * doc/posix-functions/strstr.texi: Document the glibc 2.28 bug.
18269         * doc/glibc-functions/strcasestr.texi: Likewise.
18271 2018-09-14  Bruno Haible  <bruno@clisp.org>
18273         doc: Fix bottom of top-level page.
18274         Reported by Akim Demaille <akim.demaille@gmail.com> in
18275         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00072.html>.
18276         * doc/pastposix-functions/index.texi: Rename node to '_index' in HTML
18277         mode.
18278         * doc/gnulib.texi (Legacy Function Substitutes): Update menu
18279         accordingly.
18281 2018-09-12  Bruno Haible  <bruno@clisp.org>
18283         Add test case from a recent glibc bug.
18284         * tests/test-strstr.c (main): Add test of long needle.
18285         * tests/test-strcasestr.c (main): Likewise.
18286         * tests/test-c-strstr.c (main): Likewise.
18287         * tests/test-c-strcasestr.c (main): Likewise.
18288         * tests/test-memmem.c (main): Likewise.
18290 2018-09-12  Bruno Haible  <bruno@clisp.org>
18292         Apply Eric Blake's improvements from 2011-02-25 to more tests.
18293         * tests/test-c-strstr.c (main): Add the same tests here as well.
18295 2018-09-12  Bruno Haible  <bruno@clisp.org>
18297         Apply Jim Meyering's fix from 2015-01-11 to more tests.
18298         * tests/test-memmem.c (main): Free haystack.
18299         * tests/test-strcasestr.c (main): Likewise.
18300         * tests/test-c-strcasestr.c (main): Likewise.
18302 2018-09-11  Paul Eggert  <eggert@cs.ucla.edu>
18304         xstrtol: fix missing-TYPE_SIGNED typo
18305         * lib/xstrtol.c (TYPE_SIGNED): New macro, duplicating intprops.h.
18307 2018-09-10  Paul Eggert  <eggert@cs.ucla.edu>
18309         timespec: fix resolution confusion
18310         In normal usage, clock resolution is given in seconds, but the
18311         code was mistakenly using inverse seconds and calling it
18312         “resolution”.  Fix this, partly by renaming two identifiers.
18313         The old names will be kept for a bit, to ease transition.
18314         * lib/timespec.h (TIMESPEC_HZ, LOG10_TIMESPEC_HZ):
18315         New constants, replacing TIMESPEC_RESOLUTION and
18316         LOG10_TIMESPEC_RESOLUTION, which are now obsolescent.
18317         All uses changed.
18319 2018-09-09  Paul Eggert  <eggert@cs.ucla.edu>
18321         mktime: simplify in prep for glibc merge
18322         * lib/mktime.c, lib/timegm.c [_LIBC]:
18323         Include mktime-internal.h (a small file just for glibc)
18324         instead of using a typedef.
18326 2018-09-07  Paul Eggert  <eggert@cs.ucla.edu>
18328         intprops: minor clarification of code
18329         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW):
18330         Use _GL_INT_CONVERT rather than reinventing it.
18332 2018-09-07  Bruno Haible  <bruno@clisp.org>
18334         Fix a comment.
18335         * tests/test-posix_spawn3.c (parent_main): Fix typo in comment.
18337 2018-09-07  Bruno Haible  <bruno@clisp.org>
18339         posix_spawn_file_actions_addchdir: Add tests.
18340         * tests/test-posix_spawn_file_actions_addchdir.c: New file.
18341         * tests/test-posix_spawn4.c: New file.
18342         * modules/posix_spawn_file_actions_addchdir-tests: New file.
18344 2018-09-07  Bruno Haible  <bruno@clisp.org>
18346         posix_spawn_file_actions_addchdir: New module.
18347         Suggested by Eric Blake in
18348         <https://lists.gnu.org/archive/html/bug-findutils/2018-09/msg00007.html>.
18349         * lib/spawn.in.h (posix_spawn_file_actions_addchdir): New declaration.
18350         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_chdir' and
18351         union member 'chdir_action'.
18352         * lib/spawn_faction_addchdir.c: New file.
18353         * lib/spawni.c (__spawni): Implement the spawn_do_chdir action.
18354         * lib/spawn_faction_addclose.c: Test REPLACE_POSIX_SPAWN instead of
18355         HAVE_WORKING_POSIX_SPAWN.
18356         * lib/spawn_faction_adddup2.c: Likewise.
18357         * lib/spawn_faction_addopen.c: Likewise.
18358         * m4/posix_spawn_faction_addchdir.m4: New file.
18359         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
18360         'posix_spawn_file_actions_addchdir' is present and whether
18361         posix_spawn_file_actions_addchdir_np exists. Define REPLACE_POSIX_SPAWN
18362         instead of HAVE_WORKING_POSIX_SPAWN.
18363         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
18364         posix_spawn_file_actions_addchdir is declared.
18365         (gl_SPAWN_H_DEFAULTS): Initialize
18366         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
18367         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
18368         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
18369         * modules/spawn (Makefile.am): Substitute
18370         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
18371         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
18372         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
18373         * modules/posix_spawn_file_actions_addchdir: New file.
18374         * modules/posix_spawn_file_actions_addclose (Depends-on,
18375         configure.ac): Test also REPLACE_POSIX_SPAWN.
18376         * modules/posix_spawn_file_actions_adddup2 (Depends-on,
18377         configure.ac): Likewise.
18378         * modules/posix_spawn_file_actions_addopen (Depends-on,
18379         configure.ac): Likewise.
18380         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addchdir): Check
18381         signature.
18382         * doc/posix-functions/posix_spawn.texi: Mention the new module.
18383         * doc/posix-functions/posix_spawnp.texi: Likewise.
18385 2018-09-06  Bruno Haible  <bruno@clisp.org>
18387         stddef: Override max_align_t on NetBSD 8.0/x86.
18388         * m4/stddef_h.m4 (gl_STDDEF_H): When testing for max_align_t, test also
18389         the value of __alignof__ (max_align_t).
18390         * doc/posix-headers/stddef.texi: Mention the issue.
18392 2018-09-06  Bruno Haible  <bruno@clisp.org>
18394         fcntl: Fix F_DUPFD_CLOEXEC behaviour on Haiku.
18395         * lib/fcntl.c (rpl_fcntl): For F_DUPFD_CLOEXEC, don't even try the
18396         system fcntl.
18397         * doc/posix-functions/fcntl.texi: Document the issue.
18399 2018-09-06  Bruno Haible  <bruno@clisp.org>
18401         count-trailing-zeros tests: Rely on limits-h module.
18402         * tests/test-count-trailing-zeros.c (ULLONG_MAX): Remove fallback
18403         definition.
18404         * modules/count-trailing-zeros-tests (Depends-on): Add 'limits-h'.
18406 2018-09-06  Bruno Haible  <bruno@clisp.org>
18408         count-leading-zeros tests: Rely on limits-h module.
18409         * tests/test-count-leading-zeros.c (ULLONG_MAX): Remove fallback
18410         definition.
18411         * modules/count-leading-zeros-tests (Depends-on): Add 'limits-h'.
18413 2018-09-06  Bruno Haible  <bruno@clisp.org>
18415         count-one-bits tests: Rely on limits-h module.
18416         * tests/test-count-one-bits.c (ULLONG_MAX): Remove fallback definition.
18417         * modules/count-one-bits-tests (Depends-on): Add 'limits-h'.
18419 2018-09-06  Bruno Haible  <bruno@clisp.org>
18421         xstrtoll: Rely on limits-h module.
18422         * lib/xstrtol.c: Don't include intprops.h.
18423         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
18424         * modules/xstrtol (Depends-on): Remove 'intprops'.
18425         * modules/xstrtoll (Depends-on): Add 'limits-h'.
18427 2018-09-06  Bruno Haible  <bruno@clisp.org>
18429         strtoll, strtoull: Rely on limits-h module.
18430         * lib/strtol.c (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove macros.
18431         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
18432         * modules/strtoll (Depends-on): Add limits-h.
18433         * modules/strtoull (Depends-on): Likewise.
18435 2018-09-06  Bruno Haible  <bruno@clisp.org>
18437         intprops tests: Fix compilation error with pre-C99 compiler.
18438         * tests/test-intprops.c (verify_stmt): New macro.
18439         (VERIFY, main): Use it.
18441 2018-09-06  Bruno Haible  <bruno@clisp.org>
18443         limits-h: Provide numerical limits macros.
18444         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define also for
18445         IRIX and for GCC.
18446         (WORD_BIT, LONG_BIT): Define.
18447         * m4/limits-h.m4 (gl_LIMITS_H): Set LIMITS_H to non-empty also when
18448         <limits.h> does not define LLONG_MAX or WORD_BIT.
18449         * tests/test-limits-h.c (TYPE_SIGNED, TYPE_WIDTH, TYPE_MINIMUM,
18450         TYPE_MAXIMUM): New macros, from intprops.h.
18451         Add tests for CHAR_BIT, WORD_BIT, LONG_BIT, <type>_MIN, and <type>_MAX.
18452         * doc/posix-headers/limits.texi: Document what the 'limits-h' module
18453         provides.
18455 2018-09-05  Bruno Haible  <bruno@clisp.org>
18457         fcntl: Don't access nonexistent optional argument.
18458         Reported by Frank Busse <f.busse@imperial.ac.uk> in
18459         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00018.html>.
18460         * lib/fcntl.c (rpl_fcntl): For actions that don't take an argument,
18461         don't consume an argument. For actions that take an 'int' argument,
18462         consume an 'int' argument.
18464 2018-09-05  Eric Blake  <eblake@redhat.com>
18466         doc: mention environ pitfall
18467         * doc/posix-functions/environ.texi (environ): Assigning NULL to
18468         environ is a glibc extension.
18470 2018-09-03  Bruno Haible  <bruno@clisp.org>
18472         gnulib-tool: Fix build order when $testsbase is a subdir of $sourcebase.
18473         Reported by Antoine Luong <antoine.luong@c-s.fr> in
18474         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00008.html>.
18475         * gnulib-tool (func_import): For the tests, set a dotfirst flag.
18476         (func_emit_lib_Makefile_am): Consider the dotfirst flag.
18477         (func_emit_tests_Makefile_am): Don't consider the dotfirst flag.
18479 2018-09-02  Paul Eggert  <eggert@cs.ucla.edu>
18481         mktime: fix unlikely race+overflow bug
18482         Problem reported by Alexandre Oliva in:
18483         https://sourceware.org/bugzilla/show_bug.cgi?id=16346
18484         * lib/mktime.c (__mktime_internal): Access *OFFSET only once,
18485         to avoid an unlikely race if the compiler delays a load and
18486         if this cascades into a signed integer overflow.
18488 2018-08-31  Paul Eggert  <eggert@cs.ucla.edu>
18490         mktime, timegm: simplify glibc time64_t
18491         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]:
18492         Now long int, not time_t, since long int is the longstanding type
18493         for this in glibc and there is no need to change it even if time_t
18494         becomes 64 bits - even int would do, though this would be a change
18495         to the glibc generated code.  When this change is merged into
18496         glibc, it should simplify the time_t vs time64_t situation.
18498         mktime, timegm: simplify merge to glibc
18499         Move code around to make a merge to glibc easier to audit.
18500         This should not change behavior.
18501         * lib/mktime.c (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
18502         (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
18503         which glibc uses.  Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
18504         simplify later conditionals; default the others to zero.  In uses
18505         of these conditionals, explicitly spell out how _LIBC affects
18506         things, so it’s easier to review from a glibc viewpoint.
18507         (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
18508         compartmentalize tzset issues.  Move system-dependent tzsettish
18509         code here from mktime.
18510         (mktime): Move tzsettish code to my_tzset, and move
18511         localtime_offset to within mktime so that it doesn’t
18512         need a separate ifdef.
18514 2018-08-27  Paul Eggert  <eggert@cs.ucla.edu>
18516         intprops: avoid evaluation of some expressions
18517         This makes EXPR_SIGNED (e) easier to use, as it no longer
18518         evaluates the expression E.  Formerly, E was required to be free
18519         of side effects.
18520         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT)
18521         (EXPR_SIGNED, TYPE_WIDTH, _GL_INT_MINIMUM, _GL_INT_MAXIMUM)
18522         (_GL_SIGNED_INT_MAXIMUM): Do not evaluate the expression arg.
18524 2018-08-23  Bruno Haible  <bruno@clisp.org>
18526         getcwd: Add cross-compilation guesses.
18527         Reported by Sergio Durigan Junior <sergiodj@redhat.com> in
18528         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00130.html>.
18529         Based on a patch by Paul Eggert.
18530         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Add cross-compilation
18531         guesses for all GNU systems.
18533 2018-08-19  Bruno Haible  <bruno@clisp.org>
18535         glob-h: Formalize side effects from other modules.
18536         * m4/glob_h.m4 (gl_REPLACE_GLOB_H): New macro.
18537         * m4/glob.m4 (gl_GLOB): Invoke it.
18539         fnmatch-h: Formalize side effects from other modules.
18540         * m4/fnmatch_h.m4 (gl_REPLACE_FNMATCH_H): New macro.
18541         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Invoke it.
18543         limits-h: Formalize side effects from other modules.
18544         * m4/limits-h.m4 (gl_REPLACE_LIMITS_H): New macro.
18545         * m4/stdint.m4 (gl_STDINT_H): Invoke it.
18547 2018-08-19  Bruno Haible  <bruno@clisp.org>
18549         getpass: Move declaration to <unistd.h>.
18550         * lib/unistd.in.h (getpass): New declaration.
18551         * lib/getpass.h: Replace with a stub that just includes <unistd.h>.
18552         * m4/getpass.m4 (gl_FUNC_GETPASS): Declare through AC_DEFUN_ONCE.
18553         Require gl_UNISTD_H_DEFAULTS. Don't test whether getpass is declared.
18554         (gl_FUNC_GETPASS_GNU): Require gl_UNISTD_H_DEFAULTS and gl_FUNC_GETPASS.
18555         On glibc systems, don't set REPLACE_GETPASS to 1.
18556         * modules/getpass (Depends-on): Add 'unistd'.
18557         (configure.ac): Test also REPLACE_GETPASS. Define a module indicator.
18558         (Include): Specify <unistd.h> instead of "getpass.h".
18559         * modules/getpass-gnu (Depends-on): Merely depend on 'getpass'.
18560         (configure.ac): Sync with the configure.ac section of modules/getpass.
18561         (Include): Specify <unistd.h> instead of "getpass.h".
18562         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether getpass is declared.
18563         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPASS, HAVE_GETPASS,
18564         REPLACE_GETPASS.
18565         * modules/unistd (Makefile.am): Substitute GNULIB_GETPASS, HAVE_GETPASS,
18566         REPLACE_GETPASS.
18567         * tests/test-unistd-c++.cc: Test also the declaration of 'getpass'.
18568         * doc/glibc-functions/getpass.texi: A length limit exists also on uClibc
18569         and musl.
18570         * NEWS: Mention the change.
18572 2018-08-19  Bruno Haible  <bruno@clisp.org>
18574         glob: Fix over-optimization due to attribute __nonnull__.
18575         * lib/glob.c (_GL_ARG_NONNULL): Define to empty.
18577 2018-08-19  Bruno Haible  <bruno@clisp.org>
18579         glob: Fix another compilation error when glob.h is not replaced.
18580         Reported by Reuben Thomas <rrt@sc3d.org> in
18581         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00112.html>.
18582         * m4/glob.m4 (gl_GLOB): Set GLOB_H to non-empty when needed.
18583         * m4/glob_h.m4 (gl_GLOB_H): Define through AC_DEFUN_ONCE.
18585 2018-08-18  Bruno Haible  <bruno@clisp.org>
18587         fnmatch: Avoid conflicting macro definitions of 'fnmatch'.
18588         Reported by Reuben Thomas <rrt@sc3d.org> in
18589         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00108.html>.
18590         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't define 'fnmatch' as a macro
18591         in config.h.
18593 2018-08-18  Bruno Haible  <bruno@clisp.org>
18595         Avoid -Wcast-function-type warnings from casts after GetProcAddress.
18596         Reported by Andy Moreton <andrewjmoreton@gmail.com> in
18597         <https://lists.gnu.org/archive/html/emacs-devel/2018-08/msg00468.html>.
18598         Solution proposed by Eli Zaretskii.
18599         * lib/getaddrinfo.c (GetProcAddress): Cast result to 'void *' first.
18600         * lib/gettimeofday.c (GetProcAddress): Likewise.
18601         * lib/link.c (GetProcAddress): Likewise.
18602         * lib/physmem.c (GetProcAddress): Likewise.
18603         * lib/poll.c (GetProcAddress): Likewise.
18604         * lib/select.c (GetProcAddress): Likewise.
18605         * lib/stat-w32.c (GetProcAddress): Likewise.
18607 2018-08-18  Bruno Haible  <bruno@clisp.org>
18609         glob: Fix another compilation error when glob.h is not replaced.
18610         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> again.
18611         * lib/globfree.c: Include <libc-config.h>.
18613 2018-08-18  Bruno Haible  <bruno@clisp.org>
18615         glob: Fix compilation error when glob.h is not replaced.
18616         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> in
18617         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00096.html>.
18618         * lib/glob_pattern_p.c: Include <libc-config.h>.
18619         * modules/glob (Depends-on): Add libc-config.
18621 2018-08-18  Bruno Haible  <bruno@clisp.org>
18623         scratch_buffer: Add tests.
18624         * tests/test-scratch-buffer.c: New file.
18625         * modules/scratch_buffer-tests: New file.
18627 2018-08-18  Bruno Haible  <bruno@clisp.org>
18629         scratch_buffer: Fix include file.
18630         Reported by Reuben Thomas <rrt@sc3d.org> in
18631         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00082.html>.
18632         * lib/scratch_buffer.h: Include <libc-config.h> first. Add
18633         double-inclusion guard.
18635 2018-08-18  Bruno Haible  <bruno@clisp.org>
18637         glob-h: Revert Paul Eggert's revert.
18638         * m4/glob_h.m4: Revert to previous state.
18639         * modules/glob-h: Likewise.
18641 2018-08-18  Paul Eggert  <eggert@cs.ucla.edu>
18643         glob-h: always build glob.h
18644         This works around a problem reported by Reuben Thomas in:
18645         http://lists.gnu.org/r/bug-gnulib/2018-08/msg00079.html
18646         This workaround always builds glob.h, even on platforms that
18647         do not need it; perhaps this could be improved someday.
18648         * m4/glob_h.m4 (gl_GLOB_H): Do not set or use GLOB_H, since glob.h
18649         is always created now.
18650         * modules/glob-h (BUILT_SOURCES, glob.h): Always build glob.h.
18652 2018-08-13  Bruno Haible  <bruno@clisp.org>
18654         monetary: Simplify m4 code.
18655         * m4/monetary_h.m4 (gl_MONETARY_H): Define through AC_DEFUN_ONCE.
18656         (gl_MONETARY_H_BODY): Inline into gl_MONETARY_H. Remove macro.
18658 2018-08-13  Bruno Haible  <bruno@clisp.org>
18660         fnmatch, fnmatch-gnu: Fix compilation error on Mac OS X.
18661         Reported by Jeroen Meijer <jjgmeijer@gmail.com> in
18662         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00046.html>
18663         and by Paul J. Lucas <paul@lucasmail.org> in
18664         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00069.html>.
18665         * m4/fnmatch_h.m4 (gl_FNMATCH_H): Define through AC_DEFUN_ONCE.
18667 2018-08-11  Bruno Haible  <bruno@clisp.org>
18669         setlocale: Trivial simplification.
18670         * lib/setlocale.c (setlocale_unixlike): Remove redundant #if.
18672 2018-08-11  Paul Eggert  <eggert@cs.ucla.edu>
18674         verify: port 'assume' to traditional tools
18675         * lib/verify.h (assume): Port better to Oracle Studio 12.6
18676         and other tools that use /*NOTREACHED*/ comments.
18678 2018-08-10  Bruno Haible  <bruno@clisp.org>
18680         fnmatch-gnu: Fix compilation error in C++ namespace mode on Mac OS X.
18681         * modules/fnmatch-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
18682         * lib/fnmatch.in.h (fnmatch): Skip _GL_CXXALIASWARN if module
18683         'fnmatch-gnu' is in use.
18685 2018-08-07  Bruno Haible  <bruno@clisp.org>
18687         glob-h: Add tests.
18688         * tests/test-glob-h.c: New file, partially based on tests/test-glob.c.
18689         * tests/test-glob.c: Reorder #includes. Remove tests that are moved to
18690         tests/test-glob-h.c.
18691         * modules/glob-h-tests: New file.
18692         * tests/test-glob-h-c++.cc: Renamed from tests/test-glob-c++.cc. Add
18693         conditions.
18694         * modules/glob-h-c++-tests: Renamed from modules/glob-c++-tests.
18695         * modules/glob-tests (Depends-on): Remove glob-c++-tests.
18697 2018-08-07  Bruno Haible  <bruno@clisp.org>
18699         glob-h: New module.
18700         * lib/glob.in.h: Use nearly the usual gnulib idioms for header file
18701         replacements.
18702         * lib/glob.c: Include <config.h>.
18703         * m4/glob_h.m4: New file.
18704         * m4/glob.m4 (gl_GLOB): Require gl_GLOB_H. Remove code that is moved to
18705         glob_h.m4. Set HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
18706         REPLACE_GLOB_PATTERN_P as appropriate.
18707         (gl_PREREQ_GLOB): Don't require AC_C_RESTRICT and
18708         AC_USE_SYSTEM_EXTENSIONS, now done through module 'glob-h'.
18709         * modules/glob-h: New file.
18710         * modules/glob (Files): Remove lib/glob.in.h, lib/glob-libc.h.
18711         (Dependencies): Add glob-h. Remove extensions, snippet/*, libc-config,
18712         lstat, sys_stat. Change conditions.
18713         (configure.ac): Test HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
18714         REPLACE_GLOB_PATTERN_P. Set module indicator.
18715         (Makefile.am): Remove code that is moved to glob-h.
18716         * doc/posix-headers/glob.texi: Mention the 'glob-h' module.
18717         * modules/posixcheck (Depends-on): Add glob-h.
18719 2018-08-06  Bruno Haible  <bruno@clisp.org>
18721         Force generation of substitute .h file when C++ support is enabled.
18722         * m4/ansi-c++.m4 (gl_ANSI_CXX): New macro.
18723         * modules/ansi-c++-opt (configure.ac): Just require gl_ANSI_CXX.
18724         * m4/fnmatch_h.m4 (gl_FNMATCH_H): If C++ support is enabled, set
18725         FNMATCH_H to non-empty.
18726         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If C++ support is enabled, set
18727         ICONV_H to non-empty.
18728         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If C++ support is enabled, set
18729         MONETARY_H to non-empty.
18730         * m4/utime_h.m4 (gl_UTIME_H): If C++ support is enabled, set UTIME_H to
18731         non-empty.
18733 2018-08-06  Bruno Haible  <bruno@clisp.org>
18735         fnmatch-h: Fix test compilation error on mingw (regression from today).
18736         * lib/fnmatch.in.h: Fix conditions.
18738 2018-08-06  Bruno Haible  <bruno@clisp.org>
18740         sys_resource: Relicense under LGPLv2+.
18741         John Malmberg's approval is in
18742         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00031.html>.
18743         * modules/sys_resource (License): Change to LGPLv2+.
18745 2018-08-06  Bruno Haible  <bruno@clisp.org>
18747         fnmatch-h: Add tests.
18748         * tests/test-fnmatch-h.c: New file.
18749         * modules/fnmatch-h-tests: New file.
18750         * tests/test-fnmatch-h-c++.cc: New file.
18751         * modules/fnmatch-h-c++-tests: New file.
18753 2018-08-06  Bruno Haible  <bruno@clisp.org>
18755         fnmatch-h: New module.
18756         * lib/fnmatch.in.h: Use the usual gnulib idioms for header file
18757         replacements.
18758         (FNM_*): Don't redefine if fnmatch exists and we are not overriding it.
18759         (fnmatch): Use the usual gnulib idiom for function declarations. Enable
18760         'posixcheck' warning.
18761         * m4/fnmatch_h.m4: New file.
18762         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Require gl_FNMATCH_H. Remove
18763         code that is moved to fnmatch_h.m4. When fnmatch does not exist, don't
18764         bother testing whether it is working. Set HAVE_FNMATCH, REPLACE_FNMATCH
18765         as appropriate.
18766         * modules/fnmatch-h: New file.
18767         * modules/fnmatch (Files): Remove lib/fnmatch.in.h.
18768         (Dependencies): Add fnmatch-h. Remove extensions, snippet/*. Change
18769         conditions.
18770         (configure.ac): Test HAVE_FNMATCH and REPLACE_FNMATCH. Set module
18771         indicator.
18772         (Makefile.am): Remove code that is moved to fnmatch-h.
18773         * modules/fnmatch-gnu (configure.ac): Test HAVE_FNMATCH and
18774         REPLACE_FNMATCH.
18775         * doc/posix-headers/fnmatch.texi: Mention the 'fnmatch-h' module.
18776         * modules/posixcheck (Depends-on): Add fnmatch-h.
18778 2018-08-06  Bruno Haible  <bruno@clisp.org>
18780         Enable more C++ tests.
18781         * modules/inttypes-tests (Depends-on): Add inttypes-c++-tests.
18782         * modules/monetary-tests (Depends-on): Add monetary-c++-tests.
18783         * modules/strings-tests (Depends-on): Add strings-c++-tests.
18784         * modules/sys_resource-tests (Depends-on): Add sys_resource-c++-tests.
18785         * modules/utime-h-tests (Depends-on): Add utime-h-c++-tests.
18787 2018-08-06  Bruno Haible  <bruno@clisp.org>
18789         getopt-posix, utime-h: Ensure the .h file gets regenerated when needed.
18790         * modules/getopt-posix (Makefile.am): Add Makefile dependency for
18791         getopt.h.
18792         * modules/utime-h (Makefile.am): Add Makefile dependency for utime.h.
18794 2018-08-05  Bruno Haible  <bruno@clisp.org>
18796         utime-h: Generate header file when module 'posixcheck' is in use.
18797         * m4/utime_h.m4 (gl_UTIME_H): If module 'posixcheck' is in use, set
18798         UTIME_H to non-empty.
18800 2018-08-05  Bruno Haible  <bruno@clisp.org>
18802         monetary: Generate header file when module 'posixcheck' is in use.
18803         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If module 'posixcheck' is in
18804         use, set MONETARY_H to non-empty.
18806 2018-08-05  Bruno Haible  <bruno@clisp.org>
18808         iconv-h: Generate header file when module 'posixcheck' is in use.
18809         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If module 'posixcheck' is in use,
18810         set ICONV_H to non-empty.
18812 2018-08-05  Bruno Haible  <bruno@clisp.org>
18814         Optimize the "checking whether ... is declared without a macro" checks.
18815         Suggested by Paul Eggert in
18816         <https://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00339.html>.
18817         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Expand to nothing if the
18818         Gnulib module 'posixcheck' is not in use.
18820 2018-08-05  Bruno Haible  <bruno@clisp.org>
18822         iconv-h: Enable 'posixcheck' warnings.
18823         * m4/iconv_h.m4 (gl_ICONV_H): Check for declarations of iconv and
18824         iconv_open.
18825         * lib/iconv.in.h (iconv_open, iconv): Use _GL_WARN_ON_USE.
18827 2018-08-05  Bruno Haible  <bruno@clisp.org>
18829         Fix link error regarding 'rpl_environ' (regression from 2012-11-21).
18830         * m4/extern-inline.m4: Add more comments.
18831         * lib/warn-on-use.h (_GL_WARN_ON_USE_ATTRIBUTE): New macro.
18832         * lib/unistd.in.h (rpl_environ): Use it instead of _GL_WARN_ON_USE.
18833         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL): Likewise.
18835 2018-08-04  Bruno Haible  <bruno@clisp.org>
18837         New module 'posixcheck'.
18838         * modules/posixcheck: New file.
18839         * m4/posixcheck.m4: New file.
18840         * doc/gnulib-tool.texi (Finding POSIX substitutes): New section.
18841         (Which modules?): Reference it.
18843 2018-08-01  Assaf Gordon  <assafgordon@gmail.com>
18845         dfa: fix memory leak
18846         * lib/dfa.c (dfafree): Add missing free() on dfa->superset.
18848 2018-08-01  Paul Eggert  <eggert@cs.ucla.edu>
18850         ieee754-h: new module
18851         It looks like Emacs can use this for some NaN processing.
18852         Emacs uses it only on double NaNs so it should be safe.
18853         * MODULES.html.sh (func_all_modules): Add ieee754-h.
18854         * config/srclist.txt: Mention ieee754.h in a comment.
18855         * doc/glibc-headers/ieee754.texi (ieee754.h):
18856         Gnulib now has a substitute that should work
18857         except for long double and for non-IEEE platforms.
18858         * lib/ieee754.in.h, m4/ieee754-h.m4, modules/ieee754-h:
18859         * modules/ieee754-h-tests, tests/test-ieee754-h.c: New files.
18861 2018-07-27  Bruno Haible  <bruno@clisp.org>
18863         iswcntrl: Mention minor problem on macOS.
18864         * doc/posix-functions/iswcntrl.texi: Mention oddity on macOS.
18866 2018-07-26  Colin Watson  <cjwatson@debian.org>
18868         bootstrap, gnulib-tool: fix translations rsync
18869         Previously, we created files such as $pobase/Makefile.in.in and then the
18870         subsequent rsync would immediately delete them.
18871         * build-aux/bootstrap (po_download_command_format): Avoid deleting
18872         non-.po files in target directory when rsyncing translations.
18873         * gnulib-tool (func_import): Likewise.
18874         * pygnulib/GLImport.py (GLImport.execute): Likewise.
18876 2018-07-25  Jim Meyering  <meyering@fb.com>
18878         bootstrap: reinstate definition fo gnulib_mk.
18879         That variable is used at least by cppi.
18880         * build-aux/bootstrap (gnulib_mk): Restore definition.
18881         This reverts the deletion from v0.1-1844-gc66dba9ba.
18883 2018-07-23  Bruno Haible  <bruno@clisp.org>
18885         doc: For module names, use texinfo markup @code{} or @samp{}.
18886         * doc/alloca.texi: Mark gnulib module names with @code.
18887         * doc/alloca-opt.texi: Likewise.
18888         * doc/quote.texi: Likewise.
18889         * doc/posix-functions/freopen.texi: Likewise.
18890         * doc/posix-functions/open.texi: Likewise.
18891         * doc/posix-functions/readlink.texi: Likewise.
18892         * doc/posix-functions/readlinkat.texi: Likewise.
18893         * doc/posix-functions/stdout.texi: Likewise.
18894         * doc/posix-functions/stderr.texi: Likewise.
18895         * doc/posix-functions/unlink.texi: Likewise.
18896         * doc/posix-functions/unlinkat.texi: Likewise.
18897         * doc/posix-functions/utime.texi: Likewise.
18898         * doc/posix-functions/utimensat.texi: Likewise.
18899         * doc/posix-functions/utimes.texi: Likewise.
18900         * doc/posix-headers/stdint.texi: Likewise.
18901         * doc/glibc-functions/futimesat.texi: Likewise.
18902         * doc/glibc-functions/lutimes.texi: Likewise.
18903         * doc/glibc-functions/memmem.texi: Likewise.
18905 2018-07-23  Werner LEMBERG  <wl@gnu.org>
18907         doc: Avoid some overfull lines in the TeX output.
18908         * doc/glibc-functions/futimesat.texi: Replace a long @code with a
18909         @example.
18910         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Insert a
18911         newline before the long URL.
18912         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Likewise.
18913         * doc/relocatable-maint.texi: Use @smallexample instead of @example.
18914         Add line breaks in code snippets.
18916 2018-07-17  Paul Eggert  <eggert@cs.ucla.edu>
18918         hard-locale: simplify by removing hard-locale.m4
18919         * m4/hard-locale.m4: Remove.
18920         * modules/hard-locale (Files): Remove m4/hard-locale.m4.
18921         (configure.ac): Do not call gl_HARD_LOCALE.
18923         gnulib-tool: limit line length for git send-email
18924         * gnulib-tool (func_import): Break actioncmd log line
18925         into multiple lines.
18927 2018-07-16  Bruno Haible  <bruno@clisp.org>
18929         ffs: Ensure declaration on mingw.
18930         Reported by Daniel P. Berrangé <berrange@redhat.com>
18931         in https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00061.html.
18932         * m4/ffs.m4 (gl_FUNC_FFS): Check whether ffs() not only exists but is
18933         also declared.
18935 2018-07-13  Paul Eggert  <eggert@cs.ucla.edu>
18937         regex-tests: add dependency
18938         * modules/regex-tests (Depends-on): Add gettext-h.
18939         This is needed given the recent changes to regex,
18940         which no longer depends on gettext-h.
18942 2018-07-06  Paul Eggert  <eggert@cs.ucla.edu>
18944         regex: now in sync with glibc
18945         * config/srclist.txt: Gnulib and glibc regex code
18946         are synchronized again.
18948 2018-07-05  Paul Eggert  <eggert@cs.ucla.edu>
18950         renameatu: rename from renameat2
18951         It's looking like Glibc will add a renameat2 function
18952         that is incompatible with Gnulib renameat2; see:
18953         https://sourceware.org/ml/libc-alpha/2018-07/msg00064.html
18954         To help avoid future confusion, rename renameat2 to something else.
18955         Use the name 'renameatu', as the Gnulib function is close to the
18956         Glibc function.  Perhaps someday there will also be a renameat2
18957         Gnulib module, which mimicks the future glibc renameat2, but that
18958         can wait as nobody seems to need such a module now.
18959         * NEWS: Mention this.
18960         * lib/renameatu.c: Rename from lib/renameat2.c.
18961         * lib/renameatu.h: Rename from lib/renameat2.h.
18962         * modules/renameatu: Rename from modules/renameat2.
18963         * modules/renameatu-tests: Rename from modules/renameat2-tests.
18964         All uses of "renameat2" in identifiers or file name
18965         changed to "renameatu", except for two instances in
18966         lib/renameatu.c that deal with the Linux kernel's
18967         renameat2 syscall.
18969 2018-07-04  Paul Eggert  <eggert@cs.ucla.edu>
18971         gnulib-tool: minor tweaks for --gnu-make
18972         * gnulib-tool: Do not allow --gnu-make in test modes,
18973         since they all require automake.
18974         (func_emit_lib_Makefile_am): Don’t emit automake comment
18975         if --gnu-make.
18977         regex: work around conditional-dependencies glitch
18978         * modules/regex (Depends-on): Add langinfo.
18979         Without this change, I had problems building an experimental
18980         version of GNU Emacs.  The symptom of the bug was a message
18981         ‘./configure: line 12726: test: =: unary operator expected’.
18982         This was due to a line in gl_FUNC_NL_LANGINFO that invokes
18983         ‘test $HAVE_LANGINFO_CODESET = 1’ even though HAVE_LANGINFO_CODESET
18984         was unset.  Although gl_FUNC_NL_LANGINFO has
18985         ‘AC_REQUIRE([gl_LANGINFO_H])’ and gl_LANGINFO_H always sets
18986         HAVE_LANGINFO_CODESET to 0 or 1, gnulib-tool with
18987         --conditional-dependencies sometimes arranges for the
18988         gl_FUNC_NL_LANGINFO code to be executed before the gl_LANGINFO_H
18989         code.  Since the regex code includes <langinfo.h> it should be
18990         depending on the langinfo module anyway, and this happens to work
18991         around the bug, so install that as a workaround for now.  To
18992         reproduce the original problem, run the following shell script on
18993         the version of Gnulib just before this patch was installed.
18994                 rm -fr foo
18995                 mkdir foo
18996                 cat >foo/configure.ac <<'EOF'
18997                 AC_INIT(GNU Emacs, 27.0.50, bug-gnu-emacs@gnu.org, , https://www.gnu.org/software/emacs/)
18998                 gl_EARLY
18999                 gl_INIT
19000                 AC_OUTPUT
19001                 EOF
19002                 ./gnulib-tool --import --conditional-dependencies --gnu-make --dir foo regex
19003                 ./gnulib-tool --copy build-aux/install-sh foo/install-sh
19004                 ./gnulib-tool --copy build-aux/config.sub foo/config.sub
19005                 ./gnulib-tool --copy build-aux/config.guess foo/config.guess
19006                 cd foo
19007                 aclocal -I m4
19008                 autoconf
19009                 ./configure --with-included-regex
19011 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
19013         wchar: fix bug when checking for ‘inline’
19014         I discovered this when looking into using the regex module
19015         with Emacs.
19016         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Fix bug introduced in
19017         2016-08-17T23:09:38Z!skunk@iSKUNK.ORG; the code compiled
19018         conftest1.c and conftest2.c but these files were not created.
19019         As far as I can see, this check never worked and nobody reported
19020         it until now, which is a bit worrisome.
19022 2018-06-30  Jim Meyering  <meyering@fb.com>
19024         bootstrap: s/--option val/--option=val/
19025         * build-aux/bootstrap (gnulib_tool_options): Change the
19026         spelling of "--option val" pairs to "--option=val", for
19027         aesthetics, and also so that this file no longer triggers
19028         a common help2man syntax-check warning when copied into
19029         projects like grep, gzip, etc.
19031 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
19033         manywarnings: omit -Wswitch-default
19034         This should make things more consistent, as we already ignore
19035         -Wswitch-enum.  Problem reported by Reuben Thomas; see:
19036         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00179.html
19037         * build-aux/g++-warning.spec, build-aux/gcc-warning.spec:
19038         Add -Wswitch-default.
19039         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
19040         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
19041         Remove -Wswitch-default.
19043         regex: revert most trimming
19044         Problems reported by Bruno Haible in:
19045         https://lists.gnu.org/r/bug-gnulib/2018-07/msg00001.html
19046         * modules/regex (Depends-on): Add lock, memcmp, memmove,
19047         and wctype back in.  lock because regex users shouldn’t
19048         need to know that regex needs locking, and the rest because
19049         gnulib-tool should ordinarily ignore them anyway.
19051 2018-06-30  Paul Eggert  <eggert@cs.ucla.edu>
19053         regex: trim module dependencies
19054         * modules/regex (Depends-on): Remove gettext-h and lock,
19055         since the regex code should work OK without these modules,
19056         and Emacs uses it that way.  Also remove memcmp, memmove,
19057         and wctype, as these modules are obsolete and should not be
19058         needed any more.
19060 2018-06-29  Paul Eggert  <eggert@cs.ucla.edu>
19062         regex: glibc does not use intprops.h
19063         Maybe we can talk glibc into using intprops.h someday, but
19064         now doesn’t seem to be a good time.
19065         * lib/regcomp.c (TYPE_SIGNED): Remove; regex_internal.h now defines.
19066         * lib/regex_internal.h [_LIBC]: Do not include intprops.h.
19067         (TYPE_SIGNED, INT_ADD_WRAPV): New macros.
19069 2018-06-28  Paul Eggert  <eggert@cs.ucla.edu>
19071         regex: port to recently proposed glibc regex merge
19072         This patch is inspired by Adhemerval Zanella's recent proposal
19073         https://www.sourceware.org/ml/libc-alpha/2018-06/msg00905.html
19074         to merge glibc and Gnulib regex.  It aims to simplify the merge on
19075         the glibc side, without keeping Gnulib portable.
19076         * lib/regex.h: Fix a problem with glibc installed-header checking,
19077         as follows:
19078         (_Restrict_): Prefer __restrict if defined or if GCC 2.95 or later.
19079         (_Restrict_arr_): Prefer __restrict_arr if defined,
19080         otherwise prefer _Restrict_ if C99 or GCC 3.1 or later (but not C++).
19081         * lib/regex_internal.c (re_string_realloc_buffers, build_wcs_buffer)
19082         (build_wcs_upper_buffer, build_upper_buffer)
19083         (re_string_translate_buffer, re_string_context_at):
19084         Move decls here from lib/regex_internal.h, for glibc internal tests.
19085         (build_wcs_upper_buffer): Use __wcrtomb, not wcrtomb, fixing
19086         glibc BZ #18496.
19087         * lib/regex_internal.h (lock_fini) [_LIBC]: Cast to 0 to pacify
19088         -Wunused-value.
19089         (bitset_set, bitset_clear, bitset_contain, bitset_empty)
19090         (bitset_set_all, bitset_copy, bitset_not, bitset_merge)
19091         (bitset_mask): Now static inline, and without any __attribute__
19092         ((unused)) decoration, for glibc internal tests.
19094 2018-06-25  Bruno Haible  <bruno@clisp.org>
19096         threadlib: Fix LIBMULTITHREAD on platforms where --as-needed is enabled.
19097         Reported by Erik Auerswald <auerswal@unix-ag.uni-kl.de>
19098         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00063.html>.
19099         * m4/threadlib.m4 (gl_THREADLIB_BODY): Check whether the linker supports
19100         --as-needed/--no-as-needed and --push-state/--pop-state. When defining
19101         USE_POSIX_THREADS_WEAK or USE_SOLARIS_THREADS_WEAK or
19102         USE_PTH_THREADS_WEAK, define LIBMULTITHREAD in such a way that -lpthread
19103         / -lthread / -lpth does not get optimized away by a preceding
19104         --as-needed option.
19106 2018-06-25  Bruno Haible  <bruno@clisp.org>
19108         Continue to use spaces for indentation, not tabs.
19109         * MODULES.html.sh: Untabify.
19110         * doc/regex.texi: Likewise.
19111         * lib/acl-internal.c: Likewise.
19112         * lib/dfa.c: Likewise.
19113         * lib/exclude.c: Likewise.
19114         * lib/exclude.h: Likewise.
19115         * lib/get-permissions.c: Likewise.
19116         * lib/gettimeofday.c: Likewise.
19117         * lib/parse-datetime.y: Likewise.
19118         * lib/pselect.c: Likewise.
19119         * lib/set-permissions.c: Likewise.
19120         * lib/time.in.h: Likewise.
19121         * m4/canonicalize.m4: Likewise.
19122         * m4/gc.m4: Likewise.
19123         * m4/gnulib-common.m4: Likewise.
19124         * m4/pthread_sigmask.m4: Likewise.
19125         * m4/vararrays.m4: Likewise.
19126         * tests/test-digest.h: Likewise.
19127         * tests/test-fcntl-h.c: Likewise.
19128         * tests/test-timespec.c: Likewise.
19129         * tests/uniwbrk/test-uc-wordbreaks.c: Likewise.
19131 2018-06-25  Bruno Haible  <bruno@clisp.org>
19133         manywarnings: Don't enable -Wjump-misses-init warnings by default.
19134         * build-aux/gcc-warning.spec: Add -Wjump-misses-init.
19135         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): Remove
19136         -Wjump-misses-init.
19138 2018-06-25  Jim Meyering  <meyering@fb.com>
19140         acl-internal.h: remove _GL_ATTRIBUTE_CONST on void function
19141         * lib/acl-internal.h (free_permission_context): Remove that
19142         attribute directive.  Otherwise, it would provoke this from GCC 9:
19143         lib/acl-internal.h:300:3: error: 'const' attribute on function \
19144           returning 'void' [-Werror=attributes]
19146 2018-06-24  Jim Meyering  <meyering@fb.com>
19148         parse-datetime: accommodate gcc-4.8.5
19149         Bruno Haible reported the build failure in
19150         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00066.html
19151         * lib/parse-datetime.y (parse_datetime2): Remove leading "static"
19152         on declaration of new local.
19154 2018-06-24  Bruno Haible  <bruno@clisp.org>
19156         af_alg: Fail in continuable manner on Linux/powerpc64le.
19157         Reported by Assaf Gordon <assafgordon@gmail.com>
19158         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00034.html>.
19159         * lib/af_alg.c (afalg_stream): On non-seekable streams, try a single-
19160         byte send() as the first round.
19162 2018-06-24  Bruno Haible  <bruno@clisp.org>
19164         af_alg: Fix state of stream after sendfile() succeeds.
19165         * lib/af_alg.c (afalg_stream): Invoke fflush and lseek, to ensure that
19166         the stream is correctly positioned afterwards.
19167         * modules/crypto/af_alg (Depends-on): Add fflush.
19168         * tests/test-digest.h (test_digest_on_files): Verify that after the
19169         operation the stream is positioned at end of file.
19171 2018-06-24  Jim Meyering  <meyering@fb.com>
19173         canon-host: take GCC9's advice rather than ignoring warning
19174         Pádraig Brady suggested not to ignore this GCC9 advice.
19175         * lib/canon-host.c: Undo preceding change.
19176         * lib/canon-host.h: Instead, declare with _GL_ATTRIBUTE_MALLOC.
19178         parse-datetime.y: avoid spurious GCC 9 warning
19179         * lib/parse-datetime.y (parse_datetime2): Save RELATIVE_TIME_0 into
19180         a function local prior to the first "goto fail".  The prior use would
19181         evoke this:
19182         parse-datetime.y: In function 'parse_datetime2':
19183         parse-datetime.y:1791:19: error: jump skips variable initialization \
19184           [-Werror=jump-misses-init]
19185         parse-datetime.y:2385:2: note: label 'fail' defined here
19186         parse-datetime.y:188:43: note: '({anonymous})' declared here
19187         parse-datetime.y:1841:12: note: in expansion of macro 'RELATIVE_TIME_0'
19189         canon-host.c: avoid spurious GCC 9 warning
19190         * lib/canon-host.c: Suppress GCC9's -Wsuggest-attribute=malloc.
19192         manywarnings: accommodate GCC 9.0-pre: remove -Wchkp and -Wabi
19193         * build-aux/gcc-warning.spec: Add them here, each with an explanation.
19194         * m4/manywarnings.m4: Remove them.
19195         Otherwise, building coreutils, I would see this:
19196         cc1: error: deprecated command line option '-Wchkp' [-Werror]
19197         cc1: error: -Wabi won't warn about anything [-Werror=abi]
19198         cc1: note: -Wabi warns about differences from the most up-to-date ABI,\
19199           which is also used by default
19200         cc1: note: use e.g. -Wabi=11 to warn about changes from GCC 7
19202 2018-06-24  Bruno Haible  <bruno@clisp.org>
19204         af_alg tests: Add another test.
19205         * tests/test-digest.h (test_digest_on_files): Also check a large file
19206         with a skipped header.
19207         * tests/test-md5.c: Include macros.h.
19208         * tests/test-sha1.c: Likewise.
19209         * tests/test-sha256.c: Likewise.
19210         * tests/test-sha512.c: Likewise.
19211         * modules/crypto/md5-tests (Files): Add tests/macros.h.
19212         * modules/crypto/sha1-tests (Files): Likewise.
19213         * modules/crypto/sha256-tests (Files): Likewise.
19214         * modules/crypto/sha512-tests (Files): Likewise.
19216 2018-06-24  Pádraig Brady  <P@draigBrady.com>
19218         maint: clarify comments about sticky EOF
19219         * lib/af_alg.c: Be more direct that we can't
19220         assume stickiness of EOF for portability reasons.
19221         * lib/md5.c: Clarify that this isn't just a glibc issue.
19222         * lib/sha1.c: Likewise.
19223         * lib/sha256.c: Likewise.
19224         * lib/sha512.c: Likewise.
19226 2018-06-24  Bruno Haible  <bruno@clisp.org>
19228         af_alg: Comment and style improvements.
19229         * lib/af_alg.c (alg_socket): Use 'size_t' as index into a string.
19230         (afalg_buffer, afalg_stream): Improve comments.
19232 2018-06-24  Pádraig Brady  <P@draigBrady.com>
19234         af_alg: disable kernel hash functions by default
19235         All the kernel routines were seen to be significantly slower
19236         with these relatively recent components on an i3-2310M system:
19237           kernel-4.10.6-200.fc25.x86_64
19238           openssl-1.0.2m-1.fc25.x86_64
19239         sha1 was nearly twice as slow in the kernel for example.
19240         Further considerations why this should not be the default, at:
19241         https://lists.gnu.org/r/coreutils/2018-06/msg00034.html
19243         * m4/af_alg.m4: Require --with-linux-crypto to enable.
19244         * m4/gl-openssl.m4: Tweak accordingly.
19246 2018-06-24  Pádraig Brady  <P@draigBrady.com>
19248         af_alg: avoid hangs when reading from streams
19249         * lib/af_alg.c (afalg_stream): Don't assume EOF is sticky,
19250         and thus avoid doing a fread() when feof() is set.
19251         * lib/md5.c: Ensure feof() is called before fread().
19252         * lib/sha1.c: Likewise.
19253         * lib/sha256.c: Likewise.
19254         * lib/sha512.c: Likewise.
19256 2018-06-24  Pádraig Brady  <P@draigBrady.com>
19258         af_alg: fix error handling when hash not returned
19259         * lib/af_alg.c (afalg_stream): Handle the case where we've
19260         successfully written data to the kernel in the read/write loop,
19261         but the kernel doesn't respond with the hash.
19263 2018-06-24  Paul Eggert  <eggert@cs.ucla.edu>
19265         libc-config: merge from glibc
19266         * lib/cdefs.h (__inline, __restrict):
19267         Copy from current glibc.  This fixes glibc bug 17721,
19268         which Gnulib had already fixed in a different way.
19269         (__nonnull): Lessen the distance from glibc by using the
19270         glibc definition inside an ‘#ifndef __nonnull’.
19271         (__attribute_nonstring__): New macro, copied from
19272         current glibc.
19273         * lib/libc-config.h (__attribute_nonstring__): New undef.
19274         (__restrict): Remove; workaround no longer needed.
19275         Keep the __inline workaround, though, as it uses HAVE___INLINE to
19276         support more compilers than the glibc __inline can.
19278 2018-06-24  Bruno Haible  <bruno@clisp.org>
19280         mbrtowc, wcwidth: Fix MT-safety bug (regression from 2018-06-23).
19281         * lib/mbrtowc.c (enc_t): New enum type.
19282         (locale_enc, locale_enc_cached): New functions.
19283         (mbrtowc): Eliminate static variables. Use locale_enc_cached instead.
19284         * lib/wcwidth.c (is_locale_utf8, is_locale_utf8_cached): New functions.
19285         (wcwidth): Eliminate static variables. Use is_locale_utf8_cached
19286         instead.
19287         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Require AC_C_INLINE.
19288         * m4/wcwidth.m4 (gl_PREREQ_WCWIDTH): New macro.
19289         * modules/wcwidth (configure.ac): Invoke it.
19291 2018-06-24  Bruno Haible  <bruno@clisp.org>
19293         wchar-single: Fix test failure in wcwidth tests.
19294         * tests/test-wcwidth.c (main): If the wchar-single module is present,
19295         skip the tests in the C locale.
19297 2018-06-23  Pádraig Brady  <P@draigBrady.com>
19299         crypto: mention --without-linux-crypto in --with-openssl --help
19300         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Mention that linux crypto
19301         routines take precedence in --with-openssl help output.
19303 2018-06-23  Pádraig Brady  <P@draigBrady.com>
19305         wchar-single: a new module to enable optimizations in wchar replacements
19306         * lib/mbrtowc.c (mbrtowc): Only check locale_charset() once if
19307         GNULIB_WCHAR_SINGLE is enabled.
19308         * lib/wcwidth.c (wcwidth): Likewise.
19310 2018-06-23  Bruno Haible  <bruno@clisp.org>
19312         libc-config: Fix conflict with FreeBSD include files.
19313         * lib/cdefs.h (__nonnull): Remove definition.
19314         * lib/libc-config.h (__nonnull): Remove undefinition.
19316 2018-06-21  Paul Eggert  <eggert@cs.ucla.edu>
19318         random_r: do not crash if state is unaligned
19319         Problem reported by Bruce Korb in:
19320         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00030.html
19321         I reproduced the crash on 32-bit sparc with Oracle Studio 12.6
19322         with 'cc -O2 -xmemalign=8s'.
19323         * lib/random_r.c: Include string.h, for memcpy.
19324         (get_int32, set_int32): New functions.
19325         (__srandom_r, __initstate_r, __setstate_r, __random_r):
19326         Use them to avoid assumption that state pointer is aligned.
19327         (__random_r): Avoid integer overflow if INT_MAX == UINT32_MAX.
19328         * tests/test-random_r.c (test_failed): New function.
19329         (main): Use it, to test for alignment bugs.
19331         random_r: omit unnecessary include
19332         * lib/random_r.c: Do not include limits.h.
19334         random, random_r: merge from glibc
19335         * lib/random.c, lib/random_r.c:
19336         Include libc-config.h if !_LIBC, not config.h unilaterally.
19337         * lib/random.c:
19338         Do not include stdint.h or time.h; not needed.
19339         Include libc-lock.h if _LIBC, and define substitute macros otherwise.
19340         (unsafe_state): Rename from generator.  All uses changed.
19341         Use C99-style initializers.
19342         (__random, __srandom, __initstate, __setstate): Rename from
19343         non-underscored version, but define it to non-underscored version
19344         on Gnulib.  Add a lock.
19345         * lib/random_r.c (__srandom_r, __initstate_r, __setstate_r, __random_r):
19346         Likewise.
19347         Do not include <stdint.h>; not needed since stdlib.h defines int32_t.
19348         (weak_alias, __set_errno) [!_LIBC]: Remove; now done by libc-config.
19349         (__srandom_r): Use int32_t instead of long int where int32_t will do.
19350         (__random_r): Use uint32 to fix glibc bug 17343.
19351         * modules/random, modules/random_r (Depends-on): Add libc-config.
19352         Depend on stdint only if $HAVE_RANDOM = 0.
19354 2018-06-19  Jim Meyering  <meyering@fb.com>
19356         README-release: also run any check-very-expensive tests
19357         * top/README-release: Adjust instructions so they run the
19358         check-very-expensive tests when there is such a target.
19360 2018-06-18  Bruno Haible  <bruno@clisp.org>
19362         pthread_rwlock_rdlock: Add comments regarding glibc behaviour.
19363         * m4/pthread_rwlock_rdlock.m4: Add comment.
19364         * doc/posix-functions/pthread_rwlock_rdlock.texi: Mention that rwlocks
19365         are reader-preferring in glibc.
19366         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likwise.
19367         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
19369 2018-06-17  Paul Eggert  <eggert@cs.ucla.edu>
19371         crypto: use byteswap
19372         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
19373         * lib/sm3.c: Include <byteswap.h>.
19374         (SWAP): Use its macros rather than reinventing the wheel.
19375         * modules/crypto/md4, modules/crypto/md5-buffer:
19376         * modules/crypto/sha1-buffer, modules/crypto/sha256-buffer:
19377         * modules/crypto/sha512-buffer, modules/crypto/sm3:
19378         (Depends-on): Add byteswap.
19380 2018-06-17  Pádraig Brady  <P@draigBrady.com>
19382         gendocs.sh: fix support for legacy --texi2html
19383         * build-aux/gendocs.sh: Restrict use of TOP_NODE_UP_URL
19384         to the default makeinfo invocation.
19385         Reported by Bruce Korb
19387 2018-06-17  Bruno Haible  <bruno@clisp.org>
19389         gettext po infrastructure: Update from current gettext git.
19390         Reported by Akim Demaille <akim@lrde.epita.fr>.
19391         * build-aux/po/Makefile.in.in: Update from current gettext git.
19392         * build-aux/po/remove-potcdate.sin: Likewise.
19393         * config/srclist.txt: Temporarily disable sync for these files.
19395 2018-06-17  Bruno Haible  <bruno@clisp.org>
19397         getloadavg: Return 0 on Windows without Cygwin.
19398         * lib/getloadavg.c: Don't assume that the symbol WINDOWS32 is defined.
19400 2018-06-17  Paul Smith  <psmith@gnu.org>
19402         getloadavg: Allow building on Windows without Cygwin
19403         * lib/getloadavg.c: Reinstate ifdef for HAVE_UNISTD_H.
19404         * m4/getloadavg.m4: Check for unistd.h.
19406 2018-06-03  Paul Eggert  <eggert@cs.ucla.edu>
19408         Port crypto/af_alg to GCC 4.8.4
19409         Problem reported by Peter Simons in:
19410         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00002.html
19411         * modules/crypto/af_alg (Depends-on): Add c99 if USE_AF_ALG.
19413 2018-05-27  Colin Watson  <cjwatson@debian.org>
19415         bootstrap: document source fetching in --help
19416         * build-aux/bootstrap (usage): Document how Gnulib sources are fetched.
19418 2018-04-09  Colin Watson  <cjwatson@debian.org>
19420         bootstrap: allow non-submodule control of gnulib
19421         * build-aux/bootstrap: Honour GNULIB_URL and GNULIB_REVISION in
19422         bootstrap.conf when fetching gnulib using "git clone" or via
19423         GNULIB_SRCDIR.
19425 2018-05-21  Paul Eggert  <eggert@cs.ucla.edu>
19427         crypto: omit stream ops Emacs doesn’t need
19428         * lib/md5.c (md5_stream):
19429         * lib/sha1.c (sha1_stream):
19430         * lib/sha256.c (shaxxx_stream, sha256_stream, sha224_stream):
19431         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
19432         Compile stream functions only if GL_COMPILE_CRYPTO_STREAM is
19433         defined.  Emacs needs this, as it does not use the stream
19434         operations and doesn’t need all the af_alg stuff we’ve recently
19435         added.  Perhaps a similar change is needed to the other crypto
19436         modules, but this patch changes only those needed for Emacs.
19437         * modules/crypto/md5-buffer, modules/crypto/sha1-buffer:
19438         * modules/crypto/sha256-buffer, modules/crypto/sha512-buffer:
19439         New modules, used by Emacs.
19440         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
19441         * modules/crypto/sha512: Rewrite to depend on the new modules.
19443 2018-05-20  Pádraig Brady  <P@draigBrady.com>
19445         fts: avoid a memory leak edge case
19446         * lib/fts.c (fts_open): Set an appropriate fts_level
19447         so that an immediate fts_close() will free the allocation.
19448         * tests/test-fts.c (fts_dealloc): Add a test case which
19449         will trigger under valgrind or address sanitizer.
19450         Fixes https://bugs.gnu.org/31439
19452 2018-05-20  Bruno Haible  <bruno@clisp.org>
19454         wcwidth tests: Fix link error.
19455         * modules/wcwidth-tests (Makefile.am): Link test-wcwidth against
19456         $(LIBUNISTRING).
19458 2018-05-20  Bruno Haible  <bruno@clisp.org>
19460         regex: Fix "error: possibly undefined macro: gl_GLIBC21".
19461         * modules/regex (Files): Add m4/glibc21.m4.
19463 2018-05-20  Bruno Haible  <bruno@clisp.org>
19465         localcharset: Optimize.
19466         * lib/localcharset.c (alias_table): Comment out no-op mappings for
19467         platforms where these don't matter. This reduces the table size,
19468         which in turn reduces the lookup time.
19470 2018-05-19  Bruno Haible  <bruno@clisp.org>
19472         localcharset: Map the locale encodings found in newer OSes.
19473         * lib/localcharset.c (alias_table): Add mapping for locale encodings
19474         found in FreeBSD 11, NetBSD 7, Solaris 10, Openindiana, HP-UX 11.31,
19475         IRIX 6.5, Minix 3.3.
19476         * lib/localcharset.h: Update comments accordingly. Also for Cygwin 2.9.
19478 2018-05-19  Bruno Haible  <bruno@clisp.org>
19480         localcharset: Move mapping tables into the code. Use a binary search.
19481         * lib/localcharset.h: Document the GNU canonical names for character
19482         encodings here.
19483         * lib/localcharset.c: Don't include <fcntl.h>, <unistd.h>,
19484         relocatable.h, configmake.h.
19485         (O_NOFOLLOW, ISSLASH, DIRECTORY_SEPARATOR, getc, volatile): Remove
19486         macros.
19487         (charset_aliases): Remove variable.
19488         (get_charset_aliases): Remove function.
19489         (struct table_entry): New type.
19490         (alias_table, locale_table): New constants.
19491         (locale_charset): Use the alias_table or locale_table to get the
19492         canonicalized encoding name.
19493         * lib/config.charset: Remove file.
19494         * lib/ref-add.sin: Remove file.
19495         * lib/ref-del.sin: Remove file.
19496         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't require gl_FCNTL_O_FLAGS,
19497         AC_CANONICAL_HOST, gl_GLIBC21. Don't check for getc_unlocked.
19498         * modules/localcharset (Notice): Remove.
19499         (Files): Remove config.charset, ref-add.sin, ref-del.sin, fcntl-o.m4,
19500         glibc21.m4.
19501         (Depends-on): Remove configmake.
19502         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT to empty.
19503         (Makefile.am): Simplify.
19504         * build-aux/prefix-gnulib-mk: Remove special code for the removed files.
19506 2018-05-19  Bruno Haible  <bruno@clisp.org>
19508         localcharset: Add a manual test.
19509         * tests/test-localcharset.c: New file.
19510         * modules/localcharset-tests: New file.
19512 2018-05-19  Bruno Haible  <bruno@clisp.org>
19514         localcharset: Remove support for obsolete platforms.
19515         * lib/config.charset: Remove support for Linux/libc5, glibc-2.0.x, and
19516         Mac OS X 10.2. Comment out dubious entry for Solaris.
19518 2018-05-19  Jim Meyering  <meyering@fb.com>
19520         gnupload: adjust comment
19521         * build-aux/gnupload: Add FIXME-2020 comment, to make it slightly
19522         more likely we'll remove the just-added code in a year or two.
19524 2018-05-19  Bruno Haible  <bruno@clisp.org>
19526         gnupload: Fix "gpg-agent is not available in this session" error.
19527         * build-aux/gnupload (GPG): Pick the right GNUPG executable to use.
19529 2018-05-16  Paul Eggert  <eggert@cs.ucla.edu>
19531         crypto/af_alg: fix --help
19532         * m4/af_alg.m4: Avoid spurious newline in --help output.
19534 2018-05-13  Bruno Haible  <bruno@clisp.org>
19536         nl_langinfo: Fix compilation error on Android.
19537         * lib/nl_langinfo.c (nl_langinfo): Define values for the items GROUPING,
19538         INT_CURR_SYMBOL, etc. only if these items are defined.
19540 2018-05-13  Bruno Haible  <bruno@clisp.org>
19542         truncate: Fix compilation error on Android.
19543         * m4/truncate.m4 (gl_FUNC_TRUNCATE): Test also whether 'truncate' is
19544         declared. Set HAVE_DECL_TRUNCATE, not HAVE_TRUNCATE.
19545         * lib/unistd.in.h (truncate): Test HAVE_DECL_TRUNCATE, not
19546         HAVE_TRUNCATE.
19547         * modules/truncate: Likewise.
19548         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_TRUNCATE,
19549         not HAVE_TRUNCATE.
19550         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TRUNCATE, not
19551         HAVE_TRUNCATE.
19552         * doc/posix-functions/truncate.texi: Mention the issue.
19554 2018-05-13  Bruno Haible  <bruno@clisp.org>
19556         pthread: Fix compilation error on Android.
19557         * lib/pthread.in.h: Use _GL_ALREADY_INCLUDING_PTHREAD_H to shortcut
19558         recursive inclusion of this file.
19560 2018-05-13  Bruno Haible  <bruno@clisp.org>
19562         posix_spawn: Fix compilation error on Android.
19563         * lib/spawn.in.h (posix_spawnattr_t): Consider also the case
19564         HAVE_POSIX_SPAWNATTR_T = 1 && HAVE_POSIX_SPAWN = 0.
19565         (posix_spawn_file_actions_t): Consider also the case
19566         HAVE_POSIX_SPAWN_FILE_ACTIONS_T = 1 && HAVE_POSIX_SPAWN = 0.
19568 2018-05-13  Bruno Haible  <bruno@clisp.org>
19570         tsearch: Move from K&R C to ANSI C.
19571         * lib/tsearch.c (tfind): Convert definition to ANSI C.
19573 2018-05-13  Bruno Haible  <bruno@clisp.org>
19575         tsearch: Fix compilation error on Android.
19576         * lib/search.in.h (twalk): Declare when HAVE_TWALK, not HAVE_TSEARCH,
19577         is 0.
19578         (GNULIB_defined_tsearch, GNULIB_defined_twalk): New macros.
19579         * lib/tsearch.c (tsearch, tfind, tdelete): Define only if
19580         GNULIB_defined_tsearch is true.
19581         (twalk): Define only if GNULIB_defined_twalk is true.
19582         * modules/tsearch (configure.ac): Compile tsearch.c also if HAVE_TWALK
19583         is 0.
19584         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Set HAVE_TWALK.
19585         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize HAVE_TWALK.
19586         * modules/search (Makefile.am): Substitute HAVE_TWALK.
19588 2018-05-13  Bruno Haible  <bruno@clisp.org>
19590         imaxdiv: Fix compilation error on Android.
19591         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Set HAVE_IMAXDIV_T to 0 if imaxdiv_t
19592         is not defined.
19593         * lib/inttypes.in.h (imaxdiv_t): Define if HAVE_IMAXDIV_T, not
19594         HAVE_DECL_IMAXDIV, is 0.
19595         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize HAVE_IMAXDIV_T.
19596         * modules/inttypes-incomplete (Makefile.am): Substitute HAVE_IMAXDIV_T.
19598 2018-05-13  Bruno Haible  <bruno@clisp.org>
19600         Support selective inclusion mechanism of recent mingw.org header files.
19601         Reported by Eli Zaretskii <eliz@gnu.org>.
19602         * lib/sys_types.in.h: On mingw, when __need_off_t, __need___off64_t,
19603         __need_ssize_t, or __need_time_t is defined, just include the system's
19604         <sys/types.h>.
19605         * lib/locale.in.h: On mingw, when __need_locale_t is defined, just
19606         include the system's <locale.h>.
19608 2018-05-13  Bruno Haible  <bruno@clisp.org>
19610         Avoid compilation error due to 'mmap' on Android.
19611         * lib/vma-iter.c (_FILE_OFFSET_BITS): Undefine on Android.
19612         * lib/get-rusage-as.c (_FILE_OFFSET_BITS): Likewise.
19613         * tests/zerosize-ptr.h (_FILE_OFFSET_BITS, __USE_FILE_OFFSET64):
19614         Undefine on Android.
19616 2018-05-13  Bruno Haible  <bruno@clisp.org>
19618         Add cross-compilation guesses for Linux systems without glibc.
19619         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for Linux.
19620         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
19621         * m4/link.m4 (gl_FUNC_LINK): Likewise.
19622         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
19623         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
19624         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
19625         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
19626         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
19627         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
19628         * m4/readlink.m4 (gl_FUNC_READLINK): Likewise.
19629         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
19630         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
19631         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
19632         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19633         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
19634         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
19635         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
19636         * m4/utimens.m4 (gl_UTIMENS): Likewise.
19638 2018-05-13  Bruno Haible  <bruno@clisp.org>
19640         getpagesize: Fix compilation error on Android.
19641         * m4/getpagesize.m4 (gl_CHECK_FUNC_GETPAGESIZE): New macro.
19642         (gl_FUNC_GETPAGESIZE): Invoke it instead of AC_CHECK_FUNC.
19643         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't invoke
19644         AC_CHECK_FUNC. Instead, invoke gl_CHECK_FUNC_GETPAGESIZE and define
19645         HAVE_GETPAGESIZE accordingly.
19646         * modules/getcwd (Files): Add m4/getpagesize.m4.
19648 2018-05-13  Bruno Haible  <bruno@clisp.org>
19650         tcgetsid: Fix compilation error on Android.
19651         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use AC_LINK_IFELSE instead of
19652         AC_CHECK_FUNC.
19654 2018-05-13  Bruno Haible  <bruno@clisp.org>
19656         getpass: Fix configure test for Android.
19657         * m4/getpass.m4 (gl_PREREQ_GETPASS): Use AC_LINK_IFELSE instead of
19658         AC_CHECK_FUNC.
19660 2018-05-13  Bruno Haible  <bruno@clisp.org>
19662         ffs: Fix compilation error on Android.
19663         * m4/ffs.m4 (gl_FUNC_FFS): Use AC_LINK_IFELSE instead of AC_CHECK_FUNC.
19665 2018-05-13  Bruno Haible  <bruno@clisp.org>
19667         mkfifo: Fix compilation error on Android.
19668         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Use AC_LINK_IFELSE instead of
19669         AC_CHECK_FUNC.
19671 2018-05-13  Bruno Haible  <bruno@clisp.org>
19673         c-strtod: Fix configure test for Android.
19674         * m4/c-strtod.m4 (gl_C_STRTOD): Use AC_LINK_IFELSE instead of
19675         AC_CHECK_FUNC.
19677 2018-05-13  Bruno Haible  <bruno@clisp.org>
19679         random: Fix compilation error on Android.
19680         * m4/random.m4 (gl_FUNC_RANDOM): Use AC_LINK_IFELSE instead of
19681         AC_CHECK_FUNC.
19683 2018-05-13  Bruno Haible  <bruno@clisp.org>
19685         grantpt: Fix compilation error on Android.
19686         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Use AC_LINK_IFELSE instead of
19687         AC_CHECK_FUNC.
19689 2018-05-13  Bruno Haible  <bruno@clisp.org>
19691         stdioext: Fix compilation errors with newer Android headers.
19692         * lib/stdio-impl.h (fp_, fp_ub): Define differently for Android.
19693         (__SLBF, __SNBF, __SRD, __SWR, __SRW, __SEOF, __SERR, __SOFF): Define
19694         fallbacks for Android.
19695         * lib/fpending.c: Update comments.
19696         * lib/fpurge.c: Likewise.
19697         * lib/freadable.h: Likewise.
19698         * lib/freadable.c: Likewise.
19699         * lib/freadahead.c: Likewise.
19700         * lib/freading.h: Likewise.
19701         * lib/freadptr.c: Likewise.
19702         * lib/fseterr.c: Likewise.
19703         * lib/fwritable.h: Likewise.
19704         * lib/fwritable.c: Likewise.
19705         * lib/fwriting.h: Likewise.
19706         * lib/fwriting.c: Likewise.
19708 2018-05-13  Bruno Haible  <bruno@clisp.org>
19710         doc: Add info about Android versions 2.0 to 8.1.
19711         * doc/**/*.texi: Add info about functions in all released versions of
19712         Bionic.
19714 2018-05-12  Bruno Haible  <bruno@clisp.org>
19716         fseeko: On mingw, don't use the hidden function _fseeki64.
19717         Reported by Eli Zaretskii <eliz@gnu.org>.
19718         * m4/fseeko.m4 (gl_PREREQ_FSEEKO): Test whether _fseeki64 is declared.
19719         * lib/fseeko.c (fseeko): Use _fseeki64 only if it is declared.
19721 2018-05-12  Bruno Haible  <bruno@clisp.org>
19723         glob: Choose 'dirent_type' in a way that works better on mingw.
19724         Reported and suggested by Eli Zaretskii <eliz@gnu.org>.
19725         * lib/glob.c (dirent_type): Define as uint_fast32_t.
19727 2018-05-12  Bruno Haible  <bruno@clisp.org>
19729         execute, spawn-pipe: Avoid warning about redefining 'close'.
19730         Reported by Eli Zaretskii <eliz@gnu.org>.
19731         * lib/execute.c: Undefine 'close' before redefining it.
19732         * lib/spawn-pipe.c: Likewise.
19734 2018-05-12  Bruno Haible  <bruno@clisp.org>
19736         nanosleep: Avoid test failure on mingw when it has nanosleep.
19737         Reported by Eli Zaretskii <eliz@gnu.org>.
19738         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check whether alarm() exists.
19739         If it does not exist, use a simpler test program that does not call
19740         alarm().
19742 2018-05-10  Bruno Haible  <bruno@clisp.org>
19744         lock, cond, thread, tls: Use a different symbol as libpthread witness.
19745         Reported by Devin Hussey <husseydevin@gmail.com>.
19746         Based on a patch by Paul Eggert.
19747         * lib/glthread/lock.h (pthread_in_use): Use 'pthread_mutexattr_gettype'
19748         as witness of libpthread.
19749         * lib/glthread/cond.h (pthread_in_use): Likewise.
19750         * lib/glthread/thread.h (pthread_in_use): Likewise.
19751         * lib/glthread/tls.h (pthread_in_use): Likewise.
19753 2018-05-10  Bruno Haible  <bruno@clisp.org>
19755         cond tests: Fix compilation error on Solaris.
19756         * tests/test-cond.c: Include <unistd.h> before defining 'yield' as a
19757         macro.
19759 2018-05-10  Bruno Haible  <bruno@clisp.org>
19761         doc: Add partial info about Android 4.3.
19762         * doc/*-functions/*.texi: Add info about functions that were added
19763         to Bionic between Android 4.3 and Android 9.0.
19765 2018-05-10  Bruno Haible  <bruno@clisp.org>
19767         doc: Add info about Android 9.0.
19768         * doc/**/*.texi: Add info about functions and headers in Bionic from
19769         Android 9.0.
19771 2018-05-09  Paul Eggert  <eggert@cs.ucla.edu>
19773         af_alg: fix my typo in afalg_buffer
19774         * lib/af_alg.c (afalg_buffer): Fix typo I recently introduced.
19775         (afalg_stream): Simplify and avoid the need for a runtime test
19776         at the end.
19778         af_alg: recover better from crypto failures
19779         * lib/af_alg.c (afalg_stream): Recover from crypto failures if the
19780         input stream is seekable, by repositioning the stream back to
19781         where it was, possibly by just calling sendfile with an offset
19782         arg.  This lets us return -EAFNOSUPPORT instead of -EIO in some
19783         cases, which lets our callers try again with user-mode code.
19784         * modules/crypto/af_alg (Depends-on): Depend on fseeko and ftello
19785         instead of on fflush and lseek.
19787         af_alg: distiguish I/O errors better
19788         * lib/af_alg.c (afalg_buffer, afalg_stream): Return -EAFNOSUPPORT,
19789         not -EIO, if it’s OK for the caller to try again with user-mode code.
19790         (afalg_stream) [!_WIN32 || __CYGWIN__]: Return -EIO (not possibly
19791         some other error number) if fflush fails, as the caller should not
19792         try again that case.
19794         af_alg: avoid gotos
19795         * lib/af_alg.c (afalg_buffer, afalg_stream): Rewrite to avoid
19796         gotos, as they were a source of unreliability and made the code a
19797         bit harder to follow.
19799         af_alg: don’t leak file descriptors into children
19800         * lib/af_alg.c (alg_socket): Use SOCK_CLOEXEC when creating sockets.
19801         This code should be compiled only on recent GNU/Linux platforms
19802         so we shouldn’t have to also depend on the accept4 module.
19804         af_alg: coalesce socket creation
19805         * lib/af_alg.c (alg_socket): New function.
19806         (afalg_buffer, afalg_stream): Use it.  This avoids some
19807         code duplication and gotos.
19809         af_alg: fix file descriptor leak
19810         * lib/af_alg.c (afalg_stream): Close leak.
19812         af_alg: Pacify --enable-gcc-warnings on GCC 8
19813         * lib/af_alg.c (afalg_buffer, afalg_stream): Reorder local decls
19814         and checking to pacify gcc -Wjump-misses-init on GCC 8.
19816 2018-05-07  Paul Eggert  <eggert@cs.ucla.edu>
19818         af_alg: Pacify --enable-gcc-warnings
19819         Problem reported by Assaf Gordon in:
19820         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00041.html
19821         * lib/af_alg.c (afalg_buffer): Move local decls to pacify
19822         gcc -Wjump-misses-init.
19823         * lib/sha512.c (shaxxx_stream): Now static.
19825 2018-05-06  Bruno Haible  <bruno@clisp.org>
19827         af_alg: Add ability to use Linux kernel crypto API on data in memory.
19828         * lib/af_alg.h (afalg_buffer): New declaration.
19829         * lib/af_alg.c (afalg_buffer): New function.
19831 2018-05-06  Bruno Haible  <bruno@clisp.org>
19833         af_alg: Avoid warnings.
19834         * lib/af_alg.h (afalg_stream): Mark fallback declaration as inline.
19835         * m4/af_alg.m4 (gl_AF_ALG): Require AC_C_INLINE.
19837 2018-05-06  Bruno Haible  <bruno@clisp.org>
19839         crypto/{md5,sha1,sha256,sha512} tests: Add benchmarks.
19840         * tests/bench-digest.h: New file.
19841         * tests/bench-md5.c: New file.
19842         * tests/bench-sha1.c: New file.
19843         * tests/bench-sha224.c: New file.
19844         * tests/bench-sha256.c: New file.
19845         * tests/bench-sha384.c: New file.
19846         * tests/bench-sha512.c: New file.
19847         * modules/crypto/md5-tests (Files): Add tests/bench-md5.c,
19848         tests/bench-digest.h.
19849         (Depends-on): Add getrusage, gettimeofday.
19850         (Makefile.am): Add variables to build bench-md5.
19851         * modules/crypto/sha1-tests (Files): Add tests/bench-sha1.c,
19852         tests/bench-digest.h.
19853         (Depends-on): Add getrusage, gettimeofday.
19854         (Makefile.am): Add variables to build bench-sha1.
19855         * modules/crypto/sha256-tests (Files): Add tests/bench-sha224.c,
19856         tests/bench-sha256.c, tests/bench-digest.h.
19857         (Depends-on): Add getrusage, gettimeofday.
19858         (Makefile.am): Add variables to build bench-sha224, bench-sha256.
19859         * modules/crypto/sha512-tests (Files): Add tests/bench-sha384.c,
19860         tests/bench-sha512.c, tests/bench-digest.h.
19861         (Depends-on): Add getrusage, gettimeofday.
19862         (Makefile.am): Add variables to build bench-sha384, bench-sha512.
19864 2018-05-06  Bruno Haible  <bruno@clisp.org>
19866         af_alg: Fix a resource leak.
19867         * lib/af_alg.c (afalg_stream): Close socket before returning -EINVAL.
19868         New local variable 'result'.
19870 2018-05-06  Bruno Haible  <bruno@clisp.org>
19872         af_alg: Fix bug with streams that are not at position 0.
19873         * lib/af_alg.c (afalg_stream): Before sendfile, invoke fflush. Don't
19874         assume that the stream is positioned at position 0.
19875         * lib/af_alg.h (afalg_stream): Mention restriction regarding the state
19876         of the stream.
19877         * lib/md5.h (md5_stream): Likewise.
19878         * lib/sha1.h (sha1_stream): Likewise.
19879         * lib/sha256.h (sha256_stream, sha224_stream): Likewise.
19880         * lib/sha512.h (sha512_stream, sha384_stream): Likewise.
19881         * modules/crypto/af_alg (Depends-on): Add fflush, lseek.
19883         crypto/{md5,sha1,sha256,sha512} tests: Enhance test.
19884         * tests/test-digest.h (test_digest_on_files): Add a test with a FILE
19885         stream that is not positioned at the beginning.
19887 2018-05-06  Bruno Haible  <bruno@clisp.org>
19889         af_alg: Add configure option to enable/disable use of Linux crypto API.
19890         Suggested by Assaf Gordon <assafgordon@gmail.com>.
19891         * m4/af_alg.m4 (gl_AF_ALG): Add AC_ARG_WITH invocation. Define C macro
19892         USE_LINUX_CRYPTO_API.
19893         * lib/af_alg.h: Test USE_LINUX_CRYPTO_API, not HAVE_LINUX_IF_ALG_H.
19894         * lib/af_alg.c: Likewise.
19896 2018-05-06  Bruno Haible  <bruno@clisp.org>
19898         Followup to 'af_alg: New module.'.
19899         * modules/crypto/md5 (Depends-on): Remove sys_socket, sys_stat.
19900         * modules/crypto/sha1 (Depends-on): Likewise.
19901         * modules/crypto/sha256 (Depends-on): Likewise.
19902         * modules/crypto/sha512 (Depends-on): Likewise.
19904 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
19906         crypto/{md5,sha1,sha256,sha512}: simplify
19907         * lib/md5.c (md5_stream):
19908         * lib/sha1.c (sha1_stream):
19909         * lib/sha256.c (shaxxx_stream):
19910         Simplify, partly by assuming C99.
19911         * lib/sha256.c (shaxxx_stream):
19912         New function, which implements both sha256 and sha224.
19913         Simplify, partly by assuming C99.
19914         (sha256_stream, sha224_stream):
19915         Use it to avoid code duplication, removing a FIXME.
19916         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
19917         Likewise.
19919         af_alg: Improve comments.
19920         * lib/af_alg.h: Use imperatives and tighten up wording.
19922 2018-05-05  Bruno Haible  <bruno@clisp.org>
19924         af_alg: Improve comments.
19925         * lib/af_alg.c (afalg_stream): Improve comment about kernel bug.
19927 2018-05-05  Bruno Haible  <bruno@clisp.org>
19929         af_alg: New module.
19930         * lib/af_alg.h: Test HAVE_* macro through '#if', not '#ifdef'.
19931         * lib/af_alg.c: Include "af_alg.h" before the other header files.
19932         * lib/md5.c: Include "af_alg.h" unconditionally.
19933         (md5_stream): Invoke afalg_stream unconditionally.
19934         * lib/sha1.c: Include "af_alg.h" unconditionally.
19935         (sha1_stream): Invoke afalg_stream unconditionally.
19936         * lib/sha256.c: Include "af_alg.h" unconditionally.
19937         (sha256_stream, sha224_stream): Invoke afalg_stream unconditionally.
19938         * lib/sha512.c: Include "af_alg.h" unconditionally.
19939         (sha512_stream, sha384_stream): Invoke afalg_stream unconditionally.
19940         * m4/af_alg.m4: Renamed from m4/linux-if-alg.m4.
19941         (gl_AF_ALG): Renamed from gl_LINUX_IF_ALG_H.
19942         * modules/crypto/af_alg: New file.
19943         * modules/crypto/md5 (Files): Remove files that are now in the
19944         'crypto/af_alg' module.
19945         (Depends-on): Add crypto/af_alg.
19946         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
19947         (Makefile.am): Don't mention af_alg.c here.
19948         * modules/crypto/sha1 (Files): Remove files that are now in the
19949         'crypto/af_alg' module.
19950         (Depends-on): Add crypto/af_alg.
19951         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
19952         (Makefile.am): Don't mention af_alg.c here.
19953         * modules/crypto/sha256 (Files): Remove files that are now in the
19954         'crypto/af_alg' module.
19955         (Depends-on): Add crypto/af_alg.
19956         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
19957         (Makefile.am): Don't mention af_alg.c here.
19958         * modules/crypto/sha512 (Files): Remove files that are now in the
19959         'crypto/af_alg' module.
19960         (Depends-on): Add crypto/af_alg.
19961         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
19962         (Makefile.am): Don't mention af_alg.c here.
19964 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
19966         crypto tests: pacify GCC
19967         * tests/test-digest.h (test_digest_on_files):
19968         Don’t assume digest size fits in int (!).
19970         af_alg: minor style improvements
19971         * lib/af_alg.c (afalg_stream): Prefer C99 style
19972         decl-after-statement, since we’re already assuming C99.  Clarify
19973         by strengthening the bind test and omit unnecessary assignment.
19975 2018-05-05  Bruno Haible  <bruno@clisp.org>
19977         af_alg: Fix bug on empty files.
19978         * lib/af_alg.c (afalg_stream): Ignore the kernel's result if the input
19979         stream is empty.
19981 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
19983         sys-limits.h: new file for crypto and safe I/O
19984         * lib/af_alg.c: Include sys-limits.h.
19985         (MAX_RW_COUNT): Remove.  Use replaced by SYS_BUFSIZE_MAX.
19986         (afalg_stream): Also reject negative sizes for sendfile; they
19987         should not happen and the code is a bit cleaner and faster this way.
19988         * lib/safe-read.c: Include sys-limits.h.
19989         (BUGGY_READ_MAXIMUM): Remove.  All uses replaced by SYS_BUFSIZE_MAX.
19990         * lib/sys-limits.h: New file, with values and commentary derived
19991         from the old safe-read.c and from GNU Emacs sysdep.c.
19992         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
19993         * modules/crypto/sha512, modules/safe-read, modules/safe-write:
19994         Add lib/sys-limits.h to Files section.
19996 2018-05-05  Bruno Haible  <bruno@clisp.org>
19998         af_alg: Improve function signature.
19999         * lib/af_alg.h (afalg_stream): Swap second and third argument.
20000         * lib/af_alg.c (afalg_stream): Likewise.
20001         * lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c: Callers changed.
20003 2018-05-05  Bruno Haible  <bruno@clisp.org>
20005         crypto/{md5,sha1,sha256,sha512}: Fix compilation error (S_TYPEISTMO).
20006         * modules/crypto/md5 (Depends-on): Add 'sys_stat'.
20007         * modules/crypto/sha1 (Depends-on): Likewise.
20008         * modules/crypto/sha256 (Depends-on): Likewise.
20009         * modules/crypto/sha512 (Depends-on): Likewise.
20011 2018-05-05  Bruno Haible  <bruno@clisp.org>
20013         crypto/{md5,sha1,sha256,sha512}: Fix module description.
20014         * modules/crypto/md5 (Depends-on): Add 'sys_socket'.
20015         * modules/crypto/sha1 (Depends-on): Likewise.
20016         * modules/crypto/sha256 (Depends-on): Likewise.
20017         * modules/crypto/sha512 (Depends-on): Likewise.
20019 2018-05-05  Bruno Haible  <bruno@clisp.org>
20021         af_alg: Add documentation.
20022         * lib/af_alg.h: Add comments.
20024 2018-05-05  Bruno Haible  <bruno@clisp.org>
20026         sha512: Add tests.
20027         * tests/test-sha512.c: New file.
20028         * modules/crypto/sha512-tests: New file.
20030 2018-05-05  Bruno Haible  <bruno@clisp.org>
20032         sha256: Add tests.
20033         * tests/test-sha256.c: New file.
20034         * modules/crypto/sha256-tests: New file.
20036 2018-05-05  Bruno Haible  <bruno@clisp.org>
20038         sha1 tests: Add test for sha1_stream.
20039         * tests/test-sha1.c: Include test-digest.h.
20040         (main): Invoke test_digest_on_files on 'sha1_stream'.
20041         * modules/crypto/sha1-tests (Files): Add tests/test-digest.h.
20043 2018-05-05  Bruno Haible  <bruno@clisp.org>
20045         md5 tests: Add test for md5_stream.
20046         * tests/test-digest.h: New file.
20047         * tests/test-md5.c: Include test-digest.h.
20048         (main): Invoke test_digest_on_files on 'md5_stream'.
20049         * modules/crypto/md5-tests (Files): Add tests/test-digest.h.
20051 2018-04-28  Matteo Croce  <mcroce@redhat.com>
20053         md5sum: Use AF_ALG when available.
20054         * lib/md5.c: Include af_alg.h.
20055         (md5_stream): Use afalg_stream when available.
20056         * modules/crypto/md5 (Files): Add the af_alg files.
20057         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
20058         (Makefile.am): Add af_alg.c.
20060 2018-04-28  Matteo Croce  <mcroce@redhat.com>
20062         sha512sum: Use AF_ALG when available.
20063         * lib/sha512.c: Include af_alg.h.
20064         (sha512_stream, sha384_stream): Use afalg_stream when available.
20065         * modules/crypto/sha512 (Files): Add the af_alg files.
20066         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
20067         (Makefile.am): Add af_alg.c.
20069 2018-04-28  Matteo Croce  <mcroce@redhat.com>
20071         sha256sum: Use AF_ALG when available.
20072         * lib/sha256.c: Include af_alg.h.
20073         (sha256_stream, sha224_stream): Use afalg_stream when available.
20074         * modules/crypto/sha256 (Files): Add the af_alg files.
20075         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
20076         (Makefile.am): Add af_alg.c.
20078 2018-04-28  Matteo Croce  <mcroce@redhat.com>
20080         sha1sum: Use AF_ALG when available.
20081         * lib/af_alg.h: New file.
20082         * lib/af_alg.c: New file.
20083         * lib/sha1.c: Include af_alg.h.
20084         (sha1_stream): Use afalg_stream when available.
20085         * m4/linux-if-alg.m4: New file.
20086         * modules/crypto/sha1 (Files): Add the new files.
20087         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
20088         (Makefile.am): Add af_alg.c.
20090 2018-05-05  Bruno Haible  <bruno@clisp.org>
20092         all: Replace more http URLs by https URLs.
20093         * lib/localename.c: Use https: URL.
20094         * lib/timespec.h: Likewise.
20096 2018-05-03  Paul Eggert  <eggert@cs.ucla.edu>
20098         maint: port more modules to GCC 8
20099         * lib/dirname.h (base_name):
20100         * lib/exclude.h (new_exclude):
20101         * lib/xstrndup.h (xstrndup):
20102         Add malloc attribute.
20103         * lib/readutmp.c: Pacify GCC 8 about safe use of strncpy.
20104         * lib/sig-handler.h (get_handler) [SA_SIGINFO]: Simplify.
20105         This pacifies GCC 8.
20106         * m4/gnulib-common.m4 (gl_COMMON_BODY):
20107         Define _GL_ATTRIBUTE_MALLOC here.  All other definitions removed.
20109 2018-05-03  Bruno Haible  <bruno@clisp.org>
20111         Simplify code. Drop support for Borland C++ on Windows.
20112         Reported by Gisle Vanem <gisle.vanem@gmail.com>.
20113         * lib/accept4.c: Simplify 'defined _WIN32 || defined __WIN32__' to just
20114         'defined _WIN32'.
20115         * lib/canonicalize-lgpl.c: Likewise.
20116         * lib/classpath.c: Likewise.
20117         * lib/clean-temp.c: Likewise.
20118         * lib/csharpexec.c: Likewise.
20119         * lib/ctime.c: Likewise.
20120         * lib/dosname.h: Likewise.
20121         * lib/dup2.c: Likewise.
20122         * lib/errno.in.h: Likewise.
20123         * lib/error.c: Likewise.
20124         * lib/euidaccess.c: Likewise.
20125         * lib/execute.c: Likewise.
20126         * lib/fcntl.in.h: Likewise.
20127         * lib/fcntl.c: Likewise.
20128         * lib/filename.h: Likewise.
20129         * lib/findprog.c: Likewise.
20130         * lib/flock.c: Likewise.
20131         * lib/fopen.c: Likewise.
20132         * lib/freopen.c: Likewise.
20133         * lib/fstat.c: Likewise.
20134         * lib/fsync.c: Likewise.
20135         * lib/gc-gnulib.c: Likewise.
20136         * lib/get-rusage-data.c: Likewise.
20137         * lib/getaddrinfo.c: Likewise.
20138         * lib/getdelim.c: Likewise.
20139         * lib/getdtablesize.c: Likewise.
20140         * lib/gethostname.c: Likewise.
20141         * lib/getlogin.c: Likewise.
20142         * lib/getlogin_r.c: Likewise.
20143         * lib/getopt.c: Likewise.
20144         * lib/getpagesize.c: Likewise.
20145         * lib/getpass.c: Likewise.
20146         * lib/getrusage.c: Likewise.
20147         * lib/gettimeofday.c: Likewise.
20148         * lib/glob.c: Likewise.
20149         * lib/inttypes.in.h: Likewise.
20150         * lib/isapipe.c: Likewise.
20151         * lib/javaexec.c: Likewise.
20152         * lib/link.c: Likewise.
20153         * lib/localcharset.c: Likewise.
20154         * lib/localename.h: Likewise.
20155         * lib/localename.c: Likewise.
20156         * lib/localtime.c: Likewise.
20157         * lib/lseek.c: Likewise.
20158         * lib/mbsinit.c: Likewise.
20159         * lib/mkdir.c: Likewise.
20160         * lib/msvc-nothrow.h: Likewise.
20161         * lib/nanosleep.c: Likewise.
20162         * lib/nl_langinfo.c: Likewise.
20163         * lib/nonblocking.c: Likewise.
20164         * lib/nproc.c: Likewise.
20165         * lib/open.c: Likewise.
20166         * lib/openpty.c: Likewise.
20167         * lib/pathmax.h: Likewise.
20168         * lib/pipe-filter-aux.c: Likewise.
20169         * lib/pipe-filter-gi.c: Likewise.
20170         * lib/pipe-filter-ii.c: Likewise.
20171         * lib/pipe.c: Likewise.
20172         * lib/pipe2.c: Likewise.
20173         * lib/poll.c: Likewise.
20174         * lib/popen.c: Likewise.
20175         * lib/posix_openpt.c: Likewise.
20176         * lib/printf-parse.c: Likewise.
20177         * lib/progreloc.c: Likewise.
20178         * lib/putenv.c: Likewise.
20179         * lib/read.c: Likewise.
20180         * lib/relocatable.c: Likewise.
20181         * lib/rename.c: Likewise.
20182         * lib/same-inode.h: Likewise.
20183         * lib/secure_getenv.c: Likewise.
20184         * lib/select.c: Likewise.
20185         * lib/sethostname.c: Likewise.
20186         * lib/setlocale.c: Likewise.
20187         * lib/sigaction.c: Likewise.
20188         * lib/sigprocmask.c: Likewise.
20189         * lib/sleep.c: Likewise.
20190         * lib/spawn-pipe.h: Likewise.
20191         * lib/spawn-pipe.c: Likewise.
20192         * lib/spawni.c: Likewise.
20193         * lib/stat-time.h: Likewise.
20194         * lib/stat-w32.c: Likewise.
20195         * lib/stat.c: Likewise.
20196         * lib/stdio.in.h: Likewise.
20197         * lib/stdio-impl.h: Likewise.
20198         * lib/stdio-read.c: Likewise.
20199         * lib/stdio-write.c: Likewise.
20200         * lib/stdlib.in.h: Likewise.
20201         * lib/strerror_r.c: Likewise.
20202         * lib/strftime-fixes.c: Likewise.
20203         * lib/sys_stat.in.h: Likewise.
20204         * lib/sys_types.in.h: Likewise.
20205         * lib/sys_wait.in.h : Likewise.
20206         * lib/system-quote.h: Likewise.
20207         * lib/system-quote.c: Likewise.
20208         * lib/tmpdir.c: Likewise.
20209         * lib/tzset.c: Likewise.
20210         * lib/uname.c: Likewise.
20211         * lib/unistd.in.h: Likewise.
20212         * lib/utime.in.h: Likewise.
20213         * lib/utime.c: Likewise.
20214         * lib/utimecmp.c: Likewise.
20215         * lib/utimens.c: Likewise.
20216         * lib/vasnprintf.c: Likewise.
20217         * lib/vma-iter.h: Likewise.
20218         * lib/vma-iter.c: Likewise.
20219         * lib/wait-process.c: Likewise.
20220         * lib/wcsftime.c: Likewise.
20221         * lib/wctype.in.h: Likewise.
20222         * lib/write.c: Likewise.
20223         * tests/nap.h: Likewise.
20224         * tests/test-cloexec.c: Likewise.
20225         * tests/test-dup-safer.c: Likewise.
20226         * tests/test-dup2.c: Likewise.
20227         * tests/test-dup3.c: Likewise.
20228         * tests/test-fcntl.c: Likewise.
20229         * tests/test-get-rusage-data.c: Likewise.
20230         * tests/test-getaddrinfo.c: Likewise.
20231         * tests/test-getlogin.h: Likewise.
20232         * tests/test-isatty.c: Likewise.
20233         * tests/test-localename.c: Likewise.
20234         * tests/test-mbrtowc-w32.c: Likewise.
20235         * tests/test-nonblocking.c: Likewise.
20236         * tests/test-nonblocking-pipe-main.c: Likewise.
20237         * tests/test-nonblocking-socket-main.c: Likewise.
20238         * tests/test-nonblocking-socket.h: Likewise.
20239         * tests/test-pipe.c: Likewise.
20240         * tests/test-pipe2.c: Likewise.
20241         * tests/test-poll.c: Likewise.
20242         * tests/test-pthread_sigmask1.c: Likewise.
20243         * tests/test-select.h: Likewise.
20244         * tests/test-sethostname2.c: Likewise.
20245         * tests/test-sigprocmask.c: Likewise.
20246         * tests/test-spawn-pipe-child.c: Likewise.
20247         * tests/test-stat-time.c: Likewise.
20248         * tests/test-system-quote-main.c: Likewise.
20249         * tests/test-utimens-common.h: Likewise.
20250         * tests/test-wcrtomb-w32.c: Likewise.
20251         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
20252         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
20253         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
20254         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
20255         * m4/locale-ar.m4 (gt_LOCALE_AR): Likewise.
20256         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
20257         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
20258         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
20259         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
20260         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
20261         * m4/nocrash.m4 (GL_NOCRASH): Likewise.
20262         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET): Likewise.
20263         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
20264         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
20265         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Likewise.
20266         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
20268 2018-05-02  Bruno Haible  <bruno@clisp.org>
20270         localename: Fix test failures on mingw.
20271         * lib/localename.c (gl_locale_name_thread): Remove code specific to
20272         native Windows.
20273         (gl_locale_name_posix): Move code specific to native Windows here.
20274         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
20275         Accept result without charset suffix, as it appears on mingw.
20277 2018-04-28  Paul Smith  <psmith@gnu.org>
20279         bootstrap: Avoid gnulib operations if not needed
20280         * build-aux/bootstrap: Remove unused variable gnulib_mk.
20281         Set $gnulib_extra_files early so it can be overridden in .conf.
20282         Remove redundant --import flag from $gnulib_tool_options.
20283         Set $use_gnulib to false if no gnulib modules or files are needed.
20284         If $use_gnulib is false, don't do anything related to gnulib.
20285         A lot of this is just whitespace (indentation) changes.
20287 2018-04-27  Paul Eggert  <eggert@cs.ucla.edu>
20289         manywarnings: port to GCC 8.0
20290         * build-aux/gcc-warning.spec: Add -Wcatch-value,
20291         -Wclass-memaccess, -Wdo-subscript, -Wextra-semi.  Adjust to the
20292         fact that the GCC help message now mentions operands for
20293         -Warray-bounds, -Wformat, -Wformat-overflow, -Wformat-truncation,
20294         -Wimplicit-fallthrough, -Wplacement-new, -Wshift-overflow,
20295         -Wstrict-aliasing, -Wstrict-overflow, -Wstringop-overflow,
20296         and -Wunused-const-variable.
20297         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wattribute-alias,
20298         -Wcast-align=strict, -Wcast-function-type, -Wif-not-aligned,
20299         -Wmissing-attributes, -Wmultistatement-macros,
20300         -Wpacked-not-aligned, -Wsizeof-pointer-div, -Wstringop-truncation,
20301         -Wsuggest-attribute=cold, -Wsuggest-attribute=malloc.
20303 2018-04-24  Bruno Haible  <bruno@clisp.org>
20305         sys_socket: Make SO_REUSEPORT available across platforms.
20306         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20307         * lib/sys_socket.in.h (SO_REUSEPORT): New macro.
20308         * doc/posix-headers/sys_socket.texi: Mention the issue.
20309         * tests/test-poll.c (SO_REUSEPORT): Remove.
20310         * tests/test-select.h: Include <sys/socket.h>.
20311         (SO_REUSEPORT): Remove.
20312         * modules/select-tests (Depends-on): Add 'sys_socket'.
20314 2018-04-21  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
20316         localcharset: short-circuit the search for an alias on a Mac
20317         * lib/localcharset.c (get_charset_aliases): Add a tautological
20318         UTF-8 entry to speed up the search for this case.
20319         Most machines default to a UTF-8 locale nowadays, so begin the
20320         list of aliases with a dummy UTF-8 entry so it will be found
20321         immediately and a time-consuming search through the rest of
20322         the list is avoided.
20324 2018-04-11  Paul Eggert  <eggert@cs.ucla.edu>
20326         fts: add comment
20327         * lib/fts.c (fts_build): Explain why ==, not >.
20328         See remark by Bernhard Voelker in:
20329         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00041.html
20331         fts: fix bug in find across filesystems
20332         This fixes a bug I introduced last summer.
20333         Problem reported by Kamil Dudka in:
20334         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00033.html
20335         * lib/fts.c (filesystem_type, dirent_inode_sort_may_be_useful)
20336         (leaf_optimization):
20337         New arg for file descriptor.  All callers changed.
20338         (fts_build): Check for whether inodes should be sorted
20339         before closing the directory.
20341 2018-04-07  Bruno Haible  <bruno@clisp.org>
20343         unicase/u*-context: Fix link errors with libunistring <= 0.9.9.
20344         Reported by Genki Sky <sky@genki.is>.
20345         * modules/unicase/u8-prefix-context (configure.ac): Require libunistring
20346         version 0.9.10 or newer.
20347         * modules/unicase/u8-suffix-context (configure.ac): Likewise.
20348         * modules/unicase/u16-prefix-context (configure.ac): Likewise.
20349         * modules/unicase/u16-suffix-context (configure.ac): Likewise.
20350         * modules/unicase/u32-prefix-context (configure.ac): Likewise.
20351         * modules/unicase/u32-suffix-context (configure.ac): Likewise.
20353 2018-04-07  Bruno Haible  <bruno@clisp.org>
20355         execute: Update comment.
20356         * lib/execute.h (execute): Refer to spawn-pipe.h, not pipe.h.
20358 2018-04-05  Paul Eggert  <eggert@cs.ucla.edu>
20360         fts: treat CIFS like NFS
20361         Problem reported by Kamil Dudka in:
20362         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00015.html
20363         * lib/fts.c (S_MAGIC_CIFS): New macro.
20364         (dirent_inode_sort_may_be_useful, leaf_optimization):
20365         Treat CIFS like NFS.
20367 2018-03-28  Bruno Haible  <bruno@clisp.org>
20369         c-stack: Fix possible build failure on some platforms.
20370         * lib/c-stack.c (die): Define whenever this function is referenced.
20372 2018-03-28  Paul Eggert  <eggert@cs.ucla.edu>
20374         time_rz: fix workaround for Mac OS X 10.6 infloop
20375         Problems reported by Charles A. Roelli (Bug#27736#117).
20376         * m4/time_rz.m4 (gl_TIME_RZ): Use a slightly different timestamp.
20377         Also, discard output, which clutters the 'configure' log.
20379 2018-03-27  Paul Eggert  <eggert@cs.ucla.edu>
20381         havelib: port to Solaris 10 /bin/sh
20382         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Use 'test ! EXPR'
20383         instead of '! test EXPR'.
20385 2018-03-26  Paul Eggert  <eggert@cs.ucla.edu>
20387         time_rz: work around Mac OS X 10.6 infloop
20388         * doc/posix-functions/localtime.texi:
20389         * doc/posix-functions/localtime_r.texi: Mention the bug.
20390         * lib/time_rz.c (localtime_rz): Work around the bug.  It’d be
20391         better to fix localtime and localtime_r instead, but that would be
20392         more work and is not needed to fix the Emacs problem.
20393         * m4/time_rz.m4 (gl_TIME_RZ): Detect the bug.
20395 2018-03-24  Jim Meyering  <meyering@fb.com>
20397         test-version-etc.sh: don't use diff directly: use init.sh's compare
20398         We'd rather not sacrifice readable "diff -u" output even for
20399         "diff -c" output (not supported by busybox) or for even less
20400         readable ed-style "diff" output.  So use init.sh's compare function
20401         * tests/test-version-etc.sh: Source init.sh and add "." to path.
20402         Remove "./" from invocation of test-version-etc, so we use path.
20403         And s/diff/compare/.
20404         * modules/version-etc-tests (Depends-on): Add test-framework-sh,
20405         to get init.sh.
20406         Prompted by Eric Blake's comments in
20407         https://lists.gnu.org/r/sed-devel/2018-03/msg00015.html
20409 2018-03-24  Bruno Haible  <bruno@clisp.org>
20411         javacomp-script, javacomp: Add support for Java 10.
20412         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 10 and
20413         target-version 10.
20414         * lib/javaversion.h: Update comments.
20415         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
20416         source_version_index, get_goodcode_snippet, get_failcode_snippet,
20417         TARGET_VERSION_BOUND, target_version_index,
20418         corresponding_classfile_version): Accept source_version 10 and
20419         target_version 10.
20420         * lib/javacomp.h: Update comments accordingly.
20422 2018-03-24  Bruno Haible  <bruno@clisp.org>
20424         javacomp-script, javacomp: Update comments.
20425         * m4/javacomp.m4: Update comments regarding gcj.
20426         * lib/javacomp.h: Likewise.
20428 2018-03-24  Bruno Haible  <bruno@clisp.org>
20430         javacomp-script, javacomp: Fix support for Java 7, 8, 9.
20431         * lib/javaversion.h: Update comments.
20432         * lib/javacomp.h: Likewise.
20433         * lib/javacomp.c (default_target_version, source_version_index,
20434         get_goodcode_snippet, get_failcode_snippet): Recognize "9" instead of
20435         "1.9".
20436         (TARGET_VERSION_BOUND): Bump to 9.
20437         (target_version_index, corresponding_classfile_version): Recognize "9"
20438         instead of "1.9".
20439         (get_source_version_for_javac): New function.
20440         (is_envjavac_nongcj_usable, is_javac_usable): Add
20441         source_version_for_javac argument.
20442         (compile_java_class): Determine and pass source_version_for_javac.
20443         * m4/javacomp.m4: Recognize version '9' instead of '1.9'. When invoking
20444         $JAVAC or javac, pass '-source 1.6' instead of '-source 1.5' when
20445         appropriate.
20447 2018-03-23  Jim Meyering  <meyering@fb.com>
20449         test-version-etc.sh: port to diff without -c
20450         * tests/test-version-etc.sh: Don't use diff's -c option.
20451         This caused spurious test failure on Alpine Linux, which
20452         uses busybox's diff. Reported by Assaf Gordon in
20453         https://lists.gnu.org/r/sed-devel/2018-03/msg00013.html
20455 2018-03-23  Paul Eggert  <eggert@cs.ucla.edu>
20457         c-stack: port to recent GCC build
20458         Problem reported by The Fireplace (Bug#30913).
20459         * lib/c-stack.c (die): Define only if used.
20461 2018-03-20  Bruno Haible  <bruno@clisp.org>
20463         euidaccess: Port to native Windows.
20464         * lib/euidaccess.c (euidaccess): On native Windows, just use _access().
20465         * posix-modules (exclude_for_mingw): Remove 'euidaccess'.
20467 2018-03-19  Bruno Haible  <bruno@clisp.org>
20469         javacomp: Add support for Java 7, 8, 9.
20470         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
20471         source_version_index, get_goodcode_snippet, get_failcode_snippet,
20472         corresponding_classfile_version): Accept source_version 1,7, 1.8, 1.9
20473         and target_version 1,7, 1.8, 1.9.
20474         * lib/javacomp.h: Update comments accordingly.
20476 2018-03-19  Bruno Haible  <bruno@clisp.org>
20478         javacomp-script: Add support for Java 9.
20479         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.9 and
20480         target-version 1.9.
20482 2018-03-16  Bruno Haible  <bruno@clisp.org>
20484         glob: Don't compile replacements on recent glibc systems.
20485         * lib/glob.in.h: Use the usual idiom for the double-inclusion guard. If
20486         REPLACE_GLOB is 0, include the system's <glob.h> and use
20487         _GL_CXXALIAS_SYS.
20488         * m4/glob.m4 (gl_GLOB): Set REPLACE_GLOB instead of GLOB_H. Accept
20489         _GNU_GLOB_INTERFACE_VERSION 2 as well. Delete the file conf$$-globtest
20490         inside the AC_RUN_IFELSE block. Remove GL_GENERATE_GLOB_H conditional.
20491         * modules/glob (Dependencies): Test REPLACE_GLOB instead of GLOB_H.
20492         Remove snippet/warn-on-use.
20493         (configure.ac): Test REPLACE_GLOB instead of GLOB_H.
20494         (Makefile.am): Create glob.h always. Update list of substitutions in
20495         glob.h. Don't depend on $(WARN_ON_USE_H).
20497 2018-03-16  Bruno Haible  <bruno@clisp.org>
20499         glob: Fix link error on native Windows.
20500         * modules/glob (Depends-on): Add 'lstat'.
20502 2018-03-15  Bruno Haible  <bruno@clisp.org>
20504         glob: Fix compilation error in C++ mode.
20505         * lib/glob.in.h (_Restrict_): Define, like in regex.h and spawn.in.h.
20507 2018-03-15  Bruno Haible  <bruno@clisp.org>
20509         host-cpu-c-abi: Support for RISC-V CPU.
20510         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the various
20511         riscv32 and riscv64 ABIs.
20512         References:
20513         https://github.com/riscv/riscv-toolchain-conventions
20514         https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/RISC-V-Options.html
20515         https://gnu-mcu-eclipse.github.io/toolchain/riscv/
20517 2018-03-08  Paul Eggert  <eggert@cs.ucla.edu>
20519         fflush: be more paranoid about libio.h change
20520         Suggested by Eli Zaretskii in:
20521         https://lists.gnu.org/r/emacs-devel/2018-03/msg00270.html
20522         * lib/fbufmode.c (fbufmode):
20523         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
20524         (disable_seek_optimization, rpl_fflush):
20525         * lib/fpending.c (__fpending):
20526         * lib/fpurge.c (fpurge):
20527         * lib/freadable.c (freadable):
20528         * lib/freadahead.c (freadahead):
20529         * lib/freading.c (freading):
20530         * lib/freadptr.c (freadptr):
20531         * lib/freadseek.c (freadptrinc):
20532         * lib/fseeko.c (fseeko):
20533         * lib/fseterr.c (fseterr):
20534         * lib/fwritable.c (fwritable):
20535         * lib/fwriting.c (fwriting):
20536         Look at _IO_ftrylockfile as well as at _IO_EOF_SEEN.
20538 2018-03-07  Paul Eggert  <eggert@cs.ucla.edu>
20540         maint: write-file-hooks -> before-save-hook
20541         write-file-hooks is obsolete since Emacs 22.1 (released June 2007) and
20542         it's time to use the recommended replacement.
20543         Problem reported by Glenn Morris in:
20544         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00008.html
20545         * build-aux/announce-gen, build-aux/bootstrap:
20546         * build-aux/do-release-commit-and-tag, build-aux/gendocs.sh:
20547         * build-aux/git-version-gen, build-aux/gitlog-to-changelog:
20548         * build-aux/gnu-web-doc-update, build-aux/gnupload:
20549         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
20550         * build-aux/update-copyright, build-aux/useless-if-before-free:
20551         * build-aux/vc-list-files:
20552         Update hook usage for files where Gnulib is the canonical source.
20554 2018-03-05  Paul Eggert  <eggert@cs.ucla.edu>
20556         binary-io: pacify gcc -Wunused-parameter
20557         Problem reported by Reuben Thomas in:
20558         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00005.html
20559         * lib/binary-io.h (__gl_setmode, __gl_setmode_check):
20560         Use _GL_UNUSED where appropriate.
20562         fflush: adjust to glibc 2.28 libio.h removal
20563         Problem reported by Daniel P. Berrangé in:
20564         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00000.html
20565         * lib/fbufmode.c (fbufmode):
20566         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
20567         (disable_seek_optimization, rpl_fflush):
20568         * lib/fpending.c (__fpending):
20569         * lib/fpurge.c (fpurge):
20570         * lib/freadable.c (freadable):
20571         * lib/freadahead.c (freadahead):
20572         * lib/freading.c (freading):
20573         * lib/freadptr.c (freadptr):
20574         * lib/freadseek.c (freadptrinc):
20575         * lib/fseeko.c (fseeko):
20576         * lib/fseterr.c (fseterr):
20577         * lib/fwritable.c (fwritable):
20578         * lib/fwriting.c (fwriting):
20579         Check _IO_EOF_SEEN instead of _IO_ftrylockfile.
20580         * lib/stdio-impl.h (_IO_IN_BACKUP) [_IO_EOF_SEEN]:
20581         Define if not already defined.
20583 2018-02-27  Paul Eggert  <eggert@cs.ucla.edu>
20585         environ: fix link error on 32-bit Cygwin
20586         Problem reported for GNU Emacs by Ken Brown in:
20587         https://lists.gnu.org/r/emacs-devel/2018-02/msg00765.html
20588         * lib/unistd.in.h (environ) [__i386__]: Do not redeclare.
20590 2018-02-24  Bruno Haible  <bruno@clisp.org>
20592         mbrtowc tests: Fix regression on glibc.
20593         Reported by Bernhard Voelker.
20594         * tests/test-mbrtowc.c (main): Fix expected value of wc.
20596 2018-02-24  Bruno Haible  <bruno@clisp.org>
20598         striconveha, uniconv/*: Avoid test failures on musl libc.
20599         * tests/iconvsupport.c: New file.
20600         * tests/test-striconveha.c (main): Skip autodetect_jp tests if iconv()
20601         does not support the ISO-2022-JP-2 encoding.
20602         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
20603         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
20604         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
20605         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
20606         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
20607         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
20608         * modules/striconveha-tests (Files): Add tests/iconvsupport.c.
20609         (Makefile.am): Link test-striconveha with iconvsupport.o.
20610         * modules/uniconv/u8-conv-from-enc-tests (Files): Add
20611         tests/iconvsupport.c.
20612         (Makefile.am): Link test-u8-conv-from-enc with iconvsupport.o.
20613         * modules/uniconv/u8-strconv-from-enc-tests (Files): Add
20614         tests/iconvsupport.c.
20615         (Makefile.am): Link test-u8-strconv-from-enc with iconvsupport.o.
20616         * modules/uniconv/u16-conv-from-enc-tests (Files): Add
20617         tests/iconvsupport.c.
20618         (Makefile.am): Link test-u16-conv-from-enc with iconvsupport.o.
20619         * modules/uniconv/u16-strconv-from-enc-tests (Files): Add
20620         tests/iconvsupport.c.
20621         (Makefile.am): Link test-u16-strconv-from-enc with iconvsupport.o.
20622         * modules/uniconv/u32-conv-from-enc-tests (Files): Add
20623         tests/iconvsupport.c.
20624         (Makefile.am): Link test-u32-conv-from-enc with iconvsupport.o.
20625         * modules/uniconv/u32-strconv-from-enc-tests (Files): Add
20626         tests/iconvsupport.c.
20627         (Makefile.am): Link test-u32-strconv-from-enc with iconvsupport.o.
20629 2018-02-24  Bruno Haible  <bruno@clisp.org>
20631         localename: Add support for musl libc.
20632         * m4/localename.m4 (gl_LOCALENAME): Check for <langinfo.h>.
20633         * lib/localename.c (gl_locale_name_thread_unsafe): Use NL_LOCALE_NAME
20634         on Linux platforms which define NL_LOCALE_NAME.
20636 2018-02-24  Bruno Haible  <bruno@clisp.org>
20638         mbrtowc tests: Don't make assumptions about the charset the C locale.
20639         * tests/test-mbrtowc.c (main): For bytes >= 0x80, don't assume a
20640         particular mapping in the C locale.
20642 2018-02-24  Bruno Haible  <bruno@clisp.org>
20644         ptsname_r: Don't expect that this function sets errno.
20645         * tests/test-ptsname_r.c (test_errors): Don't test errno after return
20646         from ptsname_r().
20647         * doc/glibc-functions/ptsname_r.texi: Mention the issue.
20649 2018-02-23  Bruno Haible  <bruno@clisp.org>
20651         xmalloca: pacify gcc -Wbad-function-cast
20652         * lib/xmalloca.h (xmalloca): Insert intermediate cast here as well.
20654 2018-02-23  Paul Eggert  <eggert@cs.ucla.edu>
20656         nl_langinfo: pacify gcc -Wunused-function
20657         * lib/nl_langinfo.c (ctype_codeset): Do not define if
20658         REPLACE_NL_LANGINFO && !GNULIB_defined_CODESET, as it is unused in
20659         this case.  Without this change, I got a diagnostic when building
20660         coreutils on Fedora 27 with gcc 7.3.1 20180130.
20662         same: pacify gcc -Wunused-variable
20663         * lib/same.c (same_nameat) [!CHECK_TRUNCATION]:
20664         Omit unused variable.
20666         malloca: pacify gcc -Wbad-function-cast
20667         * lib/malloca.h (malloca): Pacify gcc -Wbad-function-cast
20668         diagnostic that I got on Fedora 27 with gcc 7.3.1 20180130.
20669         To pacify GCC, I had to cast alloca’s result to some type other
20670         than void * before casting that to uintptr_t.
20672 2018-02-20  Paul Eggert  <eggert@cs.ucla.edu>
20674         utimecmp: new function utimecmpat
20675         * lib/utimecmp.c: Include fcntl.h, sys/stat.h and dirname.h.
20676         Do not include utimens.h.
20677         (utimecmpat): New function, generalizing utimecmp.
20678         (utimecmp): Now a thin layer around utimecmpat.
20679         * modules/utimecmp (Depends-on): Depend on dirname-lgpl, fstatat,
20680         utimensat instead of on lstat and utimens.
20682         same: new function same_nameat
20683         * lib/same.c: Include fcntl.h.
20684         * lib/same.c (same_nameat): New function, generalizing same_name.
20685         (same_name): Now a thin layer around same_nameat.
20686         * m4/same.m4 (gl_SAME): Check for fpathconf, not pathconf.
20687         * modules/same (Depends-on): Depend on fstatat, openat.
20689 2018-02-18  Eric Gallager  <egall@gwmail.gwu.edu>  (tiny change)
20691         warnings: Add support for Objective C.
20692         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): New
20693         macro.
20695 2018-02-17  Bruno Haible  <bruno@clisp.org>
20697         lock: Fix test-once1 crash on FreeBSD11.
20698         * lib/glthread/lock.h: On FreeBSD, test the weak value of the symbol
20699         'pthread_create', not 'pthread_cancel'.
20701 2018-02-17  Bruno Haible  <bruno@clisp.org>
20703         lock: Add test of gl_once.
20704         * tests/test-once.c: New file.
20705         * modules/lock-tests (Files): Add it.
20706         (Makefile.am): Build and test programs 'test-once1' and 'test-once2'.
20708 2018-02-17  Bruno Haible  <bruno@clisp.org>
20710         thread: Fix compilation error on IRIX.
20711         * lib/glthread/thread.h: Include <unistd.h>. Include <signal.h> when
20712         needed; include it outside the C++ extern "C" {} block.
20713         * doc/posix-headers/pthread.texi: Mention the problem with
20714         pthread_atfork on IRIX.
20716 2018-02-04  Bruno Haible  <bruno@clisp.org>
20718         nl_langinfo: Override the system's nl_langinfo() when needed.
20719         Reported by Jim Meyering.
20720         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Set REPLACE_NL_LANGINFO=1
20721         also when HAVE_LANGINFO_T_FMT_AMPM or HAVE_LANGINFO_ALTMON is 0.
20723 2018-02-04  Bruno Haible  <bruno@clisp.org>
20725         signal-h, monetary, strings: Fix build failure in some cases.
20726         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
20727         * modules/signal-h (Makefile.am): In the GNULIB_* substitutions, use '/'
20728         as delimiter in sed command, not '|'.
20729         * modules/monetary (Makefile.am): Likewise.
20730         * modules/strings (Makefile.am): Likewise.
20732 2018-02-03  Jim Meyering  <meyering@fb.com>
20734         maint.mk: exempt "/proc/filesystems" from "file system" syntax check
20735         * top/maint.mk (sc_file_system): Don't complain about
20736         "/proc/filesystems".
20738 2018-02-03  Bruno Haible  <bruno@clisp.org>
20740         stdlib: Fix compilation error on OpenIndiana.
20741         * lib/stdlib.in.h: Before including <sys/loadavg.h>, include
20742         <sys/time.h>.
20743         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
20744         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
20746 2018-02-03  Bruno Haible  <bruno@clisp.org>
20748         host-cpu-c-abi: Avoid use of 'grep -E' on OpenIndiana.
20749         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX): Require AC_PROG_EGREP,
20750         and use $EGREP instead of 'grep -E'.
20751         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Use 'grep' instead of
20752         'grep -E'.
20754 2018-02-02  Paul Eggert  <eggert@cs.ucla.edu>
20756         malloca: Add a compile-time verification.
20757         * lib/malloca.c (small_t): Verify that it is wide enough.
20758         * modules/malloca (Depends-on): Add verify.
20760 2018-02-02  Bruno Haible  <bruno@clisp.org>
20762         malloca: Add an argument check.
20763         Suggested by Paul Eggert.
20764         * lib/malloca.c (freea): Check against an invalid argument.
20766 2018-02-02  Bruno Haible  <bruno@clisp.org>
20768         localename: Add support for OpenIndiana.
20769         * lib/localename.c (gl_locale_name_thread_unsafe): Add code for
20770         Solaris 11 variants with uselocale() but without getlocalename_l().
20772 2018-02-02  Bruno Haible  <bruno@clisp.org>
20774         malloca, xmalloca: Make multithread-safe.
20775         Reported by Florian Weimer <fweimer@redhat.com>.
20776         Implements an idea by Ondřej Bílka <neleai@seznam.cz>.
20777         * lib/malloca.h (malloca): In the stack allocation case, return a
20778         pointer that is a multiple of 2 * sa_alignment_max.
20779         (sa_increment): Remove enum item.
20780         * lib/xmalloca.h (xmalloca): In the stack allocation case, return
20781         a pointer that is a multiple of 2 * sa_alignment_max.
20782         * lib/malloca.c (NO_SANITIZE_MEMORY): Remove macro.
20783         (MAGIC_NUMBER, MAGIC_SIZE, preliminary_header, HEADER_SIZE, header,
20784         HASH_TABLE_SIZE, mmalloca_results): Remove.
20785         (small_t): New type.
20786         (mmalloca, free): Rewritten.
20787         * lib/malloca.valgrind: Remove file.
20788         * modules/malloca (Files): Remove it.
20789         (Depends-on): Remove verify.
20791 2018-01-31  Bruno Haible  <bruno@clisp.org>
20793         environ: Fix link error on 64-bit Cygwin.
20794         * lib/unistd.in.h (environ): On Cygwin, redeclare with the
20795         __declspec(dllimport) attribute.
20796         * doc/posix-functions/environ.texi: Mention the Cygwin problem.
20798 2018-01-30  Bruno Haible  <bruno@clisp.org>
20800         get-rusage-data: Add support for Minix 3.
20801         * lib/get-rusage-data.c (get_rusage_data): Return 0 on Minix.
20803 2018-01-30  Bruno Haible  <bruno@clisp.org>
20805         vma-iter: Add support for Minix 3.
20806         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Minix.
20807         * lib/vma-iter.c: On Minix, read /proc/<pid>/map.
20809 2018-01-27  Bruno Haible  <bruno@clisp.org>
20811         Fix malfunction of socket functions on HP-UX in 64-bit mode.
20812         * m4/socketlib.m4 (gl_SOCKETLIB): Add comment.
20813         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define
20814         _HPUX_ALT_XOPEN_SOCKET_API.
20815         * modules/accept (Depends-on): Add 'extensions'.
20816         * modules/getpeername (Depends-on): Likewise.
20817         * modules/getsockname (Depends-on): Likewise.
20818         * modules/getsockopt (Depends-on): Likewise.
20819         * modules/recvfrom (Depends-on): Likewise.
20820         * doc/posix-functions/accept.texi: Mention the HP-UX socklen_t problem.
20821         * doc/posix-functions/getpeername.texi: Likewise.
20822         * doc/posix-functions/getsockname.texi: Likewise.
20823         * doc/posix-functions/getsockopt.texi: Likewise.
20824         * doc/posix-functions/recvfrom.texi: Likewise.
20826 2018-01-27  Bruno Haible  <bruno@clisp.org>
20828         getsockname tests: More tests.
20829         * tests/test-getsockname.c (open_server_socket): New function, mostly
20830         copied from test-poll.c.
20831         (main): Check that getsockname fills in addr.
20832         * modules/getsockname-tests (Depends-on): Add the necessary
20833         dependencies.
20834         (test_getsockname_LDADD): Link with $(INET_PTON_LIB).
20836 2018-01-26  Paul Eggert  <eggert@cs.ucla.edu>
20838         manywarnings: fix maintainer comment
20839         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Fix comment so that
20840         it does not mistakenly think that ‘-1)’ is an option.
20842 2018-01-26  Bruno Haible  <bruno@clisp.org>
20844         langinfo: Fix last commit.
20845         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
20846         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_ALTMON.
20848 2018-01-24  Bruno Haible  <bruno@clisp.org>
20850         langinfo, nl_langinfo: Add support for alternative month names.
20851         * m4/langinfo_h.m4 (gl_LANGINFO_H): Define HAVE_LANGINFO_ALTMON.
20852         * lib/langinfo.in.h (ALTMON_1...ALTMON_12): New macros.
20853         * lib/nl_langinfo.c (rpl_nl_langinfo): Treat ALTMON_i like MON_i.
20854         * tests/test-nl_langinfo.c (main): Test ALTMON_*.
20855         * doc/posix-headers/langinfo.texi: Document support of ALTMON_*.
20856         * doc/posix-functions/nl_langinfo.texi: Likewise.
20858 2018-01-23  Paul Eggert  <eggert@cs.ucla.edu>
20860         Merge strftime.c changes from glibc
20861         This incorporates:
20862         2017-11-14 [BZ #10871] Implement alternative month names
20863         2017-11-14 [BZ #10871] Abbreviated alternative month names (%Ob)
20864         2017-06-20 Use locale_t, not __locale_t, throughout glibc
20865         * lib/nstrftime.c (ABALTMON_1) [!COMPILE_WIDE]: New macro.
20866         (LOCALE_PARAM) [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL]:
20867         Use locale_t, not __locale_t.
20868         (a_altmonth, f_altmonth, aam_len) [_NL_CURRENT]: New macros.
20869         (__strftime_internal): Add support for alternate months.
20871 2018-01-23  Bruno Haible  <bruno@clisp.org>
20873         doc: Mention another prerequisite for using Gnulib.
20874         Reported at <https://stackoverflow.com/questions/48378214/>.
20875         * doc/gnulib-tool.texi (Initial import): Mention requirement to use
20876         AC_CONFIG_HEADERS.
20878 2018-01-22  Mathieu Lirzin  <mthl@gnu.org>
20880         build: GuixSD doesn't have /bin/bash
20881         * Makefile (SHELL): Search 'bash' in the PATH environment variable.
20883 2018-01-21  Bruno Haible  <bruno@clisp.org>
20885         Avoid test failures on Microsoft Windows Subsystem for Linux.
20886         * tests/test-fcntl.c (main): Allow a different errno.
20887         * tests/test-rename.h (test_rename): Likewise.
20888         * tests/test-renameat.c (main): Likewise.
20889         * tests/test-renameat2.c (main): Likewise.
20891 2018-01-14  Paul Eggert  <eggert@cs.ucla.edu>
20893         filenamecat: make base a suffix of result
20894         * lib/filenamecat-lgpl.c (longest_relative_suffix): Remove.
20895         (mfile_name_concat): Always make BASE a suffix of the result, as
20896         cp expects this.  To implement this, separate with '.' instead of
20897         '/' in some rare cases.  Clarify spec to say ./BASE not BASE.
20898         * tests/test-filenamecat.c (main): Adjust tests to match
20899         current behavior.  Check that BASE_IN_RESULT points to
20900         a copy of BASE and is a suffix of the resultk, and that DIR
20901         is a prefix of the result that is no longer than the prefix
20902         indicated by BASE_IN_RESULT.
20904 2018-01-04  Mathieu Lirzin  <mthl@gnu.org>
20906         update-copyright: Handle use of ©
20907         * build-aux/update-copyright ($circle_c_re): Update regex to
20908         handle use of © in headers.
20910 2018-01-04  Tim Rühsen  <tim.ruehsen@gmx.de>
20912         Fix -Wundef warning in user-included header lib/cdefs.h.
20913         * lib/cdefs.h: Check if defined before using __USE_FORTIFY_LEVEL.
20915 2018-01-04  Bruno Haible  <bruno@clisp.org>
20917         pthread_sigmask: Avoid compilation error on mingw.
20918         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
20919         * lib/signal.in.h (pthread_sigmask): Don't declare it it's defined as a
20920         macro.
20922 2018-01-03  Paul Eggert  <eggert@cs.ucla.edu>
20924         test-framework-sh: ‘ps -ef’, not ‘ps ef’
20925         * tests/init.sh (rand_bytes_): Put ‘-’ before new-style ps options.
20926         Suggested by Bob Proulx (Bug#29968).
20927         * build-aux/mktempd (rand_bytes): Make it like tests/init.sh.
20929 2018-01-02  Eric Blake  <eblake@redhat.com>
20931         stat-time: silence -Wunused-parameter regression
20932         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
20933         Prefer attribute over cast-to-void.
20934         (stat_time_normalize): Mark st as potentially unused.
20936 2018-01-02  Paul Eggert  <eggert@cs.ucla.edu>
20938         test-framework-sh: avoid netstat
20939         Problem reported by Kristýna Streitová (Bug#29947).
20940         * tests/init.sh (rand_bytes_): Stop using netstat, as it's
20941         deprecated on SuSE and it's not that important anyway.
20943 2018-01-01  Jim Meyering  <meyering@fb.com>
20945         update-copyright: add code to handle more special cases
20946         After running "make update-copyright" this year, five files
20947         required additional manual changes.  Automate those adjustments
20948         for next year.
20949         * Makefile (_year_and_prev): Define.
20950         (update-copyright): Add perl commands to induce this year's post-
20951         update-copyright adjustments.
20953 2018-01-01  Paul Eggert  <eggert@cs.ucla.edu>
20955         version-etc: new year
20956         * build-aux/gendocs.sh (version):
20957         * doc/gendocs_template:
20958         * doc/gendocs_template_min:
20959         * doc/gnulib.texi:
20960         * lib/version-etc.c (COPYRIGHT_YEAR):
20961         Update copyright dates by hand in templates and the like.
20963         maint: fix 'make update-copyright'
20964         * Makefile (update-copyright): Adjust to 2016-11-23 change
20965         to config/srclist-update, which changed the format of srclist.txt.
20967 2017-12-30  Paul Eggert  <eggert@cs.ucla.edu>
20969         chdir-safer: remove this module
20970         * MODULES.html.sh (func_all_modules): Remove chdir-safer.
20971         * NEWS: Document removal.
20972         * lib/chdir-safer.c, lib/chdir-safer.h, m4/afs.m4, m4/chdir-safer.m4:
20973         * modules/chdir-safer: Remove these files.
20975 2017-12-29  Samuel Thibault  <samuel.thibault@gnu.org>
20977         Add cross-compilation results for GNU/Hurd.
20978         * m4/calloc.m4: Add GNU/Hurd guess.
20979         * m4/cbrtl.m4: Likewise.
20980         * m4/ceil.m4: Likewise.
20981         * m4/ceilf.m4: Likewise.
20982         * m4/ceill.m4: Likewise.
20983         * m4/chown.m4: Likewise.
20984         * m4/duplocale.m4: Likewise.
20985         * m4/exp2l.m4: Likewise.
20986         * m4/expm1.m4: Likewise.
20987         * m4/fchdir.m4: Likewise.
20988         * m4/floor.m4: Likewise.
20989         * m4/floorf.m4: Likewise.
20990         * m4/fmod.m4: Likewise.
20991         * m4/fmodf.m4: Likewise.
20992         * m4/fmodl.m4: Likewise.
20993         * m4/getcwd.m4: Likewise.
20994         * m4/getgroups.m4: Likewise.
20995         * m4/gettimeofday.m4: Likewise.
20996         * m4/hypot.m4: Likewise.
20997         * m4/hypotf.m4: Likewise.
20998         * m4/hypotl.m4: Likewise.
20999         * m4/link-follow.m4: Likewise.
21000         * m4/link.m4: Likewise.
21001         * m4/linkat.m4: Likewise.
21002         * m4/log.m4: Likewise.
21003         * m4/log10.m4: Likewise.
21004         * m4/log10f.m4: Likewise.
21005         * m4/log1p.m4: Likewise.
21006         * m4/log1pf.m4: Likewise.
21007         * m4/log1pl.m4: Likewise.
21008         * m4/log2.m4: Likewise.
21009         * m4/log2f.m4: Likewise.
21010         * m4/logf.m4: Likewise.
21011         * m4/lstat.m4: Likewise.
21012         * m4/malloc.m4: Likewise.
21013         * m4/mbrlen.m4: Likewise.
21014         * m4/mbrtowc.m4: Likewise.
21015         * m4/mkdir.m4: Likewise.
21016         * m4/mkfifo.m4: Likewise.
21017         * m4/mknod.m4: Likewise.
21018         * m4/mkstemp.m4: Likewise.
21019         * m4/modf.m4: Likewise.
21020         * m4/modff.m4: Likewise.
21021         * m4/modfl.m4: Likewise.
21022         * m4/printf.m4: Likewise.
21023         * m4/pselect.m4: Likewise.
21024         * m4/ptsname.m4: Likewise.
21025         * m4/putenv.m4: Likewise.
21026         * m4/readlink.m4: Likewise.
21027         * m4/realloc.m4: Likewise.
21028         * m4/remainder.m4: Likewise.
21029         * m4/remainderf.m4: Likewise.
21030         * m4/remainderl.m4: Likewise.
21031         * m4/rmdir.m4: Likewise.
21032         * m4/round.m4: Likewise.
21033         * m4/roundf.m4: Likewise.
21034         * m4/roundl.m4: Likewise.
21035         * m4/select.m4: Likewise.
21036         * m4/setenv.m4: Likewise.
21037         * m4/signbit.m4: Likewise.
21038         * m4/sleep.m4: Likewise.
21039         * m4/stat.m4: Likewise.
21040         * m4/strerror.m4: Likewise.
21041         * m4/strtok_r.m4: Likewise.
21042         * m4/symlink.m4: Likewise.
21043         * m4/symlinkat.m4: Likewise.
21044         * m4/trunc.m4: Likewise.
21045         * m4/truncf.m4: Likewise.
21046         * m4/truncl.m4: Likewise.
21047         * m4/tzset.m4: Likewise.
21048         * m4/ungetc.m4: Likewise.
21049         * m4/usleep.m4: Likewise.
21050         * m4/wcwidth.m4: Likewise.
21052 2017-12-28  Bruno Haible  <bruno@clisp.org>
21054         gnulib-tool: Make --conditional-dependencies work better.
21055         Reported by Dmitry Selyutin <ghostman.sd@gmail.com>.
21056         * gnulib-tool (Options): Don't reject the combination of
21057         --conditional-dependencies with --with-tests.
21058         (func_emit_autoconf_snippets): Add argument referenceable_modules.
21059         Don't reference $modules.
21060         (func_import, func_create_testdir): Pass it.
21062 2017-12-19  Paul Eggert  <eggert@cs.ucla.edu>
21064         regex: use re_malloc etc. consistently
21065         Problem and original patch reported by Arnold Robbins in:
21066         https://sourceware.org/ml/libc-alpha/2017-12/msg00241.html
21067         * lib/regcomp.c (re_comp):
21068         * lib/regexec.c (push_fail_stack, build_trtable, match_ctx_clean):
21069         Use re_malloc/re_realloc/re_free instead of malloc/realloc/free.
21071 2017-12-15  Tim Rühsen  <tim.ruehsen@gmx.de>
21072             Paul Eggert  <eggert@cs.ucla.edu>
21074         glob: Silence warning about void pointer arithmetic.
21075         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
21076         arithmetic.
21078 2017-12-15  Bruno Haible  <bruno@clisp.org>
21080         spawn-pipe: Silence a clang warning.
21081         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
21082         * lib/spawn-pipe.c: Disable clang -Wconditional-uninitialized warnings
21083         in this file.
21085 2017-12-12  Paul Eggert  <eggert@cs.ucla.edu>
21087         explicit_bzero: port to macOS + Clang 9.0.0
21088         Problem reported by Marcus Johnson (Bug#29658).
21089         * lib/explicit_bzero.c (explicit_bzero) [__clang__]:
21090         Don’t use asm.
21092 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
21094         doc: Improve explanation of supporting relocatable libraries.
21095         * doc/relocatable-maint.texi (Supporting Relocation): Explain
21096         properly how to build the relocatable module for
21097         libraries. (Method and example code from Bruno Haible.)
21099 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
21101         doc: Use better texinfo tags in a few cases.
21102         * doc/gnulib.texi (Extending Gnulib): Use @option or @command
21103         instead of @samp in a few places.
21105 2017-12-11  Bruno Haible  <bruno@clisp.org>
21107         unistr/base: Update comment.
21108         * lib/unistr.in.h: Update comment about u*_mbtouc_unsafe functions.
21110 2017-12-10  Pádraig Brady  <P@draigBrady.com>
21112         test-faccessat.c: unlink temp file to avoid subsequent test failure
21113         * tests/test-faccessat.c: Remove the file to avoid failure
21114         to open the file on subsequent runs due to being created
21115         with no permissions.
21117 2017-12-10  Bruno Haible  <bruno@clisp.org>
21119         doc: New sect. "Modifying the build rules of a Gnulib import directory".
21120         * doc/gnulib-tool.texi (Modified build rules): New node.
21122 2017-12-10  Bruno Haible  <bruno@clisp.org>
21124         doc: Tweak wording.
21125         * doc/gnulib-tool.texi (Multiple instances): Talk about "programs", not
21126         "binaries".
21128 2017-12-05  Sam Steingold  <sds@gnu.org>
21129             Bruno Haible  <bruno@clisp.org>
21131         no-c++: Avoid "egrep: repetition-operator operand invalid" error.
21132         * m4/no-c++.m4 (gt_NO_CXX): Don't use '+' characters nor spaces in the
21133         AC_EGREP_CPP pattern.
21135 2017-12-03  Bruno Haible  <bruno@clisp.org>
21137         all: Replace more http URLs by https URLs.
21138         * lib/sm3.h, lib/sm3.c, tests/test-sm3.c: Use https: URL.
21139         * lib/unigbrk/u-grapheme-breaks.h: Likewise.
21140         * lib/unigbrk/uc-grapheme-breaks.c: Likewise.
21141         * tests/unigbrk/test-uc-grapheme-breaks.c: Likewise.
21143 2017-11-28  Paul Eggert  <eggert@cs.ucla.edu>
21145         Port better to CentOS 5
21146         Problems reported by Tom G. Christensen in:
21147         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00053.html
21148         * doc/glibc-functions/strverscmp.texi (strverscmp):
21149         Document strverscmp bug with glibc 2.9 and earlier.
21150         * doc/posix-functions/tzset.texi (tzset):
21151         Document that TZ with angle brackets is POSIX-2001 and later.
21152         * tests/test-nstrftime.c: Include unistd.h.
21153         (TZ_ANGLE_BRACKETS_SHOULD_WORK): New macro.
21154         (TZ): Use it to skip tests with angle brackets in TZ,
21155         for older systems.
21157         stat: add missing module dependencies
21158         * modules/lstat, modules/stat, modules/utimensat (Depends-on):
21159         Add stat-time.
21161 2017-11-28  Benno Schulenberg  <bensberg@telfort.nl>
21163         stat: fix compilation failure on macOS Sierra
21164         Reported by Marius Schamschula <mschamschula@gmail.com> in:
21165         https://savannah.gnu.org/bugs/?52546
21166         * lib/stat.c: Add missing include of stat-time.h.
21168 2017-11-28  Jim Meyering  <meyering@fb.com>
21170         test-faccessat.c: correct BASE definition to avoid parallel test failure
21171         * tests/test-faccessat.c (BASE): Define using this file's name, not
21172         that of test-lstat.c.  Using the latter caused this test to fail
21173         sometimes when run concurrently with test-lstat.
21175 2017-11-27  Daiki Ueno  <ueno@gnu.org>
21177         unicase: fix VPATH build
21178         * modules/unicase/special-casing (Makefile.am): Ensure that the
21179         base directory is created when generating
21180         unicase/special-casing.h.
21182 2017-11-27  Daiki Ueno  <ueno@gnu.org>
21184         libunistring: update to Unicode 9.0.0
21185         * lib/gen-uni-tables.c (fill_properties): Recognize
21186         Sentence_Terminal and Prepended_Concatenation_Mark.
21187         (is_property_default_ignorable_code_point): Exclude U+08E2.
21188         (fill_arabicshaping): Allow missing whitespace when parsing;
21189         recognize "AFRICAN FEH", "AFRICAN QAF", and "AFRICAN MOON".
21190         (output_blocks): Increase the element size of the level1 table to
21191         accommodate more blocks.
21192         (get_lbp): Recognize ZWJ, E_Base, and E_Modifier characters;
21193         Update each class according to the standard.
21194         (get_wbp): Recognize ZWJ, E_Base, E_Modifier, Glue_After_Zwj, and
21195         E_Base_GAZ characters.
21196         (output_gbp_table): Recognize ZWJ, E_Base, E_Modifier,
21197         Glue_After_Zwj, and E_Base_GAZ characters.
21198         * lib/unictype.in.h (UC_JOINING_GROUP_AFRICAN_FEH)
21199         (UC_JOINING_GROUP_AFRICAN_QAF, UC_JOINING_GROUP_AFRICAN_MOON): New
21200         enum value.
21201         * lib/unilbrk/lbrktables.h (LBP_ZWJ, LBP_EB, LBP_EM): New enum
21202         value.
21203         * lib/unilbrk/lbrktables.c (unilbrk_table): Extend the table with
21204         LBP_ZWJ, LBP_EB, and LBP_EM.
21205         * lib/uniwbrk.in.h (WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, WBP_EBG): New
21206         enum value.
21207         * lib/uniwbrk/u-wordbreaks.h: Implement WB3c, WB15, and WB16.
21208         * lib/uniwbrk/wbrktable.h (uniwbrk_prop_index): New variable
21209         declaration.
21210         * lib/uniwbrk/wbrktable.c (uniwbrk_prop_index): New variable.
21211         (uniwbrk_table): Implement WB14.
21212         * tests/uniwbrk/test-uc-wordbreaks.c (wordbreakproperty_to_string):
21213         Check WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, and WBP_EBG.
21214         * modules/unigbrk/u{32,16,8}-grapheme-breaks: No longer depend on
21215         uc-is-grapheme-break.
21216         * modules/unigbrk/uc-grapheme-breaks: New module.
21217         * modules/unigbrk/uc-grapheme-breaks-tests: New module.
21218         * lib/unigbrk.in.h (GBP_ZWJ, GBP_EB, GBP_EM, GBP_GAZ, GBP_EBG): New
21219         enum value.
21220         (uc_grapheme_breaks): New function, replacing uc_is_grapheme_break.
21221         * lib/unigbrk/u-grapheme-breaks.h: New file.
21222         * lib/unigbrk/u{32,16,8}-grapheme-breaks.c: Rewrite using
21223         u-grapheme-breaks.h instead of uc_is_grapheme_break.
21224         * lib/unigbrk/uc-grapheme-breaks.c: New file.
21225         * lib/unigbrk/uc-is-grapheme-break.c: Partially update to TR29 rev
21226         29.
21227         * tests/unigbrk/test-uc-gbrk-prop.c
21228         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
21229         GBP_GAZ, and GBP_EBG.
21230         * tests/unigbrk/test-uc-grapheme-breaks.c: New test.
21231         * tests/unigbrk/test-uc-is-grapheme-break.c
21232         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
21233         GBP_GAZ, and GBP_EBG.
21234         (main): Skip unsupported rules involving 3 or more characters,
21235         namely GB10, GB12, and GB13.
21236         * lib/uniwidth/width.c (nonspacing_table_data): Update.
21237         * all generated files under lib/uni* and tests/uni*: Regenerate.
21238         * all the affected modules: Bump version.
21240 2017-11-26  Bruno Haible  <bruno@clisp.org>
21242         strfmon_l: Fix compilation error with glibc 2.5.
21243         Reported by Tom G. Christensen <tgc@jupiterrise.com>
21244         in <https://lists.gnu.org/r/bug-gnulib/2017-11/msg00051.html>.
21245         * lib/monetary.in.h: Include also <locale.h>.
21247 2017-11-24  Paul Eggert  <eggert@cs.ucla.edu>
21249         posixtm: remove PDS_LEADING_YEAR
21250         This changes the API slightly, in a hopefully-innocuous way.
21251         Without this change the code had undefined behavior when a
21252         caller specified neither PDS_LEADING_YEAR nor PDS_TRAILING_YEAR.
21253         Problem reported by Pádraig Brady in:
21254         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00048.html
21255         * NEWS: Mention this.
21256         * lib/posixtm.c (posix_time_parse): Treat the absence of
21257         PDS_TRAILING_YEAR as if PDS_LEADING_YEAR were present.
21258         * lib/posixtm.h (PDS_LEADING_YEAR): Remove (actually, leave it
21259         present, but define it as zero, for compatibility with existing
21260         source code).  All other PDS_* values moved up.
21261         * tests/test-posixtm.c (LY): New macro.
21262         (T): Use it.  Do not expect a particular numeric encoding
21263         for PDS_CENTURY etc.
21265 2017-11-23  Paul Eggert  <eggert@cs.ucla.edu>
21267         stat: work around Solaris bug with tv_nsec < 0
21268         * doc/posix-functions/fstat.texi (fstat):
21269         * doc/posix-functions/fstatat.texi (fstatat):
21270         * doc/posix-functions/lstat.texi (lstat):
21271         * doc/posix-functions/stat.texi (stat):
21272         Mention Solaris 11 bug.
21273         * lib/fstat.c, lib/fstatat.c, lib/lstat.c: Include stat-time.h.
21274         * lib/fstat.c (rpl_fstat) [!WINDOWS_NATIVE]:
21275         * lib/lstat.c (rpl_lstat):
21276         * lib/stat.c (rpl_stat):
21277         Normalize resulting timestamps.
21278         * lib/fstatat.c (normal_fstatat): New function.
21279         (rpl_fstatat): Use it.
21280         * lib/stat-time.h: Include intprops.h, errno.h, stddef.h.
21281         (stat_time_normalize): New function.
21282         * m4/fstat.m4 (gl_FUNC_FSTAT):
21283         * m4/fstatat.m4 (gl_FUNC_FSTATAT):
21284         * m4/lstat.m4 (gl_FUNC_LSTAT):
21285         * m4/stat.m4 (gl_FUNC_STAT):
21286         Replace on Solaris.
21287         * modules/fstat (Depends-on):
21288         * modules/fstatat (Depends-on):
21289         Add stat-time.
21290         * modules/stat-time (Depends-on): Add errno, intprops.
21292 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
21294         regex: merge from glibc
21295         * lib/regcomp.c (init_word_char): Add comments.
21297 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
21299         regex: merge from glibc
21300         * lib/regcomp.c (__regcomp, __regfree) [_LIBC]: Now hidden.
21301         * lib/regex_internal.h (internal_function): Remove.
21302         All uses removed.
21304 2017-11-20  Bruno Haible  <bruno@clisp.org>
21306         crypto/gc-sm3: Fix buffer overrun.
21307         * lib/gc-gnulib.c (MAX_DIGEST_SIZE): Bump to 32.
21308         Reported by Coverity.
21310 2017-11-12  Jim Meyering  <meyering@fb.com>
21312         maint: shorten https://lists.gnu.org/archive/html/... links
21313         Each /archive/html/ part can be replace with /r/.
21314         Run this to induce the change:
21315         git grep -l archive/html|xargs perl -pi -e 's,/archive/html/,/r/,g'
21316         * ChangeLog: Perform that substitution.
21317         * Makefile: Likewise.
21318         * STATUS-libposix: Likewise.
21319         * build-aux/bootstrap: Likewise.
21320         * doc/maintain.texi: Likewise.
21321         * gnulib-tool: Likewise.
21322         * lib/allocator.h: Likewise.
21323         * lib/argp-ba.c: Likewise.
21324         * lib/argp-pv.c: Likewise.
21325         * lib/canon-host.c: Likewise.
21326         * lib/canonicalize-lgpl.c: Likewise.
21327         * lib/float.in.h: Likewise.
21328         * lib/fstat.c: Likewise.
21329         * lib/getdelim.c: Likewise.
21330         * lib/getprogname.c: Likewise.
21331         * lib/glthread/thread.h: Likewise.
21332         * lib/intprops.h: Likewise.
21333         * lib/mbsrtowcs-state.c: Likewise.
21334         * lib/safe-read.c: Likewise.
21335         * lib/signal.in.h: Likewise.
21336         * lib/stat.c: Likewise.
21337         * lib/stdbool.in.h: Likewise.
21338         * lib/stdio-impl.h: Likewise.
21339         * lib/stdio.in.h: Likewise.
21340         * lib/sysexits.in.h: Likewise.
21341         * lib/timespec.h: Likewise.
21342         * lib/wcsrtombs-state.c: Likewise.
21343         * m4/alloca.m4: Likewise.
21344         * m4/extern-inline.m4: Likewise.
21345         * m4/fstatat.m4: Likewise.
21346         * m4/gnulib-common.m4: Likewise.
21347         * m4/lib-ignore.m4: Likewise.
21348         * m4/printf.m4: Likewise.
21349         * m4/regex.m4: Likewise.
21350         * m4/stat-size.m4: Likewise.
21351         * m4/std-gnu11.m4: Likewise.
21352         * m4/stdbool.m4: Likewise.
21353         * m4/sys_types_h.m4: Likewise.
21354         * m4/threadlib.m4: Likewise.
21355         * m4/vararrays.m4: Likewise.
21356         * pygnulib/GLImport.py: Likewise.
21357         * tests/test-exp.h: Likewise.
21358         * tests/test-exp2.h: Likewise.
21359         * tests/test-expm1.h: Likewise.
21360         * tests/test-fflush2.c: Likewise.
21361         * tests/test-getopt_long.h: Likewise.
21362         * tests/test-intprops.c: Likewise.
21363         * tests/test-log.h: Likewise.
21364         * tests/test-log10.h: Likewise.
21365         * tests/test-log1p.h: Likewise.
21366         * tests/test-log2.h: Likewise.
21367         * tests/test-printf-posix.h: Likewise.
21368         * tests/test-regex.c: Likewise.
21369         * tests/test-snprintf-posix.h: Likewise.
21370         * tests/test-sprintf-posix.h: Likewise.
21371         * tests/test-stdalign.c: Likewise.
21372         * tests/test-stdbool.c: Likewise.
21373         * tests/test-vasnprintf-posix.c: Likewise.
21374         * tests/test-vasprintf-posix.c: Likewise.
21375         * top/maint.mk: Likewise.
21377 2017-11-12  Bruno Haible  <bruno@clisp.org>
21379         faccessat: Make the last change more robust.
21380         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Require
21381         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Treat "guessing yes" like "yes".
21383 2017-11-11  Paul Eggert  <eggert@cs.ucla.edu>
21385         faccessat: port to macOS (Bug#29231)
21386         macOS faccessat has the same bug that lstat does: if the file
21387         name ends in '/' it ignores the trailing slash.
21388         Problem reported for Emacs by Vincent Zhang.
21389         * doc/posix-functions/faccessat.texi (faccessat): Document this.
21390         * lib/faccessat.c (_GL_INCLUDING_UNISTD_H): Define and undef
21391         around the initial includes.  Include errno.h, string.h, sys/stat.h.
21392         (orig_faccessat) [HAVE_FACCESSAT]: New function.
21393         Include "unistd.h" after defining it.
21394         (rpl_faccessat) [HAVE_FACCESSAT]: New implementation.
21395         * lib/unistd.in.h (faccessat) [REPLACE_FACCESSAT]:
21396         Handle in the usual way.
21397         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Replace faccessat if
21398         lstat dereferences symlinks, since faccessat is likely to
21399         have the same problem.
21400         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Default REPLACE_ACCESSAT.
21401         * modules/faccessat (Depends-on): Add fstatat.
21402         Depend if REPLACE_FACCESSAT is 1, too.
21403         (configure.ac): Link if REPLACE_FACCESSAT is 1.
21404         * modules/faccessat-tests (Depends-on): Add symlink.
21405         * modules/unistd (unistd.h): Substitute REPLACE_FACCESSAT.
21406         * tests/test-faccessat.c (main): Test for the bug.
21408 2017-11-11  Bruno Haible  <bruno@clisp.org>
21410         getprogname: Fix compilation error on IRIX.
21411         * lib/getprogname.c (getprogname) [__sgi]: Fix type of local variable
21412         'namesize'.
21414 2017-11-11  Bruno Haible  <bruno@clisp.org>
21416         year2038: Tweak last patch.
21417         * m4/year2038.m4 (gl_YEAR2038): Correct indentation.
21419 2017-11-06  Paul Eggert  <eggert@cs.ucla.edu>
21421         year2038: be more insistent about 64-bit time_t
21422         Applications requiring access to arbitrary files should not be
21423         built with 32-bit time_t on hosts that have 64-bit timestamps,
21424         as this can lead to real trouble at runtime.
21425         * m4/year2038.m4 (gl_YEAR2038): Do not require AC_CANONICAL_HOST.
21426         Check on all systems, not just MinGW.  Use a heuristic involving
21427         TIME_T_32_BIT_OK, cross_compiling, and the touch command to
21428         output a failure or just a warning, to make it more likely that
21429         builders will select 64-bit time_t.
21431 2017-11-05  Paul Eggert  <eggert@cs.ucla.edu>
21433         havelib: fix typo in previous change
21434         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Fix typo.
21436         Don’t use AC_EGREP_CPP if affected by CFLAGS
21437         * m4/float_h.m4 (gl_FLOAT_H):
21438         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI):
21439         * m4/lib-ld.m4 (AC_LIB_PROG_LD):
21440         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB):
21441         * m4/year2038.m4 (gl_YEAR2038):
21442         Prefer AC_COMPILE_IFELSE to AC_EGREP_CPP when testing conditions
21443         likely to be affected by the choice of CFLAGS, since CFLAGS are
21444         not used by AC_EGREP_CPP.  Without this patch, ‘./configure
21445         CFLAGS="-m32"’ fails on gzip with GNU/Linux x86-64.
21447         fstatat: pacify GCC on unusual platform
21448         * lib/fstatat.c (orig_fstatat) [!HAVE_WORKING_FSTATAT_ZERO_FLAG]:
21449         Omit, as it’s unused in this case.
21451 2017-10-29  Paul Eggert  <eggert@cs.ucla.edu>
21453         timespec: prefer ‘assume’ to ‘assure’
21454         This avoids some runtime tests.  The rest of the module makes
21455         similar assumptions and there is little point to testing here.
21456         * lib/timespec.h: Include verify.h instead of assure.h.
21457         (timespec_cmp): Use ‘assume’, not ‘assure’.
21458         Also, remove an unnecessary cast to ‘int’, as lots of other
21459         code in this module now causes -Wconversion to complain, and
21460         this is a problem with -Wconversion not with the code.
21462         * modules/timespec (Depends-on): Depend on ‘verify’, not ‘assure’.
21464         Port recent gnulib-tool change to Dash
21465         * gnulib-tool (func_create_testdir): Don't assume that the shell
21466         retokenizes after expanding "$@" inside the call to
21467         func_execute_command.  Dash 0.5.8-2.1ubuntu2 does not.
21469 2017-10-27  Jim Meyering  <meyering@fb.com>
21471         timespec.h: use "assure" to avoid a spurious warning
21472         * lib/timespec.h: Include "assure.h" and use it to help
21473         gcc7's -Wstrict-overflow avoid a false positive warning
21474         for a use in coreutils' ls.c.  Suggested by Paul Eggert in
21475         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00007.html
21476         * modules/timespec (Depends-on): Add assure.
21478 2017-10-29  Bruno Haible  <bruno@clisp.org>
21480         Avoid several test failures with traditional locales on Haiku.
21481         * m4/locale-ar.m4 (gt_LOCALE_AR): On BeOS and Haiku, set LOCALE_AR=none.
21482         * m4/locale-fr.m4 (gt_LOCALE_FR): On BeOS and Haiku, set LOCALE_FR=none.
21483         * m4/locale-ja.m4 (gt_LOCALE_JA): On BeOS and Haiku, set LOCALE_JA-none.
21484         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On BeOS and Haiku, set
21485         LOCALE_ZH_CN=none.
21487 2017-10-29  Bruno Haible  <bruno@clisp.org>
21489         strerror_r-posix: Fix behaviour and test failure on Haiku.
21490         * lib/strerror_r.c (strerror_r): Don't assume that valid error numbers
21491         are positive. Work around return value 0 instead of ERANGE on Haiku.
21492         For unknown error numbers, use a format string consistent with perror().
21493         * doc/posix-functions/strerror_r.texi: Mention the Haiku problem.
21494         * tests/test-strerror_r.c (main): Don't assume that valid error numbers
21495         are positive.
21497 2017-10-29  Bruno Haible  <bruno@clisp.org>
21499         get-rusage-data: Avoid crash on Haiku.
21500         * lib/get-rusage-data.c: Avoid the setlimit-based implementation.
21502 2017-10-29  Bruno Haible  <bruno@clisp.org>
21504         get-rusage-as: Avoid crash on Haiku.
21505         * lib/get-rusage-as.c: Avoid the setlimit-based implementation.
21507 2017-10-29  Bruno Haible  <bruno@clisp.org>
21509         ilogbl: Ensure replacement on Haiku.
21510         * m4/ilogbl.m4 (gl_FUNC_ILOGBL): Invoke gl_FUNC_ILOGBL_WORKS and set
21511         REPLACE_ILOGBL if ilogbl does not work.
21512         (gl_FUNC_ILOGBL_WORKS): New macro.
21513         * lib/math.in.h (ilogbl): Replace if REPLACE_ILOGBL is 1.
21514         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ILOGBL.
21515         * modules/math (Makefile.am): Substitute REPLACE_ILOGBL.
21516         * modules/ilogbl (Depends-on, configure.ac): Consider REPLACE_ILOGBL.
21517         * doc/posix-functions/ilogbl.texi: Mention the Haiku problem.
21519 2017-10-29  Bruno Haible  <bruno@clisp.org>
21521         expl: Ensure replacement on Haiku.
21522         * m4/expl.m4 (gl_FUNC_EXPL): Test whether an expl() return value is
21523         zero.
21524         * doc/posix-functions/expl.texi: Mention the Haiku problem.
21526 2017-10-29  Bruno Haible  <bruno@clisp.org>
21528         math: Fix test failure on Haiku.
21529         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Override on Haiku.
21530         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Update accordingly.
21531         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
21532         * doc/posix-headers/math.texi: Mention the Haiku problem.
21534 2017-10-29  Bruno Haible  <bruno@clisp.org>
21536         gnulib-tool: Avoid unnecessary config.h.in remaking in testdirs.
21537         * gnulib-tool (func_create_testdir): Use workaround against 'autoheader'
21538         bug reported at <https://savannah.gnu.org/support/index.php?109406>.
21540 2017-10-29  Bruno Haible  <bruno@clisp.org>
21542         crypto/*: Verify that the header file is self-contained.
21543         * tests/test-gc-*.c: Include the module's header file immediately after
21544         <config.h>.
21545         * tests/test-hmac-*.c: Likewise.
21546         * tests/test-arcfour.c: Likewise.
21547         * tests/test-arctwo.c: Likewise.
21548         * tests/test-des.c: Likewise.
21549         * tests/test-md2.c: Likewise.
21550         * tests/test-md4.c: Likewise.
21551         * tests/test-md5.c: Likewise.
21552         * tests/test-rijndael.c: Likewise.
21553         * tests/test-sha1.c: Likewise.
21554         * tests/test-sm3.c: Likewise.
21556 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
21557             Bruno Haible  <bruno@clisp.org>
21559         crypto/gc: fix build failure with -Werror=suggest-attribute=const
21560         * lib/gc.h (gc_hash_digest_length): Mark with 'const' attribute.
21562 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
21564         New module: crypto/gc-sm3
21565         * lib/gc.h: Declare SM3-related stuffs.
21566         * lib/gc-gnulib.c: Support sm3 in internal functions.
21567         * lib/gc-libgcrypt.c: Support sm3 with libgcrypt.
21568         * m4/gc-sm3.m4: m4 file for gc-sm3 module.
21569         * modules/crypto/gc-sm3: Define gc-sm3 module.
21570         * tests/test-gc-sm3.c: Implement SM3 test case with libgcrypt.
21571         * modules/crypto/gc-sm3-tests: Define gc-sm3 test module.
21572         * MODULES.html.sh: List gc-sm3 module.
21574 2017-10-29  Bruno Haible  <bruno@clisp.org>
21576         random, random_r: Mention different prototypes on Haiku.
21577         * doc/posix-functions/random.texi: Mention different prototype on Haiku.
21578         * doc/glibc-functions/random_r.texi: Likewise.
21579         * doc/glibc-functions/initstate_r.texi: Likewise.
21580         * doc/glibc-functions/setstate_r.texi: Likewise.
21582 2017-10-28  Bruno Haible  <bruno@clisp.org>
21584         posix_spawn: Avoid spurious message in configure output.
21585         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Discard stderr output from
21586         'cmp' command.
21588 2017-10-28  Bruno Haible  <bruno@clisp.org>
21590         inet_ntop, inet_pton: Determine needed library correctly on Haiku.
21591         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Search also in libnetwork.
21592         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
21594 2017-10-28  Bruno Haible  <bruno@clisp.org>
21596         ioctl: Override non-POSIX declaration on Haiku.
21597         * m4/ioctl.m4 (gl_FUNC_IOCTL): Include also <unistd.h>.
21598         * lib/sys_ioctl.in.h: Add comment about Haiku.
21599         * doc/posix-functions/ioctl.texi: Mention Haiku problem.
21600         * doc/glibc-headers/sys_ioctl.texi: Likewise.
21602 2017-10-28  Bruno Haible  <bruno@clisp.org>
21604         crypto/sm3: Add overview documentation to the .h file.
21605         * lib/sm3.h: Add comments.
21607 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
21609         New module: crypto/sm3
21610         This new module can be used to compute SM3 message digest of files or
21611         memory blocks according to the specification GM/T 004-2012
21612         Cryptographic Hash Algorithm SM3, published by State Cryptography
21613         Administration, China.
21614         The official SM3 cryptographic hash algorithm specification is
21615         available at
21616         http://www.sca.gov.cn/sca/xwdt/2010-12/17/content_1002389.shtml
21617         * lib/sm3.h: Declare the APIs of sm3 module.
21618         * lib/sm3.c: Implement SM3 hash algorithm.
21619         * m4/sm3.m4: m4 file for sm3 module.
21620         * modules/crypto/sm3: Define sm3 module.
21621         * tests/test-sm3.c: Implement SM3 test case.
21622         * modules/crypto/sm3-tests: Define sm3 test module.
21623         * MODULES.html.sh: List sm3 module.
21625 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
21627         gc-libgcrypt: fix undefined enum type in switch statement
21628         Resolve the following build failure:
21629         lib/gc-libgcrypt.c: In function 'gc_hash_open':
21630         lib/gc-libgcrypt.c:317:5: error: case value '0' not in enumerated type
21631         'Gc_hash_mode {aka enum Gc_hash_mode}' [-Werror=switch]
21632              case 0:
21633              ^~~~
21634         * lib/gc.h (enum Gc_hash_mode): Add value GC_NULL.
21635         * lib/gc-libgcrypt.c (gc_hash_open): Use this enum value instead of 0.
21637 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
21639         gc-libgcrypt: fix assignment error due to -Werror=pointer-sign
21640         Resolve the following build failure:
21641         lib/gc-libgcrypt.c: In function 'gc_hash_read':
21642         lib/gc-libgcrypt.c:460:14: error: pointer targets in assignment differ
21643         in signedness [-Werror=pointer-sign]
21644             digest = gcry_md_read (ctx->gch, 0);
21645                    ^
21646         * lib/gc-libgcrypt.c (gc_hash_read): Cast result of gcry_md_read.
21648 2017-10-26  Bruno Haible  <bruno@clisp.org>
21650         havelib: Fix value of LD for 32-bit compilation on NetBSD/sparc64.
21651         * m4/lib-ld.m4 (AC_LIB_PROG_LD): On NetBSD/sparc64 with CC="gcc -m32",
21652         set LD to '/usr/bin/ld -m elf32_sparc', not '/usr/bin/ld'.
21654 2017-10-21  Paul Eggert  <eggert@cs.ucla.edu>
21656         glob: fix another heap buffer overflow
21657         Problem reported by Tim Rühsen in:
21658         https://sourceware.org/bugzilla/show_bug.cgi?id=22332
21659         * lib/glob.c (glob): Avoid buffer overrun when unescaping.
21661 2017-10-19  Paul Eggert  <eggert@cs.ucla.edu>
21663         quotearg: pacify compiler re unsigned
21664         * lib/quotearg.c (quotearg_n_options):
21665         Rewrite to avoid diagnostic from overly-picky compiler.
21666         Problem reported by Sami Kerola in:
21667         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00060.html
21669         glob: fix heap buffer overflow
21670         * lib/glob.c (glob): Fix off-by-one error introduced into
21671         glibc in commit dd7d45e838a42b0ed470c44b55901ea98d0c2bab
21672         dated 1997-10-29 20:33:40.  Problem reported by Tim Rühsen in:
21673         https://sourceware.org/bugzilla/show_bug.cgi?id=22320
21674         Fix suggested by Bruno Haible.
21676 2017-10-18  Paul Eggert  <eggert@cs.ucla.edu>
21678         glob: pacify fuzzer for mempcpy
21679         Problem reported by Tim Rühsen in:
21680         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00054.html
21681         * lib/glob.c (glob): Do not pass NULL to mempcpy.
21683 2017-10-12  Bruno Haible  <bruno@clisp.org>
21685         doc: Fix syntax error (regression from 2017-10-03).
21686         * doc/posix-functions/strncpy.texi: Fix syntax error.
21688 2017-10-12  Bruno Haible  <bruno@clisp.org>
21690         doc: Update for Solaris 11.3.
21691         * doc/**/*.texi: For bugs that exist in both Solaris 11.0 and 11.3,
21692         mention Solaris 11.3.
21693         * m4/log2.m4: Fix comments.
21694         * m4/log2f.m4: Likewise.
21695         * m4/printf.m4: Update comments.
21696         * m4/rename.m4: Likewise.
21697         * m4/strncat.m4: Likewise.
21699         all: Write "Solaris 11.0" instead of "Solaris 11 2011-11".
21701 2017-10-10  Bruno Haible  <bruno@clisp.org>
21703         doc: Improve doc about ioctl.
21704         * doc/posix-functions/ioctl.texi: Fix list of platforms with non-POSIX
21705         prototype.
21707 2017-10-09  Bruno Haible  <bruno@clisp.org>
21709         wcwidth: Don't use obsolete syntax of 'test'.
21710         Reported by Eric Blake.
21711         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Don't optimize two 'test'
21712         invocations into one, as POSIX marks '-a' and '-o' as "obsolescent".
21714 2017-10-09  Bruno Haible  <bruno@clisp.org>
21716         getopt-posix: Fix build failure when using ac_cv_header_getopt_h=no.
21717         Reported by Christian Ehrhardt <christian.ehrhardt@canonical.com>
21718         and Daniel P. Berrange <berrange@redhat.com>.
21719         * lib/unistd.in.h (getopt): Don't attempt to avoid namespace pollution
21720         on glibc systems. The getopt-pfx-core.h file declares exactly what
21721         unistd.h needs, nothing more.
21723 2017-10-08  Bruno Haible  <bruno@clisp.org>
21725         vma-iter: Improve support for FreeBSD.
21726         * lib/vma-iter.c (vma_iterate_proc): New function, extracted from
21727         vma_iterate.
21728         (vma_iterate): Use it. For FreeBSD, try vma_iterate_bsd first.
21730 2017-10-08  Bruno Haible  <bruno@clisp.org>
21732         vma-iter: Fix truncated result on NetBSD (regression from 2017-10-07).
21733         * lib/vma-iter.c (MIN_LEFTOVER): Define to 1, not 0.
21735 2017-10-07  KO Myung-Hun  <komh@chollian.net>
21737         test-framework-sh: Fix 'invalid path dir' error.
21738         On OS/2, a path separator is ';' not ':'. And ':' is used as a
21739         separator between a drive letter and directory parts.
21740         As a result, an absolute path such as x:/path/to/dir on OS/2 is
21741         treated as an invalid path dir.
21742         * tests/init.sh (PATH_SEPARATOR): Set at startup.
21743         (path_prepend_): '?:*' is also an absolute path. Use $PATH_SEPARATOR
21744         instead of hard coded ':'.
21746 2017-10-07  Bruno Haible  <bruno@clisp.org>
21748         vma-iter: Fix truncated result on Linux (regression from 2017-09-26).
21749         * lib/vma-iter.c (MIN_LEFTOVER): New macro.
21750         (STACK_ALLOCATED_BUFFER_SIZE): Set to a minimal value if not needed.
21751         (rof_open): On Linux, do multiple read() calls and make sure
21752         MIN_LEFTOVER bytes are left when read() returns.
21754 2017-10-07  Bruno Haible  <bruno@clisp.org>
21756         vma-iter: Improve support for GNU/Hurd.
21757         * lib/vma-iter.c (vma_iterate): On GNU/Hurd, use the Mach vm_region()
21758         API, not the /proc file system.
21760 2017-10-07  Bruno Haible  <bruno@clisp.org>
21762         test-framework-sh: Don't require bash on Windows and OS/2.
21763         Reported by KO Myung-Hun.
21764         * tests/test-init.sh: Use 'shopt' only when running in bash.
21766 2017-10-06  KO Myung-Hun  <komh@chollian.net>
21768         wcwidth: check a macro version of wcwidth () as well
21769         * lib/wchar.in.h: Revert commit from 2016-01-14.
21770         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test if wcwidth is a macro.
21772 2017-10-06  Bruno Haible  <bruno@clisp.org>
21774         getopt-posix: Clarify copyright header.
21775         * lib/getopt.in.h: Don't state that gnulib is under LGPL.
21776         * lib/getopt-pfx-core.h: Likewise.
21777         * lib/getopt-pfx-ext.h: Likewise.
21778         * lib/getopt-cdefs.in.h: Likewise.
21780 2017-10-03  Bruno Haible  <bruno@clisp.org>
21782         Fix warning "`gl_HOST_CPU_C_ABI' was expanded before it was required".
21783         * modules/host-cpu-c-abi (configure.ac): Require, don't invoke
21784         gl_HOST_CPU_C_ABI.
21786 2017-10-03  Bruno Haible  <bruno@clisp.org>
21788         doc: warn about misuse of strncpy and wcsncpy.
21789         * doc/posix-functions/strcpy.texi: Describe requirements on prior
21790         memory allocation.
21791         * doc/posix-functions/wcscpy.texi: Likewise.
21792         * doc/posix-functions/strncpy.texi: Describe what this function is not
21793         useful for.
21794         * doc/posix-functions/wcsncpy.texi: Likewise.
21796 2017-10-02  Paul Eggert  <eggert@cs.ucla.edu>
21798         fsuage: fix typo in previous change
21799         * lib/fsusage.c: Remove stray include of full-read.h.
21800         Problem reported by Sam Steingold for macOS (Bug#28669).
21802 2017-10-01  Paul Eggert  <eggert@cs.ucla.edu>
21804         fsusage: remove SVR2 support
21805         SVR2 was obsolete by 1986 and is no longer supported by anybody,
21806         and its code was getting in the way of use of this module by
21807         Emacs, which has its own ‘read’ function anyway.
21808         * lib/fsusage.c: Do not include sys/filsys.h.
21809         (get_fs_usage): Remove SVR2-specific code.
21810         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE):
21811         Do not test for sys/filsys.h or set STAT_READ_FILSYS.
21812         * modules/fsusage (Depends-on): Do not depend on full-read.
21814         Simplify autoupdate of licenses
21815         * config/srclistvars.sh (GNUWWWLICENSES): Move to a more-typical
21816         place.
21818 2017-10-01  Bruno Haible  <bruno@clisp.org>
21820         vma-iter: Add support for GNU/Hurd.
21821         * lib/vma-iter.c: Treat GNU/Hurd like Linux.
21822         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
21824 2017-09-30  Bruno Haible  <bruno@clisp.org>
21826         vma-iter: Make it work on 32-bit Solaris with module 'largefile'.
21827         * modules/vma-iter: Don't test for sys/procfs.h, as this test would
21828         fail when module 'largefile' is in use.
21829         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't test HAVE_SYS_PROCFS_H.
21830         * lib/vma-iter.c: Undefine _FILE_OFFSET_BITS early.
21831         Don't test HAVE_SYS_PROCFS_H.
21833 2017-09-30  Bruno Haible  <bruno@clisp.org>
21835         havelib: Make it work for CC="gcc -m32" (regression from 2017-02-19).
21836         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Require gl_HOST_CPU_C_ABI.
21837         When $CC produces 32-bit code, set acl_libdirstem to 'lib', not 'lib64'.
21838         * modules/havelib (Depends-on): Add host-cpu-c-abi.
21840 2017-09-30  Bruno Haible  <bruno@clisp.org>
21842         uniname/uniname: Don't assume C99 compiler (regression from 2015-02-16).
21843         * lib/uniname/uniname.c (unicode_name_character): Add braces around
21844         scope of local variables.
21846 2017-09-28  Bruno Haible  <bruno@clisp.org>
21848         string: code style
21849         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Reorder list of
21850         substitutable variables.
21851         * modules/string (Makefile.am): Likewise.
21853 2017-09-26  Bruno Haible  <bruno@clisp.org>
21855         uniname/uniname-tests: Tighten code.
21856         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Merge two
21857         local variables into one.
21859 2017-09-26  Bruno Haible  <bruno@clisp.org>
21861         vma-iter: Improvements for Linux and BSD platforms.
21862         - Add support for DragonFly BSD.
21863         - Make it more reliable on Linux, GNU/kFreeBSD, FreeBSD, NetBSD.
21864         * lib/vma-iter.c (struct rofile, rof_open, rof_peekchar, rof_close):
21865         Read the entire file into memory in a single system call.
21866         (vma_iterate): Update. Read from /proc on DragonFly BSD like on FreeBSD.
21867         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on DragonFly BSD.
21869 2017-09-26  Bruno Haible  <bruno@clisp.org>
21871         vma-iter: Provide the protection flags on FreeBSD.
21872         * lib/vma-iter.c (vma_iterate) [FreeBSD]: When reading from /proc,
21873         skip three fields between the addresses and the protection flags.
21875 2017-09-26  Paul Eggert  <eggert@cs.ucla.edu>
21877         glob: remove bogus extern decl
21878         * lib/glob.c (__glob_pattern_type): Remove now-spurious
21879         extern declaration.  Problem reported by Adhemerval Zanella in:
21880         https://sourceware.org/ml/libc-alpha/2017-09/msg00972.html
21882 2017-09-25  Paul Eggert  <eggert@cs.ucla.edu>
21884         uniname/uniname-tests: integer overflow fix
21885         * tests/uniname/test-uninames.c (fill_names, fill_aliases):
21886         Check for integer overflow.
21888         duplocale-tests: fix unlikely crash
21889         * tests/test-duplocale.c (get_locale_dependent_values):
21890         Don’t crash with absurdly long month names.
21892         maint: fix overflow checking in nap.h
21893         * modules/chown-tests:
21894         * modules/fchownat-tests, modules/fdutimensat-tests:
21895         * modules/futimens-tests, modules/lchown-tests:
21896         * modules/stat-time-tests, modules/utime-tests:
21897         * modules/utimens-tests, modules/utimensat-tests:
21898         Depend on intprops.
21899         * tests/nap.h: Include intprops.h.
21900         (diff_timespec): Handle overflow properly.
21902         sys_types: update URL
21903         * m4/sys_types_h.m4: Use https: URL.
21905         parse-datetime: fix dependency
21906         * modules/parse-datetime (Depends-on): Depend
21907         on nstrftime, not strftime.
21909         parse-datetime, posixtm: avoid uninit access
21910         * lib/parse-datetime.y (parse_datetime2):
21911         * lib/posixtm.c (posixtime):
21912         Do not access uninitialized storage, even though the resulting
21913         value is never used.
21915 2017-09-25  Bruno Haible  <bruno@clisp.org>
21917         vma-iter: Improvements for BSD platforms.
21918         - Add support for GNU/kFreeBSD.
21919         - Make it work on FreeBSD and NetBSD even when /proc is not mounted.
21920         - Speed up on OpenBSD.
21921         * lib/vma-iter.c (struct rofile, rof*): Define also on GNU/kFreeBSD.
21922         (vma_iterate_bsd): New function.
21923         (vma_iterate): Use it as fallback on FreeBSD and NetBSD. Use it as
21924         first choice on OpenBSD. Treat GNU/kFreeBSD like Linux.
21925         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
21926         * modules/vma-iter (configure.ac): Require AC_C_INLINE.
21928 2017-09-23  Bruno Haible  <bruno@clisp.org>
21930         strfmon_l: New module.
21931         * modules/strfmon_l: New file.
21932         * lib/strfmon_l.c: New file.
21933         * m4/strfmon_l.m4: New file.
21934         * doc/posix-functions/strfmon_l.texi: Mention the new module.
21935         * modules/strfmon_l-tests: New file.
21936         * tests/test-strfmon_l.c: New file.
21938         monetary: New module.
21939         * modules/monetary: New file.
21940         * lib/monetary.in.h: New file.
21941         * m4/monetary_h.m4: New file.
21942         * doc/posix-headers/monetary.texi: Mention the new module.
21943         * modules/monetary-tests: New file.
21944         * tests/test-monetary.c: New file.
21945         * modules/monetary-c++-tests: New file.
21946         * tests/test-monetary-c++.cc: New file.
21947         * modules/duplocale-tests (configure.ac): Use AC_CHECK_HEADERS_ONCE.
21949 2017-09-23  Bruno Haible  <bruno@clisp.org>
21951         duplocale tests: Fix test crash on Linux/x86.
21952         * tests/test-duplocale.c (test_with_uselocale): Disconnect the mixed2
21953         locale from the current thread before freeing it.
21955 2017-09-21  Paul Eggert  <eggert@cs.ucla.edu>
21957         mktime: port to OpenVMS
21958         Problem reported by John E. Malmberg in:
21959         https://lists.gnu.org/r/bug-gnulib/2017-09/msg00100.html
21960         * m4/mktime.m4 (TIME_T_IS_SIGNED): Default to 0.
21962 2017-09-16  Paul Eggert  <eggert@cs.ucla.edu>
21964         manywarnings: port to GCC on 64-bit MS-Windows
21965         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Work better if
21966         LONG_MAX < PTRDIFF_MAX.  Problem reported by Richard Copley in:
21967         https://lists.gnu.org/r/emacs-devel/2017-09/msg00392.html
21969 2017-09-13  Bruno Haible  <bruno@clisp.org>
21971         all: Replace many more http URLs by https URLs. Update stale URLs.
21972         * users.txt: Remove mention of 'newts'.
21973         * lib/localename.c: Update comment about LANG_SOTHO.
21975 2017-09-13  Paul Eggert  <eggert@cs.ucla.edu>
21977         all: Replace many http URLs by https URLs.
21979 2017-09-12  Bruno Haible  <bruno@clisp.org>
21981         doc: Prefer https URLs where possible.
21982         * doc/**/*.texi: Use https URLs instead of http URLs where possible.
21983         * doc/ld-output-def.texi: Remove unavailable URL.
21985 2017-09-12  Paul Eggert  <eggert@cs.ucla.edu>
21987         maintainer-makefile: FTP -> HTTPS
21988         * top/maint.mk (url_dir_list, ftp-gnu): Use HTTPS protocol instead
21989         of FTP, which is planned to be decommissioned on 2017-11-01.
21991 2017-09-12  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
21993         libc-config: Fix __GNUC_PREREQ macro.
21994         * lib/libc-config.h (__GNUC_PREREQ): Use __GNUC_MINOR__, not
21995         __GNUC_MINOR.
21997 2017-09-09  Bruno Haible  <bruno@clisp.org>
21999         gnulib-tool: Simplify commit from 2015-08-20.
22000         * gnulib-tool (func_add_or_update): Remove local variable
22001         is_binary_file.
22003 2017-09-08  Bruno Haible  <bruno@clisp.org>
22005         stddef: Avoid conflict with system-defined max_align_t.
22006         The configure-determined HAVE_MAX_ALIGN_T may not always be accurate.
22007         Reported by Werner Lemberg <wl@gnu.org> in
22008         <https://lists.gnu.org/r/bug-gnulib/2017-08/msg00185.html>.
22009         * lib/stddef.in.h (rpl_max_align_t): Renamed from max_align_t.
22010         (max_align_t): Define as a macro.
22011         (GNULIB_defined_max_align_t): New macro. Guards against multiple
22012         definitions of rpl_max_align_t in different copies of gnulib-generated
22013         <stddef.h>.
22015 2017-09-05  Paul Eggert  <eggert@cs.ucla.edu>
22017         libc-config: port to MSVC
22018         Problems reported by Gisle Vanem in:
22019         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00016.html
22020         * lib/libc-config.h (__inline): Don't define if HAVE___INLINE.
22021         (libc_hidden_proto): Stick to Standard C syntax for varargs macro.
22022         * m4/__inline.m4: New file.
22023         * modules/libc-config (Files): Add it.
22024         (Depends-on): Use it.
22026         glob: Use enum for __glob_pattern_type result
22027         From a patch proposed by Adhemerval Zanella in:
22028         https://sourceware.org/ml/libc-alpha/2017-09/msg00212.html
22029         * lib/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
22030         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
22031         * lib/glob_internal.h (__glob_pattern_type):
22032         * lib/glob.c (glob):
22033         * lib/glob_pattern_p.c (__glob_pattern_p):
22034         Use them.
22036         glob: fix for use in glibc
22037         Problem reported by Adhemerval Zanella in:
22038         https://sourceware.org/ml/libc-alpha/2017-09/msg00213.html
22039         * lib/glob.c (DT_UNKNOWN, DT_DIR, DT_LINK):
22040         Do not redefine if _LIBC.
22042 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
22044         glob: fix bugs with long login names
22045         Problem reported by Adhemerval Zanella in:
22046         https://sourceware.org/ml/libc-alpha/2017-08/msg00455.html
22047         * lib/glob.c (GET_LOGIN_NAME_MAX): Remove.
22048         (glob): Use the same scratch buffer for both getlogin_r and
22049         getpwnam_r.  Don’t require preallocation of the login name.  This
22050         simplifies storage allocation, and corrects the handling of
22051         long login names.
22053 2017-09-02  Bruno Haible  <bruno@clisp.org>
22055         dirent: Update doc.
22056         * doc/posix-headers/dirent.texi: More concrete list of platforms.
22058 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
22060         glob: fix getpwnam_r errno typo
22061         * lib/glob.c (glob): Fix longstanding misuse of errno after
22062         getpwnam_r, which returns an error number rather than setting
22063         errno.
22065         glob: fix typo in recent change
22066         * lib/glob.c (glob) [!HAVE_GETPWNAM_R && !_LIBC]:
22067         Fix recently-introduced typo.
22069 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
22071         glob: don't save and restore errno unnecessarily
22072         * lib/glob.c (glob): Don't save and restore errno
22073         merely because we have getpwnam_r.
22075         glob: don't assume getpwnam_r
22076         * lib/glob.c (glob): Port recent patches to platforms
22077         lacking getpwnam_r.
22079         scratch_buffer: don’t use private glibc API
22080         Suggested by Florian Weimer in:
22081         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00004.html
22082         * lib/scratch_buffer.h: Rename to lib/malloc/scratch_buffer.h.
22083         * lib/scratch_buffer_grow.c: Rename to
22084         lib/malloc/scratch_buffer_grow.c.
22085         * lib/scratch_buffer_grow_preserve.c: Rename to
22086         lib/malloc/scratch_buffer_grow_preserve.c.
22087         * lib/scratch_buffer_set_array_size.c: Rename to
22088         lib/malloc/scratch_buffer_set_array_size.c.
22089         * lib/scratch_buffer.h: New file.
22090         * modules/scratch_buffer (Files, Makefile.am):
22091         Adjust to source-file renaming.
22093 2017-09-01  Paul Eggert  <eggert@cs.ucla.edu>
22095         glob: use scratch_buffer instead of extend_alloca
22096         Much of the lib/glob.c part of this patch comes from a glibc patch
22097         proposed by Adhemerval Zanella in:
22098         https://sourceware.org/ml/libc-alpha/2017-08/msg00456.html
22099         * lib/glob.c: Do not include <config.h>, since <libc-config.h>,
22100         included via glob.h, does this for us now.
22101         (__set_errno): Remove, as libc-config does this for us now.
22102         Include <scratch_buffer.h>.
22103         (GETPW_R_SIZE_MAX): Remove.
22104         (glob): Use struct scratch_buffer instead of extend_alloca.
22105         * lib/glob.in.h: Include libc-config.h rather than
22106         including <sys/cdefs.h> conditionally.
22107         (__BEGIN_DECLS, __END_DECLS, __THROW, __THROWNL, attribute_hidden)
22108         (__glibc_unlikely, __restrict, weak_alias):
22109         Remove, as libc-config does this for us now.
22110         * m4/glob.m4 (gl_PREREQ_GLOB):
22111         Remove sys/cdefs.h tests; no longer needed.
22112         * modules/glob (Depends-on): Add libc-config, scratch_buffer.
22113         (glob.h): Do not replace HAVE_SYS_CDEFS_H.
22115         scratch_buffer: new module
22116         * lib/scratch_buffer.h, lib/scratch_buffer_grow.c:
22117         * lib/scratch_buffer_grow_preserve.c:
22118         * lib/scratch_buffer_set_array_size.c:
22119         New files, copied from glibc with very minor changes that can be
22120         copied back.
22121         * modules/scratch_buffer: New file.
22123         libc-config: new module
22124         * MODULES.html.sh: Add libc-config.
22125         * lib/cdefs.h: New file, copied from the GNU C Library with very
22126         minor changes that can be copied back.
22127         * lib/libc-config.h, modules/libc-config: New files.
22129 2017-08-31  Paul Eggert  <eggert@cs.ucla.edu>
22131         glob: match dangling symlinks
22132         This fixes a bug I inadvertently introduced to Gnulib when I
22133         merged glibc glob back into gnulib on 2007-10-16.  This fix is
22134         inspired by a patch proposed for glibc by Adhemerval Zanella in:
22135         https://sourceware.org/ml/libc-alpha/2017-08/msg00446.html
22136         * doc/posix-functions/glob.texi: Update list of affected platforms.
22137         * lib/glob.c (__lstat64): New macro.
22138         (is_dir): New function.
22139         (glob, glob_in_dir): Match symlinks even if they are dangling.
22140         (link_stat, link_exists_p): Remove.  All uses removed.
22141         * lib/glob.in.h (__attribute_noinline__): Remove; no longer used.
22142         * m4/glob.m4 (gl_PREREQ_GLOB): Do not check for fstatat.
22143         * modules/glob-tests (Depends-on): Add symlink.
22144         * tests/test-glob.c: Include errno.h, unistd.h.
22145         (BASE): New macro.
22146         (main): Test dangling symlinks, if symlinks are supported.
22148         glob, backupfile: inode 0 is a valid inode number
22149         * doc/posix-functions/readdir.texi (readdir):
22150         * doc/posix-headers/dirent.texi (dirent.h):
22151         Document more readdir portability issues.
22152         * lib/backupfile.c (REAL_DIR_ENTRY): Remove.
22153         (numbered_backup): Don’t treat inode 0 any differently from
22154         other inode values.
22155         * lib/glob.c (struct readdir_result): Remove skip_entry member.
22156         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
22157         All uses removed.
22158         * modules/glob (Depends-on): Remove d-ino.
22160         glob: simplify symlink detection
22161         * lib/glob.c (dirent_type): New type.  Use uint_fast8_t not
22162         uint8_t, as C99 does not require uint8_t.
22163         (struct readdir_result): Use it.  Do not define skip_entry unless
22164         it is needed; this saves a byte on platforms lacking d_ino.
22165         (readdir_result_type, readdir_result_skip_entry):
22166         New functions, replacing ...
22167         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
22168         ... these functions, which were removed.  This makes the callers
22169         easier to read.  All callers changed.
22170         (D_INO_TO_RESULT): Now empty if there is no d_ino.
22172 2017-08-30  Pádraig Brady  <P@draigBrady.com>
22174         fts-tests: tag as a longrunning-test so not included by default
22175         * modules/fts-tests: This test takes about 20s on current systems,
22176         and uses about 285M of space on ext4.
22178 2017-08-30  Pádraig Brady  <P@draigBrady.com>
22180         renameat2: fix compilation on alpine linux
22181         * m4/renameat.m4: Check for <linux/fs.h> presence.
22182         * lib/renameat2.h: Only include <linux/fs.h> if present.
22183         Reported by Assaf Gordon on Alpine Linux.
22185 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
22187         glob: try to port recent changes to MS-Windows
22188         Problem reported by Bruno Haible in:
22189         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00170.html
22190         * lib/glob.c (__glob_pattern_p) [!_LIBC]: Move from here ...
22191         * lib/glob.in.h (__glob_pattern_p): ... to here.
22193 2017-08-24  Eric Blake  <eblake@redhat.com>
22195         warnings: fix compilation with old autoconf
22196         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C))
22197         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): Use m4_defun rather than
22198         AC_DEFUN.
22199         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C))
22200         (gl_MANYWARN_ALL_GCC(C++)): Likewise.
22202 2017-08-24  Bruno Haible  <bruno@clisp.org>
22204         glob: Fix compilation error on NetBSD 7.0 and OpenBSD 6.0.
22205         * modules/glob (Depends-on): Add c99.
22207 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
22209         glob: fix typo that broke platforms lacking d_ino
22210         This typo also hurt performance on GNU/Linux and similar hosts.
22211         * lib/glob.c (D_INO_TO_RESULT): Fix typo (reversed ifdef)
22212         in previous change.
22214 2017-08-23  Paul Eggert  <eggert@cs.ucla.edu>
22216         glob: merge from glibc with Zanella glob changes
22217         Merge glob from glibc, with changes for glob proposed
22218         by Adhemerval Zanella in the thread starting here:
22219         https://sourceware.org/ml/libc-alpha/2017-08/msg01079.html
22220         plus some fixes for this merge.
22221         * lib/glob_internal.h, lib/glob_pattern_p.c, lib/globfree.c:
22222         New files, ported from glibc.
22223         * lib/glob-libc.h (_Restrict_): Remove.  All uses replaced
22224         with __restrict.
22225         (__size_t): Remove.  All uses replaced by size_t.
22226         (size_t): Define by defining __need_size_t and including <stddef.h>.
22227         This should work even in non-glibc platforms, where any name
22228         pollution is OK.
22229         Use __USE_MISC instead of __USE_BSD || __USE_GNU.
22230         (struct stat64): Don’t worry about __GLOB_GNULIB.
22231         (glob, globfree, glob_pattern_p): Remove macros for
22232         __USE_FILE_OFFSET64 && __GNUC__ < 2 && !defined __GLOB_GNULIB
22233         case.  Remove _GL_ARG_NONNULL as GNU behavior is to accept NULL
22234         but set errno.
22235         * lib/glob.c (_GL_ARG_NONNULL) [!_LIBC]: Remove.  All uses
22236         removed since the glibc behavior works on null pointers.
22237         Do not include stdio.h; old SunOS is irrelevant now.
22238         Do not worry about GLOB_ONLY_P as we now mimic glibc here.
22239         Include glob_internal.h.
22240         (D_INO_TO_RESULT): Depend on (_LIBC || D_INO_IN_DIRENT), not
22241         ((POSIX || WINDOWS32) && !__GNU_LIBRARY__).  The latter probably
22242         worked only coincidentally.
22243         (attribute_hidden, __attribute_noinline__, __glibc_unlikely):
22244         Remove macros; now done in glob.in.h.
22245         (size_add_wrapv): Do not use __builtin_add_overflow if __ICC.
22246         (glob): Properly initialize glob structure with
22247         GLOB_BRACE|GLOB_DOOFFS (bug 20707).
22248         Remove old code using SHELL since Bash no longer
22249         uses this.
22250         (glob, prefix_array): Separate MS code better.
22251         (glob, glob_in_dir): Use C99 decls before statements when glibc
22252         does.
22253         (glob_in_dir): Remove old Amiga and VMS code.
22254         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
22255         separate files.
22256         * lib/glob.in.h (attribute_hidden, __attribute_noinline__)
22257         (__glibc_unlikely):
22258         Move here from glob.c.
22259         (__restrict): New macro here, replacing the _Restrict_ in glob.c.
22260         (weak_alias): New macro.
22261         (__size_t): Remove.  All uses replaced by size_t.
22262         * modules/d-ino (License): Now LGPLv2+, for compatibility with glob.
22263         * modules/glob (Files): Add +lib/glob_internal.h,
22264         lib/glob_pattern_p.c, lib/globfree.c.
22265         (Depends-on): Remove snippet/arg-nonnull.
22267 2017-08-22  Paul Eggert  <eggert@cs.ucla.edu>
22269         glob: port to clang's Undefined Sanitizer
22270         Problem reported by Tim Rühsen in:
22271         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00144.html
22272         * lib/glob.c (FLEXIBLE_ARRAY_MEMBER) [_LIBC]: Define to empty.
22273         (glob_in_dir): Do not rely on undefined behavior in accessing
22274         struct members beyond their bounds.  Use a flexible array member
22275         instead.
22277 2017-08-21  Paul Eggert  <eggert@cs.ucla.edu>
22279         vc-list-files: port to Solaris 10
22280         * build-aux/vc-list-files: Don't assume test -e works.
22282 2017-08-21  Karl Berry  <karl@freefriends.org>
22284         * doc/posix-functions/srandom.texi (srandom): typo }.
22286 2017-08-20  Paul Eggert  <eggert@cs.ucla.edu>
22288         git-version-gen: port to Solaris 10
22289         Problem reported by Dagobert Michelsen in:
22290         http://lists.gnu.org/r/grep-devel/2017-08/msg00002.html
22291         * build-aux/git-version-gen (v_from_git):
22292         Use expr instead of shell substitution.
22294 2017-08-19  Bruno Haible  <bruno@clisp.org>
22296         host-cpu-c-abi: Improve detection of MIPS ABI.
22297         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, test the value of
22298         _MIPS_SIM.
22300 2017-08-17  Bruno Haible  <bruno@clisp.org>
22302         hypot tests: Fix test failure on FreeBSD 11.0/x86.
22303         * tests/test-hypot.h (test_function): Declare z as 'volatile'.
22305 2017-08-17  Bruno Haible  <bruno@clisp.org>
22307         float: Fix LDBL_MIN value on FreeBSD/x86.
22308         * lib/float.in.h (LDBL_MIN) [__FreeBSD__]: Add more precision.
22310 2017-08-17  Bruno Haible  <bruno@clisp.org>
22312         random: Fix test compilation failure on Cygwin 1.5.25.
22313         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_INITSTATE,
22314         HAVE_DECL_SETSTATE.
22315         * m4/random.m4 (gl_FUNC_RANDOM): Test whether initstate and setstate are
22316         declared.
22317         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_INITSTATE,
22318         HAVE_DECL_SETSTATE.
22319         * lib/stdlib.in.h (initstate): Declare also if HAVE_DECL_INITSTATE is 0.
22320         (setstate): Declare also if HAVE_DECL_SETSTATE is 0.
22321         * doc/posix-functions/initstate.texi: Mention the Cygwin 1.5.x problem.
22322         * doc/posix-functions/random.texi: Likewise.
22323         * doc/posix-functions/setstate.texi: Likewise.
22324         * doc/posix-functions/srandom.texi: Likewise.
22326 2017-08-16  Bruno Haible  <bruno@clisp.org>
22328         stdnoreturn: Fix test compilation failure on Cygwin.
22329         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On Cygwin, use gnulib's
22330         <stdnoreturn.h> replacement.
22331         * lib/stdnoreturn.in.h (noreturn): Treat Cygwin like MSVC.
22332         * doc/posix-headers/stdnoreturn.texi: Mention the Cygwin problem.
22334 2017-08-16  Bruno Haible  <bruno@clisp.org>
22336         thread: Fix conflict with pthread_sigmask module.
22337         * lib/glthread/thread.h (pthread_sigmask): Don't declare it weak if
22338         it's defined as a macro.
22339         * modules/thread (Depends-on): Add pthread_sigmask.
22341 2017-08-16  Paul Eggert  <eggert@cs.ucla.edu>
22343         rename: port better to NetBSD
22344         * doc/posix-functions/rename.texi (rename): NetBSD 7
22345         does not have the link-count bug.
22346         * m4/rename.m4 (gl_FUNC_RENAME): Don’t consider NetBSD to be
22347         broken merely because rename ("a", "b") removes "a" when the two
22348         names are hard links to the same file.
22350 2017-08-16  Bruno Haible  <bruno@clisp.org>
22352         iconv_open, uni*: Add support for VPATH builds with OpenBSD 'make'.
22353         * modules/iconv_open (Makefile.am): In the rules that use gperf, prefix
22354         the target file names with '$(srcdir)/'.
22355         * modules/unicase/locale-language (Makefile.am): Likewise.
22356         * modules/unicase/special-casing (Makefile.am): Likewise.
22357         * modules/unictype/bidiclass-byname (Makefile.am): Likewise.
22358         * modules/unictype/category-byname (Makefile.am): Likewise.
22359         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
22360         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
22361         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
22362         * modules/unictype/property-byname (Makefile.am): Likewise.
22363         * modules/unictype/scripts (Makefile.am): Likewise.
22364         * modules/uninorm/composition (Makefile.am): Likewise.
22366 2017-08-16  Bruno Haible  <bruno@clisp.org>
22368         nonblocking-socket tests: Fix failure on OpenBSD 6.0.
22369         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE): Increase
22370         value for OpenBSD.
22372 2017-08-16  Bruno Haible  <bruno@clisp.org>
22374         rename, renameat: Update doc regarding NetBSD.
22375         * doc/posix-functions/rename.texi: Clarify that when using
22376         -D_XOPEN_SOURCE=500 on NetBSD 7.0, the hard link bug is gone.
22377         * doc/posix-functions/renameat.texi: Be more precise about NetBSD
22378         version.
22380 2017-08-15  Paul Eggert  <eggert@cs.ucla.edu>
22382         renameat2: port better to macOS
22383         * lib/renameat2.c (renameat2): Use renameatx_np if available.
22385         futimens: don’t assume struct timespec layout
22386         * m4/futimens.m4 (gl_FUNC_FUTIMENS):
22387         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT):
22388         * tests/test-fdutimensat.c (main):
22389         * tests/test-futimens.h (test_futimens):
22390         * tests/test-lutimens.h (test_lutimens):
22391         * tests/test-utimens.h (test_utimens):
22392         * tests/test-utimensat.c (main):
22393         Don’t assume that struct timespec is a two-member structure in
22394         tv_sec, tv_nsec order.  Although this is true on all platforms we
22395         know about, POSIX does not guarantee it.
22397         rename: document+test NetBSD rename
22398         Test failure reported by Bruno Haible in:
22399         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00104.html
22400         This is an area where NetBSD is better-behaved than POSIX,
22401         so allow the NetBSD behavior in tests.
22402         * doc/posix-functions/rename.texi:
22403         * doc/posix-functions/renameat.texi: Document NetBSD behavior.
22404         * tests/test-rename.h (test_rename): Allow NetBSD behavior.
22406 2017-08-15  Bruno Haible  <bruno@clisp.org>
22408         renameat: Ensure declaration in <stdio.h> on NetBSD.
22409         * lib/stdio.in.h: Include <unistd,h> also on NetBSD.
22410         * doc/posix-functions/renameat.texi: Mention this problem.
22412 2017-08-15  Bruno Haible  <bruno@clisp.org>
22414         duplocale: Work around NetBSD 7.0 bug.
22415         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Test against the NetBSD 7.0 bug.
22416         * lib/duplocale.c: Add comment about NetBSD problem.
22417         * doc/posix-functions/duplocale.texi: Mention the NetBSD problem.
22419 2017-08-15  Bruno Haible  <bruno@clisp.org>
22421         duplocale tests: Verify use with *_l functions.
22422         * modules/duplocale-tests (configure.ac): Test for uselocale and
22423         some *_l functions.
22424         * tests/test-duplocale.c (test_with_uselocale): New function, extracted
22425         from main.
22426         (get_locale_dependent_values_from, test_with_locale_parameter): New
22427         functions.
22428         (main): Test both test_with_uselocale and test_with_locale_parameter.
22430 2017-08-15  Bruno Haible  <bruno@clisp.org>
22432         extensions: Enable NetBSD specific extensions.
22433         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _NETBSD_SOURCE.
22435 2017-08-14  Bruno Haible  <bruno@clisp.org>
22437         open, openat: Update doc about O_CLOEXEC.
22438         * doc/posix-functions/open.texi: More concrete list of platforms.
22439         * doc/posix-functions/openat.texi: Likewise.
22441 2017-08-14  Paul Eggert  <eggert@cs.ucla.edu>
22443         open: support O_CLOEXEC
22444         * NEWS, doc/posix-functions/open.texi:
22445         * doc/posix-functions/openat.texi: Document this.
22446         * lib/fcntl.in.h (O_CLOEXEC): Default to a nonzero value.
22447         (GNULIB_defined_O_CLOEXEC): New symbol.
22448         * lib/open.c: Include cloexec.h.
22449         (open): Support O_CLOEXEC.
22450         * lib/openat.c: Include cloexec.h.
22451         (rpl_openat): Support O_CLOEXEC.
22452         * lib/popen-safer.c: Do not include cloexec.h.
22453         (open_noinherit): Remove.
22454         (popen_safer): Use O_CLOEXEC instead of set_cloexec_flag.
22455         * lib/save-cwd.c: Do not include cloexec.h.
22456         (save_cwd): Use O_CLOEXEC instead of set_cloexec_flag.
22457         * m4/open-cloexec.m4: New file.
22458         * m4/open.m4 (gl_FUNC_OPEN): Require gl_PREPROC_O_CLOEXEC.
22459         Replace 'open' if O_CLOEXEC is not present.
22460         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_PREPROC_O_CLOEXEC.
22461         Replace 'openat' if O_CLOEXEC is not present.
22462         * modules/freopen (Depends-on): Depend on 'open' if replacing freopen.
22463         * modules/open (Files): Add m4/open-cloexec.m4.
22464         (Depends-on): Depend on cloexec if replacing 'open'.
22465         * modules/openat (Files): Add m4/open-cloexec.m4.
22466         (Depends-on): Depend on cloexec if replacing openat.
22467         * modules/popen-safer (Depends-on): Remove cloexec.
22468         * modules/save-cwd (Depends-on): Remove cloexec, and add
22469         fd-safer-flag and 'open'.
22471 2017-08-13  Paul Eggert  <eggert@cs.ucla.edu>
22473         reallocarray: minor fixes
22474         * doc/glibc-functions/reallocarray.texi: Update version numbers.
22475         * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Don't trust _cv_ contents.
22476         * modules/reallocarray (License): Change from GPL to LGPL.
22477         * tests/test-reallocarray.c (main): Fix ENOMEM typo.
22478         Indent properly and don't use tabs.
22480 2017-08-13  Darshit Shah  <darnir@gnu.org>
22482         reallocarray: New module
22483         reallocarray is a new function in glibc 2.26 to safely allocate an array
22484         of memory locations with integer overflow protection.
22485         * MODULES.html.sh: Add reallocarray.
22486         * doc/glibc-functions/reallocarray.texi: Documentation for reallocarray.
22487         * lib/reallocarray.c: New file to implement module reallocarray.
22488         * lib/stdlib.in.h: Add function declarations for reallocarray.
22489         * m4/reallocarray.m4: New file.
22490         * m4/stdlib_h.m4: Declare reallocarray.
22491         * modules/reallocarray: New file.
22492         * modules/reallocarray-test: New file.
22493         * modules/stdlib: Coerce stdlib.h to export reallocarray.
22494         * tests/test-reallocarray.c: New test.
22496 2017-08-12  Paul Eggert  <eggert@cs.ucla.edu>
22498         dirent-safer: fix cloexec race
22499         * lib/opendir-safer.c: Include fcntl.h instead of unistd-safer.h.
22500         (opendir_safer): Use F_DUPFD_CLOEXEC.
22501         * modules/dirent-safer (Depends-on): Add fcntl.  Remove unistd-safer.
22502         * tests/test-dirent-safer.c: Do not include unistd-safer.h,
22503         as it is no longer a prerequisite.  Use F_DUPFD_CLOEXEC
22504         instead of dup_safer.
22506         fts: fix cloexec races
22507         * lib/fts.c [!_LIBC]: Do not include dirent--.h, unistd--.h, cloexec.h.
22508         (opendirat, diropen): Use O_CLOEXEC instead of set_cloexec_flag.
22509         (fts_build): Use F_DUPD_CLOEXEC rinstad of set_cloexec_flag.
22510         (fd_ring_check): Set cloexec flag on new file descriptors.
22511         (fts_build, fd_ring_check): While we’re at it, make sure the
22512         resulting file descriptor is not 0, 1, or 2, since that is easy.
22514 2017-08-11  Bruno Haible  <bruno@clisp.org>
22516         fts tests: Fix link error.
22517         Reported by Tom G. Christensen in
22518         https://lists.gnu.org/r/bug-gnulib/2017-08/msg00078.html
22519         * modules/fts-tests (Makefile.am): Link test-fts against LIBINTL.
22521 2017-08-10  Paul Eggert  <eggert@cs.ucla.edu>
22523         fts: port recent changes to CentOS 6
22524         Problem reported by Tom G. Christensen in:
22525         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00064.html
22526         * lib/fts.c (fsword): New type.
22527         (struct dev_type, filesystem_type): Use it.
22528         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for __fsword_t.
22529         Also, check for f_type only if fstatfs and sys/vfs.h work.
22531 2017-08-09  Paul Eggert  <eggert@cs.ucla.edu>
22533         tempname: do not depend on secure_getenv
22534         Excess dependency noted by Eli Zaretskii (Bug#28023#17).
22535         * lib/tempname.c (__secure_getenv) [!_LIBC]: Remove; unused.
22536         * modules/tempname (Depends-on): Remove secure_getenv.
22538 2017-08-08  Paul Eggert  <eggert@cs.ucla.edu>
22540         extensions: add _OPENBSD_SOURCE
22541         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _OPENBSD_SOURCE.
22543 2017-08-06  Reuben Thomas  <rrt@sc3d.org>
22544             Bruno Haible  <bruno@clisp.org>
22546         manywarnings: Add support for C++.
22547         * build-aux/g++-warning.spec: New file.
22548         * m4/manywarnings-c++.m4: New file.
22549         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C++)): New macro, that
22550         redirects to manywarnings-c++.m4.
22551         * modules/manywarnings (Files): Add m4/manywarnings-c++.m4.
22553 2017-08-06  Paul Eggert  <eggert@cs.ucla.edu>
22555         git-version-gen: another fix for tags with "-"
22556         * build-aux/git-version-gen: Improve fix for tags containing "-".
22557         Suggested by Markus Armbruster in:
22558         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00034.html
22560 2017-08-06  Bruno Haible  <bruno@clisp.org>
22562         warnings, manywarnings: Add support for multiple languages, not just C.
22563         * warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL): Renamed from
22564         gl_UNKNOWN_WARNINGS_ARE_ERRORS.
22565         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)): New macro.
22566         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): New macro.
22567         (gl_UNKNOWN_WARNINGS_ARE_ERRORS): Dispatch to
22568         gl_UNKNOWN_WARNINGS_ARE_ERRORS(_AC_LANG).
22569         (gl_WARN_ADD): Require the gl_UNKNOWN_WARNINGS_ARE_ERRORS specialization
22570         of the current language. If C++ is the current language, modify
22571         WARN_CXXFLAGS instead of WARN_CFLAGS.
22572         * manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): New macro, extracted from
22573         gl_MANYWARN_ALL_GCC.
22574         (gl_MANYWARN_ALL_GCC): Dispatch to gl_MANYWARN_ALL_GCC(_AC_LANG).
22576 2017-08-06  Markus Armbruster  <armbru@pond.sub.org>
22578         git-version-gen: Fix for tags containing '-'
22580         Really old versions of git-describe (before v1.5.0, Feb 2007)
22581         don't have the number of commits in their long format output,
22582         i.e. where modern 'git describe --abbrev=4 --match="v*"' prints
22583         "v0.1-1494-g124b9", they print "v0.1-1494-g124b9".  git-version-gen
22584         recognizes both patterns, and normalizes the old format to the new one.
22586         Unfortunately, this normalization code gets confused when the tag
22587         contains '-'.  Reproducer:
22589             $ git-tag -m test v0.2-rc1
22590             $ build-aux/git-version-gen .tarball-version; echo
22591             build-aux/git-version-gen: WARNING: git rev-list failed
22592             UNKNOWN
22594         We take exact tag "v0.2-rc1" for the old format, extract the presumed
22595         tag "v0.2" from it, then run "git rev-list v0.2..HEAD" to count
22596         commits since tha tag.  Fails, because tag "v0.2" does not exist.
22598         * git-version-gen: We could perhaps drop support for versions from
22599         more than a decade ago.  But tightening the pattern match is easy
22600         enough, so do that.  Still breaks when you use version tags ending in
22601         something matching -g????, but you arguably get what you deserve then.
22603 2017-08-05  Paul Eggert  <eggert@cs.ucla.edu>
22605         valgrind-tests: use ls, and cache
22606         * m4/valgrind-tests.m4: Test ls, not bash.
22607         Problem reported by Reuben Thomas.
22608         Also, cache the result so that it can be overridden.
22610 2017-08-04  Paul Eggert  <eggert@cs.ucla.edu>
22612         manywarnings: port to 64-bit GCC builds of Emacs
22613         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Compute max safe
22614         object size rather than hardwiring 2147483647.  This is needed to
22615         build GNU Emacs, which has one conditional (and used
22616         only-in-theory) call to malloc with a literal greater than
22617         2147483647.
22619 2017-08-04  Bruno Haible  <bruno@clisp.org>
22621         Relax the license of some modules with no runtime code.
22622         * modules/std-gnu11 (License): Set to 'unlimited'.
22623         * modules/c99 (License): Likewise.
22624         Reported by Reuben Thomas <rrt@sc3d.org>.
22625         * modules/d-ino (License): Set to 'LGPL'.
22626         * modules/host-os (License): Likewise.
22627         * modules/longlong (License): Likewise.
22629 2017-08-03  Paul Eggert  <eggert@cs.ucla.edu>
22631         renameat2: port to RHEL 7 + NFS
22632         * lib/renameat2.c (renameat2) [SYS_renameat2]:
22633         Port to RHEL 7 + NFS.  Problem reported by Ted Zlatanov in:
22634         http://lists.gnu.org/r/emacs-devel/2017-08/msg00082.html
22636 2017-08-02  Paul Eggert  <eggert@cs.ucla.edu>
22638         renameat2: port to non-renameat platforms
22639         Problem reported for MSVC-2015 by Gisle Vanem in:
22640         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00001.html
22641         * lib/renameat2.c [!HAVE_RENAMEAT]: Include <sys/stat.h> here too.
22642         (renameat2) [!HAVE_RENAMEAT]: Fix typo in arg passing.
22644 2017-08-01  Paul Eggert  <eggert@cs.ucla.edu>
22646         manywarnings: port to 32-bit GCC bug
22647         Problem reported by Pino Toscano in:
22648         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00150.html
22649         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Use 2**31 - 1,
22650         not 2**63 - 1, to work around the following GCC bug:
22651         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81650
22653 2017-07-30  Paul Eggert  <eggert@cs.ucla.edu>
22655         backupfile: new function to validate backup suffix
22656         * lib/backupfile.c (set_simple_backup_suffix): New function.
22657         (backupfile_internal): Use it.
22659         canonicalize: fix EOVERFLOW commentary
22660         Problem reported by Bruno Haible in:
22661         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00147.html
22662         * lib/canonicalize.c (canonicalize_filename_mode):
22663         * lib/canonicalize-lgpl.c (__realpath): Fix comments.
22665         Don't interpret EOVERFLOW to mean nonexistence
22666         * lib/fts.c (fts_stat): If lstat fails, report its errno, which
22667         may be EOVERFLOW; this is likely more useful than reporting the
22668         stat errno.
22669         * lib/glob.c (link_stat): Rename from link_exists2_p and
22670         return -1/0 instead of 0/1.  Caller changed.
22671         * lib/glob.c (link_exists_p):
22672         * lib/renameat2.c (rename_noreplace, renameat2):
22673         * lib/tempname.c (try_nocreate):
22674         If errno == EOVERFLOW then the directory entry exists, so do not
22675         act as if it does not exist.
22677         backup-rename: new module
22678         It is like backupfile, except it avoids some race conditions,
22679         and it does not output to stderr or exit.
22680         * MODULES.html.sh: Add backup-rename.
22681         * lib/backup-find.c, lib/backup-internal.h, lib/backup-rename.c:
22682         * modules/backup-rename: New files.
22683         * lib/backupfile.c: Turn this into an internals file, which
22684         contains code common to backupfile and backup_rename.  Include
22685         backupfile-internal.h instead of backupfile.h.  Do not include
22686         argmatch.h or xalloc.h: include xalloc-oversized.h.  Include
22687         renameat2.h and fcntl.h.
22688         (BACKUP_NOMEM): New constant.
22689         (numbered_backup): New args BASE_OFFSET and *DIRPP.  Do not exit
22690         on memory exhaustion; just return BACKUP_NOMEM.  Caller changed.
22691         (backupfile_internal): Rename from find_backup_file_name.
22692         Support new arg RENAME.
22693         (backup_args, backup_types, get_version, xget_version):
22694         Move to lib/backup-find.c.
22695         * lib/backupfile.h (backup_file_rename): New decl.
22696         * modules/backupfile (Files): Add lib/backup-internal.h,
22697         lib/backup-find.c.
22698         (Depends-on): Add dirfd, fcntl, renameat2.
22699         (lib_SOURCES): Add backup-find.c.
22701         renameat2: port better to older Solaris
22702         * lib/renameat2.c (renameat2): Set ret_val properly on old Solaris.
22703         Add goto to use a label, to silence picky compilers.
22705         fts-tests: port to gcc -Wwrite-strings
22706         * tests/test-fts.c (base, base_d): New static vars.
22707         (argv, remove_tree, main): Use them.
22709 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
22711         relocatable-lib{,-lgpl}: improve documentation
22712         * doc/relocatable-maint.texi: Document use of relocatable-lib{,-lgpl}.
22713         Various other updates.
22715 2017-07-30  Reuben Thomas  <rrt@sc3d.org>
22716             Bruno Haible  <bruno@clisp.org>
22718         relocatable-lib{,-lgpl}: add Valgrind suppressions
22719         * lib/relocatable.valgrind: New file.
22720         * modules/relocatable-lib (Files): Add relocatable.valgrind.
22721         * modules/relocatable-lib-lgpl: Likewise.
22723 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
22725         relocatable: Make the license on the sources the GPL.
22726         * lib/relocatable.h, lib/relocatable.c: Change the copyright notice from
22727         LGPL, which was a special case so that the relocatable source files
22728         could be used without gnulib-tool, to GPL. They can still be used under
22729         the LGPL, using the --lgpl option to gnulib-tool.
22731 2017-07-30  Bruno Haible  <bruno@clisp.org>
22733         host-cpu-c-abi: Detect ILP32 ABI on IA-64 HP-UX.
22734         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Distinguish ia64-ilp32
22735         from ia64. For arm64, test only __aarch64__, as __ARM_64BIT_STATE and
22736         __ARM_PCS_AAPCS64 are not reliable indicators: they are not defined on
22737         Ubuntu 14.04 (gcc 4.8.4) and Debian 8 (gcc 4.9.2).
22739 2017-07-27  Paul Eggert  <eggert@cs.ucla.edu>
22741         faccessat: document AT_SYMLINK_NOFOLLOW issue
22742         * doc/posix-functions/faccessat.texi: Modernize platform list.
22743         Document AT_SYMLINK_NOFOLLOW limitation.
22745         renameat2: port to Solaris 10
22746         * lib/renameat2.c (rename_noreplace): Use lstat, not faccessat
22747         with AT_SYMLINK_NOFOLLOW (which is not portable).
22748         (renameat): Undef before using, to avoid endless recursion when
22749         the replacement renameat calls renameat2 which calls the
22750         replacement renameat.
22751         (renameat2): Use lstatat, not faccessat with AT_SYMLINK_NOFOLLOW.
22752         * modules/renameat2 (Depends-on): Remove faccessat.
22753         * modules/renameat-tests (test_renameat_LDADD):
22754         * modules/renameat2-tests (test_renameat2_LDADD):
22755         Remove $(LIB_EACCESS).
22757         renameat2: new module
22758         Although the Linux syscall renameat2 is not in glibc (yet?), it is
22759         useful to have access to its RENAME_NOREPLACE flag.
22760         * MODULES.html.sh (func_all_modules): Add renameat2.
22761         * lib/renameat2.c, lib/renameat2.h, modules/renameat2:
22762         * modules/renameat2-tests, tests/test-renameat2.c: New files.
22763         * lib/renameat.c (renameat): Move most of the implementation
22764         to renameat2, and just call renameat2.
22765         * modules/renameat (Files): Remove lib/at-func2.c.
22766         (Depends-on): Depend only on renameat2.
22767         (Include): Remove <fcntl.h>.
22768         * modules/renameat-tests (test_renameat_LDADD): Add $(LIB_EACCESS),
22769         since renameat (via renameat2) might use faccessat.
22771 2017-07-27  Erik Skultety <eskultet@redhat.com>  (tiny change)
22773         vc-list-files: Adjust the script to support git worktrees
22774         * build-aux/vc-list-files: Require existence, not directory.
22776 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
22778         doc: bring MODULES.html.sh up to date
22779         Somehow a few months ago we stopped updating MODULES.html.sh.
22780         I don’t recall explicitly deciding this, so I updated it now.
22781         Alternatively I suppose we could remove it.
22782         * MODULES.html.sh: Add builtin-expect, c99, ctime, explicit_bzero,
22783         localtime, localtime-buffer, noreturn, nstrftime, strftime-fixes,
22784         truncate, utime, utime-h, windows-stat-inodes,
22785         windows-stat-override, windows-stat-timespec, year2038.  Sort.
22787 2017-07-26  Jim Meyering  <meyering@fb.com>
22789         fprintftime: fix build-break caused by recent renaming
22790         * lib/fprintftime.c: Include "nstrftime.c", not the now-renamed
22791         "strftime.c".
22792         * modules/fprintftime: Depend directly on nstrftime.
22794 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
22796         regex: work with GCC7's -Werror=implicit-fallthrough=
22797         * lib/regex_internal.h (FALLTHROUGH): New macro.
22798         * lib/regcomp.c (peek_token_bracket, parse_expression):
22799         * lib/regexec.c (check_node_accept): Use it.
22801 2017-07-24  Paul Eggert  <eggert@cs.ucla.edu>
22803         fts: simplify fts_build
22804         * lib/fts.c (fts_build): Simplify, and be lazier about
22805         calling leaf_optimization.
22807         fts: three levels of leaf optimization
22808         * lib/fts.c (enum leaf_optimization): New type with three values.
22809         (S_MAGIC_AFS): New macro.  Sort them.
22810         (leaf_optimization): Rename from leaf_optimization_applies, and
22811         return enum leaf_optimization instead of bool.  All uses changed.
22812         Add cases for unknown type and for AFS.
22813         (fts_build): Don’t rely on link counts if NO_LEAF_OPTIMIZATION.
22815         fts: cache dirent_inode_sort_may_be_useful too
22816         * lib/fts.c (struct dev_type): New struct.
22817         (DEV_TYPE_HT_INITIAL_SIZE): New constant.
22818         (dev_type_hash, dev_type_compare, filesystem_type): New functions.
22819         (dirent_inode_sort_may_be_useful, leaf_optimization_applies):
22820         Now takes FTSENT const *, not int.  All uses changed.  Use
22821         filesystem_type to cache.
22822         (link_count_optimize_ok): Remove.  Caller changed to use
22823         leaf_optimization_applies, which now uses shared cache.
22825         fts: introduce MIN_DIR_NLINK
22826         * lib/fts.c (MIN_DIR_NLINK): New constant.
22827         Use it instead of 2, whenever we are talking about link counts.
22829         fts: nlink_t signedness fixups
22830         * lib/fts.c (fts_open): Set rootparent n_dirs_remaining to -1
22831         so that root need not be a special case later.
22832         (fts_read): Remove now-redundant test for fts_level.
22833         Do not assume that nlink_t is signed.
22834         (fts_build): Remove useless decrement of nlinks.
22835         (fts_stat): Avoid unlikely signed integer overflow later, if
22836         nlink_t is signed.
22838         fts-tests: new module
22839         * modules/fts-tests, tests/test-fts.c: New files.
22841 2017-07-23  Bruno Haible  <bruno@clisp.org>
22843         Rename module 'strftime' to 'nstrftime'.
22844         * m4/nstrftime.m4: Renamed from m4/strftime.m4.
22845         * lib/nstrftime.c: Renamed from lib/strftime.c.
22846         * modules/nstrftime: Renamed from modules/strftime.
22847         (Files, Makefile.am): Update.
22848         * tests/test-nstrftime.c: Renamed from tests/test-strftime.c.
22849         Fix comment.
22850         * modules/nstrftime-tests: Renamed from modules/strftime-tests.
22851         (Files, Makefile.am): Update.
22852         * modules/strftime: New file, an obsolete indirection.
22853         * doc/posix-functions/strftime.texi: Update reference.
22854         * config/srclist.txt: Update info.
22855         * NEWS: Mention the change.
22857 2017-07-21  Tim Rühsen  <tim.ruehsen@gmx.de>
22859         malloca: Silence a warning from clang's memory sanitizer.
22860         * lib/malloca.c (NO_SANITIZE_MEMORY): New macro.
22861         (freea): Use it.
22863 2017-07-18  Bruno Haible  <bruno@clisp.org>
22865         host-cpu-c-abi: Fix detection of MIPS ABI.
22866         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, really test the
22867         ABI, not the CPU instruction set.
22869 2017-07-16  Paul Eggert  <eggert@cs.ucla.edu>
22871         explicit_bzero: new module
22872         The explicit_bzero function has been added to glibc.
22873         This module is intended to supports its use in GNU programs.
22874         * doc/glibc-functions/explicit_bzero.texi, lib/explicit_bzero.c:
22875         * m4/explicit_bzero.m4, modules/explicit_bzero:
22876         New files.
22877         * doc/gnulib.texi (Glibc string.h): Link to new doc.
22878         * lib/string.in.h (explicit_bzero): Declare.
22879         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add defaults for it.
22880         * modules/string (string.h): Substitute its vars.
22882 2017-07-16  Bruno Haible  <bruno@clisp.org>
22884         threadlib: Support static linking.
22885         * m4/threadlib.m4 (gl_THREADLIB_BODY): When static linking is in use,
22886         set gl_cv_have_weak to 'no'.
22888 2017-07-16  Bruno Haible  <bruno@clisp.org>
22890         unicase/locale-language: Fix link dependencies.
22891         * modules/unicase/locale-language (Link): New section.
22892         * modules/unicase/locale-language-tests (Makefile.am): Link
22893         test-locale-language program with $(LIBTHREAD).
22895 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
22897         sys_socket: Add support for OpenVMS.
22898         * lib/sys_socket.in.h [__VMS]: Define CMSG_SPACE, CMSG_LEN.
22899         * doc/posix-headers/sys_socket.texi: Mention OpenVMS issues.
22901 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
22903         sys_resource: Add support for OpenVMS.
22904         * lib/resource.in.h [__VMS]: Define RUSAGE_SELF, RUSAGE_CHILDREN.
22905         * doc/posix-headers/sys_resource.texi: Mention OpenVMS issues.
22907 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
22908             Bruno Haible  <bruno@clisp.org>
22910         math: Add support for OpenVMS.
22911         * lib/math.in.h [__VMS]: Include <fp.h>.
22912         * doc/posix-headers/math.texi: Mention OpenVMS issues.
22914 2017-07-15  Bruno Haible  <bruno@clisp.org>
22916         getdtablesize: Add minimal support for OpenVMS.
22917         Reported by John E. Malmberg <wb8tyw@qsl.net>.
22918         * modules/getdtablesize (Description): Fix.
22919         * lib/getdtablesize.c: Fix comment.
22920         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Don't replace the
22921         getdtablesize() function, even though the test fails.
22922         * doc/glibc-functions/getdtablesize.texi: Reference SUSv2. Describe
22923         limitation on OpenVMS.
22925 2017-07-13  Bruno Haible  <bruno@clisp.org>
22927         Revisit cross-compilation guesses.
22928         * m4/wctype_h.m4 (gl_WCTYPE_H): Add comment.
22930 2017-07-13  Bruno Haible  <bruno@clisp.org>
22932         Improve cross-compilation guesses for native Windows.
22933         * m4/btowc.m4 (gl_FUNC_BTOWC): Add cross-compilation guess for native
22934         Windows.
22935         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Likewise.
22936         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Likewise.
22937         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
22938         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): Likewise.
22939         * m4/cbrtl.m4 (gl_FUNC_CBRTL, gl_FUNC_CBRTL_WORKS): Likewise.
22940         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
22941         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
22942         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
22943         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
22944         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
22945         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
22946         * m4/exp2.m4 (gl_FUNC_EXP2_WORKS): Likewise.
22947         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
22948         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
22949         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): Likewise.
22950         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
22951         * m4/fabsl.m4 (gl_FUNC_FABSL_WORKS): Likewise.
22952         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
22953         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
22954         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
22955         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
22956         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
22957         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Likewise.
22958         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Likewise.
22959         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Likewise.
22960         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
22961         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
22962         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
22963         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
22964         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): Likewise.
22965         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
22966         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
22967         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
22968         * m4/hypotf.m4 (gl_FUNC_HYPOTF, gl_FUNC_HYPOTF_WORKS): Likewise.
22969         * m4/hypotl.m4 (gl_FUNC_HYPOTL, gl_FUNC_HYPOTL_WORKS): Likewise.
22970         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
22971         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
22972         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
22973         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
22974         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
22975         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
22976         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
22977         * m4/log.m4 (gl_FUNC_LOG, gl_FUNC_LOG_WORKS): Likewise.
22978         * m4/logf.m4 (gl_FUNC_LOGF, gl_FUNC_LOGF_WORKS): Likewise.
22979         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
22980         * m4/log10.m4 (gl_FUNC_LOG10, gl_FUNC_LOG10_WORKS): Likewise.
22981         * m4/log10f.m4 (gl_FUNC_LOG10F, gl_FUNC_LOG10F_WORKS): Likewise.
22982         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Likewise.
22983         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
22984         * m4/log1pf.m4 (gl_FUNC_LOG1PF, gl_FUNC_LOG1PF_WORKS): Likewise.
22985         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
22986         * m4/log2.m4 (gl_FUNC_LOG2, gl_FUNC_LOG2_WORKS): Likewise.
22987         * m4/log2f.m4 (gl_FUNC_LOG2F, gl_FUNC_LOG2F_WORKS): Likewise.
22988         * m4/log2l.m4 (gl_FUNC_LOG2L_WORKS): Likewise.
22989         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Likewise.
22990         * m4/logbf.m4 (gl_FUNC_LOGBF_WORKS): Likewise.
22991         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Likewise.
22992         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
22993         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT, gl_MBRTOWC_C_LOCALE): Likewise.
22994         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
22995         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
22996         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
22997         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
22998         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
22999         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
23000         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23001         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
23002         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
23003         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE,
23004         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2,
23005         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
23006         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
23007         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
23008         * m4/regex.m4 (gl_REGEX): Likewise.
23009         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
23010         * m4/remainderf.m4 (gl_FUNC_REMAINDERF,
23011         gl_FUNC_REMAINDERF_WORKS): Likewise.
23012         * m4/remainderl.m4 (gl_FUNC_REMAINDERL,
23013         gl_FUNC_REMAINDERL_WORKS): Likewise.
23014         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
23015         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
23016         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
23017         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
23018         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
23019         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
23020         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
23021         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
23022         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): Likewise.
23023         * m4/stdint.m4 (gl_STDINT_H): Likewise.
23024         * m4/strerror.m4 (gl_FUNC_STRERROR_0): Likewise.
23025         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
23026         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
23027         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
23028         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
23029         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
23030         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
23031         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
23032         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
23033         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
23034         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
23035         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
23036         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
23037         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
23038         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
23039         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
23040         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
23041         Likewise.
23042         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
23043         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for native
23044         Windows. Enable also on Autoconf 2.70.
23045         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
23046         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
23047         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
23048         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO,
23049         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
23050         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): Add cross-compilation guess
23051         for native Windows.
23052         (gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
23053         gl_VSNPRINTF_ZEROSIZE_C99): Add comment.
23055 2017-07-13  Bruno Haible  <bruno@clisp.org>
23057         Improve cross-compilation guesses for native Windows.
23058         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add cross-compilation guess for native
23059         Windows.
23060         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Don't use internals of
23061         memchr.m4.
23062         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
23064 2017-07-13  Bruno Haible  <bruno@clisp.org>
23066         Improve cross-compilation guesses for native Windows.
23067         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Add cross-compilation guess for
23068         native Windows.
23069         (gl_FUNC_FFLUSH): Update accordingly.
23070         * m4/fclose.m4 (gl_FUNC_FCLOSE): Likewise.
23071         * m4/fseeko.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
23073 2017-07-11  Bruno Haible  <bruno@clisp.org>
23075         More systematic m4 quoting and indentation.
23076         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Quote systematically.
23077         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
23078         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
23079         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
23080         * m4/host-os.m4 (gl_HOST_OS): Likewise.
23081         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
23082         gl_WINSIZE_IN_PTEM): Likewise.
23083         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Likewise.
23084         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
23085         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
23086         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Quote systematically.
23087         Correct indentation.
23088         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
23089         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
23090         * m4/jm-winsz2.m4 (gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
23091         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
23092         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
23093         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
23095 2017-07-10  Bruno Haible  <bruno@clisp.org>
23097         round, roundf: Avoid compiler warning in configure test.
23098         * m4/round.m4 (gl_FUNC_ROUND): Use 'return' instead of exit().
23099         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
23101 2017-07-10  Bruno Haible  <bruno@clisp.org>
23103         getlogin tests: Avoid #ifdefs when sharing code between modules.
23104         * modules/getlogin_r-tests (Files): Add tests/test-getlogin.h.
23105         * modules/getlogin-tests (Files): Likewise. Remove
23106         tests/test-getlogin_r.c.
23107         * tests/test-getlogin.h: Extracted from tests/test-getlogin_r.c.
23108         * tests/test-getlogin.c: Extracted from tests/test-getlogin_r.c.
23109         * tests/test-getlogin_r.c: Include test-getlogin.h. Omit code that tests
23110         getlogin().
23112 2017-07-10  Paul Eggert  <eggert@cs.ucla.edu>
23114         getlogin: don’t assume one name per uid
23115         Problem reported by Wolfgang F. Muthmann (Bug#27640).
23116         * modules/getlogin-tests (Files): Add tests/test-getlogin_r.c.
23117         (ttyname): Remove test.
23118         * modules/getlogin_r-tests (ttyname): Remove test.
23119         * tests/test-getlogin.c: Replace this near-clone of test-getlogin_r.c
23120         with ‘#define TEST_LOGIN’ followed by ‘#include "test-getlogin_r.c"’.
23121         * tests/test-getlogin_r.c: If TEST_GETLOGIN is defined, test
23122         getlogin rather than getlogin_r.  This avoids code duplication.
23123         (main): Use isatty and fstat rather than ttyname and stat.
23124         Use getpwnam instead of getpwuid, to be portable to test platforms
23125         that have multiple login names for the same uid.
23127 2017-07-10  Tim Rühsen  <tim.ruehsen@gmx.de>
23128             Bruno Haible  <bruno@clisp.org>
23130         glob: Fix more memory leaks.
23131         * lib/glob.c (glob): Use 'goto out' in order to free dirname before
23132         returning.
23133         Reported by Tim Rühsen.
23135 2017-07-10  Bruno Haible  <bruno@clisp.org>
23137         Make sure $host and $host_os are defined when used.
23138         * m4/argz.m4 (gl_FUNC_ARGZ): Require AC_CANONICAL_HOST.
23139         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Likewise.
23140         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
23141         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
23142         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
23143         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
23144         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
23145         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
23146         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
23147         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
23148         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
23149         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
23150         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
23151         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST outside the
23152         m4_ifdef block.
23154 2017-07-09  Bruno Haible  <bruno@clisp.org>
23156         *printf: Fix cross-compilation guess for Solaris.
23157         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): Fix copy-and-paste mistake from
23158         2010-12-21.
23160 2017-07-07  Paul Eggert  <eggert@cs.ucla.edu>
23161             Bruno Haible  <bruno@clisp.org>
23163         vasnprintf: port to macOS 10.13
23164         Problem reported by comex in:
23165         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00056.html
23166         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on macOS.
23168 2017-07-06  Bruno Haible  <bruno@clisp.org>
23170         imaxdiv tests: Fix logic.
23171         * tests/test-imaxdiv.c (main): Use == instead of =.
23172         Reported by Coverity.
23174 2017-07-06  Bruno Haible  <bruno@clisp.org>
23176         uninorm/filter: Fix use-after-free bug.
23177         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Maintain
23178         sortbuf == filter->sortbuf invariant.
23179         Reported by Coverity.
23181 2017-07-06  Bruno Haible  <bruno@clisp.org>
23183         glob: Fix more memory leaks.
23184         * lib/glob.c (glob): Free dirname before returning.
23185         Reported by Coverity and Tim Rühsen.
23187 2017-07-06  Paul Eggert  <eggert@cs.ucla.edu>
23189         parse-datetime: fix uninit var bug
23190         Reported by Bruno Haible in:
23191         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00038.html
23192         * lib/parse-datetime.y (parse_datetime2): Do not use
23193         uninitialized.
23195 2017-07-05  Bruno Haible  <bruno@clisp.org>
23197         doc: Update for MSVC 14.
23198         * doc/posix-headers/*.texi: Add info about MSVC 14.
23199         * doc/posix-functions/*.texi: Likewise.
23200         * doc/pastposix-functions/*.texi: Likewise.
23201         * doc/glibc-headers/*.texi: Likewise.
23202         * doc/glibc-functions/*.texi: Likewise.
23204 2017-07-05  Bruno Haible  <bruno@clisp.org>
23206         sched: Fix build failure on native Windows (regression from 2017-06-19).
23207         * m4/sched_h.m4 (gl_SCHED_H): Set HAVE_STRUCT_SCHED_PARAM always.
23209 2017-07-03  John E. Malmberg  <wb8tyw@gmail.com>
23211         stdioext: Port to OpenVMS.
23212         * lib/stdio-impl.h: OpenVMS uses struct _iobuf for FILE information.
23213         * lib/fpending.c (fpending): Remove non-working VMS specific code.
23214         * lib/fbufmode.c (fbufmode): Fix _IOLBF test to use fp_ macro.
23215         * lib/fflush.c (clear_ungetc_buffer): Add OpenVMS to comments.
23216         * lib/fpurge.c (fpurge): Likewise.
23217         * lib/freadable.c (freadable): Likewise.
23218         * lib/freadahead.c (freadahead): Likewise.
23219         * lib/freading.c (freading): Likewise.
23220         * lib/freadptr.c (freadptr): Likewise.
23221         * lib/freadseek.c (freadseek): Likewise.
23222         * lib/fseeko.c (fseeko): Likewise.
23223         * lib/fseterr.c (fseterr): Likewise.
23224         * lib/fwritable.c (fwriteable): Likewise.
23225         * lib/fwriting.c (fwriting): Likewise.
23227 2017-07-01  Benno Schulenberg  <bensberg@telfort.nl>
23229         glob: Declare variables at the very start of their scope.
23230         * lib/glob.c (convert_dirent, convert_dirent64): Give each fragment
23231         its separate scope, so the functions will compile on Haiku.
23233 2017-07-01  Bruno Haible  <bruno@clisp.org>
23235         logbl: Work around a glibc bug on PowerPC64LE.
23236         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Test also negative subnormal
23237         numbers.
23238         * doc/posix-functions/logbl.texi: Update.
23240 2017-06-29  Bruno Haible  <bruno@clisp.org>
23242         stat, fstat: Compile stat-w32.c only on platforms that need it.
23243         Suggested by Paul Eggert.
23244         * modules/stat (configure.ac): Request stat-w32.o only on native
23245         Windows.
23246         * modules/fstat (configure.ac): Likewise.
23248 2017-06-25  Bruno Haible  <bruno@clisp.org>
23250         stat: Improve last change.
23251         * lib/stat-w32.c: Revert last change. Use generic idiom instead.
23253 2017-06-25  Paul Eggert  <eggert@cs.ucla.edu>
23255         stat: port to xlc 12.01
23256         * lib/stat-w32.c: Always include <sys/types.h>.  Otherwise, xlc
23257         12.01 complains "Compilation unit is empty."
23259 2017-06-24  Paul Eggert  <eggert@cs.ucla.edu>
23261         xalloc-oversized: port to icc
23262         * lib/xalloc-oversized.h (xalloc_oversized): Do not use
23263         __builtin_mul_overflow if ICC is defined, as this results in
23264         "undefined reference to `__builtin_mul_overflow'" with icc 17.0.2
23265         20170213.
23267 2017-06-19  Bruno Haible  <bruno@clisp.org>
23269         classpath: Avoid including config.h twice, as it produces warnings.
23270         Reported by John E. Malmberg <wb8tyw@gmail.com>.
23271         * lib/classpath.h: Conditionalize the include of config.h.
23273 2017-06-19  Bruno Haible  <bruno@clisp.org>
23274             John E. Malmberg  <wb8tyw@gmail.com>  (tiny change)
23276         sched: Fix compilation failure on OpenVMS.
23277         * m4/sched_h.m4 (gl_SCHED_H): Require AC_CANONICAL_HOST. On OpenVMS,
23278         test whether <pthread.h> exists and defines struct sched_param.
23279         * lib/sched.in.h: On OpenVMS, include <pthread.h>.
23281 2017-06-17  Paul Eggert  <eggert@cs.ucla.edu>
23283         diffseq: port to GCC 7 with --enable-gcc-warnings
23284         * lib/diffseq.h (diag): Use an if, not an ifdef, for most of the
23285         heuristic check.  This way, GCC 7 with --enable-gcc-warnings does
23286         not complain about big_snake being defined but not used.
23288 2017-06-15  Bruno Haible  <bruno@clisp.org>
23290         gettext-h: Update theoretical condition for use of variable size arrays.
23291         Reported by Paul Eggert.
23292         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment
23293         to include the theoretical condition for availability of variable size
23294         arrays, if we could trust the value of __STDC_VERSION__.
23296 2017-06-12  Bruno Haible  <bruno@clisp.org>
23298         Relicense some modules under LGPLv2+.
23299         Daiki Ueno's approval is in
23300         https://lists.gnu.org/r/bug-gnulib/2017-06/msg00058.html.
23301         * modules/uniwidth/base (License): Change to LGPLv2+.
23302         * modules/uniwidth/width (License): Likewise.
23304 2017-06-11  Bruno Haible  <bruno@clisp.org>
23306         localename: Fix test failure on DragonFly BSD.
23307         * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD
23308         like FreeBSD.
23310 2017-06-11  Bruno Haible  <bruno@clisp.org>
23312         float: Fix 'float' and 'isinf' failures on DragonFly BSD.
23313         * m4/float_h.m4 (gl_FLOAT_H): Treat DragonFly BSD like FreeBSD.
23314         * lib/float.in.h: Likewise.
23315         * m4/fmal.m4, m4/frexpl.m4, m4/logbl.m4: Update accordingly.
23317 2017-06-11  Bruno Haible  <bruno@clisp.org>
23319         gnulib-tool: Clean up after autotools.
23320         * gnulib-tool (func_create_testdir, func_create_megatestdir): Remove
23321         useless directory left over by the Autotools.
23323 2017-06-11  Paul Eggert  <eggert@cs.ucla.edu>
23325         getopt-posix: port to glibc 2.25.90
23326         Problem reported by Daniel P. Berrange in:
23327         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00003.html
23328         * lib/getopt-pfx-core.h (_GETOPT_CORE_H):
23329         * lib/getopt-pfx-ext.h (_GETOPT_EXT_H):
23330         #undef if __GETOPT_PREFIX is defined.
23332 2017-06-11  Bruno Haible  <bruno@clisp.org>
23334         strtod-obsolete: Fix license.
23335         * modules/strtod-obsolete (License): Change to LGPL.
23337 2017-06-10  Jim Meyering  <meyering@fb.com>
23339         maint: update to work with GCC7's -Werror=implicit-fallthrough=
23340         * lib/savewd.c (FALLTHROUGH): Define.
23341         (savewd_save, savewd_restore): Use this, rather than a comment,
23342         whenever one switch case falls through into the next.
23344 2017-06-08  Bruno Haible  <bruno@clisp.org>
23346         host-cpu-c-abi: Support for aarch64 ILP32 ABI.
23347         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the aarch64 ILP32
23348         ABI. Set HOST_CPU_C_ABI=arm64-ilp32 and define __arm64_ilp32__ in this
23349         case.
23351 2017-06-08  Paul Eggert  <eggert@cs.ucla.edu>
23353         doc: remove robots, add prereqs
23354         * doc/build-automation.texi, doc/gnulib.texi: Mention prereqs for
23355         builds.  Simon's robot site does not seem to be up, so remove
23356         mentions of it for now.
23358 2017-06-08  Bruno Haible  <bruno@clisp.org>
23360         gnulib-tool: Fix bug in func_symlink_if_changed, from 2006-11-13.
23361         * gnulib-tool (func_symlink_target): New function, extracted from
23362         func_symlink.
23363         (func_symlink, func_symlink_if_changed): Use it.
23365 2017-06-08  Bruno Haible  <bruno@clisp.org>
23367         gnulib-tool: Fix bug in func_ln_s, from 2016-01-15.
23368         * gnulib-tool (func_ln_s): Determine cp_src correctly.
23370 2017-06-07  Bruno Haible  <bruno@clisp.org>
23372         canonicalize-lgpl: Avoid conflict with gnulib 'getcwd' module on VMS.
23373         Reported by John E. Malmberg <wb8tyw@gmail.com> in
23374         <https://lists.gnu.org/r/bug-gnulib/2017-06/msg00029.html>.
23375         * lib/canonicalize-lgpl.c (__getcwd): On VMS, when using gnulib's getcwd
23376         override, pass 2 arguments to getcwd, not 3.
23378 2017-06-04  Paul Eggert  <eggert@cs.ucla.edu>
23380         same-inode: port better to VMS 8.2 and later
23381         Problem reported by John E. Malmberg in:
23382         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00005.html
23383         * lib/same-inode.h (SAME_INODE) [__VMS && 80200000 <= __CRTL_VER]:
23384         Use the usual POSIX definition.
23385         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define _USE_STD_STAT.
23387 2017-06-01  Paul Eggert  <eggert@cs.ucla.edu>
23389         error: fix POSIX violation for va_end
23390         Problem reported by Bruno Haible in:
23391         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00001.html
23392         * lib/error.c (error_tail): Do not call va_end here.
23393         (error, error_at_line): Call it here instead.
23395 2017-05-28  Bruno Haible  <bruno@clisp.org>
23397         c-strtod: Make it usable in C++ mode.
23398         * lib/c-strtod.h: Add 'extern "C"' marker for C++.
23400 2017-05-25  Jim Meyering  <meyering@fb.com>
23402         quotearg: fix compilation failure due to FALLTHROUGH misuse
23403         * lib/quotearg.c (quotearg_buffer_restyled): Revert one FALLTHROUGH
23404         macro back to /* fall through */ comment.  The macro can apply only
23405         to a following case statement.  Reported by Assaf Gordon.
23407 2017-05-25  Paul Eggert  <eggert@cs.ucla.edu>
23409         intprops: port to recent icc
23410         Port to icc (ICC) 17.0.4 20170411, which defines __GNUC__ to be 5
23411         but does not support __builtin_add_overflow etc.
23412         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW) [__ICC]:
23413         Define to 0.
23415 2017-05-23  Karl Berry  <karl@freefriends.org>
23417         * config/srclist.txt (iconv.m4): sync broken, comment out
23418         until (hopefully) the next gettext release.
23420 2017-05-22  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
23422         Remove repeated words in comments.
23424 2017-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
23426         fallthrough: reinstate a FALLTHROUGH instance in quotearg
23427         quotearg.c: Reinstate this instance which is significant
23428         when the if branch is not taken.
23430 2017-05-21  Bruno Haible  <bruno@clisp.org>
23432         gnulib-tool: Add options to create hard links.
23433         * gnulib-tool (func_usage): Document options --hardlink,
23434         --local-hardlink, --more-hardlinks.
23435         (func_symlink): Renamed from func_ln.
23436         (func_symlink_if_changed): Renamed from func_ln_if_changed.
23437         (func_hardlink): New function.
23438         (copymode, lcopymode): New variables.
23439         (symbolic, lsymbolic): Remove variables.
23440         (Options): Implement options --hardlink, --local-hardlink,
23441         --more-hardlinks.
23442         (func_should_link): Renamed from func_should_symlink. Set copyaction.
23443         (func_add_file, func_update_file): Update invocation of
23444         func_should_link. Invoke func_hardlink when appropriate.
23445         (func_import): Update comments.
23446         (func_create_testdir): Update invocation of func_should_link. Invoke
23447         func_hardlink when appropriate.
23448         Finally, invoke 'git update-index --refresh' to mitigate the effects of
23449         the hard links on git.
23451 2017-05-20  Bruno Haible  <bruno@clisp.org>
23453         argp: Simplify bit manipulation.
23454         * lib/argp-parse.c (parser_parse_opt): Use &, |, ~ instead of shifts
23455         on a signed integer type.
23457 2017-05-20  Bruno Haible  <bruno@clisp.org>
23459         Avoid wrong configure results with gcc -fsanitize=address.
23460         This completes the work done on 2016-02-06 on this topic.
23461         * m4/memmem.m4 (gl_FUNC_MEMMEM): Free allocated memory before returning.
23462         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
23463         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23464         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23465         * m4/fopen.m4 (gl_FUNC_FOPEN): Close allocated FILE streams before
23466         returning.
23467         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
23468         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
23469         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
23470         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
23471         * m4/signbit.m4 (gl_FLOATTYPE_SIGN_LOCATION): Likewise.
23472         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
23473         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Close allocated FILE streams and
23474         free allocated memory before returning.
23475         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23476         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Close allocated DIR
23477         objects before returning.
23478         * m4/iconv.m4 (AM_ICONV_LINK): Close allocated iconv_t handles before
23479         returning.
23481 2017-05-20  Bruno Haible  <bruno@clisp.org>
23483         gnulib-tool: Don't create hard links between gnulib and its testdirs.
23484         * gnulib-tool (func_create_testdir): Don't invoke 'ln'.
23486 2017-05-20  Bruno Haible  <bruno@clisp.org>
23488         argp, tsearch tests: Fix file list.
23489         * modules/argp-tests (Files): Add tests/macros.h.
23490         * modules/tsearch-tests (Files): Likewise.
23492 2017-05-20  Bruno Haible  <bruno@clisp.org>
23494         getopt-posix tests: Remove redundant include.
23495         * tests/test-getopt.h: Don't include "macros.h". It's already included
23496         by tests/test-getopt-main.h.
23498 2017-05-19  Jim Meyering  <meyering@fb.com>
23500         dfa: two small simplifications
23501         * lib/dfa.c (build_state): Avoid repeating longer expressions.
23503 2017-05-18  Jim Meyering  <meyering@fb.com>
23505         fallthrough: update for GCC 7/8
23506         * lib/quotearg.c (FALLTHROUGH): New macro.
23507         Use it whenever one switch case falls through into the next,
23508         replacing "/* Fall through */" comments.  This exposed one
23509         instance of an unwarranted "fall through" comment: unwarranted
23510         because it preceded a "goto" label not a case statement.
23511         * lib/freopen-safer.c (freopen_safer): Likewise.
23512         * lib/fts.c (leaf_optimization_applies): Likewise.
23513         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
23514         * tests/test-getopt_long.h (getopt_long_loop): Likewise.
23515         * tests/test-tsearch.c (mangle_tree): Likewise.  Also include
23516         tests/macros.h for the definition.
23517         * tests/test-argp.c (group1_parser): Likewise.
23518         * tests/test-getopt.h (getopt_loop): Likewise.
23520 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
23522         argp: fix shift bug
23523         * lib/argp-parse.c (parser_parse_opt): Rework to avoid undefined
23524         behavior on shift overflow, caught by gcc -fsanitize=undefined.
23526         argp: fix pointer-subtraction bug
23527         * lib/argp-help.c (hol_append): Don’t subtract pointers to
23528         different arrays, as this can run afoul of -fcheck-pointer-bounds.
23529         See the thread containing Bruno Haible’s report in:
23530         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00171.html
23532 2017-05-19  Bruno Haible  <bruno@clisp.org>
23534         printf-posix tests: Avoid test failure with "gcc --coverage".
23535         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
23536         * tests/test-printf-posix2.c (main): Test a width of 10000000 rather
23537         than 5000000.
23538         * tests/test-fprintf-posix2.c (main): Likewise.
23540 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
23542         closeout: don’t close stderr when sanitizing
23543         * NEWS: Document this.
23544         * lib/closeout.c (__has_feature): New macro, if not already defined.
23545         (SANITIZE_ADDRESS): New constant.
23546         (close_stdout): Don’t close stderr if sanitizing addresses.
23548 2017-05-19  Bruno Haible  <bruno@clisp.org>
23550         get-rusage-data tests: Avoid failure on Linux/glibc.
23551         * tests/test-get-rusage-data.c (main): Don't expect a strict increase
23552         on glibc systems.
23554 2017-05-18  Bruno Haible  <bruno@clisp.org>
23556         localename: Include necessary header files on Cygwin.
23557         * lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
23558         where NL_LOCALE_NAME is defined.
23560 2017-05-18  Bruno Haible  <bruno@clisp.org>
23562         gettext: Update macros from gettext git.
23563         * m4/intldir.m4: Require Autoconf >= 2.60.
23564         * m4/progtest.m4: Fix typos in copyright notice.
23566 2017-05-18  Bruno Haible  <bruno@clisp.org>
23568         copy-file tests: Fix link error (regression from 2017-05-01).
23569         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23570         * modules/copy-file-tests (Makefile.am): Link test-copy-file with
23571         $(LIB_CLOCK_GETTIME).
23573 2017-05-18  Bruno Haible  <bruno@clisp.org>
23575         unicase/special-casing: Fix incompatibility with gperf-3.0.4
23576         (regression from 2017-02-13).
23577         * lib/unicase/special-casing.in.h: Renamed from
23578         lib/unicase/special-casing.h.
23579         * modules/unicase/special-casing (Files): Add
23580         lib/unicase/special-casing.in.h. Remove lib/unicase/special-casing.h.
23581         (Makefile.am): Add rule for generating unicase/special-casing.h.
23582         Update BUILT_SOURCES and MOSTLYCLEANFILES accordingly.
23583         * lib/unicase/special-casing.c: Include "unicase/special-casing.h",
23584         not "special-casing.h".
23585         * lib/unicase/u*.c: Likewise.
23587 2017-05-17  Bruno Haible  <bruno@clisp.org>
23589         README: Don't ask people to read a TeXinfo file.
23590         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
23591         * README: Tell people how to read the HTML formatted manual.
23593 2017-05-16  Tim Rühsen  <tim.ruehsen@gmx.de>
23595         parse-datetime: Fix memleak
23596         * lib/parse-datetime.y (parse_datetime2): Cleanup on
23597         localtime_rz() failure.
23599 2017-05-16  Bruno Haible  <bruno@clisp.org>
23601         javacomp: Fix handle leak.
23602         Found by Coverity.
23603         * lib/javacomp.c (get_classfile_version): Close fd before returning.
23605 2017-05-16  Bruno Haible  <bruno@clisp.org>
23607         relocate: Make it easier to reclaim allocated memory.
23608         * lib/relocatable.h (relocate2): New declaration/macro.
23609         * lib/relocatable.c (relocate2): New function.
23610         * doc/relocatable-maint.texi (Supporting Relocation): Mention the
23611         relocate2 function.
23612         * lib/localcharset.c (relocate2): Define fallback.
23613         (get_charset_aliases): Invoke relocate2 instead of relocate. Free the
23614         allocated memory.
23615         * lib/javaversion.c (relocate2): Define fallback.
23616         (javaexec_version): Invoke relocate2 instead of relocate. Free the
23617         allocated memory.
23619 2017-05-16  Bruno Haible  <bruno@clisp.org>
23621         relocate: Simplify EMX specific code.
23622         * lib/relocatable.c (relocate): Assume pathname is non-NULL. Use
23623         ISSLASH macro consistently. Avoid dangerous string concatenation idiom.
23625 2017-05-16  Bruno Haible  <bruno@clisp.org>
23627         sigpipe tests: Fix file list.
23628         * modules/sigpipe-tests (Files): Add tests/macros.h.
23630 2017-05-16  Paul Eggert  <eggert@cs.ucla.edu>
23632         manywarnings: update for GCC 7
23633         * build-aux/gcc-warning.spec:
23634         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
23635         Add GCC 7 warnings, notably -Wimplicit-fallthrough=5, which
23636         requires a non-comment fallthrough attribute.  This is a bit
23637         cleaner than the comment versions.
23638         * lib/strftime.c, lib/dfa.c, lib/fnmatch.c, lib/mbrtowc.c:
23639         * lib/vasnprintf.c, tests/macros.h (FALLTHROUGH): New macro.
23640         Use it whenever one switch case falls through into the next.
23641         * lib/fnmatch_loop.c, tests/test-mbrtowc.c, tests/test-sigpipe.c:
23642         Use FALLTHROUGH macro.
23644 2017-05-15  Bruno Haible  <bruno@clisp.org>
23646         gnulib-tool: Fix generated code when libtests contains module 'alloca'.
23647         * gnulib-tool (func_emit_tests_Makefile_am): For libtests.a, use
23648         @ALLOCA@, not @LTALLOCA@.
23650 2017-05-15  Bruno Haible  <bruno@clisp.org>
23652         sys_select: Avoid "was expanded before it was required" warning.
23653         * modules/sys_select (configure.ac): Require, not invoke,
23654         gl_HEADER_SYS_SELECT.
23656 2017-05-14  Paul Eggert  <eggert@cs.ucla.edu>
23658         gnulib-tool: improve GNU Make debugging
23659         * gnulib-tool (func_emit_lib_Makefile_am): Omit unnecessary echo.
23660         Report autoconf diagnostics when it fails, in the output makefile.
23662 2017-05-14  Bruno Haible  <bruno@clisp.org>
23664         stat-time tests: Improve comment.
23665         * tests/test-stat-time.c: Add hyperlink, from Paul Eggert.
23667 2017-05-14  Bruno Haible  <bruno@clisp.org>
23669         same-inode: Adapt for windows-stat-inodes.
23670         * lib/same-inode.h: Include <sys/types.h>.
23671         (SAME_INODE) [_GL_WINDOWS_STAT_INODES]: Define specifically.
23672         * modules/same-inode (Depends-on): Add sys_types.
23674 2017-05-14  Bruno Haible  <bruno@clisp.org>
23676         windows-stat-inodes: New module.
23677         * m4/windows-stat-inodes.m4: New file.
23678         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_STAT_INODES.
23679         * modules/sys_types (Makefile.am): Substitute WINDOWS_STAT_INODES.
23680         * lib/sys_types.in.h [WINDOWS_STAT_INODES]: Override dev_t and ino_t.
23681         (_GL_WINDOWS_STAT_INODES): New macro.
23682         * lib/stat-w32.c: Set _WIN32_WINNT. Include <string.h>, verify.h.
23683         (GetFileInformationByHandleExFunc): New variable.
23684         (initialize): Initialize it.
23685         (_gl_fstat_by_handle) [_GL_WINDOWS_STAT_INODES]: Initialize st_dev and
23686         st_ino appropriately.
23687         * lib/stat.c (rpl_stat): Use the directory entry based approach only as
23688         a fallback, because it does not provide st_dev and st_ino values.
23689         * modules/fstat (Depends-on): Add 'verify'.
23690         * modules/windows-stat-inodes: New file.
23691         * doc/windows-stat-inodes.texi: New file.
23692         * doc/gnulib.texi: Include it.
23693         * doc/posix-headers/sys_stat.texi: Mention the new module.
23695 2017-05-14  Bruno Haible  <bruno@clisp.org>
23697         stat-time tests: Workaround for native Windows.
23698         * tests/test-stat-time.c: Include <stdio.h>, <time.h>.
23699         (filename_stamp1, filename_testfile, filename_stamp2, filename_stamp3):
23700         New variables.
23701         (initialize_filenames): New function.
23702         (main): Invoke it.
23703         (cleanup, prepare_test): Update.
23705 2017-05-14  Bruno Haible  <bruno@clisp.org>
23707         stat-time: Adapt for windows-stat-timespec.
23708         * lib/stat-time.h (get_stat_birthtime) [_GL_WINDOWS_STAT_TIMESPEC]: Use
23709         entire st_ctim field.
23711 2017-05-13  Jim Meyering  <meyering@fb.com>
23713         maint.mk: update regex to reflect 2013 addition of "assume" to verify.h
23714         * top/maint.mk (sc_prohibit_verify_without_use): Don't reject a source
23715         file that uses the assume macro, claiming that verify.h is unused.
23717 2017-05-13  Bruno Haible  <bruno@clisp.org>
23719         Use symbolic values for _WIN32_WINNT.
23720         * lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K.
23721         * lib/sethostname.c (_WIN32_WINNT): Likewise.
23723 2017-05-13  Bruno Haible  <bruno@clisp.org>
23725         year2038: New module.
23726         * m4/year2038.m4: New file.
23727         * modules/year2038: New file.
23728         * doc/year2038.texi: New file.
23729         * doc/gnulib.texi: Include it.
23731 2017-05-13  Bruno Haible  <bruno@clisp.org>
23733         largefile: Simplify.
23734         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Remove unused definition
23735         of _GL_WINDOWS_64_BIT_ST_SIZE.
23737 2017-05-13  Bruno Haible  <bruno@clisp.org>
23739         largefile: Improve and document.
23740         * m4/largefile.m4 (gl_LARGEFILE): Set WINDOWS_64_BIT_ST_SIZE to 0 if
23741         the mingw headers already define 'stat' appropriately.
23742         * modules/largefile (Description): Clarify.
23743         * doc/largefile.texi: New file.
23744         * doc/gnulib.texi: Include it.
23745         * doc/posix-headers/sys_types.texi: Update.
23747 2017-05-13  Bruno Haible  <bruno@clisp.org>
23749         truncate: New module.
23750         * lib/unistd.in.h (truncate): New declaration.
23751         * lib/truncate.c: New file.
23752         * m4/truncate.m4: New file.
23753         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'truncate' is declared.
23754         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TRUNCATE, HAVE_TRUNCATE,
23755         REPLACE_TRUNCATE.
23756         * modules/unistd (Makefile.am): Substitute GNULIB_TRUNCATE,
23757         HAVE_TRUNCATE, REPLACE_TRUNCATE.
23758         * modules/truncate: New file.
23759         * tests/test-unistd-c++.cc (truncate): Test signature.
23760         * doc/posix-functions/truncate.texi: Mention the new module.
23762         * tests/test-truncate.c: New file.
23763         * modules/truncate-tests: New file.
23765 2017-05-13  Bruno Haible  <bruno@clisp.org>
23767         windows-stat-timespec: New module.
23768         * modules/windows-stat-timespec: New file.
23769         * m4/windows-stat-timespec.m4: New file.
23770         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_STAT_TIMESPEC.
23771         * modules/sys_stat (Makefile.am): Substitute WINDOWS_STAT_TIMESPEC.
23772         * lib/sys_stat.in.h (struct stat) [WINDOWS_STAT_TIMESPEC]: Declare with
23773         fields st_atim, st_mtim, st_ctim.
23774         (st_atime, st_mtime, st_ctime): Define as macros.
23775         (_GL_WINDOWS_STAT_TIMESPEC): New macro.
23776         * lib/stat-w32.h (_gl_convert_FILETIME_to_timespec)
23777         [_GL_WINDOWS_STAT_TIMESPEC]: New declaration.
23778         * lib/stat-w32.c (_gl_convert_FILETIME_to_timespec)
23779         [_GL_WINDOWS_STAT_TIMESPEC]: New function.
23780         (_gl_convert_FILETIME_to_POSIX): Adjust coding style.
23781         (_gl_fstat_by_handle): If _GL_WINDOWS_STAT_TIMESPEC, convert the
23782         FILETIME to 'struct timespec', not 'time_t'.
23783         * lib/stat.c (rpl_stat): If _GL_WINDOWS_STAT_TIMESPEC, convert the
23784         FILETIME to 'struct timespec', not 'time_t'.
23785         * lib/stat-time.h (STAT_TIMESPEC): Define also if
23786         _GL_WINDOWS_STAT_TIMESPEC.
23787         * doc/windows-stat-timespec.texi: New file.
23788         * doc/gnulib.texi: Include it.
23790 2017-05-13  Bruno Haible  <bruno@clisp.org>
23792         windows-stat-override: New module.
23793         * lib/sys_stat.in.h (stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provide own
23794         definition. Define GNULIB_defined_struct_stat.
23795         (fstat, fstatat, lstat, stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provoke
23796         link error if this symbol is used and the corresponding module is not
23797         in use.
23798         (_stat64, _stat32i64, _stati64, _stat32, _stat64i32): Don't redefine if
23799         GNULIB_OVERRIDES_STRUCT_STAT.
23800         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
23801         GNULIB_OVERRIDES_STRUCT_STAT.
23802         * modules/sys_stat (Makefile.am): Substitute
23803         GNULIB_OVERRIDES_STRUCT_STAT.
23804         * modules/windows-stat-override: New file.
23806 2017-05-13  Bruno Haible  <bruno@clisp.org>
23808         fstat: Fix module dependency conditions.
23809         * modules/fstat (Depends-on): Fix typo.
23811 2017-05-13  Bruno Haible  <bruno@clisp.org>
23813         stat, fstat: Complete removal of old native Windows code.
23814         * lib/stat.c: Remove old macrology for WINDOWS_NATIVE.
23815         * lib/fstat.c: Likewise.
23816         * lib/stat-w32.c: Likewise.
23818 2017-05-13  Bruno Haible  <bruno@clisp.org>
23820         stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
23821         * lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.
23823 2017-05-11  Paul Eggert  <eggert@cs.ucla.edu>
23825         getopt-posix: port to mingw
23826         * lib/getopt.c (flockfile, funlockfile): Define on mingw.
23827         Problem reported by Daniel P. Berrage in:
23828         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00086.html
23830 2017-05-11  Bruno Haible  <bruno@clisp.org>
23832         gettimeofday: Increase precision on mingw.
23833         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Require AC_CANONICAL_HOST.
23834         Set REPLACE_GETTIMEOFDAY to 1 on mingw.
23835         * lib/gettimeofday.c (gettimeofday): On native Windows, use the
23836         GetSystemTimePreciseAsFileTime based implementation always.
23837         * doc/posix-functions/gettimeofday.texi: Mention precision problem on
23838         mingw.
23840 2017-05-11  Bruno Haible  <bruno@clisp.org>
23842         poll: Fix confusion between SOCKETs and FDs on native Windows.
23843         Fix proposed by Daniel P. Berrange <berrange@redhat.com>.
23844         * lib/poll.c [WINDOWS_NATIVE]: Undefine select.
23846 2017-05-11  Bruno Haible  <bruno@clisp.org>
23848         doc: Clarify doc about socket functions on native Windows.
23849         This reworks doc that was added on 2008-09-29.
23850         * doc/posix-functions/select.texi: Fix copy-and-paste mistake and use
23851         clearer wording.
23852         * doc/posix-functions/accept.texi: Use clearer wording.
23853         * doc/posix-functions/bind.texi: Likewise.
23854         * doc/posix-functions/connect.texi: Likewise.
23855         * doc/posix-functions/getpeername.texi: Likewise.
23856         * doc/posix-functions/getsockname.texi: Likewise.
23857         * doc/posix-functions/getsockopt.texi: Likewise.
23858         * doc/posix-functions/ioctl.texi: Likewise.
23859         * doc/posix-functions/listen.texi: Likewise.
23860         * doc/posix-functions/recv.texi: Likewise.
23861         * doc/posix-functions/recvfrom.texi: Likewise.
23862         * doc/posix-functions/send.texi: Likewise.
23863         * doc/posix-functions/sendto.texi: Likewise.
23864         * doc/posix-functions/setsockopt.texi: Likewise.
23865         * doc/posix-functions/shutdown.texi: Likewise.
23866         * doc/posix-functions/socket.texi: Likewise.
23868 2017-05-10  Bruno Haible  <bruno@clisp.org>
23870         poll: Fix link error on native Windows.
23871         * lib/poll.c [WINDOWS_NATIVE]: Undefine recv.
23873 2017-05-10  Bruno Haible  <bruno@clisp.org>
23875         time: Fix missing initialization of HAVE_TIMEZONE_T.
23876         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T
23877         here...
23878         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here.
23879         * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not
23880         gl_HEADER_SYS_TIME_H_DEFAULTS.
23881         * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting.
23882         (configure.ac): Remove useless quoting.
23884 2017-05-10  Bruno Haible  <bruno@clisp.org>
23886         Implement a way to opt out from MSVC support, part 2.
23887         * modules/msvc-inval (Include): Document recommended idiom.
23888         * modules/msvc-nothrow (Include): Likewise.
23890         Implement a way to opt out from MSVC support.
23891         This is useful for Emacs.
23892         * modules/msvc-nothrow (configure.ac): Invoke gl_MODULE_INDICATOR.
23893         * lib/accept4.c: Include <io.h> as an alternative to msvc-nothrow.h.
23894         * lib/error.c: Likewise.
23895         * lib/fcntl.c: Likewise.
23896         * lib/flock.c: Likewise.
23897         * lib/fstat.c: Likewise.
23898         * lib/fsync.c: Likewise.
23899         * lib/ioctl.c: Likewise.
23900         * lib/isapipe.c: Likewise.
23901         * lib/lseek.c: Likewise.
23902         * lib/nonblocking.c: Likewise.
23903         * lib/poll.c: Likewise.
23904         * lib/select.c: Likewise.
23905         * lib/sockets.h: Likewise.
23906         * lib/sockets.c: Likewise.
23907         * lib/stdio-read.c: Likewise.
23908         * lib/stdio-write.c: Likewise.
23909         * lib/utimens.c: Likewise.
23910         * lib/w32sock.h: Likewise.
23911         * lib/w32spawn.h: Likewise.
23912         * tests/test-cloexec.c: Likewise.
23913         * tests/test-dup-safer.c: Likewise.
23914         * tests/test-dup2.c: Likewise.
23915         * tests/test-dup3.c: Likewise.
23916         * tests/test-fcntl.c: Likewise.
23917         * tests/test-pipe.c: Likewise.
23918         * tests/test-pipe2.c: Likewise.
23919         * lib/ftruncate.c: Likewise.
23920         (chsize_nothrow): Renamed from chsize.
23921         * lib/msvc-nothrow.c: Don't include msvc-inval.h if
23922         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
23923         * lib/close.c: Likewise.
23924         * lib/dup.c: Likewise.
23925         * lib/fclose.c: Likewise.
23926         * lib/raise.c: Likewise.
23927         * tests/test-fgetc.c: Likewise.
23928         * tests/test-fputc.c: Likewise.
23929         * tests/test-fread.c: Likewise.
23930         * tests/test-fwrite.c: Likewise.
23931         * lib/getdtablesize.c: Likewise.
23932         (_setmaxstdio_nothrow): Renamed from _setmaxstdio.
23933         * lib/isatty.c: Don't include msvc-inval.h if
23934         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
23935         Include <io.h> as an alternative to msvc-nothrow.h.
23936         * lib/read.c: Likewise.
23937         * lib/write.c: Likewise.
23938         * lib/dup2.c: Likewise.
23939         (dup2_nothrow): New function.
23940         (ms_windows_dup2): Use it.
23941         * m4/close.m4 (gl_FUNC_CLOSE): Invoke gl_MSVC_INVAL and test
23942         HAVE_MSVC_INVALID_PARAMETER_HANDLER only if gl_MSVC_INVAL is defined.
23943         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
23944         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
23945         * m4/raise.m4 (gl_FUNC_RAISE): Likewise.
23946         * m4/read.m4 (gl_FUNC_READ): Likewise.
23947         * m4/write.m4 (gl_FUNC_WRITE): Likewise.
23948         * doc/windows-without-msvc.texi: New file.
23949         * doc/gnulib.texi (Native Windows Support without MSVC Support): New
23950         section.
23952 2017-05-10  Bruno Haible  <bruno@clisp.org>
23954         wait-process: Adjust native Windows support.
23955         * lib/wait-process.c: Use the usual condition for recognizing a native
23956         Windows platform.
23958 2017-05-10  Bruno Haible  <bruno@clisp.org>
23960         doc: New chapter "Native Windows Support".
23961         * doc/gnulib.texi (Native Windows Support): New chapter.
23962         * doc/windows-libtool.texi: Small wording changes.
23963         * doc/windows-sockets.texi: Small wording and formatting changes.
23965 2017-05-10  Bruno Haible  <bruno@clisp.org>
23967         doc: Move section "Library version handling".
23968         * doc/gnulib.texi: Move section "Library version handling"
23969         from chapter "Miscellaneous Notes" to chapter "Particular Modules".
23971 2017-05-10  Bruno Haible  <bruno@clisp.org>
23973         doc: Move section "Running self-tests under valgrind".
23974         * doc/gnulib.texi: Move section "Running self-tests under valgrind"
23975         from chapter "Particular Modules" to chapter "Miscellaneous Notes".
23977 2017-05-10  Bruno Haible  <bruno@clisp.org>
23979         doc: New chapter "Build Infrastructure Modules".
23980         * doc/gnulib.texi (Build Infrastructure Modules): New chapter.
23982 2017-05-10  Bruno Haible  <bruno@clisp.org>
23984         Prepare for reordering sections in the manual.
23985         * doc/gnulib.texi: Move several sections to separate files. Include
23986         these files.
23987         * doc/out-of-memory.texi: New file, extracted from doc/gnulib.texi.
23988         * doc/obsolete.texi: Likewise.
23989         * doc/extra-tests.texi: Likewise.
23990         * doc/transversal.texi: Likewise.
23991         * doc/namespace.texi: Likewise.
23992         * doc/check-version.texi: Likewise.
23993         * doc/windows-sockets.texi: Likewise.
23994         * doc/windows-libtool.texi: Likewise.
23995         * doc/licenses-texi.texi: Likewise.
23996         * doc/build-automation.texi: Likewise.
23997         * doc/c-locale.texi: Likewise.
23999 2017-05-10  Bruno Haible  <bruno@clisp.org>
24001         Fix instructions how to update manual on www.gnu.org.
24002         * doc/README: Add -I option, so that texi2dvi finds texinfo.tex.
24004 2017-05-09  Bruno Haible  <bruno@clisp.org>
24006         tzset: Expand comment about TZ problem on native Windows.
24007         * lib/tzset.c (tzset): Elaborate comment, based on explanations by
24008         Paul Eggert.
24009         * lib/ctime.c (rpl_ctime): Likewise.
24010         * lib/localtime.c (rpl_localtime): Likewise.
24011         * lib/mktime.c (mktime): Likewise.
24012         * lib/strftime-fixes.c (rpl_strftime): Likewise.
24013         * lib/wcsftime.c (rpl_wcsftime): Likewise.
24015 2017-05-08  Paul Eggert  <eggert@cs.ucla.edu>
24017         intprops: don’t depend on ‘verify’
24018         Problem reported by Ævar Arnfjörð Bjarmason in:
24019         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00054.html
24020         * lib/intprops.h: Do not include verify.h, and move compile-time
24021         checks from here ...
24022         * tests/test-intprops.c (main): ... to here, if they’re not here
24023         already.  Check widths of other standard integer types.
24024         * modules/intprops (Depends-on): Remove ‘verify’.
24026 2017-05-07  Bruno Haible  <bruno@clisp.org>
24028         utimens: On native Windows, support 100ns resolution also if fd < 0.
24029         * lib/utime.in.h: Include <time.h>.
24030         (_gl_utimens_windows): New declaration.
24031         * lib/utime.c (_gl_utimens_windows): New function, based on utime.
24032         (utime): Invoke it.
24033         * lib/utimens.c (fdutimens): On native Windows, call _gl_utimens_windows
24034         instead of utime.
24035         * modules/utime (Depends-on): Add 'time'.
24037 2017-05-07  Bruno Haible  <bruno@clisp.org>
24039         utimens: Improve error code on native Windows.
24040         * lib/utimens.c (fdutimens): If fd was not opened with O_RDWR, fail with
24041         error code EACCES, not EINVAL.
24043 2017-05-07  Bruno Haible  <bruno@clisp.org>
24045         utime: Handle more Windows error codes.
24046         * lib/utime.c (utime): Handle ERROR_BAD_NETPATH.
24047         Based on explanations by Billy O'Neal.
24049 2017-05-05  Bruno Haible  <bruno@clisp.org>
24051         crypto/rijndael: Fix "strict-aliasing rules" warnings, alignment issues.
24052         * lib/rijndael-api-fst.c (rijndaelBlockEncrypt): Declare 'block' as a
24053         union.
24054         (rijndaelPadEncrypt, rijndaelBlockDecrypt): Likewise.
24055         (rijndaelPadDecrypt): Likewise. Use local variable 'iv' to cache the
24056         value of cipher->IV.
24058 2017-05-05  Bruno Haible  <bruno@clisp.org>
24060         wctype-h-c++-tests: Update.
24061         * tests/test-wctype-h-c++.cc: Reorder to match lib/wchar.in.h.
24063 2017-05-05  Bruno Haible  <bruno@clisp.org>
24065         wchar-c++-tests: Update.
24066         * tests/test-wchar-c++.cc (wcsftime): Declare, missing since 2017-04-30.
24068 2017-05-05  Bruno Haible  <bruno@clisp.org>
24070         utime-h-c++-tests: New module.
24071         * tests/test-utime-h-c++.cc: New file.
24072         (utime): Declare, missing since 2017-04-30.
24073         * modules/utime-h-c++-tests: New file.
24075 2017-05-05  Bruno Haible  <bruno@clisp.org>
24077         unistd-c++-tests: Update.
24078         * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03.
24079         (read): Declare, missing since 2011-04-15.
24080         (sethostname): Declare, missing since 2011-12-03.
24082 2017-05-05  Bruno Haible  <bruno@clisp.org>
24084         time-c++-tests: Update.
24085         * tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01.
24086         (localtime, gmtime): Declare, missing since 2017-04-30.
24087         (ctime): Declare, missing since 2017-04-30.
24088         (strftime): Declare, missing since 2017-04-30.
24089         (tzalloc, tzfree, localtime_rz, mktime_z): Declare, missing since
24090         2015-07-24.
24092 2017-05-05  Bruno Haible  <bruno@clisp.org>
24094         sys_resource-c++-tests: New module.
24095         * tests/test-sys_resource-c++.cc: New file.
24096         (getrusage): Declare, missing since 2012-04-13.
24097         * modules/sys_resource-c++-tests: New file.
24099 2017-05-05  Bruno Haible  <bruno@clisp.org>
24101         strings-c++-tests: New module.
24102         * tests/test-strings-c++.cc: New file.
24103         (ffs): Declare, missing since 2011-07-12.
24104         * modules/strings-c++-tests: New file.
24106 2017-05-05  Bruno Haible  <bruno@clisp.org>
24108         string-c++-tests: Update.
24109         * tests/test-string-c++.cc (ffsl): Declare, missing since 2011-07-15.
24110         (ffsll): Declare, missing since 2011-07-15.
24112 2017-05-05  Bruno Haible  <bruno@clisp.org>
24114         stdlib-c++-tests: Update.
24115         * tests/test-stdlib-c++.cc (posix_openpt): Declare, missing since
24116         2011-10-18.
24117         (ptsname_r): Declare, missing since 2011-11-07.
24118         (qsort_r): Declare, missing since 2014-08-29.
24119         (random, srandom, initstate, setstate): Declare, missing since
24120         2012-01-14.
24121         (secure_getenv): Declare, missing since 2013-02-05.
24123 2017-05-05  Bruno Haible  <bruno@clisp.org>
24125         stdio-c++-tests: Update.
24126         * tests/test-stdio-c++.cc (pclose): Declare, missing since 2011-09-18.
24128 2017-05-05  Bruno Haible  <bruno@clisp.org>
24130         signal-h-c++-tests: Update.
24131         * tests/test-signal-h-c++.cc (raise): Remove redundant declaration.
24133 2017-05-05  Bruno Haible  <bruno@clisp.org>
24135         math-c++-tests: Update.
24136         * tests/test-math-c++.cc (fmaf): Declare, missing since 2011-10-17.
24137         (fma): Declare, missing since 2011-10-17.
24138         (fmal): Declare, missing since 2011-10-17.
24140 2017-05-05  Bruno Haible  <bruno@clisp.org>
24142         locale-c++-tests: Update.
24143         * tests/test-locale-c++.cc (localeconv): Declare, missing since
24144         2012-03-25.
24146 2017-05-05  Bruno Haible  <bruno@clisp.org>
24148         inttypes-c++-tests: New module.
24149         * tests/test-inttypes-c++.cc: New file.
24150         (strtoimax): Declare, missing since 2012-01-05.
24151         (strtoumax): Declare, missing since 2012-01-05.
24152         * modules/inttypes-c++-tests: New file.
24154 2017-05-05  Bruno Haible  <bruno@clisp.org>
24156         dirent-c++-tests: Update.
24157         * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13.
24158         (rewinddir): Declare, missing since 2011-09-13.
24159         (dirfd): Declare, missing since 2010-03-08.
24161 2017-05-04  Bruno Haible  <bruno@clisp.org>
24163         argp: Fix mistake in 2017-04-23 commit.
24164         * lib/argp-help.c (__argp_failure): If GNULIB_STRERROR_R_POSIX is set,
24165         assume that strerror_r returns 'int', not 'char *'.
24167 2017-05-04  Reuben Thomas  <rrt@sc3d.org>
24169         argp: Fix typo.
24170         * lib/argp-help.c (argp_doc): Fix spelling mistake in comment.
24172 2017-05-02  Paul Eggert  <eggert@cs.ucla.edu>
24174         utimens: port to Emacs + MS-Windows
24175         Skip the new MS-Windows-specific code if Emacs.
24176         * lib/utimens.c [EMACS_CONFIGUATION]:
24177         Avoid new MS-Windows-specific code.
24178         (USE_SETFILETIME): New macro.
24179         (fdutimens): Use it.
24181 2017-05-01  Paul Eggert  <eggert@cs.ucla.edu>
24183         tzset: update doc for TZ problems on MS-Windows
24184         * doc/posix-functions/ctime.texi,  doc/posix-functions/daylight.texi:
24185         * doc/posix-functions/localtime.texi, doc/posix-functions/mktime.texi:
24186         * doc/posix-functions/strftime.texi, doc/posix-functions/timezone.texi:
24187         * doc/posix-functions/tzname.texi, doc/posix-functions/tzset.texi:
24188         * doc/posix-functions/wcsftime.texi:
24189         Mention some issues with TZ under MS-Windows.
24191 2017-05-01  Bruno Haible  <bruno@clisp.org>
24193         copy-file: Fix build error on mingw.
24194         * modules/copy-file (Depends-on): Add 'close'.
24196 2017-05-01  Bruno Haible  <bruno@clisp.org>
24198         tzset: Work around TZ problem on native Windows.
24199         * m4/tzset.m4 (gl_FUNC_TZSET): Require AC_CANONICAL_HOST. On native
24200         Windows, set REPLACE_TZSET to 1.
24201         * lib/tzset.c (tzset): On native Windows, fix TZ if necessary, and
24202         invoke '_tzset' instead of 'tzset'.
24203         * doc/posix-functions/tzset.texi: Mention the native Windows workaround.
24205         * modules/time_rz (Depends-on): Add tzset.
24206         * lib/time_rz.c (tzset): Remove fallback definition.
24207         * m4/time_rz.m4 (gl_TIME_RZ): Don't test for tzset.
24209 2017-05-01  Bruno Haible  <bruno@clisp.org>
24211         mktime: Fix dependencies.
24212         * modules/mktime (Depends-on): Add 'time'.
24214 2017-05-01  Bruno Haible  <bruno@clisp.org>
24216         New module 'localtime-buffer', split off from module 'gettimeofday'.
24217         * lib/localtime-buffer.h: New file.
24218         * lib/localtime-buffer.c: New file, extracted from lib/gettimeofday.c.
24219         * lib/time.in.h (tzset): New declaration.
24220         (localtime, gmtime): Don't test GNULIB_GETTIMEOFDAY.
24221         * lib/tzset.c: New file, extracted from lib/gettimeofday.c.
24222         * lib/gettimeofday.c: Include localtime-buffer.h. Remove code that was
24223         moved to lib/localtime-buffer.c or lib/tzset.c.
24224         * m4/localtime-buffer.m4: New file.
24225         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TZSET,
24226         HAVE_TZSET, REPLACE_TZSET.
24227         * m4/tzset.m4 (gl_FUNC_TZSET): Move code from m4/gettimeofday.m4 to
24228         here, with modifications. Set HAVE_TZSET, REPLACE_TZSET. Invoke
24229         gl_LOCALTIME_BUFFER_NEEDED.
24230         (gl_FUNC_TZSET_CLOBBER): Don't require gl_HEADER_SYS_TIME_H; not needed
24231         since 2007-01-18.
24232         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Remove code that deals with
24233         tzset.
24234         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require gl_LOCALTIME_BUFFER_DEFAULTS.
24235         Invoke gl_LOCALTIME_BUFFER_NEEDED instead of
24236         gl_GETTIMEOFDAY_REPLACE_LOCALTIME.
24237         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Remove macro.
24238         * modules/localtime-buffer: New file.
24239         * modules/time (Depends-on): Remove 'gettimeofday'.
24240         (Makefile.am): Substitute GNULIB_TZSET, HAVE_TZSET,
24241         REPLACE_TZSET. Don't substitute GNULIB_GETTIMEOFDAY.
24242         * modules/tzset (Description): Enable hyperlink to POSIX spec.
24243         (Files): Add lib/tzset.c.
24244         (Depends-on): Remove gettimeofday. Add localtime-buffer, time.
24245         (configure.ac): Arrange to conditionally compile lib/tzset.c. Invoke
24246         gl_TIME_MODULE_INDICATOR.
24247         * modules/gettimeofday (Depends-on): Add localtime-buffer.
24249 2017-05-01  Bruno Haible  <bruno@clisp.org>
24251         copy-file: Preserve sub-second time stamps.
24252         * lib/copy-file.c: Include stat-time.h, utimens.h instead of <utime.h>.
24253         (qcopy_file_preserving): Use 'struct timespec' and utimens() to
24254         transport the time stamps from the original file to the destination
24255         file.
24256         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for utime, utimes.
24257         * modules/copy-file (Depends-on): Add stat-time, utimns instead of
24258         utime-h.
24260 2017-05-01  Bruno Haible  <bruno@clisp.org>
24262         wctype-t: Fix problems if <wchar.h> gets included after <wctype.h>.
24263         * lib/wctype.in.h: Include not only <ctype.h> but also <wchar.h>. Do so
24264         also on MSVC.
24265         Reported by Eli Zaretskii <eliz@gnu.org>.
24267 2017-05-01  Bruno Haible  <bruno@clisp.org>
24269         wchar: Fix compilation error with the original mingw.org mingw.
24270         * lib/wchar.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
24271         <stddef.h> instead.
24272         * m4/wint_t.m4 (gl_TYPE_WINT_T_PREREQ): New macro, extracted from
24273         gl_WCTYPE_H.
24274         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set HAVE_CRTDEFS_H here; require
24275         gl_TYPE_WINT_T_PREREQ instead.
24276         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_TYPE_WINT_T_PREREQ.
24277         * modules/wchar (Makefile.am): Substitute HAVE_CRTDEFS_H.
24278         Reported by Eli Zaretskii <eliz@gnu.org>.
24280 2017-04-30  Bruno Haible  <bruno@clisp.org>
24282         utimecmp: Add support for native Windows.
24283         * lib/utimecmp.c (SYSCALL_RESOLUTION): Set to 100 on native Windows.
24285 2017-04-30  Bruno Haible  <bruno@clisp.org>
24287         utimens: Add support for native Windows.
24288         * lib/utimens.c: Include <windows.h>, msvc-nothrow.h.
24289         (fdutimens): Provide a native Windows implementation, like utime.c with
24290         added tv_nsec support.
24291         * modules/utimens (Depends-on): Add msvc-nothrow, utime.
24292         Suggested by Tim Rühsen <tim.ruehsen@gmx.de>.
24294 2017-04-30  Bruno Haible  <bruno@clisp.org>
24296         wcsftime: New module.
24297         * lib/wchar.in.h (wcsftime): New declaration.
24298         * lib/wcsftime.c: New file.
24299         * m4/wcsftime.m4: New file.
24300         * m4/wchar_h.m4 (gl_WCHAR_H): Test for wcsftime declaration.
24301         (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_WCSFTIME,
24302         HAVE_WCSFTIME, REPLACE_WCSFTIME.
24303         * modules/wchar (Makefile.am): Substitute GNULIB_WCSFTIME,
24304         HAVE_WCSFTIME, REPLACE_WCSFTIME.
24305         * modules/wcsftime: New file.
24306         * doc/posix-functions/wcsftime.texi: Mention the new module.
24308 2017-04-30  Bruno Haible  <bruno@clisp.org>
24310         strftime-fixes: New module.
24311         * lib/time.in.h (strftime): New declaration.
24312         * lib/strftime-fixes.c: New file.
24313         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Inline gl_FUNC_STRFTIME macro.
24314         (gl_FUNC_STRFTIME): Remove macro.
24315         * m4/strftime-fixes.m4: New file.
24316         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_STRFTIME,
24317         REPLACE_STRFTIME.
24318         * modules/time (Makefile.am): Substitute GNULIB_STRFTIME,
24319         REPLACE_STRFTIME.
24320         * modules/strftime-fixes: New file.
24321         * doc/posix-functions/strftime.texi: Mention the new module.
24323 2017-04-30  Bruno Haible  <bruno@clisp.org>
24325         mktime: Work around TZ problem on native Windows.
24326         * lib/mktime.c: Add #ifs to make the algorithmic workaround independent
24327         from the native Windows workaround.
24328         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): New macro, extracted from
24329         gl_FUNC_MKTIME. If guessing, set gl_cv_func_working_mktime to
24330         'guessing no'.
24331         (gl_FUNC_MKTIME): Require it. Require AC_CANONICAL_HOST.
24332         Set REPLACE_MKTIME to 1 on native Windows. Define NEED_MKTIME_WORKING,
24333         NEED_MKTIME_WINDOWS.
24334         (gl_FUNC_MKTIME_INTERNAL): Require gl_FUNC_MKTIME_WORKS, not
24335         gl_FUNC_MKTIME. Set WANT_MKTIME_INTERNAL, not REPLACE_MKTIME. Define
24336         NEED_MKTIME_INTERNAL.
24337         * m4/timegm.m4 (gl_FUNC_TIMEGM): Require gl_FUNC_MKTIME_WORKS, not
24338         gl_FUNC_MKTIME. Cope with 'guessing yes' value.
24339         * modules/mktime-internal (configure.ac): Test WANT_MKTIME_INTERNAL,
24340         not REPLACE_MKTIME.
24341         * doc/posix-functions/mktime.texi: Mention the native Windows
24342         workaround.
24344 2017-04-30  Bruno Haible  <bruno@clisp.org>
24346         localtime: New module.
24347         * lib/time.in.h (localtime): Declare also if requested by module
24348         'localtime'.
24349         * lib/localtime.c: New file.
24350         * m4/localtime.m4: New file.
24351         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_LOCALTIME.
24352         * modules/time (Makefile.am): Substitute GNULIB_LOCALTIME.
24353         * modules/localtime: New file.
24354         * doc/posix-functions/localtime.texi: Mention the new module.
24356 2017-04-30  Bruno Haible  <bruno@clisp.org>
24358         ctime: New module.
24359         * lib/time.in.h (ctime): New declaration.
24360         * lib/ctime.c: New file.
24361         * m4/ctime.m4: New file.
24362         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_CTIME,
24363         REPLACE_CTIME.
24364         * modules/time (Makefile.am): Substitute GNULIB_CTIME, REPLACE_CTIME.
24365         * modules/ctime: New file.
24366         * doc/posix-functions/ctime.texi: Mention the new module.
24368 2017-04-30  Bruno Haible  <bruno@clisp.org>
24370         gettimeofday: Provide higher resolution on native Windows.
24371         * lib/gettimeofday.c: Don't include <sys/timeb.h>.
24372         (GetSystemTimePreciseAsFileTimeFuncType): New variable.
24373         (initialize): Initialize it.
24374         (gettimeofday) [WINDOWS_NATIVE]: Use it, and convert from FILETIME to
24375         'struct timeval'. Don't use _ftime().
24376         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): Don't test for
24377         <sys/timeb.h> and _ftime.
24379 2017-04-30  Bruno Haible  <bruno@clisp.org>
24381         Document the problem with the Cygwin environment variable TZ.
24382         * doc/posix-functions/tzset.texi: Add note about TZ.
24383         * doc/posix-functions/ctime.texi: Likewise.
24384         * doc/posix-functions/localtime.texi: Likewise.
24385         * doc/posix-functions/mktime.texi: Likewise.
24386         * doc/posix-functions/strftime.texi: Likewise.
24387         * doc/posix-functions/wcsftime.texi: Likewise.
24388         * doc/pastposix-functions/ftime.texi: Likewise.
24390 2017-04-30  Bruno Haible  <bruno@clisp.org>
24392         utime-tests: New module.
24393         * tests/test-utime.c: New file, based on tests/test-utimens.h.
24394         * tests/test-utimens-common.h: Include <sys/stat.h>.
24395         * modules/utime-tests: New file.
24397 2017-04-29  Bruno Haible  <bruno@clisp.org>
24399         utime: New module.
24400         * lib/utime.in.h: Add comment for snippets.
24401         (utime): New declaration.
24402         * lib/utime.c: New file.
24403         * m4/utime.m4: New file.
24404         * m4/utime_h.m4 (gl_UTIME_H): Test for utime declaration.
24405         (gl_UTIME_H_DEFAULTS): Initialize GNULIB_UTIME, HAVE_UTIME,
24406         REPLACE_UTIME.
24407         * modules/utime-h (Depends-on): Add snippets.
24408         (Makefile.am): Substitute GNULIB_UTIME, HAVE_UTIME, REPLACE_UTIME.
24409         Insert snippets.
24410         * modules/utime: New file.
24411         * doc/posix-functions/utime.texi: Mention the new module.
24413 2017-04-29  Bruno Haible  <bruno@clisp.org>
24415         utime-h: Modernize handling of 'struct utimbuf'.
24416         * lib/utime.in.h: Include next <utime.h> if it exists.
24417         (utimbuf): Define to _utimbuf on native Windows.
24418         * m4/utime_h.m4 (gl_UTIME_H): Check for prerequisites of include_next.
24419         Set UTIME_H on native Windows.
24420         (gl_UTIME_MODULE_INDICATOR, gl_HEADER_UTIME_H_DEFAULTS): New macros.
24421         * modules/utime-h (Depends-on): Add include_next.
24422         (Makefile.am): Substitute also HAVE_UTIME_H, INCLUDE_NEXT,
24423         PRAGMA_SYSTEM_HEADER, PRAGMA_COLUMNS, NEXT_UTIME_H.
24425         * lib/utimens.c (utimbuf): Remove fallback definition.
24426         * m4/utimens.m4 (gl_UTIMENS): Don't require
24427         gl_CHECK_TYPE_STRUCT_UTIMBUF.
24428         * m4/utimbuf.m4: Remove file.
24429         * modules/utimens (Files): Remove m4/utimbuf.m4.
24431 2017-04-29  Bruno Haible  <bruno@clisp.org>
24433         Make use of module 'utime-h'.
24434         * modules/copy-file (Depends-on): Add utime-h.
24435         * lib/copy-file.c: Assume that <utime.h> exists.
24436         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for <utime.h>.
24438         * modules/utimens (Depends-on): Add utime-h.
24439         * lib/utimens.c: Assume that <utime.h> exists.
24441 2017-04-29  Bruno Haible  <bruno@clisp.org>
24443         utime-h: New module.
24444         * m4/utime_h.m4: New file.
24445         * lib/utime.in.h: New file.
24446         * modules/utime-h: New file.
24447         * doc/posix-headers/utime.texi: Mention the new module.
24449         * tests/test-utime-h.c: New file.
24450         * modules/utime-h-tests: New file.
24452 2017-04-30  Bruno Haible  <bruno@clisp.org>
24454         Fix a few typos.
24455         * m4/fstat.m4 (gl_FUNC_FSTAT): Require AC_CANONICAL_HOST.
24456         * m4/stat.m4 (gl_FUNC_STAT): Fix comment.
24457         * doc/posix-functions/fstat.texi: Fix a plural typo.
24458         * doc/posix-functions/stat.texi: Likewise.
24459         * m4/include_next.m4: Update comments.
24461 2017-04-29  Bruno Haible  <bruno@clisp.org>
24463         error: Fix mistake in 2017-04-23 commit.
24464         * lib/error.c (print_errno_message): If GNULIB_STRERROR_R_POSIX is set,
24465         assume that strerror_r returns 'int', not 'char *'.
24467 2017-04-29  Bruno Haible  <bruno@clisp.org>
24469         stat: Fix time_t values and other problems on native Windows platforms.
24470         * doc/posix-functions/stat.texi: Mention the problem with the Microsoft
24471         implementations of stat().
24472         * lib/stat.c: Include filename.h instead of dosname.h. Include
24473         malloca.h, stat-w32.h.
24474         (is_unc_root): New function.
24475         (rpl_stat): New implementation for native Windows. Remove
24476         REPLACE_FUNC_STAT_DIR code.
24477         * m4/stat.m4 (gl_FUNC_STAT): On native Windows, set REPLACE_STAT always.
24478         Don't define REPLACE_FUNC_STAT_DIR.
24479         (gl_PREREQ_STAT): Require gl_HEADER_SYS_STAT_H.
24480         * modules/stat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
24481         (Depends-on): Remove dosname. Add filename, malloca.
24482         (configure.ac): Also compile lib/stat-w32.c.
24484 2017-04-29  Bruno Haible  <bruno@clisp.org>
24486         fstat: Fix time_t values on native Windows platforms.
24487         * doc/posix-functions/fstat.texi: Mention the problem with st_*time.
24488         * lib/stat-w32.h: New file.
24489         * lib/stat-w32.c: New file.
24490         * lib/fstat.c: Don't include msvc-inval.h. Include msvc-nothrow.h,
24491         stat-w32.h instead.
24492         (fstat_nothrow): Remove function.
24493         (rpl_fstat): Implement by means of _gl_fstat_by_handle.
24494         * m4/fstat.m4 (gl_FUNC_FSTAT): On native Windows, set REPLACE_FSTAT
24495         always.
24496         (gl_PREREQ_FSTAT): Require gl_HEADER_SYS_STAT_H.
24497         * modules/fstat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
24498         (Depends-on): Remove msvc-inval. Add pathmax, msvc-nothrow.
24499         (configure.ac): Also compile lib/stat-w32.c.
24501 2017-04-29  Paul Eggert  <eggert@cs.ucla.edu>
24503         getopt: port to Solaris 10 with circa-1997 glibc getopt.h
24504         Problem reported by Assaf Gordon and Gavin Smith in:
24505         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00157.html
24506         * lib/getopt-pfx-ext.h (_getopt_internal) [__GETOPT_PREFIX]:
24507         #define this, too.
24509 2017-04-29  Bruno Haible  <bruno@clisp.org>
24511         strerror_r-posix: Fixes for MSVC 14.
24512         * lib/strerror_r.c: Include <stdarg.h>.
24513         (strerror_r): Provide error messages for errno values 100...140.
24514         * doc/posix-functions/strerror_r.texi: Mention the MSVC 14 problem.
24516 2017-04-28  Bruno Haible  <bruno@clisp.org>
24518         noreturn: New module.
24519         * lib/noreturn.h: New file.
24520         * modules/noreturn: New file.
24521         * tests/test-noreturn.c: New file.
24522         * modules/noreturn-tests: New file.
24523         * tests/test-noreturn-c++.cc: New file.
24524         * modules/noreturn-c++-tests: New file.
24526 2017-04-27  Bruno Haible  <bruno@clisp.org>
24528         wctype-h: Fix compilation error with the original mingw.org mingw.
24529         * m4/wctype_h.m4 (gl_WCTYPE_H): Test for <crtdefs.h>. Set
24530         HAVE_CRTDEFS_H.
24531         * modules/wctype-h (Makefile.am): Substitute HAVE_CRTDEFS_H.
24532         * lib/wctype.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
24533         <stddef.h> instead.
24534         Reported and proposed by Eli Zaretskii <eliz@gnu.org>.
24536 2017-04-26  Pádraig Brady  <P@draigBrady.com>
24538         nap.h: Fix compilation on non windows platforms
24539         * tests/nap.h: Move misplaced endif.
24541 2017-04-26  Pádraig Brady  <P@draigBrady.com>
24542         and Paul Eggert  <eggert@cs.ucla.edu>
24544         time_rz: fix heap buffer overflow vulnerability
24545         Reported and analyzed at https://bugzilla.redhat.com/CVE-2017-7476
24546         * lib/time_rz.c (save_abbr): Rearrange the calculation determining
24547         whether there is enough buffer space available, thus avoiding
24548         the problematic promotion of signed to unsigned causing an invalid
24549         comparison when zone_copy is more than ABBR_SIZE_MIN bytes beyond
24550         the start of the buffer.
24551         * tests/test-parse-datetime.c (main): Add a test case written by
24552         Paul Eggert, which overwrites enough of the heap so that
24553         standard glibc will fail with "free(): invalid pointer"
24554         without the patch applied.
24556 2017-04-26  Paul Eggert  <eggert@cs.ucla.edu>
24558         xalloc: add missing integer overflow check
24559         * lib/xalloc.h (x2nrealloc): Also check for multiplication
24560         overflow when P is null.
24562 2017-04-25  Paul Eggert  <eggert@cs.ucla.edu>
24564         parse-datetime: make it standalone
24565         * lib/parse-datetime.y: Include <stdarg.h>, for va_start etc.
24566         (_GL_ATTRIBUTE_FORMAT): New macro.
24567         These are needed to get './gnulib-tool --test parse-datetime' to work.
24569 2017-04-23  Bruno Haible  <bruno@clisp.org>
24571         nap.h: Port to native Windows.
24572         * tests/nap.h (nap_get_stat): Renamed from get_stat. Remove argument fd;
24573         use nap_fd instead. On native Windows, close and reopen nap_fd.
24574         (nap_works): Don't compare the ctimes, because on native Windows, these
24575         are the creation times.
24576         (nap): Update.
24578 2017-04-23  Bruno Haible  <bruno@clisp.org>
24580         nap.h: Fix logic.
24581         * tests/nap.h (nap): Avoid signed integer overflow in loop.
24583 2017-04-23  Bruno Haible  <bruno@clisp.org>
24585         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
24586         * modules/strerror_r-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
24587         * lib/error.c: Test GNULIB_STRERROR_R_POSIX before testing
24588         HAVE_DECL_STRERROR_R, HAVE_STRERROR_R, or STRERROR_R_CHAR_P.
24589         * lib/argp-help.c (__argp_failure): Likewise.
24591 2017-04-23  Bruno Haible  <bruno@clisp.org>
24593         strerror_r-posix: Revert commits from 2016-10-16,2016-11-04,2016-11-14.
24594         * m4/strerror_r.m4: Revert changes since 2016-10-16.
24595         * lib/strerror_r.c: Likewise.
24597 2017-04-23  Paul Eggert  <eggert@cs.ucla.edu>
24599         Target a C99 subset, not a C89 subset
24600         For many years Gnulib has targeted C89 and has resisted using C99
24601         features, as some Gnulib-using programs still wanted to target
24602         C89.  As this no longer seems to be the case, relax the porting
24603         requirements to allow some C99 features.  This is merely a change
24604         to the documentation, to give other Gnulib developers a chance to
24605         weigh in on the topic.
24606         * doc/extern-inline.texi (extern inline):
24607         * doc/gnulib-readme.texi (Portability guidelines):
24608         * doc/gnulib-tool.texi (Initial import):
24609         * doc/gnulib.texi (Header files):
24610         Modernize to talk about C99 and C11 instead of C89 and C99.
24611         * doc/gnulib-readme.texi (Portability guidelines):
24612         Now a section, not merely a subsection, so that it
24613         can be split up.  Modernize a bit.
24614         (C language versions, C99 features assumed)
24615         (C99 features avoided):
24616         New sections.
24618 2017-04-23  Bruno Haible  <bruno@clisp.org>
24620         doc: New section "Modules that modify the way other modules work".
24621         * doc/gnulib.texi (Modules that modify the way other modules work): New
24622         section.
24624 2017-04-23  Bruno Haible  <bruno@clisp.org>
24626         stat-time: Update comments.
24627         * lib/stat-time.h: Fix reference regarding st_ctime on Windows.
24628         * tests/test-utimens-common.h: Add reference regarding st_ctime on
24629         Windows.
24631 2017-04-01  Bruno Haible  <bruno@clisp.org>
24633         glob: Fix more memory leaks.
24634         * lib/glob.c (glob): Free allocated memory before returning.
24635         Reported by Coverity via Tim Rühsen.
24637 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
24639         poll: improve fast check for out-of-range NFD
24640         * lib/poll.c: Do not include intprops.h.
24641         (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2.
24642         * modules/poll (Depends-on): Remove intprops.
24644         ftoastr: cite a newer paper
24645         * lib/ftoastr.c (FTOASTR): In comment, cite Andrysco et al. 2016
24646         instead of Loitsch 2010.
24648 2017-04-22  Bruno Haible  <bruno@clisp.org>
24650         poll: Enable argument check also in the Windows implementation.
24651         * lib/poll.c (poll) [WINDOWS_NATIVE]: Check value of nfd correctly.
24652         Reported by Paul Eggert.
24654 2017-04-22  Bruno Haible  <bruno@clisp.org>
24656         getlogin_r: Work around bug in Mac OS X 10.12.
24657         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test also against the Mac OS X
24658         bug.
24659         * lib/getlogin_r.c (getlogin_r): When getlogin_r returns a string of the
24660         given size minus 1, call getlogin_r a second time, on a larger buffer.
24661         * modules/getlogin_r (Depends-on): Add malloca.
24662         * doc/posix-functions/getlogin_r.texi: Mention the Mac OS X bug.
24664 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
24666         parse-datetime: fix %z and prefer signed int
24667         %z problem reported by Pádraig Brady in:
24668         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00103.html
24669         While fixing it, I decided to prefer signed ints to size_t, as
24670         they are less error-prone (e.g., ubsan catches overflow).
24671         * lib/parse-datetime.y (textint, parser_control, lookup_word, yylex)
24672         (parse_datetime2): Prefer ptrdiff_t to size_t for sizes and object
24673         counts, since signed integers make for better debugging.
24674         (date): Don’t assume %z works in printf formats.
24675         (debug_strfdatetime, debug_strfdate, debug_strftime): Use int for
24676         sizes of buffers known to be small, e.g., because we’re using snprintf.
24677         (parse_datetime2): Simplify call to debug_mktime_not_ok.
24679 2017-04-22  Bruno Haible  <bruno@clisp.org>
24681         *printf: Work around rounding bug on Mac OS X.
24682         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Test for Mac OS X 10.12 bug.
24683         * doc/posix-functions/*printf.texi: Mention the rounding bugs of
24684         Mac OS X and FreeBSD.
24685         * doc/glibc-functions/*printf.texi: Likewise.
24687 2017-04-22  Bruno Haible  <bruno@clisp.org>
24689         vasnprintf tests: Avoid warnings.
24690         * tests/test-vasnprintf-posix3.c (test_function, my_asnprintf,
24691         test_vasnprintf, test_asnprintf): Don't define if there's nothing to
24692         test.
24694 2017-04-22  Bruno Haible  <bruno@clisp.org>
24696         sys_file tests: Avoid warning.
24697         * tests/test-sys_file.c (main): Add a default clause to the switch
24698         statement.
24700 2017-04-22  Bruno Haible  <bruno@clisp.org>
24702         sethostname: Update doc.
24703         * doc/glibc-functions/sethostname.texi: Mention differing prototype on
24704         Mac OS X.
24706 2017-04-22  Bruno Haible  <bruno@clisp.org>
24708         quotearg tests: Avoid warnings.
24709         * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
24710         false.
24712 2017-04-22  Bruno Haible  <bruno@clisp.org>
24714         poll: Enable argument check.
24715         * lib/poll.c: Include intprops.h.
24716         (poll): Check value of nfd correctly.
24717         * modules/poll (Depends-on): Add intprops.
24719 2017-04-22  Bruno Haible  <bruno@clisp.org>
24721         get-rusage-data: Avoid warnings on Mac OS X.
24722         * lib/get-rusage-data.c: On Mac OS X, don't define
24723         get_rusage_data_via_setrlimit nor get_rusage_data_via_iterator.
24724         (get_rusage_data) [Mac OS X]: Just return 0.
24726 2017-04-22  Bruno Haible  <bruno@clisp.org>
24728         xbinary-io: Fix build error.
24729         * modules/xbinary-io (Depends-on): Add gettext-h.
24730         * lib/xbinary-io.c: Include gettext.h and define _().
24731         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
24732         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00089.html>.
24734 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
24736         parse-datetime: overflow and debug cleanups
24737         This long patch was triggered by this bug report from Ruediger Meier:
24738         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00028.html
24739         I fixed the bug he noted, then found some others nearby, and then
24740         still others.  Oh my goodness, there were a lot of bugs.  I cleaned
24741         up some of the code to follow GNU standards while I was at it.
24742         * lib/parse-datetime.y (ISDIGIT): Remove; all callers changed to
24743         use c_isdigit.
24744         (EPOCH_YEAR): Remove; unused.
24745         (TM_YEAR_BASE): Now an enum rather than a macro.
24746         (HOUR, debug_strfdatetime): Multiply hour by 3600, not 60, to get
24747         time zone offset, since timezones now are in terms of seconds and
24748         not minutes.
24749         (long_time_t): Remove.  All uses replaced by time_t or intmax_t as
24750         appropriate.  Verify that intmax_t is wide enough.
24751         (time_overflow, time_zone_str): New functions, used to deal
24752         more reliably with overflow.
24753         (dbg_printf): Add printf attribute, to help catch integer width errors.
24754         (textint, relative_time, parser_control, time_zone_hhmm, set_hhmmss)
24755         (%union, to_hour, yylex, parse_datetime2):
24756         Use intmax_t instead of long int and/or long_time_t.
24757         All uses changed.
24758         (DBGBUFSIZE): Move earlier.
24759         (relative_time, set_hhmmss, parser_control):
24760         Just use int for nanoseconds and for time zones; that’s wide enough.
24761         (parser_control): Use bool for members like year_seen that can
24762         be booleans instead of counters.  All uses changed.
24763         Remove debug_default_input_timezone; no longer needed.
24764         All uses removed.
24765         (apply_relative_time): Return a bool overflow flag.
24766         All uses changed to check for overflow.
24767         (apply_relative_time, zone, date, relunit, relunit_snumber)
24768         (signed_seconds, unsigned_seconds, yylex, parse_datetime2):
24769         Check for integer overflow portably.
24770         (str_days): Use just int for N, as it’s wide enough.
24771         Prefer 2D char arrays to arrays of char * when it looks like
24772         2D is a win on typical platforms.
24773         Prefer snprintf to strncpy/strncat, for simplicity;
24774         all buffers are smaller than INT_MAX so this is safe.
24775         (TIME_ZONE_BUFSiZE, TM_YEAR_BUFSIZE): New constants.
24776         (debug_print_current_time): Don’t assume tv_nsec is of type long,
24777         as this is not true on x32.  Output "." before any nanoseconds.
24778         (debug_print_current_time, parse_datetime2):
24779         Output local zones using a more-consistent format.
24780         (debug_print_current_time, date, parse_datetime2):
24781         (main) [TEST]:
24782         Don’t assume time_t is the same width as long.
24783         (print_rel_part): New function, replacing ...
24784         (PRINT_REL_PART): ... this macro, which was removed.  All uses changed.
24785         (debug_print_relative_time): Use bool for boolean.
24786         (local_zone): dsts_seen now counts only tDST instances.
24787         (date): Fix printf of size_t to use %z.  Do not assume numeric
24788         tokens have negative values merely because the context suggests
24789         a syntax with "-" separating tokens.
24790         (time_zone_hhmm): Return bool success indicator, which checks for
24791         overflow.  Store result into PC->time_zone instead.  All callers
24792         changed.
24793         (tm_year_str): New function.  Return a bool success indicator and
24794         store the result into a buffer.  All callers changed.  Output the
24795         numerically correct string even if adding 1900 to the year would
24796         overflow.
24797         (to_tm_year): New function, replacing the old to_year.  All
24798         callers changed.
24799         (tm_diff): Sync with glibc.
24800         (lookup_word): Use to_uchar instead of doing it by hand.
24801         (TZBUFSIZE): Now local to the only function that needs it.
24802         (debug_strfdatetime): Simplify now that time zones are int seconds.
24803         (debug_strfdate): Work even if tm_year + 1900 would overflow.
24804         (get_effective_timezone): Remove.  All uses removed.
24805         (parse_datetime2): Use fprintf in pieces instead of snprintfing
24806         to a fixed-size buffer.  Don’t assume that gmtime succeeds iff
24807         localtime succeeds.  Use tm_gmtoff if available.  Simplify how
24808         ‘goto fail;’ works in conjunction with the ‘ok’ flag.
24809         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don’t define
24810         TIME_T_FITS_IN_LONG_INT, as it is no longer needed.
24811         * modules/parse-datetime (Depends-on): Add inttypes.
24813 2017-04-21  Bruno Haible  <bruno@clisp.org>
24815         gettext-h: Avoid -Wundef warning.
24816         * lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
24817         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
24818         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00022.html>.
24820 2017-04-05  Tim Rühsen  <tim.ruehsen@gmx.de>
24822         error: Avoid "function declaration isn't a prototype" warning.
24823         * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.
24825 2017-04-21  Bruno Haible  <bruno@clisp.org>
24827         vasnprintf: Fix for MSVC 14.
24828         * lib/vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
24829         Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
24830         of !HAVE_SNPRINTF_RETVAL_C99.
24832 2017-04-21  Bruno Haible  <bruno@clisp.org>
24834         mbrtowc tests: Fix test failures on MSVC 14.
24835         * tests/test-mbrtowc-w32.c (test_one_locale): Accept MSVC's conversion
24836         behaviour for invalid input.
24838 2017-04-21  Bruno Haible  <bruno@clisp.org>
24840         mbsinit: Fix for MSVC 14.
24841         * lib/mbsinit.c (mbsinit): If GNULIB_defined_mbstate_t, provide an
24842         implementation that is in sync with mbrtowc.c. On other platforms, use
24843         an adequate ad-hoc implementation.
24845 2017-04-21  Bruno Haible  <bruno@clisp.org>
24847         Fix test-mbrtowc5.sh failure on native Windows.
24848         * lib/setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
24849         "C".
24851 2017-04-21  Bruno Haible  <bruno@clisp.org>
24853         Avoid accidental use of native Windows APIs on Cygwin.
24854         * lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
24855         * lib/localcharset.c (WINDOWS_NATIVE): Likewise.
24856         * lib/localename.c (WINDOWS_NATIVE): Likewise.
24858 2017-04-20  Bruno Haible  <bruno@clisp.org>
24860         Remove red warnings from the generated MODULES.html.
24861         * modules/fcntl (Description): Disambiguate function references.
24862         * modules/getcwd-lgpl (Description): Likewise.
24863         * modules/hostent (Description): Likewise.
24864         * modules/servent (Description): Likewise.
24865         * modules/tempname (Description): Likewise.
24867 2017-04-20  Bruno Haible  <bruno@clisp.org>
24869         verify tests: Fix spurious failure with parallel make.
24870         * gnulib-tool (func_emit_tests_Makefile_am): Emit initialization of
24871         EXTRA_PROGRAMS.
24872         * tests/test-verify.sh: Build test-verify-try.o, not test-verify.o.
24873         * tests/test-verify-try.c: New file.
24874         * modules/verify-tests (Files): Add it.
24875         (EXTRA_PROGRAMS): Add test-verify-try.
24876         (MOSTLYCLEANFILES): Update accordingly.
24877         Reported by Adam James Stewart <ajstewart@anl.gov>.
24879 2017-04-18  Bruno Haible  <bruno@clisp.org>
24881         vma-iter: Fix compilation error on Solaris 7.
24882         * lib/vma-iter.c (vma_iterate): Treat missing MAP_ANONYMOUS on Solaris
24883         like on IRIX, OSF/1.
24884         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24886 2017-04-18  Bruno Haible  <bruno@clisp.org>
24888         vma-iter: Fix conflict with module 'largefile' on 32-bit Solaris 9.
24889         * modules/vma-iter (configure.ac): Test whether <sys/procfs.h> can be
24890         included.
24891         * lib/vma-iter.c: On Solaris, test HAVE_SYS_PROCFS_H before including
24892         <sys/procfs.h>.
24893         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't define on Solaris when
24894         <sys/procfs.h> cannot be included.
24895         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24897 2017-04-18  Bruno Haible  <bruno@clisp.org>
24899         getopt-gnu: Add comments.
24900         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
24901         * modules/getopt-gnu (configure.ac): Likewise.
24903 2017-04-16  Paul Eggert  <eggert@cs.ucla.edu>
24905         regex: port better to Solaris 10
24906         Solaris 10 <locale.h> includes <libintl.h>, which #defines
24907         gettext, and this causes a double #define.
24908         Problem reported by Gavin Smith in:
24909         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00056.html
24910         * lib/regex_internal.h (gettext): #undef before #defining.
24912 2017-04-15  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
24914         intprops: improve comments
24915         * lib/intprops.h: Improve and shorten commentary.
24916         For the record, if we ever run into a pedantic compiler that
24917         behaves differently from GCC when converting an out-of-range value
24918         to a signed integer, we can work around the problem with something
24919         like the following code, where UCT is the signed counterpart of T
24920         (UCT is sometimes narrower than UT) and all callers are changed
24921         accordingly:
24922         #if __SUNPRO_C <= 0x5120
24923         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
24924            ((t) ((ut) (a) op (ut) (b)))
24925         #else
24926         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
24927            (TYPE_MINIMUM (t) <= (uct) ((ut) (a) op (ut) (b)) \
24928             ? ((t) (uct) (((ut) (a) op (ut) (b)) - TYPE_MINIMUM (t)) \
24929                + TYPE_MINIMUM (t)) \
24930             : (t) (uct) ((ut) (a) op (ut) (b)))
24931         #endif
24933 2017-04-14  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
24935         intprops: try to avoid tickling similar bugs
24936         * lib/intprops.h (_GL_INT_OP_CALC): Document that UT no longer
24937         needs to be the same width as T; it can be wider.
24938         Change callers so that UT is at least as wide as unsigned int,
24939         as I suspect that this is less likely to run into compiler bugs.
24941         intprops: port to Oracle Studio 12.3 x86
24942         Problem reported by Gavin Smith in:
24943         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00049.html
24944         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
24945         Convert unsigned to signed via the usual rather than the standard way,
24946         to avoid a compiler bug in Oracle Studio 12.3 x86.
24948 2017-04-08  Paul Eggert  <eggert@cs.ucla.edu>
24950         getopt: prefer - to _ in new file names
24951         * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
24952         * lib/getopt-core.h: Rename from lib/getopt_core.h.
24953         * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
24954         * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
24955         * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
24956         All uses changed.
24958         getopt: port recent getopt changes to macOS
24959         Problem reported by Harald Maier (Bug#26398).
24960         The macOS C compiler uses __nonnull for its own purposes and that
24961         clashes with glibc's __nonnull.
24962         * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet.
24963         * lib/getopt_cdefs.in.h (__nonnull): Remove.
24964         * lib/getopt_core.h (getopt):
24965         * lib/getopt_ext.h (getopt_long, getopt_long_only):
24966         Use _GL_ARG_NONNULL, not __nonnull.
24967         * lib/unistd.in.h: Move snippet hooks to before where the getopt
24968         .h files are included, so that _GL_ARG_NONNULL is defined in time.
24969         * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull.
24970         (getopt.h): Interpolate _GL_ARG_NONNULL snippet.
24972 2017-04-06  Paul Eggert  <eggert@cs.ucla.edu>
24974         getopt-gnu: omit some duplicate code
24975         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Don’t require
24976         gl_FUNC_GETOPT_POSIX, as the configure.ac code generated by
24977         gnulib-tool already does this.
24978         * modules/getopt-gnu (configure.ac): Omit code duplicated from
24979         getopt-posix, which we depend on.
24981         getopt-posix: use angle-bracket include
24982         * lib/getopt1.c: Include <config.h>, not "config.h".
24984 2017-04-06  Zack Weinberg  <zackw@panix.com>
24986         getopt: annotate files with relationship to glibc
24988         As the final act in this patchset, adjust the message at the top of
24989         each file to indicate which files are synced with glibc.  (This has
24990         already been done for most of the headers.)
24992         * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h:
24993         Mention in top-of-file boilerplate that these files are shared
24994         between glibc and gnulib.
24997         getopt: split up getopt.in.h and eliminate __need_getopt
24999         Over in glibc, all of the __need macros are being phased out in favor
25000         of small headers that declare only the necessary components, as this
25001         is much simpler and less prone to bugs.  As getopt is shared with
25002         glibc, gnulib needs to do the same for __need_getopt.
25004         __need_getopt is misnamed; what it really means is "we want only the
25005         getopt features specified in POSIX, not the GNU extensions".  glibc
25006         placed the "meat" of getopt.h into getopt_core.h and getopt_ext.h;
25007         these files can be shared verbatim with gnulib.  The portability
25008         wrapper, on the other hand, they have renounced altogether; glibc's
25009         getopt.h will no longer be shared with gnulib at all.  In exchange,
25010         certain glibc-specific quirks (having to do with __posix_getopt) no
25011         longer need appear in gnulib's headers at all.
25013         This patch merges getopt_core.h and getopt_ext.h from glibc, and
25014         splits up the current gnulib-side portability wrapper into three
25015         additional headers: getopt_pfx_core.h and getopt_pfx_ext.h handle
25016         __GETOPT_PREFIX for their respective headers, getopt_cdefs.in.h
25017         handles things like __BEGIN_DECLS and __THROW, and getopt.in.h and
25018         unistd.in.h just use them.  All new files are clearly marked with
25019         whether they are shared with glibc.
25021         * lib/getopt.in.h: Eliminate __need_getopt.  Break up into ...
25022         * lib/getopt_core.h, lib/getopt_ext.h: ... these new files shared
25023         with glibc, and ...
25024         * lib/getopt_cdefs.in.h, lib/getopt_pfx_core.h
25025         * lib/getopt_pfx_ext.h: ... these new files not shared with glibc.
25026         * lib/unistd.in.h: Include getopt_cdefs.h and getopt_pfx_core.h,
25027         instead of defining __need_getopt and including the full getopt.h.
25029         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): Check for sys/cdefs.h.
25030         Define substitution variables GETOPT_CDEFS_H and HAVE_SYS_CDEFS_H.
25031         * modules/getopt-posix (Files): Add new headers and sort list.
25032         (Depends-on): No longer need snippet/arg-nonnull.
25033         (Makefile.am): Generate getopt_cdefs.h.
25036         getopt: better handling of ambiguous options
25038         glibc's getopt uses alloca to construct a linked list of possibilities
25039         for an "ambiguous" long option.  In gnulib, malloc should be used
25040         instead.  Providing for both cases complicates things a fair bit.
25042         This patch rewrites ambiguous-option handling to use a boolean vector
25043         instead of a linked list.  There is then only one allocation that
25044         might need freeing; in glibc it can honor __libc_use_alloca as usual,
25045         and in gnulib we define __libc_use_alloca to always be false, so we
25046         don't need ifdefs in the middle of the function.  This should also be
25047         slightly more efficient in the normal case of long options being fully
25048         spelled out -- I think most people aren't even aware they _can_
25049         sometimes abbreviate long options.
25051         One interesting consequence is that the list of possibilities is now
25052         printed in exactly the order they appear in the list of long options,
25053         instead of the first possibility being shuffled to the end.
25055         (The patch looks bigger than it really is because there's a fair bit
25056         of reindentation and code rearrangement.)
25058         * lib/getopt.c: When used standalone, define __libc_use_alloca
25059         as always false and alloca to abort if called.
25060         (process_long_option): Rewrite handling of ambiguous long options
25061         to use a single boolean vector, not a linked list; use
25062         __libc_use_alloca to decide whether to allocate this using alloca.
25065         getopt: refactor long-option handling
25067         There were two copies of the bulk of the code to handle long options.
25068         Now there is only one.
25070         This change temporarily removes the logic to avoid using alloca when
25071         standalone; the next patch in the series will restore it.
25073         * lib/getopt.c (process_long_option): New function split out
25074         from _getopt_internal_r.
25075         (_getopt_internal_r): Replace both copies of the long-option
25076         processing code with calls to process_long_option.
25079         getopt: tidy up _getopt_initialize a bit
25081         _getopt_data.__posixly_correct is completely redundant to
25082         _getopt_data.__ordering, and some work that logically belongs in
25083         _getopt_initialize was being done by _getopt_internal_r, making the
25084         code harder to understand.
25086         As a side effect, getenv will no longer be called if the first
25087         character of the options string is '+' or '-', which is probably a
25088         Good Thing.  (Perhaps we should have a flag character that
25089         specifically asks for the permutation behavior?)
25091         * lib/getopt_int.h (_getopt_data): Remove __posixly_correct field.
25092         * lib/getopt.c (_getopt_internal_r): Move some initialization code...
25093         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
25096         getopt: merge from glibc: repetition reduction
25098         The definitions of the entry point functions 'getopt' and
25099         '__posix_getopt' can be made substantially less repetitive with a
25100         helper macro.
25102         While I was merging the const-correctness changes from gnulib into
25103         glibc I noticed there are still some unnecessary casts in
25104         _getopt_internal_r.
25106         * lib/getopt.c (getopt, __posix_getopt): Eliminate repetition with
25107         a macro.  Consistently cast 'argv' to 'char **' when calling
25108         _getopt_internal.
25109         (_getopt_internal_r): Remove unnecessary casts when calling exchange.
25112         getopt: clean up error reporting
25114         getopt can print a whole bunch of error messages, and when used
25115         standalone (from gnulib) it uses fprintf to do that.  But fprintf is a
25116         cancellation point and getopt isn't, and also applying fprintf to a
25117         stream in wide-character mode is not allowed.  So every single error
25118         reporting case has an #ifdef _LIBC block in which it calls internal
25119         libc functions instead.  The counterpart patch series in glibc makes
25120         it possible to simplify all of that down to a set of #defines at the
25121         top of the file; core code is written as if it is safe to just call
25122         fprintf, flockfile, and funlockfile.  (One caveat: it's *not* safe to
25123         call any *other* stdio functions.)
25125         * lib/getopt.c: When _LIBC is defined, define fprintf to
25126         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
25127         to _IO_funlockfile.  When neither _LIBC nor
25128         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
25129         funlockfile as no-ops.
25130         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks; the
25131         standalone error-printing code can now be used for libc as well.
25132         Add an flockfile/funlockfile pair around one case where the error
25133         message is printed in several chunks.  Don't use fputc.
25136         getopt: fix fencepost error in ambiguous-W-option handling
25138         getopt_long contains an undocumented (AFAICT) feature in which, if you
25139         put "W;" in the short-options list, then '-W foo' and '-Wfoo' are
25140         treated as equivalent to '--foo'.  This is implemented with a partial
25141         second copy of the code for handling long options, and that code
25142         increments optind one too many times when recovering from an ambiguous
25143         abbreviated option, which can cause the main loop to walk past the end
25144         of argv and crash.
25146         I discovered this while writing a test case that tries to exercise all
25147         of getopt's error reporting paths; I wouldn't be surprised to learn
25148         that this feature is never used by real applications.
25150         * lib/getopt.c (_getopt_internal_r): Don't increment
25151         d->optind a second time when reporting ambiguous -W options.
25154         getopt: clean up getopt.c and getopt1.c file headers
25156         In getopt.c, there is no need to include wchar.h at all, and it is
25157         safe nowadays to assume that stdlib.h does declare getenv (several
25158         other gnulib modules make this assumption).
25160         In getopt1.c, the #ifdef _LIBC block at the top can be simplified
25161         by using "" inclusions consistently, and there is no actual need to
25162         include stdlib.h (except in the #ifdef TEST block, where it should be
25163         unconditional), nor to provide a backup definition of NULL at all.
25165         * lib/getopt1.c: Simplify #ifdeffage at top of file.
25166         Move inclusion of stdlib.h to #ifdef TEST block and make
25167         unconditional.  Do not define NULL.
25168         * lib/getopt.c: Don't include wchar.h. No need to declare getenv.
25169         * m4/getopt.m4 (gl_PREREQ_GETENV): Delete.
25170         * modules/getopt-gnu, modules/getopt-posix: Don't call
25171         gl_PREREQ_GETENV.
25174         getopt: harmonize comments with glibc
25176         The comments explaining how the behavior of 'getopt' varies depending
25177         on whether it's the standalone version and whether there are special
25178         characters at the beginning of the options string were inconsistent
25179         between gnulib and glibc, and also out of sync with the code.
25181         * lib/getopt.c, lib/getopt_int.h: Harmonize comments with glibc.
25184         getopt: remove USE_NONOPTION_FLAGS
25186         getopt includes code to parse an environment variable named
25187         _XXX_GNU_nonoption_argv_flags_ (where XXX is the current process's PID
25188         in decimal); but all of it has been #ifdefed out since 2001, with no
25189         official way to turn it back on.
25191         According to commentary in glibc's config.h.in, bash version 2.0
25192         set this environment variable to indicate argv elements that were
25193         the result of glob expansion and therefore should not be treated
25194         as options, but the feature was "disabled later" because "it
25195         caused problems".  According to bash's CHANGES file, "later" was
25196         release 2.01; it gives no more detail about what the problems
25197         were.
25199         Version 2.0 of bash was released on the last day of 1996, and version
25200         2.01 in June of 1997.  Twenty years later, I think it is safe to
25201         assume that this environment variable isn't coming back.
25203         * lib/getopt_int.h: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
25204         * lib/getopt.c: Likewise. Also remove SWAP_FLAGS and the
25205         __libc_argc and __libc_argv externs, which were only used by
25206         #ifdef USE_NONOPTION_FLAGS blocks.
25209         getopt: tabify, in preparation for merge with glibc
25211         glibc sticks to the GNU default of indenting with a mix of
25212         8-column tabs and spaces; make the gnulib copy match.
25214         getopt.h is not included because it is *not* going to be merged in its
25215         present form.
25217         * getopt.c, getopt1.c, getopt_int.h: Tabify.
25219 2017-04-02  Bruno Haible  <bruno@clisp.org>
25221         relocatable-lib-lgpl: Fix link error (regression from 2011-06-16).
25222         * modules/relocatable-lib-lgpl (configure.ac): Add AC_LIBOBJ invocation,
25223         like it was done in modules/relocatable-lib on 2011-05-21 and in
25224         modules/relocatable-prog on 2011-08-15.
25225         Reported by Reuben Thomas <rrt@sc3d.org>.
25227 2017-03-31  Bruno Haible  <bruno@clisp.org>
25229         glob: Fix invalid free() call.
25230         * lib/glob.c (glob): Reset malloc_home_dir when assigning a pointer to
25231         static storage to home_dir.
25232         Reported by Coverity via Tim Rühsen.
25234 2017-03-31  Bruno Haible  <bruno@clisp.org>
25236         glob: Fix memory leaks.
25237         * lib/glob.c (glob): Free allocated memory before returning.
25238         Reported by Coverity via Tim Rühsen.
25240 2017-03-31  Bruno Haible  <bruno@clisp.org>
25242         md5, sha1, sha256, sha512: Add comments regarding correctness.
25243         * lib/md5.h (buflen): Add comments regarding range.
25244         * lib/sha1.h (buflen): Likewise.
25245         * lib/sha256.h (buflen): Likewise.
25246         * lib/sha512.h (buflen): Likewise.
25247         * lib/md5.c (md5_process_bytes): Add comment why memmove is not needed.
25248         * lib/sha1.c (sha1_process_bytes): Likewise.
25249         * lib/sha256.c (sha256_process_bytes): Likewise.
25250         * lib/sha512.c (sha512_process_bytes): Likewise.
25251         Reported by Coverity via Tim Rühsen.
25253 2017-03-22  Paul Eggert  <eggert@cs.ucla.edu>
25255         getopt: merge from glibc
25256         This does not change anything substantial; it merely simplifies
25257         hypothetical merges back to glibc.
25258         * lib/getopt.c, lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h:
25259         Change copyright notice to match what is in glibc.
25260         * lib/getopt.c: Reorder includes to match glibc.  Remove uses of
25261         USE_IN_LIBIO.  Remove 'register'.  In __LIBC code, use
25262         __open_memstream rather than open_memstream and __glibc_likely
25263         instead of __builtin_expect.
25264         * lib/getopt.in.h (__posix_getopt) [!__GETOPT_PREFIX]: New decl.
25266 2017-03-21  Paul Eggert  <eggert@cs.ucla.edu>
25268         dfa: make [0-9] faster in non-C locales
25269         Problem reported by John P. Linderman (Bug#26193).
25270         * lib/dfa.c (parse_bracket_exp): Remove redundant assignment.
25271         If both ends of the range are ASCII digits, do not worry about
25272         multi-character collating sequences and the like.  Be consistent
25273         about using isalpha as a precondition for setbit_case_fold_c.
25275 2017-03-19  Bruno Haible  <bruno@clisp.org>
25277         lock: Fix compilation error with HP-UX IA64 cc.
25278         * lib/glthread/lock.h (pthread_rwlockattr_setkind_np): Don't declare
25279         weak on non-glibc platforms.
25281 2017-03-19  Paul Eggert  <eggert@cs.ucla.edu>
25283         stdalign: tweak version# and test for HP-UX IA64
25284         Problems reported by Bruno Haible in:
25285         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00078.html
25286         * lib/stdalign.in.h (_Alignas):
25287         * m4/stdalign.m4 (gl_STDALIGN_H):
25288         Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
25289         used octal (as that is how they document it), but it is decimal in
25290         practice now and the ancient implementations no longer matter.
25291         * tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.
25293 2017-03-19  Bruno Haible  <bruno@clisp.org>
25295         vma-iter: Add support for Solaris.
25296         * lib/vma-iter.c (vma_iterate): On Solaris, use the /proc filesystem
25297         approach.
25298         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on Solaris.
25299         * lib/get-rusage-as.c: Update comment about Solaris.
25300         * lib/get-rusage-data.c: Likewise.
25302 2017-03-19  Bruno Haible  <bruno@clisp.org>
25304         vma-iter: Prefer HP-UX specific API on HP-UX.
25305         * lib/vma-iter.c (vma_iterate): Move HP-UX specific implementation up.
25306         * lib/vma-iter.h: Update.
25307         Just in case HP-UX ever implements mquery().
25309 2017-03-18  Paul Eggert  <eggert@cs.ucla.edu>
25311         stdalign: restore previous behavior for HP-UX IA64
25312         See Bruno Haible's email in:
25313         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
25314         which cites p 150 of a manual saying that 'aligned' works on Itanium.
25315         * lib/stdalign.in.h (_Alignas):
25316         Assume the '061200' applies to Itanium, not to PA-RISC.
25317         * m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.
25319 2017-03-17  Bruno Haible  <bruno@clisp.org>
25321         stat-time, timespec: Support use of the header files in C++ mode.
25322         * lib/stat-time.h: Add "C" linkage declaration.
25323         * lib/timespec.h: Likewise.
25325 2017-03-17  Bruno Haible  <bruno@clisp.org>
25327         stdalign: Make it work with HP-UX cc.
25328         * lib/stdalign.in.h (_Alignas): Don't define for HP-UX cc.
25329         * m4/stdalign.m4 (gl_STDALIGN_H): No need to enable the extra test
25330         for HP-UX cc.
25332 2017-03-17  Paul Eggert  <eggert@cs.ucla.edu>
25334         flexmember: try to detect HP-UX 11.31 cc bug
25335         Problem reported by Bruno Haible in:
25336         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
25337         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
25338         Attempt to detect bug in HP-UX 11.31 cc.
25340 2017-03-16  Bruno Haible  <bruno@clisp.org>
25342         stdint: Fix test compilation failure with HP-UX 11 cc.
25343         * lib/stdint.in.h (_STDINT_MIN): Remove macro.
25344         (_STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN): New macros.
25345         (PTRDIFF_MIN, SIG_ATOMIC_MIN, WCHAR_MIN, WINT_MIN): Define using
25346         _STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN.
25348 2017-03-14  Bruno Haible  <bruno@clisp.org>
25350         gnulib-tool: Don't produce a tests directory with only snippet .h files.
25351         * gnulib-tool (func_modules_transitive_closure_separately): If
25352         testsrelated_modules ends up with no "real" modules, aside from
25353         modules with applicability 'all', set it to empty.
25355 2017-03-14  Bruno Haible  <bruno@clisp.org>
25357         vma-iter: Add support for HP-UX.
25358         * modules/vma-iter (configure.ac): Check for 'pstat_getprocvm'.
25359         * lib/vma-iter.c (vma_iterate): On HP-UX, use pstat_getprocvm().
25360         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on HP-UX.
25361         * lib/get-rusage-as.c: Update comment about HP-UX.
25362         * lib/get-rusage-data.c: Likewise.
25363         (get_rusage_data): Use get_rusage_data_via_setrlimit.
25365 2017-03-14  Bruno Haible  <bruno@clisp.org>
25367         limits-h: Make it work with HP-UX cc.
25368         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
25369         defined.
25371 2017-03-14  Bruno Haible  <bruno@clisp.org>
25373         Fix test failures on DragonFlyBSD.
25374         * tests/test-localeconv.c (main): Treat DragonFlyBSD like FreeBSD.
25375         * tests/test-select.h (test_bad_fd): Likewise.
25376         * tests/test-get-rusage-data.c (main): Treat DragonFlyBSD like OpenBSD.
25378 2017-03-14  Bruno Haible  <bruno@clisp.org>
25380         freadahead: Silence warning on DragonFlyBSD.
25381         * lib/freadahead.c (__sreadahead): Declare ourselves.
25383 2017-03-14  Bruno Haible  <bruno@clisp.org>
25385         vma-iter: Add comment about AIX.
25386         * lib/vma-iter.c: Add comment about why this module is not implemented
25387         on AIX.
25389 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
25391         snippets: move unadjusted snippet sources to lib
25392         Problem reported by Michal Privoznik in:
25393         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00039.html
25394         * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
25395         * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
25396         * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
25397         * lib/unused-parameter.h: Rename from
25398         build-aux/snippet/unused-parameter.h.
25399         * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
25400         * modules/snippet/_Noreturn (Files:, _NORETURN_H):
25401         * modules/snippet/arg-nonnull (Files:, ARG_NONNULL_H):
25402         * modules/snippet/c++defs (Files:, CXXDEFS_H):
25403         * modules/snippet/unused-parameter (Files:, UNUSED_PARAMETER_H):
25404         * modules/snippet/warn-on-use (Files: WARN_ON_USE_H):
25405         Adjust to file renamings.
25407 2017-03-14  Mathieu Lirzin  <mthl@gnu.org>
25409         gnulib-tool: don't automatically distribute files from top/
25410         * gnulib-tool (func_get_automake_snippet_unconditional): To be able to
25411         not distribute top/README-release by default, don't distribute files
25412         from top/ unconditionally.
25413         * modules/gnumakefile (Makefile.am): Distribute top/GNUmakefile.
25414         * modules/maintainer-makefile (Makefile.am): Distribute top/maint.mk.
25416 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
25418         gnulib-tool: fix typo in comment output
25419         * gnulib-tool (func_import): Fix typo with previous change.
25421         snippets: work around GNU Make 3.82 VPATH
25422         When using 'gnulib-tool --gnu-make' on Emacs, and building
25423         the resulting tarball on Solaris 10 which bundles GNU Make 3.82,
25424         an out-of-source (VPATH) build failed because the sans-copyright
25425         snippet file was not built before the file that used it.
25426         Presumably this is some sort of VPATH thing.  Work around the
25427         problem by using the original snippet, i.e., don’t bother to
25428         remove its copyright notice.
25429         * modules/snippet/_Noreturn, modules/snippet/link-warning:
25430         Don’t assume Automake in comments.  Omit long-incorrect comment.
25431         * modules/snippet/arg-nonnull (BUILT_SOURCES, arg-nonnull.h)
25432         (MOSTLYCLEANFILES):
25433         * modules/snippet/c++defs (BUILT_SOURCES, c++defs.h)
25434         (MOSTLYCLEANFILES):
25435         * modules/snippet/unused-parameter (BUILT_SOURCES, unused-parameter.h)
25436         (MOSTLYCLEANFILES):
25437         * modules/snippet/warn-on-use (BUILT_SOURCES, warn-on-use.h)
25438         (MOSTLYCLEANFILES):
25439         Remove.
25440         * modules/snippet/arg-nonnull (ARG_NONNULL_H):
25441         * modules/snippet/c++defs (CXXDEFS_H):
25442         * modules/snippet/unused-parameter (UNUSED_PARAMETER_H):
25443         * modules/snippet/warn-on-use (WARN_ON_USE_H):
25444         Don’t bother to remove the copyright notice; just use the
25445         original snippet as-is.
25447 2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
25449         gnulib-tool: minor --gnu-make fixups
25450         * gnulib-tool (func_emit_lib_Makefile_am):
25451         Remove useless code that was a blind alley during implementation.
25452         Problem reported by Thien-Thi Nguyen in:
25453         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00029.html
25454         (func_import): Note the "--gnu-make" option in the output comment.
25456 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
25458         gnulib-tool: new option --gnu-make
25459         This is for applications like GNU Emacs that use GNU Make
25460         features instead of Automake.
25461         * doc/gnulib-tool.texi (Initial import): Mention --gnu-make.
25462         * doc/gnulib.texi (Unit test modules, Build robot for gnulib):
25463         Do not assume Automake.
25464         * gnulib-tool (func_determine_path_separator)
25465         (func_modules_transitive_closure, func_update_file)
25466         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
25467         (func_import): Add support for --gnu-make.
25469 2017-03-11  Paul Eggert  <eggert@cs.ucla.edu>
25471         gnulib-common.m4: avoid aclocal.m4 bloat
25472         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB):
25473         Hide AM_PROG_AR from aclocal, so that aclocal does not
25474         install irrelevant macro definitions into aclocal.m4.
25476 2017-03-10  Bruno Haible  <bruno@clisp.org>
25478         vma-iter: Let callers know about error.
25479         * lib/vma-iter.h (vma_iterate): Return 'int', not 'void'.
25480         * lib/vma-iter.c (vma_iterate): Return -1 in case of error.
25482 2017-03-05  Bruno Haible  <bruno@clisp.org>
25484         Fix value of LD for 64-bit compilers on AIX.
25485         * m4/lib-ld.m4 (AC_LIB_PROG_LD): For 64-bit compilers on AIX
25486         ("gcc -maix64" and "xlc -q64"), add option -b64 to $LD.
25488 2017-03-04  Paul Eggert  <eggert@cs.ucla.edu>
25490         dtotimespec: simplify
25491         * lib/dtotimespec.c (dtotimespec): Simplify.
25493 2017-03-04  Bruno Haible  <bruno@clisp.org>
25495         test-calloc-gnu: Reenable test also for GCC 7.
25496         * tests/test-calloc-gnu.c (eight): New function.
25497         (main): Don't skip test; use eight() instead.
25499 2017-03-04  Jim Meyering  <meyering@fb.com>
25501         test-calloc-gnu: port to GCC7
25502         * tests/test-calloc-gnu.c (main) [__GNUC__ >= 7]: Skip a test
25503         that attempts to calloc more than SIZE_MAX bytes, because GCC7
25504         and newer would detect that at compilation time.
25506 2017-03-04  Bruno Haible  <bruno@clisp.org>
25508         tests: Avoid compiler warning about uses of null_ptr.
25509         * tests/null-ptr.h: New file.
25510         * tests/test-canonicalize.c: Include null-ptr.h.
25511         (null_ptr): Remove function.
25512         * tests/test-canonicalize-lgpl.c: Likewise.
25513         * tests/test-memmem.c: Likewise.
25514         * tests/test-ptsname_r.c: Likewise.
25515         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
25516         * modules/canonicalize-lgpl-tests: Likewise.
25517         * modules/memmem-tests: Likewise.
25518         * modules/ptsname_r-tests: Likewise.
25519         Reported by Jim Meyering.
25521 2017-03-03  Bruno Haible  <bruno@clisp.org>
25523         doc: Mention Mac OS X deficiencies regarding semaphores.
25524         * doc/posix-functions/sem_init.texi: Mention status on Mac OS X.
25525         * doc/posix-functions/sem_destroy.texi: Likewise.
25526         * doc/posix-functions/sem_getvalue.texi: Likewise.
25528 2017-03-03  Bruno Haible  <bruno@clisp.org>
25530         lock tests: Fix test failure on Mac OS X (regression from 2017-01-05).
25531         Reported by Assaf Gordon <assafgordon@gmail.com> via
25532         Pádraig Brady <P@draigBrady.com>.
25533         * tests/test-lock.c: On Mac OS X, use named semaphores, not unnamed
25534         semaphores.
25535         (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
25536         (atomic_int_semaphore): New macro.
25538 2017-02-28  Bruno Haible  <bruno@clisp.org>
25540         perror tests: Tweak for z/OS.
25541         Reported by Daniel Richard G. <skunk@iskunk.org>.
25542         * tests/test-perror.sh: Don't fail z/OS style perror output.
25544 2017-02-26  Bruno Haible  <bruno@clisp.org>
25546         nproc: Refactor large function.
25547         * lib/nproc.c (num_processors_ignoring_omp): New function, extracted
25548         from num_processors.
25549         (num_processors): In this function, only deal with OMP.
25551 2017-02-26  Pádraig Brady  <P@draigBrady.com>
25553         nproc: adjust handling of OpenMP environment variables
25554         to match the return value from omp_get_num_threads(), i.e.:
25555          - honor OMP_THREAD_LIMIT without OMP_NUM_THREADS
25556          - Treat 0 as an invalid value and ignore
25557         Also remove the call to omp_get_num_threads() because
25558         it's ineffective without the omp pragmas in place.
25559         * lib/nproc.c (parse_omp_threads): Return 0 if specified,
25560         so that it can be ignored.
25561         (num_processors): Honor OMP_THREAD_LIMIT even without
25562         OMP_NUM_THREADS being set.  Also fix a typo in the environment
25563         variable being checked, from the previous recent commit.
25565 2017-02-26  Pádraig Brady  <P@draigBrady.com>
25567         nproc: support nested OMP_NUM_THREADS, and OMP_THREAD_LIMIT
25568         * lib/nproc.c (parse_omp_threads): A new function refactored
25569         from num_processors() to support parsing both of the
25570         above environment variables.
25571         (num_processors): Prefer using omp_get_num_threads() with [_OPENMP]
25572         to accurately reflect the current OpenMP nesting level.
25573         Also support the OMP_THREAD_LIMIT environment variable
25574         to limit the max value determined from OMP_NUM_THREADS.
25575         * modules/nproc: Depend on minmax header.
25576         Suggested by Oliver Heimlich.
25578 2017-02-25  Bruno Haible  <bruno@clisp.org>
25580         maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
25581         * m4/gnulib-common.m4 (AC_PROG_SED): Fix AC_CACHE_CHECK invocation.
25583 2017-02-24  Paul Eggert  <eggert@cs.ucla.edu>
25585         ftoastr: port to -Wdouble-promotion
25586         Work around -Wdouble-promotion false alarm in recent GCCs.
25587         * lib/ftoastr.c (PROMOTED_FLOAT): New macro.
25588         (ftoastr_snprintf, FTOASTR): Use it.
25590 2017-02-21  Bruno Haible  <bruno@clisp.org>
25592         lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
25593         Reported by Rene Saavedra <rennes@openmailbox.org> in
25594         https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
25595         * lib/glthread/lock.h: On glibc systems without
25596         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
25597         implementation of rwlocks.
25598         * lib/glthread/lock.c: Likewise.
25600 2017-02-20  Bruno Haible  <bruno@clisp.org>
25602         lock tests: Fix build failure on z/OS.
25603         Reported by Daniel Richard G. <skunk@iskunk.org>.
25604         * modules/lock-tests (configure.ac): Test for <semaphore.h>.
25605         * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
25606         exist.
25608 2017-02-19  Bruno Haible  <bruno@clisp.org>
25610         havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
25611         This helps when CC=clang.
25612         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Prefer the search path
25613         of /usr/bin/gcc.
25615         havelib: Support overriding the result of AC_LIB_PREPARE_MULTILIB.
25616         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use AC_CACHE_CHECK.
25618 2017-02-19  Bruno Haible  <bruno@clisp.org>
25620         gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
25621         * gnulib_tool (func_create_testdir): Avoid havelib-tests when
25622         --with-tests --single-configure is specified.
25624 2017-02-16  Tim Rühsen  <tim.ruehsen@gmx.de>
25626         users.txt: Update links, use HTTPS where possible
25627         * users.txt: Updated to HTTPS where possible,
25628         fixed some links to new locations.
25630 2017-02-16  Bruno Haible  <bruno@clisp.org>
25632         xbinary-io: Fix inlining.
25633         * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
25635 2017-02-16  Paul Eggert  <eggert@cs.ucla.edu>
25637         xbinary-io: rename from xsetmode
25638         This patch is taken from suggestions by Bruno Haible in:
25639         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00060.html
25640         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00061.html
25641         * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL,
25642         not ENOTTY, when it is an inappropriate device.
25643         * lib/binary-io.h (SET_BINARY): Resurrect.
25644         * lib/xbinary-io.c: Rename from lib/xsetmode.c.
25645         (xset_binary_mode_error): Rename from xsetmode_error.
25646         * lib/xbinary-io.h: Rename from lib/xsetmode.h.
25647         (xset_binary_mode): Rename from xsetmode.
25648         All uses changed.
25649         * modules/xbinary-io: Rename from modules/xsetmode.
25650         Update file names.
25651         * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name.
25652         * NEWS: Update to match revised behavior.
25654 2017-02-15  Paul Eggert  <eggert@cs.ucla.edu>
25656         tests: Adjust to recent SET_BINARY change
25657         * tests/test-binary-io.c (main):
25658         * tests/test-binary-io.sh: Remove test for SET_BINARY.
25659         * tests/test-closein.c, tests/test-fflush2.c, tests/test-ftell.c:
25660         * tests/test-ftello.c, tests/test-nonblocking-pipe-child.c:
25661         * tests/test-yesno.c: Use set_binary_mode, not SET_BINARY.
25663         xsetmode: new module
25664         This is to fix a problem noted by Eric Blake.
25665         Code was using xfreopen to change files to binary mode, but this
25666         fails for stdout when in append mode.  Such code should use
25667         xsetmode instead.
25668         * NEWS: Document incompatible changes to binary-io module.
25669         * lib/binary-io.c (__gl_setmode_check) [__DJGPP__ || __EMX__]:
25670         New function.
25671         * lib/binary-io.h (__gl_setmode): Rename from set_binary_mode.
25672         (set_binary_mode): New function, which also checks for tty.
25673         * lib/xsetmode.c, lib/xsetmode.h, modules/xsetmode: New files.
25675 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
25677         headers: fix begin-end typos
25678         * lib/mbfile.h, lib/se-selinux.in.h: Fix typos by replacing
25679         _GL_INLINE_HEADER_BEGIN with _GL_INLINE_HEADER_END.
25681         selinux-h: port to PGI 16.10
25682         * lib/se-selinux.in.h: Don't assume that include_next skips over
25683         duplicate -I DIR options.
25685         argp: port to PGI 16.10
25686         * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
25688 2017-02-13  Darshit Shah  <darnir@gnu.org>
25690         unicase: Update function protoype to match definition.
25691         * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1
25692         uses 'size_t' as the datatype for the 'len' parameter in the functions
25693         it generates. Update the prototype specified here to match the newly
25694         generated function.
25696 2017-02-12  Bruno Haible  <bruno@clisp.org>
25698         times test: Avoid gcc warnings on Linux/x32.
25699         * tests/test-times.c (main): Really cast printf arguments from clock_t
25700         to 'long int'.
25702 2017-02-12  Paul Eggert  <eggert@cs.ucla.edu>
25704         glob: port better to emscripten
25705         Problem reported by Bruno Haible in:
25706         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00031.html
25707         * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
25709 2017-02-11  Bruno Haible  <bruno@clisp.org>
25711         host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
25712         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define also HOST_CPU.
25713         For the x32 ABI on x86_64, set HOST_CPU_C_ABI to 'x86_64-x32' and define
25714         both __x86_64__ and __x86_64_x32__. For the ELFv2 ABI on powerpc64,
25715         define both __powerpc64__ and __powerpc64_elfv2__. Recognize 64-bit
25716         compilation on AIX. Recognize 32-bit compilation on arm64/Linux.
25717         Distinguish hppa64 from hppa.
25719 2017-02-10  Bruno Haible  <bruno@clisp.org>
25721         search: Don't assume that tsearch() exists if 'VISIT' is defined.
25722         * m4/search_h.m4 (gl_SEARCH_H): Determine HAVE_TYPE_VISIT.
25723         * modules/search (Makefile.am): Substitute HAVE_TYPE_VISIT.
25724         * lib/search.in.h (VISIT): Define if HAVE_TYPE_VISIT is 0.
25726 2017-02-09  Bruno Haible  <bruno@clisp.org>
25728         doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro.
25729         * doc/gnulib.texi (Libtool and Windows): Recommend
25730         LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL.
25731         Reported by Reuben Thomas <rrt@sc3d.org>.
25733 2017-02-08  Paul Eggert  <eggert@cs.ucla.edu>
25735         stddef-tests: port to SIZE_MAX <= INT_MAX
25736         * tests/test-stddef.c: Include <limits.h>, for INT_MAX.
25737         Do not assume that INT_MAX < SIZE_MAX.
25739 2017-02-01  Bruno Haible  <bruno@clisp.org>
25741         lock tests: Fix link error.
25742         * modules/lock-tests (test_rwlock1_LDADD): Add @YIELD_LIB@.
25743         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25745 2017-01-31  Bruno Haible  <bruno@clisp.org>
25747         lock: Fix link error (regression from 2017-01-05).
25748         * lib/glthread/lock.h [USE_POSIX_THREADS_WEAK]: Declare also
25749         pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
25750         pthread_rwlockattr_destroy weak.
25751         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25753 2017-01-30  Paul Eggert  <eggert@cs.ucla.edu>
25755         Port to PGI 16.10 x86-64
25756         This patch fixes one real bug in gl_anylinked_list2.h, along with
25757         some minor glitches that are not bugs.  It does not silence PGI’s
25758         thousands of bogus warnings when compiling test-intprops.c.
25759         Fortunately, the warnings do not cause a failure.
25760         * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWER_N):
25761         Rename parameter to avoid PGI warning about ‘#define f(n) 'n'’.
25762         My goodness, PGI goes back a long ways - this predates C89!
25763         * lib/gl_anylinked_list2.h (ASYNCSAFE): Fix bug caught by PGI.
25764         For example, ASYNCSAFE (const void *) should expand to
25765         ‘const void *volatile’, not to ‘volatile const void *’.
25766         * lib/spawn.in.h (POSIX_SPAWN_USEVFORK): Don't define if already defined.
25767         * lib/verify.h (verify) [!__GNUC__]:
25768         Use shorter albeit meaningless string to bypass silly compiler limits.
25769         * tests/infinity.h (Infinityf, Infinityd, Infinityl) [__PGI]:
25770         * tests/nan.h (NaNf, NaNd, NaNl):
25771         Use static functions to avoid misguided compiler diagnostics.
25772         Is there some reason we don’t use static functions on all platforms?
25774 2017-01-20  Paul Eggert  <eggert@cs.ucla.edu>
25776         parse-datetime: handle timezones reentrantly
25777         This API change was prompted by a report by Pádraig Brady in:
25778         https://bug.debian.org/851934#10
25779         To help fix the bug, make parse_datetime2 more reentrant.
25780         * NEWS: Document this incompatible change.
25781         * lib/parse-datetime.h, lib/parse-datetime.y (parse_datetime2):
25782         Add two arguments, the timezone and the timezone name.
25783         All callers changed.  If TZ="..." is specified, use it for
25784         calculating defaults.
25785         * lib/parse-datetime.y: Don't include xalloc.h or use xmalloc, as
25786         this code should be usable in a library.
25787         (mktime_ok, get_effective_timezone):
25788         Accept timezone arg too.  All callers changed.
25789         (get_tz): Remove.
25790         (get_effective_timezone): Check for failures.
25792 2017-01-20  Eric Blake  <eblake@redhat.com>
25794         localename: port to cygwin 2.6
25795         * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
25796         Cygwin.
25797         * modules/localename (Depends-on): Add extensions, since
25798         NL_LOCALE_NAME() is not visible without it.
25800 2017-01-17  Pádraig Brady  <P@draigBrady.com>
25802         parse-datetime: fix dependence on AC_PROG_SED
25803         * modules/parse-datetime: Use `sed` directly like all other modules.
25804         Reported by J William Piggott
25806 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
25808         intprops: update doc URLs
25809         * doc/intprops.texi (Integer Range Overflow): Update URLs.
25811 2017-01-16  Bruno Haible  <bruno@clisp.org>
25813         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
25814         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
25815         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
25816         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
25817         distinguish s390 and s390x.
25818         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
25819         * NEWS: Mention the change regarding 'armel'.
25821 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
25823         localeinfo: case_folded_counterparts and WEOF
25824         * NEWS: Document this.
25825         * lib/localeinfo.c (case_folded_counterparts):
25826         First arg is now wint_t, not wchar_t.  This generalizes the
25827         function to also work on WEOF, where it returns 0.
25829         dfa: port to gcc -fsanitize=undefined
25830         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
25831         as this runs afoul of gcc -fsanitize=undefined.
25833 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
25835         strftime: %z is -00 if unknown
25836         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
25837         the caller's responsibility to set 'negative_number'.  All uses changed.
25838         (__strftime_internal): Put '-' before a zero UTC offset if the time
25839         zone abbreviation starts with "-", which is the recently-introduced
25840         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
25841         * tests/test-strftime.c: Test for this.
25843 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
25845         dfa: port to older GCC
25846         Problem reported by Assaf Gordon in:
25847         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00103.html
25848         * modules/c99: New module.  This merely attempts to use the latest
25849         C version, which should be enough to solve this particular problem.
25850         The idea is to document which Gnulib modules assume C99 or later.
25851         * modules/dfa (Depends-on): Add it.
25853 2017-01-10  Bruno Haible  <bruno@clisp.org>
25855         Update DEPENDENCIES.
25856         * DEPENDENCIES: List only https URLs. Update recommended version for
25857         autoconf, automake, gperf.
25859 2017-01-10  Jim Meyering  <meyering@fb.com>
25861         maint.mk: enforce spelling of "timestamp" (i.e., no space)
25862         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
25863         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
25865 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
25867         dfa: minor simplification with emptyset
25868         * lib/dfa.c (build_state): Simplify by using emptyset.
25870 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
25872         dfa: shrink constraints from 4 bits to 3
25873         * lib/dfa.c (newline_constraint, letter_constraint)
25874         (other_constraint, prev_newline_dependent)
25875         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
25876         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
25877         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
25878         Constraints need only 3 bits, not 4.  Using smaller integers
25879         shrinks the code a bit and makes grep a tad faster on x86-64.
25881         dfa: omit unnecessary ptrdiff_t check
25882         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
25883         overflow, since xnmalloc does that now.
25885         dfa: omit unnecessary allocation
25886         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
25887         an all-zero follow set works just fine.
25889         dfa: omit unused local
25890         * lib/dfa.c (build_state): Fix up recent change.
25892         maint: remove stray .texi files
25893         Although these were superseded by other files like
25894         doc/posix-functions/ctime.texi, the old files were not removed.
25895         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
25897 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
25899         getprogname: fix port to IRIX
25900         * lib/getprogname.c (getprogname) [__sgi]:
25901         Don't dump core if malloc returns NULL.
25903         dfa: fix reallocation bug when matching newlines
25904         Problem reported for sed by S. Gilles (Bug#25390).
25905         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
25906         (dfastate): Reallocate before moving any newline transition ...
25907         (build_state): ... instead of reallocating here, where it is too late.
25909 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
25911         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
25912         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
25914 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
25916         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
25917         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
25919 2017-01-07  Bruno Haible  <bruno@clisp.org>
25921         stdioext: Port to Minix 3.2 and newer.
25922         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
25923         * lib/fseeko.c (fseeko): Likewise.
25924         Reported by Nelson Beebe via Paul Eggert.
25926 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
25928         getprogname: port to IRIX
25929         * lib/getprogname.c (getprogname): Port to IRIX.
25930         Based on an idea by Bastien Roucariès at:
25931         http://lists.gnu.org/r/bug-gnulib/2010-12/msg00096.html
25932         via code from Bruno Haible at:
25933         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
25935         localename-tests: port to NetBSD 7
25936         Problem reported by Nelson H. F. Beebe.
25937         * tests/test-localename.c:
25938         Test newlocale and uselocale only if both exist.
25940         glob, intprops, xalloc: work around Clang bug
25941         Work around LLVM bug 16404, which is still not fixed.
25942         https://llvm.org/bugs/show_bug.cgi?id=16404
25943         Problem reported by Nelson H. F. Beebe.
25944         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
25945         Remove.
25946         * lib/glob.c (size_add_wrapv):
25947         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
25948         * lib/xalloc-oversized.h (xalloc_oversized):
25949         Do not use overflow builtins if Clang.
25951         dfa: fix 'return' typo
25952         Problem reported by Nelson H. F. Beebe.
25953         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
25955 2017-01-05  Pádraig Brady  <P@draigBrady.com>
25957         parse-datetime: fix generated paths for coverage files
25958         * modules/parse-datetime: Adjust the paths for parse-datetime.y
25959         within parse-datetime.c, so that gcc generates appropriate .gcno
25960         files, allowing lcov to proceed without error.  Previously it
25961         would error trying to find "lib/lib/parse-datetime.y".
25963 2017-01-05  Pádraig Brady  <P@draigBrady.com>
25965         maint.mk: support parallel execution of coverage
25966         * top/maint.mk (coverage): Run dependencies serially,
25967         thus supporting parallel processing of each one,
25968         particularly build-coverage, which builds and runs tests.
25970 2017-01-05  Bruno Haible  <bruno@clisp.org>
25972         lock tests: Prefer semaphore over mutex.
25973         * tests/test-lock.c (USE_SEMAPHORE): New constant.
25974         (struct atomic_int, init_atomic_int, get_atomic_int_value,
25975         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
25976         Suggested by Torvald Riegel <triegel@redhat.com>.
25978 2017-01-05  Bruno Haible  <bruno@clisp.org>
25980         lock: Provide guarantee to avoid writer starvation for rwlocks.
25981         The rationale is: 1) Read-preferring read-write locks are prone to
25982         writer starvation if the number of reader threads multiplied by the
25983         percentage of time they have the lock held is too high. 2) Write-
25984         preferring read-write locks are the only reliable way to avoid this.
25985         3) There have been reports of 'test-lock' hanging on glibc systems
25986         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00009.html,
25987         and glibc indeed implements read-preferring rwlocks by default, see
25988         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
25989         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
25990         * m4/pthread_rwlock_rdlock.m4: New file.
25991         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
25992         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
25993         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
25994         of rwlock initialization on glibc systems without
25995         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
25996         of rwlocks altogether on non-glibc systems without
25997         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
25998         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
25999         * lib/glthread/lock.c [USE_POSIX_THREADS]
26000         (glthread_rwlock_init_for_glibc): New function.
26001         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
26002         comment.
26003         [USE_PTH_THREADS]: New implementation of rwlocks.
26004         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
26005         readers.
26006         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
26007         (Depends-on): Add 'extensions'.
26008         * tests/test-rwlock1.c: New file.
26009         * lock-tests (Files): Add it.
26010         (Depends-on): Add usleep.
26011         (Makefile.am): Add test-rwlock1 to the tests.
26013 2017-01-05  Bruno Haible  <bruno@clisp.org>
26015         thread: Fix pth port.
26016         * lib/glthread/thread.h (pth_init): Declare weak.
26017         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
26018         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
26019         function.
26021 2017-01-04  Assaf Gordon  <assafgordon@gmail.com>
26023         parse-datetime: fix debug message on lone year number
26024         Input dates such as
26025           date -d "Apr 11 22:59:00 2011"
26026         are parsed as date (Apr 11, with default year 2016), then time, then a
26027         number (2011). Based on the combination of previously seen tokens,
26028         'digits_to_date_time' determines 2011 to be a year value.
26029         This fixes the debug messages to correctly show the updated year.
26030         Before:
26031             $ date --debug -d 'Apr 11 22:59:00 2011'
26032             date: parsed date part: (Y-M-D) 2016-04-11
26033             date: parsed time part: 22:59:00
26034             date: parsed number part: today/this/now
26035         After:
26036             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
26037             date: parsed date part: (Y-M-D) 2016-04-11
26038             date: parsed time part: 22:59:00
26039             date: parsed number part: year: 2011
26040         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
26041         'debug_year_seen' member fields.
26042         (digits_to_date_time): Update 'year_seen' as needed.
26043         (debug_print_current_time): Inform about year updates.
26044         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
26046         parse-datetime: fix local timezone debug messages
26047         "Local timezones" are strings that affect only DST relative to the
26048         default timezone. The debug messages in parse-datetime.y printed
26049         wrong information when encountering local timezones.
26050         Examples:
26051         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
26052              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
26053              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
26054         When the default timezone relates to the zone strings, EET/EEST are
26055         parsed as local timezones (tLOCAL_ZONE), and only change the DST
26056         value (0/1, respectively):
26057              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
26058              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
26059         * lib/parse-datetime.y (debug_print_current_time): If local timezone
26060         was seen, inform about DST change, don't print actual timezone.
26061         (debug_strfdatetime): If local timezone was seen, use default timezone
26062         (and adjust as needed) instead of using incorrect timezone.
26063         (parse_datetime2): Use correct time-zone source string, and adjust
26064         default timezone as needed.
26066         parse-datetime: add debug warning about DST changes
26067         Incorrect date arithmetic due to daylight saving time (DST) are a
26068         common (false) bug report in coreutils.
26069         Detect two such cases and print a warning:
26070         1. year/month/day adjustments (performed on 'struct tm'),
26071            where 'mktime' returns a different isdst value.
26072         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
26073            where the result of 'localtime(3)' on the value will return a
26074            different isdst value.
26075         Note: DST changes could be harmless or unnoticeable.
26076         Examples (with 'TZ=America/New_York'):
26077         Unnoticeable: result is 2016-Dec-14
26078            $ date -d '2016-06-15 EDT + 6 months' +%b
26079            Dec
26080         Unnoticeable: result is 2016-Dec-15 11:00:00
26081            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
26082            2016-12-15
26083         This is unexpected:
26084            $ date -d '2016-06-01 EDT + 6 months' +%F
26085            2016-11-30
26086         The new debug warnings will show:
26087            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
26088            ...
26089            date: warning: daylight saving time changed after date adjustment
26090            ...
26091         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
26092         print an appropriate warning message.
26094         parse-datetime: add debug warning about date arithmetic
26095         Date arithmetic are done directly on the fields of 'struct tm',
26096         which can result in invalid dates. Normalization with 'mktime(3)'
26097         will then produce a different date - which might cause unexpected
26098         results.
26099         Examples:
26100           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
26101           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
26102         Note that date normalization is not inherently wrong and not rejected,
26103         as it has legitimate uses:
26104           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
26105         If the user asked to adjust months but 'mday' changed,
26106         or user asked to adjust years but 'month' changed - warn about it.
26107             $ ./src/date --debug -d '2016-10-31 - 1 month'
26108             ...
26109             date: warning: when adding relative months/years, \
26110                            it is recommended to specify the 15th of the month
26111             ...
26112             date: warning: month/year adjustment resulted in shifted dates:
26113             date:      adjusted Y M D: 2016 09 31
26114             date:    normalized Y M D: 2010 10 01
26115             ...
26116         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
26117         a warning message. Improve recommendation of when to use 15 of the
26118         month or noon for date arithmetic.
26120         parse-datetime: fix debug message of relative part after timezone
26121         Relative part (e.g '+8 days') after a timezone string was not
26122         reported (was only reported after a timezone number). Due to the
26123         parser's structure, timezone strings with numbers were handled
26124         separately.
26125         before:
26126              # Timezone number + relative part: OK
26127              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
26128              ...
26129              date: parsed relative part: -8 day(s)
26130              # Timezone string + relative part: missing
26131              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
26132              [ missing message ]
26133         After: messages are printed in both cases.
26134         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
26136         parse-datetime: fix incorrect debug message on lone number
26137         A lone number is an absolute value, not a relative time part.
26138         before:
26139            $ date --debug -d '20130101'
26140            date: parsed number part: today/this/now
26141         After:
26142            $ ./src/date --debug -d '20130101'
26143            date: parsed number part: (Y-M-D) 2013-01-01
26144         * lib/parse-datetime.y ('item'/'number' tokens): Call
26145         'debug_print_current_time' instead of 'debug_print_relative_time'.
26147 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
26149         doc: modernize for C11 etc.
26150         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
26151         for C11, MinGW, etc.  This responds to Paul Smith's question in:
26152         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00014.html
26154         dfa: prefer functions to FETCH_WC macro
26155         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
26156         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
26157         wint_t result into DFA->lex.wctok instead of to a separate arg.
26158         All callers changed.  Move more local decls closer to where
26159         they're used.
26161         dfa: narrow more local var scopes
26162         * lib/dfa.c: Move more local decls to be more local.
26164         dfa: remove duplicate assignment
26165         Problem reported by Bruno Haible in:
26166         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00007.html
26167         * lib/dfa.c (parse_bracket_exp): Simplify.
26169 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
26171         dfa: simplify constraint-dependency checking
26172         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
26173         (prev_other_constraint): Remove.
26174         (prev_newline_dependent, prev_letter_dependent):
26175         Simplify, to avoid an unnecessary bitwise AND operation.
26177         dfa: prefer functions and constants to macros
26178         * lib/dfa.c: Prefer constants to macros where either will do.
26179         (streq, isasciidigit, newline_constraint)
26180         (letter_constraint, other_constraint, succeeds_in_context)
26181         (prev_newline_constraint, prev_letter_constraint)
26182         (prev_other_constraint, prev_newline_dependent)
26183         (prev_letter_dependent, accepting, accepts_in_context):
26184         Now static functions instead of function-like macros.
26185         Use lower-case names accordingly.  All uses changed.
26187         dfa: narrow more local var scopes
26188         * lib/dfa.c: Move some more local decls down to nearer where
26189         they're needed.
26191 2016-12-31  Jim Meyering  <meyering@fb.com>
26193         dfa: narrow the scope of many local variables
26194         * lib/dfa.c: Now that we are no longer constrained to c89, move
26195         declarations of many variables (often indices) "down" into the
26196         scope(s) where used or to the point of definition.  This is a
26197         no-semantic-change diff.
26199 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
26201         version-etc: new year
26202         * build-aux/gendocs.sh (version):
26203         * doc/gendocs_template:
26204         * doc/gendocs_template_min:
26205         * doc/gnulib.texi:
26206         * lib/version-etc.c (COPYRIGHT_YEAR):
26207         Update copyright dates by hand in templates and the like.
26208         * all files: Run 'make update-copyright'.
26210 2016-12-31  Eric Blake  <eblake@redhat.com>
26212         do-release-commit-and-tag: avoid shell syntax error
26213         * build-aux/do-release-commit-and-tag (curr_br): $branch can
26214         contain spaces when rebasing.
26216         maint.mk: hoist gnulib_dir definition earlier
26217         * top/maint.mk (gnulib_dir): Move near top of file.
26219 2016-12-31  Jim Meyering  <meyering@fb.com>
26221         maint.mk: do not always evaluate intprops-related shell
26222         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
26223         using gnulib_dir undefined (gnulib_dir is defined later in the
26224         file, which will be fixed separately), and besides, there is no
26225         need to incur the cost of this shell invocation for every single
26226         use of this .mk file.  Reported by Eric Blake in
26227         https://lists.gnu.org/r/bug-gnulib/2016-12/msg00137.html
26229 2016-12-30  Jim Meyering  <meyering@fb.com>
26231         maint.mk: improve sc_prohibit_intprops_without_use
26232         * top/maint.mk (_intprops_names): Don't hard-code the list of
26233         symbol names.  Instead, derive it on the fly.
26235 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
26237         dfa: shorten sbit, success
26238         * lib/dfa.c (struct regex_syntax.sbit):
26239         (struct dfa.success): Use char, not int, for array elements, since
26240         they are all in the range 0..7.
26242         dfa: simplify multibyte_prop etc.
26243         This follows up on a change made when dfa.c was in grep, namely grep
26244         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
26245         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
26246         That earlier simplification allows for some more simplification
26247         and trimming down here.
26248         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
26249         (struct lexer_state): New mamber brack.
26250         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
26251         since they must be in the range 0..3 now.
26252         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
26253         the brack member now supersedes them.
26254         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
26255         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
26256         (dfaparse): Remove unnecessary initializations of already-0 storage.
26257         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
26258         (dfassbuild): No need to clear sup->mbcsets.
26260         dfa: minor performance tweak
26261         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
26263         dfa: wrap charclass inside a struct
26264         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
26265         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
26266         about 5% faster, where list.txt is generated by 'aspell dump
26267         master | head -n 100000 >list.txt'.  See Bug#22239.
26268         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
26269         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
26270         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
26271         Adjust to this, e.g., by using charclass * rather than charclass.
26272         All callers changed as needed.
26273         (copyset): Remove.  All uses changed to simple assignment.
26274         (parse_bracket_exp): Use zeroset instead of memset.
26276 2016-12-30  Jim Meyering  <meyering@fb.com>
26278         maint.mk: update list of intprops.h symbol names
26279         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
26280         This avoids a false failure of the sc_prohibit_intprops_without_use
26281         rule in grep.
26283 2016-12-29  Eric Blake  <eblake@redhat.com>
26285         getopt: fix parallel test failure
26286         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
26287         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
26288         * tests/test-getopt-main.h (main): Use different file names
26289         in case test-getopt-gnu and test-getopt-posix run in parallel.
26291 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
26293         xalloc: x2nrealloc check for ptrdiff_t overflow
26294         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
26295         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
26297 2016-12-24  Bruno Haible  <bruno@clisp.org>
26299         lock test: Fix performance problem on multi-core machines.
26300         * tests/test-lock.c (USE_VOLATILE): New macro.
26301         (struct atomic_int): New type.
26302         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
26303         functions.
26304         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
26305         as 'struct atomic_int'.
26306         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
26307         reclock_checker_thread, test_recursive_lock): Use the new functions.
26308         Reported by Eric Blake in
26309         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
26310         and by Pádraig Brady in
26311         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00117.html.
26313 2016-12-19  Bruno Haible  <bruno@clisp.org>
26315         vma-iter: Fix endless loop on 64-bit Windows.
26316         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
26317         'unsigned long'.
26319 2016-12-19  Bruno Haible  <bruno@clisp.org>
26321         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
26322         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
26323         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
26324         Invoke gt_TYPE_WINT_T instead.
26325         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
26326         * modules/stdint (Files): Add m4/wint_t.m4.
26327         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
26328         * modules/wctype-h (Makefile.am): Likewise.
26329         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
26330         not only on MSVC.
26331         * lib/wctype.in.h (wint_t): Likewise.
26333 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
26335         getopt-posix-tests: fix Makefile typo
26336         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
26337         Fix typo: the last ‘_’ was missing in the name.
26338         I suspect that the typo explains this build failure:
26339         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
26340         although I can’t reproduce the problem on Solaris 10 sparc.
26342 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
26344         dfa: improve worst-case 'replace' performance
26345         See my note in Bug#22357#71.
26346         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
26347         (merge_constrained): New function, which is like
26348         the old 'merge' function, except with a new argument C2.
26349         Simplify the body by avoiding the need for different sections
26350         of code depending on whether one input is exhausted.
26351         (merge): Use the new function.
26352         (delete): Return the constraint of the deleted position,
26353         not the entire position.  Caller changed.
26354         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
26356 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
26358         dfa: performance improvement for removal of epsilon closure
26359         See Bug#22357#32.
26360         * lib/dfa.c (delete): Use binary search to find deleted index.
26361         (replace): New function.  It replaces a position with the followed set.
26362         (epsclosure): Replace it with a new algorithm.  Update caller.
26364 2016-12-18  Bruno Haible  <bruno@clisp.org>
26366         Split tests for getopt-posix and getopt-gnu.
26367         * tests/test-getopt-posix.c: New file.
26368         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
26369         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
26370         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
26371         GNULIB_TEST_GETOPT_GNU.
26372         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
26373         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
26374         (Makefile.am): Test test-getopt-posix instead of test-getopt.
26375         * modules/getopt-gnu-tests: New file.
26376         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
26378 2016-12-18  Bruno Haible  <bruno@clisp.org>
26380         posix-modules: Add options for specific platforms.
26381         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
26382         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
26383         Invoke func_tmpdir. Filter out the excludes.
26385 2016-12-18  Bruno Haible  <bruno@clisp.org>
26387         getopt: Fix link error for users of getopt() in <unistd.h>.
26388         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
26389         __need_getopt is defined. Undefine all macros before defining them.
26390         * modules/getopt (Include): Clarify that including <unistd.h> is also
26391         OK.
26392         * tests/test-getopt.c: Add comment.
26394 2016-12-17  Bruno Haible  <bruno@clisp.org>
26396         getaddrinfo tests: Avoid compilation error on MSVC.
26397         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
26398         getaddrinfo on native Windows.
26400 2016-12-17  Bruno Haible  <bruno@clisp.org>
26402         getlogin, getlogin_r: Fix link errors on MSVC.
26403         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
26404         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
26405         (Link): New section.
26406         * modules/getlogin_r (Files): Add m4/getlogin.m4.
26407         (configure.ac): Require gl_LIB_GETLOGIN.
26408         (Link): New section.
26409         * NEWS: Mention the new link requirements.
26410         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
26411         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
26413 2016-12-17  Bruno Haible  <bruno@clisp.org>
26415         Un-deprecate the 'progname' module.
26416         * NEWS: Describe the appropriate use-cases of 'progname' versus
26417         'getprogname'. Based on discussion summary at
26418         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00105.html
26420 2016-12-17  Bruno Haible  <bruno@clisp.org>
26422         Reorganize NEWS a bit.
26423         * NEWS: Move some not so important changes away from section
26424         "Important Notes".
26426 2016-12-17  Bruno Haible  <bruno@clisp.org>
26428         tanhf: Avoid redefinition error on MSVC.
26429         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
26430         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
26431         may be defined as an inline function.
26432         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
26433         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
26435 2016-12-17  Bruno Haible  <bruno@clisp.org>
26437         tanf: Avoid redefinition error on MSVC.
26438         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
26439         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
26440         may be defined as an inline function.
26441         * modules/math (Makefile.am): Substitute REPLACE_TANF.
26442         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
26444 2016-12-17  Bruno Haible  <bruno@clisp.org>
26446         sqrtf: Avoid redefinition error on MSVC.
26447         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
26448         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
26449         may be defined as an inline function.
26450         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
26451         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
26453 2016-12-17  Bruno Haible  <bruno@clisp.org>
26455         sinhf: Avoid redefinition error on MSVC.
26456         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
26457         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
26458         may be defined as an inline function.
26459         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
26460         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
26462 2016-12-17  Bruno Haible  <bruno@clisp.org>
26464         sinf: Avoid redefinition error on MSVC.
26465         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
26466         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
26467         may be defined as an inline function.
26468         * modules/math (Makefile.am): Substitute REPLACE_SINF.
26469         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
26471 2016-12-17  Bruno Haible  <bruno@clisp.org>
26473         logf: Avoid redefinition error on MSVC.
26474         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
26475         may be defined as an inline function.
26477 2016-12-17  Bruno Haible  <bruno@clisp.org>
26479         log10l: Avoid redefinition error on MSVC.
26480         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
26481         may be defined as an inline function.
26483 2016-12-17  Bruno Haible  <bruno@clisp.org>
26485         log10f: Avoid redefinition error on MSVC.
26486         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
26487         may be defined as an inline function.
26489 2016-12-17  Bruno Haible  <bruno@clisp.org>
26491         hypotl: Avoid redefinition error on MSVC.
26492         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
26493         may be defined as an inline function.
26495 2016-12-17  Bruno Haible  <bruno@clisp.org>
26497         hypotf: Avoid redefinition error on MSVC.
26498         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
26499         may be defined as an inline function.
26501 2016-12-17  Bruno Haible  <bruno@clisp.org>
26503         fmodl: Avoid redefinition error on MSVC.
26504         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
26505         may be defined as an inline function.
26507 2016-12-17  Bruno Haible  <bruno@clisp.org>
26509         fmodf: Avoid redefinition error on MSVC.
26510         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
26511         may be defined as an inline function.
26513 2016-12-17  Bruno Haible  <bruno@clisp.org>
26515         expf: Avoid redefinition error on MSVC.
26516         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
26517         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
26518         may be defined as an inline function.
26519         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
26520         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
26522 2016-12-17  Bruno Haible  <bruno@clisp.org>
26524         coshf: Avoid redefinition error on MSVC.
26525         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
26526         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
26527         may be defined as an inline function.
26528         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
26529         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
26531 2016-12-17  Bruno Haible  <bruno@clisp.org>
26533         cosf: Avoid redefinition error on MSVC.
26534         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
26535         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
26536         may be defined as an inline function.
26537         * modules/math (Makefile.am): Substitute REPLACE_COSF.
26538         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
26540 2016-12-17  Bruno Haible  <bruno@clisp.org>
26542         atan2f: Avoid redefinition error on MSVC.
26543         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
26544         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
26545         may be defined as an inline function.
26546         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
26547         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
26549 2016-12-17  Bruno Haible  <bruno@clisp.org>
26551         atanf: Avoid redefinition error on MSVC.
26552         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
26553         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
26554         may be defined as an inline function.
26555         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
26556         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
26558 2016-12-17  Bruno Haible  <bruno@clisp.org>
26560         asinf: Avoid redefinition error on MSVC.
26561         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
26562         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
26563         may be defined as an inline function.
26564         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
26565         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
26567 2016-12-17  Bruno Haible  <bruno@clisp.org>
26569         acosf: Avoid redefinition error on MSVC.
26570         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
26571         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
26572         may be defined as an inline function.
26573         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
26574         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
26576 2016-12-17  Bruno Haible  <bruno@clisp.org>
26578         Avoid redefinition errors on MSVC.
26579         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
26580         the function may be defined as an inline function.
26581         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
26582         the function may be defined as an inline function.
26584 2016-12-17  Bruno Haible  <bruno@clisp.org>
26586         Avoid redefinition errors on MSVC.
26587         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
26588         * lib/unistd.in.h: Include <stdio.h> when necessary.
26590 2016-12-17  Bruno Haible  <bruno@clisp.org>
26592         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
26593         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
26594         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
26595         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
26596         WINT_MAX.
26598 2016-12-17  Bruno Haible  <bruno@clisp.org>
26600         Avoid autoconf warning.
26601         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
26602         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
26604 2016-12-17  Bruno Haible  <bruno@clisp.org>
26606         fpending: Revert workaround against Emacs bug.
26607         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
26608         The Emacs bug is fixed by Eli Zaretskii in
26609         http://lists.gnu.org/r/emacs-devel/2016-12/msg00715.html
26611 2016-12-17  Bruno Haible  <bruno@clisp.org>
26613         getlogin_r tests: Port to mingw.
26614         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
26615         regression introduced on 2014-05-19.
26617 2016-12-17  Bruno Haible  <bruno@clisp.org>
26619         getlogin: Port to newer mingw.
26620         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
26621         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
26622         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
26623         HAVE_GETLOGIN.
26624         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
26625         HAVE_GETLOGIN.
26626         * doc/posix-functions/getlogin.texi: Mention the issue.
26627         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
26628         regression introduced on 2014-05-14.
26630 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
26632         builtin-expect: improve port to IBM XL C
26633         Problem reported for z/OS by Daniel Richard G. in:
26634         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00079.html
26635         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
26636         Test for <builtins.h> directly.
26638         builtin-expect: port to IBM XL C
26639         Problem reported for z/OS by Daniel Richard G. in:
26640         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00074.html
26641         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
26642         Also allow __builtin_expect defined via a standard include file.
26644         regex: fix dependency
26645         Problem reported by Bruno Haible in:
26646         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00073.html
26647         * modules/regex: Depend on builtin-expect.
26649         builtin-expect: new module
26650         Fix fnmatch to use it.
26651         Problem reported for z/OS by Daniel Richard G.
26652         * lib/fnmatch.c (__builtin_expect):
26653         * lib/glob.c (__builtin_expect):
26654         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
26655         * lib/memmem.c (__builtin_expect) [!_LIBC]:
26656         * lib/scandir.c (__builtin_expect):
26657         * lib/strstr.c (__builtin_expect) [!_LIBC]:
26658         Remove macro; config.h now does this.
26659         * lib/gl_anytreehash_list1.h (add_to_bucket):
26660         * lib/regex_internal.h (BE):
26661         Assume __builtin_expect.
26662         * m4/builtin-expect.m4, modules/builtin-expect: New files.
26663         * modules/avltreehash-list, modules/fnmatch, modules/glob:
26664         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
26665         * modules/scandir, modules/strstr-simple:
26666         Depend on builtin-expect.
26668 2016-12-15  Bruno Haible  <bruno@clisp.org>
26670         init.sh: Add possibility to not delete temporary files.
26671         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
26672         to yes, don't erase the temporary directory.
26674 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
26676         regex: fix integer-overflow bug in never-used code
26677         Problem reported by Clément Pit–Claudel in:
26678         http://lists.gnu.org/r/emacs-devel/2016-12/msg00654.html
26679         * lib/regex_internal.h: Include intprops.h.
26680         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
26681         behavior on integer overflow.
26682         * modules/regex (Depends-on): Add intprops.
26684         fpending: fix port to MinGW on Emacs
26685         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
26686         Problem reported by Eli Zaretskii in:
26687         http://lists.gnu.org/r/emacs-devel/2016-12/msg00642.html
26688         Is Plan 9 still a valid porting target, anyway?
26690 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
26692         safe-alloc: use xalloc-oversized
26693         * lib/safe-alloc.c: Include xalloc-oversized.h.
26694         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
26695         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
26697         xalloc: do not exceed PTRDIFF_MAX
26698         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
26699         xalloc_oversized check, since objects larger than PTRDIFF_MAX
26700         bytes have pointer-subtraction problems.
26702         malloca: do not exceed PTRDIFF_MAX
26703         * lib/malloca.h: Include xalloc-oversized.
26704         (nmalloca): Use xalloc_oversized instead of rolling our own.
26705         * modules/malloca (Depends-on):
26706         * modules/relocatable-prog-wrapper (Depends-on):
26707         Add xalloc-oversized.
26709         quotearg: pacify GCC better
26710         * modules/quotearg (Depends-on): Add minmax, stdint.
26711         * lib/quotearg.c: Include minmax.h, stdint.h.
26712         (nslots): Now int, as there seems little point to going to extra
26713         work merely to support the INT_MAX slot, which nobody ever uses.
26714         (quotearg_n_options): Redo size-overflow checks to pacify GCC
26715         and to catch (mostly-theoretical) ptrdiff_t problems too.
26716         This can be done via one comparison.
26718 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
26720         xalloc-oversized: check for PTRDIFF_MAX too
26721         This avoids undefined behavior when subtracting pointers to
26722         objects containing more than PTRDIFF_MAX bytes.
26723         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
26724         Also return 1 if the result would exceed PTRDIFF_MAX>
26725         * modules/xalloc-oversized (Depends-on):
26726         Add stdint.
26728         dfa: fix glitches in previous commit
26729         Sorry, I don't know how I managed to commit the wrong version.
26730         * lib/dfa.c (MIN): Move up.
26731         (xpalloc): Now static.
26733         dfa: fix some unlikely integer overflows
26734         I found these while reviewing the recent Coverity-related fix.
26735         This patch changes part of dfa.c to prefer ptrdiff_t instead of
26736         size_t for object counts.  Using ptrdiff_t is the style typically
26737         used in Emacs; although it wastes a sign bit as sizes can never be
26738         negative, it makes -fsanitize=undefined more likely to catch
26739         integer overflows in index calculation, and nowadays the upside is
26740         typically more important than the downside.  Although perhaps the
26741         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
26742         of dfa.c already does, since it uses state_num which is signed),
26743         that is a bigger change and is not needed to fix the bugs I found.
26744         * lib/dfa.c: Include stdint.h and intprops.h.
26745         (TOKEN_MAX): New macro.
26746         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
26747         (charclass_index, parse_bracket_exp, addtok, insert, merge)
26748         (realloc_trans_if_necessary, free_mbdata):
26749         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
26750         This is safe because xpalloc checks that the sizes do not exceed
26751         either SIZE_MAX or PTRDIFF_MAX.
26752         (xpalloc): New function, mostly taken from Emacs.
26753         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
26754         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
26755         (charclass_index): Check for integer overflow in computing
26756         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
26757         added to it later.
26758         (alloc_position_set): Check for integer overflow.  On typical
26759         platforms this check has zero overhead, since the constant
26760         expression is false.
26761         (realloc_trans_if_necessary):
26762         Remove assertion, which I hope Coverity no longer needs.
26764         * modules/dfa (Depends-on): Add intprops, stdint.
26766 2016-12-12  Jim Meyering  <meyering@fb.com>
26768         dfa: add an assertion to avoid coverity false positive
26769         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
26770         warned that "newalloc1 - 2" could overflow.
26772 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
26774         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
26775         * dfa.h (DFA_CASE_FOLD): Remove.
26776         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
26778 2016-12-13  John W. Eaton  <gnu@jweaton.org>
26780         link: fix test to declare use of rename()
26781         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
26782         -Werror=implicit-function-declaration
26784 2016-12-12  Bruno Haible  <bruno@clisp.org>
26786         fpending: Port to native Windows with MSVC.
26787         * lib/fpending.c: Include stdio-impl.h.
26788         (__fpending): Include all known implementations. Err out if it's not
26789         ported.
26790         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
26791         * modules/fpending (Files): Add lib/stdio-impl.h.
26792         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
26794 2016-12-12  Bruno Haible  <bruno@clisp.org>
26796         stdioext: Port to native Windows with MSVC.
26797         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
26798         (struct _gl_real_FILE): New type.
26799         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
26800         Windows.
26801         * lib/fbufmode.c (fbufmode): Add code for native Windows.
26802         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
26803         other SystemV derived implementations.
26804         * lib/fpurge.c (fpurge): Likewise.
26805         * lib/freadable.c (freadable): Likewise.
26806         * lib/freadahead.c (freadahead): Likewise.
26807         * lib/freading.c (freading): Likewise.
26808         * lib/freadptr.c (freadptr): Likewise.
26809         * lib/freadseek.c (freadptrinc): Likewise.
26810         * lib/fseeko.c (fseeko): Likewise.
26811         * lib/fseterr.c (fseterr): Likewise.
26812         * lib/fwritable.c (fwritable): Likewise.
26813         * lib/fwriting.c (fwriting): Likewise.
26814         Reported by Gisle Vanem <gvanem@yahoo.no>.
26816 2016-12-11  Jim Meyering  <meyering@fb.com>
26818         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
26819         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
26820         to work with most shells, but not with the one provided by many
26821         Solaris 10 systems, so running configure with such a /bin/sh evokes
26822         e.g., "./configure: syntax error at line 33602: `(' unexpected".
26823         Reported by Assaf Gordon in
26824         https://lists.gnu.org/r/sed-devel/2016-12/msg00002.html
26826 2016-12-10  Bruno Haible  <bruno@clisp.org>
26828         threadlib: Optimize out runtime test on Solaris >= 10.
26829         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
26830         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
26831         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
26833 2016-12-10  Bruno Haible  <bruno@clisp.org>
26835         stdint: Update doc about Solaris 9.
26836         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
26838 2016-12-09  Bruno Haible  <bruno@clisp.org>
26840         c-ctype tests: Fix link error on Solaris 9.
26841         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
26842         Reported at <https://savannah.gnu.org/bugs/?46827>.
26844 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
26846         dfa: fix performance bug that recomputes trans
26847         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
26848         25 on-demand changes.  The bug caused build_state to reset all
26849         d->trans elements to -2 even when d->trans was already non-null.
26850         Use C99 style decls after statements in this function.
26852         same-inode: port to MinGW
26853         Here st_ino is always 0, so change the definition of SAME_INODE so
26854         that 1 means the two files are the same, 0 with st_ino != 0 means
26855         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
26856         reported by Bruno Haible (Bug#25146).
26857         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
26858         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
26860 2016-12-04  Bruno Haible  <bruno@clisp.org>
26862         javacomp-script: Support Java 7 and 8.
26863         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
26864         target-version 1.7, 1.8.
26866 2016-12-02  Daiki Ueno  <ueno@gnu.org>
26868         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
26869         GPLv2" rewriting.
26871 2016-12-02  Nikos Mavrogiannopoulos  <nmav@gnutls.org>
26873         * gnulib-tool (func_import): Adhere to the license guideline when
26874         rewriting the license text to "LGPLv3+ or GPLv2":
26875         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
26877 2016-12-02  Bruno Haible  <bruno@clisp.org>
26879         localcharset: Avoid theoretical buffer overrun.
26880         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
26881         return value from setlocale if it would lead to a buffer overrun.
26883 2016-12-01  Bruno Haible  <bruno@clisp.org>
26885         Relicense some modules under LGPLv2+.
26886         Kevin Cernekee's approval is in
26887         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00090.html.
26888         * modules/fseterr (License): Change to LGPLv2+.
26889         * modules/mbchar (License): Likewise.
26890         * modules/mbiter (License): Likewise.
26891         * modules/mbsnlen (License): Likewise.
26892         * modules/wcwidth (License): Likewise.
26894 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
26896         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
26897         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
26898         OS/2 kLIBC.
26900 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
26902         alphasort, scandir: Port to OS/2 kLIBC
26903         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
26904         declaration.
26905         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
26907 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
26909         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
26910         * lib/relocatable.c (relocate): Do not touch pathname if it is started
26911         with '/@unixroot'.
26913 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
26915         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
26916         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
26917         OS/2 kLIBC unless TCPV40HDRS is defined.
26919 2016-11-29  Jim Meyering  <meyering@fb.com>
26921         dfa: avoid new infinite loop
26922         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
26923         * lib/dfa.c (dfastate): When constructing a new state table, we could
26924         initially declare that we had found a match, and later find that
26925         constraints eliminate that possibility, yet continue to use the
26926         now stale "matched" indicator.  That would lead to an infinite loop.
26927         The solution is to update "matched" when necessary.
26928         Introduced by commit v0.1-983-g403adf1.
26930 2016-11-27  Norihiro Tanaka  <noritnk@kcn.ne.jp>
26932         dfa: avoid match middle in multibyte character
26933         * lib/dfa.c (transit_state): If fails in matching single byte characters
26934         on a state including period expression in non-UTF8 multibyte locales,
26935         skip trailing bytes.
26936         (dfa_supported): Revert previous change.
26938 2016-11-27  Jim Meyering  <meyering@fb.com>
26940         dfa: avoid false match in non-UTF8 multibyte locales
26941         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
26942         as "not supported" so that callers will resort to using regex-based
26943         matcher.  This will surely hurt performance, but correctness trumps
26944         performance here, and the affected locales are less and less relevant,
26945         these days.  See grep's bug report https://bugs.gnu.org/24975.
26947 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
26949         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
26950         * lib/ptsname_r.c: Include the appropriate headers.
26951         [__sun]: Delete sys/sysmacros.h include.
26952         [_AIX || __osf__]: Likewise.
26953         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
26955 2016-11-27  Pádraig Brady  <P@draigBrady.com>
26957         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
26958         * lib/md4.c (md4_process_bytes): The existing define is made internal
26959         in recent versions of glibc, so also use this new public define.
26960         * lib/md5.c (md5_process_bytes): Likewise.
26961         * lib/sha1.c (sha1_process_bytes): Likewise.
26962         * lib/sha256.c (sha256_process_bytes): Likewise.
26963         * lib/sha512.c (sha512_process_bytes): Likewise.
26965 2016-11-27  Pádraig Brady  <P@draigBrady.com>
26967         maint: use a more standard return from mbrtowc test
26968         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
26969         from the test program as this often indicates an
26970         unhandled case in the test program.
26971         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
26972         (gl_MBRTOWC_SANITYCHECK): Likewise.
26973         (gl_MBRTOWC_NULL_ARG2): Likewise.
26974         (gl_MBRTOWC_NUL_RETVAL): Likewise.
26976 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
26978         freopen: work around glibc bug with closed fd
26979         Work around glibc bug#15589, where freopen mishandles the case
26980         where stdin etc. are already closed.
26981         * doc/posix-functions/freopen.texi (freopen): Document the bug.
26982         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
26983         instead of __need_FILE, as the latter does not work with glibc.
26984         Include <fcntl.h>, for open flags.
26985         (rpl_freopen): Work around glibc bug.
26986         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
26987         * modules/freopen (Depends-on): Add fcntl-h.
26988         * tests/test-freopen.c (main): Test for bug.
26990 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
26992         fnmatch: fix typo introduced on 2016-08-17
26993         This fixes the port to non-GCC compilers that lack __builtin_expect.
26994         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
26996         dfa: simplify with new function fillset
26997         * lib/dfa.c (fillset): New function.
26998         Use it for clarity when applicable.
27000         dfa: fix glitches with on-demand states
27001         Also, adjust commentary to better match new code.
27002         Some of these glitches predate the recent change.
27003         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
27004         only non-initial states.
27005         (dfastate): Rename locals to better match new roles.
27006         Move them into nested scopes if this is easy.
27007         Omit unnecessary calls to zeroset.
27008         Simplify test for whether to throw in the positions of state 0.
27009         Omit C99-ism (decl after statement) since Gawk still wants C89.
27010         (build_state): Omit unnecessary test and assignment.
27011         Fix some confusion that counted transition tables inaccurately
27012         and could cause a memory leak.
27013         (dfaexec_main): Redo to make it clearer to the compiler that
27014         -1 and -2 are the only negative state numbers here.
27016 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
27018         dfa: addition of new state on demand
27019         * src/dfa.c (dfastate): Add argument UC, the current input character.
27020         Fill only a group including the character in transition table.
27021         (realloc_trans_if_necessary): Add the dummy state which means that a
27022         transition table is assigned but the next state is not assigned.
27023         (build_state): Return the next state.  All callers updated.
27024         (transit_state_singlebyte): If we get the dummy state,
27025         fill the transition table.
27026         (dfaexec_main): Handle the dummy state.
27027         (free_mbdata, dfafree): Consider the dummy state.
27029 2016-11-24  Daiki Ueno  <ueno@gnu.org>
27031         srclist: sync with released gettext
27032         * config/srclist.txt: Set "release" option to the files under
27033         $GETTEXT.
27035 2016-11-24  Daiki Ueno  <ueno@gnu.org>
27037         srclist: add "release" option
27038         * config/srclist.txt: Change the format so that the first column
27039         of each line points to the top-level directory of the source
27040         archive.
27041         * config/srclist-update: Accept "release" option that checks files
27042         from the most recently tagged revision in the source archive.
27044 2016-11-21  Bruno Haible  <bruno@clisp.org>
27046         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
27047         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
27048         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
27049         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
27050         Inline and remove member function 'rpl ()' of the wrapper struct.
27052 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
27054         dfa: fix logic typo
27055         Problem reported by Stephane Chazelas (Bug#24973).
27056         * lib/dfa.c (using_simple_locale): Fix typo that caused some
27057         non-simple locales like fr_FR to be treated as simple.
27059 2016-11-20  Jim Meyering  <meyering@fb.com>
27061         fix test driver leaks: exclude, malloc, realloc
27062         * tests/test-exclude.c (main): Fix trivial leak.
27063         * tests/test-malloc-gnu.c (main): Likewise.
27064         * tests/test-realloc-gnu.c (main): Likewise.
27065         With these changes, grep's tests are now leak free.
27066         I.e., running them with ASAN elicits no failure:
27067           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
27068             AM_LDFLAGS='-fsanitize=address -static-libasan' check
27070 2016-11-11  Bruno Haible  <bruno@clisp.org>
27072         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
27073         * modules/libunistring: (License): Change from LGPL to
27074         "LGPLv3+ or GPLv2".
27075         * modules/libunistring-optional: Likewise.
27076         * modules/unicase/*: Likewise.
27077         * modules/uniconv/*: Likewise.
27078         * modules/unictype/*: Likewise.
27079         * modules/unigbrk/*: Likewise.
27080         * modules/unilbrk/*: Likewise.
27081         * modules/uniname/*: Likewise.
27082         * modules/uninorm/*: Likewise.
27083         * modules/unistdio/*: Likewise.
27084         * modules/unistr/*: Likewise.
27085         * modules/uniwbrk/*: Likewise.
27086         * modules/uniwidth/*: Likewise.
27088 2016-11-12  Bruno Haible  <bruno@clisp.org>
27090         Relicense some modules under LGPLv2+.
27091         Paul Eggert's approval is in
27092         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00037.html.
27093         Eric Blake's approval is in
27094         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00042.html.
27095         Ludovic Courtès's approval is in
27096         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00038.html.
27097         * modules/isnand-nolibm (License): Change to LGPLv2+.
27098         * modules/isnanf-nolibm (License): Likewise.
27099         * modules/isnanl-nolibm (License): Likewise.
27101 2016-11-19  Bruno Haible  <bruno@clisp.org>
27103         Relicense some modules under LGPLv2+.
27104         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
27105         modules/vasnprintf.
27106         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
27107         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00074.html.
27108         All other significant changes to the files in lib/ of these modules
27109         are from me.
27110         * modules/memcmp2 (License): Change to LGPLv2+.
27111         * modules/amemxfrm (License): Likewise.
27112         * modules/fpieee (License): Likewise.
27113         * modules/fpucw (License): Likewise.
27114         * modules/frexp-nolibm (License): Likewise.
27115         * modules/frexpl-nolibm (License): Likewise.
27116         * modules/printf-frexp (License): Likewise.
27117         * modules/printf-frexpl (License): Likewise.
27118         * modules/printf-safe (License): Likewise.
27119         * modules/signbit (License): Likewise.
27121 2016-11-17  Bruno Haible  <bruno@clisp.org>
27123         Enable Unicode decoder safety unconditionally.
27124         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
27125         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
27126         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
27127         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
27128         * lib/unistr/u8-prev.c (u8_prev): Likewise.
27129         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
27130         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
27131         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
27132         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
27133         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
27134         * lib/unistr/u16-prev.c (u16_prev): Likewise.
27135         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
27136         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
27137         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
27138         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
27139         * lib/unistr/u32-prev.c (u32_prev): Likewise.
27140         * lib/unistr/u32-next.c (u32_next): Likewise.
27141         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
27142         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
27143         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
27144         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
27145         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
27146         CONFIG_UNICODE_SAFETY tests unconditionally.
27147         * tests/unistr/test-u32-mblen.c (main): Likewise.
27148         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
27149         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
27150         * tests/unistr/test-u32-next.c (main): Likewise.
27151         * tests/unistr/test-u32-strmblen.c (main): Likewise.
27152         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
27153         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
27154         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
27155         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
27156         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
27157         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
27158         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
27159         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
27160         * lib/unistr/u16-check.c (u16_check): Update comment.
27161         * NEWS: Mention the changes that callers should be aware of.
27163 2016-11-19  Bruno Haible  <bruno@clisp.org>
27165         relocatable-prog-wrapper: Fix breakage on Cygwin.
27166         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
27167         (Depends-on): Remove intprops.
27168         * lib/relocwrapper.c: Update dependency tree.
27169         (strerror): Undefine.
27170         * build-aux/install-reloc (func_create_wrapper): Do not compile
27171         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
27173 2016-11-19  Bruno Haible  <bruno@clisp.org>
27175         strerror: Make it compile in C++ mode.
27176         * lib/strerror.c (strerror): Ignore the return value of memcpy().
27178 2016-11-15  Pedro Alves  <palves@redhat.com>
27180         sys_time: add gnulib::timeval for C++
27181         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
27182         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
27183         timeval macro.
27185 2016-11-14  Pedro Alves  <palves@redhat.com>
27187         snippet/c++defs: fix real-floating arg functions in C++ mode
27188         Also, define isfinite, isinf, isnan, signbit in the gnulib
27189         namespace instead of in the global namespace.
27190         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
27191         (_GL_END_NAMESPACE): New.
27192         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
27193         (isfinite, isinf, isnan, signbit) [__cplusplus &&
27194         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
27195         instead of in the global namespace.
27196         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
27197         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
27198         of in the global namespace.
27200 2016-11-13  Jim Meyering  <meyering@fb.com>
27202         strftime: don't use __THROW
27203         Each use of __THROW would provoke this from gcc-7-to-be:
27205           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
27206             on unit local functions [-Wattributes]
27207           static int iso_week_days (int, int) __THROW;
27208           ^~~~~~
27209         * lib/strftime.c (__THROW): Don't define.
27210         Remove each use of __THROW.
27211         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
27212         (tm_diff, iso_week_days, __strftime_internal): Likewise.
27214 2016-11-14  Paul Eggert  <eggert@union>
27216         obstack: port to gcc -fcheck-pointer-bounds
27217         Problem found by 'make check' failure on bleeding-edge coreutils
27218         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
27219         6.2.0-5ubuntu12), configured via "./configure
27220         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
27221         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
27222         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
27223         New macro, copied from fts_.h.
27224         (struct _obstack_chunk.contents): Use it.
27226 2016-11-14  Eric Blake  <eblake@redhat.com>
27228         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
27229         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
27230         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
27232 2016-11-14  Pádraig Brady  <P@draigBrady.com>
27234         strptime: fix compile error in recent change
27235         * lib/strptime.c (__strptime_internal): Fix ported code.
27237 2016-11-11  Bruno Haible  <bruno@clisp.org>
27239         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
27240         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
27241         (func_import): Extend determination of license_incompatibilities.
27242         (func_create_testdir): Extend table of license compatibility. Handle
27243         also the licenses GPLv3+, GPL, LGPLv3+.
27245 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
27247         strftime: tune %q
27248         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
27250         Merge strftime.c changes from glibc
27251         This incorporates:
27252         2007-10-16 [BZ #5184] Add tzset_called argument
27253         2008-06-13 [BZ #6612] pass reference to tzset_called around
27254         2009-10-30 Implement Burmese language locale for Myanmar
27255         2010-01-09 Add support for XPG7 testing
27256         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
27257         2015-10-20 Convert miscellaneous function definitions to prototype style
27258         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
27259         it anyway and this lessens the difference between gnulib and glibc.
27260         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
27261         (__THROW): Define if standard headers do not.
27262         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
27263         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
27264         Declare with __THROW.
27265         (__strftime_internal): Rename from strftime_case_. Add arg for
27266         whether tzset is called.  All uses changed.  Call tzset at most
27267         once.  Allow %OC, for Burmese.
27268         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
27269         Don't assume values are in range.
27271 2016-11-12  Eric Blake  <eblake@redhat.com>
27273         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
27274         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
27275         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
27276         different value.
27278 2006-11-12  Pedro Alves  <palves@redhat.com>
27280         Fix gnulib C++ namespace support and std::frexp
27281         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
27282         _GL_CXXALIASWARN.
27284 2006-11-12  Pedro Alves  <palves@redhat.com>
27286         GNULIB_NAMESPACE::func need not pull in rpl_func
27287         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
27288         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
27289         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
27290         struct instead of a function pointer.
27292 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
27294         manywarnings: fix -Wno-missing-field-initializers detection
27295         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
27296         to be independent of -Wunused-variable.  I.E. ensure the latter
27297         warning doesn't occur so that detection of the former is accurate.
27299 2016-11-05  Pádraig Brady  <pbrady@fb.com>
27301         strftime,strptime: support %q to represent the quarter
27302         * lib/strftime.c (strftime_case_): Add %q case.
27303         * lib/strptime.c (__strptime_internal): Likewise.
27304         * tests/test-strftime.c (quarter_test): A new test case.
27306 2016-11-03  Eric Blake  <eblake@redhat.com>
27308         bootstrap: Fix get_version() for AIX 5.3
27309         * build-aux/bootstrap (get_version): Factor out sed script, since
27310         indented comments choke AIX 5.3 sed.
27311         Reported-by: Michael Felt <aixtools@gmail.com>
27313 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
27315         intprops: port to older XL C
27316         Problem reported by Alexander Samoilov in:
27317         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00166.html
27318         http://savannah.nongnu.org/bugs/?49448
27319         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
27320         Define to 1 only for XL C 12.1 or later, since this bug
27321         occurs in XL C for AIX 6.0 but not in 12.1.
27323 2016-11-02  Pádraig Brady  <P@draigBrady.com>
27325         backupfile: initialize default suffix within the implementation
27326         * lib/backupfile.c (find_backup_file_name): Initialize the
27327         global variable here, to simplify usage, and to only call
27328         getenv() when needed.
27330 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
27332         futimens: remove FIXME for old Linux kernels
27333         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
27334         this in 2012" FIXME, like that for utimensat.
27336         utimensat: remove FIXME for old Linux kernels
27337         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
27338         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
27339         this in 2012" FIXME, by assuming the file system bug is absent
27340         unless demonstrated to be present.  We no longer need to worry
27341         about Linux kernel 2.6.32 when building with newer kernels.
27343 2016-10-16  Bruno Haible  <bruno@clisp.org>
27345         qsort_r: Fix macrology for platforms that lack the function.
27346         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
27347         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
27348         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
27349         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
27350         not exist.
27351         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
27352         the function exists.
27353         * modules/qsort_r: Add comments.
27355 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
27357         sys_types: fix Texinfo typos
27358         * doc/glibc-functions/gnu_dev_major.texi:
27359         * doc/glibc-functions/gnu_dev_makedev.texi:
27360         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
27362 2016-10-26  John David Anglin  <dave.anglin@bell.net>
27364         getprogname: port to HP-UX
27365         See Bug#24805.
27366         * lib/getprogname.c (getprogname) [__hpux]: Port.
27367         * tests/test-getprogname.c (STREQ) [__hpux]:
27368         Special-case for HP-UX limitations on program name length.
27370 2016-10-20  Bruno Haible  <bruno@clisp.org>
27372         Update doc about target platforms.
27373         * doc/gnulib-intro.texi (Target Platforms): Update list.
27375 2016-10-15  Bruno Haible  <bruno@clisp.org>
27377         opendir, readdir, closedir: Relicense under LGPLv2+.
27378         * modules/opendir (License): Change to LGPLv2+.
27379         * modules/readdir (License): Likewise.
27380         * modules/closedir (License): Likewise.
27382 2016-10-16  Bruno Haible  <bruno@clisp.org>
27384         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
27385         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
27386         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
27387         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
27388         HAVE_DECL_STRERROR_R.
27390 2016-10-16  Bruno Haible  <bruno@clisp.org>
27392         Make the 'argp' module work without the 'error' module.
27393         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
27395 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
27397         diffseq: restore TOO_EXPENSIVE heuristic
27398         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
27399         (Bug#24715).  The simplest solution is to restore the
27400         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
27401         using a higher threshold to avoid Bug#16848 on smaller files.
27402         * lib/diffseq.h (struct context): Restore member too_expensive.
27403         (struct partition): Restore members lo_minimal, hi_minimal.
27404         (diag, compareseq): Restore arg find_minimal.  All uses changed.
27405         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
27406         1993 to make 'diff' run faster (but not as well) on large inputs,
27407         but use a threshold of 4096 instead of the old 256.
27408         * lib/fstrcmp.c (strcmp_bounded):
27409         * lib/git-merge-changelog.c (compute_differences):
27410         Adjust to diffseq.h changes.
27412 2016-10-22  Bruno Haible  <bruno@clisp.org>
27414         iconv: Avoid compilation error when bootstrapping GNU libiconv.
27415         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
27416         declaration yet, define ICONV_CONST to empty.
27418 2016-10-15  Bruno Haible  <bruno@clisp.org>
27420         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
27421         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
27422         module.
27424 2016-10-16  Bruno Haible  <bruno@clisp.org>
27426         system-quote tests: Avoid compiler warning on AIX.
27427         * tests/test-system-quote-child.c (fopen): Redefine like the system's
27428         <stdio.h> does.
27430 2016-10-16  Bruno Haible  <bruno@clisp.org>
27432         Fix some "gcc -Wall" warnings.
27433         * tests/test-ffsl.c (main): Use variable x, not i.
27434         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
27435         freopen.
27436         * tests/test-sethostname1.c (main): Explicitly ignore the return value
27437         of sethostname.
27439 2016-10-16  Bruno Haible  <bruno@clisp.org>
27441         gnulib-tool: Make --create-testdir on all modules work again.
27442         * gnulib-tool (func_create_testdir): Don't include the
27443         non-recursive-gnulib-prefix-hack module.
27445 2016-10-21  Daiki Ueno  <ueno@gnu.org>
27447         libunistring: change the maintainer to 'all'
27448         * modules/gen-uni-tables, modules/libunistring:
27449         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
27450         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
27451         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
27452         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
27453         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
27454         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
27455         * modules/uniwidth/*: Change the maintainer to 'all'.
27457 2016-10-16  Bruno Haible  <bruno@clisp.org>
27459         Simplify "configure: checking ..." messages.
27460         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
27461         AC_MSG_NOTICE.
27462         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
27464 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
27466         quotearg-tests: pacify gcc -Wall
27467         Problem reported by Bruno Haible in:
27468         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00066.html
27469         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
27470         * tests/test-quotearg.h: ... from here.
27472 2016-10-20  Pádraig Brady  <P@draigBrady.com>
27474         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
27475         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
27476         Needed on Centos <= 4.
27478 2016-10-20  Jim Meyering  <meyering@fb.com>
27480         printf.m4: fix a bug in detecting printf %j support
27481         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
27482         uintmax_t is defined in neither stdint.h nor inttypes.h.
27483         Before, this macro might have mistakenly set
27484         gl_cv_func_printf_sizes_c99=yes on such a system.
27485         Spotted by Zev Weiss.
27487 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
27489         sched: substitute HAVE_SYS_CDEFS_H too
27490         Problem reported by Tom G. Christensen in:
27491         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00084.html
27492         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
27493         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
27495 2016-10-19  Pádraig Brady  <P@draigBrady.com>
27497         quotearg: never write beyond the returned length
27498         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
27499         scan of the string when we initially encounter a single quote when
27500         shell quoting, so that if we then switch to a more concise quoting method
27501         we will not have written beyond that returned length.
27502         This is significant for sh-quote, which has separate routines
27503         to determine the length and do the actual quoting.
27504         * tests/test-quotearg.h: Reinstate the buffer bounds checking
27505         now that we never write more than the returned length.
27507 2016-10-18  Bruno Haible  <bruno@clisp.org>
27509         getprogname tests: Avoid failure in packages that use libtool.
27510         * tests/test-getprogname.c (main): Strip "lt-" prefix.
27511         Based on a patch by Jim Meyering.
27513 2016-10-16  Bruno Haible  <bruno@clisp.org>
27515         getprogname: Fix test failure on Cygwin. Comments.
27516         * lib/getprogname.h: Add comments.
27517         * lib/getprogname.c: Add comments. Fix #elif indentation.
27518         * tests/test-getprogname.c (main): On Cygwin, expect a result without
27519         ".exe" suffix.
27521 2016-10-16  Bruno Haible  <bruno@clisp.org>
27523         Make sure the libunistring detection rejects older versions with a
27524         known bug.
27525         * modules/unistr/u8-strtok (configure.ac): Bump required version.
27526         * modules/unistr/u16-strtok (configure.ac): Likewise.
27527         * modules/unistr/u32-strtok (configure.ac): Likewise.
27529 2016-10-18  Bruno Haible  <bruno@clisp.org>
27531         sh-quote, system-quote: revert regression of unit test.
27532         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
27533         * tests/test-system-quote-main.c (check_one): Likewise.
27535 2016-10-16  Pádraig Brady  <P@draigBrady.com>
27537         quotearg: fix stale tests
27538         * tests/test-quotearg.c [locale_results]: Add the missing str7
27539         entries to the expected results.
27540         * tests/test-system-quote-main.c (check_one): Don't enforce that we
27541         don't write beyond the returned length, since that's no longer the
27542         case if we switch to a more concise quoting style.
27543         * tests/test-sh-quote.c (check_one): Likewise.
27544         (main): Adjust for the new more concise quoting style.
27545         Reported by Bruno Haible.
27547 2016-10-16  Jim Meyering  <meyering@fb.com>
27549         non-recursive-gnulib-prefix-hack: fix inconsequential typo
27550         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
27551         to "$1".  This macro is always invoked with $1 == lib.
27552         Spotted by Bruno Haible
27554 2016-10-16  Bruno Haible  <bruno@clisp.org>
27556         Fix a test crash.
27557         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
27558         fails.
27560 2016-10-16  Pádraig Brady  <P@draigBrady.com>
27562         test-limits-h: suppress -Woverlength-strings
27563         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
27565 2016-10-15  Bruno Haible  <bruno@clisp.org>
27567         gettime, timespec, utimens: Relicense under LGPL.
27568         * modules/gettime (License): Change to LGPL.
27569         * modules/timespec (License): Likewise.
27570         * modules/utimens (License): Likewise.
27572 2016-10-14  Bruno Haible  <bruno@clisp.org>
27573             Pádraig Brady  <P@draigBrady.com>
27575         canonicalize-lgpl: Support the case path_max > INT_MAX.
27576         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
27577         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
27579 2016-10-13  Jim Meyering  <meyering@fb.com>
27581         getprogname: IBM z/OS: avoid NULL-dereference
27582         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
27583         upon strdup failure.
27585 2016-10-12  Jim Meyering  <meyering@fb.com>
27587         test-stdint: use _GL_VERIFY rather than "verify" for some tests
27588         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
27589         and an abbreviated diagnostic rather than verify with the full one,
27590         because the full-length strings would evoke warnings from gcc with
27591         -Woverlength-strings.
27593 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
27595         stdint: port SIZE_MAX to glibc s390
27596         Problem reported by Eric Blake in:
27597         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00031.html
27598         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
27599         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
27600         correct type, if possible.
27602 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
27604         getprogname: port to IBM z/OS
27605         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
27607 2016-10-11  Jim Meyering  <meyering@fb.com>
27609         maint: remove stray space after "." in AC_DEFINE comment.
27610         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
27611         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
27613 2016-10-05  Jim Meyering  <meyering@fb.com>
27615         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
27616         * lib/long-options.c (parse_long_options): Add a break statement
27617         to avoid this new warning/failure:
27618         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
27619           --create-testdir --dir=/t/x --with-tests --test long-options
27620         ../../gllib/long-options.c: In function 'parse_long_options':
27621         ../../gllib/long-options.c:66:12: error: this statement may \
27622           fall through [-Werror=implicit-fallthrough]
27623                    (*usage_func) (EXIT_SUCCESS);
27624                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
27626 2016-10-05  Jim Meyering  <meyering@fb.com>
27628         utimecmp: avoid new GCC 7 warning from -Wbool-operation
27629         Testing this module would fail when using GCC 7 like this:
27630         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
27631           --dir=/tmp/x --with-tests --test utimecmp
27632         ../../gllib/utimecmp.c: In function ‘utimecmp’:
27633         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
27634           [-Werror=bool-operation]
27635                          time_t s = src_s & ~ (res == 2 * BILLION);
27636                                             ^
27637         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
27638           [-Werror=bool-operation]
27639                src_s &= ~ (res == 2 * BILLION);
27640                         ^
27641         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
27642         Instead, make it explicit that we intend to apply it to 0 or 1.
27644 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
27646         dfa: save memory for states
27647         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
27648         states if dfa has a lot of caches.
27650 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
27652         wchar, wctype-h: fix for MinGW 3.22.2
27653         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
27654         special invocation, to fix issues with MinGW 3.22.2 wchar.h
27655         when included from <string.h>.
27656         * lib/wctype.in.h [__MINGW32__]: Add special invocation
27657         convention for MinGW 3.22.2, to solve issues with their
27658         wctype.h when included from <ctype.h>.
27660 2016-10-05  Jim Meyering  <meyering@fb.com>
27662         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
27663         * lib/long-options.c (parse_long_options): Add a break statement
27664         to avoid this new warning/failure:
27665         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
27666           --create-testdir --dir=/t/x --with-tests --test long-options
27667         ../../gllib/long-options.c: In function ‘parse_long_options’:
27668         ../../gllib/long-options.c:66:12: error: this statement may \
27669           fall through [-Werror=implicit-fallthrough]
27670                    (*usage_func) (EXIT_SUCCESS);
27671                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
27673         utimecmp: avoid new GCC 7 warning from -Wbool-operation
27674         Testing this module would fail when using GCC 7 like this:
27675         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
27676           --dir=/tmp/x --with-tests --test utimecmp
27677         ../../gllib/utimecmp.c: In function ‘utimecmp’:
27678         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
27679           [-Werror=bool-operation]
27680                          time_t s = src_s & ~ (res == 2 * BILLION);
27681                                             ^
27682         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
27683           [-Werror=bool-operation]
27684                src_s &= ~ (res == 2 * BILLION);
27685                         ^
27686         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
27687         Instead, make it explicit that we intend to apply it to 0 or 1.
27689 2016-10-03  Pádraig Brady  <P@draigBrady.com>
27691         quotearg: minimize shell quoting using double quotes
27692         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
27693         quote in encountered then use double quotes (c style quoting)
27694         when possible, as it simplifies the quoting.
27695         * tests/test-quotearg-simple.c: Add test cases.
27696         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
27697         for the fact we now may write beyond the returned length.
27699 2016-10-02  Jim Meyering  <meyering@fb.com>
27701         vasnprintf.c: avoid spurious warning from GCC 7
27702         The presence of cpp directives renders this "FALLTHROUGH" comment
27703         ineffective, so does not suppress the -Wimplicit-fallthrough warning
27704         from GCC 7 built from git on 2016-10-02.
27705         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
27706         directives, so that it takes effect once again.  This is clearly
27707         not a proper change, and I will revert it once this bug is fixed:
27708         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
27710 2016-10-01  Jim Meyering  <meyering@fb.com>
27712         getprogname: correct the test for a __progname variable
27713         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
27714         and AC_LINK_IFELSE to check for a global __progname.  If found,
27715         define HAVE_VAR___PROGNAME.
27716         * lib/getprogname.c (getprogname): Reflect the new name of the
27717         feature- checked preprocessor symbol:
27718         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
27720 2016-09-28  Jim Meyering  <meyering@fb.com>
27722         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
27723         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
27724         fall-through case with a /* fallthrough */ comment.
27726         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
27727         * lib/dfa.c (dfassbuild): Mark the end of this case with a
27728         /* fallthrough */ comment.
27730         getprogname: avoid __progname vs program_invocation_short_name pitfall
27731         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
27732         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
27733         not with Fedora 24's glibc-2.23.1-10.
27734         * lib/getprogname.c (__progname): Move this declaration down...
27735         (getprogname): ... into the #elif block where used, and make it
27736         explicitly "extern".
27738         getprogname: port to OpenBSD 5.1
27739         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
27740         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
27741         * modules/getprogname (configure.ac): Move most of this code...
27742         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
27743         increment serial number, and add a test for __progname.
27744         https://bugs.gnu.org/24562
27745         Reported by Nelson H. F. Beebe.
27747 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
27749         sched: port to GCC 6.2.1 on macOS Sierra
27750         Problem reported by Denis Davydov in:
27751         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00056.html
27752         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
27753         Include <sys/cdefs.h> before <sched.h>.
27754         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
27755         so that we needn’t worry about the sched.h include bug here.
27756         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
27757         and include it before <sched.h> if it exists, when
27758         checking for <sched.h>.
27760         tests/init.sh: port Alpine fix to AIX 7.1
27761         * tests/init.sh (compare_): When attempting to use diff -U3,
27762         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
27763         diff -u not outputting a space after leading '+', as the users
27764         of 'compare' should not be that picky about its output format.
27765         In the AIX 7.1 case, return with diff exit status (or with 2 if
27766         trouble), instead of some random nonzero exit status.
27767         * tests/test-init.sh (test_compare): Remove space after leading
27768         '+', so that AIX 7.1 'diff' passes the test.
27770 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
27772         nl_langinfo: pacify GCC
27773         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
27774         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
27776         stdint: also set GL_GENERATE_LIMITS_H
27777         Problem reported by Jim Meyering in:
27778         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00052.html
27779         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
27781         limits-h, stdint: Don't assume extensions, fix typo
27782         * m4/limits-h.m4 (gl_LIMITS_H):
27783         * m4/stdint.m4 (gl_STDINT_H):
27784         Don't assume AC_USE_SYSTEM_EXTENSIONS.
27785         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
27786         reported by Jim Meyering in:
27787         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00050.html
27789 2016-09-21  Jim Meyering  <meyering@fb.com>
27791         getprogname: port to AIX
27792         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
27793         and strdup to obtain a short program name string.  Using code from
27794         Bruno Haible and an idea from Bastien ROUCARIÈS, in
27795         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
27796         Assaf Gordon reported that this new file would fail to compile on
27797         AIX-7.1 32bit.
27799 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
27801         extensions: fix typo in comment
27802         * m4/extensions.m4: Sync from Autoconf master.
27804         stdint: support new _WIDTH macros
27805         * doc/posix-headers/stdint.texi: Document this.
27806         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
27807         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
27808         support for INTMAX_WIDTH, etc. as well as for support for just C99.
27809         * modules/stdint (Depends-on): Add limits-h.
27810         (Makefile.am): Substitute HAVE_C99_STDINT_H.
27811         * modules/stdint-tests (Depends-on): Add extensions, so that
27812         INTMAX_MAX etc. are defined.
27813         * tests/test-stdint.c: Verify the new macros.
27815         limits-h: new module
27816         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
27817         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
27818         * doc/posix-headers/limits.texi: Document new module.
27819         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
27820         * modules/limit-h-tests, tests/test-limits-h.c: New files.
27822         stdio: don't redefine __USE_MINGW_ANSI_STDIO
27823         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
27824         if it is already defined.  Apparently GNU Emacs relies on this.  See:
27825         http://lists.gnu.org/r/emacs-devel/2016-09/msg00416.html
27827 2016-09-15  Eric Blake  <eblake@redhat.com>
27829         sys_types: avoid glibc 2.25 warnings about major()
27830         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
27831         older autoconf.
27832         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
27833         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
27834         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
27835         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
27837         mountlist: include sysmacros.h for glibc
27838         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
27839         AC_HEADER_MAJOR.
27840         * lib/mountlist.c (includes): Use correct headers.
27842 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
27844         extensions: port to more ISO C TSes
27845         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
27846         master, to add support for more recent ISO C TRs and TSes.
27848 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
27850         intprops: new macro TYPE_WIDTH
27851         * lib/intprops.h (TYPE_WIDTH): New macro.
27852         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
27853         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
27854         * lib/parse-datetime.y (parse_datetime2):
27855         Use it.
27857         extensions: port to recent ISO C TRs
27858         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
27859         Sync from Autoconf master, to add support for recent ISO C TRs.
27860         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
27861         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
27862         the MinGW option is not an extension.
27864 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
27866         dfa: port to Solaris 9
27867         Problems reported by Tom G. Christensen in:
27868         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00031.html
27869         * modules/dfa (Depends-on): Add isblank.
27870         * modules/dfa-tests (dfa_match_aux_LDADD):
27871         Rename from test_stat_LDADD, to fix typo.
27872         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
27874 2016-09-10  Jim Meyering  <meyering@fb.com>
27876         strverscmp: avoid link failure on OS X
27877         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
27878         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
27880 2016-08-16  Jim Meyering  <meyering@fb.com>
27882         dfa: new module, importing grep's DFA matcher
27883         Since grep's DFA matcher is now being used by two gnulib-enabled
27884         projects, grep and sed, it makes sense to version-control its
27885         sources and unit tests in one place: here.
27886         * modules/dfa: New module.
27887         * modules/dfa-tests: New file.
27888         * lib/dfa.c: New file, from grep.
27889         * lib/dfa.h: Likewise.
27890         * lib/localeinfo.c: Likewise.
27891         * lib/localeinfo.h: Likewise.
27892         * tests/dfa-match-aux.c: Likewise.
27893         * tests/dfa-invalid-char-class.sh: Likewise.
27894         * tests/dfa-match.sh: Likewise, with minor changes.
27895         * MODULES.html.sh (Misc): Add "dfa" to this list.
27897 2016-09-09  Jim Meyering  <meyering@fb.com>
27899         getprogname-tests: don't depend on assert-h
27900         * modules/getprogname-tests (Depends-on): Remove assert-h.
27901         It was not needed, and in fact would cause build failure for
27902         coreutils on some systems.  Reported by Assaf Gordon in https:
27903         //lists.gnu.org/r/coreutils/2016-09/msg00016.html
27905 2016-09-07  Jim Meyering  <meyering@fb.com>
27907         getprogname-tests: work also when EXEEXT is nonempty
27908         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
27909         * tests/test-getprogname.c (main): Use it.
27910         Suggested by Gisle Vanem.
27912 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
27914         getprogname: fix errors in previous change
27915         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
27916         s/program_invocation_name/base/
27917         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
27919 2016-09-08  Pádraig Brady  <P@draigBrady.com>
27921         parse-datetime: restrict debug output to input string
27922         * lib/parse-datetime.y (parse_datetime2): If we parse
27923         all of the input but determine it's invalid, ensure
27924         we don't output the now invalid input pointer.
27925         This issue was seen with `date -d 'now +1'`.
27927 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
27929         flexmember: new macro FLEXALIGNOF
27930         * lib/flexmember.h: Include <stddef.h>, for offsetof.
27931         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
27932         this macro.  Update comments.
27934 2016-09-07  Jim Meyering  <meyering@fb.com>
27936         getprogname: port to systems with __argv (mingw, msvc)
27937         * lib/getprogname.c (getprogname): Include "dirname.h" and use
27938         last_component: more general than open coding it with hard-coded "/".
27939         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
27940         * modules/getprogname (Depends-on): Add dirname-lgpl.
27941         (configure.ac): Check for __argv in <stdlib.h>.
27942         * modules/getprogname-tests: New file.
27943         * tests/test-getprogname.c: New file.
27944         Suggested by Gisle Vanem in
27945         https://lists.gnu.org/r/bug-gnulib/2016-09/msg00014.html
27947 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
27949         flexmember: port better to GCC + valgrind
27950         With a char[] flexible array member in a struct with nontrivial
27951         alignment, GCC-generated code can access past the end of the
27952         array, because GCC assumes there are padding bytes to get the
27953         struct aligned.  So the common idiom of malloc (offsetof (struct
27954         s, m), n) does not properly allocate an n-byte trailing member, as
27955         malloc’s argument should be the next multiple of alignof (struct s).
27956         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
27957         Although C11 apparently permits this GCC optimization (i.e., there
27958         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
27959         See the thread containing:
27960         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
27961         * lib/flexmember.h: New file.
27962         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
27963         * lib/localename.c, lib/time_rz.c:
27964         Include flexmember.h.
27965         * lib/fnmatch_loop.c (struct patternlist):
27966         * lib/localename.c (struct hash_node):
27967         Use FLEXIBLE_ARRAY_MEMBER.
27968         * lib/fnmatch_loop.c (EXT):
27969         * lib/fts.c (fts_alloc):
27970         * lib/glob.c (glob_in_dir):
27971         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
27972         * lib/localename.c (gl_lock_define_initialized):
27973         * lib/time_rz.c (tzalloc):
27974         Use FLEXSIZEOF instead of offsetof.
27975         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
27976         Check that the size of the struct can be taken.
27977         * modules/flexmember (Files): Add lib/flexmember.h.
27978         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
27979         Add flexmember.
27981 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
27983         getprogname: port to Solaris 10
27984         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
27985         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
27986         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
27988         stdalign: correct mistake in alignof doc
27989         Problem reported by Joseph Myers in:
27990         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
27991         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
27992         alignof(S) where S is a structure containing a flexible array
27993         member.  The Gnulib substitute does not support this, but C11 does.
27995 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
27997         main.mk: remove sc_program_name, since there is no more need to
27998         use set_program_name in tools (getprogname is enough for most
27999         of the cases).
28000         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
28001         * top/maint.mk (sc_program_name): Remove.
28003 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
28005         Port tests away from progname, since modules that need the
28006         program name already depend on getprogname.
28007         * modules/acl-tests (Depends-on): Remove progname.
28008         * modules/argmatch (Depends-on): Likewise.
28009         * modules/argmatch-tests (Depends-on): Likewise.
28010         * modules/argp-tests (Depends-on): Likewise.
28011         * modules/argp-version-etc-tests (Depends-on): Likewise.
28012         * modules/array-list-tests (Depends-on): Likewise.
28013         * modules/array-oset-tests (Depends-on): Likewise.
28014         * modules/avltree-list-tests (Depends-on): Likewise.
28015         * modules/avltree-oset-tests (Depends-on): Likewise.
28016         * modules/avltreehash-list-tests (Depends-on): Likewise.
28017         * modules/carray-list-tests (Depends-on): Likewise.
28018         * modules/copy-file-tests (Depends-on): Likewise.
28019         * modules/exclude-tests (Depends-on): Likewise.
28020         * modules/fchownat-tests (Depends-on): Likewise.
28021         * modules/fdopendir-tests (Depends-on): Likewise.
28022         * modules/filenamecat-tests (Depends-on): Likewise.
28023         * modules/fstatat-tests (Depends-on): Likewise.
28024         * modules/fstrcmp-tests (Depends-on): Likewise.
28025         * modules/linked-list-tests (Depends-on): Likewise.
28026         * modules/linkedhash-list-tests (Depends-on): Likewise.
28027         * modules/mkdirat-tests (Depends-on): Likewise.
28028         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
28029         * modules/nonblocking-socket-tests (Depends-on): Likewise.
28030         * modules/obstack-printf-tests (Depends-on): Likewise.
28031         * modules/openat-tests (Depends-on): Likewise.
28032         * modules/parse-datetime-tests (Depends-on): Likewise.
28033         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
28034         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
28035         * modules/quotearg-simple-tests (Depends-on): Likewise.
28036         * modules/quotearg-tests (Depends-on): Likewise.
28037         * modules/rbtree-list-tests (Depends-on): Likewise.
28038         * modules/rbtree-oset-tests (Depends-on): Likewise.
28039         * modules/rbtreehash-list-tests (Depends-on): Likewise.
28040         * modules/spawn-pipe-tests (Depends-on): Likewise.
28041         * modules/system-quote-tests (Depends-on): Likewise.
28042         * modules/uniname/uniname-tests (Depends-on): Likewise.
28043         * modules/uninorm/nfc-tests (Depends-on): Likewise.
28044         * modules/uninorm/nfd-tests (Depends-on): Likewise.
28045         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
28046         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
28047         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
28048         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
28049         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
28050         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
28051         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
28052         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
28053         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
28054         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
28055         * modules/unlinkat-tests (Depends-on): Likewise.
28056         * modules/version-etc-tests (Depends-on): Likewise.
28057         * modules/xalloc-die-tests (Depends-on): Likewise.
28058         * modules/xmemdup0-tests (Depends-on): Likewise.
28059         * modules/xprintf-posix-tests (Depends-on): Likewise.
28060         * modules/xvasprintf-tests (Depends-on): Likewise.
28061         * tests/test-argmatch.c: Do not include progname.h.
28062         (main) Stop calling set_program_name.
28063         * tests/test-argp-version-etc.c: Likewise.
28064         * tests/test-argp.c: Likewise.
28065         * tests/test-argv-iter.c: Likewise.
28066         * tests/test-array_list.c: Likewise.
28067         * tests/test-array_oset.c: Likewise.
28068         * tests/test-avltree_list.c: Likewise.
28069         * tests/test-avltree_oset.c: Likewise.
28070         * tests/test-avltreehash_list.c: Likewise.
28071         * tests/test-carray_list.c: Likewise.
28072         * tests/test-copy-acl.c: Likewise.
28073         * tests/test-copy-file.c: Likewise.
28074         * tests/test-exclude.c: Likewise.
28075         * tests/test-fchownat.c: Likewise.
28076         * tests/test-fdopendir.c: Likewise.
28077         * tests/test-filenamecat.c: Likewise.
28078         * tests/test-fstatat.c: Likewise.
28079         * tests/test-fstrcmp.c: Likewise.
28080         * tests/test-linked_list.c: Likewise.
28081         * tests/test-linkedhash_list.c: Likewise.
28082         * tests/test-mkdirat.c: Likewise.
28083         * tests/test-nonblocking-pipe-main.c: Likewise.
28084         * tests/test-nonblocking-socket-main.c: Likewise.
28085         * tests/test-obstack-printf.c: Likewise.
28086         * tests/test-openat.c: Likewise.
28087         * tests/test-parse-datetime.c: Likewise.
28088         * tests/test-pipe-filter-gi1.c: Likewise.
28089         * tests/test-pipe-filter-gi2-main.c: Likewise.
28090         * tests/test-pipe-filter-ii1.c: Likewise.
28091         * tests/test-pipe-filter-ii2-main.c: Likewise.
28092         * tests/test-quotearg-simple.c: Likewise.
28093         * tests/test-quotearg.c: Likewise.
28094         * tests/test-rbtree_list.c: Likewise.
28095         * tests/test-rbtree_oset.c: Likewise.
28096         * tests/test-rbtreehash_list.c: Likewise.
28097         * tests/test-sameacls.c: Likewise.
28098         * tests/test-set-mode-acl.c: Likewise.
28099         * tests/test-spawn-pipe-main.c: Likewise.
28100         * tests/test-system-quote-main.c: Likewise.
28101         * tests/test-unlinkat.c: Likewise.
28102         * tests/test-version-etc.c: Likewise.
28103         * tests/test-xalloc-die.c: Likewise.
28104         * tests/test-xfprintf-posix.c: Likewise.
28105         * tests/test-xmemdup0.c: Likewise.
28106         * tests/test-xprintf-posix.c: Likewise.
28107         * tests/test-xvasprintf.c: Likewise.
28108         * tests/uniname/test-uninames.c: Likewise.
28109         * tests/uninorm/test-u32-nfc-big.c: Likewise.
28110         * tests/uninorm/test-u32-nfd-big.c: Likewise.
28111         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
28112         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
28113         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
28114         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
28115         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
28116         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
28117         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
28118         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
28119         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
28120         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
28121         * tests/test-c-stack.c: (program_name): Do not define.
28122         (main): Do not set program_name.
28123         * tests/test-closein.c: Likewise.
28124         * tests/test-xstrtol.c: Likewise.
28125         * tests/test-yesno.c: Likewise.
28127 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
28129         Port modules to use getprogname explicitly, instead of requiring
28130         progname to be used (or program_name to be provided).
28131         * lib/argmatch.c: Do not include progname.h.
28132         [TEST] (program_name): Do not define.
28133         [TEST] (main): Call getprogname instead of using program_name.
28134         * lib/c-stack.c: Do not include progname.h.
28135         (program_name): Do not define.
28136         (die): Call getprogname instead of using program_name.
28137         * lib/chdir-long.c: Do not include progname.h.
28138         [TEST_CHDIR] (main): Do not set program_name.
28139         * lib/error.c [!_LIBC]: Include progname.h.
28140         [!_LIBC] (program_name): Define using getprogname.
28141         * lib/euidaccess.c: Do not include progname.h.
28142         [TEST] (main): Do not set program_name.
28143         * lib/git-merge-changelog.c: Include getprogname.h instead of
28144         progname.h.
28145         (usage): Call getprogname instead of using program_name.
28146         (main): Likewise.  Stop calling set_program_name.
28147         * lib/group-member.c: Do not include progname.h.
28148         [TEST] (main): Do not set program_name.
28149         * modules/argmatch (Depends-on): Add getprogname.
28150         * modules/c-stack (Depends-on): Likewise.
28151         * modules/error (Depends-on): Likewise.
28152         * modules/git-merge-changelog (Depends-on): Likewise.
28153         Also remove progname.
28155 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
28157         * NEWS: Document the deprecation of the 'progname' module.
28159 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
28161         getprogname: new module
28162         This provides a LGPL module for getting the name of the current
28163         program, using the same API found on *BSD systems.
28164         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
28165         * modules/getprogname: New files.
28166         * MODULES.html.sh (Misc): Add getprogname.
28168 2016-09-02  Jim Meyering  <meyering@fb.com>
28170         manywarnings: add -fno-common
28171         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
28172         to the list.  Quoting the manual, "Compiling with -fno-common is
28173         useful on targets for which it provides better performance, or if
28174         you wish to verify that the program will work on other systems that
28175         always treat uninitialized variable declarations this way [putting
28176         it in the data section]."  If diffutils had been using this sooner,
28177         it would have prevented this duplicate declaration issue:
28178         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
28180 2016-08-31  Simon Josefsson  <simon@josefsson.org>
28182         parse-datetime: Fix typo.
28183         * lib/parse-datetime.y (parse_datetime2): Fix typo.
28185 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
28187         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
28188         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
28189         GCC 5 and 6 that have __builtin_sub_overflow but not
28190         __builtin_sub_overflow_p.  With the recent changes, these
28191         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
28192         implementation than with INT_SUBTRACT_OVERFLOW implementation,
28193         since the former needs just one runtime comparison whereas the
28194         latter needs two.
28196         strverscmp: sync with glibc
28197         Although this doesn't exactly synchronize with glibc
28198         byte-for-byte, it makes the code behave the same as glibc.
28199         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
28200         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
28201         difference shouldn't matter in practical use.  All uses changed
28202         back to isdigit.
28203         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
28204         (next_state): Now unsigned char array; redo elements.
28205         (result_type): Now signed char array; redo elements.
28206         (__strverscmp): Fix glibc bug 9913 by using new states.
28207         * tests/test-strverscmp.c (main): Test glibc bug 9913.
28209 2016-08-29  Jim Meyering  <meyering@fb.com>
28211         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
28212         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
28213         similarly to how it was done to intprops.h.
28215 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
28217         intprops.h: port recent changes to GCC 6.2.0
28218         * lib/intprops.h (__has_builtin): Move earlier.
28219         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
28220         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
28221         the last argument can be null.  All uses changed.
28222         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
28223         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
28224         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
28225         and it's not clear which GCC versions it works for.
28226         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
28227         its definiens.
28229         intprops.h: use __typeof__ with GCC 7
28230         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
28231         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
28232         This avoids computing the expression's value (which might overflow!).
28234 2016-08-29  Jim Meyering  <meyering@fb.com>
28236         intprops.h, xalloc-oversized.h: work with gcc 7
28237         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
28238         __builtin_mul_overflow each accept a NULL pointer as the third
28239         argument.  However in gcc 7, that is no longer accepted.
28240         Instead, one must use the "_p"-suffixed names, with which, the
28241         third parameter is no longer a pointer.
28242         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
28243         the definition: not true for gcc 7 and subsequent.
28244         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
28245         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
28246         Provide new definitions for gcc 7 and subsequent.
28247         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
28248         that works with gcc-7.
28250         intprops.h: fix missing-backslash problems
28251         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
28252         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
28254 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
28256         intprops: fix paren typo on old platforms
28257         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
28258         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
28259         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
28260         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
28261         && !defined LLONG_MAX]:
28262         Remove stray paren.
28264         intprops: port to OpenVMS
28265         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
28266         * doc/posix-headers/limits.texi: Document the problem.
28267         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
28268         Define if not already defined.
28270 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
28272         parse-datetime: improve debug implementation
28273         Follow-up to commit 12ad79069 ("add optional debug printing").
28274         Improve parse-datetime's debug implementation: remove macros,
28275         replace global debug flag variable with a function parameter,
28276         use nstrftime for formatting.
28277         See: https://lists.gnu.org/r/bug-gnulib/2016-08/msg00021.html
28278         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
28279         (parse_datetime2): New function, accepts 'flags' parameter, supporting
28280         debug flag. Existing interface 'parse_datetime' left unmodified.
28281         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
28282         (struct parser_control): add 'parse_datetime_debug' member variable.
28283         (parse_datetime): Call new function 'parse_datetime2' without debug.
28284         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
28285         pc.parse_datetime_debug variable as needed.
28286         (to_year): Accept new flags parameter, instead of using global variable.
28287         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
28288         use struct 'debug' variable instead of global variable.
28289         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
28290         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
28291         correspnding functions directly instead of using macros.
28292         * modules/parse-datetime: Add gnulib's strftime module.
28294 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
28296         c-strcase-tests: port to EBCDIC
28297         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
28298         which assume ASCII encoding semantics to run only in ASCII
28299         mode, as they fail in EBCDIC.
28301         sigpipe-tests: fix typo
28302         * tests/test-sigpipe.sh: C, not B.
28304 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
28306         canonicalize-lgpl: fix errno after malloca fails
28307         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
28308         http://lists.gnu.org/r/bug-gnulib/2016-08/msg00039.html
28309         * lib/canonicalize-lgpl.c (__realpath):
28310         Don't assume malloca sets errno on failure.
28312 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
28314         strtod: port errno handling to z/OS
28315         * lib/strtod.c (strtod): Save and restore errno more reliably.
28317 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
28319         strtod: port to z/OS
28320         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
28321         implementation.
28323 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
28325         strtod: port to z/OS
28326         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
28327         implementation.
28329         regex, string: rename to avoid '__string'
28330         * lib/regex.h, lib/string.in.h: Do not use the identifier
28331         '__string', as it is effectively reserved by string.h on z/OS.
28333         c-strcase-tests, wcwidth-tests: depend on c-ctype
28334         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
28335         Add c-ctype.
28337 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
28339         thread: port to z/OS
28340         * lib/glthread/thread.c, lib/glthread/thread.h:
28341         Rudimentary gl_thread support for z/OS.
28343         maint: port tests to z/OS errno behavior
28344         * tests/test-nonblocking-reader.h:
28345         * tests/test-nonblocking-writer.h:
28346         Accommodate z/OS errno code preferences. (I believe this should
28347         still be within spec; IBM is good at following the letter if not
28348         the spirit of such things.)
28350         maint: preprocessor changes to support z/OS
28351         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
28352         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
28353         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
28354         * tests/test-nonblocking-pipe.h:
28356         fclose, strstr-simple, wchar: port to z/OS
28357         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
28358         Changes to the Autoconf M4 code to support z/OS.  Note that
28359         fclose() is broken in a different way on z/OS than it is on other
28360         systems, thus the special-case in fclose.m4.
28362         iconv_open-utf-tests, iconv-tests: port to EBCDIC
28363         * tests/test-iconv-utf.c, tests/test-iconv.c:
28364         Added appropriately conditional #pragmas so that the test strings
28365         in test-iconv-utf.c are correctly interpreted in ASCII instead of
28366         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
28367         addressed in a more portable way by simply rewriting all the ASCII
28368         literal characters as octal escapes, but then you would lose the
28369         partial readability that the strings have now. Also, iconv_open()
28370         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
28372         c-strcase-tests, wcwidth-tests: port to EBCDIC
28373         * tests/test-c-strcasecmp.c: Include c-ctype.h.
28374         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
28375         * tests/test-wcwidth.c: Likewise.
28377 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
28379         stdbool: don't require _Bool for C++
28380         Problem reported by David Seifert in:
28381         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00005.html
28382         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
28383         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
28384         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
28385         stricter about checking that bool and _Bool are compatible in C.
28387 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
28389         getdelim: remove dependency on realloc-posix
28390         * lib/canonicalize-lgpl.c (alloc_failed)
28391         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
28392         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
28393         Use __set_errno where needed, for consistency.
28394         * lib/getdelim.c (alloc_failed): New function.
28395         (getdelim): Use it.
28397 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
28399         parse-datetime: add optional debug printing
28400         Print parsing information, warnings, and errors to stderr.
28401         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
28402         * lib/parse-datetime.y:
28403         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
28404         (PROGRESS*): Same as DEBUG, for progress reporting.
28405         (dbg_printf): Print message to stderr, with 'date' prefix.
28406         (struct parser_control): Add 'debug_*_seen' variables.
28407         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
28408         (debug_print_current_time, debug_print_relateive_time): Prints the
28409         current/relative date/time value of parser_control.
28410         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
28411         (to_year): Warn about 2-digit year parsing.
28412         (yylex):   Warn about unrecognized words.
28413         (get_effective_timezone): Returns current timezone in minutes.
28414         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
28415         clearly and unambigiously as possible.
28416         (debug_mktime_not_ok): Print detailed information about failed
28417         date/time values.
28418         (parse_datetime): Add DEBUG messages for failures, warnings. Add
28419         PROGRESS messages for status messages.
28420         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
28422 2016-08-06  Jim Meyering  <meyering@fb.com>
28424         tests/init.sh: exclude dash with bad "local" semantics
28425         * tests/init.sh (gl_shell_test_script_): Add a function to
28426         eliminate a shell like "dash" (unlike bash, zsh) that has
28427         surprising/risky "local var='...'" semantics.  Inspired by
28428         the problem and discussion in https://bugs.gnu.org/24116#11.
28430 2016-08-02  Ján Tomko  <jtomko@redhat.com>
28432         maint.mk: expand the prohibit_doubled_word regex
28433         This check has a static list of words that are checked for
28434         repetitions.  Expand it before running the perl script to
28435         avoid using expensive captures.  This decreases the cost
28436         for libvirt from 1.66s to 0.66s.
28437         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
28438         (sc_prohibit_doubled_word): Use it.
28440 2016-07-26  Ján Tomko  <jtomko@redhat.com>
28442         useless-if-before-free: skip non-matching lines early
28443         * build-aux/useless-if-before-free: First match each line with the
28444         simple/quick /\bif\b/ and reject if there is no match. This often
28445         saves the cost of the much more involved regular expression.
28446         For libvirt, this decreases the cost from 1.44s to 1.02s.
28448 2016-07-26  Ján Tomko  <jtomko@redhat.com>
28450         maint.mk: speed up sc_po_check
28451         sc_po_check would skip files based on their names, or on the
28452         existence of files with derived names. Rewrite it to use perl
28453         instead of shell to make the check faster.
28454         * top/maint.mk (perl_translatable_files_list_): Define.
28455         (sc_po_check): Use it.
28457 2016-07-30  Ján Tomko  <jtomko@redhat.com>
28459         maint.mk: speed up require_config_h_first
28460         Instead of spawning three processes per file,
28461         rewrite the check in perl and run it once for all the files.
28462         * top/maint.mk (perl_config_h_first_): Define.
28463         (sc_require_config_h_first): Use it in place of shell code.
28465 2016-07-26  Ján Tomko  <jtomko@redhat.com>
28467         maint.mk: speed up sc_po_check
28468         sc_po_check would skip files based on their names, or on the
28469         existence of files with derived names. Rewrite it to use perl
28470         instead of shell to make the check faster.
28471         * top/maint.mk (perl_translatable_files_list_): Define.
28472         (sc_po_check): Use it.
28474 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
28476         obstack: pacify GCC 6 with -Wnull-dereference
28477         Problem reported by Assaf Gordon in:
28478         http://lists.gnu.org/r/bug-gnulib/2016-07/msg00028.html
28479         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
28480         Declare with __attribute_noreturn__.
28481         * lib/obstack.h (__attribute_noreturn__): New macro.
28483 2016-07-13  Eric Blake  <eblake@redhat.com>
28485         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
28486         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
28487         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
28489 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
28491         doc: mention glibc SSIZE_MAX buglet
28492         * doc/posix-headers/limits.texi (limits.h): Document the bug.
28494 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
28496         printf-posix: Fix mingw build
28497         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
28498         expression for detecting C symbol prefixes but forgot to qoute square
28499         brackets in the command line arguments for grep.  That way when
28500         building with mingw the condition was false although it ought to be
28501         true instead.  In particular scenarios this led to the following
28502         compile error:
28504             Cannot export rpl_printf: symbol not found
28505             Cannot export rpl_scanf: symbol not found
28506             collect2: error: ld returned 1 exit status
28508         Fix this by properly quoting square brackets.
28510 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
28512         mktime: call tzset as per POSIX
28513         Problem reported by Ludovic Courtès in:
28514         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00068.html
28515         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
28516         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
28518 2016-06-26  Pádraig Brady  <P@draigBrady.com>
28520         fts: handle readdir() errors
28521         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
28522         but also upon error when it will also set errno.  Therefore
28523         flag the error case from readdir().  We treat the case where
28524         no items are read the same as if the dir can't be accessed,
28525         i.e. by setting fts_errno to FTS_DNR.
28527 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
28529         intprops: port better to GCC 7
28530         GCC 7 __builtin_add_overflow supports a new usage form, where the
28531         last argument is a null pointer, and which merely returns 1 if an
28532         overflow would occur.  This is a constant expression if all
28533         arguments are constants, and should generate faster code when code
28534         needs to be generated.
28535         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
28536         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
28537         Use builtin operations if available.
28538         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
28539         operations are available, as it's almost surely faster.
28541 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
28543         intprops-test: port to GCC 6
28544         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
28545         since the bug is not fixed in GCC 6.1.
28547 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
28549         xalloc-oversized: port to GCC 7; fewer warnings
28550         GCC 7 will have a better way to deal with integer overflow.
28551         Plus, fix a warnings problem reported by Tim Ruehsen in:
28552         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00022.html
28553         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
28554         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
28555         For GCC 5, use __xalloc_oversized if both args are constants,
28556         or if pedantic.
28558 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
28560         regex: port to Sun C
28561         Reported by Daiki Ueno.
28562         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
28563         __restrict, in prototype.  This fixes a problem I introduced in
28564         the 2016-02-19 merge from glibc.
28566 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
28568         stdbool: Restore __bool_true_false_are_defined check
28569         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
28570         __bool_true_false_are_defined is still defined, even with C++11.
28572 2016-05-31  David Seifert  <soap@gentoo.org>  (tiny change)
28574         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
28575         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
28577 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
28579         Use GCC_LINT, not lint
28580         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
28581         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
28582         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
28583         Document problem with lint and _Noreturn.
28584         * lib/diffseq.h (IF_LINT, IF_LINT2):
28585         * lib/fts.c (sccsid):
28586         * lib/getndelim2.c (IF_LINT):
28587         * lib/gl_anylinked_list2.h (gl_linked_iterator)
28588         (gl_linked_iterator_from_to):
28589         * lib/gl_anytree_list2.h (gl_tree_iterator)
28590         (gl_tree_iterator_from_to):
28591         * lib/gl_anytree_oset.h (gl_tree_iterator):
28592         * lib/gl_array_list.c (gl_array_iterator)
28593         (gl_array_iterator_from_to):
28594         * lib/gl_array_oset.c (gl_array_iterator):
28595         * lib/gl_carray_list.c (gl_carray_iterator)
28596         (gl_carray_iterator_from_to):
28597         * lib/idcache.c:
28598         * lib/inet_ntop.c (IF_LINT):
28599         * lib/regcomp.c (build_charclass_op, create_tree):
28600         * lib/regex_internal.c (re_acquire_state)
28601         (re_acquire_state_context):
28602         * lib/trigl.c (rcsid):
28603         * lib/trim.c (IF_LINT):
28604         * lib/vasnprintf.c (IF_LINT):
28605         * lib/verify.h (assume):
28606         Treat GCC_LINT like lint.
28608 2016-05-29  Bruno Haible  <bruno@clisp.org>
28610         secure_getenv: Port to many more platforms.
28611         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
28612         functions.
28613         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
28614         for non-BSD Unix platforms and for native Windows.
28615         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
28616         Prompted by a request from Nikos Mavrogiannopoulos.
28618 2016-05-27  Eric Blake  <eblake@redhat.com>
28620         canonicalize: Fix broken probe for realpath.
28621         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
28622         in logic introduced in 54615b95.
28624 2016-05-26  Eric Blake  <eblake@redhat.com>
28626         unsetenv: relax to LGPLv2+
28627         * modules/unsetenv (License): Match setenv license.
28629 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
28631         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
28632         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
28633         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
28634         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
28635         (commonarg, dirargs, dirs, infoarg, generate_ascii)
28636         (generate_html, generate_info, generate_tex, outdir)
28637         (source_extra, split, srcfile, texarg): Move above 'version'.
28638         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
28640 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
28642         manywarnings: update for GCC 6.1
28643         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
28644         Add GCC 6.1 options that apply to C.
28645         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
28646         do not apply to C, are obsolescent, etc.
28648 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
28650         glob: size_t overflow checks
28651         * lib/glob.c (__has_builtin): New macro.
28652         (size_add_wrapv, glob_use_alloca): New static functions.
28653         (glob, glob_in_dir): Check for size_t overflow in several places,
28654         and fix some size_t checks that were not quite right.
28656         glob: don't assume INT_MAX < SIZE_MAX
28657         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
28658         latter is not portable to (probably theoretical) hosts where
28659         SIZE_MAX <= INT_MAX.
28661 2016-05-09  Bruno Haible  <bruno@clisp.org>
28663         Fix undefined behaviour in gettext.h.
28664         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
28665         pointer's value after the storage it points to has been freed.
28666         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
28667         Spotted by Coverity.
28669 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
28671         git-version-gen: avoid undefined shift
28672         Problem reported by Mosè Giordano in:
28673         http://lists.gnu.org/r/bug-gnulib/2016-05/msg00012.html
28674         * build-aux/git-version-gen: Avoid undefined behavior if invoked
28675         with --prefix or --fallback but without a later argument.  While
28676         we're at it, omit unnecessary quotes.
28678 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
28680         glob: merge glibc changes into lib/glob.c
28681         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
28682         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
28683         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
28684           struct dirent [BZ #19779]
28685         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
28686           callback gl_readdir
28687         2015-10-20 Convert miscellaneous function definitions to prototype style
28688         2015-10-20 Convert 113 more function definitions to prototype style
28689           (files with assertions)
28690         2015-06-12 Fix getlogin_r namespace (bug 18527).
28691         2014-02-10 Use glibc_likely instead __builtin_expect.
28692         2013-10-20 When glob pattern contains a trailing slash match only
28693           directories. Fixes bug 10278.
28694         2013-09-04 glob: silence -Wattribute warnings
28695         2013-06-07 Avoid use of "register" as optimization hint.
28696         2012-09-25 Use size_t instead of int for internal variables in glob
28697           (bug 14621)
28698         2011-07-20 Check for overflows in expressions
28699         2011-05-28 Remove unused variable
28700         2011-05-22 Add a few more alloca size checks
28701         2010-03-27 Whitespace fixes
28702         2010-03-27 Fix one more issue with the glob patch
28703         2010-03-24 Fix glob with empty pattern
28704         2008-05-27 Remove useless more "if" tests before "free"
28705         * modules/glob (Depends-on): Add stdint.
28707 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
28709         mktime: port to stricter signed overflow checking
28710         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
28711         (long_int): Require width for INT_MAX * 3 * (seconds per year),
28712         instead of merely for INT_MAX * 2.  In practice platforms that
28713         do the latter also do the former.
28714         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
28715         (shr): New static function, replacing SHR.  All uses changed.
28716         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
28717         and TIME_T_MAX.  All uses changed.
28718         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
28719         Use long_int, not time_t.
28720         (long_int_avg): New static function, replacing time_t_avg.
28721         All uses changed.  Round toward positive infinity, as that
28722         generates slightly better code.
28723         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
28724         by INT_ADD_WRAPV.
28725         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
28726         (convert_time): New static function.
28727         (ranged_convert): Use it
28728         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
28729         Use simpler test for loop exit.
28730         (__mktime_internal): Store negative of guessed offset, to simplify
28731         overflow checking.  Remove no-longer-needed test for small time_t
28732         overflows.
28734         mktime: speed up DEBUG_MKTIME benchmarks
28735         Call tzset just once, at the start, rather than for every test
28736         case.  This lets us measure the CPU cost of mktime as opposed to
28737         that of tzset.  This is relevant when TZ is not set and glibc is
28738         being used.  This speeds up tests by a factor of 40 on my Fedora
28739         23 x86-64 platform.
28740         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
28741         to call tzset and as a sanity check.  Later on, use localtime_r
28742         instead of localtime.
28744         mktime: resurrect DEBUG_MKTIME testing
28745         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
28746         Include <string.h>, for strcmp.
28748         mktime: simplify DEBUG_MKTIME
28749         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
28750         Simplify later usage accordingly.
28752         Port mktime_internal offset to unsigned time_t
28753         This avoids some assumptions about wraparound arithmetic on
28754         signed integer overflow.
28755         * lib/mktime-internal.h (mktime_offset_t): New type.
28756         (mktime_internal): Use it in decl.
28757         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
28759         * lib/mktime.c (__mktime_internal, localtime_offset):
28760         * lib/timegm.c (timegm): Use it.
28761         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
28762         (gl_FUNC_MKTIME): Require it.
28764 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
28766         xstrtol: prohibit monstrosities like "1bB"
28767         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
28768         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
28769         "B" only if the first suffix needs a base.
28770         * tests/test-xstrtol.sh: Test this.
28772 2016-04-21  Pádraig Brady  <P@draigBrady.com>
28774         xstrtod: reinstate setting of *result upon ERANGE
28775         * lib/xstrtod.c (XSTRTOD): The user may decide to use
28776         the returned limits upon ERANGE, so allow and document that.
28778 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
28780         xstrtod: modify *result only if no errors
28781         * lib/xstrtod.c (XSTRTOD).
28783 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
28785         btowc: document problems in C locale
28786         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
28787         with mbrtowc.  See: http://bugs.gnu.org/23269#32
28789 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
28791         mktime: improve integer overflow checking
28792         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
28793         (WRAPV): Remove; no longer needed.
28794         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
28795         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
28796         Remove.  Use intprops.h defns instead.
28797         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
28798         Use bool for Boolean, for clarity.
28799         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
28800         detect integer overflow.
28801         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
28803         intprops: check two's complement assumption
28804         Suggested by Eric Blake in:
28805         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00016.html
28806         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
28807         short, int, long, and (if available) long long are two's complement.
28808         * modules/intprops (Depends-on): Add 'verify'.
28810         intprops, mktime, strtol: assume two's complement
28811         These macros were not portable to every conforming C11 ones'
28812         complement platform.  It's not worth the hassle of porting to some
28813         platforms that use ones' complement or signed magnitude, as such
28814         platforms are almost purely theoretical nowadays and porting even
28815         to some of them makes the code harder to review for little
28816         practical benefit.  Problem reported by Florian Weimer in:
28817         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
28818         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
28819         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
28820         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
28821         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
28822         (TYPE_SIGNED_MAGNITUDE):
28823         Remove.  All uses rewritten to assume two's complement, which is
28824         all we can reasonably test nowadays anyway.
28825         * top/maint.mk (_intprops_names): Remove the removed macros.
28827 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
28829         stdint: port to strict C11 left shift
28830         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
28831         Pacify clang -Wshift-negative-value, which should be an issue only
28832         on clang setups where stdint.h does not conform to C11 or to C++11.
28833         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
28835 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
28837         mbrtowc: work around glibc bug#19932
28838         Fix mbrtowc so that it never returns -1 in the C locale,
28839         as this conflicts with a future version of POSIX
28840         http://austingroupbugs.net/view.php?id=663#c2738
28841         and causes problems with GNU grep: http://bugs.gnu.org/23234
28842         See glibc bug 19932:
28843         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
28844         * doc/posix-functions/mbrlen.texi (mbrlen):
28845         * doc/posix-functions/mbrtowc.texi (mbrtowc):
28846         Document the glibc bug.
28847         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
28848         Include hard-locale.h, locale.h.
28849         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
28850         if the bug is possible.
28851         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
28852         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
28853         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
28854         * modules/mbrtowc (Depends-on): Add hard-locale.
28855         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
28856         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
28857         * tests/test-mbrtowc5.sh: New file.
28859 2016-04-03  Pedro Alves  <palves@redhat.com>
28861         stdint: detect good enough pre-C++11 stdint.h in C++ mode
28862         When gnulib is configured in C++ mode for a system with a working C99
28863         implementation of stdint.h that predates C++11, gnulib ends up
28864         substituting stdint.h anyway.  This works on most targets, but on e.g.,
28865         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
28866         MinGW is LLP64.  Instead of trying to detect the right types, detect
28867         good-enough-pre-C++11 stdint.h and in such case define
28868         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
28869         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
28870         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
28871         conforms to C99.  If it does, check whether it hides symbols
28872         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
28873         does, define those macros in config.h.
28875 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
28877         argp: merge changes from glibc
28878         Among other things, this should fix problems found by a Coverity
28879         scan and reported by Andrei Borzenkov:
28880         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00015.html
28881         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00016.html
28882         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
28883         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
28884         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
28885         * lib/argp.h:
28886         Merge changes from glibc.
28887         * tests/test-argp-2.sh: Adjust to match new behavior.
28889 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
28891         stddef: support configuring with g++
28892         Problem reported by Ángel González in:
28893         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00003.html
28894         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
28895         Do not define if _GCC_MAX_ALIGN_T is defined.
28897 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
28899         test-framework-sh: minor cleanups
28900         * tests/init.sh (testdir_prefix_): Output a trailing newline,
28901         since strictly speaking POSIX requires this.
28902         (setup_): Do not use the variable 'fail', as that makes the
28903         trace output harder to read ('fail' is typically used by
28904         tests to mean the test failed).  Treat // portably.
28905         Check that new directory is not merely a sibling of the tmp dir.
28906         Avoid unnecessary invocation of tr.
28908         test-framework-sh: revert port to NetBSD 7.0
28909         It was a false alarm; I misinterpreted Assaf Gordon's report.
28910         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
28911         Restore.
28912         (test_dir_): Adjust to mktempd_ change.
28913         (mktempd_): Restore 2nd arg.  Use -t again.
28914         (base_template_, template_, nx_): Resurrect old code.
28916         Port better to Alpine Linux
28917         Its diff implementation does not support -c, but does support -U3.
28918         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
28919         * tests/init.sh (diff_opt_): New var.
28920         (compare_): Prefer diff -U3 to diff -c to plain diff.
28922 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
28924         test-framework-sh: port to NetBSD 7.0
28925         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
28926         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
28927         Remove.  All uses removed.
28928         (test_dir_): Adjust to mktempd_ change.
28929         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
28930         (base_template_, template_, nx_): Simplify by hardcoding.
28932 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
28934         gitlog-to-changelog: suppress ignored chatter
28935         * build-aux/gitlog-to-changelog: Do not warn about skipping
28936         an SHA if it would have been ignored anyway.
28938 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
28940         setlocale: add "sv" to Windows language table
28941         * lib/setlocale.c (language_table) [W32]: Add "sv".
28942         Reported in <https://savannah.gnu.org/bugs/?44588>.
28944 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
28946         sys_select: port to new Cygwin
28947         Problem reported by Ken Brown in:
28948         https://lists.gnu.org/r/bug-gnulib/2016-03/msg00054.html
28949         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
28950         diagnostics.
28952 2016-03-17  Jim Meyering  <meyering@fb.com>
28954         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
28955         * tests/test-userspec.c (main): Remove unnecessary braces and fix
28956         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
28957           test-userspec.c:176:9: error: statement is indented as if it were \
28958             guarded by... [-Werror=misleading-indentation]
28959                    {
28960                    ^
28961           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
28962                  if (!diag && !T[i].result)
28963                  ^~
28965 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
28967         time_rz: port to clang -Wunused-const-variable
28968         * lib/time_rz.c (TZ): Remove.  All uses removed.
28970         std-gnu11: improve clang support
28971         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
28972         2016-03-15 Also try clang
28973         2016-03-15 Port C11 and C++11 testing to clang
28975         select: port more to Intel 2016.1.150 compiler
28976         Problem reported by Balázs Hajgató in:
28977         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00036.html
28978         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
28980 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
28982         select: try to port to 2016.1.150 compiler
28983         Problem reported by Balázs Hajgató in:
28984         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00026.html
28985         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
28986         POSIX specifies 'restrict'.
28988 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
28990         localename-tests: memory allocation fixes
28991         * tests/test-localename.c (test_locale_name)
28992         (test_locale_name_thread): Don't call freelocale on a locale
28993         that was the base of a successful newlocale, as that
28994         results in a double free.  Problem reported by Assaf Gordon.
28995         (test_locale_name_thread): Free saved names after use, to pacify
28996         gcc -fsanitize=address.
28998 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
29000         intprops: make .h file license match module
29001         * lib/intprops.h: Change the license wording to match glibc format.
29002         This is what is in modules/intprops anyway.  See:
29003         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
29005 2016-03-08  Eric Blake  <eblake@redhat.com>
29007         acl: fix missing return on Cygwin
29008         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
29009         fall off end of function. Fixes http://bugs.gnu.org/22949
29011 2016-03-05  Bruno Haible  <bruno@clisp.org>
29013         extern-inline: port to PGI CC
29014         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
29015         keyword 'inline'.
29016         Reported by Adam James Stewart in:
29017         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00006.html
29019 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
29021         signbit: port back to pre-C++11 GCC
29022         * lib/math.in.h (signbit): Do previous change only if
29023         __cplusplus < 201103.  See Jonathan Wakely in:
29024         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
29026 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
29028         mountlist: recognize autofs-mounted remote file systems, too
29029         Originally reported at: https://bugzilla.redhat.com/1309247
29030         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
29031         "-hosts" because it is used by autofs to mount remote file systems.
29033 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
29035         signbit: port to C++ with GCC 6
29036         * lib/math.in.h (signbit) [__cplusplus]:
29037         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
29038         http://lists.gnu.org/r/bug-gnulib/2016-02/msg00005.html
29040         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
29042         regex: make it closer to libc
29043         Make Idx a signed type, rather than possibly unsigned.
29044         The unsignedness was not really buying us anything, since the code
29045         overflows for other reasons before getting to PTRDIFF_MAX.  Making
29046         it signed allows us to use -1 and -2 with abandon, like libc does,
29047         thus lessening the number of differences between gnulib and libc.
29048         Also, it should help avoid gratuitous warnings like the one
29049         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
29050         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
29053         regex: merge patches from libc
29055         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
29056         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
29057         Convert miscellaneous function definitions to prototype style.
29058         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
29059         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
29060         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
29061         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
29062         (re_search_internal):
29063         Convert to prototype-style function definition.
29064         Use internal_function for internal functions.
29066 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
29068         stdalign: port to older HP and IBM cc
29069         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
29070         C compilers, by checking their version numbers.  These version
29071         numbers appear in MariaDB and in Qt code that dates way back and
29072         that conditiionally uses the 'aligned' attribute.
29074 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
29076         stdalign: port to clang 3.7.0
29077         Problem reported by Herbert J. Skuhra in:
29078         http://lists.gnu.org/r/emacs-devel/2016-02/msg00476.html
29079         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
29080         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
29081         https://llvm.org/bugs/show_bug.cgi?id=26547
29083 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
29085         readdir_r: now obsolescent
29086         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
29087         * lib/mountlist.c (read_file_system_list): Add a FIXME.
29089 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
29091         misc: port better to gcc -fsanitize=address
29092         Without these patches, ./configure CFLAGS='-fsanitize=address'
29093         would compute incorrect values.  This patch fixes some (but not all)
29094         test failures with recent glibc, with this configuration.
29095         * m4/acl.m4 (gl_ACL_GET_FILE):
29096         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
29097         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
29098         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
29099         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
29100         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
29101         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
29102         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
29103         * m4/getline.m4 (gl_FUNC_GETLINE):
29104         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
29105         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
29106         * m4/regex.m4 (gl_REGEX):
29107         * m4/strndup.m4 (gl_FUNC_STRNDUP):
29108         * tests/test-calloc-gnu.c (main):
29109         * tests/test-duplocale.c (main):
29110         * tests/test-getgroups.c (main):
29111         * tests/test-getline.c (main):
29112         * tests/test-inttostr.c (main):
29113         * tests/test-localename.c (test_locale_name)
29114         (test_locale_name_thread, test_locale_name_environ)
29115         (test_locale_name_default):
29116         * tests/test-regex.c (main):
29117         * tests/test-setlocale1.c (main):
29118         * tests/test-stat.h (test_stat_func):
29119         Free heap-allocated storage before exiting.
29120         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
29121         Don't match *_foo symbols inserted by AddressSanitizer.
29122         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
29124 2016-02-02  Jim Meyering  <meyering@fb.com>
29126         verify-tests: also remove stray test-verify.Tpo
29127         * modules/verify-tests (Makefile.am): Arrange for "make clean"
29128         to remove the test-verify.Tpo file that is left behind by
29129         the automake-generated rule upon compilation failure.
29130         Otherwise, that .Tpo file would cause a failed "make distcheck"
29131         at least for grep.
29133 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
29135         std-gnu11: new module
29136         This makes it easier for applications to prefer C11 and C++11
29137         to older variants, when compiling C and C++ code.
29138         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
29139         a nontrivial chunk of GPLed Autoconf source code.
29140         * COPYING: Mention the m4/*.m4 copyright situation.
29141         * MODULES.html.sh (std-gnu11): New module.
29142         * m4/std-gnu11.m4, modules/std-gnu11: New files.
29144 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
29146         get-permissions, strftime: fix grammar in comments
29147         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
29148         some grammar fixes Alan Mackenzie made to GNU Emacs.
29150 2016-01-25  Daiki Ueno  <ueno@gnu.org>
29152         gettext: mark as obsolete
29153         Suggested by Paul Eggert in:
29154         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00101.html
29155         * modules/gettext (Status): Mark as obsolete.
29156         (Notice): Suggest to use 'gettext-h' instead.
29157         * modules/gettext-h (Description): Suggest GNU gettext, instead of
29158         the 'gettext' module.
29160 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
29162         gnulib-tool: don't give up on ln -s so easily
29163         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
29164         because an earlier one failed.  The targets could be on different
29165         file systems.  Problem reported by KO Myung-Hun in:
29166         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00081.html
29168         closedir: fix OS/2-related typos
29169         Problem reported by KO Myung-Hun in:
29170         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00107.html
29171         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
29172         in the last couple of changes.
29174 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
29176         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
29177         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
29178         copying a directory.
29180 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
29182         regex: treat [x] as x if x is a unibyte encoding error
29183         Problem reported by Aharon Robbins in:
29184         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00091.html
29185         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
29186         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
29188         closedir, dirfd, opendir: port to OpenSolaris 5.10
29189         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
29190         * m4/dirfd.m4 (gl_FUNC_DIRFD):
29191         * m4/opendir.m4 (gl_FUNC_OPENDIR):
29192         Don't use ${word##pat} substitution, as it doesn't work in
29193         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
29194         http://bugs.gnu.org/22443#11
29196 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
29198         bootstrap: use American spelling
29199         * build-aux/bootstrap: Honor American spelling.
29201 2016-01-22  Karl Berry  <karl@freefriends.org>
29203         * doc/posix-functions/localtime.texi,
29204         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
29206 2016-01-21  Bruno Haible  <bruno@clisp.org>
29208         hash-pjw-bare: fix comment
29209         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
29211         wcwidth: Replace also on OpenBSD 5.8
29212         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
29213         * doc/posix-functions/wcwidth.texi: Update.
29215 2016-01-20  Pádraig Brady  <P@draigBrady.com>
29217         gnu-web-doc-update: fix addition of new files
29218         If there were already added (emnpty) dirs,
29219         then cvs aborts the add with the message:
29220           cvs [add aborted]: there is a version in <./dirname> already
29221         * build-aux/gnu-web-doc-update: Add directories separately
29222         to the addition of files, to avoid the above issue
29223         impacting the addition of files.
29225 2016-01-19  Daiki Ueno  <ueno@gnu.org>
29227         utimens-tests: avoid pulling gettext .m4 files
29228         Although this is not the right fix to the original problem:
29229         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html
29230         it makes it possible again for consumer projects to use arbitrary
29231         version of gettext, through the steps described at:
29232         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
29233         See here for details:
29234         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00079.html
29235         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
29236         'gettext'.
29237         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
29238         'gettext'.
29240 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
29242         regex: pacify static checkers
29243         Problem and draft fix reported by Aharon Robbins in:
29244         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
29245         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
29246         Clear memory to pacify static checkers.
29248         regex: fix [ diagnostic
29249         Problem and fix reported by Aharon Robbins in:
29250         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
29251         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
29253         regex: fix memory leaks
29254         Problem and draft fix reported by Aharon Robbins in:
29255         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
29256         * lib/regcomp.c (build_range_exp, build_charclass_op)
29257         * lib/regex_internal.c (re_dfa_add_node):
29258         Fix memory leak on failure.
29260 2016-01-18  Pádraig Brady  <P@draigBrady.com>
29262         fts: don't unconditionally use leaf optimization for NFS
29263         NFS st_nlink are not accurate on all implementations,
29264         leading to aborts() if that assumption is made.
29265         See <https://bugzilla.redhat.com/1299169>
29266         * lib/fts.c (leaf_optimization_applies): Remove NFS from
29267         the white list, and document the issue.
29269 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
29270             KO Myung-Hun  <komh@chollian.net>
29272         gnulib-tool: don't assume ln -s works
29273         * gnulib-tool (func_ln_s): New function.
29274         (func_ln): Use it.
29276 2016-01-15  KO Myung-Hun  <komh@chollian.net>
29278         utimes: detect utimes() correctly on OS/2 kLIBC
29279         utimes() of OS/2 kLIBC has some limitations.
29280         1. OS/2 itself supports a file date since 1980 year in local time.
29281         2. OS/2 itself supports only even seconds for a file time.
29282         3. utimes() of OS/2 kLIBC does not work on an opened file.
29283         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
29284         * doc/posix-functions/utimes.texi: Document the above limitations of
29285         utimes() on OS/2 kLIBC.
29287 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
29288             KO Myung-Hun  <komh@chollian.net>
29290         openat_proc_name: port to OS/2 kLIBC
29291         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
29292         instead of /proc/self/fd.
29293         * lib/openat-proc.c (openat_proc_name):
29294         Don't assume file name length is less than INT_MAX.
29295         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
29297 2016-01-14  KO Myung-Hun  <komh@chollian.net>
29299         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
29300         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
29301         definitions of intptr_t and uintptr_t (which use int and unsigned)
29302         to avoid clashes with declarations of system functions like sbrk.
29303         * lib/stdint.in.h (intptr_t, uintptr_t): Check
29304         _INTPTR_T_DECLARED before defining them.
29306         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
29307         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
29308         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
29309         Declare on kLIBC.
29310         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
29311         fd associated with dirp.
29312         (_gl_register_dirp_fd): New. Register fd associated with dirp to
29313         dirp_fd_list.
29314         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
29315         (dirfd): Implemented for kLIBC.
29316         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
29317         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
29318         succeeds.
29319         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
29320         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
29321         (REPLACE_DIRFD): Define to 1 if replaced.
29322         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
29323         * modules/closedir (Depends-on): Add dirfd.
29324         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
29325         condition.
29326         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
29327         * modules/opendir (Depends-on): Add dirfd.
29329         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
29330         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
29331         * lib/dup.c (dup_nothrow): New.
29332         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
29333         (klibc_dup2): New.
29334         * lib/fcntl.c (klibc_fcntl): New.
29335         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
29336         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
29337         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
29338         fd.
29340         pipe_filter_ii_execute: port to OS/2 kLIBC
29341         Pipes on kLIBC do not support O_NONBLOCK like Win32.
29342         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
29343         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
29344         Reuse Win32 code on OS/2 kLIBC.
29345         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
29346         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
29348         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
29349         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
29350         static inline function.  The implementation of wcwidth in wcwidth.c
29351         causes a "conflicting types" error.
29352         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
29354         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
29355         spawn() on OS/2 kLIBC is not silly like one on Windows
29356         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
29357         empty string on OS/2 kLIBC.
29359         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
29360         On OS/2 kLIBC, select() works only on sockets.
29361         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
29363         binary-io: don't put fd in binary mode if it is a console on EMX
29364         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
29365         a console on EMX.
29367 2016-01-15  Pádraig Brady  <P@draigBrady.com>
29369         doc: mention unfixed issues with unsupported localtime() values
29370         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
29371         returns nonsense for localtime(2^56).
29372         * doc/posix-functions/localtime_r.texi: Likewise.
29374 2016-01-14  Pádraig Brady  <P@draigBrady.com>
29376         doc: mention setlocale() issues on OpenBSD
29377         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
29378         never fails, and the need to check categories individually.
29380 2016-01-14  Pádraig Brady  <P@draigBrady.com>
29382         sig2str: list all signals on FreeBSD >= 7
29383         FreeBSD >= 7 is contravening POSIX by not defining NSIG
29384         to the maximal statically defined signal value.
29385         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
29386         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
29387         where available, even when NSIG is defined.
29389 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
29391         acl-permissions: port to USE_ACL==0 platforms
29392         I ran into this problem when building bleeding-edge GNU Emacs
29393         with gcc -fsanitize=address on Fedora 23.  On this platform
29394         the ACL library does not pass the 'configure' test and Emacs
29395         then does not build due in part to what appear to be typos in the
29396         ACL part of Gnulib.
29397         * lib/acl-internal.c (free_permission_context):
29398         * lib/acl-internal.h (struct permission_context):
29399         Test whether USE_ACL is nonzero, not whether it is defined.
29401 2016-01-12  Martin Sebor  <msebor@redhat.com>
29403         mktime: rename macro to avoid glibc clash
29404         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
29405         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
29407 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
29409         Port "$@" to OpenIndiana ksh93
29410         In http://lists.gnu.org/r/bug-autoconf/2015-12/msg00000.html
29411         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
29412         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
29413         bug long-dead shells, so remove the workaround.
29414         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
29415         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
29416         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
29417         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
29418         Use "$@" instead of ${1+"$@"}.
29420         Port Universal Time settings to strict POSIX
29421         * build-aux/announce-gen, build-aux/bootstrap:
29422         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
29423         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
29424         * build-aux/gnupload, build-aux/mkinstalldirs:
29425         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
29426         * build-aux/update-copyright, build-aux/useless-if-before-free:
29427         * build-aux/vc-list-files, tests/test-strftime.c:
29428         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
29429         but POSIX says the behavior of TZ="UTC" is undefined.
29431 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
29433         msvc-inval: fix problem with unset shell var
29434         Problem reported by Karl Berry in:
29435         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00004.html
29436         * modules/msvc-inval (Depends-on):
29437         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
29438         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
29440 2016-01-01  Pádraig Brady  <P@draigBrady.com>
29442         tests: for compare_(), use cmp -s where available
29443         * tests/init.sh (compare_): Only fall back to cmp without
29444         the POSIX defined -s option, where this is not available.
29446 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
29448         version-etc: new year
29449         * build-aux/gendocs.sh (version):
29450         * doc/gendocs_template:
29451         * doc/gendocs_template_min:
29452         * doc/gnulib.texi:
29453         * lib/version-etc.c (COPYRIGHT_YEAR):
29454         Update copyright dates by hand in templates and the like.
29455         * all files: Run 'make update-copyright'.
29457 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
29459         human: fix output buffer overrun by 1
29460         * lib/human.c (human_readable): Fix off-by-one typo in buffer
29461         calculation that could lead to a one-byte buffer overrun.
29463 2015-12-28  Daiki Ueno  <ueno@gnu.org>
29465         maint: fix operator precedence in mbrtowc test
29466         This is a fix for test breakage introduced by commit 45228d96; the
29467         equality expression must be parenthesized when negated with '!',
29468         otherwise we always get:
29470           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
29472         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
29473         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
29475 2015-12-23  James Youngman  <jay@gnu.org>
29477         regexprops-generic: update from regex.h
29478         * doc/regexprops-generic.texi: update by running the regexprops binary
29479         from findutils (the command line is 'regexprops "Regular Expressions"
29480         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
29481         gnulib with GNU grep had made this document out-of-date.
29483 2015-12-23  Pádraig Brady  <P@draigBrady.com>
29485         strftime-tests: avoid false failure on OS X
29486         * tests/test-strftime.c (struct localtime_rz_test): Add an
29487         ahistorical member which is used to warn rather than fail
29488         when tm_isdst isn't set for such entries.  This is the case for
29489         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
29491 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
29493         fts: ensure leaf optimization is used for NFS
29494         NFS provides usable dirent.d_type but not necessarily for all entries
29495         of large directories.  See <https://bugzilla.redhat.com/1252549>
29496         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
29498 2015-12-20  Pádraig Brady  <P@draigBrady.com>
29500         fts: enable leaf optimization for XFS
29501         XFS provides usable dirent.d_type only for DT_DIR,
29502         but the noleaf optimization still applies.
29503         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
29505 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
29507         intprops: comment fix
29508         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
29509         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00013.html
29511         intprops-test: work around GCC bug 68971
29512         Problem reported by Pádraig Brady in:
29513         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00011.html
29514         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
29515         (main): Add a case that better tests 64-bit long in this area.
29517 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
29519         gnulib-tool: allow multiple --local-dir usage
29520         * gnulib-tool: Use --local-dir to construct compound
29521         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
29522         PATH_SEPARATOR early.
29523         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
29524         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
29525         func_determine_path_separator because that needs to be detected
29526         earlier now.
29527         (func_determine_path_separator): New function.
29528         (func_path_foreach, func_path_foreach_inner): New functions.
29529         (func_path_prepend, func_path_append): Likewise.
29530         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
29531         (func_lookup_file, func_all_modules): Use new functions to work
29532         with local_gnulib_path.
29533         (func_modules_in_dir, func_exists_module): New callbacks for
29534         func_path_foreach.
29535         (func_exists_module, func_get_tests_module): Likewise.
29536         (func_is_local_file, func_should_symlink): New helper methods.
29537         (func_add_file, func_update_file): Use new func_should_symlink
29538         instead, DRY.
29539         (func_reconstruct_cached_local_gnulib_path): New helper.
29540         (func_reconstruct_cached_dir): New callback.
29541         (func_import): The cached_local_gnulib_dir renamed to
29542         cached_local_gnulib_path similarly to local_gnulib_dir.
29543         Use new func_reconstruct_cached_local_gnulib_path.
29544         (func_count_relative_local_gnulib_path): New sub-method.
29545         (func_create_testdir): Use func_should_symlink, DRY.
29546         (func_create_megatestdir): Use new functions to work with
29547         local_gnulib_path correctly.
29548         (func_append_local_dir): New helper.
29550 2015-12-08  Pádraig Brady  <P@draigBrady.com>
29552         fix freadptr to work with ungetc on all uClibc configs
29553         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
29554         where GNU coreutils cut(1) generates invalid output on uClibc
29555         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
29556         * lib/freadptr.c (freadptr): Return NULL if there are
29557         ungotten chars.  In this case freadseek() will iterate
29558         again to process the ungotten character.
29560 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
29562         xalloc-oversized: improve performance with GCC 5
29563         * lib/xalloc-oversized.h (xalloc_oversized):
29564         Improve performance with GCC 5 by using __builtin_mul_overflow.
29566 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
29568         intprops: new public macro EXPR_SIGNED
29569         Emacs can use this macro, so make it public.
29570         * doc/intprops.texi (Arithmetic Type Properties): Rename from
29571         'Integer Type Determination', since some of these macros apply
29572         to non-integer types.  Clarify what kinds of constant expressions
29573         these macros return.  Say when the arguments can be non-integers.
29574         Mention newly published macro EXPR_SIGNED.
29575         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
29576         make it public.  All uses changed.
29578         intprops: fix typo in clang port
29579         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
29580         '__builtin_add_overflow' that is not caught by compiler.
29582 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
29584         test-timespec: fix typo in previous change
29585         * tests/test-timespec.c (main): Fix typo that reduced test quality.
29587         timespec-sub: fix overflow bug; add tests
29588         * lib/timespec-add.c (timespec_add):
29589         * lib/timespec-sub.c (timespec_sub):
29590         Work even if time_t is narrower than int (a theoretical
29591         possibility).  Redo code for a bit more clarity.
29592         * lib/timespec-sub.c (timespec_sub):
29593         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
29594         * modules/timespec-tests, tests/test-timespec.c: New files.
29596         intprops-test: suppress -Woverlength-strings
29597         Problem reported by Pádraig Brady in:
29598         http://lists.gnu.org/r/bug-gnulib/2015-11/msg00008.html
29599         It is not worth the hassle to port this test to compilers that
29600         cannot handle long strings in diagnostics.
29601         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
29603 2015-11-03  Pádraig Brady  <P@draigBrady.com>
29605         quotearg: add quotearg_n_style_colon()
29606         This quotes with default options of the specified style,
29607         but with quoting enabled for instances of ':'.
29608         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
29609         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
29611 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
29613         intprops: revise _WRAPV macros, revert _OVERFLOW
29614         The incompatible changes to the _OVERFLOW macros were too much of
29615         a hassle in practice, so revert them.  Instead, change the new
29616         _WRAPV macros to make them closer in behavior to GCC 5's new
29617         builtin_add_overflow etc. functions.  No other software was using
29618         these newly-added macros yet, so this should be OK.
29619         * NEWS: Revert previous change, since the incompatible change
29620         has been reverted, and nobody used the incompatible version.
29621         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
29622         Document revised behavior.
29623         (Integer Range Overflow): Adjust example to match above revisions.
29624         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
29625         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
29626         these can be used in integer constant expressions again.
29627         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
29628         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
29629         needed.
29630         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
29631         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
29632         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
29633         Remove, as they did not seem that useful.
29634         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
29635         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
29636         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
29637         Support new semantics.
29638         (__has_builtin): New macro, if not alreay defined.
29639         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
29640         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
29641         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
29642         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
29643         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
29644         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
29645         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
29646         New macros.
29647         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
29649 2015-11-03  Jim Meyering  <meyering@fb.com>
29651         intprops: add parentheses for when OP has precedence lower than "-"
29652         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
29653         "a OP b" must be parenthesized for when OP is like "<<", which has
29654         lower precedence than the following "-". Reported by Pádraig Brady.
29656 2015-11-03  Pádraig Brady  <P@draigBrady.com>
29658         quotearg: constify get_quoting_style parameters
29659         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
29660         * lib/quotearg.c (get_quoting_style): Likewise.
29662 2015-11-02  Pádraig Brady  <P@draigBrady.com>
29664         quotearg: add support for $'' shell escaping
29665         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
29666         items and descriptions.
29667         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
29668         above types by quoting like "shell", but using $'...' syntax
29669         for non printable characters, which should provide unambiguous
29670         printable output for any input.
29671         * tests/test-quotearg-simple.c: Update accordingly.
29673 2015-11-02  Pádraig Brady  <P@draigBrady.com>
29675         maint: use a more standard return from mbrtowc test
29676         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
29677         from the test program as this is non standard and often
29678         indicates an unhandled case in the test program.
29679         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
29681 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
29683         intprops: add WRAPV and const flavors for GCC 5
29684         If available, use GCC 5's builtin functions for efficient integer
29685         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
29686         and safely compute the low-order bits of the correct answer.
29687         A downside of these efficient functions is that they cannot be
29688         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
29689         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
29690         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
29691         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
29692         Document the changes.
29693         (Wraparound Arithmetic): New section.
29694         (Integer Range Overflow):
29695         Put this subsection last, since it's least useful.
29696         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
29697         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
29698         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
29699         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
29700         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
29701         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
29702         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
29703         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
29704         New macros.
29705         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
29706         Generate calls to GCC builtins if available, for speed.
29707         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
29708         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
29709         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
29710         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
29711         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
29712         (CHECK_QUOTIENT, CHECK_REMAINDER):
29713         Test WRAPV and CONST flavors (when available) too.
29715 2015-10-30  Pádraig Brady  <P@draigBrady.com>
29717         doc: use extended timezone format in iso-8601 example
29718         * doc/parse-datetime.texi: The standard states that extended format
29719         is to be used consistently throughout.
29720         Note that lib/parse-datetime.y can handle either tz format.
29722 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
29724         stdalign: port to Sun C 5.9
29725         * doc/posix-headers/stdalign.texi: Document this.
29726         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
29727         __attribute__ ((__aligned__ (...))).
29729 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
29731         time_rz: fix comment about tzalloc
29732         * lib/time_rz.c (tzalloc): Fix comment.
29734 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
29736         stdalign: work around pre-4.9 GCC x86 bug
29737         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
29738         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
29739         http://lists.gnu.org/r/bug-gnulib/2015-10/msg00038.html
29741 2015-10-18  Pádraig Brady  <P@draigBrady.com>
29743         maint.mk: sc_tight_scope: remove extraneous expressions
29744         * top/maint.mk (tight_scope): This is not really required since
29745         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
29746         that matches all nm entries.  But it does remove extraneous entries
29747         that may be confusing or cause issue in future maintenance.
29749 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
29751         time_rz: return NULL if localtime_r fails
29752         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
29753         while still attempting to pacify bleeding-edge GCC.
29755         fts: port to C11 alignof
29756         * doc/posix-headers/stdalign.texi (stdalign.h):
29757         Document the C11 restriction.
29758         * lib/fts.c: Include stddef.h, for max_align_t.
29759         (fts_alloc): Align using max_align_t, not FTSENT.
29760         * modules/fts (Depends-on): Add stddef.
29762 2015-10-18  Jim Meyering  <meyering@fb.com>
29764         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
29765         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
29766         would see this:
29768         lib/time_rz.c: In function 'localtime_rz':
29769         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
29770           [-Werror=nonnull]
29771                    if (tm && !save_abbr (tz, tm))
29772                        ^
29774         That was complaining about "tm" because it is a parameter that was
29775         declared with the __nonnull__ attribute.
29776         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
29777         result of localtime_r.
29779 2015-10-17  Jim Meyering  <meyering@fb.com>
29781         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
29782         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
29783         name-extraction regexp mistakenly used \S+, and would mistakenly
29784         extract "*F" from "extern int *F()" rather than the desired "F".
29785         Use \w+ instead.
29787 2015-10-17  Jim Meyering  <meyering@fb.com>
29789         maint.mk: sc_tight_scope: factor and support OS X
29790         * top/maint.mk (_gl_tight_scope): Address three issues:
29791         - factor out four instances of code that wraps a string in "^...$"
29792         - allow nm-reported symbol names to have an optional leading "_"
29793         - add "main" to the list of ignored variable names, because on os x,
29794         "main" has nm-reported type "S" in the variable-checking section.
29796 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
29798         safe-alloc-tests: fix typo in license header
29799         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
29801 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
29803         copy-file: fix mem leak in error case
29804         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
29805         upon error opening or performing I/O to the src and dest files.
29807 2015-10-15  Mike Frysinger  <vapier@chromium.org>
29809         localename: control langinfo.h inclusion
29810         This header is only used to work around buggy behavior in old
29811         versions of glibc, so do not include it all the time.  Otherwise
29812         we get build failures on systems that do not provide langinfo.h.
29813         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
29814         in the source later on.
29815         The patch was originally submitted to gettext as:
29816         https://lists.gnu.org/r/bug-gettext/2015-10/msg00011.html
29818 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
29820         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
29821         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
29822         * lib/u64.c, lib/unistd.c:
29823         Append 'typedef int dummy;', to pacify compilers that are picky
29824         about empty translation units.
29826 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
29828         accept4-tests: fix to avoid non portable flags
29829         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
29830         as they are the only documented ones, and passing others may trigger
29831         EINVAL (seen on FreeBSD 10.1-RELEASE).
29832         * doc/glibc-functions/accept4.texi: Mention that we don't provide
29833         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
29835 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
29837         gnulib-tool: fix tests of 'extensions' module
29838         This complements f8fe25fab60e3c687a124 commit.
29839         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
29840         emitting of initial gl_EARLY macros.
29841         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
29842         replaced with func_emit_pre_early_macros call.
29844 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
29846         unicase/locale-language: fix typo in utf-8 cookie
29847         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
29848         Problem reported by Zbigniew Jędrzejewski-Szmek.
29850 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
29852         xalloc: do not worry about GCC 5 warning on 32 bit
29853         * lib/xalloc.h: Revert previous change.
29854         I found a better way to fix this in coreutils.
29856 2015-10-02  Pádraig Brady  <P@draigBrady.com>
29858         xalloc: avoid GCC 5.1 warning on 32 bit
29859         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
29860         xalloc_oversized(), which was seen to give this warning
29861         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
29862         when simplifying conditional".
29864 2015-10-02  Daiki Ueno  <ueno@gnu.org>
29866         uniname/uniname-tests: avoid compiler warnings
29867         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
29868         unused local variables.
29869         (test_alias_lookup): Fix alias name display in failure cases.
29871 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
29873         c-ctype: do not worry about EBCDIC + char signed
29874         Drop support for EBCDIC with char being signed, as this breaks too
29875         many programs.  Problem reported by Ben Pfaff in:
29876         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00053.html
29877         * lib/c-ctype.h: Verify that we are not using EBCDIC with
29878         char being signed.
29879         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
29880         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
29881         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
29882         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
29883         * tests/test-c-ctype.c (test_all):
29884         Simplify by assuming standard char values cannot be negative.
29885         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
29887 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
29889         c-ctype: port better to z/OS EBCDIC
29890         Problems reported by Daniel Richard G. in:
29891         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00050.html
29892         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
29893         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
29894         (_C_CTYPE_OTHER_CNTRL): New macro.
29895         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
29896         from SCHAR_MIN, as the functions are defined only from values
29897         promoted from char or from unsigned char, not necessarily from
29898         signed char.
29900 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
29902         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
29904         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
29905         and ARFLAGS variables.  Doing this unconditionally could break
29906         later Automake's AM_PROG_AR invocation (at least it's
29907         AC_CHECK_TOOLS call to detect correct 'ar' binary).
29909         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
29910         Amsterdam Compiler Kit, so make the previous code to have effects
29911         only on ACK, and rather automatically call the Automake's
29912         AM_PROG_AR as soon as possible to decide other cases.
29914         References:
29915         http://lists.gnu.org/r/bug-gnulib/2015-07/msg00001.html
29917         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
29918         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
29919         is possible, keep setting AR/ARFLAGS to reasonable defaults.
29920         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
29921         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
29922         'extensions' module is used.
29923         * modules/extensions (configure.ac-early): Remove as this snippet
29924         is added to gnulib-comp.m4 earlier anyway.
29926 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
29928         sockets: MS Windows initalization fixes
29929         Problem reported by Test User in:
29930         http://lists.gnu.org/r/help-shishi/2015-09/msg00001.html
29931         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
29932         Correct the endianness.
29933         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
29934         number mismatch, not just on <.  Cleanup before any such failure.
29936 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
29938         gc: fix detection of installed libgcrypt version
29939         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
29940         at least as recent as 1.4.4.  The previously used macro is not
29941         available now, since modules were removed in version 1.6.0.
29943 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
29945         c-ctype: rewrite to use inline functions
29946         This simplifies maintenance, since it makes for just one
29947         implementation of each function, letting the compiler have the fun
29948         of optimization.  In practice this works well nowadays with GCC.
29949         E.g., c_isascii might need only three instructions even though the
29950         source code lists every ASCII character individually in a large
29951         switch statement.
29952         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
29953         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00037.html
29954         * NEWS: Document the API change.
29955         * lib/c-ctype.c: Drastically simplify, since this now just expands
29956         inline functions.
29957         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
29958         (C_CTYPE_INLINE): New macro.
29959         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
29960         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
29961         Verify that either ASCII or EBCDIC is being used.
29962         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
29963         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
29964         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
29965         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
29966         New private macros.
29967         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
29968         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
29969         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
29970         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
29971         (c_tolower, c_toupper): When converting, return the unsigned char,
29972         as that is what z/OS does.
29973         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
29974         of some c-ctype.h macros.
29975         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
29976         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
29977         c_tolower promotion to be compatible with z/OS.
29979 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
29981         gitlog-to-changelog: trim only trailing whitespaces
29982         This is fix for --format regression introduced by commit
29983         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
29984         doubled %n string) had no effect anymore.  This format
29985         specification has been used e.g. by GNU paxuitils (commit
29986         edfd8bcc3).
29988         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
29989         newlines in commmit messages.
29991 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
29993         Test that c_iscntrl agrees with iscntrl, etc.
29994         Suggested by Daniel Richard G. in:
29995         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00034.html
29996         * modules/c-ctype-tests (Depends-on): Add ctype.
29997         * tests/test-c-ctype.c: Include <ctype.h>.
29998         (NCHARS): New constant.
29999         (test_agree_with_C_locale): New function.
30000         (main): Use it.
30001         (test_all): Use named constants.
30003         c-ctype: improve c_isascii testing
30004         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
30005         Add a test to count the number of ASCII characters.
30007 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
30009         savewd: remove SAVEWD_CHDIR_READABLE
30010         It was problematic in the light of file systems that ignore umask.
30011         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
30012         * NEWS: Document this.
30013         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
30014         successful, -1 (setting errno) on failure, rather than something
30015         more complicated than that.
30016         * lib/mkdir-p.c (make_dir_parents):
30017         Do not use SAVEWD_CHDIR_READABLE.
30018         * lib/savewd.c (savewd_chdir):
30019         Remove support for SAVEWD_CHDIR_READABLE.
30020         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
30022         c-ctype: port better to EBCDIC
30023         Problems reported by Daniel Richard G. in
30024         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00020.html
30025         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
30026         Include "verify.h".
30027         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
30028         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
30029         Define as enum constants with value false, if not defined, so that
30030         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
30031         code more portable, as both branches of the 'if' are compiled on
30032         all platforms.
30033         (C_CTYPE_EBCDIC): New constant.
30034         Verify that the character set is either ASCII or EBCDIC.
30035         (to_char): New static function.
30036         (c_isascii, c_iscntrl):
30037         Assume standard control-character assignments for EBCDIC.
30038         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
30039         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
30040         Rewrite to use 'if' instead of 'ifdef'.
30041         Use to_char if non-ASCII.  Prefer <= to >=.
30042         Prefer true and false to 1 and 0, for booleans.
30043         (c_iscntrl): Use 'if', not 'ifdef'.
30044         * modules/c-ctype (Depends-on): Add verify.
30045         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
30046         (to_char): New function.
30047         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
30049 2015-09-21  Pádraig Brady  <P@draigBrady.com>
30051         nanosleep: fix return code for interrupted replacement
30052         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
30053         that we return -1 in the case the call is interrupted by a signal,
30054         rather than the current value of 1.
30055         Diagnosed and tested by Daniel Richard G.
30057 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
30059         Diagnose ERE '()|\1'
30060         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
30061         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
30062         track of the set of previously-completed subexpressions available
30063         before the first alternative, and restore this set just before
30064         parsing each subsequent alternative.  This lets us diagnose the
30065         invalid back-reference in the ERE '()|\1'.
30067         regex: merge patches from libc
30069         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
30070         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
30071         * lib/regex_internal.h:
30072         Include <libc-lock.h> instead of <bits/libc-lock.h>.
30074         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
30075         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
30076         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
30077         wcscoll.
30078         * lib/regexec.c (check_node_accept_bytes): Likewise.
30080         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
30081         Fix regex wcrtomb namespace (bug 18496).
30082         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
30083         instead of wcrtomb.
30085         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
30086         Fix regex wctype namespace (bug 18495).
30087         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
30088         instead of towlower.
30089         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
30090         instead of iswlower.  Call __towupper instead of towupper.
30091         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
30092         instead of iswalnum.
30094         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
30095         * lib/regcomp.c (parse_bracket_exp): Initialize type to
30096         COLL_SYM in a couple of places to avoid uninitialized variable
30097         wanings on tilegx gcc 4.8.2.
30099         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
30100         * lib/regex_internal.h: Remove NOT_IN_libc.
30102         2014-11-17  Andreas Schwab  <schwab@suse.de>
30103         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
30105         2014-09-11  Roland McGrath  <roland@hack.frob.com>
30106         Move findidx nested functions to top-level.
30107         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
30108         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
30109         Pass new arguments to findidx.
30110         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
30111         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
30112         Don't #include it inside the function.  Pass new arguments to findidx.
30113         * lib/regex_internal.h:
30114         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
30115         (re_string_elem_size_at): Don't #include it inside the function.
30116         Pass new arguments to findidx.
30118         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
30119         Check if DEBUG is defined in regex_internal.c
30120         * lib/regex_internal.c: Check if DEBUG is defined and is set.
30122 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
30124         ceill: detect buggy OpenBSD implementation
30125         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
30126         which returns zero for small values.  Discussed here:
30127         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00010.html
30129 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
30131         mountlist: add me_mntroot field on Linux machines
30132         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
30133         mount_entry so Linux machines based on /proc/self/mountinfo can
30134         distinguish between bind mounts and original mounts.  In reality bind
30135         mounts aren't treated differently than mountroot=/ mounts by the
30136         kernel, but the user often wants these bind mounts distinguished.
30137         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
30138         More details at https://pad.lv/1432871
30140 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
30142         doc: Describe to use multiple instances of gnulib
30143         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
30144         instances of gnulib with different modules can be used, for example one
30145         for a lib and another one for associated tools.
30147 2015-09-01  Pádraig Brady  <P@draigBrady.com>
30149         base32: mark function as __attribute__ const
30150         * lib/base32.h (isbase32): Mark __attribute__ const as
30151         suggested by GCC, and consistent with the base64 module.
30153 2015-08-20  Daiki Ueno  <ueno@gnu.org>
30155         gnulib-tool: don't transform binary files with sed
30156         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
30157         .mo and .class files.
30158         Reported by Denis Denisov.
30160 2015-08-10  Daiki Ueno  <ueno@gnu.org>
30162         gperf: respect silent rules
30163         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
30164         V_GPERF_0 for silent rules.
30165         * modules/iconv_open (Makefile.am): Use V_GPERF.
30166         * modules/unicase/locale-language (Makefile.am): Likewise.
30167         * modules/unicase/special-casing (Makefile.am): Likewise.
30168         * modules/unictype/category-byname (Makefile.am): Likewise.
30169         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
30170         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
30171         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
30172         * modules/unictype/property-byname (Makefile.am): Likewise.
30173         * modules/unictype/scripts (Makefile.am): Likewise.
30174         * modules/uninorm/composition (Makefile.am): Likewise.
30176 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
30178         Improve port of stdalign to C++11
30179         Problem reported by Sundaram in:
30180         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00003.html
30181         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
30182         (__alignas_is_defined): Define if C++11 or newer.
30184 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
30186         pmccabe2html: fix gawk regex escaping
30187         * build-aux/pmccabe2html: Add one more backslash to properly
30188         escape the gsub replacement value.  Fixes this error:
30189         gawk: ./build-aux/pmccabe2html:425: \
30190         warning: escape sequence `\&' treated as plain `&'
30192 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
30194         time_rz: port to pedantic memcpy
30195         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
30196         that reject memcpy (..., NULL, 0).
30198 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
30200         time_rz: port better to MinGW
30201         Don't change tzname, as this makes MinGW dump core (Bug#21020).
30202         Instead, store the tzname copy in the struct tm_zone object.
30203         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
30204         * lib/strftime.c [!_LIBC]:
30205         * lib/time_rz.c: Include time-internal.h.
30206         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
30207         name from *TZ rather than from TZNAME, doable because *TZ now has
30208         a tzname_copy member.
30209         * lib/time-internal.h: New file, with contents taken from
30210         lib/time_rz.c.  It's separate because strftime.c now accesses
30211         struct tm_zone members.
30212         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
30213         New member tzname_copy.
30214         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
30215         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
30216         Initialize tzname_copy member.
30217         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
30218         in tzname_copy member.
30219         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
30220         (restore_tzname): Remove; no longer needed.  All calls removed.
30221         * modules/time_rz (Files): Add lib/time-internal.h.
30223         time: port __need_time_t to MinGW
30224         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
30225         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
30227 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
30229         strftime: fix newly-introduced bug on Solaris
30230         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
30231         consistently at the start, rather than doing some of the setup at
30232         the start and some in the %Z format spec.  This is cleaner, and
30233         works better with time_rz on platforms like Solaris where struct
30234         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
30235         mktime_z and localtime_rz can mess up the tzname cache.
30237         test-strftime: test for Solaris bug
30238         * modules/strftime-tests (Depends-on): Add strerror.
30239         * tests/test-strftime.c: Include <errno.h>.
30240         (posixtm_test): New function, containing the old 'main'.
30241         (struct tzalloc_test, struct localtime_rz_test): New types.
30242         (TZ, LT): New static vars.
30243         (tzalloc_test): New function.
30244         (main): Rewrite in terms of posixtm_test and tzalloc_test.
30246         time_rz: port to Solaris etc.
30247         Works around a tzname problem on platforms like Solaris that have
30248         tzname but not tm_zone, by setting tzname at the appropriate time
30249         and restoring it later.
30250         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
30251         New static vars.
30252         (save_abbr) [HAVE_TZNAME]: Set them.
30253         (revert_tz) [HAVE_TZNAME]: Clear or use them.
30254         (restore_tzname): New function.
30255         (localtime_rz, mktime_z): Use it.
30257         time_rz: now LGPL
30258         * modules/time_rz (License): Now LGPL, because strftime depends on it.
30260         time_rz: make a constant 'const'
30261         * lib/time_rz.c (local_tz): Now const.
30263         time_rz: fix off-by-one typo
30264         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
30266 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
30268         fprintftime, strftime: use timezone_t args
30269         * NEWS: Document the change.
30270         * lib/fprintftime.h (fprintftime):
30271         * lib/strftime.c (extra_args) [my_strftime]:
30272         * lib/strftime.h (nstrftime):
30273         Time zone arg is now of type timezone_t, not int.
30274         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
30275         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
30276         (my_strftime) [emacs && !my_strftime]:
30277         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
30278         Remove; Emacs doesn't need this any more.
30279         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
30280         fprintftime and nstrftime to call tzset.
30281         (ut) [!my_strftime]: Remove, replacing with ...
30282         (tz) [!my_stftime]: ... this new macro.  All uses changed.
30283         (strftime_case_): Use localtime_rz and mktime_z instead
30284         of localtime_r and mktime.
30285         * modules/fprintftime (Depends-on): Add time_rz.
30286         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
30287         * tests/test-strftime.c (main): Adjust to new nstrftime API.
30289         time_rz: new module
30290         * MODULES.html.sh: Add time_rz.
30291         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
30292         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
30293         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
30294         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
30295         New var HAVE_TIMEZONE_T (default 0).
30296         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
30297         New var GNULIB_TIME_RZ (default 0).
30298         * modules/time (time.h): Substitute the new vars.
30300         flexmember: license is now unlimited
30301         * modules/flexmember (License): Change to unlimited,
30302         since its only source file gives an unlimited license.
30304 2015-07-15  Eric Blake  <eblake@redhat.com>
30306         maint: update copyright paper procedures
30307         * config/srclist.txt: Drop outdated files.
30308         * doc/Copyright/conditions.txt: Update to latest.
30309         * doc/Copyright/assign.changes.manual: Delete.
30310         * doc/Copyright/assign.future.manual: Likewise.
30311         * doc/Copyright/assign.manual: Likewise.
30312         * doc/Copyright/assign.translation.manual: Likewise.
30313         * doc/Copyright/disclaim.changes.manual: Likewise.
30314         * doc/Copyright/disclaim.manual: Likewise.
30315         * doc/Copyright/disclaim.program: Likewise.
30317 2015-07-07  Daiki Ueno  <ueno@gnu.org>
30319         localename: fix link error on Illumos
30320         Illumos defines __sun, but does not have getlocalename_l nor the
30321         equivalent.  This partially reverts commit 387c214.
30322         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
30323         available, as well as uselocale.
30324         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
30325         use getlocalename_l if it is not available.
30327 2015-07-07  Daiki Ueno  <ueno@gnu.org>
30329         unistr/uN-strtok-tests: avoid a trivial leak
30330         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
30331         input and delim after the multibyte delimiter tests.
30333 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
30335         file-has-acl, acl-permissions: fix HP-UX typos
30336         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
30337         * lib/file-has-acl.c (file_has_acl):
30338         * lib/set-permissions.c (context_acl_from_mode)
30339         (context_aclv_from_mode, set_acls):
30340         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
30341         They were introduced by the recent ACL changes.
30343         regex: match current GNU grep behavior
30344         These symbols have not matched GNU grep behavior for quite some time.
30345         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
30346         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
30347         Change to match current GNU behavior.
30348         Simplify by expressing it as differences from POSIX BREs and EREs.
30349         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
30351 2015-07-03  Jim Meyering  <meyering@fb.com>
30353         set-permissions.c: adjust acl_from_mode's cpp guard
30354         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
30355         directives identical to those guarding the sole use.
30356         Otherwise, on some systems, we'd get a warning about
30357         the function being defined but not used.
30358         Also, filter through cppi to correct misleading indentation
30359         of cpp directives.
30361 2015-07-03  Pádraig Brady  <P@draigBrady.com>
30363         tests: restrict shells to those that support 'local'
30364         The local keyword is very widely supported and used
30365         in tests in coreutils and grep at least.  Therefore
30366         restrict to testing with shells that support it.
30367         This mainly excludes /bin/sh on Solaris.
30368         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
30370 2015-07-03  Seiya Kawashima  <skawashima@uchicago.edu>  (tiny change)
30371         and Daiki Ueno  <ueno@gnu.org>
30373         unistr/uN-strtok: handle multibyte delimiters
30374         Previously, uN_strtok moved PTR to the next unit to the token end.
30375         When DELIM contained a multibyte character, the new position could
30376         be a middle of a multibyte character.
30377         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
30378         after the token.
30379         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
30380         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
30381         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
30382         * modules/unistr/u8-strtok (Depends-on): Depend on
30383         unistr/u8-strmblen.
30384         * modules/unistr/u16-strtok (Depends-on): Depend on
30385         unistr/u16-strmblen.
30386         * modules/unistr/u32-strtok (Depends-on): Depend on
30387         unistr/u32-strmblen.
30388         * tests/unistr/test-u-strtok.h: New file.
30389         * tests/unistr/test-u8-strtok.c: New file.
30390         * tests/unistr/test-u16-strtok.c: New file.
30391         * tests/unistr/test-u32-strtok.c: New file.
30392         * modules/unistr/u8-strtok-tests: New file.
30393         * modules/unistr/u32-strtok-tests: New file.
30394         * modules/unistr/u16-strtok-tests: New file.
30396 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
30398         update-copyright: fix test failure with perl >= 5.22 (trivial)
30399         * build-aux/update-copyright: Escape a literal left curly bracket,
30400         required with perl >= 5.22
30402 2015-07-02  Daiki Ueno  <ueno@gnu.org>
30404         u{16,32}-strstr-tests: relax timeout condition
30405         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
30406         tests can take longer than 5 seconds to complete.
30407         Reported by Dagobert Michelsen in:
30408         https://lists.gnu.org/r/bug-libunistring/2015-06/msg00006.html
30409         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
30410         seconds to 10 seconds.
30411         * tests/unistr/test-u32-strstr.c (main): Likewise.
30413 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
30415         gnulib-common.m4: change the ARFLAGS default to 'cr'
30416         In some GNU/Linux distributions people started to compile 'ar'
30417         binary with --enable-deterministic-archives (binutils project).
30418         That, however, in combination with previous autotools long time
30419         working default AR{_,}FLAGS=cru causes warnings on such
30420         installations:
30421         ar: `u' modifier ignored since `D' is the default (see `U')
30422         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
30423         set already.
30425 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
30427         selinux-h: avoid double free after *getfilecon()
30428         Originally reported by Ben Shelton on bug-tar:
30429         http://lists.gnu.org/r/bug-tar/2015-04/msg00009.html
30430         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
30431         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
30432         param should be freed by freecon(3) (regardless the return value).
30434 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
30436         fix pty related tests issues on Windows (trivial)
30437         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
30438         however it's still present in tests/ subdirectory of the final project.
30439         Therefore avoid it to pass `make check`.
30440         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
30441         will just return -ENOSYS, so avoid this non applicable test allowing
30442         the build to proceed.
30444 2015-07-01  Pádraig Brady  <P@draigBrady.com>
30446         acl: fix definition of acl_from_mode on FreeBSD
30447         This was causing basic coreutils copy operations to fail
30448         with ENOTSUP or ENOENT error messages.
30449         * lib/acl-internal.h (acl_from_mode): Only define when
30450         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
30451         of acl_from_mode() defined in lib/set-permissions.c to
30452         be used on FreeBSD at least.
30453         * lib/set-permissions.c: Fix up comment spelling,
30454         and a redundant variable assignment; noticed in passing.
30456 2015-06-30  Pádraig Brady  <P@draigBrady.com>
30458         readutmp: port to FreeBSD >= 9
30459         * lib/readutmp.h: Map utmpxname() to setutxdb().
30460         With that coreutils who(1) and pinky(1) tests pass.
30462 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
30464         mgetgroups: port to strict OS X
30465         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
30466         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
30467         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
30468         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
30470 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
30472         mgetgroups: port to strict OS X
30473         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
30474         Document the getgrouplist problem.
30475         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
30476         New macro.
30477         (mgetgroups): Use it.
30478         * m4/mgetgroups.m4 (gl_MGETGROUPS):
30479         Check for OS X signature for getgrouplist.
30481 2015-06-29  Jim Meyering  <meyering@fb.com>
30483         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
30484         It started like this when building coreutils' latest on OS X,
30485         invoking ./configure with a nonempty --cache=.cache:
30487           lib/linkat.c:46:42: error: operator '||' has no right operand
30488           lib/linkat.c: In function 'rpl_linkat':
30489           lib/linkat.c:330:27: error: #if with no expression
30491         Here's linkat.c's line 46:
30493           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
30495         Here's some context:
30497           $ grep linkat_nofoll .cache
30498           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
30499           $ grep LINKAT_SYM lib/config.h
30500           #define LINKAT_SYMLINK_NOTSUP
30502         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
30503         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
30504         but that violates a tenet of AC_CACHE_CHECK: it must
30505         have no side effect other than setting its cache variable.
30507         What happens is that when the cache is set, we'd skip the
30508         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
30509         defined to whatever value it happened to have in configure's
30510         environment.  In my case, it was not defined, so this later code:
30512           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
30513             [Define to 1 if linkat can create hardlinks to symlinks])
30515         would emit code with an empty RHS.
30517         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
30518         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
30520 2015-06-28  Jim Meyering  <meyering@fb.com>
30522         mountlist: avoid an unused-label warning on OS X
30523         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
30524         Building on OS X, I saw a warning about the "free_then_fail" label
30525         being unused.  Give it the _GL_UNUSED_LABEL attribute.
30527         error.c: correct printf-style format: %d -> %u
30528         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
30529         rather than %d, to match the type of "line_number", unsigned int.
30531 2015-06-25  Pádraig Brady  <P@draigBrady.com>
30533         fts: avoid reading beyond the heap allocation
30534         GCC 5.1.1 with -O2 and -fsanitize=address reports
30535         a read of size 4 from a heap object of size 3 is indeed invalid,
30536         though this may be due to incorrect padding assumptions by GCC, see:
30537         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
30538         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
30539         * modules/fts: Depend on stdalign.
30541 2015-06-24  Pádraig Brady  <P@draigBrady.com>
30543         savedir: avoid undefined behavior in qsort call
30544         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
30545         "runtime error: null pointer passed as argument 1,
30546          which is declared to never be null"
30547         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
30549 2015-06-24  Pádraig Brady  <P@draigBrady.com>
30551         userspec: avoid undefined behavior in gettext call
30552         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
30553         "runtime error: null pointer passed as argument 2,
30554          which is declared to never be null"
30555         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
30557 2015-06-20  Glenn Morris  <rgm@gnu.org>
30559         gitlog-to-changelog: improve gitmerge.el commits
30560         Let the Emacs ChangeLog generation process exclude "skipped"
30561         messages from merge commits (Bug#20717).
30562         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
30564 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
30566         wchar: fix MinGW compilation warnings
30567         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
30568         http://lists.gnu.org/r/bug-gnulib/2015-06/msg00050.html
30569         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
30571 2015-06-20  Daiki Ueno  <ueno@gnu.org>
30573         uniname/uniname-tests: use pristine data files
30574         For copyright and maintenance reasons, use the data files from UCD
30575         without modification.
30576         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
30577         (getfield): Remove.
30578         (aliases_count): New global variable.
30579         (fill_names): Skip comments and empty lines in the input.  Don't
30580         use getfield.
30581         (fill_aliases): Likewise.
30582         (main): Change the expected command line arguments to:
30583         NAMES... ["--" ALIASES...].
30584         * tests/uniname/test-uninames.sh: Adjust to the change in
30585         test-uninames.c.
30586         * tests/uniname/UnicodeDataNames.txt: Remove.
30587         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
30588         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
30589         file from Unicode 8.0.0.
30591 2015-06-19  Pádraig Brady  <P@draigBrady.com>
30593         linked-list, linkedhash-list: avoid compiler warnings
30594         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
30595         -Werror=suggest-attribute=pure (from GCC 5.1.1).
30597 2015-06-19  Daiki Ueno  <ueno@gnu.org>
30599         libunistring: bump minimum version to 0.9.6
30600         * all modules depending on updated Unicode data: Regenerate.
30601         The modules are listed by a script that does:
30602         - for each file listed by: git show --oneline --name-only 705f4efc
30603           - deduce the containing modules, based on "Files:"
30604         - deduce the modules which depend on the containing modules, based
30605           on "Depends-on:"
30607 2015-06-18  Daiki Ueno  <ueno@gnu.org>
30609         uniname/uniname: update to Unicode 8.0.0
30610         * lib/uniname/uninames.h: Regenerate.
30611         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
30612         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
30614 2015-06-18  Daiki Ueno  <ueno@gnu.org>
30616         libunistring: update to Unicode 8.0.0
30617         * lib/gen-uni-tables.c (SIZEOF): New macro.
30618         (output_numeric): Increase the maximum number of fractions from
30619         128 to 160.  Increase the level3 value width from 7 bits to 8
30620         bits.  Use SIZEOF instead of a hard-coded integer.
30621         (output_blocks): Decrease the cut-off threshold from 0x30000 to
30622         0x28000.
30623         (fill_blocks): Increase the maximum number of blocks from 256 to
30624         384.  Use SIZEOF instead of a hard-coded integer.
30625         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
30626         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
30627         value width.
30628         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
30629         a new case added to LBP22.
30630         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
30631         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
30632         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
30633         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
30634         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
30635         * tests/uniwidth/test-uc_width2.sh: Same updates as in
30636         lib/uniwidth/width.c.
30637         * all generated files under lib/uni* and tests/uni*: Regenerate.
30639 2015-06-16  Pádraig Brady  <P@draigBrady.com>
30641         gnu-web-doc-update: add --mirror to remove stale files
30642         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
30643         out of date files from the CVS server.  Since this is usually
30644         appropriate, a prompt is given when the option is not specified,
30645         along with the `cvs remove` command that would be run.
30647 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
30649         acl-permissions: pacify -Wsuggest-attribute=const
30650         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
30651         * lib/acl-internal.h (free_permission_context):
30652         Declare with attribute const if ! (defined USE_ACL &&
30653         (HAVE_ACL_GET_FILE || defined GETACL)).
30655         fsync: document AIX misbehavior
30656         * doc/posix-functions/fsync.texi (fsync):
30657         Document failure on AIX with read-only file descriptor.
30659 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
30661         stdio: Don't redefine gets when using C++
30662         * lib/stdio.in.h (gets): Disable warning on C++.
30664 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
30666         acl-permissions: port to AIX, C89 HP-UX
30667         Problems reported by Michael Felt.
30668         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
30669         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
30670         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
30671         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
30672         Add cast for AIX, whose system calls are declared to accept
30673         char * even though the arguments are really char const *.
30674         * lib/get-permissions.c (get_permissions):
30675         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
30676         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
30677         that broke a build.
30678         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
30679         Rework types to pacify xlc.
30681 2015-06-03  Pádraig Brady  <P@draigBrady.com>
30683         vasprintf-posix: avoid compiling vasnprintf where possible
30684         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
30685         module where not required.  For example on a GNU/Linux system
30686         when gnulib-tool is run with the --conditional-dependencies option.
30688 2015-06-02  Pádraig Brady  <P@draigBrady.com>
30690         file-has-acl: fix build on Mac OS X 10
30691         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
30692         which has an incompatible 6 parameter getxattr() call.
30693         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
30694         call on Mac OS X >= 10.4.
30695         * doc/glibc-functions/fgetxattr.texi: Likewise.
30696         * lib/file-has-acl.c: Revert to more complete combined check.
30697         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
30698         Reported by Jack Howarth.
30700 2015-06-02  Pádraig Brady  <P@draigBrady.com>
30702         prefix-gnulib-mk: remove no longer needed special case
30703         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
30704         continued lib_SOURCES lines are no longer present,
30705         so special case handling of such entries is not required.
30707 2015-06-01  Pádraig Brady  <P@draigBrady.com>
30709         acl: don't depend on the deprecated qacl module
30710         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
30712 2015-06-01  Pádraig Brady  <P@draigBrady.com>
30714         gnulib-tool: concatenate lib_SOURCES to a single line
30715         * gnulib-tool: Refactor the line merging sed logic,
30716         and use that to output a single lib_SOURCES line for each module.
30717         gnulib using projects often postprocess this output to prepend
30718         subdir paths to each item, and having a single line simplifies this
30719         processing allowing better decoupling from the gnulib-tool output.
30721 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
30723         pthread_sigmask: discount system version if a simple macro (trivial)
30724         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
30725         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
30726         function to ensure it's available.
30728 2015-05-31  Pádraig Brady  <P@draigBrady.com>
30730         readlinkat: avoid OS X 10.10 trailing slash bug
30731         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
30732         has this bug.
30733         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
30734         that OS X 10.10 has this function.
30735         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
30736         as done for readlink().
30737         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
30738         trailing slash bug, and assume readlinkat() has the same issue.
30739         Also fix a typo where $gl_cv_decl_readlink_works was tested,
30740         rather than the correct $gl_cv_decl_readlinkat_works.
30742 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
30744         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
30745         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
30746         module rewrite.
30748         acl-permissions: Fix build on Solaris and Cygwin
30749         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
30750         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
30751         ace_entries variables have moved into struct permission_context but
30752         they were still accessed as local variables here.
30754 2015-05-29  Pádraig Brady  <P@draigBrady.com>
30756         linkat: avoid OS X 10.10 trailing slash with symlink bug
30757         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
30758         causes the symlink to be dereferenced, and if it points
30759         to a non existent file, that file will be created as
30760         a hard link to "path1".
30761         This fixes a test failure in test-linkat.c.
30762         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
30763         this case.  The existing workaround in linkat.c for
30764         trailing slash issues, suffices for this case.
30765         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
30766         the list of platforms with trailing slash issues.
30768 2015-05-28  Pádraig Brady  <P@draigBrady.com>
30770         unlinkat: handle ignoring of ".." on Darwin 14
30771         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
30772         on Mac OS X 10.10, where it ignores paths with a trailing "..",
30773         so handle in the same manner.
30774         * m4/unlinkat.m4: Comment on this Darwin issue.
30775         * doc/posix-functions/unlink.texi: Update the latest version
30776         where the issue was seen.
30777         * doc/posix-functions/unlinkat.texi: Mention this issue.
30778         Fixes a test failure in test-unlinkat.c.
30780 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
30782         qacl: split into qcopy-acl and qset-acl
30783         Emacs needs the former, but not the latter.
30784         * modules/acl-permissions: New file, containing most of the old qacl.
30785         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
30786         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
30787         * modules/qcopy-acl, modules/qset-acl: New files.
30788         * MODULES.html.sh (File system functions):
30789         Mention the new modules, and mention qacl while we're at it.
30791 2015-05-27  Glenn Morris  <rgm@gnu.org>
30793         gitlog-to-changelog: new option --ignore-line
30794         (This patch is imported from the GNU Emacs master.)
30795         This option ignores individual commit lines matching a pattern.
30796         * build-aux/gitlog-to-changelog: Add --ignore-line option.
30798 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
30800         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
30801         Implement get_permissions and set_permissions primitives for getting all
30802         the permissions of a file, storing them, and later setting them. (In the
30803         minimal case, the permissions consist only of a file mode.) Reimplement
30804         qset_acl and qcopy_acl based on these new primitives: this avoids code
30805         duplication and makes error handling more consistent.
30806         The Solaris and Cygwin code still uses duplicate code paths for setting
30807         a file mode while making sure that no acls exist and setting an explicit
30808         acl; this is no worse than before, but could be cleaned up.  The AIX
30809         code still doesn't read ACLs, it only makes sure that acls don't get in
30810         the way when setting a file mode.
30811         * lib/acl-internal.h (struct permission_context): New data structure.
30812         (get_permissions, set_permissions, free_permission_context): Declare.
30813         * lib/acl-internal.c (free_permission_context): New helper function.
30814         * lib/get-permissions.c (get_permissions): New helper function split off
30815         from qcopy_acl.
30816         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
30817         AIX, set a file's permissions based only on a file mode.
30818         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
30819         other platforms construct a temporary acl from the file mode and set
30820         that acl in the same way as setting an acl read from the source file.
30821         This should help avoid code duplication and inconsistent / buggy
30822         behavior.
30823         (set_acls): New helper function Split off from qcopy_acl.
30824         (chmod_or_fchmod): Moved here from qset-acl.c.
30825         (set_permissions): New helper function.
30826         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
30827         set_permissions.
30828         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
30829         * modules/qacl: Add get-permissions.c and set-permissions.c.
30831         file-has-acl: Split feature tests again (Bug#20667)
30832         * lib/file-has-acl.c: Instead of testing for
30833         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
30834         define them when needed.
30835         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
30836         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
30838 2015-05-27  Pádraig Brady  <P@draigBrady.com>
30840         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
30841         This avoids a conflict with "FORTIFY_SOURCE" variants
30842         of the string functions when they're replaced on NetBSD-6.0.1
30843         and Darwin-14.3.0 at least.
30844         * lib/string.in.h: Avoid including our "lib/string.h" while
30845         including the system <string.h>.
30847 2015-05-26  Eric Blake  <eblake@redhat.com>
30849         stdio: limit __gnu_printf__ witness to gcc 4.4+
30850         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
30851         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
30853         error: use correct printf attributes on mingw
30854         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
30856         inttypes: force correct mingw PRIdMAX even without <stdio.h>
30857         * modules/inttypes (Depends-on): Require extensions, so that mingw
30858         always uses GNU style inttypes.
30859         * lib/inttypes.in.h: On mingw, include <stdio.h>.
30861         stdio: fix probe on mingw under gcc 5.1
30862         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
30863         around new gcc preprocessor rules.
30865 2015-05-07  Glenn Morris  <rgm@gnu.org>
30867         gitlog-to-changelog: parse "Tiny-change"
30868         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
30869         "Copyright-paperwork-exempt".  (Bug#20324)
30871 2015-05-06  Pádraig Brady  <P@draigBrady.com>
30873         doc: document glibc posix_fallocate() issues
30874         * doc/posix-functions/posix_fallocate.texi: Mention the
30875         glibc efficiency problems and issues with NFS.
30877 2015-05-05  Karl Berry  <karl@freefriends.org>
30879         * build-aux/gendocs.sh (usage): document new css default
30880         for HTML (--htmlarg).
30882 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
30884         extern-inline: no need for workaround in GCC 5.1
30885         * doc/extern-inline.texi (extern inline):
30886         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
30887         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
30888         around these bugs in GCC 5.1 and later.  Maybe in a decade or
30889         two we can remove these workarounds.
30891 2015-04-28  Pádraig Brady  <P@draigBrady.com>
30893         eealloc, pagealign_alloc, xalloc: avoid clang warnings
30894         Avoid [-Wunknown-attributes] warnings like:
30895         warning: unknown attribute '__alloc_size__' ignored
30896         * lib/xalloc.h: Don't use the __alloc_size__  attribute
30897         with clang, as support has been fully removed as of clang 3.5:
30898         https://github.com/llvm-mirror/clang/commit/c047507a
30899         * lib/eealloc.h: Likewise.
30900         * lib/pagealign_alloc.h: Likewise.
30902 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
30904         tests: pacify GCC 5.1's stricter printf checking
30905         * tests/test-dirname.c (main):
30906         * tests/test-getaddrinfo.c (simple):
30907         * tests/test-getlogin.c (main):
30908         * tests/test-getndelim2.c (main):
30909         * tests/test-inttostr.c (CK):
30910         * tests/test-md5.c (main):
30911         * tests/test-read-file.c (main):
30912         * tests/test-sha1.c (main):
30913         Fix mismatches between printf format and value signedness.
30914         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
30915         Remove, as CAST_VAL always returned a value of type uintmax_t.
30917         fts: port to GCC 5.1 with --enable-gcc-warnings
30918         Without this fix, GCC 5.1 (correctly) warns about a subscript
30919         error on the fts_name component of FTSENT.  It's actually a
30920         flexible member, so define it that way on C99 or later hosts.
30921         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
30922         structure that now has a flexible array member.
30923         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
30924         (FTSENT): fts_name is now flexible on C99-or-later platforms.
30925         * modules/fts (Depends-on): Add flexmember.
30927 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
30929         file-has-acl: port to CentOS 6
30930         Problem reported by Tom G. Christensen in:
30931         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00074.html
30932         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
30933         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
30934         HAVE_GETXATTR.
30935         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
30936         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
30937         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what
30938         file-has-acl.c actually needs.
30940 2015-04-26  Pádraig Brady  <P@draigBrady.com>
30942         file-has-acl: always return false when ACLs aren't supported
30943         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
30944         change the GNU/Linux getxattr path, to transform "not supported"
30945         errors to a false return rather than an error.  This is handled
30946         within file_has_acl() due to the platform specific tests to
30947         determine if ACLs are not supported.
30949 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
30951         gettext: propagate po/Makefile.in.in too
30952         * build-aux/po/Makefile.in.in: Copy from latest gettext.
30953         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
30954         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
30955         between Makefile.in.in and the gettext-runtime m4 files.
30957 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
30959         file-has-acl: new module, split from acl
30960         And add a new module file-has-acl-tests to match.
30961         I ran into a problem with the recent changes to the acl module,
30962         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
30963         When using the fixed version with Emacs, I discovered that
30964         file-has-acl wasn't separated out well enough for Emacs (e.g., it
30965         had multiple libraries, but needed only one), so I fixed that too.
30966         * NEWS: Document this incompatible change.
30967         * modules/file-has-acl, modules/file-has-acl-tests: New files.
30968         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
30969         Initialize gl_need_lib_has_acl.
30970         (gl_FUNC_ACL): Require it.
30971         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
30972         Move the file-has-acl.c-relevant stuff to ...
30973         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
30974         use_xattrs = 0' typo, and omit some needless work.  Set
30975         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
30976         when gl_FUNC_ACL is called.
30977         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
30978         (Link): Remove $(LIB_HAS_ACL).
30979         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
30980         (check_PROGRAMS): Move stuff relevant to file-has-acl to
30981         modules/file-has-acl-tests.
30982         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
30984         manywarnings: add GCC 5.1 warnings
30985         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
30986         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
30987         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
30988         -Wsuggest-override, -Wuse-without-only.  Change
30989         -Wnormalized=... operands to match 5.1.
30990         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
30991         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
30992         -Wdiscarded-qualifiers, -Wformat-signedness,
30993         -Wincompatible-pointer-types, -Wint-conversion,
30994         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
30995         -Wshift-count-negative, -Wshift-count-overflow,
30996         -Wsizeof-array-argument, -Wsuggest-final-methods,
30997         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
30998         and add -Warray-bounds=2 as a special case.
31000 2015-04-21  Simon Josefsson  <simon@josefsson.org>
31002         doc: update FDL template to match FDL examples.
31003         * doc/alloca-opt.texi:
31004         * doc/alloca.texi:
31005         * doc/c-ctype.texi:
31006         * doc/c-strcase.texi:
31007         * doc/c-strcaseeq.texi:
31008         * doc/c-strcasestr.texi:
31009         * doc/c-strstr.texi:
31010         * doc/c-strtod.texi:
31011         * doc/c-strtold.texi:
31012         * doc/ctime.texi:
31013         * doc/error.texi:
31014         * doc/gcd.texi:
31015         * doc/gnulib-tool.texi:
31016         * doc/inet_ntoa.texi:
31017         * doc/intprops.texi:
31018         * doc/lib-symbol-visibility.texi:
31019         * doc/maintain.texi:
31020         * doc/parse-datetime.texi:
31021         * doc/quote.texi:
31022         * doc/regexprops-generic.texi:
31023         * doc/standards.texi: Remove spurious 'with' in FDL license
31024         template.
31026 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
31028         lstat: fix cross-compilation 'ln -s' problem
31029         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
31030         Have the test program call 'symlink' rather than a separate
31031         script run 'ln -s'; this is more likely to work in
31032         cross-compilation environments.  Reported by Pavel Fedin in:
31033         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00060.html
31035 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
31037         gendocs.sh: default to a common CSS style sheet for HTML output
31038         * build-aux/gendocs.sh (htmlarg): Change default value.
31040 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
31042         gnulib-tool: output bold attribute more portably
31043         * gnulib-tool (func_show_module_list): Change hexadecimal
31044         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
31045         encoded numbers as arguments to `printf' is not portable,
31046         and is not claimed by POSIX.  This is the case with FreeBSD.
31048 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
31050         qacl: Simplify HP-UX acl_nontrivial check
31051         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
31052         acl_nontrivial. Check if the acl has at most three entries instead (it must
31053         have exactly three entries according to the HP-UX documentation). Ignore
31054         uids and gids as long as an entry is either for a user (i.e., the owner),
31055         a group (i.e., the owning group), or others.
31056         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
31057         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
31059 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
31061         acl: On Linux, check for acls without libacl
31062         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
31063         library function to check for the presence of acls, avoiding a library.
31064         * lib/file-has-acl.c: Include xattr headers if we have them.
31065         (file_has_acl): On Linux, use getxattr().
31066         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
31067         file_has_acl(). Check for xattr headers and getxattr().
31069 2015-04-14  Ángel González  <keisial@gmail.com>
31071         tempname: avoid unused parameter warnings (trivial)
31072         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
31073         (try_nocreate): Likewise.
31075 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
31077         fseeko: fix build failure on NetBSD >= 6 (trivial)
31078         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
31079         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
31081 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
31083         gitlog-to-changelog: port to MS-Windows
31084         * build-aux/gitlog-to-changelog (git_dir_option):
31085         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
31086         MS-Windows Perl.  Reported by Eli Zaretskii in:
31087         http://lists.gnu.org/r/emacs-devel/2015-04/msg00504.html
31089 2015-04-07  Karl Berry  <karl@gnu.org>
31091         gendocs: new option --tex for passing args to texi2dvi.
31092         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
31093         (TEXI2DVI): cut to just command name.
31094         (usage): mention new option, and update copyright.
31095         <generate_tex>: use it.
31097 2015-04-07  Karl Berry  <karl@gnu.org>
31099         * config/srclistvars.sh (GETTEXT): new definition.
31100         * config/srclist.txt: use it for gettext .m4 files.
31101         Thread starting at http://lists.gnu.org/r/bug-gnulib/201
31102         and confirmed at http://lists.gnu.org/r/bug-gnulib/2015-02/msg00146.html
31103         and continuing into April.
31105 2015-04-07  Daiki Ueno  <ueno@gnu.org>
31107         uniname/uniname-tests: fix failure due to alias
31108         Reported by Jack Howarth in:
31109         <https://lists.gnu.org/r/bug-libunistring/2015-04/msg00000.html>.
31110         * tests/uniname/test-uninames.c (name_has_alias): New function.
31111         (test_inverse_lookup): Exclude character name with valid alias,
31112         from randomly generated character names.
31113         (main): Fill unicode_aliases before calling test functions.
31115 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
31117         hash: remove deprecated hash_insert0 function
31118         * lib/hash.h (hash_insert0): Remove deprecated function.
31119         * lib/hash.c (hash_insert0): Likewise.
31121 2015-04-02  Pádraig Brady  <P@draigBrady.com>
31123         mountlist: remove dependency on libmount
31124         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
31125         directly, rather than depending on libmount, which has many
31126         dependencies due to its dependence on libselinux, as detailed at:
31127         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00063.html
31128         Note we restrict this to __linux__ as that's probably where this
31129         interface will remain.  If ever porting, it would be best
31130         to first pull the makedev() wrapper from coreutils to a gnulib module.
31131         Note also we don't add a getline dependency to the mountlist module,
31132         as all Linux versions are sufficient.
31134 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
31136         stddef: port to pre-C11 GCC on x86
31137         On this platform, max_align_t should have an alignment of 8 even
31138         though the storage alignments of double, long, etc. max out at 4.
31139         Inspired by a comment of Andreas Schwab's here:
31140         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
31141         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
31142         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
31143         * tests/test-stddef.c: Test __alignof__ too, if available.
31145 2015-03-24  Pádraig Brady  <P@draigBrady.com>
31147         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
31148         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
31150 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
31152         yesno: make EOL optional in ENABLE_NLS case also (trival)
31153         * lib/yesno.c (yesno): Check for EOL before replacing.
31154         * tests/test-yesno.sh: Add a test case (test along with gettext).
31156 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
31158         fdopendir-tests: test it does not close its arg
31159         * tests/test-fdopendir.c (main): Test that fdopendir does not
31160         close its argument.  From a suggestion by David Grayson in:
31161         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00039.html
31163 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
31165         gitlog-to-changelog: trim trailing white space
31166         * build-aux/gitlog-to-changelog (main):
31167         Trim trailing white space from commit message lines.
31168         This is helpful for processing the GNU Emacs repository,
31169         which dates back to 1985 and contains a lot of such lines.
31171         gitlog-to-changelog: new option --ignore-matching
31172         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
31173         Support new option --ignore-matching=PAT, which ignores all
31174         commit messages whose first line matches PAT.
31176 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
31178         fdopendir: port better to MinGW
31179         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
31180         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
31181         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00033.html
31182         * modules/fdopendir (Depends-on): Add dirfd.
31184 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
31186         fdopendir: fix typo in comment
31187         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
31189 2015-03-09  Eric Blake  <eblake@redhat.com>
31191         error: document all entry points provided
31192         * doc/glibc-functions/error_print_progname.texi
31193         (error_print_progname): Mention the error module.
31194         * doc/glibc-functions/error_at_line.texi (error_at_line):
31195         Likewise.
31196         * doc/glibc-functions/error_message_count.texi
31197         (error_message_count): Likewise.
31198         * doc/glibc-functions/error_one_per_line.texi
31199         (error_one_per_line): Likewise.
31201 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
31203         vasnprintf: pacify clang 3.5.0
31204         Problem reported by Werner Lemberg in:
31205         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00000.html
31206         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
31207         The casts aren't needed, since the characters in question are ASCII.
31209 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
31211         glob, etc.: port to MSVC v18 on MS-Windows 8.1
31212         * lib/dirent--.h (GNULIB_defined_opendir):
31213         * lib/dirent.in.h (GNULIB_defined_opendir)
31214         (GNULIB_defined_closedir):
31215         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
31216         #undef only if Gnulib defined it.
31218         poll: port to MSVC v18 on MS-Windows 8.1
31219         Problem reported by Gisle Vanem in:
31220         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00139.html
31221         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
31222         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
31223         Add sys_socket.
31225 2015-02-24  Pádraig Brady  <P@draigBrady.com>
31227         tests: support stderr verification with returns_()
31228         * tests/init.sh (returns_): Disable tracing for this wrapper
31229         function, so that stderr of the wrapped command is unchanged,
31230         allowing for verification of the contents.
31232 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
31234         passfd: avoid valgrind uninitalised data warning
31235         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
31236         to include just the fd we've initialized, rather than including
31237         the extra space used for alignment.
31239 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
31241         uniwbrk/u32-wordbreaks-tests: fix copyright
31242         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
31244         dup2: doc and test for Android bug
31245         Reported by Kevin Cernekee in:
31246         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00125.html
31247         * doc/posix-functions/dup2.texi (dup2): Document the bug.
31248         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
31250 2015-02-23  Kevin Cernekee  <cernekee@google.com>
31252         Replace dup2() on Android
31253         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
31254         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
31255         fails.  Using rpl_dup2() fixes this because it has an explicit test
31256         for this condition.
31258 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
31260         Android doesn't define RLIM_SAVED_*
31261         Portability problem reported by Kevin Cernekee in:
31262         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00122.html
31263         * doc/posix-headers/sys_resource.texi (sys/resource.h):
31264         Mention the portability problem.
31265         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
31266         Define if not defined.
31267         * m4/dup2.m4 (gl_FUNC_DUP2):
31268         * m4/fcntl.m4 (gl_FUNC_FCNTL):
31269         Likewise.
31271 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
31273         vasnprintf-posix-tests: use consistent test
31274         * tests/test-vasnprintf-posix.c (test_function):
31275         Use "<" in assert instead of "<=", for consistency with other tests.
31277 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
31279         printf, isinf, etc.: noncanonical != NaN
31280         Do not require that isinf, printf, etc. treat noncanonical
31281         values as NaNs.  Instead, require only that they do not crash.
31282         Problem reported by Joseph Myers in:
31283         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
31284         * doc/posix-functions/dprintf.texi (dprintf):
31285         * doc/posix-functions/fprintf.texi (fprintf):
31286         * doc/posix-functions/isfinite.texi (isfinite):
31287         * doc/posix-functions/isinf.texi (isinf):
31288         * doc/posix-functions/isnan.texi (isnan):
31289         * doc/posix-functions/printf.texi (printf):
31290         * doc/posix-functions/snprintf.texi (snprintf):
31291         * doc/posix-functions/sprintf.texi (sprintf):
31292         * doc/posix-functions/vdprintf.texi (vdprintf):
31293         * doc/posix-functions/vfprintf.texi (vfprintf):
31294         * doc/posix-functions/vprintf.texi (vprintf):
31295         * doc/posix-functions/vsnprintf.texi (vsnprintf):
31296         * doc/posix-functions/vsprintf.texi (vsprintf):
31297         Document this.
31298         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
31299         * m4/isinf.m4 (gl_ISINFL_WORKS):
31300         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
31301         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
31302         * tests/test-isfinite.c (test_isfinitel):
31303         * tests/test-isinf.c (test_isinfl):
31304         * tests/test-isnan.c (test_long_double):
31305         * tests/test-isnanl.h (main):
31306         * tests/test-snprintf-posix.h (test_function):
31307         * tests/test-sprintf-posix.h (test_function):
31308         * tests/test-vasnprintf-posix.c (test_function):
31309         * tests/test-vasprintf-posix.c (test_function):
31310         Test only that noncanonical values do not cause crashes, not that
31311         they are treated as NaNs.  In some cases this means a larger
31312         output buffer is needed.
31314 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
31316         fts: remove redundant close() (trivial)
31317         * lib/fts.c (fts_read): Remove redundant call to close().
31318         Spotted by coverity.
31320 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
31322         getdtablesize: port better for Android
31323         Problem reported by Kevin Cernekee in:
31324         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00112.html
31325         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
31326         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
31327         Instead, just use getrlimit, taking care to avoid Cygwin bug.
31329         poll: fixes for large fds
31330         * lib/poll.c (poll): Don't check directly for NFD too large.
31331         Don't rely on undefined behavior in FD_SET when an arg exceeds
31332         FD_SETSIZE.  Always set revents afterwards, even if to zero.
31333         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
31334         as that makes the test a bit stricter.
31336 2015-02-19  Kevin Cernekee  <cernekee@google.com>
31338         fcntl: Fix cross compiling
31339         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
31340         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
31342 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
31344         dup2, fcntl: cross-compile better for Android
31345         Problem reported by Kevin Cernekee in:
31346         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00109.html
31347         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
31348         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
31349         there's little need to cross-compile for older kernels nowadays.
31350         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
31351         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
31353 2015-02-18  Pádraig Brady  <P@draigBrady.com>
31355         getopt: don't crash on memory exhaustion
31356         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
31357         memory exhaustion.  In the _LIBC case we use alloca() as is
31358         already done in glibc, so we don't need to consider the separate
31359         error path in that awkward case.  Also fix a memory leak when
31360         ambiguous options are present.
31361         Reported by Tobias Stoeckmann
31363 2015-02-17  Mike Miller  <mtmiller@ieee.org>
31365         tempname: allow compilation with C++ (trivial)
31366         * lib/tempname.h [C++]: Specify extern "C" linkage.
31367         * lib/tempname.h (try_tempname):
31368         * lib/tempname.c (__try_tempname, __gen_tempname):
31369         Rename 'try' to 'tryfunc'.
31371 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
31373         dup2, fcntl: port to AIX
31374         * m4/dup2.m4 (gl_FUNC_DUP2):
31375         * m4/fcntl.m4 (gl_FUNC_FCNTL):
31376         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
31377         The former works on AIX 7.1 but the latter does not.
31378         Also, this may work better with Android; see:
31379         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00100.html
31381 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
31383         getdtablesize, dup2, fcntl: port to Android
31384         Problem reported by Kevin Cernekee in:
31385         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00092.html
31386         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
31387         Mention that getdtablesize doesn't work on Android.
31388         * lib/getdtablesize.c: Use getrlimit substitute only if
31389         getdtablesize is declared.  This should suffice for Cygwin
31390         while not breaking Android.
31391         * m4/dup2.m4 (gl_FUNC_DUP2):
31392         * m4/fcntl.m4 (gl_FUNC_FCNTL):
31393         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
31394         standardized but the latter is not, and sysconf works on Android.
31395         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
31396         Also check that getdtablesize is declared.
31397         This removes the need for a special case for Android.
31399 2015-02-16  Kevin Cernekee  <cernekee@google.com>
31401         localename: Implement gl_locale_name_thread_unsafe for Android
31402         * lib/localename.c: Android API level >= 21 supports two hardcoded
31403         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
31404         the internal __locale_t struct.
31406 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
31408         fts: avoid crash when a cycle is added while traversing
31409         This could be triggered by auto-mounting a recursive bind mount.
31410         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
31411         * lib/fts.c (fts_read): Avoid removing the original hash table item
31412         when leaving a directory that caused a cycle, and preserve the FTS_DC
31413         flag.
31415 2015-02-16  Daiki Ueno  <ueno@gnu.org>
31417         uniname/uniname: support character alias
31418         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
31419         Generate one-way mapping from aliases to codepoints in the
31420         generated tables.  Special case variation selectors to reduce
31421         table size.
31422         * lib/uniname/uniname.c (unicode_character_name): Special case
31423         variation selectors.
31424         (unicode_name_character): Special case variation selectors and
31425         their aliases.
31426         * lib/uniname/uninames.h: Regenerate.
31427         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
31428         * modules/uniname/uniname-tests (Files): Add
31429         tests/uniname/NameAliases.txt.
31430         * tests/uniname/test-uninames.c: Mark as static.
31431         (ALIASLEN): Define.
31432         (struct unicode_alias): New struct.
31433         (unicode_aliases): New variable.
31434         (fill_aliases): New function.
31435         (test_alias_lookup): New test function.
31436         (main): Run the 'test_alias_lookup' test if the second argument is
31437         given.
31438         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
31439         second argument.
31441 2015-02-11  Kevin Cernekee  <cernekee@google.com>
31443         Fix FILE struct compatibility with Android API level >= 21
31444         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
31445         __sferror.  Recent versions of Bionic's stdio.h no longer define
31446         __sferror.
31447         * lib/fbufmode.c: Likewise.
31448         * lib/fflush.c: Likewise.
31449         * lib/fpurge.c: Likewise.
31450         * lib/freadable.c: Likewise.
31451         * lib/freadahead.c: Likewise.
31452         * lib/freading.c: Likewise.
31453         * lib/freadptr.c: Likewise.
31454         * lib/freadseek.c: Likewise.
31455         * lib/fseeko.c: Likewise.
31456         * lib/fseterr.c: Likewise.
31457         * lib/fwritable.c: Likewise.
31459         Assume unbroken ungetc() on Android
31460         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
31461         test case passed when running on an Android host, and the code
31462         hasn't really changed since 2009.
31464         getdtablesize: Fix Android build
31465         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
31466         versions have this symbol in the .so library (at least 32-bit
31467         platforms) but are missing the declaration in the header file,
31468         causing the m4 logic to guess incorrectly.
31470         localename: Fix Android build
31471         * modules/localename (Depends-on): Add langinfo.
31473         getugroups: Fix Android build
31474         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
31475         functions.
31477         euidaccess: Fix Android build
31478         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
31479         AT_EACCESS gets declared.
31481         linkat_nofollow: Add fallback case for cross compiling
31482         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
31484         net_if: Handle content-free <net/if.h> system headers
31485         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
31486         struct if_nameindex.  If not, enable the replacement header.
31488         signal_h: Fix Android build
31489         * lib/signal.in.h: Add Android to the list of platforms that declare
31490         pthread_sigmask() in <pthread.h> instead of <signal.h>.
31492         duplocale: Fix Android build of duplocale-tests
31493         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
31494         is included by test-duplocale.c (but not by duplocale.c).
31495         * modules/duplocale-tests (configure.ac): Check for monetary.h.
31496         * tests/test-duplocale.c: Skip test if monetary.h is absent.
31497         * doc/posix-headers/monetary.texi: Add Android to the list of
31498         platforms missing monetary.h.
31500 2015-02-11  Pádraig Brady  <P@draigBrady.com>
31502         tests: avoid recent -Werror=unused-variable regression in test-locale
31503         * tests/test-locale.c (main): Reference the variable to avoid the
31504         "unused variable" warning.
31506 2015-02-11  Pádraig Brady  <P@draigBrady.com>
31508         maint: various whitespace cleanups in tempname
31509         * lib/tempname.c: Normalize spacing and line length.
31510         * lib/tempname.h: Likewise.
31511         * modules/tempname: Likewise.
31513 2015-02-11  Pádraig Brady  <P@draigBrady.com>
31515         tests: provide returns_() to simplify exit status checking
31516         * tests/init.sh (returns_): A new function for use in tests,
31517         to allow for easier checking of return values, where you expect
31518         a command to exit with failure status.  By checking for a particular
31519         exit code, you don't hide any crashes for example.
31521 2015-02-11  Pádraig Brady  <P@draigBrady.com>
31523         mountlist: only use libmount when specified
31524         There are currently many shared libs dependencies introduced by
31525         libmount with associated runtime and virt mem overhead.
31526         Therefore don't enable by default.
31527         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
31529 2015-02-08  Daiki Ueno  <ueno@gnu.org>
31531         uniname/unimame-tests: don't link with -lunistring
31532         * modules/uniname/uniname-tests (Makefile.am): Don't link against
31533         $(LIBUNISTRING).  Document the rationale why we need to
31534         conditionalize the test.
31536 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
31538         fstrcmp: don't assume strlen < INT_MAX
31539         * lib/fstrcmp.c: Include stddef.h and stdint.h.
31540         (uintptr_t): Remove, as we're now assuming stdint.
31541         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
31542         Prefer ptrdiff_t to int when the value could exceed INT_MAX
31543         if the input string is long.
31544         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
31545         uintptr_t to size_t when the underlying value is a pointer casted
31546         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
31547         * modules/fstrcmp (Depends-on): Add stdint.
31549         diffseq: prefer ptrdiff_t to ssize_t
31550         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
31551         ptrdiff_t is the natural type for signed indexes.
31552         On a few older platforms, ssize_t is narrower than size_t.
31554         xalloc: fix typo that suppressed warnings
31555         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
31556         This typo, introduced a couple of years ago, mistakenly suppressed
31557         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
31558         -Wmissing-declarations warnings.
31560         full-read: fix license notice typo
31561         * lib/full-read.h: Remove a stray line in the license notice.
31562         Reported by Sam Ellis in: http://bugs.gnu.org/19808
31564         crypto/gc: fix a -Wswitch warning
31565         Reported by Bruce Korb in:
31566         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00046.html
31567         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
31569 2015-02-03  Pádraig Brady  <P@draigBrady.com>
31571         gnulib-tool: fix handling of patch(1) diagnostics
31572         * gnulib-tool: Send diagnostics from patch(1) to stderr,
31573         as otherwise gnulib-tool will reparse that output and attempt
31574         to lookup modules.
31576 2015-02-03  Pádraig Brady  <P@draigBrady.com>
31578         bootstrap: exit immediately upon gnulib-tool failure
31579         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
31580         This was noticed when gnulib-tool exited early due to failure
31581         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
31582         but various confusing errors were then given as the build proceeded.
31584 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
31586         symlinkat: include all required header files
31587         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
31588         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
31589         Reported at https://savannah.gnu.org/bugs/index.php?44151
31590         and by Jack Howarth.
31592 2015-01-29  Pádraig Brady  <P@draigBrady.com>
31594         localename: support Solaris 12 and illumos
31595         * lib/localename.c (gl_locale_name_thread_unsafe): call
31596         getlocalename_l() on newer __sun platforms.
31597         Reported by Alexander Pyhalov.
31598         Fix suggested by Rich Burridge.
31600 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
31602         locale: fix tests on illumos (trivial)
31603         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
31604         so move from global scope to main().
31606 2015-01-24  Daiki Ueno  <ueno@gnu.org>
31608         unictype: avoid undefined left-shift behavior
31609         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
31610         gcc's -fsanitize=shift and running its tests triggered:
31611           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
31612             places cannot be represented in type 'int'
31613         Cast LHS to 'unsigned int' after integer promotion.
31614         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
31615         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
31617 2015-01-20  Daiki Ueno  <ueno@gnu.org>
31619         libunistring: bump version of unitypes dependants
31620         Due to the header file search order, all the headers which depend
31621         on unitypes.h need to be generated, when the preinstalled
31622         libunistring is older.
31623         * modules/unicase/base (configure.ac): Bump minimum version to
31624         0.9.4.
31625         * modules/uniconv/base (configure.ac): Likewise.
31626         * modules/unilbrk/base (configure.ac): Likewise.
31627         * modules/uninorm/base (configure.ac): Likewise.
31628         * modules/unistdio/base (configure.ac): Likewise.
31629         * modules/unistr/base (configure.ac): Likewise.
31630         * modules/uniwbrk/base (configure.ac): Likewise.
31631         * modules/uniwidth/base (configure.ac): Likewise.
31633 2015-01-20  Daiki Ueno  <ueno@gnu.org>
31635         unictype/category-none: fix link with libunistring
31636         Since _UC_CATEGORY_NONE is not a public symbol, it will be
31637         prefixed with "libstring_" when compiled as part of libunistring.
31638         To avoid undefined symbol at link time, increase the minimum
31639         version when the dependant modules are updated.
31640         * modules/unictype/category-none (configure.ac): Bump minimum
31641         version to 0.9.5.
31643 2015-01-20  Daiki Ueno  <ueno@gnu.org>
31645         unitypes: fix build with installed libunistring
31646         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
31647         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
31648         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
31650 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
31652         time: port to MinGW32 3.21
31653         Problem reported by Eli Zaretskii in:
31654         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00042.html
31655         * lib/time.in.h:
31656         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
31657         * modules/time (Depends-on):
31658         Fall back on unistd.h if the other include files don't define
31659         struct timespec.
31661         update-copyright: apply to self
31662         * build-aux/update-copyright: Fix copyright date.  How ironic!
31664 2015-01-15  Daiki Ueno  <ueno@gnu.org>
31666         libunistring: update to Unicode 7.0.0
31667         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
31668         Manichaean names.
31669         * lib/unictype/joininggroup_name.h: Likewise.
31670         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
31671         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
31672         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
31673         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
31674         (fill_arabicshaping, joining_group_as_c_identifier): Support those
31675         enum values.
31676         (is_property_alphabetic): Accept newly added characters to
31677         cuneiform numeric signs.
31678         (is_property_default_ignorable_code_point): Reject U+0605.
31679         (FIELDLEN): Increase from 120 to 160.
31680         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
31681         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
31682         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
31683         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
31684         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
31685         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
31686         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
31687         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
31688         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
31689         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
31690         U+1E8D0..U+1E8D6.
31691         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
31692         * tests/uniwidth/test-uc_width2.sh: Same updates as in
31693         lib/uniwidth/width.c.
31694         * all generated files under lib/uni* and tests/uni*: Regenerate.
31696 2015-01-14  Daiki Ueno  <ueno@gnu.org>
31698         libunistring: update to Unicode 6.3.0
31699         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
31700         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
31701         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
31702         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
31703         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
31704         Update WB5, WB9, WB10, WB13a, and WB13b.
31705         * tests/uniwbrk/test-uc-wordbreaks.c
31706         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
31707         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
31708         (UC_BIDI_PDI): New enumeration values.
31709         (bidi_category_byname): Support those enum values.
31710         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
31711         dedicated property assigned.
31712         (is_property_case_ignorable): Check 0x0027.
31713         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
31714         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
31715         (output_wbp): Support those enum values.
31716         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
31717         (UC_BIDI_PDI): New enumeration values.
31718         * lib/unictype/bidi_byname.gperf: Add those property names.
31719         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
31720         U+180E, U+1A1B, and U+2066..U+2069.
31721         * tests/uniwidth/test-uc_width2.sh: Same updates as in
31722         lib/uniwidth/width.c.
31723         * all generated files under lib/uni* and tests/uni*: Regenerate.
31725 2015-01-14  Daiki Ueno  <ueno@gnu.org>
31727         libunistring: update to Unicode 6.2.0
31728         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
31729         (unilbrk_table): Adjust table size.
31730         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
31731         for LBP_RI.
31732         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
31733         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
31734         Normalize table index skipping ignored properties.
31735         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
31736         WBP_EXTEND and WBP_FORMAT, which are now computed without using
31737         the table.
31738         * lib/uniwbrk/wbrktable.h: Adjust table size.
31739         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
31740         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
31741         Support rule GB8a.
31742         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
31743         * tests/unigbrk/test-uc-is-grapheme-break.c
31744         (graphemebreakproperty_to_string): Support GBP_RI.
31745         * tests/uniwbrk/test-uc-wordbreaks.c
31746         (wordbreakproperty_to_string): Support WBP_RI.
31747         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
31748         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
31749         (output_lbp): Support LBP_RI.  Adjust some characters changed from
31750         LBP_AL to LBP_ID.
31751         (output_lbp): Support LBP_RI.
31752         (WBP_RI): New enumeration value.
31753         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
31754         (output_wbp): Support WBP_RI.
31755         (GBP_RI): New enumeration value.
31756         (output_gbp_test, fill_org_gbp): Support GBP_RI.
31757         * all generated files under lib/uni* and tests/uni*: Regenerate.
31759 2015-01-14  Daiki Ueno  <ueno@gnu.org>
31761         libunistring: update to Unicode 6.1.0
31762         * lib/gen-uni-tables.c (output_joining_group): Switch to
31763         3-level table to accommodate joining groups defined with higher
31764         codepoint value.  Since there are only 88 groups defined in
31765         Unicode 7.0.0, use 7-bit packed format for level3 entries.
31766         (get_lbp): Update for Unicode 6.1.0.
31767         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
31768         3-level table.
31769         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
31770         joining group name.
31771         * lib/unictype/joininggroup_name.h: Likewise.
31772         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
31773         (unilbrk_table): Adjust table size.
31774         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
31775         for LBP_HL.
31776         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
31777         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
31778         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
31779         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
31780         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
31781         U+302E..U+302F.
31782         * tests/uniwidth/test-uc_width2.sh: Same updates as in
31783         lib/uniwidth/width.c.
31784         * all generated files under lib/uni* and tests/uni*: Regenerate.
31785         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
31787 2015-01-15  Daiki Ueno  <ueno@gnu.org>
31789         uniwbrk/u32-wordbreaks-tests: add conformance test
31790         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
31791         tests/uniwbrk/test-uc-wordbreaks.c,
31792         tests/uniwbrk/test-uc-wordbreaks.sh, and
31793         tests/uniwbrk/WordBreakTest.txt.
31794         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
31795         test-uc-wordbreaks to $(check_PROGRAMS), and define
31796         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
31797         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
31798         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
31800 2015-01-15  Daiki Ueno  <ueno@gnu.org>
31802         uniwbrk: ignore Extended/Format characters at BOL not BOS
31803         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
31804         characters if the previous character property is one of
31805         WBP_NEWLINE, WBP_CR, and WBP_LF.
31807 2015-01-11  Jim Meyering  <meyering@fb.com>
31809         test-strstr.c: avoid a trivial leak
31810         * tests/test-strstr.c (main): Free haystack.
31812         update-copyright: recognize groff's \(co marker
31813         * build-aux/update-copyright (circle_c_re): Also accept
31814         uses of \(co, as found in gzip.1.
31816 2015-01-08  Pádraig Brady  <P@draigBrady.com>
31818         maint.mk: fix compatibility with OS X nm
31819         * top/maint.mk (_gl_tight_scope): Use the -g option to
31820         show exported items rather than the -e option which is
31821         ignored on all platforms except OS X where it gives an error.
31822         Reported by Assaf Gordon.
31824 2015-01-07  KO Myung-Hun  <komh@chollian.net>
31826         localcharset: improve charset detection on OS/2
31827         Use system codepage when appropriate.  Map OS/2 codepages to
31828         GNU canonical charset names if possible.
31829         * lib/config.charset: Don't output aliases if "$os" is os2*.
31830         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
31831         result for OS/2.
31832         (locale_charset) [OS2]: Use system codepage if codeset is omitted
31833         from the locale name which is neither "C" nor "POSIX".
31835 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
31837         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
31838         This reverts the last patch but one, as it shouldn't be needed now
31839         that the typo is fixed.
31840         * lib/count-leading-zeros.h (count_leading_zeros_ll):
31841         * lib/count-trailing-zeros.h:
31842         * lib/count-one-bits.h:
31843         Go back to using 64-bit intrinsics.
31845         count-leading-zeros: fix pragma typos
31846         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
31847         Fix typos in declaration of intrinsics when _MSC_VER.
31849 2015-01-06  Pádraig Brady  <P@draigBrady.com>
31851         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
31852         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
31853         intrinsics in this case.
31854         * lib/count-trailing-zeros.h: Likewise.
31855         * lib/count-one-bits.h: Likewise.
31857 2015-01-06  Daiki Ueno  <ueno@gnu.org>
31859         uniname/uniname: update to Unicode 7.0.0
31860         To accommodate new characters added since Unicode 5.1.0, this
31861         changes the internal representation of codepoint ranges.
31862         Previously, we grouped codepoint ranges by manually assigned 4-bit
31863         tag, which only allowed 16 groups.  This removes the limitation by
31864         switching to binary search on a table.  For the detail rationale
31865         and the benchmark results, see:
31866         https://lists.gnu.org/r/bug-libunistring/2014-06/msg00001.html
31867         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
31868         to INDEX, as it no longer represents a codepoint.
31869         (range): New struct.
31870         (main): Switch to intervals list from a bit-pattern based
31871         classification.
31872         * lib/uniname/uninames.h: Regenerate.
31873         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
31874         * modules/uniname/base (configure.ac): Bump minimum version to
31875         0.9.5.
31876         * modules/uniname/uniname (configure.ac): Bump minimum version to
31877         0.9.5.
31879 2015-01-05  Eric Blake  <eblake@redhat.com>
31881         doc: update INSTALL from autoconf
31882         * doc/install.texi: Resync from autoconf.
31883         * doc/INSTALL: Reflect recent autoconf update.
31884         * doc/INSTALL.ISO: Likewise.
31885         * doc/INSTALL.UTF-8: Likewise.
31887         stdio: fix use of PRIdMAX on modern mingw
31888         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
31889         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
31890         to work with modern mingw.
31892 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
31894         pthread: detect git mingw builds with only partial pollution
31895         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
31896         pollution, as seen temporarily in Fedora 21.
31898 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
31900         lib-symbol-versions: cache script check
31901         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
31902         Cache the check for linker version scripts.
31903         From a suggestion by Christophe Curis in:
31904         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00011.html
31906 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
31908         maint: fix grammar nits in propername (trivial change)
31909         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
31910         and use an adequate verb and tense.
31912 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
31914         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
31915         * module/gendocs: Add 'doc/gendocs_template_min'.
31917         * build-aux/gendocs.sh: Change email addresses and upstream URLs
31918         from to Gnulib's.
31919         (scripturl, templateurl): Adjust accordingly.
31921 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
31923         gendocs: copyright date and version fix
31924         Reported by Karl Berry in:
31925         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00002.html
31926         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
31927         Fix copyright date.
31928         * build-aux/gendocs.sh (scriptversion): Update.
31930 2015-01-01  Karl Berry  <karl@gnu.org>
31932         * doc/install.texi,
31933         * build-aux/mdate-sh,
31934         * build-aux/depcomp,
31935         * build-aux/config.guess,
31936         * build-aux/config.sub,
31937         * build-aux/ar-lib,
31938         * build-aux/compile: revert copyright updates (some from last
31939         year) in slaved files.
31941 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
31943         version-etc: new year
31944         * doc/gnulib.texi:
31945         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
31946         * all files: Run 'make update-copyright'.
31948 2014-12-30  Pádraig Brady  <P@draigBrady.com>
31950         xstrtol: ensure errno is reset
31951         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
31952         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
31954         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
31956 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
31958         utimens: fix dependency typo
31959         * modules/utimens (Depends-on): Remove 'assure'.
31960         This bug was introduced in the recent 'assure' patch.
31962 2014-12-22  Eric Blake  <eblake@redhat.com>
31964         docs: mention why libgen.h is bad
31965         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
31967 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
31969         assure: new module
31970         This works better than 'assert' when compiling with -DNDEBUG,
31971         as it avoids some compiler diagnostics in that case.
31972         Reported by Norihiro Tanaka in:
31973         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00215.html
31974         * MODULES.html.sh (func_all_modules): Add 'assure'.
31975         * lib/assure.h, modules/assure: New files.
31976         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
31977         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
31978         Prefer 'assure' to 'assert'.
31979         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
31980         * modules/chdir-long, modules/cycle-check, modules/fchdir:
31981         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
31982         Depend on 'assure'.
31984 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
31986         stdalign: port better to HP compilers
31987         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
31988         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
31990         stdalign: work around Apple GCC 4.0 bug
31991         Reported by David Fang in:
31992         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00194.html
31993         * lib/stdalign.in.h (_Alignas):
31994         * m4/stdalign.m4 (gl_STDALIGN_H):
31995         Do not use aligned attribute with GCC 4.0 on Apple.
31997 2014-12-16  Pádraig Brady  <P@draigBrady.com>
31999         getcwd: fix test failure on OS X 10.9
32000         * m4/getcwd-path-max.m4: Avoid the replacement if it
32001         won't be effective due to the PATH_MAX limitation of lstat().
32002         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
32003         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
32004         for this case for use in tests, and also exclude this
32005         case when setting REPLACE_GETCWD.
32006         * tests/test-getcwd.c (test_long_name): Restrict the
32007         tested path length so that lstat() will not be passed
32008         a path greater than PATH_MAX.
32009         Also key a test condition on HAVE_OPENAT_SUPPORT rather
32010         than AT_FDCWD, since the latter is set unconditionally
32011         since Sep 2009 in commit 52c658e9.
32013 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
32015         parse-datetime: avoid a compiler warning with byacc (trivial)
32016         * lib/parse-datetime.y (yylex): Use the same prototype in the
32017         function definition as the declaration, to avoid a -Wstrict-prototypes
32018         warning seen when using byacc.
32020 2014-12-12  Daiki Ueno  <ueno@gnu.org>
32022         unicase/locale-language-tests: fix LOCALE_FR test
32023         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
32024         a French locale with traditional encoding.
32025         Reported by umerqayam in:
32026         http://lists.gnu.org/r/bug-libunistring/2014-12/msg00000.html
32028 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
32030         stddef: support C11's max_align_t
32031         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
32032         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
32033         Do not undef, as that might cause max_align_t to be defined twice.
32034         Instead, change use to check for _GL_STDDEF_WINT_T too.
32035         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
32036         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
32037         Check for max_align_t.
32038         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
32039         * modules/stddef-tests (Depends-on): Add stdalign.
32040         * tests/test-stddef.c: Test max_align_t.
32042 2014-12-11  Daiki Ueno  <ueno@gnu.org>
32044         unistd: fix iOS check conditional
32045         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
32046         as 0 or 1 in <TargetConditionals.h>, and the previous check always
32047         yielded true on non-iOS environment.
32048         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
32049         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
32050         they are defined.
32052 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
32054         posixtm: avoid compiler warning in a better way
32055         * lib/posixtm.c (IF_LINT): Remove.
32056         (year, posix_time_parse):
32057         Return true (not 0) if successful.  All callers changed.
32058         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
32060 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
32062         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
32063         started with '/' on EMX.
32065 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
32067         freopen: workaround freopen() on OS/2 kLIBC
32068         * lib/freopen.c (rpl_freopen): Workaround.
32069         * m4/freopen.m4: Add os2* case.
32071         get_shared_library_fullname: port to EMX
32072         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
32073         on EMX, respectively.
32074         (_DLL_InitTerm): New on EMX.
32075         (get_shared_library_fullname): Implement on EMX.
32077         find_executable: port to EMX
32078         * lib/progreloc.c (find_executable): Implement on EMX.
32080         sched: check struct sched_param in spawn.h as well
32081         * lib/sched.in.h: Include spawn.h on kLIBC.
32082         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
32084 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
32086         bootstrap: Allow perl modules in $buildreq
32087         * build-aux/bootstrap: Add case for perl modules.
32089 2014-12-08  Pádraig Brady  <P@draigBrady.com>
32091         apply _GL_ATTRIBUTE_PURE to some inline functions
32092         clang 3.4.2 flagged these inline functions as pure
32093         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
32094         * lib/sig-handler.h (get_handler): Likewise.
32095         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
32096         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
32098 2014-12-06  Pádraig Brady  <P@draigBrady.com>
32100         vasnprintf: fix potential use after free
32101         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
32102         flagged by clang-analyzer 3.4.2.
32104 2014-12-05  Pádraig Brady  <P@draigBrady.com>
32106         filevercmp, posixtm: avoid compiler warnings with -O3
32107         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
32108         * lib/posixtm.c: (IF_LINT): Define.
32109         (posix_time_parse): Use it to void a "may be used uninitialized"
32110         warning, seen only with -O3.
32112 2014-12-05  Bruno Haible  <bruno@clisp.org>
32114         Fix LDBL80_WORDS macro on big endian platforms.
32115         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
32116         LDBL80_WORDS macro.
32117         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
32118         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
32119         * tests/test-isfinite.c (test_isfinitel): Likewise.
32120         * tests/test-isinf.c (test_isinfl): Likewise.
32121         * tests/test-isnan.c (test_long_double): Likewise.
32122         * tests/test-isnanl.h (main): Likewise.
32123         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
32124         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
32125         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
32126         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
32127         Reported by Pádraig Brady.
32129 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
32131         git-version-gen: do not print new line characters
32132         * build-aux/git-version-gen: Use printf instead of echo and tr.
32134         gnulib-tool: recognize x:* as an absolute path
32135         * gnulib-tool (func_gnulib_dir): Add ?:* case.
32136         (func_relconcat): Likewise.
32138 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
32140         argp: avoid extraneous translation and mem leak with empty pre doc
32141         * lib/argp-help.c (argp_doc): Never translate the empty string,
32142         when "\v" is the first or last character of the string, as that
32143         has a reserved meaning to return the header info from a po file.
32144         This also fixes a small memory leak in the !post case.
32145         The issue can be seen with this command for example:
32146         LC_MESSAGES=en_US grub2-mknetdir --help
32148 2014-11-27  Daiki Ueno  <ueno@gnu.org>
32150         uniname/uniname-tests: skip if system's libunistring is used
32151         * modules/uniname/uniname-tests (Makefile.am): Skip test if
32152         uniname/uniname module is not compiled.
32154 2014-11-27  Pádraig Brady  <P@draigBrady.com>
32156         printf: fix configure check on big endian systems
32157         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
32159 2014-11-22  Daiki Ueno  <ueno@gnu.org>
32161         pipe-filter-gi, pipe-filter-ii: port to AIX
32162         On AIX 7.1, 'select' is defined as static and cannot be referred
32163         to from inline function.
32164         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
32165         the definition...
32166         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
32167         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
32169 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
32171         gitlog-to-changelog: add --until
32172         * build-aux/gitlog-to-changelog: Support new --until option.
32173         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
32175 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
32177         extern-inline: update commentary about GCC bugs
32178         * m4/extern-inline.m4: Add another GCC bug number to comments.
32180 2014-11-13  Daiki Ueno  <ueno@gnu.org>
32182         gen-uni-tables: untabify
32183         * lib/gen-uni-tables.c: Untabify.
32185 2014-11-13  Daiki Ueno  <ueno@gnu.org>
32187         gen-uni-tables: check out-of-range values added to 3-level tables
32188         * lib/gen-uni-tables.c (output_category, output_bidi_category)
32189         (output_joining_type, output_ident_category): Check out-of-range
32190         values added to 3-level tables.
32192 2014-11-13  Daiki Ueno  <ueno@gnu.org>
32194         gen-uni-tables: utilize 'assert'
32195         * lib/gen-uni-tables.c: Include <assert.h>.
32196         (output_category, output_combclass, output_decimal_digit_test)
32197         (output_decimal_digit, output_digit_test, output_digit)
32198         (output_numeric, get_mirror_value, fill_properties)
32199         (fill_property30, is_property_alphabetic)
32200         (is_property_default_ignorable_code_point)
32201         (is_property_uppercase, is_property_lowercase)
32202         (is_property_cased, is_property_case_ignorable)
32203         (is_property_changes_when_lowercased, is_property_iso_control)
32204         (is_property_math, fill_arabicshaping, output_joining_group)
32205         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
32206         (output_wbp, fill_org_gbp, get_decomposition)
32207         (output_decomposition, fill_composition_exclusions)
32208         (debug_output_composition_tables, output_composition_tables)
32209         (redistribute_casefolding_rules, output_casing_rules): Use
32210         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
32211         reporting.
32213 2014-11-13  Daiki Ueno  <ueno@gnu.org>
32215         gen-uni-tables: cosmetic improvements
32216         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
32217         variables specification.
32218         (is_outdigit): Remove unused function.
32220 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
32222         fcntl-h-tests: port to PA-RISC GNU/Linux
32223         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
32225 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
32227         fts: port to C89
32228         Problem reported for MSVC 16 by Gisle Vanem in:
32229         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00027.html
32230         * lib/fts.c (fts_build): Avoid declaration before statement.
32232 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
32234         unistd: port to iOS
32235         Problem reported by André Klitzing in:
32236         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00013.html
32237         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
32239 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
32241         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
32242         Problem reported by Alan Modra in:
32243         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00007.html
32244         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
32245         Always cast the function arg, reverting this part of the previous
32246         change.
32248 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
32250         obstack: avoid potentially-nonportable function casts
32251         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
32252         Remove, replacing with ...
32253         (call_chunkfun, call_freefun): New static functions.
32254         All uses changed.  Avoid potentially-nonportable casts.
32255         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
32256         (_obstack_begin_worker): Omit last two args, since they
32257         rely on potentially-nonportable casts.  All callers changed.
32258         * lib/obstack.h (_OBSTACK_CAST): New macro.
32259         Use it everywhere the old API used a potentially-nonportable cast.
32260         The new API doesn't cast.
32261         (struct obstack): Use unions rather than requiring
32262         potentially-nonportable casts.
32263         (obstack_chunkfun, obstack_freefun): Return void.
32265 2014-11-03  Alan Modra  <amodra@gmail.com>
32267         obstack: fix macro return values
32268         * lib/obstack.h (obstack_next_free): Return void *.
32269         (obstack_1grow_fast, obstack_blank_fast): Return void.
32270         For __GNUC__ macros:
32271         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
32272         For !__GNUC__ macros:
32273         (obstack_make_room, obstack_grow, obstack_grow0)
32274         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
32276 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
32278         obstack: do not assume system-supplied obstack is size_t safe
32279         * m4/obstack.m4: New file.
32280         * modules/obstack (Files): Add it.
32282         obstack: port to platforms that #define __alignof__
32283         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
32284         not if !_LIBC.  We don't know of any platforms that #define
32285         __alignof__, but it might be useful in tests.  Conversely,
32286         glibc assumes GCC.
32288 2014-11-03  Pádraig Brady  <P@draigBrady.com>
32290         linkat: don't unconditionally replace on GNU/Linux
32291         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
32292         was redundant for a few reasons.  It was present to support compiling
32293         on new systems but running on the old narrow window of Linux 2.6.1[67].
32294         It setup and cleaned up test files which weren't actually used.
32295         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
32296         implicit in the following check.
32298 2014-11-03  Pádraig Brady  <P@draigBrady.com>
32300         linkat: wrap to handle symlinks on OS X 10.10
32301         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
32302         but not usable because it doesn't support creating hardlinks
32303         to symlinks.  Therefore add a generic test for this capability
32304         and fallback to our emulation if linkat() fails with ENOTSUP.
32306 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
32308         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
32309         * doc/posix-functions/open.texi (open):
32310         * doc/posix-functions/openat.texi (openat):
32311         Document that these functions do not set errno to ELOOP when
32312         a symlink is opened with O_NOFOLLOW.
32314 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
32316         obstack: add NEWS entry for recent incompatible changes
32317         * NEWS: Describe recent changes.
32319 2014-10-30  Pádraig Brady  <P@draigBrady.com>
32321         mountlist: don't use libmount to decide on dummy/remote
32322         * lib/mountlist.c (read_file_system_list): Don't use the libmount
32323         routines to determine whether a file system is dummy or remote,
32324         as they're not currently compatible.  For example the remoteness
32325         is determined on file system type (for which the list seems incomplete),
32326         rather than simply checking for a ':' in the device name.
32327         Also libmount currently determines that 'tmpfs' is a dummy file system
32328         even though it has associated storage.
32330 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
32332         obstack: prefer __alignof__ to alignof
32333         This is for portability to pre-4.7 GCC when compiling glibc.
32334         See Joseph S. Myers in:
32335         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
32336         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
32337         New macro, defined by including and using <alignof.h>.
32338         (MAX): New macro.
32339         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
32340         Do not use enums as they are not portable to some broken compilers.
32341         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
32343         obstack: prefer alignof to calculating alignments by hand
32344         * lib/obstack.c: Include <stdalign.h>.
32345         (struct fooalign): Remove.
32346         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
32347         * modules/obstack (Depends-on): Add stdalign.
32349 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
32351         obstack: use size_t alignments and check for overflow
32352         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
32353         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
32354         * lib/obstack.h (struct obstack.alignment_mask):
32355         Use _OBSTACK_SIZE_T, not int, for alignments.
32356         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
32357         overflows, e.g., when adding the alignment.
32359 2014-10-29  Alan Modra  <amodra@gmail.com>
32361         obstack: 64-bit obstack support, part 3
32362         This finally enables full 64-bit obstack support.  The glibc
32363         shared library specific code is removed from obstack.c too, and
32364         the error handling code conditionally compiled under control of
32365         another macro, _OBSTACK_NO_ERROR_HANDLER.
32366         * lib/obstack.h: Include string.h earlier.
32367         (_OBSTACK_INTERFACE_VERSION): Define.
32368         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
32369         * lib/obstack.c: Don't include shlib-compat.h.
32370         (OBSTACK_INTERFACE_VERSION): Delete.
32371         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
32372         glibc code is compatible with version 2.  Don't include stdio.h for
32373         __GNU_LIBRARY.
32374         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
32375         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
32376         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
32377         glibc shared library specific source.
32379         obstack: 64-bit obstack support, part 2
32380         This gets us 4G obstack support, without changing ABI
32381         compatibility, apart from possibly introducing some
32382         signed/unsigned comparison warnings in code that uses obstack.h.
32383         a) Replace "int" size parameters, return values, and macro local vars
32384            with _OBSTACK_SIZE_T, an "unsigned int" for now.
32385         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
32386         c) Make all obstack macros checking available room use obstack_room.
32387            "next_free + desired > chunk_limit" may wrap the lhs for chunks
32388            allocated near the top of memory.
32389         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
32390         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
32391         in place of "int" size parameters, return values and local vars.
32392         (_CHUNK_SIZE_T): Define.
32393         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
32394         union use an _OBSTACK_SIZE_T integer type.
32395         For __GNUC__ versions of the following macros...
32396         (obstack_room): Rename local var.
32397         (obstack_make_room): Use obstack_room.
32398         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
32399         obstack_int_grow, obstack_blank): Likewise.
32400         (obstack_finish): Use unsigned comparison when comparing aligned
32401         next_free against chunk_limit.
32402         (obstack_free): Cast OBJ to remove possible const qualifier.
32403         For !__GNUC__ versions of the following macros...
32404         (obstack_make_room): Use obstack_room.
32405         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
32406         obstack_int_grow, obstack_blank): Likewise.
32407         (obstack_finish): Use unsigned comparision when comparing aligned
32408         next_free against chunk_limit.
32409         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
32410         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
32411         _OBSTACK_SIZE_T.
32412         (_obstack_begin, _obstack_begin_1): Likewise.
32413         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
32414         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
32416         obstack: 64-bit obstack support, part 1
32417         a) Correct calls to alloc function, to use a size_t arg.  "long" is
32418            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
32419            and "size_t" 64 bits.
32420         b) Consolidate _obstack_begin and _obstack_begin1 code.
32421         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
32422         use "size_t" rather than "long".
32423         (_obstack_begin, _obstack_begin1): Likewise.
32424         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
32425         obstack_chunkfun): Update alloc function casts.
32426         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
32427         (chunkfun_type, freefun_type): New typdefs.
32428         (_obstack_begin_worker): Split out from ..
32429         (_obstack_begin, _obstack_begin_1): ..here.
32431         obstack: tidy part 2
32432         a) Don't be concerned about "not polluting the namespace with stddef.h
32433            symbols" in obstack.h, since gnulib string.h includes stddef.h
32434            anyway, and it seems unlikely that anyone would care.
32435         b) Don't roll our own slow memcpy in _obstack_newchunk.
32436         c) Rename obstack_free to _obstack_free.  This makes the naming
32437            consistent with other obstack functions and obviates the need for
32438            __obstack_free.  Ancient obstack.c defined both obstack_free and
32439            _obstack_free.  We continue to do that for _LIBC via an alias.
32440         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
32441            is clever, but nowadays gcc warns on undefined macros.  You'll get
32442            an undefined macro warning if simulating an old gcc with -U__GNUC__
32443            -U__GNUC_MINOR__ -D__GNUC__=1.
32444         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
32445         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
32446         (__obstack_free): Delete, update refs.
32447         (_obstack_free): Rename from obstack_free.
32448         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
32449         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
32450         * lib/obstack.c: Don't include stddef.h.
32451         (COPYING_UNIT): Delete.
32452         (_obstack_begin): Formatting fix.
32453         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
32454         (_obstack_free): Rename from __obstack_free, update alias.  Move
32455         undef of obstack_free to where it is needed.
32457         obstack: tidy part 1
32458         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
32459            to me, and result in overlong lines after later patches.
32460         b) Move error handling code, to avoid a forward declaration and to
32461            simplify later patches in this series.
32462         * lib/obstack.h (struct obstack <temp>): Rename fields of union
32463         and update all uses.
32464         * lib/obstack.c: Include stdlib.h earlier.
32465         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
32466         in file.
32467         (print_and_abort): Remove now redundant forward declaration.
32469 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
32471         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
32472         Without this change, in bleeding-edge fileutils Autoconf complains
32473         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
32474         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
32475         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
32476         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
32478 2014-10-24  Daiki Ueno  <ueno@gnu.org>
32480         iconv: avoid false detection of non-working iconv
32481         The INBUF arguments of iconv can be either 'const char **'
32482         or 'char **'.  If CC is g++, the difference causes a compile error
32483         and thus leads to a false detection of non-working iconv.
32484         Reported by Eli Zaretskii and Werner LEMBERG in:
32485         <https://lists.gnu.org/r/bug-gnulib/2014-10/msg00023.html>.
32486         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
32487         iconv.  Bump serial number.
32489 2014-10-23  Pádraig Brady  <P@draigBrady.com>
32491         bootstrap: print more diagnostics for missing programs
32492         * build-aux/bootstrap: only suppress stderr when checking for
32493         alternative program names.  This supports programs issuing non
32494         standard error messages.
32496 2014-10-23  Pádraig Brady  <P@draigBrady.com>
32498         bootstrap: only update the gnulib submodule
32499         * build-aux/bootstrap: Restrict the "submodule update" command
32500         to the gnulib path.
32502 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
32504         symlinkat: port to AIX 7.1
32505         * doc/posix-functions/symlinkat.texi (symlinkat):
32506         Mention AIX porting problem.
32507         * lib/symlinkat.c: Always include errno.h.
32508         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
32509         * lib/unistd.in.h (symlinkat): Add replacement machinery.
32510         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
32511         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
32512         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
32513         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
32514         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
32516         readlinkat: port to AIX 7.1
32517         * doc/posix-functions/readlink.texi (readlink):
32518         * doc/posix-functions/readlinkat.texi (readlinkat):
32519         Mention AIX porting problem.
32520         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
32521         New function.
32522         * lib/unistd.in.h (readlinkat): Add replacement machinery.
32523         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
32524         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
32525         * modules/readlinkat (configure.ac): Also compile replacement
32526         if REPLACE_READLINKAT.
32527         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
32529 2014-10-12  Karl Berry  <karl@gnu.org>
32531         * doc/posix-functions/dirname.texi: remove spurious {.
32533 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
32535         basename, dirname: Improve documentation.
32536         * doc/posix-functions/basename.texi: Mention dirname module and
32537         base_name() function.
32538         * doc/posix-functions/dirname.texi: Mention dir_name() and
32539         mdir_name() functions.
32540         Suggested by Werner LEMBERG <wl@gnu.org>.
32542 2014-09-24  Jim Meyering  <meyering@fb.com>
32544         exclude: declare exclude_patopts static
32545         * lib/exclude.c (exclude_patopts): Declare static,
32546         to avoid triggering a -Wmissing-prototypes warning.
32547         The alternative (declaring it in the .h file) would
32548         require publicizing the private "struct patopts".
32550 2014-09-21  Werner Lemberg  <wl@gnu.org>
32552         dirname: support compilation with C++
32553         * lib/dirname.h: Add necessary C linkage declarations.
32555 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
32557         qsort_r: include <config.h>
32558         Problem reported by Tom G. Christensen in:
32559         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00071.html
32560         * lib/qsort.c [!_LIBC]: Include <config.h> first.
32562 2014-09-16  Dylan Cali  <calid1984@gmail.com>
32564         avltree-list: avoid compiler warnings (trivial)
32565         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
32566         -Werror=suggest-attribute=pure.
32567         * lib/gl_array_list.c: Likewise.
32568         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
32569         declaration to avoid -Werror=missing-prototypes.  This is not added
32570         to a header as only exported for tests.  Add (void) to the
32571         check_invariants() call to indicate we're discarding the result
32572         in this context which avoids -Werror=unused-value.  Note we don't
32573         use ignore_value here to avoid a dependency as we know we'll not
32574         be adding __attribute__((warn_unused_result)) to check_invariants().
32575         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
32577 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
32579         qsort_r: new module, for GNU-style qsort_r
32580         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
32582 2014-09-15  Werner LEMBERG  <wl@gnu.org>
32584         strerror_r-posix: support compilation with C++
32585         * lib/strerror_r.c: Add necessary C linkage declarations.
32587 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
32589         fcntl-h: fix compilation with Intel C++ compiler (trivial)
32590         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
32592 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
32594         mountlist: use /proc/self/mountinfo when available
32595         Use libmount to propagate device IDs provided by Linux in
32596         /proc/self/mountinfo.  This will give more accurate output when
32597         using df in chroot'ed environments as the device IDs are not
32598         determined by stat() which may be inaccurate within the chroot.
32599         * lib/mountlist.c (read_file_system_list): Use the libmount routines
32600         from util-linux to parse "/proc/self/mountinfo" or fall back to
32601         standard getmntent() processing.
32602         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
32603         getmntent() is used, as is the case on GNU/Linux.
32605 2014-09-07  Eric Wong  <normalperson@yhbt.net>
32607         users.txt: add cmogstored
32608         cmogstored has used gnulib since the beginning in 2012 to support
32609         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
32611 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
32613         Trivial change.
32614         * gnulib-tool: Use same options as build-aux/bootstrap to download
32615         PO files.
32617 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
32619         Trivial change.
32620         * gnulib-tool: Fallback to wget when rsync of PO files fails.
32622 2014-09-04  Eric Blake  <eblake@redhat.com>
32624         maintainer-makefile: add syntax check for useless ';;'
32625         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
32627 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
32629         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
32630         Problem reported by Assaf Gordon in:
32631         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
32632         Apparently Ubuntu is doing some fancy link-time optimization
32633         that doesn't work with -lpthread but does work with -pthread.
32634         Work around the bug by preferring -pthread to -lpthread.
32635         * m4/pthread.m4 (gl_PTHREAD_CHECK):
32636         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
32637         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
32638         Treat -pthread like -lpthread.
32640 2014-09-04  Eric Blake  <eblake@redhat.com>
32642         error: drop spurious semicolon
32643         * lib/error.c (__error_at_line): Fix ';;'.
32645 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
32647         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
32648         * m4/gnulib-common.m4 (AC_C_RESTRICT):
32649         Override AC_C_RESTRICT unconditionally.
32650         Update from autoconf, incorporating:
32651         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
32652         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
32654 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
32656         manywarnings: add GCC 4.9 warnings
32657         Also, make it easier to maintain this in the future.
32658         * build-aux/gcc-warning.spec: Add -Wabi-tag,
32659         -Wconditionally-supported, -Wdelete-incomplete,
32660         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
32661         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
32662         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
32663         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
32664         only for older GCC versions that need them.  Handle
32665         -Wnormalized=nfc specially, so that the 'comm' command used
32666         for maintenance doesn't get confused.
32668 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
32670         vasnprintf: fix bugs in width computation
32671         * lib/vasnprintf.c (VASNPRINTF):
32672         Rework previous change, which introduced a bug,
32673         to avoid the warning in a different way.
32674         Avoid undefined behavior if the width arg is less than -INT_MAX.
32675         Avoid unnecessary use of HAS_WIDTH local.
32677 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
32679         vasnprintf: Avoid signed/unsigned comparison warning.
32680         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
32681         compare end addr of generated string w/ maximum end addr.
32683 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
32685         parse-datetime: Avoid pointer difference.
32686         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
32687         instead of calculating difference of pointers.  This removes an
32688         annoying warning, devoid of any use.
32690 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
32692         qsort_r: new module, for GNU-style qsort_r
32693         This works even on FreeBSD, which has an incompatible qsort_r API.
32694         * MODULES.html.sh: Add it.
32695         * doc/glibc-functions/qsort_r.texi: It's now supported.
32696         * lib/qsort.c: New file, taken from glibc with minor changes
32697         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
32698         removed.
32699         * lib/qsort_r.c: New file, compiled only on FreeBSD.
32700         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
32701         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
32702         * modules/qsort_r, modules/qsort_r-tests: New files.
32703         * modules/stdlib (Makefile): Set up its defaults.
32704         * tests/test-qsort_r.c: New file.
32706 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
32708         vla: new module
32709         GNU RCS can use this, mostly for documentation I expect.  See:
32710         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00025.html
32711         * MODULES.html.sh: Add vla.
32712         * lib/vla.h, modules/vla: New files.
32714 2014-08-07  Daiki Ueno  <ueno@gnu.org>
32716         localename: make gl_locale_name_thread really thread-safe on Windows
32717         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
32718         "glthread/lock.h".
32719         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
32720         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
32722 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
32724         getpass: don't assume struct termios
32725         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
32726         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00015.html
32727         * lib/getpass.c (getpass): Port to systems lacking struct termios.
32729         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
32730         Problem reported by Jonas 'Sortie' Termansen in:
32731         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00023.html
32732         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
32733         Implement via sysconf for platforms that lack getdtablesize.
32735         vararrays: modernize AC_C_VARARRAYS for C11
32736         This backports a change I recently made to Autoconf.
32737         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
32738         VLAs are not supported, as this is what C11 does.  The old macro
32739         HAVE_C_VARARRAYS is still defined if they are supported, but is
32740         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
32742 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
32744         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
32745         * build-aux/install-reloc (func_create_wrapper): Also wrap
32746         strerror-override, stat, stat.
32748 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
32750         sys_select: fix FD_ZERO problem on Solaris 10
32751         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
32752         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
32753         to expand to an expression that invoked memset without necessarily
32754         including <string.h>.  The problem was that the first include
32755         defined _SYS_TIME_H, causing the second include to short-circuit.
32756         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
32757         Also, fix what appears to be a cut-and-paste typo, by replacing
32758         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
32759         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
32761         accept: document Solaris 10 type glitch
32762         * doc/posix-functions/accept.texi (accept): Mention that
32763         Solaris 10 'accept' takes void * last arg, not socklen_t *.
32765 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
32767         extern-inline: port to FreeBSD, DragonFly
32768         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
32769         is present if either __DragonFly__ or __FreeBSD__ is defined.
32770         FreeBSD problem reported by Andrey Borzenkov in:
32771         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00104.html
32772         Also, worry about __APPLE__ only if __MACH__ is also defined,
32773         as this is more consistent with the rest of gnulib.
32774         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
32775         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
32777 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
32779         regex: Make #if/#ifdef usage consistent for DEBUG
32780         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
32781         of the inconsistent usage of #if and #ifdef as that works with
32782         both Glibc and Gnulib's style.
32784 2014-07-31  Eric Blake  <eblake@redhat.com>
32786         openat-die: use _Noreturn markup
32787         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
32788         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
32789         _Noreturn.
32791 2014-07-30  Eric Blake  <eblake@redhat.com>
32793         test-open: port to cygwin, which lacks Fortify
32794         * tests/test-open.h (ALWAYS_INLINE): New macro.
32795         (__always_inline): Don't abuse internal symbol on non-glibc.
32797 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
32799         localename: Enforce declarations before statements.
32800         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
32801         first statement.
32803 2014-07-18  Jim Meyering  <meyering@fb.com>
32805         test-userspec: don't look up numeric user names
32806         * tests/test-userspec.c: I found a system for which getpwnam("0")
32807         returned a pointer to a non-root user's entry, and that made the
32808         test fail.
32809         (T): Prefix each numeric input with "+", to inhibit lookup.
32811 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
32813         localcharset, localename: MS-Windows support for non-default locales
32814         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
32815         falling back on the default system codepage, try extracting
32816         the codepage from what 'setlocale' returns.  This allows to
32817         take into account changes of the codeset due to non-default
32818         locale set by a previous call to 'setlocale'.
32819         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
32820         Define if not already defined.
32821         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
32822         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
32823         current locale by calling 'setlocale', then converting the
32824         locale name into LCID by calling 'get_lcid'.  This allows to
32825         take into account changes in the current locale from the
32826         default one, in contrast to GetThreadLocale.
32828 2014-07-14  Daiki Ueno  <ueno@gnu.org>
32830         announce-gen: avoid failure when Digest::SHA is installed
32831         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
32832         Digest::SHA1->new in print_checksums fails.
32833         * build-aux/announce-gen (digest_classes): New associative array
32834         for available message digest implementations.
32835         (print_locations): Use it.
32837 2014-07-13  Pádraig Brady  <P@draigBrady.com>
32839         gettext: revert "update macros to version 0.19"
32840         This reverts commit 9b9370ca, as it currently requires that
32841         developers of any project that explicitly uses the gettext module
32842         or implicitly uses it through the utimens-tests or
32843         futimens-tests modules, use gettext >= 0.19.
32844         However there are some stability and availablity issues with
32845         that version at present.  We can reinstate this soon, when stability
32846         is addressed and packages are more readily available.
32848 2014-07-12  Jim Meyering  <meyering@fb.com>
32850         regex: don't deref NULL upon heap allocation failure
32851         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
32852         failure in one more place.
32853         To trigger the segfault, configure grep -with-included-regex,
32854         build it, and run these commands:
32855         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
32856         I discovered this while replying to a private report from
32857         Jens Schleusener about excessive memory consumption by grep
32858         when using a regular expression like the one above.
32860 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
32862         regex: fix memory leak in compiler
32863         Fix by Andreas Schwab in:
32864         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
32865         * lib/regcomp.c (parse_reg_exp): Deallocate partially
32866         constructed tree before returning error.
32868 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
32870         announce-gen: avoid perl warnings
32871         * build-aux/announce-gen: add two minor checks to avoid
32872         "use of uninitialized value" warnings when command-line parameters are
32873         missing.
32875 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
32877         localename: avoid -Wsuggest-attribute={const,pure} warnings
32878         * lib/localename.c (string_has): Tag internal function as pure.
32879         * lib/localename.h (gl_locale_name_default): Tag extern declaration
32880         as const when appropriate.
32882 2014-07-10  Eli Zaretskii  <eliz@gnu.org>
32884         nl_langinfo: Fix last change.
32885         * lib/nl_langinfo.c (includes): Drop redundant include.
32887 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
32889         error: Fix -Wundef warnings in glibc
32890         * lib/error.c [_LIBC]: Define default macros for
32891         glibc.
32892         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
32893         Check _LIBC before STRERROR_R_CHAR_P.
32895         error: Sync from glibc master
32896         * lib/error.c [_LIBC]: Remove INTUSE usage.
32897         (error_tail): Remove unused macro ALLOCA_LIMIT.
32898         Fix potential buffer overflow.  Fix potential NULL dereference
32899         in strcmp.
32901 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
32903         nl_langinfo: fix build under mingw
32904         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
32906 2014-07-09  Andrew D Warshall  <warshall@99main.com>
32908         mountlist: do not classify a bind-mounted dir entry as "dummy"
32909         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
32910         1-argument getmntent() (instead of assuming absence).
32912 2014-07-08  Eric Blake  <eblake@redhat.com>
32914         maint.mk: less syntax-check noise when SIGPIPE is ignored
32915         * top/maint.mk (_sc_header_without_use)
32916         (sc_require_config_h_first): Parse full list.
32918 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
32919             Paul Eggert  <eggert@cs.ucla.edu>
32921         nl_langinfo: CODESET on MS-Windows and more items from localeconv
32922         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
32923         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
32924         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
32925         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
32926         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
32927         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
32928         Include <stdio.h> if Microsoft Windows.
32929         Include <time.h> if !REPLACE_NL_LANGINFO.
32930         (ctype_codeset): New function, taken from rpl_nl_langinfo,
32931         and with improvements for Microsoft Windows.
32932         (rpl_nl_langinfo): Use it.
32933         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
32934         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
32935         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
32936         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
32937         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
32938         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
32939         corresponding values returned by 'localeconv'.  Compute the values
32940         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
32941         'strftime' with a suitable struct tm value.
32943 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
32945         Bruno Haible has stepped down as maintainer.
32946         See Karl Berry in:
32947         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00004.html
32948         Daiki Ueno has volunteered to maintain libunistring; see:
32949         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00005.html
32950         * modules/gen-uni-tables, modules/libunistring:
32951         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
32952         * modules/unicase/base, modules/unicase/cased:
32953         * modules/unicase/empty-prefix-context:
32954         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
32955         * modules/unicase/locale-language, modules/unicase/special-casing:
32956         * modules/unicase/tocasefold, modules/unicase/tolower:
32957         * modules/unicase/totitle, modules/unicase/toupper:
32958         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
32959         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
32960         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
32961         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
32962         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
32963         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
32964         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
32965         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
32966         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
32967         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
32968         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
32969         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
32970         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
32971         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
32972         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
32973         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
32974         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
32975         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
32976         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
32977         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
32978         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
32979         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
32980         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
32981         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
32982         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
32983         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
32984         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
32985         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
32986         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
32987         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
32988         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
32989         * modules/unicase/ulc-casexfrm, modules/unicodeio:
32990         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
32991         * modules/uniconv/u16-conv-to-enc:
32992         * modules/uniconv/u16-strconv-from-enc:
32993         * modules/uniconv/u16-strconv-from-locale:
32994         * modules/uniconv/u16-strconv-to-enc:
32995         * modules/uniconv/u16-strconv-to-locale:
32996         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
32997         * modules/uniconv/u32-strconv-from-enc:
32998         * modules/uniconv/u32-strconv-from-locale:
32999         * modules/uniconv/u32-strconv-to-enc:
33000         * modules/uniconv/u32-strconv-to-locale:
33001         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
33002         * modules/uniconv/u8-strconv-from-enc:
33003         * modules/uniconv/u8-strconv-from-locale:
33004         * modules/uniconv/u8-strconv-to-enc:
33005         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
33006         * modules/unictype/bidicategory-all:
33007         * modules/unictype/bidicategory-byname:
33008         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
33009         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
33010         * modules/unictype/bidiclass-byname:
33011         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
33012         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
33013         * modules/unictype/block-all, modules/unictype/block-list:
33014         * modules/unictype/block-of, modules/unictype/block-test:
33015         * modules/unictype/category-C, modules/unictype/category-Cc:
33016         * modules/unictype/category-Cf, modules/unictype/category-Cn:
33017         * modules/unictype/category-Co, modules/unictype/category-Cs:
33018         * modules/unictype/category-L, modules/unictype/category-LC:
33019         * modules/unictype/category-Ll, modules/unictype/category-Lm:
33020         * modules/unictype/category-Lo, modules/unictype/category-Lt:
33021         * modules/unictype/category-Lu, modules/unictype/category-M:
33022         * modules/unictype/category-Mc, modules/unictype/category-Me:
33023         * modules/unictype/category-Mn, modules/unictype/category-N:
33024         * modules/unictype/category-Nd, modules/unictype/category-Nl:
33025         * modules/unictype/category-No, modules/unictype/category-P:
33026         * modules/unictype/category-Pc, modules/unictype/category-Pd:
33027         * modules/unictype/category-Pe, modules/unictype/category-Pf:
33028         * modules/unictype/category-Pi, modules/unictype/category-Po:
33029         * modules/unictype/category-Ps, modules/unictype/category-S:
33030         * modules/unictype/category-Sc, modules/unictype/category-Sk:
33031         * modules/unictype/category-Sm, modules/unictype/category-So:
33032         * modules/unictype/category-Z, modules/unictype/category-Zl:
33033         * modules/unictype/category-Zp, modules/unictype/category-Zs:
33034         * modules/unictype/category-all, modules/unictype/category-and:
33035         * modules/unictype/category-and-not, modules/unictype/category-byname:
33036         * modules/unictype/category-longname, modules/unictype/category-name:
33037         * modules/unictype/category-none, modules/unictype/category-of:
33038         * modules/unictype/category-or, modules/unictype/category-test:
33039         * modules/unictype/category-test-withtable:
33040         * modules/unictype/combining-class:
33041         * modules/unictype/combining-class-all:
33042         * modules/unictype/combining-class-byname:
33043         * modules/unictype/combining-class-longname:
33044         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
33045         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
33046         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
33047         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
33048         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
33049         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
33050         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
33051         * modules/unictype/digit, modules/unictype/joininggroup-all:
33052         * modules/unictype/joininggroup-byname:
33053         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
33054         * modules/unictype/joiningtype-all:
33055         * modules/unictype/joiningtype-byname:
33056         * modules/unictype/joiningtype-longname:
33057         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
33058         * modules/unictype/mirror, modules/unictype/numeric:
33059         * modules/unictype/property-all, modules/unictype/property-alphabetic:
33060         * modules/unictype/property-ascii-hex-digit:
33061         * modules/unictype/property-bidi-arabic-digit:
33062         * modules/unictype/property-bidi-arabic-right-to-left:
33063         * modules/unictype/property-bidi-block-separator:
33064         * modules/unictype/property-bidi-boundary-neutral:
33065         * modules/unictype/property-bidi-common-separator:
33066         * modules/unictype/property-bidi-control:
33067         * modules/unictype/property-bidi-embedding-or-override:
33068         * modules/unictype/property-bidi-eur-num-separator:
33069         * modules/unictype/property-bidi-eur-num-terminator:
33070         * modules/unictype/property-bidi-european-digit:
33071         * modules/unictype/property-bidi-hebrew-right-to-left:
33072         * modules/unictype/property-bidi-left-to-right:
33073         * modules/unictype/property-bidi-non-spacing-mark:
33074         * modules/unictype/property-bidi-other-neutral:
33075         * modules/unictype/property-bidi-pdf:
33076         * modules/unictype/property-bidi-segment-separator:
33077         * modules/unictype/property-bidi-whitespace:
33078         * modules/unictype/property-byname:
33079         * modules/unictype/property-case-ignorable:
33080         * modules/unictype/property-cased:
33081         * modules/unictype/property-changes-when-casefolded:
33082         * modules/unictype/property-changes-when-casemapped:
33083         * modules/unictype/property-changes-when-lowercased:
33084         * modules/unictype/property-changes-when-titlecased:
33085         * modules/unictype/property-changes-when-uppercased:
33086         * modules/unictype/property-combining:
33087         * modules/unictype/property-composite:
33088         * modules/unictype/property-currency-symbol:
33089         * modules/unictype/property-dash:
33090         * modules/unictype/property-decimal-digit:
33091         * modules/unictype/property-default-ignorable-code-point:
33092         * modules/unictype/property-deprecated:
33093         * modules/unictype/property-diacritic:
33094         * modules/unictype/property-extender:
33095         * modules/unictype/property-format-control:
33096         * modules/unictype/property-grapheme-base:
33097         * modules/unictype/property-grapheme-extend:
33098         * modules/unictype/property-grapheme-link:
33099         * modules/unictype/property-hex-digit:
33100         * modules/unictype/property-hyphen:
33101         * modules/unictype/property-id-continue:
33102         * modules/unictype/property-id-start:
33103         * modules/unictype/property-ideographic:
33104         * modules/unictype/property-ids-binary-operator:
33105         * modules/unictype/property-ids-trinary-operator:
33106         * modules/unictype/property-ignorable-control:
33107         * modules/unictype/property-iso-control:
33108         * modules/unictype/property-join-control:
33109         * modules/unictype/property-left-of-pair:
33110         * modules/unictype/property-line-separator:
33111         * modules/unictype/property-logical-order-exception:
33112         * modules/unictype/property-lowercase, modules/unictype/property-math:
33113         * modules/unictype/property-non-break:
33114         * modules/unictype/property-not-a-character:
33115         * modules/unictype/property-numeric:
33116         * modules/unictype/property-other-alphabetic:
33117         * modules/unictype/property-other-default-ignorable-code-point:
33118         * modules/unictype/property-other-grapheme-extend:
33119         * modules/unictype/property-other-id-continue:
33120         * modules/unictype/property-other-id-start:
33121         * modules/unictype/property-other-lowercase:
33122         * modules/unictype/property-other-math:
33123         * modules/unictype/property-other-uppercase:
33124         * modules/unictype/property-paired-punctuation:
33125         * modules/unictype/property-paragraph-separator:
33126         * modules/unictype/property-pattern-syntax:
33127         * modules/unictype/property-pattern-white-space:
33128         * modules/unictype/property-private-use:
33129         * modules/unictype/property-punctuation:
33130         * modules/unictype/property-quotation-mark:
33131         * modules/unictype/property-radical:
33132         * modules/unictype/property-sentence-terminal:
33133         * modules/unictype/property-soft-dotted:
33134         * modules/unictype/property-space:
33135         * modules/unictype/property-terminal-punctuation:
33136         * modules/unictype/property-test, modules/unictype/property-titlecase:
33137         * modules/unictype/property-unassigned-code-value:
33138         * modules/unictype/property-unified-ideograph:
33139         * modules/unictype/property-uppercase:
33140         * modules/unictype/property-variation-selector:
33141         * modules/unictype/property-white-space:
33142         * modules/unictype/property-xid-continue:
33143         * modules/unictype/property-xid-start:
33144         * modules/unictype/property-zero-width, modules/unictype/scripts:
33145         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
33146         * modules/unictype/syntax-c-whitespace:
33147         * modules/unictype/syntax-java-ident:
33148         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
33149         * modules/unigbrk/u16-grapheme-breaks:
33150         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
33151         * modules/unigbrk/u32-grapheme-breaks:
33152         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
33153         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
33154         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
33155         * modules/unigbrk/uc-is-grapheme-break:
33156         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
33157         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
33158         * modules/unilbrk/u16-width-linebreaks:
33159         * modules/unilbrk/u32-possible-linebreaks:
33160         * modules/unilbrk/u32-width-linebreaks:
33161         * modules/unilbrk/u8-possible-linebreaks:
33162         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
33163         * modules/unilbrk/ulc-possible-linebreaks:
33164         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
33165         * modules/uniname/uniname, modules/uninorm/base:
33166         * modules/uninorm/canonical-decomposition:
33167         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
33168         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
33169         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
33170         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
33171         * modules/uninorm/nfkc, modules/uninorm/nfkd:
33172         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
33173         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
33174         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
33175         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
33176         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
33177         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
33178         * modules/unistdio/base, modules/unistdio/u-printf-args:
33179         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
33180         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
33181         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
33182         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
33183         * modules/unistdio/u16-u16-sprintf:
33184         * modules/unistdio/u16-u16-vasnprintf:
33185         * modules/unistdio/u16-u16-vasprintf:
33186         * modules/unistdio/u16-u16-vsnprintf:
33187         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
33188         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
33189         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
33190         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
33191         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
33192         * modules/unistdio/u32-u32-asnprintf:
33193         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
33194         * modules/unistdio/u32-u32-sprintf:
33195         * modules/unistdio/u32-u32-vasnprintf:
33196         * modules/unistdio/u32-u32-vasprintf:
33197         * modules/unistdio/u32-u32-vsnprintf:
33198         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
33199         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
33200         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
33201         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
33202         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
33203         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
33204         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
33205         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
33206         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
33207         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
33208         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
33209         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
33210         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
33211         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
33212         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
33213         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
33214         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
33215         * modules/unistr/u16-check, modules/unistr/u16-chr:
33216         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
33217         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
33218         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
33219         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
33220         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
33221         * modules/unistr/u16-move, modules/unistr/u16-next:
33222         * modules/unistr/u16-prev, modules/unistr/u16-set:
33223         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
33224         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
33225         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
33226         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
33227         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
33228         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
33229         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
33230         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
33231         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
33232         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
33233         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
33234         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
33235         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
33236         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
33237         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
33238         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
33239         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
33240         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
33241         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
33242         * modules/unistr/u32-next, modules/unistr/u32-prev:
33243         * modules/unistr/u32-set, modules/unistr/u32-startswith:
33244         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
33245         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
33246         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
33247         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
33248         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
33249         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
33250         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
33251         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
33252         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
33253         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
33254         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
33255         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
33256         * modules/unistr/u8-check, modules/unistr/u8-chr:
33257         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
33258         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
33259         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
33260         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
33261         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
33262         * modules/unistr/u8-next, modules/unistr/u8-prev:
33263         * modules/unistr/u8-set, modules/unistr/u8-startswith:
33264         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
33265         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
33266         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
33267         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
33268         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
33269         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
33270         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
33271         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
33272         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
33273         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
33274         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
33275         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
33276         * modules/uniwbrk/base, modules/uniwbrk/table:
33277         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
33278         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
33279         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
33280         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
33281         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
33282         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
33283         * modules/uniwidth/width, modules/utf16-ucs4:
33284         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
33285         * modules/utf8-ucs4-unsafe:
33286         Change maintainer from Bruno Haible to Daiki Ueno.
33287         This is my guess at the libunistring modules; please feel free
33288         to fix if I guessed incorrectly.
33289         * modules/accept4, modules/acl, modules/acos, modules/acosf:
33290         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
33291         * modules/areadlink, modules/array-list, modules/array-mergesort:
33292         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
33293         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
33294         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
33295         * modules/binary-io, modules/bison-i18n, modules/btowc:
33296         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
33297         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
33298         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
33299         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
33300         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
33301         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
33302         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
33303         * modules/closedir, modules/concat-filename, modules/copy-file:
33304         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
33305         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
33306         * modules/csharpcomp-script, modules/csharpexec:
33307         * modules/csharpexec-script, modules/ctype, modules/diffseq:
33308         * modules/dprintf, modules/dprintf-posix, modules/dup:
33309         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
33310         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
33311         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
33312         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
33313         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
33314         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
33315         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
33316         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
33317         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
33318         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
33319         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
33320         * modules/findprog, modules/findprog-lgpl, modules/floor:
33321         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
33322         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
33323         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
33324         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
33325         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
33326         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
33327         * modules/freadable, modules/freadahead, modules/freadptr:
33328         * modules/freadseek, modules/freopen, modules/frexp:
33329         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
33330         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
33331         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
33332         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
33333         * modules/ftello, modules/full-read, modules/full-write:
33334         * modules/fwritable, modules/fwriteerror, modules/gcd:
33335         * modules/get-rusage-as, modules/get-rusage-data:
33336         * modules/getdtablesize, modules/getrusage, modules/gettext:
33337         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
33338         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
33339         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
33340         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
33341         * modules/iconv, modules/iconv-h, modules/iconv_open:
33342         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
33343         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
33344         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
33345         * modules/integer_length_ll, modules/ioctl, modules/isatty:
33346         * modules/isblank, modules/isnand, modules/isnand-nolibm:
33347         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
33348         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
33349         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
33350         * modules/javaexec, modules/javaexec-script, modules/javaversion:
33351         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
33352         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
33353         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
33354         * modules/lib-symbol-visibility, modules/libsigsegv:
33355         * modules/linked-list, modules/linkedhash-list, modules/list:
33356         * modules/localcharset, modules/locale, modules/localeconv:
33357         * modules/localename, modules/lock, modules/log, modules/log-ieee:
33358         * modules/log10, modules/log10-ieee, modules/log10f:
33359         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
33360         * modules/log1p, modules/log1p-ieee, modules/log1pf:
33361         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
33362         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
33363         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
33364         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
33365         * modules/logf, modules/logf-ieee, modules/login_tty:
33366         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
33367         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
33368         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
33369         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
33370         * modules/mbscspn, modules/mbsinit, modules/mbslen:
33371         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
33372         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
33373         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
33374         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
33375         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
33376         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
33377         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
33378         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
33379         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
33380         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
33381         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
33382         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
33383         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
33384         * modules/posix_spawn, modules/posix_spawn-internal:
33385         * modules/posix_spawn_file_actions_addclose:
33386         * modules/posix_spawn_file_actions_adddup2:
33387         * modules/posix_spawn_file_actions_addopen:
33388         * modules/posix_spawn_file_actions_destroy:
33389         * modules/posix_spawn_file_actions_init:
33390         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
33391         * modules/posix_spawnattr_getpgroup:
33392         * modules/posix_spawnattr_getschedparam:
33393         * modules/posix_spawnattr_getschedpolicy:
33394         * modules/posix_spawnattr_getsigdefault:
33395         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
33396         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
33397         * modules/posix_spawnattr_setschedparam:
33398         * modules/posix_spawnattr_setschedpolicy:
33399         * modules/posix_spawnattr_setsigdefault:
33400         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
33401         * modules/pow, modules/powf, modules/printf-frexp:
33402         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
33403         * modules/progname, modules/propername, modules/pselect:
33404         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
33405         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
33406         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
33407         * modules/read, modules/readdir, modules/readlink:
33408         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
33409         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
33410         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
33411         * modules/relocatable-script, modules/remainder:
33412         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
33413         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
33414         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
33415         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
33416         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
33417         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
33418         * modules/setlocale, modules/sh-quote, modules/shutdown:
33419         * modules/signal, modules/signbit, modules/sigpipe:
33420         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
33421         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
33422         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
33423         * modules/snippet/link-warning, modules/snippet/unused-parameter:
33424         * modules/snprintf, modules/snprintf-posix, modules/spawn:
33425         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
33426         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
33427         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
33428         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
33429         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
33430         * modules/streq, modules/strerror_r-posix, modules/striconv:
33431         * modules/striconveh, modules/striconveha, modules/strncat:
33432         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
33433         * modules/sublist, modules/sys_resource, modules/sys_utsname:
33434         * modules/sys_wait, modules/system-posix, modules/system-quote:
33435         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
33436         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
33437         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
33438         * modules/truncf, modules/truncf-ieee, modules/truncl:
33439         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
33440         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
33441         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
33442         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
33443         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
33444         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
33445         * modules/wait-process, modules/waitpid, modules/wcpcpy:
33446         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
33447         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
33448         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
33449         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
33450         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
33451         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
33452         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
33453         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
33454         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
33455         * modules/write, modules/xconcat-filename, modules/xlist:
33456         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
33457         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
33458         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
33459         * modules/y0, modules/y1, modules/yn:
33460         Remove Bruno Haible as maintainer; if he's the sole maintainer,
33461         change the maintainer to 'all'.  Let's hope someone volunteers.
33463 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
33465         mktime: merge #if/#ifdef usage from glibc
33466         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
33467         as that works with both Glibc's and Gnulib's style.
33468         See thread starting at Siddhesh Poyarekar's bug report at:
33469         http://lists.gnu.org/r/bug-gnulib/2014-06/msg00102.html
33471 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
33473         git-version-gen: improve option descriptions
33474         * build-aux/git-version-gen: Mention that --prefix and --fallback
33475         have a mandatory argument.
33477 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
33479         regex: fix memory leak in compiler
33480         Fix by Andreas Schwab in:
33481         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
33482         * lib/regcomp.c (parse_expression): Deallocate partially
33483         constructed tree before returning error.
33485         regex: merge patch from libc
33486         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
33487         Combine __USE_BSD and __USE_SVID into __USE_MISC.
33488         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
33490 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
33492         acl: port to gcc -Wredundant-decls
33493         From a request by Dmitry Antipov in:
33494         http://lists.gnu.org/r/emacs-devel/2014-06/msg00263.html
33495         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
33496         "#ifndef _GL_ACL_H".
33498 2014-06-11  Bruce Korb  <bkorb@gnu.org>
33499         Jim Meyering  <meyering@fb.com>
33501         parse-duration: eliminate 68-year duration limit
33502         * lib/parse-duration.c: Include "intprops.h".
33503         (TIME_MAX): Rename to MAX_DURATION and define to
33504         TYPE_MAXIMUM(time_t).
33505         * modules/parse-duration (Depends-on): Add intprops.
33506         Reported by Jonas 'Sortie' Termansen.
33508 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
33510         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
33511         * modules/pthread (Depends-on): Add 'extensions', as it defines
33512         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
33513         (configure.ac-early): New section.
33514         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
33515         it is no longer needed.
33517 2014-06-14  Pádraig Brady  <P@draigBrady.com>
33519         pthread: define thread-safe macros on some platforms
33520         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
33521         for thread-safe operation on some platforms.
33523 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
33525         regex: don't be multithreaded if USE_UNLOCKED_IO.
33526         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
33527         * lib/regex_internal.h: Do not use multithreaded version if
33528         USE_UNLOCKED_IO is defined.  This is a hack, but it works
33529         around a porting bug with coreutils 8.22 on AIX 7.1.
33531 2014-06-11  Daiki Ueno  <ueno@gnu.org>
33533         gettext: update macros to version 0.19
33534         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
33535         depend on gl_EXTERN_INLINE and drop support for older Bison
33536         versions.
33538 2014-06-10  Pádraig Brady  <P@draigBrady.com>
33540         select,poll: fix console handle check on windows 8
33541         lib/poll.c (IsConsoleHandle): Change from testing the lower
33542         2 bits of the handle to the more expensive but accurate syscall.
33543         lib/select.c: Likewise.
33545 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
33547         select: fix waiting on anonymous pipes on MS-Windows
33548         * lib/select.c (rpl_select): Fall back to polling when select()
33549         indicates there is nothing to check, while due to the timeout not
33550         expiring, activity is indicated on one of the handles.
33551         Also clear the TIMEOUT argument if the timer does expire.
33553 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
33555         times: fix to return non constant value on MS-Windows
33556         * lib/times.c (times): Don't use the process creation time,
33557         rather clock() which on windows returns the number of
33558         clock ticks since the process started.
33560 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
33562         isatty: fix to work on windows 8
33563         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
33564         2 bits of the handle to the more expensive but accurate syscall.
33566 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
33568         maint: fix typo in fdl.texi
33569         * doc/fdl.texi: Fix typo (missing '@').
33570         Somehow this was in fdl.texi but not fdl-1.3.texi.
33572 2014-06-06  Ben Walton  <bdwalton@gmail.com>
33574         mountlist: avoid hasmntopt const type warning on solaris
33575         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
33576         with char * instead of const char *.  Passing the constant string
33577         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
33578         to avoid the warning.
33580 2014-06-04  Eric Blake  <eblake@redhat.com>
33582         maintainer-makefile: delete obsolete code
33583         * top/maint.mk (build_aux): Drop old code, as threatened.
33585         maintainer-makefile: avoid spurious error messages
33586         * top/maint.mk (syntax-check): Guard definition and use of
33587         $(shell) by whether Makefile is present.
33589 2014-06-03  Ben Walton  <bdwalton@gmail.com>
33591         rename: avoid unused-but-set-variable compiler warning
33592         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
33593         it is possible that dst_exists may be set but not used.  Mark it with
33594         the unused attribute to avoid compiler warnings.
33596 2014-06-02  Ben Walton  <bdwalton@gmail.com>
33598         rename: mark a label as potentially unused
33599         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
33600         by marking the out label as potentially unused.
33601         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
33603 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
33605         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
33606         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
33608 2014-06-02  Ben Walton  <bdwalton@gmail.com>
33610         acl: apply pure attribute to two functions
33611         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
33612         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
33614 2014-06-01  Pádraig Brady  <P@draigBrady.com>
33616         gnulib-common.m4: add _GL_UNUSED_LABEL
33617         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
33618         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
33620 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
33622         dup2, fcntl, fcntl-h: port to AIX 7.1
33623         This fixes some porting problems discovered when testing the latest
33624         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
33625         in grep but it could be important for other applications.
33626         * doc/posix-functions/dup2.texi:
33627         * doc/posix-functions/fcntl.texi:
33628         * doc/posix-headers/fcntl.texi:
33629         Document AIX bugs.
33630         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
33631         Define to 0 if outside 'int' range.
33632         * m4/dup2.m4 (gl_FUNC_DUP2):
33633         * m4/fcntl.m4 (gl_FUNC_FCNTL):
33634         Check for getdtablesize.  If it's available, test a value just
33635         outside its range instead of testing 1000000.  When cross-compiling,
33636         guess that AIX will fail this improved test.
33638 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
33640         printf, config.rpath: Port to FreeBSD 10.
33641         Problem reported by Tijl Coosemans in:
33642         http://lists.gnu.org/r/bug-gnulib/2014-05/msg00078.html
33643         * build-aux/config.rpath (hardcode_libdir_flag_spec)
33644         (hardcode_direct): Simplify FreeBSD configuration.
33645         (library_names_spec): Don't mishandle FreeBSD 10+.
33646         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
33647         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
33648         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
33649         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
33650         Don't mishandle FreeBSD 10+ when cross-compiling.
33652         ftoastr: work around compiler bug in IBM xlc 12.1
33653         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
33654         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
33655         around a compiler bug in IBM xlc 12.1.0.0: it complains
33656         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
33657         _GL_FLT_PREC_BOUND.'
33659 2014-05-30  Kieran Colford  <colfordk@gmail.com>
33661         valgrind-tests: fixed misleading help message
33662         * m4/valgrind-tests.m4: The help message generated by configure
33663         implied that valgrind was disabled by default, which it wasn't.
33664         Adjusted the help message using s/enable/disable/ to clarify.
33666 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
33668         isfinite, isinf, isnan tests: fix for little-endian PowerPC
33669         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
33670         first double of a PowerPC "double double" pair.
33671         * tests/test-isinf.c (test_isinfl): Likewise.
33672         * tests/test-isnan.c (test_long_double): Likewise.
33673         * tests/test-isnanl.h (main): Likewise.
33674         * tests/test-signbit.c (test_signbitl): Likewise.
33676 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
33678         exclude-tests: port to AIX 7.1
33679         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
33680         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
33681         the regex code uses locks.
33683 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
33685         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
33686         Without this fix, Emacs would sometimes call sigprocmask instead
33687         of pthread_sigmask, which is a no-no in multithreaded applications.
33688         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
33689         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
33690         Suppress check for pthread_sigmask working without -lpthread if
33691         the application always links with -lpthread.  Do not link with
33692         $LIBMULTITHREAD if gl_THREADLIB is not defined.
33693         * m4/timer_time.m4 (gl_TIMER_TIME):
33694         Require gl_THREADLIB only if it is defined.  Do not append
33695         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
33697 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
33699         gnulib-tool: wget translations using --no-verbose rather than --quiet
33700         This allows the user to see error messages if any (--quiet hides them)
33701         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
33703 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
33705         gnulib-tool: adjust translation wget to avoid a https redirection
33706         Context: http://translationproject.org/latest/gnulib redirects to
33707            https://translationproject.org/latest/gnulib/
33708         Rationale: if the user falls back to wget, she doesn't have rsync and
33709         is probably in a minimal build environment, where packages such as
33710         'ca-certificates' are missing as well, resulting in a failed (and
33711         difficult to detect since ignored) translation initial fetch.
33712         Consequently let's avoid https if possible, and add the missing
33713         trailing slash.  This also avoids an unnecessary 302 redirection.
33714         * gnulib-tool: Add trailing slash to gnulib URL.
33716 2014-05-22  Pádraig Brady  <P@draigBrady.com>
33718         getlogin_r-tests: check return value rather than errno
33719         * tests/test-getlogin_r.c (main): As per POSIX we should be
33720         verifying the return value from getlogin_r() rather than errno.
33722 2014-05-22  Pádraig Brady  <P@draigBrady.com>
33724         getlogin_r-tests: fix various issues in recent change
33725         * tests/test-getlogin_r.c: Include required headers that were
33726         missed in recent commit eec20b4e.
33727         Also consistently check the errno rather than the return value from
33728         getlogin_r as POSIX only specifies that non zero is returned on error.
33729         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
33731 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
33733         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
33734         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
33735         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
33736         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
33737         * lib/spawn-pipe.c:
33738         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
33739         and then 'int open64(const char *, int, ...);', which means the
33740         declaration for 'open' gets lost if we later '#undef open'.
33741         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
33742         where the compilation reported the non-fatal error "In function
33743         'openat_proc_name' ... warning: implicit declaration of function
33744         'open'".  In this case the error is relatively harmless, but in
33745         other cases it might not be so minor.
33747 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
33749         xalloc: don't potentially generate invalid code for xmemdup calls
33750         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
33751         this function can initialize the newly-allocated storage with new
33752         pointers, which means this function is not malloc-like.  See:
33753         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
33755 2014-05-19  Pádraig Brady  <P@draigBrady.com>
33757         getlogin_r-tests: avoid false failure under sudo/ssh etc.
33758         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
33759         changes from commit 97249cf29 to not depend on environment variables.
33761 2014-05-18  Pádraig Brady  <P@draigBrady.com>
33763         getlogin-tests: avoid false failure under cron
33764         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
33765         since that's not what's under test.  Centos 6 was seen to return
33766         EINVAL for ttyname() when run from cron.
33768 2014-05-16  Jim Meyering  <meyering@fb.com>
33770         mbrtowc.m4: fix a comment typo
33771         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
33772         emitted documentation string.
33774 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
33776         mbrlen, mbrtowc: fix bug with empty input
33777         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
33778         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
33779         so this is mainly for documentation.
33780         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
33781         (gl_FUNC_MBRTOWC): Use it.
33782         * tests/test-mbrtowc.c (main): Test for the bug.
33784 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
33786         doc: document mbrtowc and mbrlen problem with empty input
33787         * doc/posix-functions/mbrlen.texi (mbrlen):
33788         * doc/posix-functions/mbrtowc.texi (mbrtowc):
33789         Document portability problem when the input string is empty.  See:
33790         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
33792         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
33793         Problem reported by Eli Zaretskii in:
33794         http://lists.gnu.org/r/bug-grep/2014-05/msg00118.html
33795         * doc/posix-functions/execl.texi (execl):
33796         * doc/posix-functions/execle.texi (execle):
33797         * doc/posix-functions/execlp.texi (execlp):
33798         * doc/posix-functions/execv.texi (execv):
33799         * doc/posix-functions/execve.texi (execve):
33800         * doc/posix-functions/execvp.texi (execvp):
33801         Mention spawn+exit problem on non-Cygwin Windows platforms.
33803 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
33805         getlogin-tests: avoid false failure under sudo/ssh etc.
33806         * modules/getlogin-tests (configure.ac): Check for ttyname().
33807         * tests/test-getlogin.c (main): Don't depend on environment variables
33808         to correlate with getlogin(), since sudo and ssh etc. can tamper
33809         with the LOGNAME and USER env vars.  Instead lookup the name from
33810         the uid associated with the stdin tty.
33812 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
33814         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
33815         These were found when building the latest grep snapshot on IRIX 6.5.
33816         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
33817         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
33818         never used later.
33819         * lib/quotearg.c (quoting_options_from_style):
33820         * lib/xstrtol.c (__xstrtol):
33821         Use enum instead of 0, to pacify IRIX 6.5 cc.
33823 2014-04-18  Pádraig Brady  <P@draigBrady.com>
33825         gitlog-to-changelog: revert inclusion of git-log-fix file
33826         * build-aux/git-log-fix: Delete dummy file.
33827         * modules/gitlog-to-changelog: Don't reference (overwrite)
33828         the project specific git-log-fix file.
33830 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
33832         maint.mk: Relax the copyright check to cater for non FSF projects
33833         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
33834         to not require the "Free" suffix after the copyright years.
33836 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
33838         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
33839         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
33840         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
33841         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
33842         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
33844 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
33846         exclude: port to strict C99
33847         Strict C does not allow converting a function pointer to void *
33848         and vice versa.  Pass a pointer to a function pointer instead.
33849         * lib/exclude.c (add_exclude_file):
33850         Pass the address of the function pointer.
33851         (call_addfn): And deference the address here, to match.
33853 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
33855         regex: do not depend on malloc-gnu
33856         * modules/regex (Depends-on): Remove malloc-gnu.
33857         It's no longer needed, because of the 2012-12-29 patch
33858         "regex: port to hosts where malloc (0) == NULL".
33859         Reported by Nathan Kennedy in:
33860         http://lists.gnu.org/r/bug-gnulib/2014-04/msg00026.html
33862 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
33864         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
33865         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
33866         * doc/posix-functions/expl.texi: Mention the workaround.
33868 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
33870         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
33871         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
33872         size to be zero even when the pointer is nonnull.  This
33873         accommodates the use case where P is malloc (0) and *PN is 0 on a
33874         host where malloc (0) yields nonnull.
33876 2014-04-09  Eric Blake  <eblake@redhat.com>
33878         fts: avoid unnecessary strlen calls
33879         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
33881 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
33883         fts: avoid unnecessary strlen calls
33884         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
33885         when that can be faster than strlen.
33887 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
33889         fts: avoid unnecessary strlen calls
33890         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
33891         (fts_build): Store the length of the dp->d_name entry in a local variable
33892         instead of calling strlen() several times via the above, removed macro.
33893         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
33894         run by ~4%, yet this reduces the execution time by about a third if run
33895         via "ltrace -c rm -rf some-dir".
33897 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
33899         obstack: Remove ancient NeXTSTEP gcc support conditional
33900         This change will ease merging with glibc.  The "#if ... __NEXT__"
33901         causes a warning with -Wundef which glibc now enables by default.
33902         Problem reported by Will Newton in
33903         <http://lists.gnu.org/r/bug-gnulib/2014-03/msg00032.html>.
33904         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
33905         so go with that.
33906         * lib/obstack.h (__extension__):
33908 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
33910         obstack: merge with glibc changes
33911         * lib/obstack.c, lib/obstack.h: Merge from glibc.
33912         This is mostly indenting and commentary changes.
33913         Instances of 'register' have been removed.
33915 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
33917         strftime: wrap macros in "do {...} while(0)"
33918         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
33919         this macro in "do {...} while(0)" to prevent false use as a
33920         single statement, e.g., in an un-braced "{}" else-block.
33921         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
33922         (strftime_case_): Remove 'else' after 'goto' - which was the
33923         only non-fatal, un-braced use of one of the above macros.
33924         Spotted by coverity (NESTING_INDENT_MISMATCH).
33926 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
33928         modechange: avoid memory leaks for invalid octal modes
33929         * lib/modechange.c (mode_compile): During the parsing of
33930         notations like +40, free the 'mc' buffer for invalid mode
33931         strings like +17777 (greater than the maximum octal mode),
33932         =18 (bad octal mode characters) or u=1 ('affected' with
33933         octal modes).
33934         Reproducer, e.g.:
33935             $ valgrind --leak-check=full chmod +17777 file
33936         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
33937         add notations +40, 00440, etc.".
33938         Spotted by coverity (RESOURCE_LEAK).
33940 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
33942         gitlog-to-changelog: include a dummy git-log-fix file
33943         Problem reported by Nathan Stratton Treadway in:
33944         http://lists.gnu.org/r/bug-tar/2014-03/msg00082.html
33945         * build-aux/git-log-fix: New file.
33947 2014-03-13  Jim Meyering  <meyering@fb.com>
33949         gitlog-to-changelog: also include the file, git-log-fix
33950         * modules/gitlog-to-changelog (Files): Add git-log-fix.
33951         Reported by Assaf Gordon.
33953 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
33955         regex: port to OS X 10.8.5 en_US.UTF-8 locale
33956         This fixes a bug when ignoring case and when comparing the
33957         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
33958         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
33959         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
33960         titlecase letter is neither lowercase nor uppercase, but
33961         uppercasing the titlecase letter (via towupper) yields the
33962         uppercase letter, so the two letters should match when ignoring case.
33963         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
33964         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
33965         Don't test whether a character is lowercase before uppercasing it.
33967 2014-03-04  Kevin Cernekee  <cernekee@gmail.com>
33969         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
33970         This is basically one of the options Bruno Haible proposed in:
33971         http://lists.gnu.org/r/bug-gnulib/2012-01/msg00282.html
33972         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
33973         * lib/stdint.in.h: Use it.
33974         * modules/stdint (Depends-on): Add sys_types.
33976 2014-02-26  Pádraig Brady  <P@draigBrady.com>
33978         parse-datetime: fix crash or infloop in TZ="" parsing
33979         * lib/parse-datetime.y (parse_datetime): Break out of the
33980         TZ="" parsing loop once the second significant " is found.
33981         Also skip over any subsequent whitespace to be consistent
33982         with the non TZ= case.
33983         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
33985 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
33987         savedir: new symbol for fast-read version
33988         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
33989         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
33990         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
33991         http://lists.gnu.org/r/coreutils/2014-02/msg00037.html
33993 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
33995         unistd: port readlink to Mac OS X 10.3.9
33996         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
33997         around self-include problem in Mac OS X 10.3.9 when combined with
33998         readlink module.  Problem reported by Klaus Zietler in
33999         <http://bugs.gnu.org/16825>.
34001 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
34003         diffseq: remove TOO_EXPENSIVE heuristic
34004         Problem with diffutils reported by Vincent Lefevre in
34005         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
34006         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
34007         Although appropriate for circa-1993 hardware, these days the heuristic
34008         seems to be more trouble than it's worth.
34009         * lib/diffseq.h: Modernize citations.
34010         (struct context): Remove member too_expensive.
34011         All uses changed.
34012         (struct partition): Remove members lo_minimal, hi_minimal.
34013         All uses changed.
34014         (diag, compareseq): Remove arg find_minimal.  All uses changed.
34015         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
34016         1993 to make 'diff' run faster (but not as well) on large inputs.
34017         These days, computers are fast enough that it's typically better
34018         to run slower but more accurately.
34019         * lib/fstrcmp.c: Remove duplicate comment.
34020         * lib/fstrcmp.c (strcmp_bounded):
34021         * lib/git-merge-changelog.c (compute_differences):
34022         Adjust to diffseq.h changes.
34023         * NEWS: Document the change.
34025         savedir: simplify by using stpcpy
34026         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
34027         (streamsavedir): Use stpcpy instead.
34028         * modules/savedir (Depends-on): Add stpcpy.
34030 2014-02-21  Pádraig Brady  <P@draigBrady.com>
34032         spawn: fix link error on uclibc
34033         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
34034         to incorporate -lrt if needed (on uclibc for example).
34035         * modules/posix_spawn: Reference the substituted LIB.
34037 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
34038         timer: fix uClibc detection of threading
34039         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
34040         enabled in uClibc.
34042 2014-02-21  Eric Blake  <eblake@redhat.com>
34044         maintainer-makefiles: provide AC_PROG_SED for older autoconf
34045         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
34047 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
34049         exclude: add support for posix regexps
34051         This commit adds support for POSIX extended regular expressions
34052         and fixes a long-standing memory leak (pattern buffer was never
34053         freed).  It also implements a new interface function to read
34054         exclude patterns from a FILE, which passes an additional parameter
34055         to its callback function, thereby allowing to preserve its state
34056         between invocations.
34058         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
34059         (pattern_buffer): New struct.
34060         (exclude): New member patbuf.
34061         (exclude_add_pattern_buffer): New function.
34062         (free_exclude_segment): Free regexps.
34063         (free_exclude): Free allocated pattern buffers.
34064         (exclude_patopts): New function.
34065         (file_pattern_matches): Use exclude_patopts.
34066         (add_exclude): support regexps.
34067         (add_exclude_fp): New function.
34068         (add_exclude_file): Rewrite using add_exclude_fp.
34069         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
34070         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
34071         (add_exclude_fp)
34072         (add_exclude_file): Rewrite using add_exclude_fp.
34073         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
34074         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
34075         (add_exclude_fp)
34076         (exclude_add_pattern_buffer): New prototypes.
34077         * modules/exclude: Depends on regex and filename.
34079 2014-02-20  Eric Blake  <eblake@redhat.com>
34081         maintainer-makefiles: use $(SED) for syntax check
34082         * modules/maintainer-makefile (configure.ac): Check for sane sed.
34083         * top/maint.mk: Change sed to $(SED).
34085 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
34086             Paul Eggert  <eggert@cs.ucla.edu>
34088         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
34089         Patch based on an idea by Dick Streefland in
34090         <https://savannah.gnu.org/patch/?7892>.
34091         * NEWS: Document this.
34092         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
34093         (direntry_t, comparison_function): New types.
34094         (direntry_cmp_name): New function.
34095         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
34096         (streamsavedir, savedir): New arg OPTION.
34097         (streamsavedir): Simplify memory allocation.
34098         (fdsavedir): Remove.
34099         * lib/savedir.h (enum savedir_option): New type.
34100         (streamsavedir, savedir): New arg OPTION.
34101         (fdsavedir): Remove.
34103 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
34105         file-type: add support for doors and other less-common file types
34106         Problem with S_ISDOOR reported by Rich Burridge.
34107         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
34108         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
34109         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
34111 2014-01-23  Eric Blake  <eblake@redhat.com>
34113         pthread: work around winpthread header pollution on mingw
34114         * lib/time.in.h: Move pthread workarounds...
34115         * lib/pthread.in.h: ...here.
34116         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
34117         detect macro pollution on mingw.
34118         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
34120 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
34122         qacl: check for fchmod
34123         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
34124         and qset-acl.c both use HAVE_FCHMOD.
34126 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
34128         fdopen-tests: port to Tru64
34129         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
34130         descriptor that is not open, as POSIX doesn't specify the
34131         resulting behavior and the test does not work on Tru64.
34132         Problem reported by Steven M. Schweda in:
34133         http://lists.gnu.org/r/bug-gnulib/2014-01/msg00079.html
34135         stdalign: port to HP-UX compilers
34136         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
34137         if __HP_cc or __HP_aCC are nonzero.
34139 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
34141         strtoimax: port to platforms lacking 'long long'
34142         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
34143         check whether strtoll is declared, which causes the C file to
34144         wrongly report an error.  Problem reported by Steven M. Schweda in:
34145         http://lists.gnu.org/r/bug-diffutils/2014-01/msg00003.html
34146         * lib/strtoimax.c (strtoull):
34147         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
34148         (strtoll): Declare only if HAVE_LONG_LONG_INT.
34150 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
34152         relocatable-perl: fix texi syntax
34153         * doc/relocatable-maint.texi: Escape braces.
34155 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
34157         relocatable-perl: like relocatable-script, but for Perl scripts
34158         * build-aux/relocatable.pl.in: Add.
34159         * doc/relocatable-maint.texi: Add documentation.
34160         * modules/relocatable-perl: Add.
34162 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
34164         tests: fix export bug in previous patch
34165         Problem reported by Jim Meyering.
34166         * tests/init.sh (re_shell): New var, which is exported instead of
34167         re_shell_.
34169         tests: simplify porting to Solaris 10 /bin/sh
34170         Some test cases in 'grep' need a shell that groks '$(';
34171         export re_shell_ for their benefit.  Problem reported for 'grep'
34172         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
34173         * tests/init.sh (re_shell_): Export if it's used.
34175 2014-01-06  Eric Blake  <eblake@redhat.com>
34177         md5, sha1, sha256, sha512: support older autoconf
34178         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
34179         for autoconf < 2.63b.
34181         include_next: port to autoconf 2.63
34182         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
34184 2014-01-04  Jim Meyering  <meyering@fb.com>
34186         maint: add a gnulib-local rule to keep non-ascii out of .texi files
34187         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
34188         so that "make sc_maint" will ding anyone who puts non-ascii
34189         in any of gnulib's .texi files.
34191 2014-01-03  Jim Meyering  <meyering@fb.com>
34193         freadable, fwritable, fwriting: declare with the "pure" attribute
34194         * lib/freadable.h (freadable): Declare with the "pure" attribute.
34195         * lib/fwritable.h (fwritable): Likewise.
34196         * lib/fwriting.h (fwriting): Likewise.
34197         Suggested by Bruno Haible.
34199         maint.mk: adapt openat.h-include-without-use test
34200         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
34201         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
34202         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
34203         With this change, running "make sc_maint" in gnulib's top-level
34204         directory now passes for me.
34206 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
34208         doc: use ASCII in .texi files where UTF-8 isn't needed
34209         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
34210         * doc/posix-functions/setkey.texi, doc/regex.texi:
34211         Use ASCII input, not UTF-8.
34213 2014-01-02  Jim Meyering  <meyering@fb.com>
34215         freading: declare with the "pure" attribute
34216         * lib/freading.h (freading): Declare with the "pure" attribute.
34218         manywarnings: remove -Wmudflap
34219         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
34220         it is no longer supported in gcc-4.9-to-be.
34222 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
34224         relocatable-script: remove unused code
34225         Problem reported by Reuben Thomas in:
34226         http://lists.gnu.org/r/bug-gnulib/2013-12/msg00117.html
34227         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
34229 2014-01-01  Jim Meyering  <meyering@fb.com>
34231         maint: fix public-submodule-commit to work with newer git
34232         * top/maint.mk (public-submodule-commit): Remove excess quoting.
34233         We were over-quoting the test arguments, and somewhere prior to
34234         version 1.8.5.2.229, git stopped removing those excess quotes,
34235         which made the test fail, since the unexpanded strings would
34236         always differ; using GIT_TRACE=1 confirmed that the git merge-base
34237         command wasn't even being run.
34239 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
34241         doc: update main copyright year
34242         * doc/gnulib.texi: Update copyright date.
34244 2014-01-01  Eric Blake  <eblake@redhat.com>
34246         version-etc: new year
34247         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
34248         * all files: run 'make update-copyright'
34250 2013-12-24  Eric Blake  <eblake@redhat.com>
34252         passfd: give nicer error for recvfd at eof
34253         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
34254         * tests/test-passfd.c (main): Enhance test to cover this.
34256 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
34258         gettimeofday: port recent C++ fix to Emacs
34259         Without this further patch, Emacs won't build due to
34260         the portcheck failing.  Also, this simplifies the patch a bit.
34261         * lib/time.in.h (localtime, gmtime): Don't replace unless
34262         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
34263         * lib/time.in.h (localtime, gmtime):
34264         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
34265         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
34266         * modules/time (time.h):
34267         Don't worry about the possibility of localtime and gmtime
34268         being absent; they're present in all C libraries we know about.
34269         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
34270         Don't assume sys_time is present and has been initialized.
34271         Instead, use a hack that should work even if it hasn't been.
34272         Don't use a portcheck for gmtime or localtime; this supports
34273         the hack.
34274         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
34276 2013-12-17  John W. Eaton  <jwe@gnu.org>
34278         gettimeofday: fix C++ crosscompilation
34280         Never replace gmtime and localtime by macros when compiling with
34281         C++, this prevents <ctime> from being included.
34283         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
34284         define gmtime and localtime as preprocessor macros.  Instead
34285         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
34286         REPLACE_LOCALTIME substitutions.
34287         * lib/time.in.h: Declare gmtime and localtime when needed.
34288         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
34289         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
34290         * modules/time: Depend on gettimeofday, and substitute the above
34291         variables in time.h.
34293 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
34295         qacl: port to Windows better
34296         See Eli Zaretskii in
34297         <http://lists.gnu.org/r/emacs-devel/2013-12/msg00593.html>.
34298         * lib/file-has-acl.c (acl_access_nontrivial):
34299         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
34300         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
34302 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
34304         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
34305         * lib/gl_openssl.h: Cast void pointers to a specific type.
34307 2013-12-07  Pádraig Brady  <P@draigBrady.com>
34309         open-tests: fix build failure with -Werror=old-style-declaration
34310         * tests/test-open.h: Reorder the inline to avoid the issue.
34312 2013-12-07  Pádraig Brady  <P@draigBrady.com>
34314         md5, sha1, sha256, sha512: fix link error with partial libcrypto
34315         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
34316         init time, so that if early checks find crypto routines,
34317         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
34318         avoiding link failures.
34320 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
34322         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
34323         This provides a new way to specify the default for
34324         gl_CRYPTO_CHECK, one that is reflected in the --help message.
34325         Emacs uses this, as well as the old way.
34326         This attempts to implement a suggestion by Pádraig Brady in
34327         <http://lists.gnu.org/r/coreutils/2013-12/msg00080.html>.
34328         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
34329         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
34331         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
34332         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
34333         Add support for a new option, --with-openssl=auto, which causes
34334         the library to be used if available and silently ignored if not.
34335         Add support to allow configure.ac to specify its own
34336         default, by setting with_openssl_default before invoking gl_INIT.
34338 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
34340         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
34341         Problem reported by Daiki Ueno in:
34342         http://lists.gnu.org/r/bug-gnulib/2013-06/msg00052.html
34343         * tests/test-open.h (__always_inline):
34344         New macro, if not already defined.
34345         (test_open): Use it.
34347 2013-12-04  Eric Blake  <eblake@redhat.com>
34349         include_next: minimize code duplication
34350         * modules/include_next (Depends-on): Add absolute-header.
34351         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
34352         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
34354 2013-12-04  Pádraig Brady  <P@draigBrady.com>
34356         getcwd: fix compile error in configure check
34357         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
34359 2013-12-04  Pádraig Brady  <P@draigBrady.com>
34361         regex: suppress core dumps from detection code
34362         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
34363         to suppress core dumps that may well occur on glibc systems.
34364         These core dumps might not be cleaned up automatically, or could
34365         trigger some system core dump handling logic.
34367 2013-12-03  Pádraig Brady  <P@draigBrady.com>
34369         md5, sha1, sha256, sha512: support mandating use of openssl
34370         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
34371         description, to list the now 3 separate options.  also don't
34372         mention the default=no, since this is implicit given the option
34373         is described as --with-openssl rather than --without-openssl.
34374         If projects change the default they're free to document that.
34375         with --with-openssl[=yes] we now error out when the specified
34376         hash algorithm is not available in libcrypto.
34378 2013-12-03  Ivailo  <xakepa10@gmail.com>
34380         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
34381         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
34382         -Wformat-nonliteral checks, as these edge cases are part of the test.
34384 2013-12-03  Eric Blake  <eblake@redhat.com>
34386         regex: avoid glibc deadlock during configure
34387         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
34388         glibc bug 15078 in turn triggers bug 16159.
34389         Reported by Michal Privoznik.
34391 2013-12-02  Pádraig Brady  <P@draigBrady.com>
34393         md5, sha1, sha256, sha512: use openssl routines if available.
34394         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
34395         routines will be used if available, requiring apps to link @LIB_CRYPTO@
34396         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
34397         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
34398         in the standard system location.
34399         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
34400         * m4/sha256.m4: Likewise with SHA256.
34401         * m4/sha512.m4: Likewise with SHA512.
34402         * m4/md5.m4: Likewise with MD5.
34403         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
34404         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
34405         * lib/sha256.h: Likewise with SHA256.
34406         * lib/sha512.h: Likewise with SHA512.
34407         * lib/md5.h: Likewise with MD5.
34408         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
34409         * lib/sha256.c: Likewise with SHA256.
34410         * lib/sha512.c: Likewise with SHA512.
34411         * lib/md5.c: Likewise with MD5.
34412         * modules/crypto/sha1 (Link:): Add the new optional lib.
34413         (Depends-on:): Add dependency on extern-inline.
34414         * modules/crypto/sha256: Likewise.
34415         * modules/crypto/sha512: Likewise.
34416         * modules/crypto/md5: Likewise.
34417         * modules/crypto/sha1-tests: Reference the lib here too.
34418         * modules/crypto/md5-tests: Likewise.
34419         * modules/crypto/gc-des-tests: Likewise.
34420         * modules/crypto/gc-hmac-md5-tests: Likewise.
34421         * modules/crypto/gc-hmac-sha1-tests: Likewise.
34422         * modules/crypto/gc-hmac-sha256-tests: Likewise.
34423         * modules/crypto/gc-hmac-sha512-tests: Likewise.
34424         * modules/crypto/gc-md5-tests: Likewise.
34425         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
34426         * modules/crypto/gc-sha1-tests: Likewise.
34427         * modules/crypto/gc-tests: Likewise.
34428         * modules/crypto/hmac-md5-tests: Likewise.
34429         * modules/crypto/hmac-sha1-tests: Likewise.
34430         * modules/crypto/hmac-sha256-tests: Likewise.
34431         * modules/crypto/hmac-sha512-tests: Likewise.
34433 2013-11-29  RV1971  <rv1971@web.de>
34435         base64: (trivial) fix compilation regression on some compilers
34436         * lib/base64.c: Don't return the void function,
34437         instead split to a separate return statement.
34439 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
34441         ignore-value: revert previous code change
34442         * lib/ignore-value.h (ignore_value): Use __extension__ and
34443         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
34444         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00102.html>.
34445         Change the comment to try to explain this better.
34447 2013-11-27  Pádraig Brady  <P@draigBrady.com>
34449         selinux-h: improve stub types and add more stub functions
34451         * lib/se-selinux.in.h: Change security_context_t to a typedef
34452         rather than a define, as it's a pointer type and so is better
34453         as a typedef to avoid issues declaring multiple variables
34454         with the comma operator.  Also add stub for string_to_security_class().
34455         * lib/se-context.in.h: Add stub functions for
34456         context_{type,range,role,user}_get().
34458 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
34460         ignore-value: prefer GCC version back through 2.0
34461         The code didn't match the comments, so I did a bit of software
34462         archaeology.  GCC 2.0 seems to support __extension__ and
34463         __typeof__, so fix both code and comments to use 2.0.
34464         * lib/ignore-value.h (ignore_value): Use __extension__ and
34465         __typeof__ for GCC 2.0 through 3.3, too.
34467 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
34469         pty: Activate the signature wrapper of forkpty.
34470         The intended preprocessor macro HAVE_FORKPTY is
34471         never defined, yet `lib/forkpty.c' depends on it.
34473         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
34474         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
34475         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
34477 2013-11-18  Jim Meyering  <meyering@fb.com>
34478         and Paul Eggert  <eggert@cs.ucla.edu>
34480         quotearg: don't attempt to store 1 << 31 into an "int"
34481         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
34482         gcc's new -fsanitize=undefined and running its tests triggered some
34483         new test failures due to undefined behavior, all with this diagnostic:
34484           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
34485             cannot be represented in type int
34486         Rather than shifting "1" left to form a mask, shift the bits right and
34487         simply use "1" as the mask.
34489 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
34491         error: depend on stdio
34492         Problem reported by Nikos Mavrogiannopoulos in
34493         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00084.html>
34494         * modules/error (Depends-on): Add stdio.
34496 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
34498         * doc/relocatable-maint.texi (Supporting Relocation): Improve
34499         wording.
34500         Reported by Reuben Thomas <rrt@sc3d.org>.
34502 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
34504         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
34505         New function and macro, to work around _DARWIN_C_SOURCE problem.
34506         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
34508 2013-11-11  Pádraig Brady  <P@draigBrady.com>
34510         base64: provide a fast path for encoding well sized buffers
34511         Avoid conditionals in the base64 encoding loop,
34512         which was seen to give 60% better throughput.
34513         * lib/base64.c (base64_encode_fast): A new function to be called
34514         when we don't want to NUL terminate, and we have enough space
34515         in the output to encode the given input.
34516         (base64_encode): Call the _fast() version when appropriate.
34517         Also remove a redundant mask with 0x3F on the first encoded byte.
34519 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
34521         extern-inline: port better to OS X 10.9
34522         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
34523         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
34524         OS X 10.9, except for g++ where the bug is still present.
34525         See <http://trac.macports.org/ticket/41033>.
34527 2013-11-08  Eric Blake  <eblake@redhat.com>
34529         fpending: fix regression on DragonFly BSD
34530         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
34531         * lib/fpending.h (__fpending): Don't declare twice.
34532         Reported by GW in
34533         <https://lists.gnu.org/r/bug-m4/2013-11/msg00000.html>
34535 2013-11-05  Jim Meyering  <meyering@fb.com>
34537         hash: relax license to LGPLv2+, for libguestfs
34538         * modules/hash (License): Change from GPL to LGPLv2+.
34540 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
34542         intprops: port to Oracle Studio c99
34543         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
34544         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
34546 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
34548         obstack: pacify HP C
34549         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
34550         warning "conversion from pointer to smaller integer" from HP
34551         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
34552         C89 or later nowadays, so cast to void instead of int.  Privately
34553         reported by H.Merijn Brand.  Also, change header to match glibc's,
34554         to make checking against glibc easier.
34556 2013-10-29  Jim Meyering  <meyering@fb.com>
34558         maint.mk: prefer gpgv2 over gpgv
34559         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
34560         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
34561         Reported by Gary Vaughan.
34563 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
34565         isnan: port to VAX
34566         Reported by John Klos for NetBSD-5/VAX in
34567         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00133.html>.
34568         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
34569         (FUNC): Use it.
34571 2013-10-28  Jim Meyering  <meyering@fb.com>
34573         gnulib-tool: protect against CDPATH
34574         * gnulib-tool: Many "cd" built-in functions print a directory name
34575         to stdout when CDPATH is set, e.g.,
34576           $ bash -c 'CDPATH=/; cd tmp'
34577           /tmp
34578         Unset it, when possible.  Prompted by a comment from Bruce Korb.
34580         maint.mk: restore functionality removed by recent change...
34581         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
34582         the context of a shallow-cloned gnulib repository: "git describe"
34583         would fail in such a directory.  However, that change made it so
34584         the reported gnulib revision no longer includes the version number
34585         or a commit count, even when run from a full clone.
34586         * top/maint.mk (gnulib-version): Use the full "git describe"
34587         output when possible, e.g., the form above, rather than the
34588         abbreviated, no-tag, no-commit-count string, and fall back to
34589         using a 10-byte hash, rather than the default minimal-length
34590         hash prefix, since while the minimal-length one may be fine today,
34591         it is likely not to be unique for very long.
34593 2013-10-26  Jim Meyering  <meyering@fb.com>
34595         maint.mk: fix "release" target to build _version
34596         This fixes a bug in README-release whereby following the outlined
34597         steps, one would publish a tarball whose programs would report
34598         --version output not consistent with the package version number.
34599         This bug caused grep-2.15 to produce a grep program whose
34600         --version option made it print 2.14.56-1e3d rather than 2.15.
34601         * top/maint.mk (release): Making this target build "_version"
34602         ensures that the new version number is reflected in configure.
34604 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
34606         install-reloc: Support multi-binary installation.
34607         * build-aux/install-reloc: Support installing multiple programs in
34608         one invocation, as done by Automake starting with commit
34609         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
34610         Haible <bruno@clisp.org>, archived at
34611         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
34612         Reported by Sylvain <beuc@gnu.org>.
34614 2013-10-21  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
34616         selinux-h: Really build without selinux when library is missing.
34617         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
34618         continue without selinux, as already told in the warning message.
34620 2013-10-21  Jim Meyering  <meyering@fb.com>
34622         regex: also remove dependency on HAVE_WCSCOLL
34623         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
34625 2013-10-21  Reuben Thomas  <rrt@sc3d.org>
34627         xfreopen: Fix typo. s/frepoen/freopen/
34628         * lib/xfreopen.c: Fix description.
34629         * modules/xfreopen: Likewise.
34631 2013-10-21  Jim Meyering  <meyering@fb.com>
34633         regex: don't depend on wcscoll
34634         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
34635         It is no longer used.
34637 2013-10-20  Jim Meyering  <meyering@fb.com>
34639         error: add the printf attribute to a static function
34640         * lib/error.c (error_tail): Add the printf attribute, to placate
34641         gcc's -Werror=suggest-attribute=format option.
34643 2013-09-30  Jim Meyering  <meyering@fb.com>
34645         fpending, obstack, strerror-override: use pure+const function attrs
34646         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
34647         * lib/obstack.c (_obstack_allocated_p): Likewise.
34648         * lib/obstack.h (_obstack_memory_used): Likewise.
34649         (_obstack_memory_used): Likewise.
34650         * lib/strerror-override.h (strerror_override): Declare with
34651         the "const" attribute.
34653 2013-10-18  Eric Blake  <eblake@redhat.com>
34655         extern-inline: make safe for -Wundef usage
34656         Reported by Vladimir 'phcoder' Serbinenko in
34657         https://lists.gnu.org/r/bug-gnulib/2013-10/msg00078.html
34658         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
34660 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
34662         mkfifo-tests, etc.: allow HP-UX 11.11 bug
34663         Problem reported by Daniel Richard G. in
34664         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00068.html>.
34665         * doc/posix-functions/mkfifo.texi (mkfifo):
34666         * doc/posix-functions/mkfifoat.texi (mkfifoat):
34667         * doc/posix-functions/mknod.texi (mknod):
34668         * doc/posix-functions/mknodat.texi (mknodat):
34669         Document the HP-UX 11.11 bug.
34670         * tests/test-mkfifo.h (test_mkfifo):
34671         Allow the HP-UX 11.11 bug.
34673 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
34675         acl: allow cross-compilation to Gentoo
34676         Problem reported by Gabriel Marcano in
34677         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00058.html>.
34678         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
34679         test only whether it links.
34681 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
34683         mgetgroups: remove dependency on realloc-gnu
34684         The dependency violates the comment in realloc-gnu, which
34685         says that tests can't depend on realloc-gnu; some tests depend
34686         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
34687         Problem reported by Daniel Richard G. in
34688         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00056.html>.
34689         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
34690         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
34691         not realloc-gnu.
34693 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
34695         regex-tests: port to HP-UX 11.11
34696         Problem reported by Daniel Richard G. in
34697         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00052.html>.
34698         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
34700 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
34702         verify: document some 'assume' pitfalls
34703         * doc/verify.texi (Compile-time Assertions):
34704         Mention that 'assume (E)' can sometimes slow things down.
34705         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
34707 2013-10-10  Eric Blake  <eblake@redhat.com>
34709         strtoumax: fix typo in previous commit.
34710         * modules/strtoumax (Depends-on): Fix typo.
34711         * modules/strtoimax (Depends-on): Likewise.
34713 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
34715         strtoumax: port to Solaris 8
34716         This problem was introduced in the recent HP-UX patch.
34717         Reported by Tom G. Christensen in
34718         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00037.html>.
34719         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
34720         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
34722 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
34724         strtoimax, strtoumax: port to HP-UX 11.11
34725         Problem reported by Daniel Richard G. in
34726         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00023.html>.
34727         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
34728         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
34729         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
34730         REPLACE_STRTOUMAX.
34731         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
34732         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
34733         Replace the function if defined as a macro but not as a function.
34734         * modules/inttypes-incomplete (inttypes.h): Substitute
34735         REPLACE_STRTOUMAX.
34736         * modules/strtoumax (configure.ac): Replace strtoumax if
34737         REPLACE_STRTOUMAX.
34739 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
34741         strtoimax: port to HP-UX 11.11
34742         Problem reported by Daniel Richard G.
34743         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
34744         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
34745         they might clash with inttypes.h.
34747 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
34749         New module 'count-trailing-zeros'.
34750         * MODULES.html.sh: Mention it.
34751         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
34752         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
34753         * modules/count-trailing-zeros-tests:
34754         * tests/test-count-trailing-zeros.c:
34755         New files.
34757         count-leading-zeros: port to MSC; support types wider than 64 bits
34758         The ideas behind the MSC port are stolen from Emacs.
34759         * lib/count-leading-zeros.h:
34760         Don't include verify.h: it's no longer needed, as types wider than
34761         64 bits are now supported.
34762         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
34763         performance with MSC.  All uses changed.  Do not assume that TYPE
34764         has at most 64 bits.
34765         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
34766         All uses changed.  Fold the subtraction from 31 into the table.
34768         count-one-bits: port to MSC; support types wider than 64 bits
34769         The ideas behind the MSC port are stolen from Emacs.
34770         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
34771         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
34772         Don't include verify.h: it's no longer needed, as types wider than
34773         64 bits are now supported.
34774         (COUNT_ONE_BITS_GENERIC): New macro.
34775         (popcount_supported) [_MSC_VER]: New inline function.
34776         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
34777         performance with MSC.  All uses changed.  Do not assume that TYPE
34778         has at most 64 bits.
34779         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
34781 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
34783         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
34784         * lib/mountlist.c (read_file_system_list): fix leak of directory
34785         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
34787 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
34789         tests: improve diagnostic when an assertion fails
34790         * tests/macros.h (ASSERT): Report the assertion that failed.
34792 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
34794         verify: new macro 'assume'
34795         This is taken from Emacs, and should be generally useful.
34796         * doc/verify.texi (assume): Document it.
34797         * lib/verify.h (assume): New macro.
34798         (__has_builtin): Expand to 0 if not defined.
34800 2013-09-26  Eric Blake  <eblake@redhat.com>
34802         dup2, dup3: work around another cygwin crasher
34803         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
34804         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
34805         * tests/test-dup2.c (main): Likewise.
34806         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
34807         * lib/dup3.c (dup3): Likewise.
34808         * doc/posix-functions/dup2.texi (dup2): Document it.
34809         * doc/glibc-functions/dup3.texi (dup3): Likewise.
34811         getdtablesize: work around cygwin issue
34812         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
34813         * modules/getdtablesize (configure.ac): Build replacement.
34814         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
34815         * modules/unistd (Makefile.am): Expose the witness.
34816         * lib/unistd.in.h (getdtablesize): Declare replacement.
34817         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
34818         * tests/test-getdtablesize.c (main): Test it.
34819         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
34821 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
34823         pmccabe2html: escaping of special characters
34824         Escape all '<', '>', and '&' in HTML output.
34825         * build-aux/pmccabe2html (html_fnc): Call gsub()
34826         instead of sub() to capture all '<', '>', and '&'.
34827         Neither of '<' and '>' is special in a regexp,
34828         so first arguments to gsub() are corrected. Also,
34829         in replacement strings, ampersand must be escaped.
34830         Finally, '&' must be handled first, then '<' and '>'.
34832 2013-09-24  Eric Blake  <eblake@redhat.com>
34834         manywarnings: enable nicer gcc warning messages
34835         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
34836         some -f options for optimal warnings.
34838 2013-09-21  Jim Meyering  <meyering@fb.com>
34840         timespec: use the new TIMESPEC_RESOLUTION in a few more places
34841         * lib/timespec-add.c (timespec_add): Also replace 999999999
34842         with TIMESPEC_RESOLUTION - 1.
34843         * lib/timespec-sub.c (timespec_sub): Likewise.
34845 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
34847         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
34848         Problem reported by Dagobert Michelsen via Eric Blake in
34849         <http://lists.gnu.org/r/bug-gnulib/2013-09/msg00052.html>.
34850         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
34851         not AC_COMPILE_IFELSE.
34853 2013-09-23  Eric Blake  <eblake@redhat.com>
34855         configmake: support new --runstatedir option
34856         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
34857         even if autoconf was too old to provide the command line option.
34858         * modules/configmake (Makefile.am): Propagate it to .h file.
34860 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
34862         ctype, string: depend on extern-inline
34863         This is needed to complete the recent OS X fixes.
34864         Also, fix related documentation as suggested by Eric Blake.
34865         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
34866         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
34867         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
34868         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
34869         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
34870         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
34871         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
34872         * doc/posix-functions/toupper.texi:
34873         List the 'ctype' gnulib module.
34874         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
34875         * doc/posix-functions/strncpy.texi:
34876         List the 'string' gnulib module.
34877         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
34878         Add string.
34879         * modules/ctype, modules/string (Depends-on): Add extern-inline.
34881 2013-09-19  Pádraig Brady  <P@draigBrady.com>
34883         userspec: support optional parameters to parse_user_spec()
34884         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
34885         then avoid group processing and treat the full spec as a user.
34886         (parse_with_separator): Allow the USERNAME and GROUPNAME to
34887         be optional params (NULL), in which case they're ignored.
34889 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
34891         timespec: new function make_timespec, and new constants
34892         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
34893         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
34894         (make_timespec): New function.
34895         * lib/dtotimespec.c (dtotimespec):
34896         * lib/timespec-add.c (timespec_add):
34897         * lib/timespec-sub.c (timespec_sub):
34898         * lib/utimens.c (validate_timespec):
34899         * lib/utimensat.c (rpl_utimensat):
34900         Use these new constants and functions.
34902         stdio: OS X port of putc_unlocked + extern inline
34903         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
34904         * doc/posix-functions/putc_unlocked.texi:
34905         * doc/posix-functions/putchar_unlocked.texi:
34906         Document this portability problem.
34908         signal: OS X port of sigaddset etc. + extern inline
34909         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
34910         (sigismember): #undef on problematic Apple platforms.
34911         * doc/posix-functions/sigaddset.texi:
34912         * doc/posix-functions/sigdelset.texi:
34913         * doc/posix-functions/sigemptyset.texi:
34914         * doc/posix-functions/sigfillset.texi:
34915         * doc/posix-functions/sigismember.texi:
34916         Document this portability problem.
34918         extern-inline: do not always suppress extern inline on OS X
34919         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
34920         extern inline on Apple only if the particular compile-time
34921         configuration is known to have the problem.
34922         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
34923         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
34924         other Gnulib modules.
34926         extern-inline: document fixes for ctype and wctype macros
34927         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
34928         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
34929         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
34930         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
34931         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
34932         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
34933         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
34934         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
34935         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
34936         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
34937         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
34938         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
34939         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
34940         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
34941         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
34942         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
34943         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
34944         * doc/posix-functions/strncpy.texi:
34945         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
34946         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
34947         Document that Gnulib fixes portability problems with these
34948         functions on OS X 10.8 and earlier when called from plain inline
34949         or extern inline functions.
34951 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
34953         fflush, freadahead, fseeko: Fix for Android
34954         Suggested by Bruno Haible in:
34955         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00306.html>
34956         * lib/stdio-impl.h: Use local __sfileext definition.
34958 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
34960         pmccabe2html: Portability to other awk versions.
34961         The functions systime() and strftime() are available
34962         in Gawk only.  Properly close two HTML-tags 'style'
34963         and 'span'.
34964         * build-aux/pmccabe2html (BEGIN): Store timing
34965         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
34966         systime() in HTML_COMMENT.
34967         (html_header): Correctly close tag 'style'.
34968         (END): Replace strftime() by CHRONOS_TIME.  Close
34969         tag 'span' correctly, not as 'div'.
34971 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
34973         getgroups: statement without effect
34974         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
34975         Change equality conditional to expected assignment.
34977 2013-09-09  Eric Blake  <eblake@redhat.com>
34979         glob: fix compilation
34980         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
34982 2013-09-07  Eric Blake  <eblake@redhat.com>
34984         glob: fix build for platforms without __THROW
34985         * lib/glob.in.h (__THROW): Add definition again.
34987 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
34989         regex-quote: fix buffer access out of bounds
34990         http://lists.gnu.org/r/bug-gnulib/2013-09/msg00001.html
34991         * lib/regex-quote.c (regex_quote_spec_pcre):
34992         Fix typo that resulted in an out-of-bounds read.
34994 2013-09-04  Eric Blake  <eblake@redhat.com>
34996         glob: avoid -Wattribute warnings on glibc
34997         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
34998         __THROWNL, not __THROW, on static functions.
34999         * lib/glob.in.h (__THROW): Adjust...
35000         (__THROWNL): ...accordingly.
35002 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
35004         headers: check that _GL_INLINE_HEADER_BEGIN is defined
35005         Suggested by Bruce Korb in:
35006         http://lists.gnu.org/r/bug-gnulib/2013-08/msg00070.html
35007         * doc/extern-inline.texi (extern inline):
35008         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
35009         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
35010         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
35011         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
35012         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
35013         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
35014         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
35015         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
35016         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
35017         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
35018         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
35019         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
35020         * lib/xtime.h:
35021         Check that _GL_INLINE_HEADER_BEGIN is defined.
35023 2013-08-29  Pádraig Brady  <P@draigBrady.com>
35025         bootstrap: remove the --version requirement from ancillary tools
35026         * build-aux/bootstrap (check_exists): A new refactored function to
35027         determine if a command exists.
35028         (find_tool): Use the new function which does not require the
35029         --version option to be supported.
35030         (check_versions): Use the new function.
35032 2013-08-26  Simon Josefsson  <simon@josefsson.org>
35034         gc: support HMAC-SHA256 and HMAC-SHA512.
35035         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
35036         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
35037         functions.
35038         (gc_hmac_md5): Use symbolic constant.
35039         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
35040         (gc_hmac_sha256, gc_hmac_sha512): New functions.
35041         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
35042         * m4/sha256.m4: Protect against empty expansion.
35043         * m4/sha512.m4: Likewise.
35044         * lib/hmac-sha256.c: New file.
35045         * lib/hmac-sha512.c: Likewise.
35046         * m4/gc-hmac-sha256.m4: Likewise.
35047         * m4/gc-hmac-sha512.m4: Likewise.
35048         * m4/gc-sha256.m4: Likewise.
35049         * m4/gc-sha512.m4: Likewise.
35050         * modules/crypto/gc-hmac-sha256: Likewise.
35051         * modules/crypto/gc-hmac-sha256-tests: Likewise.
35052         * modules/crypto/gc-hmac-sha512: Likewise.
35053         * modules/crypto/gc-hmac-sha512-tests: Likewise.
35054         * modules/crypto/hmac-sha256: Likewise.
35055         * modules/crypto/hmac-sha256-tests: Likewise.
35056         * modules/crypto/hmac-sha512: Likewise.
35057         * modules/crypto/hmac-sha512-tests: Likewise.
35058         * tests/test-gc-hmac-sha256.c: Likewise.
35059         * tests/test-gc-hmac-sha512.c: Likewise
35060         * tests/test-hmac-sha256.c: Likewise.
35061         * tests/test-hmac-sha512.c: Likewise
35063 2013-08-24  Daiki Ueno  <ueno@gnu.org>
35065         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
35066         of AC_CHECK_DECLS.
35068 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
35070         selinux-at: omit unnecessary include
35071         * lib/selinux-at.c: Don't include dosname.h; not needed, since
35072         this source file doesn't use its macros, and subsidiary files that
35073         use the macros already include it.
35075 2013-08-21  Eric Blake  <eblake@redhat.com>
35077         d-ino: avoid false negative on symlink
35078         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
35079         Reported by Stephane Chazelas.
35081 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
35083         bootstrap: port to OpenBSD sed
35084         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
35085         does not interpret `-' as a file argument to mean stdin.
35087 2013-08-15  Eric Blake  <eblake@redhat.com>
35089         warnings: minor optimization
35090         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
35092         warnings: check -Wfoo rather than -Wno-foo
35093         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
35094         -Wno-, test if the compiler recognizes the positive form instead.
35096 2013-08-15  Karl Berry  <karl@gnu.org>
35098         * config/srclist-update: add option "doclicense" to placate
35099         pulling *.texi files from Emacs.  Write terse usage
35100         documentation at the top.
35102 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
35104         xvasprintf-tests: port to GCC with hardening flags
35105         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
35106         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
35107         http://lists.gnu.org/r/bug-diffutils/2013-08/msg00002.html
35109 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
35111         fpending: port to recent Cygwin change to stdio_ext.h
35112         Reported by LRN in
35113         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00028.html>.
35114         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
35115         just declare __fpending unless it's a macro.
35116         A duplicate decl shouldn't hurt.
35117         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
35118         call compiles and links, instead of separately checking for
35119         decl and lib function.
35120         * modules/fpending (configure-ac):
35121         Adjust to fpending.m4's renaming of shell variable.
35123 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
35125         sys_time: port to OpenBSD
35126         * lib/sys_time.in.h: Simply delegate to the system's header
35127         in the BSDish cases as well.  Problem reported by Mike Miller in
35128         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00016.html>.
35129         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
35130         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
35131         wider than time_t.
35133 2013-08-09  Pádraig Brady  <P@draigBrady.com>
35135         bootstrap: support checksum utils having -c but not --status
35136         * build-aux/bootstrap: Only look for sha1sum if updating po files.
35137         Add sha1 to the list of supported checksum utils since it's now
35138         supported through adjustments below.
35139         (update_po_files): Remove the use of --status
35140         in a way that will suppress all error messages, but since this is
35141         only used to minimize updates, it shouldn't cause an issue.
35142         Exit early if there is a problem updating the po file checksums.
35143         (find_tool): Remove the check for --version support as this
35144         is optional as per commit 86186b17.  Don't even check for the
35145         presence of the command as if that is needed, it's supported
35146         through configuring prerequisites in bootstrap.conf.
35147         Prompt that when a tool isn't found, one can define an environment
35148         variable to add to the hardcoded search list.
35150 2013-08-05  Jim Meyering  <meyering@fb.com>
35152         regex: port to non-glibc/lock-using systems
35153         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
35154         system with GNULIB_LOCK would fail due to absence of the
35155         included "glthread/lock.h".  This would affect any package
35156         for which the "lock" module is used only by the regex module,
35157         and not explicitly used.
35158         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
35159         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
35160         Add a dependency on the "lock" module.
35162 2013-07-20  Daiki Ueno  <ueno@gnu.org>
35164         localecharset: make locale_charset thread-safe on Mac OS X
35165         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
35166         instead of MB_CUR_MAX.
35168 2013-07-20  Daiki Ueno  <ueno@gnu.org>
35170         gettext: update to version 0.18.3
35171         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
35172         require AC_PROG_SED to allow user to specify custom sed command when
35173         generating en@quot PO file.
35175 2013-07-18  Werner Lemberg  <wl@gnu.org>  (tiny change)
35177         bootstrap: use correct source when copying build-aux files
35178         * build-aux/bootstrap (gnulib_extra_files): This variable is
35179         relative to upstream gnulib layout, not downstream.
35181 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
35183         tmpdir: fix bug in VMS port
35184         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
35185         See Steven M. Schweda in
35186         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00026.html>.
35188 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
35190         tmpdir: port to VMS, to // != /, and to long dirs
35191         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
35192         __secure_getenv, so that we're more like the glibc version.
35193         All uses changed.
35194         (path_search): Don't put slash after directory if __VMS.
35195         Problem reported by Steven M. Schweda in
35196         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00019.html>.
35197         Simplify code to add slash; no need for a loop.
35198         Do not remove trailing slash from "//".
35199         Do not assume dlen <= INT_MAX.
35201 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
35203         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
35204         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
35205         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
35206         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00015.html>.
35208         accept4, dup3, pipe2: port to Cygwin
35209         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
35210         * lib/accept4.c (accept4) [O_BINARY]:
35211         * lib/dup3.c (dup3) [O_BINARY]:
35212         * lib/pipe2.c (pipe2) [O_BINARY]:
35213         Use set_binary_mode, not setmode.
35214         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
35215         * modules/binary-io (Depends-on): Remove module indicator.
35216         These last two bits undo the previous change to pipe2 and binary-io.
35218 2013-07-09  Pádraig Brady  <P@draigBrady.com>
35220         mountlist: add support for deallocating returned list entries
35221         * lib/mountlist.c (free_mount_entry): A new exported function
35222         to deallocate a mount list entry.
35223         (read_file_system_list): Refactor to use the new deallocation function.
35224         Suggested by Anton Ovchinnikov.
35226 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
35228         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
35229         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
35230         * lib/stdalign.in.h (_Alignas, _Alignof):
35231         Port to FreeBSD 9.1, and to C11 and C++11.
35232         (_Alignas): Also support ICC.
35233         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
35234         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
35236 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
35238         fnmatch: don't goto over declaration
35239         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
35240         undefined behavior for goto over a declaration.
35241         Problem reported by Charlie Brown in
35242         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00009.html>.
35244         pipe2: decouple from binary-io a bit
35245         This is for Emacs, which needs pipe2 but not binary-io.
35246         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
35247         * modules/binary-io (Depends-on): Add module indicator.
35249 2013-07-03  Eric Blake  <eblake@redhat.com>
35251         mgetgroups: relax license to LGPLv2+
35252         * modules/getugroups (License): Change from GPLv3+.
35253         * modules/mgetgroups (License): Likewise.
35254         * modules/getgroups (License): Change from LGPLv3+.
35256         xalloc-oversized: relax license to LGPLv2+
35257         * modules/xalloc-oversized (License): Change from GPLv3+.
35259         nproc: relax license to LGPLv2+
35260         * modules/nproc (License): Change from LGPLv3+.
35262         bootstrap: honor --no-git
35263         * build-aux/bootstrap: Don't even try to use git when user is
35264         pointing to a static checkout.
35266 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
35268         ignore-value: port to gcc -pedantic
35269         * lib/ignore-value.h (ignore_value):
35270         Port to gcc -pedantic, by using __extension__.
35271         Reindent as per usual gnulib style nowadays.
35272         Simplify GCC version check.
35274 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
35276         extern-inline: port to gcc -std=c89
35277         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
35278         Do not use __gnu_inline__ if pedantic and pre-C99.
35280 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
35282         doc: document extern-inline
35283         * doc/extern-inline.texi: New file.
35284         * doc/gnulib.texi (alloca-opt): Include it.
35285         * m4/extern-inline.m4: Move some comments to documentation,
35286         and others closer to what they describe.
35288         doc: chatter less
35289         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
35290         (updated-stamp): Use it.  This causes 'make' to output just
35291         one file name rather than zillions.
35293         fflush, fseeko: port to musl cross-compiles
35294         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
35295         on some implementation that (1) is not known to be buggy,
35296         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
35297         cross-compiled to so we can't easily check for lack of
35298         conformance.  This is for cross-compiling to musl.
35299         Reported by Rich Felker in
35300         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00043.html>.
35301         * m4/fclose.m4 (gl_FUNC_FCLOSE):
35302         * m4/fflush.m4 (gl_FUNC_FFLUSH):
35303         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
35304         Adjust to above change.
35305         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
35306         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
35307         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
35308         known not to work, or unknown.
35310 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
35312         msvc-inval: port to mingw-w64
35313         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
35314         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
35315         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00039.html>.
35317 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
35319         getcwd-lgpl: port to Tru64
35320         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
35321         Problem reported by Steven M. Schweda in
35322         <http://lists.gnu.org/r/bug-gzip/2013-06/msg00010.html>.
35324         tests: port large-fd POSIX spawn tests to OS X
35325         Problem reported by Daiki Ueno in
35326         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00031.html>.
35327         * tests/test-posix_spawn_file_actions_addclose.c:
35328         * tests/test-posix_spawn_file_actions_adddup2.c:
35329         * tests/test-posix_spawn_file_actions_addopen.c:
35330         Include <limits.h>, for OPEN_MAX, if available.
35331         (big_fd): New static function.
35332         (main): Use it.
35334 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
35336         tests/nap.h: use an adaptive delay to avoid ctime update issues
35337         The recent change in nap.h (5191133e) decreased the probability of lost
35338         races to about a third, however such problems could still be observed
35339         in virtual machines and openSUSE's OBS.
35340         Before, nap() detected the needed time once empirically and then used
35341         that delay (together with a small correction multiplier) in further
35342         calls.  This problem has been reported and discussed several times,
35343         including guesses about possible kernel issues:
35344         https://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html
35345         http://lists.gnu.org/r/coreutils/2012-03/msg00088.html
35346         https://lists.gnu.org/r/bug-gnulib/2011-11/msg00226.html
35347         http://bugs.gnu.org/12820
35348         https://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html
35349         https://lists.gnu.org/r/bug-gnulib/2009-11/msg00007.html
35350         Now, nap() avoids the race alltogether by verifying on a reference
35351         file whether a timestamp difference has happened.
35352         * tests/nap.h (nap_fd): Define file descriptor variable for the
35353         witness file.
35354         (nap_works): Change return value to bool.  Change passing
35355         the old file's status by value instead of by reference as this function
35356         does no longer update that timestamp; rename the function argument from
35357         st to old_st.  Remove the local variables cdiff and mdiff because that
35358         function now returns true/false instead of the precise delay.
35359         (guess_delay): Remove function.
35360         (clear_tmp_file): Add new function to close and unlink the witness file.
35361         (nap): Instead of re-using the delay which has been calculated during
35362         the first call, avoid the race by actually verifying that a timestamp
35363         difference can be observed on the current file system.  Use an adaptive
35364         approach for the delay to minimize execution time.  Assert that the
35365         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
35366         = 2^31 - 1 = 2.1s.
35367         Use atexit to call clear_tmp_file when the process terminates.
35369 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
35371         sig2str: port to C++
35372         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
35373         Reported by Daniel J Sebald in
35374         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00000.html>.
35376 2013-05-30  Eric Blake  <eblake@redhat.com>
35378         docs: mention cygwin shortcoming in <sys/un.h>
35379         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
35381         vasnprintf: silence mingw compiler warning
35382         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
35384 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
35386         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
35387         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
35388         This fixes a porting bug I recently reintroduced in regex, and
35389         some other instances that I discovered while testing the fix.
35390         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
35391         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
35392         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
35393         with an empty argument if this is a pedantic pre-C99 GCC.
35394         * lib/verify.h: Do not use _Static_assert if this is a pedantic
35395         pre-C11 GCC.
35397         regex: adapt to locking regime instead of depending on pthread
35398         Instead of depending on pthread, adapt to whatever thread
35399         modules are in use.  Problem reported by Ludovic Courtès in
35400         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00082.html>
35401         and by Mats Erik Andersson in
35402         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00100.html>.
35403         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
35404         Support either the 'lock' module, or the 'pthread' module, or
35405         no module.
35406         (lock_lock, lock_unlock): New macros.
35407         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
35408         * modules/lock, modules/pthread (configure.ac): Add module indicator.
35409         * modules/regex (Depends-on): Remove pthread.
35411 2013-05-22  Eric Blake  <eblake@redhat.com>
35413         getgroups: document portability issues
35414         * doc/glibc-functions/initgroups.texi (initgroups): Mention
35415         multithread safety.
35416         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
35417         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
35418         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
35419         getugroups.
35420         * doc/posix-functions/getgroups.texi (getgroups): Mention
35421         multithread safety and mgetgroups.
35423 2013-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
35425         test-lchown, test-chown: also skip test if chown fails with EPERM
35426         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
35427         skip this test, to handle FAT file systems.
35428         * tests/test-chown.h (test_chown): Likewise.
35430 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
35432         regex: fix dfa race in multithreaded uses
35433         Problem reported by Ludovic Courtès in
35434         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00058.html>.
35435         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
35436         New macros.  All uses of __libc_lock_define, __libc_lock_init
35437         changed to use the first two of these.
35438         (__libc_lock_lock, __libc_lock_unlock): New macros, for
35439         non-glibc platforms.
35440         (struct re_dfa_t): Define the lock unconditionally.
35441         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
35442         '#ifdef _LIBC"s.
35443         * modules/regex (Depends-on): Add pthread, if we use the
35444         included regex.
35446         * lib/regcomp.c: Do actions that are not needed for glibc,
35447         but may be needed elsewhere.
35448         (regfree, re_compile_internal): Destroy the lock.
35449         (re_compile_internal): Check for lock-initialization failure.
35451         malloca: port to compilers that reject size-zero arrays
35452         This fixes a bug introduced in my previous patch.
35453         * lib/malloca.c (struct preliminary_header): Use an int
35454         rather than a character array of size int; that's simpler.
35455         (struct header): Remove, replacing with ...
35456         (union header): New type.  This avoids the need for declaring a
35457         character array of size zero, which is not allowed on some platforms.
35458         All uses changed.
35460 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
35462         parse-datetime, tests: don't use "string" + int
35463         Recent versions of 'clang' complain about C source code that
35464         uses expressions of the form '"string literal" + integer',
35465         I guess on the theory that it's confusing for readers who are
35466         used to C++.  On those grounds I suppose it's OK to make this
35467         minor style change.
35468         * lib/parse-datetime.y (parse_datetime):
35469         * tests/test-fchdir.c (main):
35470         * tests/test-snprintf-posix.h (test_function):
35471         * tests/test-snprintf.c (main):
35472         * tests/test-vasnprintf-posix.c (test_function):
35473         * tests/test-vasnprintf.c (test_function):
35474         * tests/test-vsnprintf.c (main):
35475         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
35476         Rewrite '"str" + E' to '&"str"[E]'.
35478 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
35480         argmatch: port to C++
35481         * lib/argmatch.h [__cplusplus]: Add extern "C".
35483         argp: typo fix
35484         * lib/argp-help.c: Typo in comment.
35486 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
35488         manywarnings: update for GCC 4.8.0
35489         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
35490         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
35491         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
35492         -Wmissing-noreturn, as they are duplicates of other warnings.
35493         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
35494         was documented to be flaky in earlier versions of GCC.
35496         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
35497         * tests/test-spawn.c (main):
35498         * tests/test-sys_socket.c (main):
35499         * tests/test-sys_wait.c (main):
35500         Don't have a switch value that isn't covered by a case.
35502         getaddrinfo-tests: port --enable-gcc-warnings to clang
35503         * tests/test-getaddrinfo.c (simple):
35504         Avoid casts from looser to stricter-aligned pointers.
35506         thread: port --enable-gcc-warnings to clang
35507         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
35508         Include <signal.h>, to pacify a warning about pthread_sigmask.
35510         stdio: use __REDIRECT for fwrite, fwrite_unlocked
35511         * lib/stdio.in.h (fwrite):
35512         When working around bug 11959, use __REDIRECT rather than '#define
35513         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
35514         fix the -Wunused-value issue with clang, and it works with GCC too.
35515         Problem with targeting reported by Eric Blake in
35516         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00067.html>.
35517         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
35518         debugging the fwrite issue.
35520         stdio: port --enable-gcc-warnings to clang
35521         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
35522         since the GCC workaround for fwrite does not pacify clang.
35524         sig2str: port --enable-gcc-warnings to clang
35525         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
35527         obstack: port --enable-gcc-warnings to clang
35528         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
35529         Avoid casts from looser to stricter-aligned pointers.
35531         memchr2: port --enable-gcc-warnings to clang
35532         * lib/memchr2.c (memchr2):
35533         Avoid casts from looser to stricter-aligned pointers.
35535         mbsstr: port --enable-gcc-warnings to clang
35536         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
35537         Avoid casts from looser to stricter-aligned pointers.
35539         malloca: port --enable-gcc-warnings to clang
35540         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
35541         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
35543         inttostr: port --enable-gcc-warnings to clang
35544         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
35546         warnings: port to clang
35547         Problem reported by Daniel P. Berrange via Eric Blake in
35548         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00055.html>.
35549         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
35550         (gl_WARN_ADD): Use it.
35552 2013-05-11  Jim Meyering  <meyering@fb.com>
35554         quotearg: do not read beyond end of buffer
35555         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
35556         end of an ARG for which no length was specified.  With an N-byte
35557         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
35558         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
35559         via coreutils' misc/sort-debug-keys.sh test and detected by running
35560         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
35561         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
35562         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
35563         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
35564         characters correctly."
35566 2013-05-11  Daiki Ueno  <ueno@gnu.org>
35568         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
35569         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
35570         compilation target is Mac OS X 10.6.
35571         Problem reported by parafin and Andoni Morales in
35572         <http://savannah.gnu.org/bugs/?37844> and
35573         <http://lists.gnu.org/r/bug-gettext/2013-05/msg00007.html>.
35575 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
35577         mkdir-p: remove assumptions about umask and mode
35578         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
35579         umask is 0, or that MODE is a subset of MODE_BITS.
35581 2013-05-10  Eric Blake  <eblake@redhat.com>
35583         maint.mk: catch more abuse of HAVE_DECL in syntax-check
35584         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
35586 2013-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
35588         deps: require Automake >= 1.9.6 in generated Makefile fragments
35590         That is the same minimal version required in the DEPENDENCIES file.
35591         Moreover, the old code generated a requirement of Automake >= 1.5,
35592         and that is an insanely outdated version.
35594         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
35595         * tests/havelib/rpathlx/Makefile.am: Likewise.
35596         * tests/havelib/rpathly/Makefile.am: Likewise.
35597         * tests/havelib/rpathlyx/Makefile.am: Likewise.
35598         * tests/havelib/rpathlz/Makefile.am: Likewise.
35599         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
35600         * tests/havelib/rpathx/Makefile.am: Likewise.
35601         * tests/havelib/rpathy/Makefile.am: Likewise.
35602         * tests/havelib/rpathz/Makefile.am: Likewise.
35604 2013-05-08  Eric Blake  <eblake@redhat.com>
35606         bootstrap: AC_INIT may have more than four parameters
35607         * build-aux/bootstrap (extract_package_name): Correctly extract
35608         non-empty tarname field.  Avoid range in regex.
35609         Based on a report by Sami Kerola <kerolasa@iki.fi>.
35611 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
35613         qacl: port to MS-Windows port of GNU Emacs
35614         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
35615         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
35616         port of GNU Emacs.  Problem reported by Eli Zaretskii in
35617         <http://bugs.gnu.org/14295#14>.
35619 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
35621         acl: include quote.h
35622         * lib/copy-acl.c: Include quote.h.
35623         * lib/set-acl.c: Likewise.
35625 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
35627         fchownat, renameat, unlinkat: update statat dependencies
35628         These modules use statat and lstatat, not fstatat; so depend on
35629         the statat module, which was split out recently from fstatat.
35630         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
35631         * modules/renameat: Likewise.  Also delete fstat.
35632         URL: http://bugs.gentoo.org/468790
35634 2013-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
35636         Assume gnulib is checked out from Git, not CVS
35638         In fact, access to the gnulib repository through CVS has been
35639         disabled, or more precisely, got broken and was never restored; see:
35640         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00008.html>
35642         Note that support for CVS is not removed completely and unthinkingly
35643         by this change: only support for CVS checkouts of gnulib itself is
35644         removed.  For example, the 'bootstrap' script still cater to .cvsingore
35645         files and CVS directories, for the benefit of those poor gnulib clients
35646         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
35648         * gnulib-tool: Simplify accordingly.
35649         * posix-modules: Likewise.
35650         * MODULES.html.sh: Likewise.
35651         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
35652         repository.
35653         * doc/gnulib-intro.texi: Likewise.
35654         * doc/gnulib-readme.texi: Likewise.
35655         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
35656         sample '.gitignore' file rather than a sample '.cvsignore'.
35657         * NEWS: Update.
35658         * m4/extensions.m4: While at it, remove a comment mistakenly referring
35659         to "CVS Autoconf" rather than "git Autoconf".
35661 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
35663         utimensat-tests, etc.: try to fix some races
35664         Problem reported by Bernhard Voelker in
35665         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html>.
35666         I don't know whether this patch fixes that race condition, but it
35667         fixes *some* race conditions, so it should be a win.
35668         * modules/chown-tests (Depends-on):
35669         * modules/fchownat-tests (Depends-on):
35670         * modules/fdutimensat-tests (Depends-on):
35671         * modules/futimens-tests (Depends-on):
35672         * modules/lchown-tests (Depends-on):
35673         * modules/stat-time-tests (Depends-on):
35674         * modules/utimens-tests (Depends-on):
35675         * modules/utimensat-tests (Depends-on):
35676         Depend on nanosleep, not usleep.
35677         * modules/chown-tests (test_chown_LDADD):
35678         * modules/lchown-tests (test_lchown_LDADD):
35679         * modules/stat-time-tests (test_stat_time_LDADD):
35680         New macro.
35681         * modules/fchownat-tests (test_fchownat_LDADD):
35682         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
35683         * modules/futimens-tests (test_futimens_LDADD):
35684         * modules/utimens-tests (test_utimens_LDADD):
35685         * modules/utimensat-tests (test_utimensat_LDADD):
35686         Add $(LIB_NANOSLEEP).
35687         * modules/stat-time-tests (Files): Add tests/nap.h.
35688         * tests/nap.h: Include <limits.h>, for INT_MAX.
35689         (lt_mtime): Remove.
35690         (diff_timespec): New function.
35691         (get_stat): Rename from get_mtime.  All callers changed.
35692         (nap_works): Determine the needed delay by inspecting the
35693         file system's timestamp jumps; this should be more reliable.
35694         Look at both mtime and ctime, and take the maximum of the two jumps.
35695         (nap_works, guess_delay):
35696         Return a nanosecond count, not a microsecond count.
35697         All callers changed.
35698         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
35699         failure.
35700         (nap): Multiply the guess by 1.125, to accommodate the case where
35701         the file system's clock is a bit slower than nanosleep's clock.
35702         * tests/test-stat-time.c (BASE): New macro.
35703         Include nap.h.
35704         (nap): Remove; nap.h now defines this.  This removes a duplicate
35705         implementation of 'nap'.
35707         utimens, utimensat: work around Solaris UTIME_OMIT bug
35708         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
35709         Linux kernel 2.6.32 does.  Work around it in the same way.
35710         * doc/posix-functions/futimens.texi (futimens):
35711         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
35712         * lib/utimens.c (fdutimens, lutimens):
35713         * lib/utimensat.c (rpl_utimensat): Work around the bug.
35715         gettext: now it's your responsibility to add -I$(top_builddir)/intl
35716         Formerly, it was your responsibility to do this for all Makefile.ams
35717         other than Gnulib's.  Now it's your responsibility to do it for
35718         Gnulib's Makefile.am, too.
35719         * NEWS: Document this.
35720         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
35722         acl: include errno.h to get errno
35723         Reported by Daiki Ueno in
35724         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00073.html>.
35725         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
35727 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
35729         tests: don't assume getdtablesize () <= 10000000
35730         * modules/cloexec-tests:
35731         * modules/dup2-tests:
35732         * modules/dup3-tests:
35733         * modules/nonblocking-tests:
35734         * modules/posix_spawn_file_actions_addclose-tests:
35735         * modules/posix_spawn_file_actions_adddup2-tests:
35736         * modules/posix_spawn_file_actions_addopen-tests:
35737         * modules/unistd-safer-tests:
35738         Depend on the getdtablesize module.
35739         * tests/test-cloexec.c:
35740         * tests/test-dup-safer.c:
35741         * tests/test-dup2.c:
35742         * tests/test-dup3.c:
35743         * tests/test-fcntl.c:
35744         * tests/test-nonblocking.c:
35745         * tests/test-posix_spawn_file_actions_addclose.c:
35746         * tests/test-posix_spawn_file_actions_adddup2.c:
35747         * tests/test-posix_spawn_file_actions_addopen.c:
35748         Don't assume getdtablesize () <= 10000000.
35750 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
35752         extern-inline: work around bug in Sun c99
35753         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
35754         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
35756 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
35758         qacl: new module, broken out from the acl module
35759         This is for GNU Emacs, which wants the acl functions but does
35760         not want 'error' invoked when they fail.
35761         * lib/acl-internal.h: Do not include error.h, quote.h.
35762         (ENOSYS, ENOTSUP): Remove; no longer needed.
35763         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
35764         * lib/acl.h: Include <stdbool.h>.
35765         (acl_errno_valid): New function.
35766         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
35767         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
35768         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
35769         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
35770         (ACL_INTERNAL_INLINE): Remove; no longer needed.
35771         * lib/file-has-acl.c (file_has_acl):
35772         * lib/qcopy-acl.c (qcopy_acl):
35773         * lib/qset-acl.c (qset_acl):
35774         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
35775         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
35776         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
35777         lib/file-has-acl.c, m4/acl.m4 to qacl module.
35778         Add lib/set-acl.c.
35779         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
35780         Add qacl.
35781         (configure.ac): Move gl_FUNC_ACL to qacl module.
35782         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
35783         Rename set-mode-acl.c to set-acl.c.
35784         * lib/acl-errno-valid.c: New file.
35785         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
35786         copy_acl function remains in copy-acl.c.
35787         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
35788         (_): Remove; not needed.
35789         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
35790         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
35791         * modules/qacl: New file, moved from the old modules/acl.
35792         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
35793         Remove set-mode-acl.c, copy-acl.c.
35794         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
35796         alignof, intprops, malloca: port better to IBM's C compiler
35797         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
35798         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
35799         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
35801 2013-04-25  Daiki Ueno  <ueno@gnu.org>
35803         wctype-h: fix gettext link error on mingw
35804         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
35805         <https://lists.gnu.org/r/bug-gettext/2013-03/msg00086.html>.
35806         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
35807         rpl_towupper and rpl_towupper.
35809 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
35811         regex-tests, regex: allow glibc re_search behavior
35812         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
35813         re_search input data to make the multi-character collating element
35814         in it clearly visible, and treat re_search return code 0 as valid.
35815         * m4/regex.m4 (gl_REGEX): Likewise.
35817 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
35819         stdalign: doc fix
35820         * doc/posix-headers/stdalign.texi (stdalign.h):
35821         Gnulib doesn't support '_Alignof expr'.
35823 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
35825         stdalign: port to stricter ISO C11
35826         ISO C11 says that _Alignof's operand must be a parenthesized type.
35827         Problem reported by Eli Zaretskii in
35828         <http://lists.gnu.org/r/emacs-devel/2013-03/msg00960.html>.
35829         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
35830         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
35832 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
35834         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
35835         Problem reported by Marco Atzeri in
35836         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00000.html>.
35837         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
35838         Simply delegate to the system <sys/select.h> in this case too.
35839         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
35840         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
35841         be needed on Solaris either.
35842         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
35843         Simply delegate to the system <sys/time.h> in this case.
35845 2013-03-19  Karl Berry  <karl@gnu.org>
35847         * build-aux/gnupload: check for erroneous (with gnupload) use of
35848         ftp-upload.gnu.org, tweak help.
35850 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
35852         copy-file, rpmatch: fix problems found by cppcheck
35853         Reported by Arno Onken in
35854         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00069.html>.
35855         * lib/rpmatch.c (try): Fix memory leak.
35856         * lib/copy-file.c: Include "ignore-value.h".
35857         (qcopy_file_preserving): Ignore chown value.
35858         * modules/copy-file (Depends-on): Add ignore-value.
35860 2013-01-27  Jim Meyering  <jim@meyering.net>
35862         prefix-gnulib-mk: give better diagnostics
35863         * build-aux/prefix-gnulib-mk: Don't just "die".
35864         Give better diagnostics upon failure.
35866 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
35868         putenv: port to Solaris 10
35869         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
35870         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
35871         is not what is wanted here.
35872         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
35873         declaration, not for its existence.
35875 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
35877         mktime: fix configure typo
35878         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
35880 2013-03-12  Eric Blake  <eblake@redhat.com>
35882         regex-tests: skip UTF-8 test on mingw
35883         * modules/regex-tests (Depends-on): Add localcharset.
35884         * tests/test-regex.c (main): Use it to skip test on mingw.
35886 2013-03-11  Eric Blake  <eblake@redhat.com>
35888         tests: make it easier to bypass alarm time in debugger
35889         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
35890         * tests/test-memmem.c (main): Likewise.
35891         * tests/test-passfd.c (main): Likewise.
35892         * tests/test-ptsname.c (main): Likewise.
35893         * tests/test-ptsname_r.c (main): Likewise.
35894         * tests/test-strcasestr.c (main): Likewise.
35895         * tests/test-strstr.c (main): Likewise.
35897         regex: port to mingw's recent addition of undeclared alarm
35898         * doc/posix-functions/alarm.texi (alarm): Document that alarm
35899         exists but still doesn't work in newer mingw.
35900         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
35901         not existence.  Ensure SIGALRM is not trapped.
35902         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
35903         * m4/regex.m4 (gl_REGEX): Likewise.
35904         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
35905         * tests/test-regex.c (main): Use correct probe for alarm.
35907         putenv: avoid compilation warning on mingw
35908         * lib/putenv.c (_unsetenv): Protect variable declaration.
35909         (putenv): Fix indentation.
35911 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
35913         unistd: don't prevent Tru64 Unix from using gnulib strtod.
35914         * lib/unistd.in.h: be careful not to include un-needed system
35915         stdlib.h from here, because that prevents gnulib stdlib.h from
35916         defining rpl_strtod correctly.
35918 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
35920         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
35921         changesets, but for the 'precision 0' test.
35922         * tests/test-vasprintf-posix.c (test_function): Don't insist on
35923         round-to-even, since POSIX says rounding is implementation-defined
35924         and OS X 10.8.2 rounds 1.51 to 1 here.
35926         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
35927         changeset.
35928         * tests/test-vasprintf-posix.c (test_function): Don't insist on
35929         round-to-even, since POSIX says rounding is implementation-defined
35930         and OS X 10.8.2 rounds 1.5 to 1 here.
35932 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
35934         vasnprintf-posix-tests: allow rounding 1.5 to 1
35935         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
35936         round-to-even, since POSIX says rounding is implementation-defined
35937         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
35938         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00019.html>.
35940         bootstrap: port to FreeBSD
35941         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
35942         that treat '--' differently.  Reported by Mats Erik Andersson in
35943         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00012.html>.
35945 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
35947         regex: rename remaining __attribute calls to __attribute__.
35948         2012-02-25 changed definition of __attribute, but left some uses
35949         unchanged, preventing compilation of regex module on most non-gcc
35950         environments.
35951         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
35952         (lookup_collation_sequence_value, build_range_exp)
35953         (build_collating_symbol): Set attributes with newly renamed
35954         __attribute__ decorator.
35955         * lib/regex_internal.c (re_string_peek_byte_case)
35956         (re_node_set_compare, re_node_set_contains): Likewise.
35957         * lib/regexec.c (acquire_init_state_context): Likewise.
35959 2013-03-06  Bruno Haible  <bruno@clisp.org>
35961         execute: Revert last change, but use a different condition.
35962         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
35963         on Windows.
35965 2013-03-05  Eric Blake  <eblake@redhat.com>
35967         execute: drop dead code
35968         * lib/execute.c (nonintr_close, nonintr_open): Delete.
35970 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
35972         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
35973         * m4/non-recursive-gnulib-prefix-hack.m4
35974         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
35975         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
35976         <http://bugs.gnu.org/10305#237>.
35978 2013-03-04  Eric Blake  <eblake@redhat.com>
35980         test-getsockopt: avoid compiler warning
35981         * tests/test-getsockopt.c (includes): Ensure close is declared.
35983 2013-03-02  Bruno Haible  <bruno@clisp.org>
35985         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
35986         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
35988 2013-03-02  Bruno Haible  <bruno@clisp.org>
35990         gettext: Update to version 0.18.2.
35991         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
35992         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
35993                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
35995 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
35997         regex: merge patches from libc
35999         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
36000         * lib/regex_internal.h (__attribute__): Rename from __attribute.
36001         All uses changed.
36002         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
36003         (re_string_wchar_at, re_string_elem_size_at):
36004         Mark function as possibly unused.
36006         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
36007         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
36008         elements compare against the byte sequence of it, not its name.
36010 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
36012         putenv: port better to native Windows
36013         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
36014         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
36015         (_unsetenv): Use _putenv if available.
36016         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
36017         a bit less likely to cause damage.
36018         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
36019         Fix the wrong value with SetEnvironmentVariable.
36020         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
36021         code better.
36023 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
36025         regex: ignore old-style-definition warnings
36026         * lib/regex.c: Add pragma to ignore these warnings.
36027         Problem reported for GNU tar by Pavel Raiskup.
36029 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
36031         getcwd: support coreutils better
36032         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
36033         but this might not be correct in coreutils, which disables
36034         the raw decl checks.  Problem reported by Nagendra in
36035         <http://bugs.gnu.org/10305#192>.
36036         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
36037         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
36038         Test the getcwd function, not any macro, since getcwd.c wants the
36039         function.
36040         * m4/getcwd.m4 (gl_FUNC_GETCWD):
36041         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
36042         compile, as might happen if there's a macro but no function.
36044         strtod: support coreutils better
36045         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
36046         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
36047         disables the raw decl checks.  This assumes there is an underlying
36048         strtod, but that's a safe assumption these days.
36049         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
36051         mountlist: port to HP NonStop
36052         Reported by Joachim Schmitz in
36053         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00084.html>.
36054         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
36055         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
36057 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
36059         extern-inline: avoid compilation error with HP-UX cc
36060         Reported by Richard Lloyd in
36061         <http://lists.gnu.org/r/bug-texinfo/2013-02/msg00030.html>.
36062         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
36063         Suppress extern inline with HP-UX cc.  This should be safe,
36064         though it may hurt performance.  Perhaps someone with some HP-UX
36065         experience can come up with a higher-performance fix.
36067 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
36069         putenv: fix heap corruption with mixed putenv/_putenv
36070         Problem reported by Michael Goffioul in
36071         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00061.html>.
36072         * lib/putenv.c (putenv) [HAVE__PUTENV]:
36073         Rely on _putenv to allocate the new environment.
36074         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
36075         * modules/putenv (configure.ac): Use it.
36077 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
36079         unsetenv etc.: port to Solaris 11 + GNU Emacs
36080         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
36081         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
36082         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
36083         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
36084         idea but is too painful to fix right now), and without this gnulib
36085         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
36086         compiling unsetenv.c on Solaris 11.  Fix the problem for
36087         unsetenv.c, and fix other similar occurrences.
36089 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
36091         secure_getenv: fix C++ declaration typo
36092         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
36093         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
36094         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00057.html>.
36096 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
36098         careadlinkat: stop exporting careadlinkatcwd
36099         Only Emacs used it directly, and Emacs no longer needs it.
36100         * NEWS: Document this simplification.
36101         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
36102         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
36103         for readlink.
36104         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
36105         Don't include stdlib.h; no longer needed.
36106         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
36107         * lib/relocwrapper.c: Adjust comment to match new dependencies.
36108         * modules/areadlink (Depends-on): Add readlink.
36109         (Maintainer): Add self.
36110         * modules/careadlinkat (Depends-on): Remove readlink.
36112         extensions: port better to HP-UX
36113         This is merged from git Autoconf.
36114         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
36115         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
36116         so that it's compatible with the value used when compiling.
36118         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
36119         Problem reported by Mats Erik Andersson in
36120         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00051.html>.
36121         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
36122         openpty function exists, not merely when we intend to replace it.
36123         This corrects the 2013-01-31 patch, which mistakenly defined
36124         HAVE_OPENPTY even on hosts that lacked it.
36126 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
36128         secure_getenv: fix include typo
36129         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
36131         secure_getenv: port better to FreeBSD and Solaris
36132         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
36133         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
36134         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
36135         This works better on BSDish platforms.
36136         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
36137         Test for issetugid if __secure_getenv is missing.
36139 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
36141         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
36142         Some of these changes are merged in from git Autoconf.
36143         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
36144         When deciding whether to define _XOPEN_SOURCE, inspect the
36145         preprocessor macro __hpux instead of the more-heavyweight
36146         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
36147         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
36148         as the key for __EXTENSIONS__.
36150         unistd: avoid namespace pollution on non-glibc systems
36151         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
36152         This avoids namespace pollution on non-glibc systems, by causing
36153         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
36154         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
36155         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00027.html>.
36157 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
36159         tmpdir: use secure_getenv
36160         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
36161         Define to secure_getenv, not getenv.
36162         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
36163         as that's now secure_getenv's job.
36164         * modules/tmpdir (Depends-on): Add secure_getenv.
36166         tempname: use secure_getenv
36167         * lib/tempname.c (__secure_getenv) [!_LIBC]:
36168         Define to secure_getenv, not getenv.
36169         * modules/tempname (Depends-on):
36170         Add secure_getenv.
36172         secure_getenv: new module
36173         * MODULES.html.sh (Extra functions based on ANSI C 89):
36174         Add secure_getenv.
36175         * doc/glibc-functions/secure_getenv.texi: New file.
36176         * doc/gnulib.texi: Include it.
36177         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
36178         New files.
36179         * lib/stdlib.in.h (secure_getenv): New decl.
36180         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
36181         * modules/stdlib (stdlib.h):
36182         Add secure_getenv checks.
36184 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
36186         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
36187         Reported for OS X 10.8.2 by Assaf Gordon in
36188         <http://bugs.gnu.org/13516>.
36189         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
36190         !HAVE_OPENAT && !HAVE_FDOPENDIR.
36191         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
36192         so that they can be kept in sync more easily.  Avoid PATH_MAX
36193         test on the Hurd.  Sync from test-getcwd.c for errno tests after
36194         mkdir or chdir failure.
36195         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
36196         lib/getcwd.c.
36197         (test_abort_bug): Do not test for the deep directory bug unless we
36198         have openat support.  Avoid PATH_MAX test on the Hurd.
36200         regex-tests, regex: fix bug: memset undeclared
36201         * tests/test-regex.c: Don't include regex.h twice.  Include
36202         string.h, to declare memset.  Christensen's report also mentioned
36203         this issue.
36204         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
36205         test-regex.c, to avoid future problems like this.  Remove
36206         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
36207         twice.
36209         regex-tests: fix link errors on older Solaris
36210         These need to link with @LIBINTL@ to get libintl_gettext.
36211         Problem reported by Tom G. Christensen in
36212         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00003.html>.
36213         * modules/regex-tests (test_regex_LDADD): New macro.
36215 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
36217         regex-tests: new module
36218         * modules/regex-tests, tests/test-regex.c: New files.
36220         regex: fix off-by-one error in configure test
36221         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
36223 2013-01-31  Eric Blake  <eblake@redhat.com>
36225         regex: avoid infinite configure test
36226         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
36228 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
36230         openpty: fix bug where HAVE_OPENPTY wasn't defined
36231         See the thread starting at:
36232         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00185.html
36233         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
36234         openpty function exists, not merely when we intend to replace it.
36236 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
36238         sys_time: port to Solaris 2.6
36239         There is a circularity problem on Solaris 2.6, where <time.h> includes
36240         <sys/time.h> for struct timespec.  The include nesting is gnulib
36241         <time.h>, system <time.h>, gnulib <sys/time.h>, system
36242         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
36243         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
36244         <sys/siginfo.h>; the last, innermost file needs struct
36245         timestruc_t, which is defined in <sys/time.h>, which has not been
36246         fully parsed.  Problem reported by Tom G. Christensen in
36247         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00113.html>.
36248         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
36249         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
36250         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
36251         uses split double-inclusion guards.
36253 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
36255         regex: test for buffer overrun
36256         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
36257         for the just-fixed regex bug.
36259 2013-01-29  Andreas Schwab  <schwab@suse.de>
36261         regex: fix buffer overrun in regexp matcher [BZ #15078]
36262         * lib/regexec.c (extend_buffers): Add parameter min_len.
36263         (check_matching): Pass minimum needed length.
36264         (clean_state_log_if_needed): Likewise.
36265         (get_subexp): Likewise.
36267 2013-01-28  Pádraig Brady  <P@draigBrady.com>
36269         mountlist: don't consider "devtmpfs" as dummy
36270         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
36271         as there is storage associcated with it.
36273 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
36275         futimens-tests, utimens-tests: Depend on gettext.
36276         This works around a problem introduced in my 2013-01-12 patch,
36277         which added @LIBINTL@ to these modules.
36278         * modules/futimens-tests (Depends-on):
36279         * modules/utimens-tests (Depends-on): Add gettext.
36281 2013-01-26  Eric Blake  <eblake@redhat.com>
36283         test-getpeername: fix typo
36284         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
36286 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
36288         bootstrap: remove the need for a sorted .gitignore file
36289         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
36290         rename to insert_if_absent(), so that we don't need or generate
36291         a sorted .gitignore file.  We do require a .gitignore with no
36292         existing duplicate entries and enforce that.
36293         (sort_patterns): Remove this function as we now use the simpler
36294         technigue of inserting blacklist entries at the top of the file,
36295         assuming gnulib won't be inserting !whitelist entries.
36297 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
36299         readlinkat: don't depend on gl_FUNC_OPENAT
36300         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
36301         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
36302         renameat.m4, symlinkat.m4; but one thing at a time.
36304         statat: new module, split out from fstatat
36305         GNU Emacs needs the POSIX-specified fstatat, but not the
36306         gnulib-specified statat and lstat.  Split the latter two into a
36307         new module 'statat'.
36308         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
36309         * lib/openat.h, lib/statat.c (STATAT_INLINE):
36310         Rename from FSTATAT_INLINE. All uses changed.
36311         * modules/fstatat (Files): Remove lib/statat.c.
36312         (gl_MODULE_INDICATOR([fstatat])): Remove.
36313         (lib_SOURCES): Remove.
36314         (Maintainer): Add self.
36315         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
36316         * tests/test-fstatat.c (BASE): Don't define if already defined.
36317         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
36319 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
36321         tests: don't assume fd 99 is closed
36322         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
36323         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
36324         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
36325         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
36326         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
36327         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
36328         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
36329         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
36330         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
36331         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
36332         * tests/test-fwrite.c, tests/test-getpeername.c:
36333         * tests/test-getsockname.c, tests/test-getsockopt.c:
36334         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
36335         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
36336         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
36337         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
36338         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
36339         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
36340         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
36341         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
36342         * tests/test-unlinkat.c, tests/test-unlockpt.c:
36343         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
36344         Close file descriptor 99, instead of assuming it's already closed.
36346 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
36348         stpncpy: port to OS X 10.8
36349         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
36350         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
36352 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
36354         unistd: port to recent mingw
36355         * lib/unistd.in.h: Remove special invocation convention for mingw,
36356         which breaks for the latest mingw version.  See John W. Eaton in
36357         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00100.html>.
36359         largefile: port better to Mac OS X 10.5
36360         This patch is backported from Autoconf git.
36361         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
36362         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
36363         with ino_t size being different for configuration time versus
36364         build/run time.  Problem reported by PHO in
36365         <http://lists.gnu.org/r/bug-autoconf/2013-01/msg00040.html>.
36367 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
36369         doc: clarify -Werror
36370         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
36371         clarify that it's intended for developers, not for ordinary builds,
36372         and mention --enable-gcc-warnings as one possible use.
36374 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
36376         stdint: fix build with Android's Bionic fox x86
36377         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
36378         was already included as _SSIZE_T_DEFINED_ might also be defined
36379         in include/machine/_types.h, which is included by stdio.h
36381 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
36383         net_if-tests: port to Solaris 7 + GCC 3.4.6
36384         Problem reported by Tom G. Christensen in
36385         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00091.html>.
36386         * tests/test-net_if.c (ni): Move to next the code that uses it,
36387         so that it's declared only if needed.
36389 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
36391         net_if-tests: port to older Solaris
36392         Problem reported by Tom G. Christensen in
36393         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
36394         * modules/net_if-tests (NET_IF_LIB): New substitution.
36395         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
36396         (HAVE_IF_NAMEINDEX): New C macro.
36397         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
36399         system-quote-tests: port to older Solaris
36400         Problem reported by Tom G. Christensen in
36401         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
36402         * tests/test-system-quote-child.c (fopen, fread): Undef.
36404         c-xvasprintf etc.: fix link errors on older Solaris
36405         These need to link with @LIBINTL@ to get libintl_gettext.
36406         Problem reported by Tom G. Christensen in
36407         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
36408         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
36409         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
36410         * modules/futimens-tests (test_futimens_LDADD):
36411         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
36413 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
36415         locale: port to Solaris 2.6 and 7 + GNU gettext
36416         * lib/locale.in.h: Just include_next <locale.h> when
36417         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
36418         when combining the localename module with GNU gettext 0.18.2.
36419         Problem reported by Tom G. Christensen in
36420         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00084.html>.
36422 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
36424         stdlib: port to Solaris 2.6
36425         Also, the code worked on Solaris 7 through 9 only by accident.
36426         Problem reported by Tom G. Christensen in
36427         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00059.html>.
36428         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
36429         simply include the system stdlib.h.
36430         * lib/getopt.in.h (__need_system_stdlib_h):
36431         * lib/pthread.in.h (__need_system_stdlib_h):
36432         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
36433         Define when including <stdlib.h>, to avoid problems at least for
36434         the pthread case on Solaris 2.6 and 7.  These .h files can get by
36435         with the system stdlib.h.
36437 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
36439         doc: update main copyright year
36440         * doc/gnulib.texi: Update copyright date.
36442         doc: improve ISO 8601 discussion
36443         * doc/parse-datetime.texi (Combined date and time of day items):
36444         Specify more carefully what formats are supported and what is
36445         done with excess precision.
36447 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
36449         doc: avoid small caps
36450         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
36451         they're more trouble than they're worth.  Suggested by Karl Berry
36452         in <http://bugs.gnu.org/13360>.
36454         regex: conform to strict C
36455         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
36456         From Aharon Robbins.
36458         gnulib-tool: fix incompatibility with autopoint 0.18.2
36459         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
36460         Problem reported by Tom G. Christensen in
36461         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00053.html>.
36463 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
36465         fprintftime: bring back and reword fwrite comment
36466         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
36468         stdio: remove now-unnecessary stdio.c
36469         Since stdio.in.h no longer uses inline functions, we no longer
36470         need to compile the extern versions.
36471         * lib/stdio.c: Remove.
36472         * modules/stdio (Files): Remove lib/stdio.c.
36473         (lib_SOURCES): Remove.
36475         unicodeio: depend on stdio, not ignore-value
36476         * lib/unicodeio.c: Do not include ignore-value.h.
36477         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
36478         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
36480         fprintftime: depend on stdio, not ignore-value
36481         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
36482         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
36483         since the stdio module arranges to silence that warning now.
36484         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
36486 2012-10-04  Simon Josefsson  <simon@josefsson.org>
36488         stdint-tests: Fix expanded-before-required-warning.
36489         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
36491 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
36493         fwrite: silence __wur only for older glibc versions
36494         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
36495         This will help us remove this workaround some time in the far future.
36497 2013-01-03  Eric Blake  <eblake@redhat.com>
36499         fwrite: silence __wur without using inline
36500         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
36501         just gcc, and in a way that avoids inline issues.
36502         * modules/stdio (Depends-on): Drop extern-inline.
36504 2013-01-03  Jim Meyering  <jim@meyering.net>
36506         update-copyright: avoid copyright notice date corruption
36507         Given a sequence of copyright year numbers in which the final
36508         one was a two-digit number that happened to be a substring of
36509         a preceding four-digit year number, we would mistakenly update
36510         the substring (from two- to four-digit) rather than the two-digit
36511         number at the end, which, combined with the addition of the current
36512         4-digit year number would yield two 5-digit year numbers, e.g.,
36513         here, it would convert the first "99" to "1999, 2013" rather than
36514         the final one:
36515           1991, 99
36516           11999, 20131, 1999
36517         * build-aux/update-copyright: Tighten a regexp.
36518         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
36519         Reported by Joseph Myers in
36520         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
36522 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
36524         regex: omit needless signed-pointer casts
36525         * lib/regcomp.c (build_charclass, build_charclass_op):
36526         Use char *, not unsigned char *, for class name and extra.
36527         The char values are always nonnegative so there's no need to
36528         insist on unsigned char * here, and using char * removes the need
36529         for casts.  Reported by Aharon Robbins in
36530         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
36532         regex: support Gawk, which never uses alloca
36533         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
36534         Do not include in this case.  Gawk doesn't supply a substitute
36535         alloca.h and doesn't need one.
36537         regex: port __libc_lock_define usage to C89
36538         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
36539         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
36540         does not conform to C89, as it has an empty macro argument.
36541         Reported by Aharon Robbins in
36542         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
36544 2013-01-01  Eric Blake  <eblake@redhat.com>
36546         maint: update all copyright year number ranges
36547         Run "make update-copyright".
36549         version-etc: bump copyright year reported in --version
36550         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
36552 2012-12-31  Eric Blake  <eblake@redhat.com>
36554         sigprocmask-tests: skip test if pid is unexpectedly large
36555         * tests/test-sigprocmask.c (main): Add range check.
36557         git-version-gen: avoid test -z portability glitch
36558         * build-aux/git-version-gen: Prefer portable test spelling, since
36559         git-version-gen is run on more than just developer machines.
36561 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
36563         git-version-gen: add --fallback option to use if git is not present
36564         * build-aux/git-version-gen: Add support for the new option --fallback,
36565         which comes into play when there is no $tarball_version_file and
36566         git is not working.
36567         (scriptversion): Update.
36569         maint.mk: handle missing git with more grace
36570         * top/maint.mk (no-submodule-changes, public-submodule-commit):
36571         Quietly proceed if git is not present.
36573 2012-12-31  Eric Blake  <eblake@redhat.com>
36575         dup2: work around cygwin bug
36576         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
36577         * lib/dup2.c (rpl_dup2): Work around it.
36578         * doc/posix-functions/dup2.texi (dup2): Document it.
36580 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
36582         regex: remove unnecessary dependency on localcharset.h
36583         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
36584         hasn't been needed for years.
36585         * modules/regex (Depends-on): Remove localcharset.
36587         regex: revert single-byte change
36588         * lib/regexec.c (check_node_accept_bytes): Revert previous change
36589         to this function.  This was alredy fixed in a different way, at
36590         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
36591         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
36592         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
36594         regex: simplify based on Gawk version
36595         * lib/regex_internal.c (re_dfa_add_node): Simplify.
36596         Reported by Aharon Robbins in
36597         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
36599 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
36601         regex: check that pattern char is single-byte
36602         Reported by Aharon Robbins in
36603         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
36604         * lib/regexec.c (check_node_accept_bytes):
36605         Return 0 if the pattern string has a multibyte character here.
36607         regex: implement rational ranges
36608         Reported by Aharon Robbins in
36609         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
36610         * lib/regcomp.c (build_range_exp) [!_LIBC]:
36611         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
36612         Implement rational ranges.
36614         regex: avoid redefining __wctype
36615         Reported by Aharon Robbins in
36616         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
36617         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
36618         #undef before defining.
36620         regex: port to hosts where malloc (0) == NULL
36621         Reported by Aharon Robbins in
36622         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
36623         * lib/regex_internal.c (re_node_set_alloc):
36624         Don't assume that malloc (0) yields nonnull.
36625         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
36626         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
36627         * modules/regex (Files): Add m4/eealloc.m4.
36629         regex: port to C89
36630         Reported by Aharon Robbins in
36631         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
36632         * lib/regcomp.c (init_word_char): Declaration before statement.
36634         regex: merge glibc changes
36635         Also, copy the license wording from glibc.  This simplifies
36636         merging changes.  gnulib-tool will change the wording to GPL as
36637         appropriate, when importing it to other packages.  The only
36638         glibc change made since the last merge, which needs merging, is:
36639         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
36640         * lib/regex_internal.h (gettext): Remove use of INTUSE.
36642         * users.txt: Add Emacs.
36644         doc: omit mention of version when not needed
36645         * doc/gnulib-intro.texi (Portability and Application Code):
36646         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
36647         Don't mention particular dates or versions when not necessary, so
36648         that the documentation won't go out of date so quickly.
36650         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
36652 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
36654         bootstrap: pass --force to autoreconf.
36655         * build-aux/bootstrap (AUTORECONFFLAGS): New.
36656         Add "--force" so that Automake's ylwrap and other such tools
36657         be updated at each bootstrap invocation.
36658         Use it.
36660 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
36662         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
36663         The earlier patch forgot to update one of the #if conditions, causing
36664         a problem on Debian testing i386 reported by Mats Erik Andersson
36665         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00124.html>.
36666         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
36667         (__argp_fmtstream_puts, argp_fmtstream_puts)
36668         (__argp_fmtstream_write, argp_fmtstream_write)
36669         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
36671         * doc/gnulib-readme.texi: Minor fixups.
36672         (Portability guidelines): Modernize URLs.  Remove some repetition.
36673         (Indent with spaces not TABs): Reword to avoid too-long lines.
36674         Remove some '@ifset standalone' stuff that isn't used.
36676         * doc/gnulib-readme.texi (Portability guidelines):
36677         ctype.h, not ctime.h.
36679         Correct name of POSIX.1-2001.
36680         * doc/posix-functions/fgetc.texi (fgetc):
36681         * doc/posix-functions/fgets.texi (fgets):
36682         * doc/posix-functions/fread.texi (fread):
36683         * doc/posix-functions/fscanf.texi (fscanf):
36684         * doc/posix-functions/getc.texi (getc):
36685         * doc/posix-functions/getchar.texi (getchar):
36686         * doc/posix-functions/scanf.texi (scanf):
36687         POSIX.1-2001, not POSIX-2001.
36689         doc: move README into manual
36690         * README: Move contents to new file doc/gnulib-readme.texi.
36691         Replace with a one-line summary.
36692         * doc/gnulib.texi (Brief Overview): New section,
36693         with old intro preface.  Include gnulib-readme.texi for contents.
36694         (Philosophy): Rename from "Introduction", since this
36695         section no longer introduces the rest.  Write a new preface.
36696         * doc/gnulib-readme.texi: New file, with the old contents of
36697         README texinfo-ized.  This way, the README info appears
36698         in the online and printed manual.
36700 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
36702         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
36703         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
36704         c_vasprintf() prototype.
36706 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
36708         c-vasprintf: Fix "empty declaration" warning reported by GCC.
36709         * lib/c-vasprintf.h: Remove stray semicolon.
36711 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
36713         gettext: avoid obsolete macro AM_PROG_MKDIR_P
36714         It is obsolete and is planned to be removed from Automake 1.14; see
36715         <http://lists.gnu.org/r/automake/2012-12/msg00029.html>.
36716         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
36717         (installdirs-data, installdirs-data-yes):
36718         Use $(MKDIR_P), not $(mkdir_p).
36719         * m4/intl.m4 (AM_INTL_SUBDIR):
36720         * m4/po.m4 (AM_PO_SUBDIRS):
36721         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
36723 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
36725         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
36726         On this platform, we are not optimizing but we are using
36727         the substitute for extern inlines, so compile as if
36728         C99-style extern inline, or a substitute, is available.
36729         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
36730         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
36731         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
36732         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
36733         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
36734         Declare as ARGP_FS_EI, not as extern.
36735         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
36736         (__option_is_short, _option_is_end, __option_is_end)
36737         [!_LIBC && __USE_EXTERN_INLINES]:
36738         Declare as ARGP_EI, not as extern.
36740 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
36742         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
36743         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
36744         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
36745         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
36746         ...), as the latter is fatal with older Autoconfs.
36747         Problem reported and fix suggested by Eric Blake in thread starting at
36748         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00097.html>.
36750 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
36752         AC_PROG_MKDIR_P: don't workaround if not buggy
36753         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
36754         Define only for Autoconf versions before 2.62.
36755         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
36756         undocumented m4_PACKAGE_VERSION, for consistency with the
36757         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
36758         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
36759         was introduced in 2.62.
36761 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
36763         New 'c-*printf' modules for formatted output in C locale.
36765         New module 'c-vasnprintf'.
36766         * modules/c-vasnprintf: New file.
36767         * lib/c-vasnprintf.c: New file.
36768         * lib/c-vasnprintf.h: New file.
36770         New module 'c-snprintf'.
36771         * modules/c-snprintf: New file.
36772         * modules/c-snprintf-tests: New file.
36773         * lib/c-snprintf.c: New file.
36774         * lib/c-snprintf.h: New file.
36775         * tests/test-c-snprintf.c: New file.
36776         * tests/test-c-snprintf.sh: New file.
36778         New module 'c-vsnprintf'.
36779         * modules/c-vsnprintf: New file.
36780         * modules/c-vsnprintf-tests: New file.
36781         * lib/c-vsnprintf.c: New file.
36782         * lib/c-vsnprintf.h: New file.
36783         * tests/test-c-vsnprintf.c: New file.
36784         * tests/test-c-vsnprintf.sh: New file.
36786         New module 'c-vasprintf'.
36787         * modules/c-vasprintf: New file.
36788         * modules/c-vasprintf-tests: New file.
36789         * lib/c-asprintf.c: New file.
36790         * lib/c-vasprintf.c: New file.
36791         * lib/c-vasprintf.h: New file.
36792         * tests/test-c-vasprintf.c  +: New file.
36793         * tests/test-c-vasprintf.sh: New file.
36795         New module 'c-xvasprintf'.
36796         * modules/c-xvasprintf: New file.
36797         * modules/c-xvasprintf-tests: New file.
36798         * lib/c-xasprintf.c: New file.
36799         * lib/c-xvasprintf.c: New file.
36800         * lib/c-xvasprintf.h: New file.
36801         * tests/test-c-xvasprintf.c: New file.
36802         * tests/test-c-xvasprintf.sh: New file.
36804 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
36806         argp: better 'inline'
36807         Use extern-inline module to declare extern inline functions.
36808         This avoids some bogus warning diagnostics.  Problem discovered
36809         when modifying GNU tar to use the manywarnings module.
36810         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
36811         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
36812         Define based on extern-inline.
36813         * modules/argp (Depends-on): Add extern-inline.
36815 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
36817         filemode, sys_stat: Handle MPX files a la AIX.
36818         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
36819         * lib/sys_stat.in.h (S_ISMPX): New macro.
36820         * tests/test-sys_stat.c: Add tests for MPX files.
36822 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
36824         x-to-1: honor $PERL
36825         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
36826         a chance to use his preferred version of Perl.  This is typically
36827         required by Darwin users whose default /usr/bin/perl does not have all
36828         the libraries required by help2man, and who need to use their MacPorts
36829         installation of Perl instead.
36831 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
36833         gnu-web-doc-update: add all the new files, even in new directories
36834         See http://lists.gnu.org/r/bug-gnulib/2012-12/msg00057.html
36835         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
36836         Use it.
36837         (main): Don't use cvsutils to get the list of unknown files,
36838         just add all the existing files and directories.
36840 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
36842         gnu-web-doc-update: improve --help
36843         * build-aux/gnu-web-doc-update: Move comments into --help.
36845 2012-12-07  Eric Wong  <normalperson@yhbt.net>
36847         mountlist: recognize more "dummy" file systems
36848         * lib/mountlist.c (ME_DUMMY_0):
36849         Add these dummy FS names to the list:
36850         - "debugfs" virtual filesystem for kernel debugging
36851         - "devpts" PTY slave filesystem
36852         - "devtmpfs" device filesystem on top of tmpfs/ramfs
36853         - "fusectl" control filesystem for FUSE
36854         - "mqueue" enumerates POSIX message queues
36855         - "rpc_pipefs" kernel <-> userspace bridge for NFS
36856         - "sysfs" is for exporting kernel objects
36857         - "devfs" device filesystem for Linux 2.4 and FreeBSD
36859 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
36861         extern-inline: avoid incompatibility with Darwin Libc
36862         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
36863         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
36864         Problem reported by Akim Demaille in
36865         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html>.
36867 2012-12-11  Simon Josefsson  <simon@josefsson.org>
36869         gnupload: Work with GnuPG using gpg-agent (for smartcards).
36870         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
36871         let it handle password prompting.
36873 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
36875         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
36876         * lib/canonicalize.c (canonicalize_filename_mode):
36877         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
36878         fetching the current directory.  Don't overrun the beginning of
36879         rpath if there's no slashes after the MS-Windows drive letter.
36881 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
36883         maint.mk: avoid extra forks
36884         * top/maint.mk (_cfg_mk): The GNU make manual documents that
36885         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
36886         So use that instead of "$(shell test -f FILE && echo FILE)".
36888 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
36890         vasnprintf: fix ASCII_ONLY typo
36891         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
36892         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
36893         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
36894         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
36895         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00021.html>.
36897 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
36899         list, oset, xlist, xoset: fix extern inline issue with C99
36900         This was introduced by my recent changes for 'inline'.
36901         Problem reported for gettext by Daiki Ueno in
36902         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00000.html>.
36903         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
36904         (gl_list_nx_create, gl_list_size, gl_list_node_value)
36905         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
36906         (gl_list_previous_node, gl_list_get_at)
36907         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
36908         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
36909         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
36910         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
36911         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
36912         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
36913         (gl_list_iterator_free, gl_sortedlist_search)
36914         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
36915         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
36916         (gl_sortedlist_remove):
36917         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
36918         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
36919         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
36920         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
36921         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
36922         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
36923         (gl_list_add_at, gl_sortedlist_add):
36924         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
36925         Wrap these extern decls inside "#if 0", because they are implemented
36926         as inline functions, and extern inline is not what's wanted here.
36927         It would simplify these .h files to remove the extern decls entirely,
36928         although a downside would be less-clear separation between
36929         specification and implementation.
36931 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
36933         sys_stat: no 'static inline'
36934         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
36935         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
36937         extern-inline: no 'static inline'
36938         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
36939         Do not require AC_C_INLINE.
36940         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
36941         'static inline', for older compilers.
36943         snippet/warn-on-use: no 'static inline'
36944         * build-aux/snippet/warn-on-use.h:
36945         Remove unnecessary 'inline' in comment.
36947         rbtree-list, rbtreehash-list: no 'static inline'
36948         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
36949         * lib/gl_anytree_list2.h (node_at):
36950         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
36951         (gl_oset_first, add_nodes_to_buckets):
36952         Now static, not static inline.
36954         regex: no 'static inline'
36955         * lib/regex_internal.c (calc_state_hash):
36956         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
36957         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
36958         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
36959         Now static, not static inline.
36960         (inline) [__GNUC__ < 3 && _LIBC]:
36961         Remove macro; no longer needed.
36963         xvasprintf: no 'static inline'
36964         * lib/xvasprintf.c (xstrcat):
36965         Now static, not static inline.
36966         * m4/xvasprintf.m4 (gl_XVASPRINTF):
36967         Do not require AC_C_INLINE.
36969         parse-datetime, parse-duration: no 'static inline'
36970         * lib/parse-datetime.y (to_uchar):
36971         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
36972         (scale_n_add):
36973         Now static, not static inline.
36974         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
36975         * modules/parse-duration (configure.ac):
36976         Do not require AC_C_INLINE.
36978         getaddrinfo: no 'static inline'
36979         * lib/getaddrinfo.c (validate_family):
36980         Now static, not static inline.
36981         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
36982         Do not require AC_C_INLINE.
36984         ftruncate, fts, lstat, openat, raise: no 'static inline'
36985         * lib/ftruncate.c (chsize_nothrow):
36986         * lib/fts.c (opendirat, diropen):
36987         * lib/lstat.c (orig_lstat):
36988         * lib/openat.c (orig_openat):
36989         * lib/raise.c (raise_nothrow):
36990         Now static, not static inline.
36991         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
36992         * m4/fts.m4 (gl_FUNC_FTS_CORE):
36993         * m4/lstat.m4 (gl_PREREQ_LSTAT):
36994         * m4/openat.m4 (gl_PREREQ_OPENAT):
36995         * m4/raise.m4 (gl_PREREQ_RAISE):
36996         Do not require AC_C_INLINE.
36998         fflush, stat: no 'static inline'
36999         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
37000         (clear_ungetc_buffer, disable_seek_optimization)
37001         (restore_seek_optimization, update_fpos_cache):
37002         * lib/stat.c (orig_stat):
37003         Now static, not static inline.
37004         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
37005         (update_fpos_cache):
37006         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
37007         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
37008         * m4/stat.m4 (gl_PREREQ_STAT):
37009         Do not require AC_C_INLINE.
37011         error, filevercmp: no 'static inline'
37012         * lib/error.c (is_open, flush_stdout):
37013         * lib/filevercmp.c (order):
37014         Now static, not static inline.
37015         * m4/error.m4 (gl_PREREQ_ERROR):
37016         * modules/filevercmp (configure.ac):
37017         Do not require AC_C_INLINE.
37019         dup, execute, fatal-signal, etc.: no 'static inline'
37020         * lib/dup.c (dup_nothrow):
37021         * lib/execute.c (nonintr_close, nonintr_open):
37022         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
37023         * lib/fopen.c (orig_fopen):
37024         * lib/freadseek.c (freadptrinc):
37025         * lib/freopen.c (orig_freopen):
37026         * lib/fstat.c (orig_fstat, fstat_nothrow):
37027         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
37028         (get_rusage_as_via_iterator):
37029         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
37030         * lib/getdtablesize.c (_setmaxstdio_nothrow):
37031         * lib/isatty.c (_isatty_nothrow):
37032         * lib/open.c (orig_open):
37033         * lib/read.c (read_nothrow):
37034         * lib/sigprocmask.c (signal_nothrow):
37035         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
37036         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
37037         * lib/wait-process.c (unregister_slave_subprocess):
37038         * lib/write.c (write_nothrow):
37039         Now static, not static inline.
37040         * lib/spawn-pipe.c (nonintr_open): Define only if
37041         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
37042         * m4/dup.m4 (gl_PREREQ_DUP):
37043         * m4/execute.m4 (gl_EXECUTE):
37044         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
37045         * m4/fopen.m4 (gl_PREREQ_FOPEN):
37046         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
37047         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
37048         * m4/fstat.m4 (gl_PREREQ_FSTAT):
37049         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
37050         * m4/isatty.m4 (gl_PREREQ_ISATTY):
37051         * m4/open.m4 (gl_PREREQ_OPEN):
37052         * m4/read.m4 (gl_PREREQ_READ):
37053         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
37054         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
37055         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
37056         * m4/wait-process.m4 (gl_WAIT_PROCESS):
37057         * m4/write.m4 (gl_PREREQ_WRITE):
37058         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
37059         Do not require AC_C_INLINE.
37061         c-strtod, memcoll, readutmp: no 'static inline'
37062         * lib/c-strtod.c (c_locale):
37063         * lib/memcoll.c (strcoll_loop):
37064         * lib/readutmp.c (desirable_utmp_entry):
37065         Now static, not static inline.
37066         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
37067         * m4/memcoll.m4 (gl_MEMCOLL):
37068         * m4/readutmp.m4 (gl_READUTMP):
37069         Do not require AC_C_INLINE.
37071         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
37072         * lib/arctwo.c (to_uchar):
37073         * lib/md4.c (set_uint32):
37074         * lib/md5.c (set_uint32):
37075         * lib/sha1.c (set_uint32):
37076         * lib/sha256.c (set_uint32):
37077         * lib/sha512.c (set_uint64):
37078         Now static, not static inline.  This is a bit simpler, and doesn't
37079         affect performance with GCC and default optimization.
37080         * m4/arctwo.m4 (gl_ARCTWO):
37081         * m4/md4.m4 (gl_MD4):
37082         * m4/md5.m4 (gl_MD5):
37083         * m4/sha1.m4 (gl_SHA1):
37084         * m4/sha256.m4 (gl_SHA256):
37085         * m4/sha512.m4 (gl_SHA512):
37086         Do not require AC_C_INLINE.
37088         cond, lock, thread: better 'inline'
37089         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
37090         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
37091         New macros.  Use them instead of static inline, for header functions.
37092         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
37093         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
37094         * lib/glthread/lock.c (gl_waitqueue_init)
37095         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
37096         * lib/glthread/thread.c (get_current_thread_handle):
37097         Change 'static inline' to 'inline'.
37098         * lib/glthread/cond.h, lib/glthread/thread.h:
37099         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37100         * m4/cond.m4 (gl_COND):
37101         * m4/lock.m4 (gl_PREREQ_LOCK):
37102         * m4/thread.m4 (gl_THREAD):
37103         Do not require AC_C_INLINE.
37104         * modules/cond, modules/thread (Depends-on): Add extern-inline.
37106         chdir-long, cycle-check, savewd: better 'inline'
37107         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
37108         (find_non_slash):
37109         * lib/cycle-check.c (is_zero_or_power_of_two):
37110         * lib/savewd.c (savewd_delegating):
37111         Change 'static inline' to 'inline'.
37112         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
37113         Replace all remaining uses of 'static inline' with it.
37114         * lib/savewd.h:
37115         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37116         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
37117         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
37118         * m4/savewd.m4 (gl_SAVEWD):
37119         Do not require AC_C_INLINE.
37120         * modules/savewd (Depends-on): Add extern-inline.
37122         base32, base64: no need for 'inline'
37123         * lib/base32.c (to_uchar, get_8, decode_8):
37124         * lib/base64.c (to_uchar, get_4, decode_4):
37125         Change 'static inline' to 'inline'.
37126         * m4/base32.m4 (gl_PREREQ_BASE32):
37127         * m4/base64.m4 (gl_PREREQ_BASE64):
37128         Do not require AC_C_INLINE.
37130         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
37131         * lib/gl_array_oset.c (gl_array_nx_add_at):
37132         (gl_array_remove_at):
37133         * lib/gl_linkedhash_list.c (hash_resize_after_add)
37134         (add_to_bucket, remove_from_bucket):
37135         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
37136         Change 'static inline' to 'static', as it's simpler to omit
37137         'inline' unless there's a significant performance advantage.
37139         list, oset, xlist, xoset, xsublist: simplify via extern inline
37140         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
37141         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
37142         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
37143         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
37144         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
37145         New macro.  Replace all uses of 'static inline' with it.
37146         [HAVE_INLINE]: Implement functions as *_INLINE functions,
37147         instead of as macros FOO that are defined to static inline
37148         functions FOO_inline.
37149         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
37150         * lib/gl_xsublist.c:
37151         Reimplement from scratch, by defining the corresponding *_INLINE
37152         macro and including the corresponding .h file.  This is simpler.
37153         * modules/list, modules/oset, modules/xlist, modules/xoset:
37154         (Files): Remove m4/gl_list.m4.
37155         (configure.ac): Remove gl_LIST.
37156         * m4/gl_list.m4: Remove.
37157         * modules/list, modules/oset, modules/xlist, modules/xoset:
37158         * modules/xsublist:
37159         (Depends-on): Depend on extern-inline, not inline.
37161         xalloc: better 'inline'
37162         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
37163         New macro.  Replace all uses of 'static inline' with it.
37164         (static_inline): Remove.
37165         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
37166         Let 'extern inline' do the work automatically, instead of doing
37167         it by hand.
37168         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
37169         Remove.  All uses removed.
37170         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
37172         gethrxtime: better 'inline'
37173         * lib/xtime.c: New file.
37174         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
37175         * lib/xtime.h (XTIME_INCLUDE):
37176         New macros.  Replace all uses of 'static inline' with them.
37177         * lib/gethrxtime.c (gethrxtime): Define only if
37178         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
37179         this source file is now always compiled, because of the extern inline.
37180         * lib/gethrxtime.h, lib/xtime.h:
37181         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37182         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
37183         if gethrtime works, as they're not needed in that case.
37184         (gl_XTIME): Do not require AC_C_INLINE.
37185         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
37186         compiled now.  Move the check into gl_GETHRXTIME.
37187         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
37188         (Depends-on): Add extern-inline.
37189         (configure.ac): gethrxtime is always compiled now.
37190         (lib_SOURCES): Add gethrxtime.c.
37192         wctype-h: better 'inline'
37193         * lib/wctype-h.c: New file.
37194         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
37195         New macro.  Replace all uses of 'static inline' with it.
37196         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37197         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
37198         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
37199         (Depends-on): Add extern-inline.
37201         unistd: better 'inline'
37202         * lib/unistd.c: New file.
37203         * lib/unistd.in.h (_GL_UNISTD_INLINE):
37204         New macro.  Replace all uses of 'static inline' with it.
37205         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37206         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
37207         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
37208         (Depends-on): Add extern-inline.
37210         sys_socket: better 'inline'
37211         * lib/sys_socket.c: New file.
37212         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
37213         New macro.  Replace all uses of 'static inline' with it.
37214         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37215         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
37216         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
37217         (Depends-on): Add extern-inline.
37219         stdio: better 'inline'
37220         * lib/stdio.c: New file.
37221         * lib/stdio.in.h (_GL_STDIO_INLINE):
37222         New macro.  Replace all uses of 'static inline' with it.
37223         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37224         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
37225         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
37226         (Depends-on): Add extern-inline.
37228         sigaction: better 'inline'
37229         * lib/sig-handler.c: New file.
37230         * lib/sig-handler.h (SIG_HANDLER_INLINE):
37231         New macro.  Replace all uses of 'static inline' with it.
37232         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37233         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
37234         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
37235         (Depends-on): Add extern-inline.
37237         selinux-h: better 'inline'
37238         * lib/se-context.c, lib/se-selinux.c: New files.
37239         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
37240         * lib/se-context.in.h (SE_CONTEXT_INLINE):
37241         New macro.  Replace all uses of 'static inline' with it.
37242         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37243         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
37244         New macro.  Replace all uses of 'static inline' with it.
37245         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37246         * modules/selinux-h (Files, lib_SOURCES):
37247         Add lib/se-context.c, lib/se-selinux.c.
37248         (Depends-on): Add extern-inline.
37249         (configure.ac): Do not require AC_C_INLINE.
37251         pthread: better 'inline'
37252         * lib/pthread.c: New file.
37253         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
37254         New macro.  Replace all uses of 'static inline' with it.
37255         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37256         * m4/pthread.m4 (gl_PTHREAD_CHECK):
37257         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
37258         * modules/pthread (Files): Add lib/pthread.c.
37259         (Depends-on): Add extern-inline.
37261         math: better 'inline'
37262         * lib/math.c: New file.
37263         * lib/math.in.h (_GL_MATH_INLINE):
37264         New macro.  Replace all uses of 'static inline' with it.
37265         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37266         * m4/math_h.m4 (gl_MATH_H):
37267         Do not require AC_C_INLINE.
37268         * modules/math (Files, lib_SOURCES):
37269         Add lib/math.c.
37270         (Depends-on): Add extern-inline.
37272         count-one-bits: better 'inline'
37273         * lib/count-one-bits.c: New file.
37274         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
37275         New macro.  Replace all uses of 'static inline' with it.
37276         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37277         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
37278         Do not require AC_C_INLINE.
37279         * modules/count-one-bits (Files, lib_SOURCES):
37280         Add lib/count-one-bits.c.
37281         (Depends-on): Add extern-inline.
37283         count-leading-zeros: better 'inline'
37284         * lib/count-leading-zeros.c: New file.
37285         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
37286         New macro.  Replace all uses of 'static inline' with it.
37287         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37288         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
37289         Do not require AC_C_INLINE.
37290         * modules/count-leading-zeros (Files, lib_SOURCES):
37291         Add lib/count-leading-zeros.c.
37292         (Depends-on): Add extern-inline.
37294         bitrotate: better 'inline'
37295         * lib/bitrotate.c: New file.
37296         * lib/bitrotate.h (BITROTATE_INLINE):
37297         New macros.
37298         Replace all uses of 'static inline' with them.
37299         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37300         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
37301         (Depends-on): Add extern-inline.
37302         (configure.ac): Do not require AC_C_INLINE.
37304 2012-11-20  Theophile Ranquet  <ranquet@lrde.epita.fr>
37306         maint.mk: avoid gratuitous failure
37307         Reported by Stefano Lattarini in
37308         <http://lists.gnu.org/r/bug-bison/2012-11/msg00022.html>
37309         * top/maint.mk (public-submodule-commit): Quote more safely.
37311 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
37313         canonicalize, canonicalize-lgpl: support MS-Windows file names
37314         See <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00074.html>
37315         for test cases, which it'd be nice to add at some point.
37316         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
37317         * lib/canonicalize.c (canonicalize_filename_mode):
37318         * lib/canonicalize-lgpl.c (__realpath):
37319         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
37320         slash is at the beginning of the file name.  Use ISSLASH, instead
37321         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
37322         the first character with '/'.  Test for
37323         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
37324         with a drive letter.
37325         * lib/canonicalize.c (SLASHES): New macro.
37326         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
37328 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
37330         fts: introduce FTS_VERBATIM
37331         * lib/fts_.h (FTS_VERBATIM): New bit flag.
37332         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
37333         * lib/fts.c (fts_open): Honor it.
37335 2012-11-09  Pádraig Brady  <P@draigBrady.com>
37337         getlogin-tests: allow errno == ENXIO
37338         * tests/test-getlogin.c (main): Skip tests if getlogin fails
37339         with errno == ENXIO (No controlling tty).
37340         getlogin_r-tests: Likewise. Also allow errno == ENOENT
37341         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
37342         with errno == ENOENT.  This was reported to happen in various
37343         situations on GNU/Linux.
37345 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
37347         getlogin-tests: allow errno == ENOENT
37348         * tests/test-getlogin.c (main): Skip tests if getlogin fails
37349         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
37350         when running a test in an Emacs shell buffer.
37352 2012-11-08  Jim Meyering  <jim@meyering.net>
37354         tests/nap.h: avoid warning about unused variable
37355         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
37357         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
37358         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
37359         white space before each of the special-cased file names, to avoid
37360         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
37361         in http://bugs.gnu.org/12830.
37363 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
37365         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
37366         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
37367         fails with errno == EBADF when fd is opened with O_PATH.
37368         Reported by Jim Meyering in
37369         <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00026.html>.
37370         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
37371         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
37373 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
37375         test-utimens: speed up by taking shorter naps
37376         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
37377         New functions.
37378         (nap): Use them, to do a better job of guessing the delay.
37379         On Fedora 17 with ext4 atop md atop hard disks, this made
37380         test-utimens run 10x faster, because the test napped for
37381         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
37382         <http://bugs.gnu.org/12820#11>.
37384 2012-11-07  Jim Meyering  <jim@meyering.net>
37386         mountlist.c: fix a compilation failure
37387         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
37388         I introduced while transforming commit v0.0-7683-g613bcb6
37390 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
37392         errno: port to LynxOS 178 2.2.2
37393         Problem reported by Joel Brobecker in
37394         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00088.html>.
37395         * doc/posix-headers/errno.texi (errno.h): Document this.
37396         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
37397         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
37398         Supply a string for EILSEQ.
37399         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
37401 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
37403         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
37404         Linux kernel 2.6.39 introduced O_PATH (see
37405         <http://lwn.net/Articles/433854/>) and this is a better fallback
37406         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
37407         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
37408         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
37409         * lib/fcntl.in.h (O_ACCMODE):
37410         * tests/test-fcntl-h.c (main):
37411         Do not reject O_ACCMODE merely because it has more than the
37412         minimal number of bits, as POSIX allows extensions here.
37414 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
37416         mountlist: do not classify a bind-mounted dir entry as "dummy"
37417         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
37418         the "none"-testing clause.
37419         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
37420         exception for bind-mounted directories.
37422 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
37424         quote: provide a means to escape strings with nul characters
37425         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
37426         (quote, quote_n): Rename formal arguments for consistency with
37427         quotearg.
37429 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
37431         test-raise: don't assume 199 is an invalid signal
37432         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
37434         sh-quote-tests: port to Solaris 9
37435         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
37436         Problem reported by Dagobert Michelsen in
37437         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00114.html>.
37439 2012-10-28  Jim Meyering  <jim@meyering.net>
37441         maint.mk: rename a new configurable variable
37442         * top/maint.mk (_gl_translatable_string_re): Rename from
37443         translation-markers: _gl_ prefix to insulate from user Makefile code,
37444         and the _re suffix to inform that it's a regular expression.
37446 2012-10-26  Eric Blake  <eblake@redhat.com>
37448         maint.mk: let packages tweak sc_po_check pattern
37449         * top/maint.mk (sc_po_check): Add translation-markers, to allow
37450         finding files with other translation markers.
37452 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
37454         euidaccess: speed up 'configure' on GNU hosts
37455         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
37456         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
37457         it's needed only in this case.  Use AC_CHECK_DECLS, not
37458         AC_CHECK_DECLS_ONCE.
37459         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
37460         or AC_REQUIRE for AC_FUNC_GETGROUPS.
37462         * lib/regexec.c (re_search_internal): Fix grammar in comment.
37464 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
37466         fchmodat, fchownat, fstatat: port to non-inlining compilers
37467         Problem reported for FreeBSD 9 by Jim Meyering in
37468         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00070.html>.
37469         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
37470         New files, which define FCHMODAT_INLINE etc.
37471         * lib/fchmodat.c (FCHMODAT_INLINE):
37472         * lib/fchownat.c (FCHOWNAT_INLINE):
37473         * lib/fstatat.c (FSTATAT_INLINE):
37474         Remove, as chmodat.c etc. now do this.
37475         * modules/fchmodat (Files): Add lib/chmodat.c.
37476         * modules/fchownat (Files): Add lib/chownat.c.
37477         * modules/fstatat (Files): Add lib/statat.c.
37479 2012-10-15  Jim Meyering  <jim@meyering.net>
37481         fchmodat.c, fchownat.c: compile-impeding typos
37482         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
37483         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
37484         Introduced in commit v0.0-7636-gd202279.
37486 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
37488         fcntl-h: support GNU flags like O_IGNORE_CTTY
37489         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
37490         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
37491         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
37492         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
37493         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
37494         Define to 0 if not already defined.
37495         * tests/test-fcntl-h.c: Test these new flags.
37497 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
37499         faccessat, etc.: support AT_FDCWD-only use
37500         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
37501         this function only if its first argument is AT_FDCWD.
37502         Emacs wants faccessat for AT_EACCESS but not for any first-arg
37503         values other than AT_FDCWD, so it doesn't want all the openat
37504         machinery with fchdir etc.
37505         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
37506         * modules/fstatat, modules/mkdirat, modules/openat (Files):
37507         * modules/unlinkat (Files):
37508         Remove lib/openat-priv.h, as at-internal supplies this file.
37509         Removing this file here allows us to support programs like Emacs
37510         that avoid at-internal.
37512         faccessat: speed up 'configure' on mainstream hosts
37513         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
37514         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
37515         since it's only on unusual platforms that we need to check for
37516         'access', and it's better not to slow 'configure' down on all
37517         platforms.
37519         faccessat: port to Solaris 10
37520         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
37521         Needed on Solaris 10, which doesn't have AT_EACCESS,
37522         so we need the Gnulib fcntl.h, which defines it.
37524 2012-10-14  Pádraig Brady  <P@draigBrady.com>
37525         canonicalize: fix C89 compilation
37526         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
37527         declarations so C89 is supported.  Also remove the comment
37528         referencing memorty allocation as the suggested feature could
37529         not be implemented as suggested.
37530         Reported by Michael Goffioul.
37532 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
37534         group-member: omit unnecessary dependencies
37535         This is for Emacs, which has its own allocator and where we
37536         don't want to use xalloc.
37537         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
37538         since we no longer use xmalloc.  Do not include stdbool.h, since
37539         the changes below happen to remove the only use of bool.
37540         (GROUPBUF_SIZE): New constant.
37541         (struct group_info): Remove n_groups member.  Add groupbuf member.
37542         This lets us get the groups without using malloc, usually.
37543         (free_group_info, get_group_info): Adjust to this.
37544         (get_group_info): Return the number of groups found, or -1 on error.
37545         Use plain malloc not xmalloc, and treat its failure as if there
37546         are no groups, as the user already loses in case of error.
37547         (group_member): Simplify, based on changes to get_group_info.
37548         * modules/group-member (Depends-on): Remove dependencies on
37549         xalloc and stdbool.  Add dependency on xalloc-oversized.
37551 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
37553         gethrxtime: port to C++
37554         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
37556 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
37558         ptsname: fix macro-name typo
37559         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
37561 2012-10-03  Simon Josefsson  <simon@josefsson.org>
37563         inttostr: Relax license.
37564         * modules/inttostr (License): Change from LGPL to LGPLv2+.
37566 2012-10-03  Eric Blake  <eblake@redhat.com>
37568         ptsname_r: support ptys returned by FreeBSD posix_openpt
37569         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
37570         lives in /dev/pts/.
37572 2012-10-02  Eric Blake  <eblake@redhat.com>
37574         pselect: reject invalid file descriptors
37575         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
37576         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
37577         * modules/pselect (Depends-on): Add dup2.
37578         * doc/posix-functions/pselect.texi (pselect): Document this.
37580         select: reject invalid file descriptors
37581         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
37582         * lib/select.c (rpl_select) [!win32]: Work around it.
37583         * modules/select (Depends-on): Add dup2.
37584         * doc/posix-functions/select.texi (select): Document this.
37586         select: enhance test
37587         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
37588         New functions.
37589         (test_function): Enhance test.
37590         (do_select_bad_fd): Avoid any stale errno values.
37592         ptsname: reject invalid file descriptors
37593         http://www.austingroupbugs.net/view.php?id=503
37594         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
37595         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
37596         * modules/stdlib (Makefile.am): Replace witness.
37597         * lib/stdlib.in.h (ptsname): Allow for replacement.
37598         * modules/ptsname (configure.ac): Trigger replacement.
37599         * doc/posix-functions/ptsname.texi (ptsname): Document this.
37601 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
37603         hash-pjw-bare: new module
37604         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
37605         * lib/hash-pjw-bare.h: Likewise.
37606         * modules/hash-pjw-bare: New file.
37607         * MODULES.html.sh (Misc): Add it.
37609 2012-10-02  Eric Blake  <eblake@redhat.com>
37611         manywarnings: cater to more gcc infelicities
37612         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
37613         -Wuninitialized without -O.
37615 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
37617         select, poll tests: Make setsockopt invocation effective.
37618         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
37619         the bind() call.
37620         * tests/test-select.h (open_server_socket): Likewise.
37622 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
37624         sockets, sys_stat: restore AC_C_INLINE
37625         This undoes the 2012-09-22 patch.
37626         * m4/sockets.m4 (gl_SOCKETS):
37627         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
37628         Restore AC_C_INLINE, since MSVC requires __inline or _inline
37629         and does not support plain 'inline'.  Reported by Bruno Haible in
37630         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00183.html>.
37632 2012-09-30  Bruno Haible  <bruno@clisp.org>
37634         localeconv tests: Avoid test failure on OpenIndiana.
37635         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
37636         skip the 'grouping' and 'mon_grouping' tests.
37637         Reported by Jim Meyering.
37639 2012-09-30  Bruno Haible  <bruno@clisp.org>
37641         havelib: Follow libtool developments.
37642         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
37643         Suggested by Simon Josefsson.
37645 2012-09-29  Jim Meyering  <meyering@redhat.com>
37647         fstatat.c: fix a compile-impeding typo
37648         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
37649         Introduced in commit v0.0-7636-gd202279.
37650         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
37652 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
37654         extern-inline: provide a -Wundef safe config.h
37655         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
37656         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
37657         to produce a -Wundef warning free config.h.
37659 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
37661         hash-pjw: relax license to LGPLv2+
37662         * modules/hash-pjw (License): Relax, with consent of author.
37664 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
37666         maint.mk: fix strict vs. lazy variable issues with RELEASE
37667         * top/maint.mk (_equal): New function.
37668         (member_check): Strip the result to avoid spurious spaces.
37669         (url_dir_list): Do not use ifeq, which is strict, as it will
37670         require RELEASE_TYPE to be defined.
37671         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
37672         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
37673         (announcement_Cc_alpha,announcement_mail_headers_alpha)
37674         (announcement_Cc_beta,announcement_mail_headers_beta)
37675         (announcement_Cc_stable,announcement_mail_headers_stable): these.
37676         (release): Do not depend on $(release-type), as it forces its
37677         evaluation.  Bounce to it.
37679 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
37681         maint.mk: formatting changes
37682         * top/maint.mk: Indent bodies of if's.
37684 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
37686         maint.mk: factor the validation of RELEASE_TYPE
37687         With help from Jim Meyering.
37688         http://lists.gnu.org/r/bug-gnulib/2012-09/msg00132.html
37689         * top/maint.mk (_empty, _sp): Move their definition earlier.
37690         (member-check, release-type): New.
37691         Use the latter instead of $(RELEASE_TYPE).
37692         Remove now useless local checks.
37694 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
37696         maint.mk: provide "make upload" to ease uploading
37697         See
37698         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00028.html>.
37699         Do not depend simply on the current $(VERSION), as there may have been
37700         new commits since the tarball generation.  Rather, rely on $(RELEASE),
37701         as "make release-commit" already does.
37703         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
37704         "make TYPE".
37706         * top/maint.mk (upload_command, upload, release): New.
37707         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
37708         (VERSION): first word of $(RELEASE) is always right.
37709         (emit_upload_commands): Adjust.
37710         * top/README-release: Update.
37712 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
37714         maint.mk: silent rules
37715         With help from Stefano Lattarini.
37716         * top/maint.mk (writable-files): Use $(AM_V_GEN).
37717         (announcement): Use $(AM_V_at).
37719 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
37721         localename: port gl_locale_name_thread_unsafe to FreeBSD
37722         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
37723         and use the simpler FreeBSD implementation on Mac OS X as well.
37724         Original idea suggested by Ed Maste in
37725         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00094.html>.
37727 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
37729         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
37730         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
37731         * lib/mbuiter.c, lib/xsize.c: New files.
37732         * lib/binary-io.h (BINARY_IO_INLINE):
37733         * lib/eealloc.h (EEALLOC_INLINE):
37734         * lib/mbfile.h (MBFILE_INLINE):
37735         * lib/mbiter.h (MBITER_INLINE):
37736         * lib/mbuiter.h (MBUITER_INLINE):
37737         * lib/xsize.h (XSIZE_INLINE):
37738         New macros.
37739         Replace all uses of 'static inline' with them.
37740         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37741         * m4/eealloc.m4 (gl_EEALLOC):
37742         * m4/mbfile.m4 (gl_MBFILE):
37743         * m4/mbiter.m4 (gl_MBITER):
37744         * m4/xsize.m4 (gl_XSIZE):
37745         Do not require AC_C_INLINE.
37746         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
37747         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
37748         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
37749         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
37750         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
37751         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
37752         * modules/binary-io, modules/eealloc, modules/mbfile:
37753         * modules/mbiter, modules/mbuiter:
37754         (Depends-on): Add extern-inline.
37756         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
37757         * lib/pipe-filter-aux.c: New file.
37758         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
37759         Replace all uses of 'static inline' with it.
37760         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37761         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
37762         (filter_retcode): No real need for inline here.
37763         * modules/pipe-filter-gi, modules/pipe-filter-ii:
37764         (Files): Add lib/pipe-filter-aux.c.
37765         (Depends-on): Add extern-inline.
37766         (configure.ac): Do not require AC_C_INLINE.
37767         (lib_SOURCES): Add pipe-filter-aux.c.
37769         fdutimensat: omit unnecessary AC_C_INLINE
37770         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
37772         fchmodat, fchownat, fstatat: use extern-inline
37773         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
37774         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
37775         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
37776         New macros.
37777         * lib/openat.h:
37778         Replace all uses of 'static inline' with them.
37779         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37780         * modules/fchmodat, modules/fchownat, modules/fstatat:
37781         * modules/openat-h:
37782         (Depends-on):
37783         Add extern-inline.
37784         (configure.ac): Remove AC_C_INLINE.
37786         acl, mbchar, priv-set: use extern-inline
37787         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
37788         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
37789         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
37790         New macros.
37791         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
37792         Replace all uses of 'static inline' with it.
37793         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37794         * m4/acl.m4 (gl_FUNC_ACL):
37795         * m4/mbchar.m4 (gl_MBCHAR):
37796         * m4/priv-set.m4 (gl_PRIV_SET):
37797         Remove AC_C_INLINE, since 'inline' is no longer used directly.
37798         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
37799         Add extern-inline.
37801         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
37802         * m4/sockets.m4 (gl_SOCKETS):
37803         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
37804         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
37805         environments where it's already guaranteed to work, so we needn't
37806         check for it at 'configure'-time.
37808         tls-tests: omit unnecessary 'inline'
37809         * tests/test-tls.c (perhaps_yield): No longer inline.
37810         Simplicity and portability trump efficiency in test cases.
37812         utimens-tests: avoid unnecessary 'inline'
37813         * modules/fdutimensat-tests (configure.ac):
37814         * modules/futimens-tests (configure.ac):
37815         * modules/utimens-tests (configure.ac):
37816         * modules/utimensat-tests (configure.ac):
37817         Remove AC_C_INLINE.
37818         * tests/test-utimens-common.h (ctime_compare):
37819         No longer inline.  Simplicity and portability trump efficiency here.
37821         misc: don't limit commentary to inline functions
37822         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
37823         * lib/xalloc-oversized.h, lib/xsize.h:
37824         Contrast macros to functions in general, not just to inline functions,
37825         when the commentary does not apply only to inline functions.
37827 2012-09-20  Jim Meyering  <meyering@redhat.com>
37829         non-recursive-gnulib-prefix-hack: new module
37830         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
37831         the file that originated in Bison.
37832         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
37833         largely copied from a snippet that resided in bison's configure.ac.
37834         * modules/non-recursive-gnulib-prefix-hack: New file.
37835         * MODULES.html.sh (Support for maintaining and releasing projects):
37836         Add it.
37838 2012-09-18  Jim Meyering  <meyering@redhat.com>
37840         maint.mk: generalize _gl_tight_scope for non-recursive make
37841         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
37842         that *.h would describe additional .h files in the directory
37843         specified by $(_gl_TS_dir).  I.e., add this...
37844         (_gl_TS_other_headers): New variable.
37846         maint.mk: exempt trailing blanks found in "binary" files
37847         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
37848         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
37849         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
37851 2012-09-17  Jim Meyering  <meyering@redhat.com>
37853         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
37854         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
37855         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
37856         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
37858 2012-09-17  Jim Meyering  <meyering@redhat.com>
37860         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
37861         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
37862         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
37863         It is not in the same category as "exit (0)" or "exit (1)", and
37864         besides, I know of no symbolic name for that 77.  Reported by
37865         Richard W.M. Jones in
37866         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
37868 2012-09-17  Jim Meyering  <meyering@redhat.com>
37870         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
37871         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
37872         all uses of #define, not just those that start in column 1.
37873         Richard W.M. Jones reported a false positive in
37874         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
37876 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
37878         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
37879         * lib/localcharset.c (locale_charset) [DARWIN7]:
37880         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
37881         as these two values are incompatible.  Problem reported by Max Horn.
37882         For more discussion, please see
37883         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00061.html>.
37885         doc: document sticky-EOF issue
37886         * doc/posix-functions/fgetc.texi (fgetc):
37887         * doc/posix-functions/fgets.texi (fgets):
37888         * doc/posix-functions/fread.texi (fread):
37889         * doc/posix-functions/fscanf.texi (fscanf):
37890         * doc/posix-functions/getc.texi (getc):
37891         * doc/posix-functions/getchar.texi (getchar):
37892         * doc/posix-functions/scanf.texi (scanf):
37893         Mention that glibc and default Solaris do not conform to
37894         C99 and POSIX-2001 or later, with respect to how getchar
37895         etc. behave when feof reports nonzero.
37897 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
37899         poll: fix poll(0, NULL, msec)
37900         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
37901         but nfd is 0.  In that case poll should behave like select.
37903 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
37904             Paolo Bonzini  <bonzini@gnu.org>
37906         poll: fix for systems that can't recv() on a non-socket
37907         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
37908         is readable.  In this case POLLHUP will not be supported.
37909         * doc/posix-functions/poll.texi: Document this.
37911 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
37913         poll/select: document portability problems not fixed by Gnulib.
37914         * doc/posix-functions/poll.texi: poll does not work well on
37915         pipes under Windows.  It has the same limitations as select on
37916         BeOS.
37917         * doc/posix-functions/select.texi: select does not work well
37918         on pipes under Windows.
37920 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
37922         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
37923         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
37924         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
37925         <http://lists.gnu.org/r/bug-tar/2012-07/msg00018.html>.
37927 2012-09-06  Eric Blake  <eblake@redhat.com>
37929         net_if: give more details about the bug being fixed
37930         * doc/posix-headers/net_if.texi: Add clarification.
37932 2012-09-05  Eric Blake  <eblake@redhat.com>
37934         net_if: new module
37935         * modules/net_if: New module, borrowing ideas from netinet_in.
37936         * m4/net_if_h.m4: New file.
37937         * lib/net_if.in.h: Likewise.
37938         * doc/posix-headers/net_if.texi (net/if.h): Document it.
37939         * MODULES.html.sh (lacking POSIX:2008): Likewise.
37940         * tests/test-net_if.c: Make function checks conditional.
37941         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
37943 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
37945         readutmp: fix non-portable UT_PID use
37946         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
37947         Use `UT_PID (u) > 0' as absolute condition.
37949 2012-09-04  Jim Meyering  <meyering@redhat.com>
37951         fts: reduce two or more trailing spaces to just one, usually
37952         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
37953         or more slashes, trim all but the final one.  But if a name consists
37954         solely of two slashes, don't modify it.  If it consists solely of
37955         three or more slashes, strip all but one.
37957         This is part of the solution to a minor problem with rm:
37958         it would print a bogus ELOOP diagnostic when failing to remove
37959         the slash-decorated name of a symlink-to-directory:
37961             $ mkdir d && ln -s d s && env rm -r s/
37962             rm: cannot remove 's': Too many levels of symbolic links
37964         With the change below and a trivial don't-trim-trailing-slashes
37965         adjustment to remove.c, it does this:
37967             $ env rm -r s/
37968             rm: cannot remove 's/': Not a directory
37970         Improved by: Eric Blake
37972         fts: when there is no risk of overlap, use memcpy, not memmove
37973         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
37975 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
37977         stdbool: be more compatible with mixed C/C++ compiles
37978         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
37979         Define to bool, true, false, respectively, as GCC's builtin
37980         stdbool.h does.  Problem reported by Michael Goffioul in
37981         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00143.html>.
37983 2012-08-28  Jim Meyering  <meyering@redhat.com>
37985         revert last change: it was not needed
37986         * tests/test-vc-list-files-git.sh: There's already a test for
37987         a working git, just below.
37989 2012-08-28  Jim Meyering  <meyering@redhat.com>
37991         tests: test-vc-list-files-git.sh: skip if git is not available
37992         * tests/test-vc-list-files-git.sh: Skip this test when git is
37993         not available.
37995 2012-08-26  Bruno Haible  <bruno@clisp.org>
37997         gnulib-tool: Remove no-op option --no-changelog.
37998         * gnulib-tool (func_usage): Don't mention --no-changelog.
37999         (do_changelog): Remove variable.
38000         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
38002 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
38004         doc: remove fdl-1.2.texi
38005         It is no longer used or maintained, and its use of @acronym
38006         is problematic.  See the thread containing
38007         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00134.html>.
38008         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
38009         * doc/old-licenses/fdl-1.2.texi: Remove.
38011         execinfo: port to FreeBSD
38012         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
38013         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
38014         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00113.html>.
38015         * modules/execinfo (Link): Add $(LIB_EXECINFO).
38017 2012-08-23  Jim Meyering  <meyering@redhat.com>
38019         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
38020         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
38021         to placate gcc's -Wold-style-declaration.
38023 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
38025         doc: do not use @acronym
38026         * doc/inet_ntoa.texi (inet_ntoa):
38027         * doc/parse-datetime.texi (Seconds since the Epoch)
38028         (Specifying time zone rules):
38029         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
38030         Don't use @acronym.  Problem reported by John Darlington in
38031         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00124.html>.
38033 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
38035         stdnoreturn: port to newer GCCs
38036         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
38037         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
38038         Problem reported by Jim Meyering in
38039         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00121.html>.
38040         Also, rename the 'test' function to a void a clash with the
38041         already-supplied 'main' function; this fixes a bug that incorrectly
38042         rejected GCC 4.7.1's <stdnoreturn.h>.
38043         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
38044         Document GCC problem.
38046 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
38048         pipe-filter: fix comment typo
38049         * lib/pipe-filter.h: Mention correct function.
38051 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
38053         execinfo: new module
38054         This is for Emacs.  Currently, it provides a no-effect stub
38055         on all platforms where it does not already work.
38056         It already works on glibc-based systems, and on Solaris 11.
38057         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
38058         New files.
38059         * doc/glibc-headers/execinfo.texi (execinfo.h):
38060         * MODULES.html.sh (Misc): Document it.
38062 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
38064         extern-inline: support old GCC 'inline'
38065         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
38066         if available.  This applies to GCC versions 2.7 through 4.2, or
38067         when newer GCC is using -fgnu89-inline.  The goal is to address
38068         some of the performance issues mentioned by Bruno Haible in
38069         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00097.html>.
38071 2012-08-20  Eric Blake  <eblake@redhat.com>
38073         maint.mk: avoid redundant file name in message
38074         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
38075         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
38076         (sc_makefile_path_separator_check): Remove bogus $(ME).
38078 2012-08-20  Mike Frysinger  <vapier@gentoo.org>
38080         timer-time: fix link order when static linking on glibc
38081         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
38082         _after_ -lrt so that it's significant.
38084 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
38086         timespec: omit unnecessary AC_C_INLINE
38087         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
38089         stat-time: omit unnecessary AC_C_INLINE
38090         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
38091         Do not require AC_C_INLINE.
38093         ignore-value: omit unnecessary AC_C_INLINE
38094         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
38096         sys_select: avoid 'static inline'
38097         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
38099         mktime: avoid 'static inline'
38100         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
38101         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
38103 2012-08-19  Bruno Haible  <bruno@clisp.org>
38105         gnulib-tool: Improve coding style.
38106         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
38107         func_emit_lib_Makefile_am.
38108         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
38110 2012-08-19  Bruno Haible  <bruno@clisp.org>
38112         gnulib-tool: Fix indentation.
38113         * gnulib-tool (func_import): Fix indentation.
38115 2012-08-19  Bruno Haible  <bruno@clisp.org>
38117         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
38118         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
38119         on the list of removed files.
38121 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
38123         test-parse-datetime: avoid glibc leap-second glitch
38124         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
38125         with the 2012 rules.  Problem reported by Bruce Dubbs in
38126         <http://bugs.gnu.org/12206>.
38128 2012-08-14  Bruno Haible  <bruno@clisp.org>
38130         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
38131         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
38132         from argument.
38133         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
38135 2012-08-14  Eric Blake  <eblake@redhat.com>
38137         ldexp: relax license
38138         * modules/ldexp (License): Trivial relax, since the module only
38139         provides a permissively licensed m4 file.
38141 2012-08-13  Bruno Haible  <bruno@clisp.org>
38143         gnulib-tool: Fix persistence of --witness-c-macro option.
38144         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
38145         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
38147 2012-08-11  Eric Blake  <eblake@redhat.com>
38149         count-leading-zeros: use a lookup table on non-gcc compilers
38150         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
38151         alternate implementation, suggested by Jim Meyering.
38153 2012-08-10  Eric Blake  <eblake@redhat.com>
38155         count-leading-zeros: new module
38156         * modules/count-leading-zeros: New module.
38157         * m4/count-leading-zeros.m4: New file.
38158         * lib/count-leading-zeros.h: Likewise.
38159         * modules/count-leading-zeros-tests: New test.
38160         * tests/test-count-leading-zeros.c: New file.
38161         * MODULES.html.sh (Integer arithmetic functions): Document it.
38163 2012-08-07  Simon Josefsson  <simon@josefsson.org>
38164             Jim Meyering  <meyering@redhat.com>
38166         maintainer-makefile: Fix syntax error with dash.
38167         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
38168         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
38170 2012-08-05  Jim Meyering  <meyering@redhat.com>
38172         extern-inline: also ignore -Wmissing-declarations
38173         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
38174         required with gcc-4.8.0-to-be.
38176         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
38177         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
38178         for /error ?([^,]*)/.  This avoids false-positives for strings like
38179         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
38181 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
38183         gnumakefile: better interaction with Automake-NG
38184         * modules/gnumakefile [Makefile.am]: The makefiles generated by
38185         Automake-NG always contain a definition of VPATH, even in non-VPATH
38186         builds (its value being simply '.' in that case).  So, in the
38187         'clean-GNUmakefile' rule, to determine whether running under a
38188         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
38189         '$(VPATH)' expands to the empty string.
38191 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
38193         base64: Use extern C scope in header file, for C++.
38194         * lib/base64.h: Add C++ namespace protection.
38196 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
38198         stat-time, timespec, u64: support naive out-of-dir builds
38199         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
38200         Use '#include "foo.h"', not '#include <foo.h>', when including
38201         one's own interface.  This works better when configuring with
38202         out-of-directory builds, since packages need not add an
38203         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
38205 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
38207         utimens: use extern-inline
38208         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
38209         * lib/utimens.h: Add copyright notice, since this is now large enough
38210         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
38211         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
38212         * modules/utimens (Depends-on): Add extern-inline.
38214         u64: use extern-inline
38215         * lib/u64.c: New file.
38216         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
38217         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
38218         * modules/u64 (Files): Add lib/u64.c.
38219         (Depends-on): Add extern-inline.
38220         (configure.ac): No need to require AC_C_INLINE, since extern-inline
38221         does that now.
38222         (lib_SOURCES): Add u64.c.
38224         timespec: use extern-inline
38225         * lib/timespec.c: New file.
38226         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
38227         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
38228         * modules/timespec (Files): Add lib/timespec.c.
38229         (Depends-on): Add extern-inline.
38230         (lib_SOURCES): Add timespec.c.
38232         stat-time: use extern-inline
38233         * lib/stat-time.c: New file.
38234         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
38235         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
38236         * modules/stat-time (Files): Add lib/stat-time.c.
38237         (Depends-on): Add extern-inline.
38238         (lib_SOURCES): Add stat-time.c.
38240         extern-inline: new module
38241         * modules/extern-inline, m4/extern-inline.m4: New files.
38242         This is for better support of 'extern inline' a la ISO C99,
38243         with a portable alternative on compilers that do not support
38244         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
38245         of the Emacs executable, when compiled with debugging disabled,
38246         which is a typical way that Emacs is built while developing.
38248 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
38250         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
38251         * build-aux/do-release-commit-and-tag: Move variable definitions
38252         together.
38253         ($branch): Instead of defaulting to "master", default to the current
38254         branch (as gnu-web-doc-update does).
38255         (help): Display the current values of the option arguments.
38256         * top/maint.mk (release-commit): New.
38257         * top/README-release: Simplify the corresponding step.
38259 2012-07-30  Eric Blake  <eblake@redhat.com>
38261         passfd: fix comment on recvfd
38262         * lib/passfd.c (recvfd): Fix comment.
38263         Reported by Jann Horn <jannhorn@googlemail.com>.
38265 2012-07-30  Jim Meyering  <meyering@redhat.com>
38267         maint.mk: avoid a sub-shell
38268         * top/maint.mk (release-prep): Remove unneeded sub-shell.
38270 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
38272         maint.mk: use silent-rules support from Automake
38273         * top/maint.mk (news-check, vc-diff-check, announcement)
38274         (no-submodule-changes, alpha beta stable, release-prep)
38275         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
38277 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
38279         maint.mk: provide a web-manual-update target
38280         * top/maint.mk: here.
38281         * top/README-release: Use it to simplify the web manual update step.
38283 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
38285         README-release: shorten the circuit to post a news
38286         * top/README-release: Point directly to the news submission form.
38288 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
38290         gnu-web-doc-update: fix --help
38291         * build-aux/gnu-web-doc-update: The information "top level" was written
38292         twice.
38294 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
38296         maint.mk: absolute VPATH issue
38297         * top/maint.mk (release-prep): Help Git find .git/.
38298         From Jim Meyering.
38300 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
38302         gitlog-to-changelog: fix previous change
38303         * build-aux/gitlog-to-changelog: Fix condition.
38304         Add missing ";".
38306 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
38308         gitlog-to-changelog: don't expect .git to be in $srcdir
38309         Reported by Bruno Haible.
38310         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00265.html>
38311         * build-aux/gitlog-to-changelog (&git_dir_option): New.
38312         Use it.
38314 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
38316         maint.mk: absolute VPATH build fix
38317         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
38318         $(srcdir) is not a parent of $(builddir).
38320 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
38322         clean-temp: Fix memory leak.
38323         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
38324         'files' members of tmpdir.
38326 2012-07-27  Jim Meyering  <meyering@redhat.com>
38328         maint.mk: new rule: refresh-gnulib-patches
38329         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
38330         Use this rule to refresh them.
38331         * top/maint.mk (refresh-gnulib-patches): New rule.
38333 2012-07-24  Bruno Haible  <bruno@clisp.org>
38335         gnulib-tool: Fix handling of inctests variable.
38336         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
38337         Reported by Nick Bowler <nbowler@elliptictech.com>.
38339 2012-07-22  Bruno Haible  <bruno@clisp.org>
38341         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
38342         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
38343         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
38344         Remove exemption for getpass.h.
38345         Suggested by Eric Blake.
38347 2012-07-20  Eric Blake  <eblake@redhat.com>
38349         verify: document conflict with -Wnested-externs
38350         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
38352         maint.mk: forbid exit(-1)
38353         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
38355 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
38357         fsusage: port back to Solaris
38358         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
38359         error (fsd not declared) on Solaris 10.  Reported privately by
38360         Andrew Borodin.
38362 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
38364         gnu-web-doc-update: fix error messages
38365         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
38367         gnu-web-doc-update: check the requirements.
38368         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
38369         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
38370         * build-aux/bootstrap (find_tool): Comment change.
38372 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
38374         maint.mk: minor simplication.
38375         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
38376         for default values.
38378 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
38380         gitlog-to-changelog: VPATH build issues
38381         If builddir is not a subdirectory of srcdir, running git from it will
38382         fail.
38383         * build-aux/gitlog-to-changelog (--srcdir): New option.
38385 2012-07-15  Bruno Haible  <bruno@clisp.org>
38387         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
38388         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
38389         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
38390         Remove exemption for fpending.h.
38391         Suggested by Eric Blake.
38393 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
38395         pthread_sigmask: fix bug on FreeBSD 9
38396         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
38397         Include string.h.
38398         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
38399         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
38400         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
38401         but pthread_sigmask (1729, NULL, NULL) returns zero.
38402         See <http://bugs.gnu.org/11884>.
38403         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
38404         by inspecting whether the main call changed the old mask.
38406 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
38408         README-release: make it more legible
38409         * top/README-release: Improve typography slightly.
38411 2012-07-15  Jim Meyering  <meyering@redhat.com>
38413         maint: require that each sc_... command start with "@"
38414         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
38415         "make sc_maint" helps us avoid this nit.
38417 2012-07-15  Jim Meyering  <meyering@redhat.com>
38419         maint.mk: add leading "@" to quiet new "make syntax-check" rule
38420         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
38422 2012-07-13  Eric Blake  <eblake@redhat.com>
38424         maint.mk: new syntax check for HAVE_DECL checks
38425         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
38426         * cfg.mk
38427         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
38428         Exempt some false positives.
38429         Based on a report by Karel Zak.
38431         argp: make HAVE_DECL usage consistent
38432         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
38433         macros, not whether they are defined.
38434         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
38435         convention with other declaration checks.
38436         Reported by Karel Zak, with suggestions from Paul Eggert.
38438         stat-time: relax license to LGPLv2+
38439         * modules/stat-time (License): Relax, with consent of all authors.
38441         strndup: fix m4 usage error
38442         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
38443         defined, to either 0 or 1.
38444         Reported by Karel Zak.
38446 2012-07-11  Jim Meyering  <meyering@redhat.com>
38448         maint: enable the sc_avoid_if_before_free syntax-check rule
38449         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
38450         (if_before_free_offenders_): Define.
38451         (if_before_free_basename_re_): Define.
38452         Exempt current files with useless if-before-free.
38454 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
38456         gettext: do not assume '#define ... defined ...' behavior
38457         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
38458         Do not use '#define FOO ... defined BAR ...', as the C standard says
38459         it's not portable to expect that this works after macro expansion.
38460         Problem reported for gzip by Steven M. Schweda in
38461         <http://lists.gnu.org/r/bug-gzip/2012-07/msg00000.html>.
38463 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
38465         getloadavg: clean out old Emacs and Autoconf cruft
38466         See Glenn Morris in <http://bugs.gnu.org/11905>.
38467         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
38468         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
38469         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
38470         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
38472 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
38474         bootstrap: let warn be like tests/init.sh's warn_
38475         Reported by Jim Meyering.
38476         * build-aux/bootstrap (warn): Remove, replaced by...
38477         (warnf_, warn_): these.
38478         Adjust callers.
38479         Shorten messages that no longer fit in 80 columns.
38481 2012-07-09  Bruno Haible  <bruno@clisp.org>
38483         getopt: Simplify after Emacs changed.
38484         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
38485         (gl_GETOPT_IFELSE): Remove macro.
38487 2012-07-09  Jim Meyering  <meyering@redhat.com>
38489         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
38490         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
38492         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
38493         Bugs in both of those conspired to make the
38494         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
38495         _sc_search_regexp's handling of non-empty $in_files would filter
38496         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
38497         choice of in_files value meant there would be no match in most
38498         projects, due to the presence of two or more Makefile.in files.
38499         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
38500         Fix a bug in how a non-empty $$in_files was processed:
38501         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
38502         in spite of the name, it's a regexp, not a list of file names.
38504 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
38506         getloadavg, getopt: fix commentary re configure.in
38507         Autoconf is deprecating the name 'configure.in', so change it to
38508         to the new name 'configure.ac' in a couple of places.
38509         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
38510         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
38511         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
38512         Emacs has renamed it to configure.ac, and it no longer refers
38513         to these macros anyway.
38515         timespec: mark functions with const attributes
38516         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
38517         Mark with _GL_ATTRIBUTE_CONST.
38519 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
38521         canonicalize[-lgpl]: handle "guessing" values when cross-building
38522         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
38523         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
38524         matches "*yes" instead of just "yes".  Regression introduced in commit
38525         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
38527 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
38528             Bruno Haible  <bruno@clisp.org>
38530         canonicalize: make the right guess when cross-compiling to GNU
38531         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
38532         determine whether cross-compiling to glibc systems, so as to
38533         include GNU/Hurd.
38535 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
38537         timespec-sub: avoid duplicate include
38538         * lib/timespec-sub.c: Do not include <config.h> twice.
38539         Reported by Juanma Barranquero.
38541 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
38543         bootstrap: use a more consistent error reporting scheme
38544         * build-aux/bootstrap (warn, die): New.
38545         Use them.
38547 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
38549         sys_time: allow too-wide tv_sec
38550         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
38551         timeval even if tv_sec is wider than time_t.  This allows
38552         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
38553         as without this patch gnulib replaces struct timeval
38554         and OpenBSD futimes therefore has a type mismatch.
38555         * doc/posix-headers/sys_time.texi: Mention this.
38557         pthread: check for both pthread_create and pthread_join
38558         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
38559         alter the check so that it tests for both pthread_create and
38560         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
38561         Suggested by Bruno Haible and Richard Yao in
38562         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00048.html>.
38564         parse-datetime: doc tuneup
38565         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
38566         spacing issues.
38568 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
38570         do-release-commit-and-tag: fix the previous commit
38571         * build-aux/do-release-commit-and-tag: Actually the test was right,
38572         but the comment and the error message were misleading.
38573         Fix comment, and improve error message.
38574         Perform check first, so that NEWS is not modified uselessly.
38576         do-release-commit-and-tag: fix typo
38577         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
38578         _not_ start with a stub.
38580 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
38582         pthread: check for pthread_create, not pthread_join
38583         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
38584         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
38585         pthread_join in libc.  I hope this removes the need for all the
38586         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
38587         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00042.html>.
38589 2012-07-04  Jim Meyering  <meyering@redhat.com>
38591         parse-datetime: fix failure to diagnose invalid input
38592         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
38593         rather than diagnosing the invalid input.  Now it reports this:
38594         date: invalid date '\260'
38595         * lib/parse-datetime.y (to_uchar): Define.
38596         (yylex): Don't sign-extend "other" bytes.
38597         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
38598         Thanks to Bruno Haible for the patch to this file.
38599         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
38600         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
38602 2012-07-03  Jim Meyering  <meyering@redhat.com>
38604         bootstrap: do not require now-removed build-aux/missing
38605         Now that build-aux/missing is, er, missing, bootstrap would
38606         silently fail.
38607         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
38608         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
38609         no longer part of gnulib.
38610         Diagnose the failure.
38612 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
38614         alloca: add support for HP NonStop TNS/E native
38615         * lib/alloca.in.h (alloca): Support the new host.
38616         From a suggestion by Joachim Schmitz in
38617         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00355.html>.
38619 2012-07-02  Pádraig Brady  <P@draigBrady.com>
38621         fsusage: remove code not needed on non GNU/Linux systems.
38623         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
38624         Don't include headers no longer needed in this case.
38625         * lib/fsusage.c [STAT_STATVFS &&
38626         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
38627         STAT_STATFS2_FRSIZE to exclude code not used in this case.
38629 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
38631         fsusage: include files needed for glibc 2.6 fallback
38632         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
38633         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
38634         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
38635         Problem reported by Ludovic Courtès in
38636         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00005.html>.
38638         fsusage: avoid needless check on GNU/Linux
38639         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
38640         on GNU/Linux systems, since it can't possibly work.
38642 2012-07-01  Bruno Haible  <bruno@clisp.org>
38644         log: Fix an autoconf >= 2.64 warning.
38645         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
38646         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
38648 2012-06-28  Bruno Haible  <bruno@clisp.org>
38650         log10f: Fix possible configuration problem.
38651         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
38652         $LOGF_LIBM.
38653         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
38655 2012-06-28  Bruno Haible  <bruno@clisp.org>
38657         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
38658         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
38659         not gl_cv_func_unlink_works.
38660         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
38662 2012-06-27  Eric Blake  <eblake@redhat.com>
38664         config: drop scripts that automake says are not independent
38665         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
38666         * build-aux/elisp-comp: Delete.
38667         * build-aux/missing: Likewise.
38668         * build-aux/ylwrap: Likewise.
38669         * modules/elisp-comp: Likewise.
38670         * MODULES.html.sh: Drop mention of elisp-comp.
38671         * NEWS: Mention this.
38673 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
38675         root-uid: new module
38676         This is for portability to Tandem's NonStop Kernel.
38677         * lib/root-uid.h, modules/root-uid: New files.
38678         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
38679         * lib/write-any-file.c, tests/test-sethostname2.c:
38680         Include "root-uid.h".
38681         * lib/euidaccess.c (euidaccess):
38682         * lib/pt_chown.c (main):
38683         * lib/unlinkdir.c (cannot_unlink_dir):
38684         * lib/write-any-file.c (can_write_any_file):
38685         * m4/mknod.m4 (gl_FUNC_MKNOD):
38686         * tests/test-sethostname2.c (geteuid, main):
38687         Don't assume ROOT_UID == 0.
38688         * modules/euidaccess (Depends-on):
38689         * modules/pt_chown (Depends-on):
38690         * modules/sethostname-tests (Depends-on):
38691         * modules/unlinkdir (Depends-on):
38692         * modules/write-any-file (Depends-on):
38693         Add root-uid.
38695         regex: use locale-independent comparison for codeset name
38696         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
38697         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
38698         for codeset name.
38699         * lib/regex_internal.h: Do not include <strings.h>, since we
38700         no longer use strcasecmp.
38701         * modules/regex (Depends-on): Remove strcase.
38703 2012-06-23  Bruno Haible  <bruno@clisp.org>
38705         getopt-posix: No longer guarantee that option processing is resettable.
38706         * doc/posix-functions/getopt.texi: Drop description of problem with
38707         internal state. Fix info about mingw and msvc9.
38708         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
38709         option processing by getopt(). Run three test programs instead of one.
38710         Simplify cross-compilation guess.
38711         * NEWS: Mention the change.
38712         Reported by Rich Felker <dalias@aerifal.cx>.
38714 2012-06-26  Bruno Haible  <bruno@clisp.org>
38716         argp, regex: Ensure strcasecmp gets declared.
38717         * lib/argp-help.c: Include <strings.h>.
38718         * lib/regex_internal.h: Likewise.
38719         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
38721 2012-06-24  Bruno Haible  <bruno@clisp.org>
38723         ptsname_r: Make it consistent with ptsname on AIX.
38724         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
38725         implementation as for OSF/1.
38726         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
38727         a pty master.
38729         ptsname_r: Make it consistent with ptsname on OSF/1.
38730         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
38731         OSF/1.
38733 2012-06-24  Bruno Haible  <bruno@clisp.org>
38735         ttyname_r: Fix result on OSF/1, Solaris.
38736         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
38738 2012-06-24  Bruno Haible  <bruno@clisp.org>
38740         ptsname_r: Add support for Solaris.
38741         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
38742         Solaris.
38744         ptsname_r: Fix test failure on native Windows.
38745         * modules/ptsname_r (Depends-on): Add isatty.
38747         ptsname_r: Fix test failures on IRIX, Solaris.
38748         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
38749         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
38750         accordingly.
38751         * lib/ptsname_r.c: Include <fcntl.h>.
38752         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
38753         set errno if fd is invalid.
38754         * tests/test-isatty.c (main): Update comments.
38756 2012-06-24  Bruno Haible  <bruno@clisp.org>
38758         ptsname test: Extend test.
38759         * tests/test-ptsname.c: Include <errno.h>.
38760         (main): Test behaviour with invalid file descriptor.
38762 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
38764         time: fix obsolete comment
38765         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
38766         reference to HAVE_STRUCT_TIMESPEC in comment.
38768 2012-06-23  Bruno Haible  <bruno@clisp.org>
38770         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
38771         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
38772         does not handle abbreviated long options with equivalent
38773         disambiguations, set gl_replace_getopt to yes.
38774         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
38776 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
38778         time_r: fix typo that always overrode localtime_r decl
38779         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
38780         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
38781         not in a standard include.
38783 2012-06-22  Bruno Haible  <bruno@clisp.org>
38785         Write "Mac OS X" instead of "MacOS X".
38786         * README: Write "Mac OS X" instead of "MacOS X".
38787         * build-aux/bootstrap: Likewise.
38788         * build-aux/install-reloc: Likewise.
38789         * lib/acl-internal.h: Likewise.
38790         * lib/acl_entries.c: Likewise.
38791         * lib/argp-ba.c: Likewise.
38792         * lib/argp-pv.c: Likewise.
38793         * lib/config.charset: Likewise.
38794         * lib/copy-acl.c: Likewise.
38795         * lib/csharpexec.c: Likewise.
38796         * lib/euidaccess.c: Likewise.
38797         * lib/fbufmode.c: Likewise.
38798         * lib/fflush.c: Likewise.
38799         * lib/file-has-acl.c: Likewise.
38800         * lib/filemode.h: Likewise.
38801         * lib/fpurge.c: Likewise.
38802         * lib/freadable.c: Likewise.
38803         * lib/freadahead.c: Likewise.
38804         * lib/freading.c: Likewise.
38805         * lib/freadptr.c: Likewise.
38806         * lib/freadseek.c: Likewise.
38807         * lib/fseeko.c: Likewise.
38808         * lib/fseterr.c: Likewise.
38809         * lib/fsusage.c: Likewise.
38810         * lib/fwritable.c: Likewise.
38811         * lib/fwriting.c: Likewise.
38812         * lib/get-rusage-as.c: Likewise.
38813         * lib/get-rusage-data.c: Likewise.
38814         * lib/getdomainname.c: Likewise.
38815         * lib/idpriv-drop.c: Likewise.
38816         * lib/idpriv-droptemp.c: Likewise.
38817         * lib/localcharset.c: Likewise.
38818         * lib/locale.in.h: Likewise.
38819         * lib/localename.c: Likewise.
38820         * lib/mbsrtowcs-state.c: Likewise.
38821         * lib/nproc.c: Likewise.
38822         * lib/passfd.c: Likewise.
38823         * lib/posix_openpt.c: Likewise.
38824         * lib/printf-parse.c: Likewise.
38825         * lib/progreloc.c: Likewise.
38826         * lib/safe-read.h: Likewise.
38827         * lib/safe-write.h: Likewise.
38828         * lib/sched.in.h: Likewise.
38829         * lib/set-mode-acl.c: Likewise.
38830         * lib/signal.in.h: Likewise.
38831         * lib/stdint.in.h: Likewise.
38832         * lib/stdio-impl.h: Likewise.
38833         * lib/stdlib.in.h: Likewise.
38834         * lib/strtod.c: Likewise.
38835         * lib/sys_select.in.h: Likewise.
38836         * lib/tcgetsid.c: Likewise.
38837         * lib/unistd.in.h: Likewise.
38838         * lib/unlockpt.c: Likewise.
38839         * lib/vasnprintf.c: Likewise.
38840         * lib/vma-iter.c: Likewise.
38841         * lib/wcsrtombs-state.c: Likewise.
38842         * m4/acl.m4: Likewise.
38843         * m4/acosl.m4: Likewise.
38844         * m4/asinl.m4: Likewise.
38845         * m4/atanl.m4: Likewise.
38846         * m4/c-stack.m4: Likewise.
38847         * m4/cosl.m4: Likewise.
38848         * m4/expl.m4: Likewise.
38849         * m4/extensions.m4: Likewise.
38850         * m4/fdatasync.m4: Likewise.
38851         * m4/fmal.m4: Likewise.
38852         * m4/frexp.m4: Likewise.
38853         * m4/frexpf.m4: Likewise.
38854         * m4/frexpl.m4: Likewise.
38855         * m4/fsusage.m4: Likewise.
38856         * m4/getdomainname.m4: Likewise.
38857         * m4/getloadavg.m4: Likewise.
38858         * m4/getopt.m4: Likewise.
38859         * m4/gettext.m4: Likewise.
38860         * m4/gnulib-common.m4: Likewise.
38861         * m4/intdiv0.m4: Likewise.
38862         * m4/intlmacosx.m4: Likewise.
38863         * m4/largefile.m4: Likewise.
38864         * m4/ldexpl.m4: Likewise.
38865         * m4/link-follow.m4: Likewise.
38866         * m4/locale-ar.m4: Likewise.
38867         * m4/locale-fr.m4: Likewise.
38868         * m4/locale-ja.m4: Likewise.
38869         * m4/locale-tr.m4: Likewise.
38870         * m4/locale-zh.m4: Likewise.
38871         * m4/locale_h.m4: Likewise.
38872         * m4/lock.m4: Likewise.
38873         * m4/logl.m4: Likewise.
38874         * m4/mathfunc.m4: Likewise.
38875         * m4/minus-zero.m4: Likewise.
38876         * m4/mktime.m4: Likewise.
38877         * m4/mmap-anon.m4: Likewise.
38878         * m4/multiarch.m4: Likewise.
38879         * m4/nanosleep.m4: Likewise.
38880         * m4/nocrash.m4: Likewise.
38881         * m4/poll.m4: Likewise.
38882         * m4/printf-frexpl.m4: Likewise.
38883         * m4/printf.m4: Likewise.
38884         * m4/signbit.m4: Likewise.
38885         * m4/sinl.m4: Likewise.
38886         * m4/sqrtl.m4: Likewise.
38887         * m4/strerror_r.m4: Likewise.
38888         * m4/tanl.m4: Likewise.
38889         * m4/threadlib.m4: Likewise.
38890         * m4/ttyname_r.m4: Likewise.
38891         * m4/unlink.m4: Likewise.
38892         * m4/visibility.m4: Likewise.
38893         * m4/wcwidth.m4: Likewise.
38894         * tests/minus-zero.h: Likewise.
38895         * tests/test-alloca-opt.c: Likewise.
38896         * tests/test-copy-acl.sh: Likewise.
38897         * tests/test-copy-file.sh: Likewise.
38898         * tests/test-fdatasync.c: Likewise.
38899         * tests/test-file-has-acl.sh: Likewise.
38900         * tests/test-flock.c: Likewise.
38901         * tests/test-fsync.c: Likewise.
38902         * tests/test-localename.c: Likewise.
38903         * tests/test-malloca.c: Likewise.
38904         * tests/test-nonblocking-pipe.h: Likewise.
38905         * tests/test-nonblocking-socket.h: Likewise.
38906         * tests/test-openpty.c: Likewise.
38907         * tests/test-posix_openpt.c: Likewise.
38908         * tests/test-ptsname.c: Likewise.
38909         * tests/test-ptsname_r.c: Likewise.
38910         * tests/test-sameacls.c: Likewise.
38911         * tests/test-select.h: Likewise.
38912         * tests/test-set-mode-acl.sh: Likewise.
38913         * tests/test-snprintf-posix.h: Likewise.
38914         * tests/test-sprintf-posix.h: Likewise.
38915         * tests/test-strtod.c: Likewise.
38916         * tests/test-time.c: Likewise.
38917         * tests/test-vasnprintf-posix.c: Likewise.
38918         * tests/test-vasprintf-posix.c: Likewise.
38919         * doc/acl-resources.txt: Likewise.
38920         * doc/**/*.texi: Likewise.
38921         Reported by Max Horn <max@quendi.de>.
38923 2012-06-22  Bruno Haible  <bruno@clisp.org>
38925         grantpt: Relax requirement regarding invalid file descriptors.
38926         * lib/grantpt.c: Don't include <fcntl.h>.
38927         (grantpt): Don't verify the validity of the file descriptor.
38928         * modules/grantpt (Depends-on): Remove fcntl-h.
38929         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
38930         file descriptors.
38931         * doc/posix-functions/grantpt.texi: Document more platforms on which
38932         grantpt succeeds for invalid file descriptors.
38933         Reported by Rich Felker <dalias@aerifal.cx>.
38935 2012-06-22  Bruno Haible  <bruno@clisp.org>
38937         fbufmode test: Don't test unportable behaviour.
38938         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
38939         (main): Invoke it three times.
38940         Reported by Szabolcs Nagy <nsz@port70.net>
38941         and Rich Felker <dalias@aerifal.cx>.
38943 2012-06-21  Bruno Haible  <bruno@clisp.org>
38945         gnulib-tool: Refactor inctests variable.
38946         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
38947         (func_modules_transitive_closure,
38948         func_modules_transitive_closure_separately,
38949         func_import, func_create_testdir): Update.
38951         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
38952         * gnulib-tool: Accept option --without-tests.
38953         (func_usage): Document --without-tests option. Rearrange.
38954         (inctests): Normalize according to the mode.
38955         * NEWS: Mention the change.
38956         Suggested by Simon Josefsson.
38958 2012-06-21  Bruce Korb  <bkorb@gnu.org>
38960         parse-duration test: Avoid spurious output.
38961         * tests/test-parse-duration.sh: Reindent with leading tabs.
38963 2012-06-21  Jim Meyering  <meyering@redhat.com>
38965         maint: disable the strncpy prohibition
38966         * cfg.mk: Do not prohibit strncpy here.
38968 2012-06-21  Bruno Haible  <bruno@clisp.org>
38970         nonblocking: Avoid compilation error on mingw64.
38971         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
38972         fscanf.
38973         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
38974         * modules/vfscanf (configure.ac): Likewise.
38975         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
38976         definition only if stdio.h has prepared it.
38977         Reported by Daniel P. Berrange <berrange@redhat.com>.
38979 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
38981         gnulib-tool: Use readlink if it is available.
38982         * gnulib-tool (func_readlink): Choose function more appropriately.
38984 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
38986         posixtm-tests: port to buggy compiler
38987         Problem reported by Simon Josefsson in
38988         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00246.html>.
38989         * modules/posixtm-tests (Depends-on): Add stdint.
38990         * tests/test-posixtm.c (struct posixtm_test.t_expected):
38991         Now of type int_least64_t, not int64_t, both because that's
38992         what INT64_C returns and because int_least64_t works even
38993         on 72-bit hosts.
38994         (T): Use INT64_C on constants outside the traditional int range,
38995         to work around compiler bug noted by Simon.
38997         mktime: fix integer overflow in 'configure'-time test
38998         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
38999         after integer overflow.  Problem reported by Rich Felker in
39000         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00257.html>.
39001         Also, don't look for further instances of a bug if we've already
39002         found one instance; this helps 'configure' run faster.
39004 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
39006         tmpfile, clean-temp: Fix invocation of GetVersionEx.
39007         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
39008         GetVersionEx correctly.
39009         * lib/clean-temp.c (supports_delete_on_close): Likewise.
39011 2012-06-20  Bruno Haible  <bruno@clisp.org>
39013         fdopen: Allow implementations that don't reject invalid fd arguments.
39014         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
39015         succeeds.
39016         Reported by Rich Felker <dalias@aerifal.cx>.
39018 2012-06-20  Simon Josefsson  <simon@josefsson.org>
39020         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
39021         bring in LIBINTL.
39023 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
39025         init.sh: do not rely on autoupated PWD
39026         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
39027         <http://lists.gnu.org/r/bug-gzip/2012-06/msg00008.html>.
39028         Although Nelson's bug was not necessarily fixed by this patch,
39029         it seems wise to make the change for safety.
39030         * tests/init.sh (path_prepend_): Do not rely on PWD updating
39031         automagically after 'cd'; this is not reliable on older shells.
39032         (setup_): Fail if we cannot cd to temporary directory.
39034 2012-06-19  Bruno Haible  <bruno@clisp.org>
39036         stat, fstat: Avoid warnings on mingw64.
39037         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
39038         redefining.
39039         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
39040         Reported by Daniel P. Berrange <berrange@redhat.com>.
39042 2012-06-19  Bruno Haible  <bruno@clisp.org>
39044         stdioext: Add support for musl libc.
39046         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
39047         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
39049         * m4/fseterr.m4: New file.
39050         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
39051         function exists.
39052         * modules/fseterr (Files): Add m4/fseterr.m4.
39053         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
39054         __fseterr does not exist.
39055         (Makefile.am): Remove fseterr.c from lib_SOURCES.
39057         * lib/freadable.h: Update comment.
39059         * lib/fwritable.h: Update comment.
39061         * lib/freading.h: Update comment.
39063         * lib/fwriting.h: Update comment.
39065         * m4/freadahead.m4: New file.
39066         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
39067         that function exists.
39068         * modules/freadahead (Files): Add m4/freadahead.m4.
39069         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
39070         __freadahead does not exist.
39071         (Makefile.am): Remove freadahead.c from lib_SOURCES.
39073         * m4/freadptr.m4: New file.
39074         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
39075         function exists.
39076         * modules/freadptr (Files): Add m4/freadptr.m4.
39077         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
39078         __freadptr does not exist.
39079         (Makefile.am): Remove freadptr.c from lib_SOURCES.
39081         * m4/freadseek.m4: New file.
39082         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
39083         exists.
39084         * modules/freadseek (Files): Add m4/freadseek.m4.
39085         (configure.ac): Invoke gl_FUNC_FREADSEEK.
39087         * lib/fpurge.c (fpurge): Update comment.
39089         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
39091 2012-06-19  Bruno Haible  <bruno@clisp.org>
39093         *printf-posix: Put more info into config.log.
39094         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
39095         exit code into config.log.
39097 2012-06-19  Bruno Haible  <bruno@clisp.org>
39099         getopt-gnu: Fix exit code overflow in autoconf test.
39100         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
39101         to keep them below < 128.
39103 2012-06-17  Jim Meyering  <meyering@redhat.com>
39105         maint.mk: fix typo in code to derive GPG key at release time
39106         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
39108 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
39110         regex: avoid warning when pointers are not long
39111         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
39112         and uintptr_t, not long, for portability to hosts where pointers and
39113         long have different sizes.  Issue noted by Daniel P. Berrange in
39114         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00122.html>
39115         and fix suggested by Bruno Haible in
39116         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00128.html>.
39118 2012-06-17  Bruno Haible  <bruno@clisp.org>
39120         dummy: Relicense into the public domain.
39121         * modules/dummy (License): Set to "public domain".
39122         Suggested by Reuben Thomas.
39124 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
39126         announce-gen: VPATH issues
39127         * build-aux/announce-gen (--srcdir): New option, used to trim the
39128         $srcdir part of the path from $builddir to NEWS.
39129         * top/maint.mk (announcement): Adjust.
39131 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
39133         gnu-web-doc-update: VPATH builds
39134         * build-aux/gnu-web-doc-update (--builddir): New option.
39135         Revamp the handling of options.
39136         Prefer $(...) to `...`.
39137         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
39138         the template, and it is GNU mktemp specific.
39139         Prefer set -e to long series of &&.
39140         Restore the initial git branch, not "master".
39141         Properly initialize submodules (don't rely only on bootstrap).
39142         Do not reconfigure blindly, use config.status.
39143         * top/README-release: Update instructions for gnu-web-doc-update.
39145 2012-06-11  Jim Meyering  <meyering@redhat.com>
39147         maint.mk: revert most of the previous change re "all these"
39148         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
39149         For rationale, see the discussion at
39150         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
39152 2012-06-10  Karl Berry  <karl@gnu.org>
39154         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
39156         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
39158 2012-06-10  Bruce Korb  <bkorb@gnu.org>
39160         parse-duration: Relicense under LGPLv2+.
39161         * modules/parse-duration (License): Change to LGPLv2+.
39163 2012-06-10  Jim Meyering  <meyering@redhat.com>
39165         maint.mk: prohibit common grammar error: "all these"
39166         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
39167         the list of prohibited word sequences.  It should be "all of these".
39168         * lib/tempname.c (__gen_tempname): Fix one of them.
39170 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
39172         do-release-commit-and-tag: support VPATH builds
39173         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
39174         (noteworthy): Defined earlier to factor its value.
39175         (noteworthy_stub): New.
39176         Use it to factor.
39177         (help_version): Split into...
39178         (help, version): these.
39179         Adjust the option processing part.
39180         Support "--option=value" in addition to "--option value".
39181         (builddir): New.
39182         (--builddir): New option.
39183         * top/README-release: Document this.
39184         Reword slightly so that the reader cannot understand that he
39185         has to do these steps before calling do-release-commit-and-tag.
39187 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
39189         readme-release: also require announce-gen and maintainer-makefile
39190         * modules/readme-release (Depends-on): here.
39191         * modules/announce-gen, modules/do-release-commit-and-tag,
39192         modules/gnu-web-doc-update, modules/maintainer-makefile
39193         (Description): Point to readme-release.
39195 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
39197         maint.mk: fix VPATH issues.
39198         * top/maint.mk (news-check): GNU Make understand $< very well.
39199         (release-prep): NEWS is in $(srcdir).
39201 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
39203         readme-release: require the promoted modules.
39204         * modules/readme-release (Depends-on): Add
39205         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
39206         in this text.
39208 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
39209             Bruno Haible  <bruno@clisp.org>
39211         error, strerror-override: Support mingw64 from Fedora 17.
39212         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
39213         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
39214         EINPROGRESS.
39215         * lib/strerror-override.h (strerror_override): Test it.
39216         * lib/strerror-override.c (strerror_override): Likewise.
39217         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
39219 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
39220             Bruno Haible  <bruno@clisp.org>
39222         error, strerror-override: Support mingw64 from Fedora 17.
39223         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
39224         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
39225         * lib/strerror-override.h (strerror_override): Test it.
39226         * lib/strerror-override.c (strerror_override): Likewise.
39228 2012-06-03  Bruno Haible  <bruno@clisp.org>
39230         error, strerror-override: Support new errno values from POSIX:2008.
39231         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
39232         ENOTRECOVERABLE.
39233         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
39234         platforms.
39235         * lib/strerror-override.c (strerror_override): Conditionalize the
39236         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
39237         * lib/strerror-override.h (strerror_override): Declare also if
39238         GNULIB_defined_EOWNERDEAD is defined.
39239         * tests/test-errno.c (e130, e131): New variables.
39240         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
39241         ENOTRECOVERABLE.
39242         Reported by Paolo Bonzini.
39244 2012-05-31  Jim Meyering  <meyering@redhat.com>
39246         savewd: add missing dependency on sys_wait module
39247         * modules/savewd (Depends-on): Add sys_wait, needed at least
39248         for MSVC.  Report and suggested change by Michael Goffioul.
39250 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
39252         system-quote-tests: port to CentOS 5
39253         Problem reported by Tom G. Christensen in
39254         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00255.html>.
39255         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
39257 2012-05-29  Jim Meyering  <meyering@redhat.com>
39259         maint: fix typos in comments and ChangeLog
39260         Culprits identified and fixed mostly automatically using these commands:
39261         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
39262         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
39263         using http://github.com/lyda/misspell-check
39264         * ChangeLog: Fix typos.
39265         * doc/solaris-versions: Likewise.
39266         * lib/regexec.c (re_search_stub): Likewise.
39267         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
39269 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
39271         manywarnings: remove duplicate -Wmultichar entry
39272         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
39273         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
39274         so keep the entry marked as documented.
39276 2012-05-27  Karl Berry  <karl@gnu.org>
39278         * config/srclist.txt (mktime.c): remove last libc sync,
39279         perhaps just temporarily.
39281 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
39283         regex: don't assume uint64_t or uint32_t
39284         * lib/regcomp.c (init_word_char): Don't assume that the types
39285         uint64_t and uint32_t exist.  The C standard doesn't guarantee
39286         them, and on some 32-bit compilers there is no uint64_t.
39287         Problem reported by Gianluigi Tiesi in
39288         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00154.html>.
39290 2012-05-25  Jim Meyering  <meyering@redhat.com>
39292         maint.mk: add strncpy-prohibiting syntax-check rule
39293         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
39295 2012-05-24  Jim Meyering  <meyering@redhat.com>
39297         maint.mk: compute $(gpg_key_ID) more portably
39298         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
39299         That use of sed is not portable to some fringe systems.
39300         Reported by Paul Eggert in
39301         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
39303 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
39305         mktime: sync from glibc
39306         * config/srclist.txt: Uncomment mktime.c.
39307         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
39308         First, indent with tabs, since glibc uses tabs and doesn't want to
39309         change and we'd rather be identical to glibc.  Also, two small
39310         coding changes:
39311         (isdst_differ): Use &&, not &, as && is the usual style.
39312         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
39313         for clarity.
39315 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
39317         announce-gen: du -h is more portable than du --human
39318         * build-aux/announce-gen (sizes): Invoke du with -h instead
39319         of --human.  Accept leading white space in its output.
39321 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
39323         announce-gen: Improve diagnostics.
39324         * build-aux/announce-gen: When parsing command line options,
39325         prefer "announce-gen: option --release-type requires an argument"
39326         to "Option release-type requires an argument".
39328 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
39330         maint.mk: gpg_key_ID: use sed more portably
39331         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
39332         the closing brace.
39333         (refresh-po): Fuse two sed invocations into one.
39335 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
39337         gitlog-to-changelog: support the log message format used in Bison.
39338         * build-aux/gitlog-to-changelog: Support --strip-tab and
39339         --strip-cherry-picked.
39341 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
39343         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
39344         the rest of the current time slice to another thread in the current
39345         process. So if the thread that feeds the file decscriptor we're
39346         polling is not in the current process, we get busy-waiting.
39347         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
39348         Patch from Theodore Leblond.
39349         * lib/select.c: Split polling out of the loop that sets the output
39350         fd_sets.  Check for zero result and loop if the wait timeout is
39351         infinite.
39353 2012-05-21  Simon Josefsson  <simon@josefsson.org>
39355         select: Fix build error on IRIX 6.5.
39356         * lib/select.c: Include stddef.h for NULL.
39358 2012-05-21  Simon Josefsson  <simon@josefsson.org>
39360         gc: fix libgcrypt detection on older machines.
39361         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
39362         copyright years because the file has been distributed every year
39363         since it was created.
39365 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
39367         crypto: fix bug in large buffer handling
39368         Problem reported by Serge Belyshev for glibc in
39369         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
39370         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00226.html>.
39371         * lib/md4.c (md4_process_block):
39372         * lib/md5.c (md5_process_block):
39373         * lib/sha1.c (sha1_process_block):
39374         * lib/sha256.c (sha256_process_block):
39375         Don't assume the buffer length is less than 2**32.
39376         * lib/sha512.c (sha512_process_block): Likewise.
39377         Here, the bug is present only in the rare case where the host does
39378         not support uint64_t or where size_t is wider than 64 bits.
39379         Use u64size to work around the problems.
39380         * lib/u64.h (u64size): New macro.
39382 2012-05-15  Pádraig Brady  <P@draigBrady.com>
39384         fsusage: fix block size returned on older Linux 2.6
39386         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
39387         which is available since Linux 2.6.
39388         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
39389         when the member is available so it can be used as a fallback.
39390         * doc/posix-functions/statvfs.texi: Mention the hang issue
39391         on Linux < 2.6.36.
39393 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
39395         bootstrap: suppress stderr chatter
39396         * build-aux/bootstrap (insert_sorted_if_absent, main program):
39397         Omit unnecessary chatter to stderr.  The main program chatter
39398         was there only inadvertantly.
39400         bootstrap: .gitignore files created by autopoint, libtool
39401         I ran into this problem when bootstrapping the latest diffutils.
39402         After './bootstrap', 'git status' reported lots of untracked files
39403         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
39404         autopoint and do not need to be version-controlled.
39405         * build-aux/bootstrap: Put into .gitignore the files that
39406         autopoint and libtool create, by keeping track of files that exist
39407         after but not before these programs are run.
39408         (version_controlled_file): Move up.  2nd arg is now full file
39409         name, not base name; this is more convenient.  Put CVS at the end,
39410         as it's now somewhat deprecated.
39412 2012-05-14  Jim Meyering  <meyering@redhat.com>
39414         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
39415         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
39416         definition.  Reported by Bruno Haible.
39418 2012-05-13  Bruno Haible  <bruno@clisp.org>
39419             Paul Eggert  <eggert@cs.ucla.edu>
39421         binary-io: Define set_binary_mode function.
39422         * lib/binary-io.h (set_binary_mode): New function.
39423         (SET_BINARY): Define in terms of set_binary_mode.
39424         * modules/binary-io (configure.ac): Require AC_C_INLINE.
39425         * tests/test-binary-io.c (main): Accept an argument, and test either
39426         set_binary_mode or SET_BINARY depending on the argument.
39427         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
39428         argument. Clean up also t-bin-out0.tmp.
39430 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
39432         bootstrap: take advantage of POSIX shell features
39434         The 'bootstrap' script offered by Gnulib script already uses POSIX
39435         shell features (like $((...)) arithmetic expansions) that are not
39436         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
39437         means that bootstrap must already be run using a proper POSIX shell,
39438         which will thus provide more features, like ${var#pattern} parameter
39439         expansion or inversion of a command exit status with '!'.  We can
39440         thus use these features to improve the clarity and the performances
39441         of the bootstrap script.
39443         Suggested by Eric Blake.
39445         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
39446         of sed/expr plus command substitutions, to save some forks.  While
39447         we are at it, prefer the POSIX $(...) form of command substitution,
39448         rather than the legacy form `...` (since the former is visually
39449         clearer and interacts better with quoting), and prefer the idiom:
39450           "if ! CMD; then ACTION ..."
39451         over the idiom:
39452           "if CMD; then :; else ACTION ..."
39453         which was required by legacy Bourne shells not supporting '!'.
39455 2012-05-12  Bruno Haible  <bruno@clisp.org>
39457         system-quote: Add more comments.
39458         * lib/system-quote.h: Add more comments about wilcards and limitations.
39459         Suggested by Eli Zaretskii <eliz@gnu.org>.
39461         sh-quote, system-quote: Add comments about wildcards.
39462         * lib/sh-quote.h: Clarify what happens with wildcard characters.
39463         * lib/system-quote.h: Likewise.
39464         Reported by Eli Zaretskii <eliz@gnu.org>.
39466 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
39468         fsusage: check for GNU/Linux statvfs problem dynamically
39469         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
39470         Define STAT_STATFS2_BSIZE too, since in this case the code now
39471         checks dynamically whether statvfs is reliable, falling back on
39472         Linux-style statfs otherwise.
39473         (statvfs_works): New function, for dynamically testing statvfs.
39474         (get_fs_usage) [STAT_STATVFS]: Use it.
39475         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
39476         statvfs on GNU/Linux hosts, since it's now done dynamically.
39478 2012-05-10  Bruno Haible  <bruno@clisp.org>
39480         system-quote, execute, spawn-pipe: Escape '?' on Windows.
39481         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
39482         '?' character.
39483         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
39484         * tests/test-system-quote-main.c (check_all): Check also strings like
39485         "??????????".
39486         Reported by Eli Zaretskii <eliz@gnu.org>.
39488 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
39490         _Noreturn: port config.h to gcc -Wundef
39491         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
39492         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
39493         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00147.html>.
39495 2012-05-10  Bruno Haible  <bruno@clisp.org>
39497         system-quote: Refactor.
39498         * lib/system-quote.h (system_quote_copy): Fix comment.
39499         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
39500         New functions, extracted from system_quote_copy.
39501         (system_quote_length, system_quote_copy): Use these functions.
39502         Reported by Paul Eggert.
39504 2012-05-08  Bruno Haible  <bruno@clisp.org>
39506         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
39507         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
39509 2012-05-08  Bruno Haible  <bruno@clisp.org>
39511         Tests for module 'system-quote'.
39512         * modules/system-quote-tests: New file.
39513         * tests/test-system-quote.sh: New file.
39514         * tests/test-system-quote-main.c: New file.
39515         * tests/test-system-quote-child.c: New file.
39517         New module 'system-quote'.
39518         * lib/system-quote.h: New file.
39519         * lib/system-quote.c: New file.
39520         * modules/system-quote: New file.
39522 2012-05-08  Bruno Haible  <bruno@clisp.org>
39524         sh-quote: Make C++ safe and allow multiple inclusion.
39525         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
39526         declarations in extern "C".
39528 2012-05-08  Bruno Haible  <bruno@clisp.org>
39530         sh-quote tests: Make tests stricter.
39531         * tests/test-sh-quote.c (check_one): Check the return value of
39532         shell_quote_copy.
39533         (main): Check a string with a CR character. Check a string that
39534         contains UCHAR_MAX.
39536 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
39538         warnings.m4: provide a means to specify the program to compile.
39539         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
39540         (gl_WARN_ADD): here.
39541         Use gl_AS_VAR_APPEND.
39542         Support an argument to specify the program to compile.
39543         (gl_WARN_ADD): Accept an argument to specify the program to compile.
39544         AC_SUBST the WARN_CFLAGS when they are used.
39545         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
39546         leave this to gl_WARN_ADD.
39548 2012-05-08  Eric Blake  <eblake@redhat.com>
39550         doc: recommendations on gettext version
39551         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
39552         choice between versions.
39553         * DEPENDENCIES (gettext): Cover both approaches.
39555 2012-05-08  Jim Meyering  <meyering@redhat.com>
39557         init.sh: explain why EXEEXT support uses aliases rather than functions
39558         * tests/init.sh: Add a comment.
39560         init.sh: don't let bash aliases interfere with tests
39561         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
39562         is bash.  This avoids problems for those who alias standard commands to
39563         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
39564         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
39566 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
39568         stdint: be more consistent with glibc, SunOS libc
39569         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
39570         (gl_int_fast16_t, gl_uint_fast16_t)
39571         (gl_int_fast32_t, gl_uint_fast32_t)
39572         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
39573         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
39574         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
39575         Be consistent with glibc by default, and with SunOS 5.10 and later
39576         if __sun is defined.  This lessens the likelihood of clashes if
39577         code compiled for older hosts is combined with code compiled for
39578         newer ones.  Problem reported by Niels Möller in
39579         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00074.html>.
39581 2012-05-07  Eric Blake  <eblake@redhat.com>
39583         isatty: relax license to LGPLv2+
39584         * modules/isatty (License): Relax license.
39586 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
39588         stat-size: comment fix
39589         * lib/stat-size.h: Remove obsolete comment about indenting.
39591 2012-05-06  Bruno Haible  <bruno@clisp.org>
39593         Tests for module 'sh-quote'.
39594         * modules/sh-quote-tests: New file.
39595         * tests/test-sh-quote.c: New file.
39597 2012-05-06  Bruno Haible  <bruno@clisp.org>
39599         sh-quote: Improve shell_quote_argv's signature.
39600         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
39601         * lib/sh-quote.c (shell_quote_argv): Likewise.
39603 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
39605         stdint: document issues with int_fast8_t etc.
39606         * doc/posix-headers/stdint.texi (stdint.h): Say that other
39607         stdint.h substitutes may define these types differently.  See
39608         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00071.html>.
39610 2012-05-05  Bruno Haible  <bruno@clisp.org>
39612         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
39613         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
39614         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
39615         or 'guessing no (mishandles large arguments)'.
39617 2012-05-05  Bruno Haible  <bruno@clisp.org>
39619         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
39620         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
39621         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
39622         set gl_cv_func_link_follows_symlink to "guessing no".
39624 2012-05-05  Bruno Haible  <bruno@clisp.org>
39626         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
39627         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
39628         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
39629         "guessing no".
39630         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
39632 2012-05-05  Bruno Haible  <bruno@clisp.org>
39634         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
39635         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
39636         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
39637         set gl_cv_struct_dirent_d_ino to "guessing yes".
39639 2012-05-05  Bruno Haible  <bruno@clisp.org>
39641         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
39642         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
39643         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
39644         "guessing yes".
39646 2012-05-05  Bruno Haible  <bruno@clisp.org>
39648         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
39649         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
39650         compiling to a glibc system, set gl_cv_func_signbit and
39651         gl_cv_func_signbit_gcc to "guessing yes".
39653 2012-05-05  Bruno Haible  <bruno@clisp.org>
39655         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
39656         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
39657         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
39658         to "guessing yes".
39659         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
39660         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
39662 2012-05-05  Bruno Haible  <bruno@clisp.org>
39664         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
39665         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
39666         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
39667         gl_cv_func_realpath_works to "guessing yes".
39669 2012-05-05  Bruno Haible  <bruno@clisp.org>
39671         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
39672         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
39673         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
39675 2012-05-04  Bruno Haible  <bruno@clisp.org>
39677         Tweak last commit.
39678         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
39679         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
39681 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
39683         unistd_h: make it easier to avoid sys_types_h
39684         This is useful for Emacs, which has its own method of porting to
39685         Windows, and which therefore does not need the sys_types_h module.
39686         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
39687         code moved here from gl_SYS_TYPES_H.
39688         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
39689         using the code directly.
39690         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
39691         gl_SYS_TYPES_H.
39692         * modules/sys_types (Files):
39693         * modules/unistd (Files): Add m4/off_t.m4.
39695 2012-05-03  Bruno Haible  <bruno@clisp.org>
39697         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
39698         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
39699         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
39700         "guessing yes" or "guessing no".
39701         (gl_FUNC_LSTAT): Update.
39702         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
39703         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
39704         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
39706 2012-05-03  Bruno Haible  <bruno@clisp.org>
39708         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
39709         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
39710         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
39711         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
39712         cross-compiling, choose the first alternative on glibc systems.
39713         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
39715 2012-05-03  Bruno Haible  <bruno@clisp.org>
39717         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
39718         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
39719         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
39721 2012-05-03  Bruno Haible  <bruno@clisp.org>
39723         chown: Avoid "guessing no" when cross-compiling to glibc systems.
39724         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
39726 2012-05-03  Bruno Haible  <bruno@clisp.org>
39728         Avoid "guessing no" guesses when cross-compiling to glibc systems.
39729         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
39730         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
39731         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
39732         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
39733         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
39734         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
39735         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
39736         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
39737         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
39738         compiling to glibc systems, set gl_cv_func_chown_slash_works,
39739         gl_cv_func_chown_ctime_works to "guessing yes".
39740         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
39741         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
39742         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
39743         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
39744         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
39745         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
39746         compiling to glibc systems, set gl_cv_func_open_directory_works to
39747         "guessing yes".
39748         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
39749         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
39750         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
39751         "guessing yes".
39752         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
39753         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
39754         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
39755         compiling to glibc systems, set gl_cv_func_floorf_ieee to
39756         "guessing yes".
39757         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
39758         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
39759         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
39760         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
39761         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
39762         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
39763         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
39764         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
39765         "guessing yes".
39766         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
39767         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
39768         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
39769         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
39770         "guessing yes".
39771         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
39772         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
39773         "guessing yes".
39774         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
39775         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
39776         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
39777         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
39778         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
39779         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
39780         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
39781         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
39782         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
39783         compiling to glibc systems, set gl_cv_func_log10f_ieee to
39784         "guessing yes".
39785         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
39786         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
39787         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
39788         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
39789         "guessing yes".
39790         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
39791         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
39792         "guessing yes".
39793         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
39794         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
39795         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
39796         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
39797         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
39798         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
39799         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
39800         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
39801         compiling to glibc systems, set gl_cv_func_mkfifo_works to
39802         "guessing yes".
39803         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
39804         compiling to glibc systems, set gl_cv_func_mknod_works to
39805         "guessing yes".
39806         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
39807         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
39808         "guessing yes".
39809         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
39810         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
39811         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
39812         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
39813         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
39814         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
39815         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
39816         compiling to glibc systems, set gl_cv_func_svid_putenv to
39817         "guessing yes".
39818         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
39819         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
39820         "guessing yes".
39821         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
39822         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
39823         "guessing yes".
39824         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
39825         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
39826         to "guessing yes".
39827         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
39828         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
39829         to "guessing yes".
39830         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
39831         compiling to glibc systems, set gl_cv_func_rmdir_works to
39832         "guessing yes".
39833         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
39834         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
39835         gl_cv_func_unlink_parent_fails to "guessing yes".
39836         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
39837         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
39838         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
39839         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
39840         gl_cv_func_rename_dest_works to "guessing yes".
39841         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
39842         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
39843         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
39844         compiling to glibc systems, set gl_cv_func_roundf_ieee to
39845         "guessing yes".
39846         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
39847         compiling to glibc systems, set gl_cv_func_roundl_ieee to
39848         "guessing yes".
39849         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
39850         compiling to glibc systems, set gl_cv_func_setenv_works to
39851         "guessing yes".
39852         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
39853         compiling to glibc systems, set gl_cv_func_unsetenv_works to
39854         "guessing yes".
39855         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
39856         compiling to glibc systems, set gl_cv_func_sleep_works to
39857         "guessing yes".
39858         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
39859         compiling to glibc systems, set gl_cv_func_stat_file_slash to
39860         "guessing yes".
39861         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
39862         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
39863         "guessing yes".
39864         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
39865         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
39866         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
39867         compiling to glibc systems, set gl_cv_func_truncf_ieee to
39868         "guessing yes".
39869         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
39870         compiling to glibc systems, set gl_cv_func_truncl_ieee to
39871         "guessing yes".
39872         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
39873         compiling to glibc systems, set gl_cv_func_usleep_works to
39874         "guessing yes".
39875         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
39876         compiling to glibc systems, set gl_cv_func_futimesat_works to
39877         "guessing yes".
39879 2012-05-03  Bruno Haible  <bruno@clisp.org>
39881         Say "guessing yes" or "guessing no" when cross-compiling.
39882         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
39883         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
39884         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
39885         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
39886         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
39887         am_cv_func_working_getline to "guessing yes" or "guessing no".
39888         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
39889         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
39890         (gl_FUNC_MEMMEM): When cross-compiling, set
39891         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
39892         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
39893         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
39894         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
39895         set gl_cv_func_strcasestr_works_always to "guessing yes" or
39896         "guessing no".
39897         (gl_FUNC_STRCASESTR): When cross-compiling, set
39898         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
39899         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
39900         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
39901         (gl_FUNC_STRSTR): When cross-compiling, set
39902         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
39903         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
39904         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
39905         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
39906         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
39908 2012-05-01  Bruno Haible  <bruno@clisp.org>
39910         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
39911         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
39912         * build-aux/reloc-ldflags: Likewise.
39913         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
39915 2012-05-01  Bruno Haible  <bruno@clisp.org>
39917         gnulib-tool: Remove transitional code.
39918         * gnulib-tool: Don't warn about --import with 0 arguments any more.
39919         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
39921 2012-05-01  Bruno Haible  <bruno@clisp.org>
39923         getcwd: Fix misindentation.
39924         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
39926 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
39928         exclude: process exclude and include directives in order
39929         This restores the pre-2009 behavior, and is part of a fix of a
39930         grep bug reported by Quentin Arce in
39931         <http://lists.gnu.org/r/bug-grep/2012-04/msg00056.html>.
39932         * lib/exclude.c (struct exclude): Remove 'tail' member.
39933         (new_exclude_segment): Prepend the new segment instead of appending.
39934         Return void, since that's now more convenient.
39935         (file_pattern_matches): Renamed from excluded_file_pattern_p.
39936         (file_name_matches): Renamed from excluded_file_name_p.
39937         (file_pattern_matches, file_name_matches):
39938         Return true if the pattern matches, not if it excludes.
39939         All callers changed.
39940         (excluded_file_name): Process the list in reverse order;
39941         since the list is now reversed this restores the pre-2009 behavior.
39942         (add_exclude): Adjust to new reversed-order list.  Use local var
39943         rather than macro, for clarity.
39944         * tests/test-exclude7.sh: Adjust to corrected behavior.
39946         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
39947         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
39948         it's not possible here.  Handle the case of \ at end of pattern
39949         without dumping core.
39950         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
39952         _Noreturn: future-proof non-GNU and non-MSVC compilers
39953         * build-aux/snippet/_Noreturn.h (_Noreturn):
39954         * m4/gnulib-common.m4 (gl_COMMON_BODY):
39955         Do not define _Noreturn if __STDC_VERSION__ indicates this is
39956         C11 or later.  This is more likely to work with random future C
39957         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
39958         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00195.html>.
39960         exclude: handle wildcards with FNM_EXTMATCH
39961         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
39962         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
39963         comment that "has wildcards" really means "has or may have
39964         wildcards".  Simplify by avoiding the need to call strcspn.
39966 2012-04-29  Bruno Haible  <bruno@clisp.org>
39968         gnulib-tool: Fix list of authors.
39969         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
39971 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
39973         bootstrap: support Automake-NG in $buildreq
39974         * bootstrap (check_versions): Handle automake and aclocal from
39975         Automake-NG specially.  They can be specified as respectively
39976         the "automake-ng" and "aclocal-ng" requirements.
39978 2012-04-25  Eric Blake  <eblake@redhat.com>
39980         bootstrap: only force latest Makefile.in.in for gettext module
39981         * build-aux/bootstrap (with_gettext): Only install latest
39982         Makefile.in.in for projects requesting bleeding edge gettext.
39984 2012-04-22  Bruno Haible  <bruno@clisp.org>
39986         doc: Mention reason for replacement on glibc/Linux systems.
39987         * doc/posix-functions/dprintf.texi: Mention the problem with special
39988         'long double' values.
39989         * doc/posix-functions/fprintf.texi: Likewise.
39990         * doc/posix-functions/printf.texi: Likewise.
39991         * doc/posix-functions/snprintf.texi: Likewise.
39992         * doc/posix-functions/sprintf.texi: Likewise.
39993         * doc/posix-functions/vdprintf.texi: Likewise.
39994         * doc/posix-functions/vfprintf.texi: Likewise.
39995         * doc/posix-functions/vprintf.texi: Likewise.
39996         * doc/posix-functions/vsnprintf.texi: Likewise.
39997         * doc/posix-functions/vsprintf.texi: Likewise.
39998         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
39999         platforms with F_DUPFD_CLOEXEC problems.
40000         * doc/posix-functions/glob.texi: Mention which platforms are affected
40001         by the problem with symbolic links.
40002         * doc/posix-functions/linkat.texi: Mention the problem with
40003         AT_SYMLINK_FOLLOW on Linux.
40005 2012-04-22  Bruno Haible  <bruno@clisp.org>
40007         pwrite: Don't replace on all platforms.
40008         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
40010 2012-04-22  Bruno Haible  <bruno@clisp.org>
40012         rint* tests: Avoid gcc warnings.
40013         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
40014         * tests/test-rintf.c (INFINITY, NAN): Likewise.
40015         * tests/test-rintl.c (INFINITY, NAN): Likewise.
40017 2012-04-21  Bruno Haible  <bruno@clisp.org>
40019         users.txt: Update.
40020         * users.txt: Add freedink, wdiff. Update URLs for projects that have
40021         switched from CVS to git, bzr, or svn.
40023 2012-04-21  Bruno Haible  <bruno@clisp.org>
40025         Large File Support for native Windows platforms.
40027         * m4/largefile.m4 (gl_LARGEFILE): New macro.
40028         * modules/largefile (configure.ac): Require gl_LARGEFILE.
40030         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
40031         type.
40032         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
40033         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
40034         * doc/posix-headers/sys_types.texi: Mention the effect of the
40035         'largefile' module.
40037         * lib/fcntl.in.h: Add comments about off_t.
40038         * modules/fcntl-h (Depends-on): Add sys_types.
40040         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
40041         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
40042         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
40043         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
40044         * modules/unistd (Depends-on): Add sys_types.
40045         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
40047         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
40048         instead of lseek.
40049         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
40050         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
40051         * modules/lseek (Depends-on): Add sys_types.
40053         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
40054         msvc-nothrow.h.
40055         (SetFileSize): New function.
40056         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
40057         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
40058         if Large File Support is requested.
40059         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
40060         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
40062         * lib/stdio.in.h: Add comments about off_t.
40063         * modules/stdio (Depends-on): Add sys_types.
40065         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
40066         instead of ftello.
40067         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
40068         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
40069         (gl_PREREQ_FTELLO): New macro.
40070         * modules/ftello (Depends-on): Add sys_types.
40071         (configure.ac): Incoke gl_PREREQ_FTELLO.
40073         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
40074         instead of fseeko.
40075         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
40076         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
40077         (gl_PREREQ_FSEEKO): New macro.
40078         * modules/fseeko (Depends-on): Add sys_types.
40079         (configure.ac): Invoke gl_PREREQ_FSEEKO.
40081         * lib/sys_stat.in.h: Add comments about off_t.
40082         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
40083         64-bit integer for st_size in 'struct stat'.
40084         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
40085         Define _GL_WINDOWS_64_BIT_ST_SIZE.
40086         * modules/sys_stat (Depends-on): Add sys_types.
40087         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
40089         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
40090         instead of stat or _stat.
40092         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
40093         'struct _stati64' instead of fstat and 'struct stat'.
40094         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
40095         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
40097         Reported by Ray Satiro <raysatiro@yahoo.com>.
40099 2012-04-19  Eric Blake  <eblake@redhat.com>
40101         bootstrap: accommodate older libtool
40102         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
40103         Reported by Daniel P. Berrange.
40105 2012-04-19  Jim Meyering  <meyering@redhat.com>
40107         announce-gen: avoid failure due to lack of Digest::SHA1
40108         Even with the preferred Digest::SHA available, this script
40109         would fail when the backup module, Digest::SHA1, was not installed.
40110         * build-aux/announce-gen: Quote the conditional use of "use".
40111         Reported by Reuben Thomas in:
40112         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
40114         bootstrap: don't let a user's CDPATH setting affect this script
40115         When CDPATH is set, cd will sometimes generate output.
40116         When "cd" is run in a subshell whose output matters, that
40117         surprising-to-some output can cause malfunction.
40118         Unsetting CDPATH turns off this shell "feature."
40119         * build-aux/bootstrap (CDPATH): Unset.
40120         Reported by Reuben Thomas in:
40121         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
40122         and inspired by his patch here:
40123         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
40125 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
40126         and Jim Meyering  <meyering@redhat.com>
40128         maint.mk: catch "see @xref{}" and similar
40129         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
40130         prohibit "See also @xref{", "Also see @pxref{", and similar.
40132 2012-04-16  Jim Meyering  <meyering@redhat.com>
40134         bootstrap: really use gnulib's po/Makefile.in.in
40135         * build-aux/bootstrap: Correct the source file name in previous change.
40136         Reported by Akim Demaille.
40138         configmake: correct minor inconsistency in Makefile rule
40139         * modules/configmake (Makefile.am): All other rules like this one
40140         run the final "mv -f ..." in the same backslash-continued command
40141         as the one that does everything else.  This one put the mv -f ...
40142         command on a separate, non-backslash-continued line.
40143         Make it like the others.
40145         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
40146         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
40147         the one from gettext.  Reported by Akim Demaille.
40149 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
40151         Fix recursion of install-* into po directories.
40152         Bison's install-pdf bug reported by Hans Aberg at
40153         <http://lists.gnu.org/r/bug-bison/2011-05/msg00008.html>.
40154         * build-aux/po/Makefile.in.in (install-dvi, install-html)
40155         (install-info, install-pdf, install-ps): New targets.
40157 2012-04-16  Jim Meyering  <meyering@redhat.com>
40159         maint: avoid spurious "make sc_maint" failure
40160         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
40161         exempt all *.class file names, for lib/javaversion.class.
40163 2012-04-15  Bruno Haible  <bruno@clisp.org>
40165         lseek: Make configure test independent of environment.
40166         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
40167         Windows, we know that lseek() on pipes is broken; skip the runtime
40168         test.
40170 2012-04-14  Bruno Haible  <bruno@clisp.org>
40172         stat: Bypass buggy override in mingw64.
40173         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
40174         * lib/stat.c (stat) [mingw64]: Define to _stat.
40175         * doc/posix-functions/stat.texi: Mention mingw64 bug.
40177 2012-04-14  Bruno Haible  <bruno@clisp.org>
40179         pathmax: Fix compilation error on MSVC 9.
40180         * modules/pathmax (Depends-on): Add unistd.
40182 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
40184         README: document pointer comparison assumption
40185         * README (Portability guidelines): Document assumption about
40186         pointer comparisons, in response to a recent bug-gnulib comment by
40187         Jeffrey Kegler.
40189 2012-04-12  Bruno Haible  <bruno@clisp.org>
40191         Tests for module 'getrusage'.
40192         * modules/getrusage-tests: New file.
40193         * tests/test-getrusage.c: New file.
40195         New module 'getrusage'.
40196         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
40197         warn-on-use.h.
40198         (getrusage): New declaration.
40199         * lib/getrusage.c: New file.
40200         * m4/getrusage.m4: New file.
40201         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
40202         is declared.
40203         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
40204         HAVE_GETRUSAGE.
40205         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
40206         snippet/c++defs, snippet/warn-on-use.
40207         (Makefile.am): Update generation of sys/resource.h. Substitute
40208         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
40209         * modules/getrusage: New file.
40210         * doc/posix-functions/getrusage.texi: Mention the new module.
40212 2012-04-12  Bruno Haible  <bruno@clisp.org>
40214         Tests for module 'sys_resource'.
40215         * modules/sys_resource-tests: New file.
40216         * tests/test-sys_resource.c: New file.
40218         New module 'sys_resource'.
40219         * lib/sys_resource.in.h: New file.
40220         * m4/sys_resource_h.m4: New file.
40221         * modules/sys_resource: New file.
40222         * doc/posix-headers/sys_resource.texi: Mention the new module.
40224 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
40226         ioctl: Fix compilation error on mingw.
40227         * lib/ioctl.c: Include <windows.h>.
40228         Also reported by Ray Satiro <raysatiro@yahoo.com>.
40230 2012-04-04  Jim Meyering  <meyering@redhat.com>
40232         regex: correct #pragma guard expression
40233         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
40234         not 4.3.  Correct its cpp guard expression.
40236 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
40238         regex: remove unnecessary type punning
40239         Problem reported by Vladimir Serbinenko in
40240         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00006.html>.
40241         * lib/regex.h (struct re_pattern_buffer): Change the type of
40242         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
40243         Fix comment to match code.
40244         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
40245         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
40246         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
40247         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
40248         (set_regs):
40249         Omit no-longer-necessary casts.
40251 2012-04-03  Bruno Haible  <bruno@clisp.org>
40253         Tests for module 'ilogbl'.
40254         * modules/ilogbl-tests: New file.
40255         * tests/test-ilogbl.c: New file.
40257         New module 'ilogbl'.
40258         * lib/math.in.h (ilogbl): New declaration.
40259         * lib/ilogbl.c: New file.
40260         * m4/ilogbl.m4: New file.
40261         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
40262         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
40263         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
40264         Split sed invocation, to avoid the limit of 100 substitutions of
40265         HP-UX 'sed'.
40266         * modules/ilogbl: New file.
40267         * tests/test-math-c++.cc: Check the declaration of ilogbl.
40268         * doc/posix-functions/ilogbl.texi: Mention the new module.
40270 2012-04-03  Bruno Haible  <bruno@clisp.org>
40272         Tests for module 'ilogbf'.
40273         * modules/ilogbf-tests: New file.
40274         * tests/test-ilogbf.c: New file.
40276         New module 'ilogbf'.
40277         * lib/math.in.h (ilogbf): New declaration.
40278         * lib/ilogbf.c: New file.
40279         * m4/ilogbf.m4: New file.
40280         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
40281         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
40282         REPLACE_ILOGBF.
40283         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
40284         REPLACE_ILOGBF.
40285         * modules/ilogbf: New file.
40286         * tests/test-math-c++.cc: Check the declaration of ilogbf.
40287         * doc/posix-functions/ilogbf.texi: Mention the new module.
40289 2012-04-03  Bruno Haible  <bruno@clisp.org>
40291         Tests for module 'ilogb'.
40292         * modules/ilogb-tests: New file.
40293         * tests/test-ilogb.c: New file.
40294         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
40295         tests/test-logb-ieee.h.
40297         New module 'ilogb'.
40298         * lib/math.in.h (ilogb): New declaration.
40299         * lib/ilogb.c: New file.
40300         * m4/ilogb.m4: New file.
40301         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
40302         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
40303         REPLACE_ILOGB.
40304         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
40305         REPLACE_ILOGB.
40306         * modules/ilogb: New file.
40307         * tests/test-math-c++.cc: Check the declaration of ilogb.
40308         * doc/posix-functions/ilogb.texi: Mention the new module.
40310 2012-04-03  Bruno Haible  <bruno@clisp.org>
40312         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
40313         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
40314         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
40315         (main): Check their values.
40316         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
40317         problem.
40319 2012-04-03  Bruno Haible  <bruno@clisp.org>
40321         Tests for module 'logbl-ieee'.
40322         * modules/logbl-ieee-tests: New file.
40323         * tests/test-logbl-ieee.c: New file.
40325         New module 'logbl-ieee'.
40326         * modules/logbl-ieee: New file.
40328         Tests for module 'logb-ieee'.
40329         * modules/logb-ieee-tests: New file.
40330         * tests/test-logb-ieee.c: New file.
40332         New module 'logb-ieee'.
40333         * modules/logb-ieee: New file.
40335         Tests for module 'logbf-ieee'.
40336         * modules/logbf-ieee-tests: New file.
40337         * tests/test-logbf-ieee.c: New file.
40338         * tests/test-logb-ieee.h: New file.
40340         New module 'logbf-ieee'.
40341         * modules/logbf-ieee: New file.
40343 2012-04-03  Bruno Haible  <bruno@clisp.org>
40345         Tests for module 'logbl'.
40346         * modules/logbl-tests: New file.
40347         * tests/test-logbl.c: New file.
40349         New module 'logbl'.
40350         * lib/math.in.h (logbl): New declaration.
40351         * lib/logbl.c: New file.
40352         * m4/logbl.m4: New file.
40353         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
40354         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
40355         REPLACE_LOGBL.
40356         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
40357         REPLACE_LOGBL.
40358         * modules/logbl: New file.
40359         * tests/test-math-c++.cc: Check the declaration of logbl.
40360         * doc/posix-functions/logbl.texi: Mention the new module.
40362 2012-04-02  Bruno Haible  <bruno@clisp.org>
40364         Tests for module 'logbf'.
40365         * modules/logbf-tests: New file.
40366         * tests/test-logbf.c: New file.
40368         New module 'logbf'.
40369         * lib/math.in.h (logbf): New declaration.
40370         * lib/logbf.c: New file.
40371         * m4/logbf.m4: New file.
40372         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
40373         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
40374         REPLACE_LOGBF.
40375         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
40376         REPLACE_LOGBF.
40377         * modules/logbf: New file.
40378         * tests/test-math-c++.cc: Check the declaration of logbf.
40379         * doc/posix-functions/logbf.texi: Mention the new module.
40381 2012-04-02  Bruno Haible  <bruno@clisp.org>
40383         logb tests: More tests.
40384         * tests/test-logb.h: New file, based on tests/test-logb.c and
40385         tests/test-frexp.h.
40386         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
40387         (main): Just invoke test_function.
40388         * modules/logb-tests (Files): Add tests/test-logb.h,
40389         tests/minus-zero.h, tests/randomd.c.
40390         (Makefile.am): Add randomd.c to test_logb_SOURCES.
40392         logb: Provide replacement and workarounds.
40393         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
40394         is 1.
40395         * lib/logb.c: New file.
40396         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
40397         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
40398         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
40399         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
40400         * modules/logb (Files): Add lib/logb.c.
40401         (Depends-on): Add isfinite, frexp, isnand.
40402         (configure.ac): Compile the replacement code logb.c if needed.
40403         * tests/test-math-c++.cc: Check the declaration of logb.
40404         * doc/posix-functions/logb.texi: Mention the replacement and the bug
40405         with subnormal numbers.
40407 2012-04-02  Bruno Haible  <bruno@clisp.org>
40409         log10* tests: Speed up.
40410         * tests/test-log10.h (test_function): Reduce amount of random numbers
40411         to test.
40413 2012-04-01  Bruno Haible  <bruno@clisp.org>
40415         logf-ieee: Fix test whether logf works.
40416         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
40418 2012-04-01  Bruno Haible  <bruno@clisp.org>
40420         log10l: Work around log10l-ieee test failure on IRIX 6.5.
40421         * lib/log10l.c: Include <float.h>
40422         (log10l): On IRIX, normalize the +Infinity value.
40423         * modules/log10l (Depends-on): Add 'float'.
40424         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
40425         +Infinity.
40427         log10f-ieee: Work around test failure on NetBSD 5.1.
40428         * m4/log10f-ieee.m4: New file.
40429         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
40430         test whether log10f works with a negative argument. Replace it if not.
40431         * lib/log10f.c (log10f): For negative arguments, return NaN.
40432         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
40433         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
40434         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
40436         log10f-ieee: Work around test failure on Solaris 9.
40437         * modules/log10f-ieee (Depends-on): Add log10-ieee.
40438         (configure.ac): Require gl_FUNC_LOG10F.
40440         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
40441         * m4/log10-ieee.m4: New file.
40442         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
40443         whether log10 works with a negative argument. Replace it if not.
40444         * lib/log10.c (log10): For negative arguments, return NaN.
40445         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
40446         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
40447         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
40449         Tests for module 'log10l-ieee'.
40450         * modules/log10l-ieee-tests: New file.
40451         * tests/test-log10l-ieee.c: New file.
40453         New module 'log10l-ieee'.
40454         * modules/log10l-ieee: New file.
40456         Tests for module 'log10-ieee'.
40457         * modules/log10-ieee-tests: New file.
40458         * tests/test-log10-ieee.c: New file.
40460         New module 'log10-ieee'.
40461         * modules/log10-ieee: New file.
40463         Tests for module 'log10f-ieee'.
40464         * modules/log10f-ieee-tests: New file.
40465         * tests/test-log10f-ieee.c: New file.
40466         * tests/test-log10-ieee.h: New file.
40468         New module 'log10f-ieee'.
40469         * modules/log10f-ieee: New file.
40471 2012-04-01  Bruno Haible  <bruno@clisp.org>
40473         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
40474         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
40475         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
40476         workaround.
40477         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
40478         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
40479         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
40480         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
40481         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
40482         (Depends-on): Update conditions.
40483         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
40484         IRIX 6.5, OSF/1 5.1 problems.
40486 2012-04-01  Bruno Haible  <bruno@clisp.org>
40488         log10f: Work around OSF/1 5.1 bug.
40489         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
40490         * lib/log10f.c (log10f): If logf exists, use it and provide just the
40491         workaround.
40492         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
40493         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
40494         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
40495         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
40496         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
40497         (Depends-on): Update conditions.
40498         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
40500 2012-04-01  Bruno Haible  <bruno@clisp.org>
40502         log10: Work around OSF/1 5.1 bug.
40503         * lib/math.in.h (log10): New declaration.
40504         * lib/log10.c: New file.
40505         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
40506         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
40507         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
40508         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
40509         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
40510         * modules/log10 (Files): Add lib/log10.c.
40511         (Depends-on): Add math.
40512         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
40513         * tests/test-math-c++.cc: Check the declaration of log10.
40514         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
40516 2012-03-31  Bruno Haible  <bruno@clisp.org>
40518         log10l tests: More tests.
40519         * modules/log10l-tests (Files): Add tests/test-log10l.h,
40520         tests/minus-zero.h, tests/randoml.c.
40521         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
40522         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
40523         (main): Invoke test_function.
40525         log10f tests: More tests.
40526         * modules/log10f-tests (Files): Add tests/test-log10.h,
40527         tests/minus-zero.h, tests/randomf.c.
40528         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
40529         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
40530         (main): Invoke test_function.
40532         log10 tests: More tests.
40533         * tests/test-log10.h: New file.
40534         * modules/log10-tests (Files): Add tests/test-log10.h,
40535         tests/minus-zero.h, tests/randomd.c.
40536         (Makefile.am): Add randomd.c to test_log10_SOURCES.
40537         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
40538         (main): Invoke test_function.
40540 2012-03-31  Simon Josefsson  <simon@josefsson.org>
40542         fflush: Fix syntax error.
40543         * lib/fflush.c: Include unused-parameter.h, needed for
40544         _GL_UNUSED_PARAMETER.
40545         * modules/fflush (Depends-on): Add snippet/unused-parameter.
40547 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
40549         regex: pacify GCC when compiling GRUB
40550         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
40551         a diagnostic.  Reported by Vladimir Serbinenko in
40552         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00163.html>.
40554 2012-03-29  Eric Blake  <eblake@redhat.com>
40556         stdio: don't assume gets any more
40557         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
40558         support.
40559         * modules/stdio (Makefile.am): Likewise.
40560         * lib/stdio-read.c (gets): Likewise.
40561         * tests/test-stdio-c++.cc: Likewise.
40562         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
40563         * lib/stdio.in.h (gets): Make warning occur in more places.
40564         * doc/posix-functions/gets.texi (gets): Update documentation.
40565         Reported by Christer Solskogen.
40567         maint.mk: fix syntax checks without exclusions
40568         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
40569         Reported by Daniel P. Berrange.
40571         strerror_r: avoid compiler warning
40572         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
40573         level.
40575         fflush: avoid compiler warning
40576         * lib/fflush.c (update_fpos_cache): Mark variables that are
40577         potentially unused.
40579 2012-03-25  Bruno Haible  <bruno@clisp.org>
40581         Tests for module 'localeconv'.
40582         * modules/localeconv-tests: New file.
40583         * tests/test-localeconv.c: New file.
40585         New module 'localeconv'.
40586         * lib/locale.in.h (localeconv): New declaration.
40587         * lib/localeconv.c: New file.
40588         * m4/localeconv.m4: New file.
40589         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
40590         REPLACE_LOCALECONV.
40591         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
40592         REPLACE_LOCALECONV.
40593         * modules/localeconv: New file.
40594         * modules/nl_langinfo (Depends-on): Add localeconv.
40595         * modules/human (Depends-on): Likewise.
40596         * doc/posix-functions/localeconv.texi: Mention the new module.
40598 2012-03-25  Bruno Haible  <bruno@clisp.org>
40600         locale: Provide a complete 'struct lconv'.
40601         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
40602         'struct lconv' does not contain int_p_cs_precedes.
40603         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
40604         * doc/posix-headers/locale.texi: Update.
40606         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
40607         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
40608         * doc/posix-headers/locale.texi: Update.
40610         locale: Provide a working 'struct lconv'.
40611         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
40612         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
40613         'struct lconv' does not even contain decimal_point.
40614         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
40615         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
40616         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
40617         * doc/posix-headers/locale.texi: Mention the problems with
40618         'struct lconv'.
40619         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
40621 2012-03-24  Bruno Haible  <bruno@clisp.org>
40623         Enable common subexpression optimization in GCC.
40624         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
40625         macros.
40626         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
40627         GCC attribute 'const'.
40628         (uc_locale_language): Declare with GCC attribute 'pure'.
40629         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
40630         with GCC attribute 'const'.
40631         * lib/unictype.in.h (uc_is_general_category_withtable,
40632         uc_combining_class, uc_combining_class_name,
40633         uc_combining_class_long_name, uc_bidi_class_name,
40634         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
40635         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
40636         uc_decimal_value, uc_digit_value, uc_numeric_value,
40637         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
40638         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
40639         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
40640         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
40641         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
40642         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
40643         Declare with GCC attribute 'const'.
40644         (uc_general_category_name, uc_general_category_long_name,
40645         uc_general_category_byname, uc_general_category,
40646         uc_is_general_category, uc_combining_class_byname,
40647         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
40648         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
40649         Declare with GCC attribute 'pure'.
40650         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
40651         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
40652         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
40653         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
40654         with GCC attribute 'pure'.
40655         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
40656         'const'.
40657         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
40658         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
40659         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
40660         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
40661         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
40662         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
40663         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
40664         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
40665         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
40666         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
40667         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
40668         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
40669         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
40670         GCC attribute 'pure'.
40671         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
40672         'const'.
40673         * lib/uniwidth.in.h (uc_width): Simplify declaration.
40674         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
40675         u32_strwidth): Declare with GCC attribute 'pure'.
40677         Enable common subexpression optimization in GCC.
40678         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
40679         (alphasort): Declare with GCC attribute 'pure'.
40680         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
40681         (atoll): Declare with GCC attribute 'pure'.
40682         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
40683         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
40684         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
40685         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
40686         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
40687         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
40688         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
40690 2012-03-24  Bruno Haible  <bruno@clisp.org>
40692         gnulib-tool: Avoid unintended error output from 'cmp'.
40693         * gnulib-tool (func_add_file, func_update_file, func_import): Use
40694         "cmp -s", not "cmp > /dev/null".
40696 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
40698         gnulib-tool: fix imprecise comments w.r.t. an automake bug
40700         It's not just Automake versions < 1.9b that creates an empty
40701         pkgdatadir at installation time if pkgdata_DATA is specified
40702         to empty; modern automake versions do this as well, at least
40703         until automake 1.11.4 (not yet released at the moment of writing,
40704         but soon to appear).  That behaviour was generally considered a
40705         feature rather than a bug, at least until this discussion:
40706         <http://lists.gnu.org/r/automake/2012-03/msg00014.html>
40708         See also automake bugs #10997 and #11030.
40710         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
40711         reference to relevant automake bug numbers.
40712         (func_emit_tests_Makefile_am): Likewise.
40714 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
40716         announce-gen: use Digest::SHA when possible
40717         * build-aux/announce-gen: Use Digest::SHA when possible, falling
40718         back to Digest::SHA1 if necessary.
40720 2012-03-20  Jim Meyering  <meyering@redhat.com>
40722         tests: avoid gcc warnings about argv vs. const initializers
40723         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
40724         warnings about discarding 'const' qualifier from pointer target type.
40725         * tests/test-posix_spawn2.c (main): Likewise.
40727 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
40729         README-release: simplify slightly
40730         * top/README-release: Run "git checkout master" only once.
40732 2012-03-15  Mark Wielaard  <mark@klomp.org>
40734         git-merge-changelog: add specific example on how to use with hg.
40735         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
40737 2012-03-18  Mark Wielaard  <mark@klomp.org>
40739         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
40741 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
40743         git-version-gen: don't let "prefix" envvar cause trouble
40744         * build-aux/git-version-gen (prefix): Initialize properly,
40745         so as not to use a value specified via the environment.
40746         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
40748 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
40750         regex: diagnose too-large repeat counts in EREs
40751         Previously, the code did not diagnose the too-large repeat count
40752         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
40753         as if it were 'b\{1000000000}', which is unexpected.
40754         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
40755         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
40756         is a reasonable one for this problem.  Another option would be to
40757         create a new REG_OVERFLOW error for repeat counts that are too large.
40758         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
40759         count is too large, so that the caller can distinguish the two cases.
40760         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
40761         "Too large" return code, and that repeat counts are one example of this.
40763 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
40765         doc: some glibc x32 integer width issues
40766         * doc/posix-headers/sys_types.texi (sys/types.h):
40767         * doc/posix-headers/time.texi (time.h):
40768         Mention that glibc x32 does not conform to POSIX in a couple of
40769         areas related to integer widths.
40771 2012-03-15  Bruno Haible  <bruno@clisp.org>
40773         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
40774         * lib/fma.c (VOLATILE): New macro.
40775         (FUNC): Use it to work around a GCC compiler bug.
40777 2012-03-13  Bruno Haible  <bruno@clisp.org>
40779         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
40780         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
40781         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
40782         REPLACE_HYPOTL to 1.
40783         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
40785 2012-03-13  Bruno Haible  <bruno@clisp.org>
40787         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
40788         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
40789         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
40790         REPLACE_REMAINDERL to 1.
40791         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
40792         bug.
40794 2012-03-13  Bruno Haible  <bruno@clisp.org>
40796         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
40797         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
40798         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
40799         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
40800         too big rounding errors.
40801         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
40802         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
40803         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
40804         (Depends-on): Update conditions.
40805         * tests/test-sqrtl.c (my_ldexpl): New function.
40806         (main): Add test of a particular value.
40807         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
40809 2012-03-13  Pádraig Brady  <P@draigBrady.com>
40811         doc: Update timer_* platform portability notes.
40812         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
40813         that always return ENOSYS.
40814         * doc/posix-functions/timer_delete.texi: Likewise.
40815         * doc/posix-functions/timer_gettime.texi: Likewise.
40816         * doc/posix-functions/timer_settime.texi: Likewise.
40818 2012-03-13  Bruno Haible  <bruno@clisp.org>
40820         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
40821         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
40822         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
40823         REPLACE_CBRTL to 1.
40824         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
40826 2012-03-13  Bruno Haible  <bruno@clisp.org>
40828         remainderl: Avoid compilation error on AIX >= 5.2.
40829         * lib/math.in.h (remainderl): Undefine macro from the system header.
40831 2012-03-13  Bruno Haible  <bruno@clisp.org>
40833         Avoid compilation errors with MSVC option -fp:strict.
40834         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
40835         * lib/cbrtf.c: Likewise.
40836         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
40838 2012-03-12  Bruno Haible  <bruno@clisp.org>
40840         uninorm: Don't crash in out-of-memory conditions.
40841         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
40842         gracefully.
40843         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
40844         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
40846 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
40848         quote: fix syntax-check
40849         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
40850         also exports quote_quoting_options.
40852 2012-03-12  Simon Josefsson  <simon@josefsson.org>
40854         Collapse list of copyright years to ranges.  See
40855         <https://lists.gnu.org/r/bug-gnulib/2012-03/msg00051.html>.
40856         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
40857         build-aux/csharpexec.sh.in, build-aux/gnupload,
40858         build-aux/install-reloc, build-aux/javacomp.sh.in,
40859         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
40860         build-aux/move-if-change, build-aux/reloc-ldflags,
40861         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
40863 2012-03-11  Bruno Haible  <bruno@clisp.org>
40865         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
40866         * m4/log2f-ieee.m4: New file.
40867         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
40868         whether log2f works with a minus zero argument. Replace it if not.
40869         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
40870         (Depends-on): Add log2-ieee.
40871         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
40872         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
40874         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
40875         * m4/log2-ieee.m4: New file.
40876         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
40877         whether log2 works with a minus zero argument. Replace it if not.
40878         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
40879         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
40880         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
40882         Tests for module 'log2l-ieee'.
40883         * modules/log2l-ieee-tests: New file.
40884         * tests/test-log2l-ieee.c: New file.
40886         New module 'log2l-ieee'.
40887         * modules/log2l-ieee: New file.
40889         Tests for module 'log2-ieee'.
40890         * modules/log2-ieee-tests: New file.
40891         * tests/test-log2-ieee.c: New file.
40893         New module 'log2-ieee'.
40894         * modules/log2-ieee: New file.
40896         Tests for module 'log2f-ieee'.
40897         * modules/log2f-ieee-tests: New file.
40898         * tests/test-log2f-ieee.c: New file.
40899         * tests/test-log2-ieee.h: New file.
40901         New module 'log2f-ieee'.
40902         * modules/log2f-ieee: New file.
40904 2012-03-11  Bruno Haible  <bruno@clisp.org>
40906         Tests for module 'log2l'.
40907         * modules/log2l-tests: New file.
40908         * tests/test-log2l.c: New file.
40910         New module 'log2l'.
40911         * lib/math.in.h (log2l): New declaration.
40912         * lib/log2l.c: New file.
40913         * m4/log2l.m4: New file.
40914         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
40915         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
40916         REPLACE_LOG2L.
40917         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
40918         REPLACE_LOG2L.
40919         * modules/log2l: New file.
40920         * tests/test-math-c++.cc: Check the declaration of log2l.
40921         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
40922         and OSF/1 problems.
40924 2012-03-11  Bruno Haible  <bruno@clisp.org>
40926         Tests for module 'log2f'.
40927         * modules/log2f-tests: New file.
40928         * tests/test-log2f.c: New file.
40930         New module 'log2f'.
40931         * lib/math.in.h (log2f): New declaration.
40932         * lib/log2f.c: New file.
40933         * m4/log2f.m4: New file.
40934         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
40935         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
40936         REPLACE_LOG2F.
40937         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
40938         REPLACE_LOG2F.
40939         * modules/log2f: New file.
40940         * tests/test-math-c++.cc: Check the declaration of log2f.
40941         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
40942         and OSF/1 and Cygwin problems.
40944 2012-03-11  Bruno Haible  <bruno@clisp.org>
40946         Tests for module 'log2'.
40947         * modules/log2-tests: New file.
40948         * tests/test-log2.c: New file.
40949         * tests/test-log2.h: New file.
40951         New module 'log2'.
40952         * lib/math.in.h (log2): New declaration.
40953         * lib/log2.c: New file.
40954         * m4/log2.m4: New file.
40955         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
40956         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
40957         REPLACE_LOG2.
40958         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
40959         REPLACE_LOG2.
40960         * modules/log2: New file.
40961         * tests/test-math-c++.cc: Check the declaration of log2.
40962         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
40963         and OSF/1 and Cygwin problems.
40965 2012-03-11  Bruno Haible  <bruno@clisp.org>
40967         exp2* tests: More tests.
40968         * tests/test-exp2.h (test_function): Test all integral arguments that
40969         don't need to overflow or denormalized numbers.
40970         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
40971         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
40972         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
40974 2012-03-10  Bruno Haible  <bruno@clisp.org>
40976         log1pl-ieee: Work around test failure on AIX 7.1.
40977         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
40979         log1pl-ieee: Work around test failure on IRIX 6.5.
40980         * m4/log1pl-ieee.m4: New file.
40981         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
40982         test whether log1pl works with a minus zero argument. Replace it if
40983         not.
40984         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
40985         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
40986         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
40987         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
40988         (Depends-on): Update conditions.
40989         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
40990         m4/signbit.m4.
40991         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
40992         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
40994         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
40995         * m4/log1pf-ieee.m4: New file.
40996         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
40997         test whether log1pf works with a minus zero argument. Replace it if
40998         not.
40999         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
41000         m4/signbit.m4.
41001         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
41002         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
41004         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
41005         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
41006         (configure.ac): Require gl_FUNC_LOG1PF.
41008         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
41009         * m4/log1p-ieee.m4: New file.
41010         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
41011         whether log1p works with a minus zero argument. Replace it if not.
41012         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
41013         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
41014         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
41015         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
41016         (Depends-on): Update conditions.
41017         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
41018         m4/signbit.m4.
41019         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
41020         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
41022         Tests for module 'log1pl-ieee'.
41023         * modules/log1pl-ieee-tests: New file.
41024         * tests/test-log1pl-ieee.c: New file.
41026         New module 'log1pl-ieee'.
41027         * modules/log1pl-ieee: New file.
41029         Tests for module 'log1p-ieee'.
41030         * modules/log1p-ieee-tests: New file.
41031         * tests/test-log1p-ieee.c: New file.
41033         New module 'log1p-ieee'.
41034         * modules/log1p-ieee: New file.
41036         Tests for module 'log1pf-ieee'.
41037         * modules/log1pf-ieee-tests: New file.
41038         * tests/test-log1pf-ieee.c: New file.
41039         * tests/test-log1p-ieee.h: New file.
41041         New module 'log1pf-ieee'.
41042         * modules/log1pf-ieee: New file.
41044 2012-03-10  Bruno Haible  <bruno@clisp.org>
41046         Tests for module 'log1pl'.
41047         * modules/log1pl-tests: New file.
41048         * tests/test-log1pl.c: New file.
41050         New module 'log1pl'.
41051         * lib/math.in.h (log1pl): New declaration.
41052         * lib/log1pl.c: New file.
41053         * m4/log1pl.m4: New file.
41054         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
41055         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
41056         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
41057         * modules/log1pl: New file.
41058         * tests/test-math-c++.cc: Check the declaration of log1pl.
41059         * doc/posix-functions/log1pl.texi: Mention the new module.
41061 2012-03-10  Bruno Haible  <bruno@clisp.org>
41063         Tests for module 'log1pf'.
41064         * modules/log1pf-tests: New file.
41065         * tests/test-log1pf.c: New file.
41067         New module 'log1pf'.
41068         * lib/math.in.h (log1pf): New declaration.
41069         * lib/log1pf.c: New file.
41070         * m4/log1pf.m4: New file.
41071         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
41072         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
41073         REPLACE_LOG1PF.
41074         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
41075         REPLACE_LOG1PF.
41076         * modules/log1pf: New file.
41077         * tests/test-math-c++.cc: Check the declaration of log1pf.
41078         * doc/posix-functions/log1pf.texi: Mention the new module.
41080 2012-03-10  Bruno Haible  <bruno@clisp.org>
41082         log1p tests: More tests.
41083         * tests/test-log1p.h: New file.
41084         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
41085         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
41086         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
41087         (main): Invoke test_function.
41089         log1p: Provide replacement for Minix and MSVC.
41090         * lib/math.in.h (log1p): New declaration.
41091         * lib/log1p.c: New file.
41092         * m4/log1p.m4: New file.
41093         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
41094         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
41095         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
41096         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
41097         (Depends-on): Add math, isnand, log, round.
41098         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
41099         HAVE_LOG1P is 0.
41100         * tests/test-math-c++.cc: Check the declaration of log1p.
41101         * doc/posix-functions/log1p.texi: Mention the replacement.
41103 2012-03-10  Bruno Haible  <bruno@clisp.org>
41105         math tests: Small simplification.
41106         * tests/test-exp.h (test_function): Use the same err_bound for
41107         'double' on platforms with sizeof (long double) == sizeof (double)
41108         than on platforms with sizeof (long double) > sizeof (double).
41109         * tests/test-exp2.h (test_function): Likewise.
41110         * tests/test-expm1.h (test_function): Likewise.
41111         * tests/test-log.h (test_function): Likewise.
41113 2012-03-10  Bruno Haible  <bruno@clisp.org>
41115         Fix some comments.
41116         * lib/expl.c: Fix an ambiguous comment.
41117         * lib/expm1.c: Likewise.
41118         * lib/expm1l.c: Likewise.
41119         * lib/exp2.c: Likewise.
41120         * lib/exp2l.c: Likewise.
41122 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
41124         regex: allow inclusion of <regex.h> before <limits.h>
41125         Without this patch, portable programs had to include <limits.h> before
41126         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
41127         I ran into this problem with a test version of GNU grep on Solaris 8.
41128         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
41129         This is done conditionally so that this change can be merged
41130         back to glibc.
41131         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
41132         using the included regex.
41134         fts: depend on fdopendir
41135         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
41136         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
41137         problem was introduced when fdopendir was split out.
41139 2012-03-10  Bruno Haible  <bruno@clisp.org>
41141         Remove unused variables.
41142         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
41143         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
41145 2012-03-10  Bruno Haible  <bruno@clisp.org>
41147         isnanf-nolibm: Fix last commit.
41148         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
41150         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
41151         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
41153 2012-03-10  Bruno Haible  <bruno@clisp.org>
41155         logf-ieee: Work around test failure on NetBSD 5.1.
41156         * m4/logf-ieee.m4: New file.
41157         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
41158         whether logf works with a negative argument. Replace it if not.
41159         * lib/logf.c (logf): For negative arguments, return NaN.
41160         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
41161         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
41162         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
41164         logf-ieee: Work around test failure on Solaris 9.
41165         * modules/logf-ieee (Depends-on): Add log-ieee.
41166         (configure.ac): Require gl_FUNC_LOGF.
41168         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
41169         * m4/log-ieee.m4: New file.
41170         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
41171         log works with a negative argument. Replace it if not.
41172         * lib/log.c (log): For negative arguments, return NaN.
41173         * modules/log-ieee (Files): Add m4/log-ieee.m4.
41174         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
41175         * doc/posix-functions/log.texi: Mention the log-ieee module.
41177         Tests for module 'logl-ieee'.
41178         * modules/logl-ieee-tests: New file.
41179         * tests/test-logl-ieee.c: New file.
41181         New module 'logl-ieee'.
41182         * modules/logl-ieee: New file.
41184         Tests for module 'log-ieee'.
41185         * modules/log-ieee-tests: New file.
41186         * tests/test-log-ieee.c: New file.
41188         New module 'log-ieee'.
41189         * modules/log-ieee: New file.
41191         Tests for module 'logf-ieee'.
41192         * modules/logf-ieee-tests: New file.
41193         * tests/test-logf-ieee.c: New file.
41194         * tests/test-log-ieee.h: New file.
41196         New module 'logf-ieee'.
41197         * modules/logf-ieee: New file.
41199 2012-03-10  Bruno Haible  <bruno@clisp.org>
41201         log: Fix bug introduced on 2012-03-09.
41202         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
41204 2012-03-10  Pádraig Brady  <P@draigBrady.com>
41206         timer-time: link explicitly with pthreads on glibc
41207         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
41208         to support static linking, when newer glibc is
41209         detected, as that contains pthread emulation of
41210         POSIX timer functions where required.
41211         * modules/timer-time: Depend on threadlib to
41212         pull in the appropriate library to link.
41214 2012-03-10  Bruno Haible  <bruno@clisp.org>
41216         log* tests: More tests.
41217         * tests/test-log.h: New file.
41218         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
41219         (main): Invoke test_function.
41220         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
41221         (main): Invoke test_function.
41222         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
41223         (main): Invoke test_function.
41224         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
41225         tests/randomd.c.
41226         (Makefile.am): Add randomd.c to test_log_SOURCES.
41227         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
41228         tests/randomf.c.
41229         (Makefile.am): Add randomf.c to test_logf_SOURCES.
41230         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
41231         tests/randoml.c.
41232         (Depends-on): Add 'float'.
41233         (Makefile.am): Add randoml.c to test_logl_SOURCES.
41235 2012-03-09  Bruno Haible  <bruno@clisp.org>
41237         logl: Work around OSF/1 5.1 bug.
41238         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
41239         * lib/logl.c (logl): If logl exists, use it and provide just the
41240         workaround.
41241         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
41242         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
41243         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
41244         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
41245         * modules/logl (configure.ac): Consider REPLACE_LOGL.
41246         (Depends-on): Update conditions.
41247         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
41249 2012-03-09  Bruno Haible  <bruno@clisp.org>
41251         logf: Work around OSF/1 5.1 bug.
41252         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
41253         * lib/logf.c (logf): If logf exists, use it and provide just the
41254         workaround.
41255         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
41256         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
41257         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
41258         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
41259         * modules/logf (configure.ac): Consider REPLACE_LOGF.
41260         (Depends-on): Update conditions.
41261         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
41263 2012-03-09  Bruno Haible  <bruno@clisp.org>
41265         log: Work around OSF/1 5.1 bug.
41266         * lib/math.in.h (log): New declaration.
41267         * lib/log.c: New file.
41268         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
41269         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
41270         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
41271         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
41272         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
41273         * modules/log (Files): Add lib/log.c.
41274         (Depends-on): Add math.
41275         (configure.ac): If REPLACE_LOG is 1, compile an override.
41276         * tests/test-math-c++.cc: Check the declaration of log.
41277         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
41279 2012-03-09  Jim Meyering  <meyering@redhat.com>
41281         readtokens.c: adjust wording in a comment
41282         * lib/readtokens.c: Insert omitted "that" in a comment.
41284 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
41286         modechange: add notations +40, 00440, etc.
41287         * lib/modechange.c (mode_compile): Support new notations
41288         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
41290 2012-03-08  Bruno Haible  <bruno@clisp.org>
41292         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
41293         * m4/exp2l-ieee.m4: New file.
41294         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
41295         test whether exp2l works with a NaN argument and with a negative
41296         infinity argument. Replace it if not.
41297         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
41298         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
41299         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
41300         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
41301         (Depends-on): Update conditions.
41302         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
41303         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
41304         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
41306         Tests for module 'exp2l-ieee'.
41307         * modules/exp2l-ieee-tests: New file.
41308         * tests/test-exp2l-ieee.c: New file.
41310         New module 'exp2l-ieee'.
41311         * modules/exp2l-ieee: New file.
41313         Tests for module 'exp2-ieee'.
41314         * modules/exp2-ieee-tests: New file.
41315         * tests/test-exp2-ieee.c: New file.
41317         New module 'exp2-ieee'.
41318         * modules/exp2-ieee: New file.
41320         Tests for module 'exp2f-ieee'.
41321         * modules/exp2f-ieee-tests: New file.
41322         * tests/test-exp2f-ieee.c: New file.
41323         * tests/test-exp2-ieee.h: New file.
41325         New module 'exp2f-ieee'.
41326         * modules/exp2f-ieee: New file.
41328 2012-03-08  Bruno Haible  <bruno@clisp.org>
41330         Tests for module 'exp2l'.
41331         * modules/exp2l-tests: New file.
41332         * tests/test-exp2l.c: New file.
41334         New module 'exp2l'.
41335         * lib/math.in.h (exp2l): New declaration.
41336         * lib/exp2l.c: New file.
41337         * lib/expl-table.c: New file, extracted from lib/expl.c.
41338         * lib/expl.c (gl_expl_table): New declaration.
41339         (expl): Remove expl_table. Update reference.
41340         * m4/exp2l.m4: New file.
41341         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
41342         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
41343         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
41344         * modules/exp2l: New file.
41345         * modules/expl (Files): Add lib/expl-table.c.
41346         (configure.ac): Compile also expl-table.c.
41347         * tests/test-math-c++.cc: Check the declaration of exp2l.
41348         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
41349         problem.
41351 2012-03-08  Bruno Haible  <bruno@clisp.org>
41353         Tests for module 'exp2f'.
41354         * modules/exp2f-tests: New file.
41355         * tests/test-exp2f.c: New file.
41357         New module 'exp2f'.
41358         * lib/math.in.h (exp2f): New declaration.
41359         * lib/exp2f.c: New file.
41360         * m4/exp2f.m4: New file.
41361         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
41362         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
41363         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
41364         * modules/exp2f: New file.
41365         * tests/test-math-c++.cc: Check the declaration of exp2f.
41366         * doc/posix-functions/exp2f.texi: Mention the new module and the
41367         IRIX problem.
41369 2012-03-08  Bruno Haible  <bruno@clisp.org>
41371         Tests for module 'exp2'.
41372         * modules/exp2-tests: New file.
41373         * tests/test-exp2.c: New file.
41374         * tests/test-exp2.h: New file.
41376         New module 'exp2'.
41377         * lib/math.in.h (exp2): New declaration.
41378         * lib/exp2.c: New file.
41379         * m4/exp2.m4: New file.
41380         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
41381         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
41382         REPLACE_EXP2.
41383         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
41384         REPLACE_EXP2.
41385         * modules/exp2: New file.
41386         * tests/test-math-c++.cc: Check the declaration of exp2.
41387         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
41388         and OpenBSD problems.
41390 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
41392         savedir: fix comment typo
41393         * lib/savedir.c (savedirstream): Fix typo in comment.
41395 2012-03-08  Bruno Haible  <bruno@clisp.org>
41397         test-readtokens.c: use const; remove unwarranted cast
41398         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
41400 2012-03-08  Bruno Haible  <bruno@clisp.org>
41402         fmal: Avoid compilation error on AIX.
41403         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
41404         AIX 5.2..7.1.
41406 2012-03-08  Bruno Haible  <bruno@clisp.org>
41408         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
41409         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
41410         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
41411         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
41412         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
41413         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
41414         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
41416 2012-03-08  Bruno Haible  <bruno@clisp.org>
41418         remainderf: Override buggy system function on IRIX 6.5.
41419         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
41420         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
41421         when it exists.
41422         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
41424 2012-03-08  Jim Meyering  <meyering@redhat.com>
41426         test-readtokens.c: avoid const-related compilation warnings
41427         * tests/test-readtokens.c: Avoid const-related compilation warnings.
41429 2012-03-07  Jim Meyering  <meyering@redhat.com>
41430             Bruno Haible  <bruno@clisp.org>
41432         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
41433         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
41434         tests/randomd.c.
41435         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
41436         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
41437         tests/randoml.c.
41438         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
41440 2012-03-07  Bruno Haible  <bruno@clisp.org>
41442         expm1l: Avoid compilation error on AIX.
41443         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
41444         AIX 5.2..7.1.
41446 2012-03-07  Bruno Haible  <bruno@clisp.org>
41448         expm1l: Don't override undeclared system function on IRIX 6.5.
41449         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
41450         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
41451         it exists. Set HAVE_DECL_EXPM1L.
41452         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
41453         HAVE_EXPM1L.
41454         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
41455         HAVE_EXPM1L.
41456         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
41458 2012-03-07  Bruno Haible  <bruno@clisp.org>
41460         remainderl: Don't override undeclared system function on IRIX 6.5.
41461         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
41462         HAVE_REMAINDERL.
41463         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
41464         declared when it exists. Set HAVE_DECL_REMAINDERL.
41465         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
41466         not HAVE_REMAINDERL.
41467         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
41468         HAVE_REMAINDERL.
41469         * doc/posix-functions/remainderl.texi: Mention missing declaration
41470         problem.
41472 2012-03-07  Bruno Haible  <bruno@clisp.org>
41474         rintf: Don't override undeclared system function on IRIX 6.5.
41475         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
41476         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
41477         exists. Set HAVE_DECL_RINTF.
41478         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
41479         HAVE_RINTF.
41480         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
41481         HAVE_RINTF.
41482         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
41484 2012-03-07  Bruno Haible  <bruno@clisp.org>
41486         roundl: Avoid compilation error on AIX.
41487         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
41488         AIX 5.2..7.1.
41490 2012-03-07  Bruno Haible  <bruno@clisp.org>
41492         roundl: Don't override undeclared system function on IRIX 6.5.
41493         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
41494         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
41495         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
41496         * modules/roundl (configure.ac): For replacement code, test
41497         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
41498         (Depends-on): Update conditions.
41499         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
41501 2012-03-07  Bruno Haible  <bruno@clisp.org>
41503         roundf: Don't override undeclared system function on IRIX 6.5.
41504         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
41505         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
41506         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
41507         * modules/roundf (configure.ac): For replacement code, test
41508         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
41509         (Depends-on): Update conditions.
41510         * modules/roundf-ieee (Depends-on): Update conditions.
41511         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
41513 2012-03-07  Bruno Haible  <bruno@clisp.org>
41515         round: Don't override undeclared system function on IRIX 6.5.
41516         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
41517         argument.
41518         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
41519         also when it is not declared. Set HAVE_ROUND. For replacement code,
41520         test HAVE_ROUND, not HAVE_DECL_ROUND.
41521         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
41522         not HAVE_DECL_ROUND.
41523         (Depends-on): Update conditions.
41524         * modules/round-ieee (Depends-on): Update conditions.
41525         * doc/posix-functions/round.texi: Mention the IRIX problem.
41527 2012-03-07  Bruno Haible  <bruno@clisp.org>
41529         copysignf: Don't override undeclared system function on IRIX 6.5.
41530         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
41531         HAVE_COPYSIGNF.
41532         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
41533         declared when it exists. Set HAVE_DECL_COPYSIGNF.
41534         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
41535         not HAVE_COPYSIGNF.
41536         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
41537         HAVE_COPYSIGNF.
41538         * doc/posix-functions/copysignf.texi: Mention missing declaration
41539         problem.
41541 2012-03-07  Jim Meyering  <meyering@redhat.com>
41543         readtokens: add tests
41544         * modules/readtokens-tests: New file.
41545         * tests/test-readtokens.c: New file.
41547 2012-03-07  Jim Meyering  <meyering@redhat.com>
41549         quotearg: the module must now include quote.h
41550         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
41551         So must the module.
41552         * modules/quotearg (Files): Add quote.h.
41554 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
41556         readtokens: avoid core dumps with unusual calling patterns
41557         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
41558         * lib/readtokens.c: Include limits.h.
41559         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
41560         (readtoken): Don't cache the delimiters; the cache code was buggy
41561         if !delim && saved_delim, or if the new n_delim differs from the old.
41562         Also, it wasn't thread-safe.
41564 2012-03-07  Bruno Haible  <bruno@clisp.org>
41566         quote: Adhere to common module description layout.
41567         * modules/quote (Makefile.am): Add back empty section.
41569 2012-03-06  Akim Demaille  <demaille@gostai.com>
41571         quote: fuse into quotearg
41572         This patch is made for the benefit of Bison.
41573         quote does not leave the choice of the quoting style to the user.
41574         quoting_style provides poor customizability, yet quoting_options,
41575         which is very rich, is hidden inside quotearg.c.  So in order to
41576         allow quote customization, move its implementation to quotearg.c.
41577         * lib/quote.c: Remove.
41578         * modules/quote: Adjust.
41579         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
41580         warning: provide all the members of literal structs.
41581         (quote_quoting_options): New.
41582         (quote, quote_n): Import implementation from quote.c.
41583         * lib/quote.h: Import the comments from quote.c.
41584         (quote_quoting_options): New.
41586 2012-03-06  Bruno Haible  <bruno@clisp.org>
41588         Tests for module 'expm1l-ieee'.
41589         * modules/expm1l-ieee-tests: New file.
41590         * tests/test-expm1l-ieee.c: New file.
41592         New module 'expm1l-ieee'.
41593         * modules/expm1l-ieee: New file.
41595         Tests for module 'expm1f-ieee'.
41596         * modules/expm1f-ieee-tests: New file.
41597         * tests/test-expm1f-ieee.c: New file.
41599         New module 'expm1f-ieee'.
41600         * modules/expm1f-ieee: New file.
41602         Tests for module 'expm1-ieee'.
41603         * modules/expm1-ieee-tests: New file.
41604         * tests/test-expm1-ieee.c: New file.
41605         * tests/test-expm1-ieee.h: New file.
41607         New module 'expm1-ieee'.
41608         * modules/expm1-ieee: New file.
41609         * m4/expm1-ieee.m4: New file.
41610         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
41611         whether expm1 works with a minus zero argument. Replace it if not.
41612         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
41613         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
41614         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
41615         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
41616         (Depends-on): Update conditions.
41617         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
41618         AIX problem.
41620 2012-03-06  Bruno Haible  <bruno@clisp.org>
41622         Work around expm1f bug on IRIX 6.5.
41623         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
41624         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
41625         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
41626         not work.
41627         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
41628         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
41629         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
41630         (Depends-on): Update conditions.
41631         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
41633 2012-03-06  Bruno Haible  <bruno@clisp.org>
41635         Tests for module 'expm1l'.
41636         * modules/expm1l-tests: New file.
41637         * tests/test-expm1l.c: New file.
41639         New module 'expm1l'.
41640         * lib/math.in.h (expm1l): New declaration.
41641         * lib/expm1l.c: New file.
41642         * m4/expm1l.m4: New file.
41643         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
41644         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
41645         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
41646         * modules/expm1l: New file.
41647         * tests/test-math-c++.cc: Check the declaration of expm1l.
41648         * doc/posix-functions/expm1l.texi: Mention the new module.
41650 2012-03-06  Bruno Haible  <bruno@clisp.org>
41652         Tests for module 'expm1f'.
41653         * modules/expm1f-tests: New file.
41654         * tests/test-expm1f.c: New file.
41656         New module 'expm1f'.
41657         * lib/math.in.h (expm1f): New declaration.
41658         * lib/expm1f.c: New file.
41659         * m4/expm1f.m4: New file.
41660         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
41661         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
41662         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
41663         * modules/expm1f: New file.
41664         * tests/test-math-c++.cc: Check the declaration of expm1f.
41665         * doc/posix-functions/expm1f.texi: Mention the new module.
41667 2012-03-06  Bruno Haible  <bruno@clisp.org>
41669         Tests for module 'expm1'.
41670         * modules/expm1-tests: New file.
41671         * tests/test-expm1.c: New file.
41672         * tests/test-expm1.h: New file.
41674         New module 'expm1'.
41675         * lib/math.in.h (expm1): New declaration.
41676         * lib/expm1.c: New file.
41677         * m4/expm1.m4: New file.
41678         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
41679         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
41680         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
41681         * modules/expm1: New file.
41682         * tests/test-math-c++.cc: Check the declaration of expm1.
41683         * doc/posix-functions/expm1.texi: Mention the new module.
41685 2012-03-06  Bruno Haible  <bruno@clisp.org>
41687         math: Ensure declarations of math functions.
41688         * modules/acosf (Depends-on): Add 'extensions'.
41689         * modules/asinf (Depends-on): Likewise.
41690         * modules/atan2f (Depends-on): Likewise.
41691         * modules/atanf (Depends-on): Likewise.
41692         * modules/cbrt (Depends-on): Likewise.
41693         * modules/cbrtf (Depends-on): Likewise.
41694         * modules/cbrtl (Depends-on): Likewise.
41695         * modules/copysignf (Depends-on): Likewise.
41696         * modules/copysignl (Depends-on): Likewise.
41697         * modules/cosf (Depends-on): Likewise.
41698         * modules/coshf (Depends-on): Likewise.
41699         * modules/expf (Depends-on): Likewise.
41700         * modules/fabsf (Depends-on): Likewise.
41701         * modules/fabsl (Depends-on): Likewise.
41702         * modules/fmaf (Depends-on): Likewise.
41703         * modules/fmal (Depends-on): Likewise.
41704         * modules/fmodf (Depends-on): Likewise.
41705         * modules/fmodl (Depends-on): Likewise.
41706         * modules/frexpf (Depends-on): Likewise.
41707         * modules/frexpl (Depends-on): Likewise.
41708         * modules/hypot (Depends-on): Likewise.
41709         * modules/hypotf (Depends-on): Likewise.
41710         * modules/hypotl (Depends-on): Likewise.
41711         * modules/ldexpf (Depends-on): Likewise.
41712         * modules/ldexpl (Depends-on): Likewise.
41713         * modules/log10f (Depends-on): Likewise.
41714         * modules/log10l (Depends-on): Likewise.
41715         * modules/log1p (Depends-on): Likewise.
41716         * modules/logb (Depends-on): Likewise.
41717         * modules/logf (Depends-on): Likewise.
41718         * modules/modff (Depends-on): Likewise.
41719         * modules/modfl (Depends-on): Likewise.
41720         * modules/powf (Depends-on): Likewise.
41721         * modules/remainderf (Depends-on): Likewise.
41722         * modules/remainderl (Depends-on): Likewise.
41723         * modules/rintf (Depends-on): Likewise.
41724         * modules/rintl (Depends-on): Likewise.
41725         * modules/sinf (Depends-on): Likewise.
41726         * modules/sinhf (Depends-on): Likewise.
41727         * modules/sqrtf (Depends-on): Likewise.
41728         * modules/tanf (Depends-on): Likewise.
41729         * modules/tanhf (Depends-on): Likewise.
41730         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
41731         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
41732         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
41733         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
41734         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
41735         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
41736         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
41737         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
41738         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
41739         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
41740         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
41741         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
41742         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
41743         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
41744         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
41745         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
41746         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
41747         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
41748         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
41749         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
41750         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
41751         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
41752         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
41753         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
41754         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
41755         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
41756         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
41757         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
41758         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
41759         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
41760         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
41761         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
41762         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
41763         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
41764         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
41765         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
41766         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
41767         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
41768         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
41769         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
41770         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
41772 2012-03-06  Bruno Haible  <bruno@clisp.org>
41774         math: Update module names in warnings.
41775         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
41776         tanl): Use specific module name in warn-on-use warning.
41778 2012-03-06  Bruno Haible  <bruno@clisp.org>
41780         expl: Simplify computation.
41781         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
41783 2012-03-05  Bruno Haible  <bruno@clisp.org>
41785         exp* tests: More tests.
41786         * tests/test-exp.h: New file.
41787         * tests/test-exp.c: Include <float.h> and test-exp.h.
41788         (main): Invoke test_function.
41789         * tests/test-expf.c: Include <float.h> and test-exp.h.
41790         (main): Invoke test_function.
41791         * tests/test-expl.c: Include <float.h> and test-exp.h.
41792         (main): Invoke test_function.
41793         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
41794         (Makefile.am): Add randomd.c to test_exp_SOURCES.
41795         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
41796         (Makefile.am): Add randomf.c to test_expf_SOURCES.
41797         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
41798         (Depends-on): Add 'float'.
41799         (Makefile.am): Add randoml.c to test_expl_SOURCES.
41801         expl: Fix precision of computed result.
41802         * lib/expl.c: Completely rewritten.
41803         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
41804         (Maintainer): Add me.
41805         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
41807 2012-03-05  Bruno Haible  <bruno@clisp.org>
41809         cbrt* tests: More tests.
41810         * tests/test-cbrt.h: New file.
41811         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
41812         (main): Invoke test_function.
41813         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
41814         (main): Invoke test_function.
41815         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
41816         (main): Invoke test_function.
41817         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
41818         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
41819         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
41820         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
41821         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
41822         (Depends-on): Add 'float'.
41823         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
41825 2012-03-05  Bruno Haible  <bruno@clisp.org>
41827         hypot* tests: More tests.
41828         * tests/test-hypot.h: New file, partially extracted from
41829         tests/test-hypotl.c.
41830         * tests/test-hypot.c: Include test-hypot.h.
41831         (main): Invoke test_function.
41832         * tests/test-hypotf.c: Include test-hypot.h.
41833         (main): Invoke test_function.
41834         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
41835         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
41836         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
41837         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
41838         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
41839         tests/randomf.c.
41840         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
41841         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
41842         tests/randoml.c.
41843         (Depends-on): Add 'fpucw', 'float'.
41844         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
41846 2012-03-05  Bruno Haible  <bruno@clisp.org>
41848         fpucw: Doc about FreeBSD.
41849         * lib/fpucw.h: Mention FreeBSD in comments.
41851 2012-03-04  Bruno Haible  <bruno@clisp.org>
41853         sqrt* tests: More tests.
41854         * tests/test-sqrt.h: New file.
41855         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
41856         (main): Invoke test_function.
41857         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
41858         (main): Invoke test_function.
41859         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
41860         (main): Invoke test_function.
41861         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
41862         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
41863         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
41864         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
41865         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
41866         (Depends-on): Add 'float'.
41867         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
41869 2012-03-04  Bruno Haible  <bruno@clisp.org>
41871         remainder* tests: More tests.
41872         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
41873         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
41874         (main): Invoke test_function.
41875         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
41876         (main): Invoke test_function.
41877         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
41878         (main): Invoke test_function.
41879         * modules/remainder-tests (Files): Add tests/test-remainder.h,
41880         tests/randomd.c.
41881         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
41882         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
41883         tests/randomf.c.
41884         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
41885         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
41886         tests/randoml.c.
41887         (Depends-on): Add 'float'.
41888         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
41890 2012-03-04  Bruno Haible  <bruno@clisp.org>
41892         remainder, remainderf, remainderl: Fix computation for large quotients.
41893         * lib/remainder.c: Completely rewritten.
41894         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
41895         USE_FLOAT.
41896         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
41897         USE_LONG_DOUBLE.
41898         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
41899         isnand, isinf. Remove round, fma.
41900         * modules/remainderf (Files): Add lib/remainder.c.
41901         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
41902         Remove roundf, fmaf.
41903         * modules/remainderl (Files): Add lib/remainder.c.
41904         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
41905         isinf. Remove roundl, fmal.
41906         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
41907         REMAINDER_LIBM.
41908         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
41909         REMAINDERF_LIBM.
41910         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
41911         REMAINDERL_LIBM.
41913 2012-03-04  Bruno Haible  <bruno@clisp.org>
41915         fmod* tests: More tests.
41916         * tests/test-fmod.h (my_ldexp): New function.
41917         (test_function): Reduce amount of random numbers to test. Add tests
41918         of very large quotients x / y.
41919         * tests/test-fmod.c (MAX_EXP): New macro.
41920         * tests/test-fmodf.c (MAX_EXP): Likewise.
41921         * tests/test-fmodl.c (MAX_EXP): Likewise.
41923 2012-03-04  Bruno Haible  <bruno@clisp.org>
41925         fmod, fmodl: Fix computation for large quotients x / y.
41926         * lib/fmod.c: Completely rewritten.
41927         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
41928         USE_LONG_DOUBLE.
41929         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
41930         isnand. Remove fma.
41931         * modules/fmodl (Files): Add lib/fmod.c.
41932         (Depends-on): Add float, isfinite, signbit, fabsl,
41933         frexpl, ldexpl, isnanl. Remove fma.
41934         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
41935         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
41937 2012-03-03  Bruno Haible  <bruno@clisp.org>
41939         fmod* tests: More tests.
41940         * tests/test-fmod.h: New file.
41941         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
41942         (main): Invoke test_function.
41943         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
41944         (main): Invoke test_function.
41945         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
41946         (main): Invoke test_function.
41947         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
41948         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
41949         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
41950         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
41951         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
41952         (Depends-on): Add 'float'.
41953         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
41955 2012-03-03  Bruno Haible  <bruno@clisp.org>
41957         rint* tests: More tests.
41958         * tests/test-rint.h: New file, partially extracted from
41959         tests/test-rintl.c.
41960         * tests/test-rint.c: Include test-rint.h.
41961         (main): Invoke test_function.
41962         * tests/test-rintf.c: Include test-rint.h.
41963         (main): Invoke test_function.
41964         * tests/test-rintl.c: Include test-rint.h.
41965         (main): Invoke test_function.
41966         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
41967         (Makefile.am): Add randomd.c to test_rint_SOURCES.
41968         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
41969         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
41970         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
41971         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
41973 2012-03-03  Bruno Haible  <bruno@clisp.org>
41975         modf* tests: More tests.
41976         * tests/test-modf.h: New file.
41977         * tests/test-modf.c: Include <float.h> and test-modf.h.
41978         (main): Invoke test_function.
41979         * tests/test-modff.c: Include <float.h> and test-modf.h.
41980         (main): Invoke test_function.
41981         * tests/test-modfl.c: Include <float.h> and test-modf.h.
41982         (main): Invoke test_function.
41983         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
41984         (Makefile.am): Add randomd.c to test_modf_SOURCES.
41985         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
41986         (Makefile.am): Add randomf.c to test_modff_SOURCES.
41987         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
41988         (Depends-on): Add 'float'.
41989         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
41991 2012-03-03  Bruno Haible  <bruno@clisp.org>
41993         fabs* tests: More tests.
41994         * tests/test-fabs.h: New file, partially extracted from
41995         tests/test-fabsl.c.
41996         * tests/test-fabs.c (RANDOM): New macro.
41997         * tests/test-fabsf.c (RANDOM): New macro.
41998         * tests/test-fabsl.c (RANDOM): New macro.
41999         * modules/fabs-tests (Files): Add tests/randomd.c.
42000         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
42001         * modules/fabsf-tests (Files): Add tests/randomf.c.
42002         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
42003         * modules/fabsl-tests (Files): Add tests/randoml.c.
42004         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
42006 2012-03-03  Bruno Haible  <bruno@clisp.org>
42008         ldexp* tests: More tests.
42009         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
42010         * tests/test-ldexp.c (RANDOM): New macro.
42011         * tests/test-ldexpf.c (RANDOM): New macro.
42012         * tests/test-ldexpl.c (RANDOM): New macro.
42013         * modules/ldexp-tests (Files): Add tests/randomd.c.
42014         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
42015         * modules/ldexpf-tests (Files): Add tests/randomf.c.
42016         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
42017         * modules/ldexpl-tests (Files): Add tests/randoml.c.
42018         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
42020 2012-03-03  Bruno Haible  <bruno@clisp.org>
42022         frexp* tests: More tests.
42023         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
42024         * tests/test-frexp.c (RANDOM): New macro.
42025         * tests/test-frexpf.c (RANDOM): New macro.
42026         * tests/test-frexpl.c (RANDOM): New macro.
42027         * modules/frexp-tests (Files): Add tests/randomd.c.
42028         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
42029         * modules/frexpf-tests (Files): Add tests/randomf.c.
42030         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
42031         * modules/frexpl-tests (Files): Add tests/randoml.c.
42032         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
42034 2012-03-03  Bruno Haible  <bruno@clisp.org>
42036         Support for pseudo-random numbers in tests.
42037         * tests/randomf.c: New file.
42038         * tests/randomd.c: New file.
42039         * tests/randoml.c: New file.
42040         * tests/macros.h (randomf, randomd, randoml): New declarations.
42042 2012-03-03  Bruno Haible  <bruno@clisp.org>
42044         frexp* tests: Refactor.
42045         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
42046         * tests/test-frexp.c: Include and use it.
42047         * tests/test-frexpf.c: Likewise.
42048         * tests/test-frexpl.c: Likewise.
42049         * modules/frexp-tests (Files): Add tests/test-frexp.h.
42050         * modules/frexpf-tests (Files): Likewise.
42051         * modules/frexpl-tests (Files): Likewise.
42053 2012-03-02  Jim Meyering  <meyering@redhat.com>
42055         maint: don't specify XZ_OPT=-9ev in dist-related rule
42056         Using xz's -9 option is warranted only if you have a very large
42057         tarball (see xz's documentation for the sizes vs. presets), and
42058         requires 64MiB of memory at decompression time.
42059         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
42060         Automake's default of just "-e" is fine.  Override on a
42061         per-package basis by setting XZ_OPT e.g., in cfg.mk.
42063 2012-03-01  Eric Blake  <eblake@redhat.com>
42065         maint.mk: allow announcement for non-gnulib project
42066         * maint.mk (announcement): Skip gnulib version if not used.
42068 2012-03-01  Jim Meyering  <meyering@redhat.com>
42070         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
42071         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
42072         envvar settings cannot interfere.  Otherwise, setting envvars like
42073         prohibit=foo require=bar, etc. would cause spurious test failures.
42075 2012-03-01  Eric Blake  <eblake@redhat.com>
42077         maint.mk: add per-line exclusions to prohibitions
42078         * maint.mk (_sc_search_regexp): Add $exclude parameter.
42079         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
42080         (sc_const_long_option): Use it.
42082 2012-03-01  Bruno Haible  <bruno@clisp.org>
42084         Tests for module 'expl-ieee'.
42085         * modules/expl-ieee-tests: New file.
42086         * tests/test-expl-ieee.c: New file.
42088         New module 'expl-ieee'.
42089         * modules/expl-ieee: New file.
42091         Tests for module 'exp-ieee'.
42092         * modules/exp-ieee-tests: New file.
42093         * tests/test-exp-ieee.c: New file.
42095         New module 'exp-ieee'.
42096         * modules/exp-ieee: New file.
42098         Tests for module 'expf-ieee'.
42099         * modules/expf-ieee-tests: New file.
42100         * tests/test-expf-ieee.c: New file.
42101         * tests/test-exp-ieee.h: New file.
42103         New module 'expf-ieee'.
42104         * modules/expf-ieee: New file.
42106 2012-02-29  Bruno Haible  <bruno@clisp.org>
42108         cbrtl-ieee: Work around test failure on IRIX 6.5.
42109         * m4/cbrtl-ieee.m4: New file.
42110         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
42111         test whether cbrtl works with a minus zero argument. Replace it if not.
42112         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
42113         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
42114         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
42115         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
42116         (Depends-on): Update conditions.
42117         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
42118         m4/signbit.m4.
42119         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
42120         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
42121         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
42123         Tests for module 'cbrtl-ieee'.
42124         * modules/cbrtl-ieee-tests: New file.
42125         * tests/test-cbrtl-ieee.c: New file.
42127         New module 'cbrtl-ieee'.
42128         * modules/cbrtl-ieee: New file.
42130         Tests for module 'cbrt-ieee'.
42131         * modules/cbrt-ieee-tests: New file.
42132         * tests/test-cbrt-ieee.c: New file.
42134         New module 'cbrt-ieee'.
42135         * modules/cbrt-ieee: New file.
42137         Tests for module 'cbrtf-ieee'.
42138         * modules/cbrtf-ieee-tests: New file.
42139         * tests/test-cbrtf-ieee.c: New file.
42140         * tests/test-cbrt-ieee.h: New file.
42142         New module 'cbrtf-ieee'.
42143         * modules/cbrtf-ieee: New file.
42145 2012-02-29  Bruno Haible  <bruno@clisp.org>
42147         cbrtf: Work around bug in IRIX 6.5 system function.
42148         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
42149         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
42150         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
42151         work.
42152         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
42153         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
42154         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
42155         (Depends-on): Update conditions.
42156         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
42158 2012-02-29  Bruno Haible  <bruno@clisp.org>
42160         Tests for module 'cbrtl'.
42161         * modules/cbrtl-tests: New file.
42162         * tests/test-cbrtl.c: New file.
42164         New module 'cbrtl'.
42165         * lib/math.in.h (cbrtl): New declaration.
42166         * lib/cbrtl.c: New file.
42167         * m4/cbrtl.m4: New file.
42168         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
42169         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
42170         HAVE_DECL_CBRTL.
42171         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
42172         HAVE_DECL_CBRTL.
42173         * modules/cbrtl: New file.
42174         * tests/test-math-c++.cc: Check the declaration of cbrtl.
42175         * doc/posix-functions/cbrtl.texi: Mention the new module.
42177 2012-02-29  Bruno Haible  <bruno@clisp.org>
42179         Tests for module 'cbrtf'.
42180         * modules/cbrtf-tests: New file.
42181         * tests/test-cbrtf.c: New file.
42183         New module 'cbrtf'.
42184         * lib/math.in.h (cbrtf): New declaration.
42185         * lib/cbrtf.c: New file.
42186         * m4/cbrtf.m4: New file.
42187         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
42188         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
42189         HAVE_DECL_CBRTF.
42190         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
42191         HAVE_DECL_CBRTF.
42192         * modules/cbrtf: New file.
42193         * tests/test-math-c++.cc: Check the declaration of cbrtf.
42194         * doc/posix-functions/cbrtf.texi: Mention the new module.
42196 2012-02-29  Bruno Haible  <bruno@clisp.org>
42198         cbrt: Provide replacement on MSVC and Minix.
42199         * lib/math.in.h (cbrt): New declaration.
42200         * lib/cbrt.c: New file.
42201         * m4/cbrt.m4: New file.
42202         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
42203         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
42204         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
42205         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
42206         (Depends-on): Add dependencies.
42207         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
42208         * tests/test-math-c++.cc: Check the declaration of cbrt.
42209         * doc/posix-functions/cbrt.texi: Mention that the module provides a
42210         replacement.
42212 2012-02-29  Bruno Haible  <bruno@clisp.org>
42214         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
42215         * m4/hypotl-ieee.m4: New file.
42216         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
42217         test whether hypotl works with mixed NaN and Infinity arguments.
42218         Replace it if not.
42219         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
42220         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
42221         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
42222         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
42223         (Depends-on): Update conditions.
42224         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
42225         (Depends-on): Add hypot-ieee.
42226         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
42227         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
42229         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
42230         * m4/hypotf-ieee.m4: New file.
42231         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
42232         test whether hypotf works with mixed NaN and Infinity arguments.
42233         Replace it if not.
42234         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
42235         (Depends-on): Add hypot-ieee.
42236         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
42237         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
42239         hypot-ieee: Work around test failure on OSF/1 and native Windows.
42240         * lib/math.in.h (hypot): New declaration.
42241         * lib/hypot.c: New file.
42242         * m4/hypot-ieee.m4: New file.
42243         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
42244         whether hypot works with mixed NaN and Infinity arguments. Replace it
42245         if not.
42246         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
42247         REPLACE_HYPOT.
42248         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
42249         * modules/hypot (Files): Add lib/hypot.c.
42250         (Depends-on): Add dependencies.
42251         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
42252         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
42253         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
42254         * tests/test-math-c++.cc: Check the declaration of hypot.
42255         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
42257         Tests for module 'hypotl-ieee'.
42258         * modules/hypotl-ieee-tests: New file.
42259         * tests/test-hypotl-ieee.c: New file.
42261         New module 'hypotl-ieee'.
42262         * modules/hypotl-ieee: New file.
42264         Tests for module 'hypot-ieee'.
42265         * modules/hypot-ieee-tests: New file.
42266         * tests/test-hypot-ieee.c: New file.
42268         New module 'hypot-ieee'.
42269         * modules/hypot-ieee: New file.
42271         Tests for module 'hypotf-ieee'.
42272         * modules/hypotf-ieee-tests: New file.
42273         * tests/test-hypotf-ieee.c: New file.
42274         * tests/test-hypot-ieee.h: New file.
42276         New module 'hypotf-ieee'.
42277         * modules/hypotf-ieee: New file.
42279 2012-02-29  Bruno Haible  <bruno@clisp.org>
42281         Remove unused variables.
42282         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
42283         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
42284         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
42285         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
42287 2012-02-29  Eric Blake  <eblake@redhat.com>
42289         termios: fix pid_t always, not just for tcgetsid
42290         * doc/posix-headers/termios.texi (termios.h): Mention problem.
42291         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
42292         just when building tcgetsid.
42294 2012-02-29  Bruno Haible  <bruno@clisp.org>
42296         Tests for module 'hypotl'.
42297         * modules/hypotl-tests: New file.
42298         * tests/test-hypotl.c: New file.
42300         New module 'hypotl'.
42301         * lib/math.in.h (hypotl): New declaration.
42302         * lib/hypotl.c: New file.
42303         * m4/hypotl.m4: New file.
42304         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
42305         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
42306         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
42307         * modules/hypotl: New file.
42308         * tests/test-math-c++.cc: Check the hypotl declaration.
42309         * doc/posix-functions/hypotl.texi: Mention the new module.
42311 2012-02-29  Eric Blake  <eblake@redhat.com>
42313         tcgetsid: fix cygwin header bug
42314         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
42316         docs: update cygwin progress
42317         * doc/posix-functions/llround.texi (llround): Added in cygwin
42318         1.7.8.
42319         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
42320         * doc/glibc-functions/program_invocation_name.texi
42321         (program_invocation_name): Likewise.
42322         * doc/glibc-functions/program_invocation_short_name.texi
42323         (program_invocation_short_name): Likewise.
42324         * doc/glibc-functions/madvise.texi (madvise): Likewise.
42325         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
42326         Likewise.
42327         * doc/posix-functions/pthread_spin_destroy.texi
42328         (pthread_spin_destroy): Added in cygwin 1.7.10.
42329         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
42330         Likewise.
42331         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
42332         Likewise.
42333         * doc/posix-functions/pthread_spin_trylock.texi
42334         (pthread_spin_trylock): Likewise.
42335         * doc/posix-functions/pthread_spin_unlock.texi
42336         (pthread_spin_unlock): Likewise.
42337         * doc/posix-functions/pthread_setschedprio.texi
42338         (pthread_setschedprio): Likewise.
42339         * doc/posix-functions/pthread_attr_getstack.texi
42340         (pthread_attr_getstack): Likewise.
42341         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
42342         (pthread_attr_getstackaddr): Likewise.
42343         * doc/glibc-functions/pthread_getattr_np.texi
42344         (pthread_getattr_np): Likewise.
42345         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
42346         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
42347         * doc/posix-functions/clock_settime.texi (clock_settime):
42348         Likewise.
42349         * doc/posix-functions/pthread_attr_getguardsize.texi
42350         (pthread_attr_getguardsize): Likewise.
42351         * doc/posix-functions/pthread_attr_setguardsize.texi
42352         (pthread_attr_setguardsize): Likewise.
42353         * doc/posix-functions/pthread_attr_setstack.texi
42354         (pthread_attr_setstack): Likewise.
42355         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
42356         (pthread_attr_setstackaddr): Likewise.
42357         * doc/posix-functions/clock_getcpuclockid.texi
42358         (clock_getcpuclockid): Likewise.
42359         * doc/posix-functions/pthread_getcpuclockid.texi
42360         (pthread_getcpuclockid): Likewise.
42361         * doc/glibc-functions/error.texi (error): Likewise.
42362         * doc/glibc-functions/error_at_line.texi (error_at_line):
42363         Likewise.
42364         * doc/glibc-functions/error_message_count.texi
42365         (error_message_count): Likewise.
42366         * doc/glibc-functions/error_one_per_line.texi
42367         (error_one_per_line): Likewise.
42368         * doc/glibc-functions/error_print_progname.texi
42369         (error_print_progname): Likewise.
42370         * doc/posix-functions/pthread_condattr_getclock.texi
42371         (pthread_condattr_getclock): Likewise.
42372         * doc/posix-functions/pthread_condattr_setclock.texi
42373         (pthread_condattr_setclock): Likewise.
42374         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
42375         Likewise.
42376         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
42377         * doc/glibc-functions/getpt.texi (getpt): Likewise.
42378         * doc/glibc-functions/get_current_dir_name.texi
42379         (get_current_dir_name): Likewise.
42380         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
42381         Likewise.
42382         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
42383         wrong return type.
42384         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
42385         1.7.11.
42387 2012-02-29  Bruno Haible  <bruno@clisp.org>
42389         Tests for module 'hypotf'.
42390         * modules/hypotf-tests: New file.
42391         * tests/test-hypotf.c: New file.
42393         New module 'hypotf'.
42394         * lib/math.in.h (hypotf): New declaration.
42395         * lib/hypotf.c: New file.
42396         * m4/hypotf.m4: New file.
42397         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
42398         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
42399         REPLACE_HYPOTF.
42400         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
42401         REPLACE_HYPOTF.
42402         * modules/hypotf: New file.
42403         * tests/test-math-c++.cc: Check the hypotf declaration.
42404         * doc/posix-functions/hypotf.texi: Mention the new module.
42406         hypot: Prepare for hypotf module.
42407         * m4/hypot.m4: New file.
42408         * modules/hypot (Files): Add m4/hypot.m4.
42409         (configure.ac): Invoke gl_FUNC_HYPOT.
42411 2012-02-29  Bruno Haible  <bruno@clisp.org>
42413         hypot tests: More tests.
42414         * tests/test-hypot.c: Include <float.h>.
42415         (main): Add tests about overflow and underflow.
42417 2012-02-29  Bruno Haible  <bruno@clisp.org>
42419         math code: Add comments.
42420         * lib/acosl.c: Add comment about related glibc source files.
42421         * lib/asinl.c: Likewise.
42422         * lib/atanl.c: Likewise.
42423         * lib/expl.c: Likewise.
42424         * lib/logl.c: Likewise.
42425         * lib/sincosl.c: Likewise.
42426         * lib/sinl.c: Likewise.
42427         * lib/tanl.c: Likewise.
42428         * lib/trigl.c: Likewise.
42429         * lib/cosl.c: Likewise. Fix comments.
42431 2012-02-28  Bruno Haible  <bruno@clisp.org>
42433         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
42434         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
42435         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
42436         HUGE_VALL are defined.
42437         (numeric_equald): Renamed from numeric_equal.
42438         (numeric_equalf, numeric_equall): New functions.
42439         (main): Check also HUGE_VALF, HUGE_VALL.
42440         * modules/math-tests (Files): Add tests/macros.h.
42441         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
42442         HUGE_VALL.
42444 2012-02-28  Bruno Haible  <bruno@clisp.org>
42446         doc: Move ISO C11 feature notes into POSIX chapters.
42447         * doc/posix-functions/aligned_alloc.texi: Renamed from
42448         doc/glibc-functions/aligned_alloc.texi.
42449         * doc/posix-functions/quick_exit.texi: Renamed from
42450         doc/glibc-functions/quick_exit.texi.
42451         * doc/posix-headers/uchar.texi: Renamed from
42452         doc/glibc-headers/uchar.texi.
42453         * doc/posix-functions/c16rtomb.texi: Renamed from
42454         doc/glibc-functions/c16rtomb.texi.
42455         * doc/posix-functions/c32rtomb.texi: Renamed from
42456         doc/glibc-functions/c32rtomb.texi.
42457         * doc/posix-functions/mbrtoc16.texi: Renamed from
42458         doc/glibc-functions/mbrtoc16.texi.
42459         * doc/posix-functions/mbrtoc32.texi: Renamed from
42460         doc/glibc-functions/mbrtoc32.texi.
42461         * doc/gnulib.texi: Update.
42462         (Glibc uchar.h): Remove section.
42463         Suggested by Eric Blake.
42465 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
42467         stdnoreturn: port to MSVC better
42468         MSVC standard headers use __declspec(noreturn), so #define noreturn
42469         to empty on that platform.  Reported by Bruno Haible in
42470         <http://lists.gnu.org/r/bug-gnulib/2012-02/msg00152.html>.
42471         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
42472         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
42474 2012-02-28  Bruno Haible  <bruno@clisp.org>
42476         doc: Mention new glibc headers and functions.
42477         * doc/glibc-headers/uchar.texi: New file.
42478         * doc/glibc-functions/aligned_alloc.texi: New file.
42479         * doc/glibc-functions/c16rtomb.texi: New file.
42480         * doc/glibc-functions/c32rtomb.texi: New file.
42481         * doc/glibc-functions/clock_adjtime.texi: New file.
42482         * doc/glibc-functions/fanotify_init.texi: New file.
42483         * doc/glibc-functions/fanotify_mark.texi: New file.
42484         * doc/glibc-functions/inet6_opt_append.texi: New file.
42485         * doc/glibc-functions/inet6_opt_find.texi: New file.
42486         * doc/glibc-functions/inet6_opt_finish.texi: New file.
42487         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
42488         * doc/glibc-functions/inet6_opt_init.texi: New file.
42489         * doc/glibc-functions/inet6_opt_next.texi: New file.
42490         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
42491         * doc/glibc-functions/inet6_rth_add.texi: New file.
42492         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
42493         * doc/glibc-functions/inet6_rth_init.texi: New file.
42494         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
42495         * doc/glibc-functions/inet6_rth_segments.texi: New file.
42496         * doc/glibc-functions/inet6_rth_space.texi: New file.
42497         * doc/glibc-functions/login.texi: New file.
42498         * doc/glibc-functions/mbrtoc16.texi: New file.
42499         * doc/glibc-functions/mbrtoc32.texi: New file.
42500         * doc/glibc-functions/name_to_handle_at.texi: New file.
42501         * doc/glibc-functions/ntp_gettimex.texi: New file.
42502         * doc/glibc-functions/open_by_handle_at.texi: New file.
42503         * doc/glibc-functions/prlimit.texi: New file.
42504         * doc/glibc-functions/process_vm_readv.texi: New file.
42505         * doc/glibc-functions/process_vm_writev.texi: New file.
42506         * doc/glibc-functions/recvmmsg.texi: New file.
42507         * doc/glibc-functions/scandirat.texi: New file.
42508         * doc/glibc-functions/sendmmsg.texi: New file.
42509         * doc/glibc-functions/setns.texi: New file.
42510         * doc/glibc-functions/timespec_get.texi: New file.
42511         * doc/gnulib.texi: Include them.
42512         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
42513         sections.
42514         Reported by Eric Blake.
42516 2012-02-28  Bruno Haible  <bruno@clisp.org>
42518         Avoid compilation errors with MSVC option -fp:strict.
42519         * lib/floor.c: Use MSVC specific pragma fenv_access.
42520         * lib/ceil.c: Likewise.
42521         * lib/trunc.c: Likewise.
42522         * lib/round.c: Likewise.
42523         * lib/rint.c: Likewise.
42524         * lib/fma.c: Likewise.
42525         * lib/integer_length.c: Likewise.
42526         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
42527         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
42528         * tests/test-floor2.c: Likewise.
42529         * tests/test-floorf2.c: Likewise.
42530         * tests/test-ceil2.c: Likewise.
42531         * tests/test-ceilf2.c: Likewise.
42532         * tests/test-trunc2.c: Likewise.
42533         * tests/test-truncf2.c: Likewise.
42534         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
42536 2012-02-27  Bruno Haible  <bruno@clisp.org>
42538         Tests for module 'sqrtl-ieee'.
42539         * modules/sqrtl-ieee-tests: New file.
42540         * tests/test-sqrtl-ieee.c: New file.
42542         New module 'sqrtl-ieee'.
42543         * modules/sqrtl-ieee: New file.
42545         Tests for module 'sqrt-ieee'.
42546         * modules/sqrt-ieee-tests: New file.
42547         * tests/test-sqrt-ieee.c: New file.
42549         New module 'sqrt-ieee'.
42550         * modules/sqrt-ieee: New file.
42552         Tests for module 'sqrtf-ieee'.
42553         * modules/sqrtf-ieee-tests: New file.
42554         * tests/test-sqrtf-ieee.c: New file.
42555         * tests/test-sqrt-ieee.h: New file.
42557         New module 'sqrtf-ieee'.
42558         * modules/sqrtf-ieee: New file.
42560 2012-02-27  Bruno Haible  <bruno@clisp.org>
42562         remainderl-ieee: Work around test failure on OSF/1.
42563         * m4/remainderl-ieee.m4: New file.
42564         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
42565         present, test whether remainderl works with a zero second argument.
42566         Replace it if not.
42567         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
42568         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
42569         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
42570         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
42571         (Depends-on): Update conditions.
42572         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
42573         (Depends-on): Add remainder-ieee.
42574         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
42575         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
42576         module.
42578         remainderf-ieee: Work around test failure on OSF/1.
42579         * m4/remainderf-ieee.m4: New file.
42580         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
42581         present, test whether remainderf works with a zero second argument.
42582         Replace it if not.
42583         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
42584         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
42585         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
42586         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
42587         (Depends-on): Update conditions.
42588         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
42589         (Depends-on): Add remainder-ieee.
42590         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
42591         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
42592         module.
42594         remainder-ieee: Work around test failure on OSF/1.
42595         * m4/remainder-ieee.m4: New file.
42596         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
42597         present, test whether remainder works with a zero second argument.
42598         Replace it if not.
42599         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
42600         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
42601         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
42602         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
42603         (Depends-on): Update dependencies.
42604         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
42605         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
42606         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
42608         Tests for module 'remainderl-ieee'.
42609         * modules/remainderl-ieee-tests: New file.
42610         * tests/test-remainderl-ieee.c: New file.
42612         New module 'remainderl-ieee'.
42613         * modules/remainderl-ieee: New file.
42615         Tests for module 'remainder-ieee'.
42616         * modules/remainder-ieee-tests: New file.
42617         * tests/test-remainder-ieee.c: New file.
42619         New module 'remainder-ieee'.
42620         * modules/remainder-ieee: New file.
42622         Tests for module 'remainderf-ieee'.
42623         * modules/remainderf-ieee-tests: New file.
42624         * tests/test-remainderf-ieee.c: New file.
42625         * tests/test-remainder-ieee.h: New file.
42627         New module 'remainderf-ieee'.
42628         * modules/remainderf-ieee: New file.
42630 2012-02-27  Bruno Haible  <bruno@clisp.org>
42632         modff, modfl: Fix configure syntax error.
42633         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
42634         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
42636 2012-02-27  Bruno Haible  <bruno@clisp.org>
42638         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
42639         * m4/fmodl-ieee.m4: New file.
42640         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
42641         whether fmodl works with zero arguments. Replace it if not.
42642         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
42643         (Depends-on): Add fmod-ieee.
42644         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
42645         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
42647         fmodf-ieee: Work around test failure on OSF/1.
42648         * m4/fmodf-ieee.m4: New file.
42649         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
42650         whether fmodf works with zero arguments. Replace it if not.
42651         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
42652         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
42653         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
42654         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
42655         (Depends-on): Update dependencies.
42656         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
42657         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
42658         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
42660         fmodf-ieee: Work around test failure on MSVC 9.
42661         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
42662         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
42664         fmod-ieee: Work around test failures on OSF/1, mingw.
42665         * m4/fmod-ieee.m4: New file.
42666         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
42667         whether fmod works with zero arguments. Replace it if not.
42668         * lib/math.in.h (fmod): New declaration.
42669         * lib/fmod.c: New file.
42670         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
42671         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
42672         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
42673         * modules/fmod (Files): Add lib/fmod.c.
42674         (Depends-on): Add math, isinf, trunc, fma.
42675         (configure.ac): Arrange to compile lib/fmod.c if needed.
42676         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
42677         m4/signbit.m4.
42678         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
42679         * tests/test-math-c++.cc: Check the declaration of fmod.
42680         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
42682         fmodl-ieee: Fix test failures.
42683         * lib/fmodl.c (fmodl): Treat Inf specially.
42684         * modules/fmodl (Depends-on): Add isinf.
42686         Tests for module 'fmodl-ieee'.
42687         * modules/fmodl-ieee-tests: New file.
42688         * tests/test-fmodl-ieee.c: New file.
42690         New module 'fmodl-ieee'.
42691         * modules/fmodl-ieee: New file.
42693         Tests for module 'fmod-ieee'.
42694         * modules/fmod-ieee-tests: New file.
42695         * tests/test-fmod-ieee.c: New file.
42697         New module 'fmod-ieee'.
42698         * modules/fmod-ieee: New file.
42700         Tests for module 'fmodf-ieee'.
42701         * modules/fmodf-ieee-tests: New file.
42702         * tests/test-fmodf-ieee.c: New file.
42703         * tests/test-fmod-ieee.h: New file.
42705         New module 'fmodf-ieee'.
42706         * modules/fmodf-ieee: New file.
42708 2012-02-27  Bruno Haible  <bruno@clisp.org>
42710         Tests for module 'rintl-ieee'.
42711         * modules/rintl-ieee-tests: New file.
42712         * tests/test-rintl-ieee.c: New file.
42714         New module 'rintl-ieee'.
42715         * modules/rintl-ieee: New file.
42717         Tests for module 'rint-ieee'.
42718         * modules/rint-ieee-tests: New file.
42719         * tests/test-rint-ieee.c: New file.
42721         New module 'rint-ieee'.
42722         * modules/rint-ieee: New file.
42724         Tests for module 'rintf-ieee'.
42725         * modules/rintf-ieee-tests: New file.
42726         * tests/test-rintf-ieee.c: New file.
42727         * tests/test-rint-ieee.h: New file.
42729         New module 'rintf-ieee'.
42730         * modules/rintf-ieee: New file.
42732 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
42734         regex: re_search etc. should return -2 when memory exhausted
42735         This bug was uncovered when testing 'grep'.  Without the fix,
42736         re_search and friends return -1 when memory is exhausted, but -1
42737         means no match, and this causes grep to falsely report no-match
42738         instead of memory-exhaustion.  See
42739         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
42740         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
42741         trouble; this can occur if re_search_internal ran out of memory.
42743 2012-02-26  Bruno Haible  <bruno@clisp.org>
42745         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
42746         * m4/modfl-ieee.m4: New file.
42747         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
42748         whether modfl works with Inf. Replace it if not.
42749         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
42750         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
42751         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
42752         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
42753         (Depends-on): Update dependencies.
42754         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
42755         m4/signbit.m4.
42756         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
42757         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
42759         modfl-ieee: Fix dependencies.
42760         * modules/modfl-ieee (Depends-on): Add modf-ieee.
42762         modfl-ieee: Fix test failures.
42763         * lib/modfl.c (modfl): Treat NaN and Inf specially.
42764         * modules/modfl (Depends-on): Add isfinite, isinf.
42766         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
42767         * m4/modff-ieee.m4: New file.
42768         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
42769         whether modff works with NaN and Inf. Replace it if not.
42770         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
42771         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
42772         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
42773         * modules/modff (configure.ac): Consider REPLACE_MODFF.
42774         (Depends-on): Update dependencies.
42775         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
42776         m4/signbit.m4.
42777         (Depends-on): Add modf-ieee.
42778         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
42779         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
42781         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
42782         * m4/modf-ieee.m4: New file.
42783         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
42784         whether modf works with NaN and Inf. Replace it if not.
42785         * lib/math.in.h (modf): New declaration.
42786         * lib/modf.c: New file.
42787         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
42788         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
42789         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
42790         * modules/modf (Files): Add lib/modf.c.
42791         (Depends-on): Add math, isfinite, trunc, isinf.
42792         (configure.ac): Addrange to compile lib/modf.c if needed.
42793         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
42794         m4/signbit.m4.
42795         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
42796         * tests/test-math-c++.cc: Check the declaration of modf.
42797         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
42799         Tests for module 'modfl-ieee'.
42800         * modules/modfl-ieee-tests: New file.
42801         * tests/test-modfl-ieee.c: New file.
42803         New module 'modfl-ieee'.
42804         * modules/modfl-ieee: New file.
42806         Tests for module 'modf-ieee'.
42807         * modules/modf-ieee-tests: New file.
42808         * tests/test-modf-ieee.c: New file.
42810         New module 'modf-ieee'.
42811         * modules/modf-ieee: New file.
42813         Tests for module 'modff-ieee'.
42814         * modules/modff-ieee-tests: New file.
42815         * tests/test-modff-ieee.c: New file.
42816         * tests/test-modf-ieee.h: New file.
42818         New module 'modff-ieee'.
42819         * modules/modff-ieee: New file.
42821 2012-02-26  Bruno Haible  <bruno@clisp.org>
42823         Tests for module 'fabsl-ieee'.
42824         * modules/fabsl-ieee-tests: New file.
42825         * tests/test-fabsl-ieee.c: New file.
42827         New module 'fabsl-ieee'.
42828         * modules/fabsl-ieee: New file.
42830         Tests for module 'fabs-ieee'.
42831         * modules/fabs-ieee-tests: New file.
42832         * tests/test-fabs-ieee.c: New file.
42834         New module 'fabs-ieee'.
42835         * modules/fabs-ieee: New file.
42837         Tests for module 'fabsf-ieee'.
42838         * modules/fabsf-ieee-tests: New file.
42839         * tests/test-fabsf-ieee.c: New file.
42840         * tests/test-fabs-ieee.h: New file.
42842         New module 'fabsf-ieee'.
42843         * modules/fabsf-ieee: New file.
42845 2012-02-26  Bruno Haible  <bruno@clisp.org>
42847         Tests for module 'fmal-ieee'.
42848         * modules/fmal-ieee-tests: New file.
42849         * tests/test-fmal-ieee.c: New file.
42851         New module 'fmal-ieee'.
42852         * modules/fmal-ieee: New file.
42854         Tests for module 'fma-ieee'.
42855         * modules/fma-ieee-tests: New file.
42856         * tests/test-fma-ieee.c: New file.
42858         New module 'fma-ieee'.
42859         * modules/fma-ieee: New file.
42861         Tests for module 'fmaf-ieee'.
42862         * modules/fmaf-ieee-tests: New file.
42863         * tests/test-fmaf-ieee.c: New file.
42864         * tests/test-fma-ieee.h: New file.
42866         New module 'fmaf-ieee'.
42867         * modules/fmaf-ieee: New file.
42869 2012-02-26  Bruno Haible  <bruno@clisp.org>
42871         Tests for module 'ldexpl-ieee'.
42872         * modules/ldexpl-ieee-tests: New file.
42873         * tests/test-ldexpl-ieee.c: New file.
42875         New module 'ldexpl-ieee'.
42876         * modules/ldexpl-ieee: New file.
42878         Tests for module 'ldexp-ieee'.
42879         * modules/ldexp-ieee-tests: New file.
42880         * tests/test-ldexp-ieee.c: New file.
42882         New module 'ldexp-ieee'.
42883         * modules/ldexp-ieee: New file.
42885         Tests for module 'ldexpf-ieee'.
42886         * modules/ldexpf-ieee-tests: New file.
42887         * tests/test-ldexpf-ieee.c: New file.
42888         * tests/test-ldexp-ieee.h: New file.
42890         New module 'ldexpf-ieee'.
42891         * modules/ldexpf-ieee: New file.
42893 2012-02-26  Bruno Haible  <bruno@clisp.org>
42895         Refactor frexp*-ieee tests.
42896         * tests/test-frexp-ieee.h: New file.
42897         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
42898         (main): Just call test_function.
42899         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
42900         (main): Just call test_function.
42901         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
42902         (main): Just call test_function.
42903         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
42904         * modules/frexp-ieee-tests (Files): Likewise.
42905         * modules/frexpl-ieee-tests (Files): Likewise.
42907         Tests for module 'frexpl-ieee'.
42908         * modules/frexpl-ieee-tests: New file.
42909         * tests/test-frexpl-ieee.c: New file.
42911         New module 'frexpl-ieee'.
42912         * modules/frexpl-ieee: New file.
42914         Tests for module 'frexp-ieee'.
42915         * modules/frexp-ieee-tests: New file.
42916         * tests/test-frexp-ieee.c: New file.
42918         New module 'frexp-ieee'.
42919         * modules/frexp-ieee: New file.
42921         Tests for module 'frexpf-ieee'.
42922         * modules/frexpf-ieee-tests: New file.
42923         * tests/test-frexpf-ieee.c: New file.
42925         New module 'frexpf-ieee'.
42926         * modules/frexpf-ieee: New file.
42928 2012-02-26  Bruno Haible  <bruno@clisp.org>
42930         roundl-ieee tests: More tests.
42931         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
42932         (main): Add tests for [MX] shaded specification in POSIX.
42933         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42934         (Depends-on): Add isnanl-nolibm.
42936         round-ieee tests: More tests.
42937         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
42938         (main): Add tests for [MX] shaded specification in POSIX.
42939         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42940         (Depends-on): Add isnand-nolibm.
42942         roundf-ieee tests: More tests.
42943         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
42944         (main): Add tests for [MX] shaded specification in POSIX.
42945         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42946         (Depends-on): Add isnanf-nolibm.
42948         truncl-ieee tests: More tests.
42949         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
42950         (main): Add tests for [MX] shaded specification in POSIX.
42951         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42952         (Depends-on): Add isnanl-nolibm.
42954         trunc-ieee tests: More tests.
42955         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
42956         (main): Add tests for [MX] shaded specification in POSIX.
42957         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42958         (Depends-on): Add isnand-nolibm.
42960         truncf-ieee tests: More tests.
42961         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
42962         (main): Add tests for [MX] shaded specification in POSIX.
42963         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42964         (Depends-on): Add isnanf-nolibm.
42966         ceill-ieee tests: More tests.
42967         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
42968         (main): Add tests for [MX] shaded specification in POSIX.
42969         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42970         (Depends-on): Add isnanl-nolibm.
42972         ceil-ieee tests: More tests.
42973         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
42974         (main): Add tests for [MX] shaded specification in POSIX.
42975         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42976         (Depends-on): Add isnand-nolibm.
42978         ceilf-ieee tests: More tests.
42979         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
42980         (main): Add tests for [MX] shaded specification in POSIX.
42981         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42982         (Depends-on): Add isnanf-nolibm.
42984         floorl-ieee tests: More tests.
42985         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
42986         (main): Add tests for [MX] shaded specification in POSIX.
42987         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42988         (Depends-on): Add isnanl-nolibm.
42990         floor-ieee tests: More tests.
42991         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
42992         (main): Add tests for [MX] shaded specification in POSIX.
42993         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42994         (Depends-on): Add isnand-nolibm.
42996         floorf-ieee tests: More tests.
42997         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
42998         (main): Add tests for [MX] shaded specification in POSIX.
42999         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
43000         (Depends-on): Add isnanf-nolibm.
43002 2012-02-26  Bruno Haible  <bruno@clisp.org>
43004         fpieee: More comments.
43005         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
43007 2012-02-25  Bruno Haible  <bruno@clisp.org>
43009         Tests for module 'log10l'.
43010         * modules/log10l-tests: New file.
43011         * tests/test-log10l.c: New file.
43012         * tests/test-math-c++.cc: Check the declaration of log10l.
43014         New module 'log10l'.
43015         * lib/math.in.h (log10l): New declaration.
43016         * lib/log10l.c: New file.
43017         * m4/log10l.m4: New file.
43018         * modules/log10l: New file.
43019         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
43020         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
43021         HAVE_DECL_LOG10L.
43022         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
43023         HAVE_DECL_LOG10L.
43024         * doc/posix-functions/log10l.texi: Mention the new module.
43026 2012-02-25  Bruno Haible  <bruno@clisp.org>
43028         fmodl, remainder*: Avoid wrong results due to rounding errors.
43029         * lib/fmodl.c (fmodl): Correct the result if it is not within the
43030         expected bounds.
43031         * lib/remainderf.c (remainderf): Likewise.
43032         * lib/remainder.c (remainder): Likewise.
43033         * lib/remainderl.c (remainderl): Likewise.
43035 2012-02-25  Bruno Haible  <bruno@clisp.org>
43037         Tests for module 'remainderl'.
43038         * modules/remainderl-tests: New file.
43039         * tests/test-remainderl.c: New file.
43040         * tests/test-math-c++.cc: Check the declaration of remainderl.
43042         New module 'remainderl'.
43043         * lib/math.in.h (remainderl): New declaration.
43044         * lib/remainderl.c: New file.
43045         * m4/remainderl.m4: New file.
43046         * modules/remainderl: New file.
43047         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
43048         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
43049         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
43050         HAVE_REMAINDERL.
43051         * doc/posix-functions/remainderl.texi: Mention the new module.
43053 2012-02-25  Bruno Haible  <bruno@clisp.org>
43055         Tests for module 'remainderf'.
43056         * modules/remainderf-tests: New file.
43057         * tests/test-remainderf.c: New file.
43058         * tests/test-math-c++.cc: Check the declaration of remainderf.
43060         New module 'remainderf'.
43061         * lib/math.in.h (remainderf): New declaration.
43062         * lib/remainderf.c: New file.
43063         * m4/remainderf.m4: New file.
43064         * modules/remainderf: New file.
43065         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
43066         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
43067         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
43068         HAVE_REMAINDERF.
43069         * doc/posix-functions/remainderf.texi: Mention the new module.
43071 2012-02-25  Bruno Haible  <bruno@clisp.org>
43073         remainder: Support for MSVC.
43074         * lib/math.in.h (remainder): New declaration.
43075         * lib/remainder.c: New file.
43076         * m4/remainder.m4: New file.
43077         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
43078         (Depends-on): Add math, round, fma.
43079         (configure.ac): Use results of gl_FUNC_REMAINDER.
43080         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
43081         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
43082         HAVE_DECL_REMAINDER.
43083         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
43084         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
43085         * tests/test-math-c++.cc: Check the declaration of remainder.
43086         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
43087         problems are fixed.
43089 2012-02-25  Bruno Haible  <bruno@clisp.org>
43091         Tests for module 'fmodl'.
43092         * modules/fmodl-tests: New file.
43093         * tests/test-fmodl.c: New file.
43094         * tests/test-math-c++.cc: Check the declaration of fmodl.
43096         New module 'fmodl'.
43097         * lib/math.in.h (fmodl): New declaration.
43098         * lib/fmodl.c: New file.
43099         * m4/fmodl.m4: New file.
43100         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
43101         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
43102         REPLACE_FMODL.
43103         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
43104         REPLACE_FMODL.
43105         * modules/fmodl: New file.
43106         * doc/posix-functions/fmodl.texi: Mention the new module.
43108 2012-02-25  Bruno Haible  <bruno@clisp.org>
43110         Tests for module 'modfl'.
43111         * modules/modfl-tests: New file.
43112         * tests/test-modfl.c: New file.
43113         * tests/test-math-c++.cc: Check the declaration of modfl.
43115         New module 'modfl'.
43116         * lib/math.in.h (modfl): New declaration.
43117         * lib/modfl.c: New file.
43118         * m4/modfl.m4: New file.
43119         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
43120         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
43121         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
43122         * modules/modfl: New file.
43123         * doc/posix-functions/modfl.texi: Mention the new module.
43125 2012-02-25  Bruno Haible  <bruno@clisp.org>
43127         Tests for module 'fabsl'.
43128         * modules/fabsl-tests: New file.
43129         * tests/test-fabsl.c: New file.
43130         * tests/test-math-c++.cc: Check the declaration of fabsl.
43132         New module 'fabsl'.
43133         * lib/math.in.h (fabsl): New declaration.
43134         * lib/fabsl.c: New file.
43135         * m4/fabsl.m4: New file.
43136         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
43137         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
43138         REPLACE_FABSL.
43139         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
43140         REPLACE_FABSL.
43141         * modules/fabsl: New file.
43142         * doc/posix-functions/fabsl.texi: Mention the new module.
43144 2012-02-25  Bruno Haible  <bruno@clisp.org>
43146         fabs tests: More tests.
43147         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
43148         (zero): New variable.
43149         (main): Add tests for signed zero.
43150         * modules/fabs-tests (Files): Add tests/minus-zero.h.
43152         fabsf tests: More tests.
43153         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
43154         (zero): New variable.
43155         (main): Add tests for signed zero.
43156         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
43158 2012-02-24  Bruno Haible  <bruno@clisp.org>
43160         atanl: Provide function definition on MSVC.
43161         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
43162         function pointer.
43163         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
43165 2012-02-24  Bruno Haible  <bruno@clisp.org>
43167         acosl: Provide function definition on MSVC.
43168         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
43169         function pointer.
43170         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
43172 2012-02-24  Bruno Haible  <bruno@clisp.org>
43174         asinl: Provide function definition on MSVC.
43175         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
43176         function pointer.
43177         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
43179 2012-02-24  Bruno Haible  <bruno@clisp.org>
43181         tanl: Provide function definition on MSVC.
43182         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
43183         function pointer.
43184         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
43186 2012-02-24  Bruno Haible  <bruno@clisp.org>
43188         cosl: Provide function definition on MSVC.
43189         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
43190         function pointer.
43191         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
43193 2012-02-24  Bruno Haible  <bruno@clisp.org>
43195         sinl: Provide function definition on MSVC.
43196         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
43197         function pointer.
43198         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
43200 2012-02-24  Bruno Haible  <bruno@clisp.org>
43202         logl: Provide function definition on MSVC.
43203         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
43204         function pointer.
43205         * lib/math.in.h (logl): Undefine if it does not exist as a function.
43207 2012-02-24  Bruno Haible  <bruno@clisp.org>
43209         expl: Provide function definition on MSVC.
43210         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
43211         function pointer.
43212         * lib/math.in.h (expl): Undefine if it does not exist as a function.
43214 2012-02-24  Bruno Haible  <bruno@clisp.org>
43216         sqrtl: Provide function definition on MSVC.
43217         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
43218         a function pointer.
43219         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
43221 2012-02-24  Bruno Haible  <bruno@clisp.org>
43223         ceill: Provide function definition on MSVC.
43224         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
43225         used as a function pointer.
43226         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
43228 2012-02-24  Bruno Haible  <bruno@clisp.org>
43230         floorl: Provide function definition on MSVC.
43231         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
43232         used as a function pointer.
43233         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
43235 2012-02-24  Bruno Haible  <bruno@clisp.org>
43237         ceilf: Provide function definition on MSVC.
43238         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
43239         used as a function pointer.
43240         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
43242 2012-02-24  Bruno Haible  <bruno@clisp.org>
43244         floorf: Provide function definition on MSVC.
43245         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
43246         used as a function pointer.
43247         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
43249 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
43251         stdnoreturn: new module
43252         This implements a replacement for C11's <stdnoreturn.h>.
43253         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
43254         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
43255         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
43256         * tests/test-stdnoreturn.c: New files.
43258 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
43260         regex: fix false multibyte matches in some regular expressions
43261         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
43262         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
43263         * lib/regex_internal.c (re_string_skip_chars):
43264         Fix miscomputation of remain_len that may cause incomplete
43265         multi-byte character and false match.
43267 2012-02-24  Jim Meyering  <meyering@redhat.com>
43269         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
43270         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
43271         uses with "==" *before* the call, e.g., 0 == strcmp (...)
43272         Remove now-unnecessary str''cmp obfuscation.
43273         Suggested by Akim Demaille.
43275 2012-02-24  Bruno Haible  <bruno@clisp.org>
43277         streq: Rename macro.
43278         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
43279         * NEWS: Mention the change.
43280         * lib/mbrtowc.c (mbrtowc): Update.
43281         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
43282         * lib/wcwidth.c (wcwidth): Update.
43283         Suggested by Akim Demaille and Jim Meyering.
43285 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
43287         regex: fix typo in definition of MIN
43288         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
43289         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
43291 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
43292             Bruno Haible  <bruno@clisp.org>
43294         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
43295         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
43296         entries into a stack-allocated buffer directly.
43297         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
43299 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
43300             Bruno Haible  <bruno@clisp.org>
43302         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
43304          - There were several instances of this pattern:
43306              for (;;) {
43307                n = acl (f, GETACLCNT, 0, NULL);
43308                [ allocate an array A of size N ]
43309                if (acl (f, GETACL, n, a) == n)
43310                  break;
43311              }
43313            This loop might never terminate if some other process is constantly
43314            manipulating the file's ACL.  The loop should be rewritten to
43315            terminate.
43317          - The acl (... GETACLNT ...) call is merely an optimization; its value
43318            is merely a hint as to how big to make the array.  A better
43319            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
43320            and just guess a reasonably-big size, growing the size and trying
43321            again if it's not large enough.  This guarantees termination, and
43322            saves a system call.
43324         * lib/acl-internal.h: Include <limits.h>.
43325         (MIN, SIZE_MAX): New macros.
43326         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
43327         a stack-allocated buffer, and use malloc if it does not fit. Don't
43328         use GETACLCNT.
43329         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
43331 2012-02-19  Bruno Haible  <bruno@clisp.org>
43333         acl: Fix endless loop on Solaris with vxfs.
43334         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
43335         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
43336         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
43337         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
43338         * tests/test-sameacls.c (main)[Solaris]: Likewise.
43339         Reported by Bill Jones in
43340         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
43342 2012-02-19  Bruno Haible  <bruno@clisp.org>
43344         acl: Fix copy-acl test failure on Solaris 11.0.
43345         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
43346         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
43347         that this function returns 0 in some more cases.
43349 2012-02-19  Bruno Haible  <bruno@clisp.org>
43351         acl: Update doc references.
43352         * doc/acl-resources.txt: Update links to Solaris documentation.
43354 2012-02-19  Bruno Haible  <bruno@clisp.org>
43356         Fix test failure in many locales on Solaris 11.
43357         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
43358         'tr' arguments.
43359         * tests/test-pipe-filter-ii1.c (main): Likewise.
43360         * build-aux/bootstrap (check_versions): Run 'tr' command with range
43361         expressions in the C locale.
43362         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
43363         * m4/host-os.m4 (gl_HOST_OS): Likewise.
43365 2012-02-19  Bruno Haible  <bruno@clisp.org>
43367         gnulib-tool: Improve usage message.
43368         * gnulib-tool (func_usage): Move doc of --help and --version to the
43369         section "Operation modes".
43371 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
43373         README-release: make it easier to execute commands
43374         * top/README-release: break commands out on to separate lines.
43376 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
43378         GNUmakefile: simplify detection of unconfigured trees
43379         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
43380         whether the tree make is being run from is already configured or
43381         not.  Related simplifications.
43383 2012-02-13  Simon Josefsson  <simon@josefsson.org>
43385         * gnulib-tool (func_usage): Document --help and --version.
43387 2012-02-11  Jim Meyering  <meyering@redhat.com>
43389         bootstrap: don't exit 0 upon gnulib-tool failure
43390         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
43391         its exit status, not 0.
43393 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
43395         README-release: various improvements
43396         * top/README-release: Give a command to push changes for the
43397         release.  Add "distcheck" to list of other pre-release checks.
43398         Fix instance of "make stable" which should be "make TYPE".
43400 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
43402         maint: replace FSF snail-mail addresses with URLs
43403         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
43404         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
43405         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
43406         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
43407         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
43408         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
43409         * lib/check-version.c, lib/check-version.h, lib/config.charset:
43410         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
43411         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
43412         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
43413         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
43414         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
43415         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
43416         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
43417         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
43418         * lib/glthread/thread.c, lib/glthread/thread.h:
43419         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
43420         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
43421         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
43422         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
43423         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
43424         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
43425         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
43426         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
43427         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
43428         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
43429         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
43430         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
43431         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
43432         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
43433         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
43434         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
43435         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
43436         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
43437         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
43438         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
43439         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
43440         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
43441         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
43442         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
43443         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
43444         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
43445         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
43446         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
43447         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
43448         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
43449         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
43450         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
43451         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
43452         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
43453         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
43454         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
43455         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
43456         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
43457         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
43458         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
43459         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
43460         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
43461         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
43462         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
43463         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
43464         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
43465         * tests/test-poll.c, tests/test-quotearg-simple.c:
43466         * tests/test-quotearg.c, tests/test-quotearg.h:
43467         * tests/test-round-ieee.c, tests/test-round1.c:
43468         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
43469         * tests/test-roundl-ieee.c, tests/test-roundl.c:
43470         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
43471         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
43472         * tests/test-strerror.c, tests/test-strerror_r.c:
43473         * tests/test-strsignal.c, tests/test-strverscmp.c:
43474         * tests/test-xmemdup0.c:
43475         Replace FSF snail mail addresses with URLs, as per GNU coding
43476         standards.  See glibc bug
43477         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
43479 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
43481         README-release: capitalize a word and split a line
43482         * top/README-release: Fix punctuation and spacing.
43484 2012-02-08  Akim Demaille  <demaille@gostai.com>
43486         fatal-signal: use C prototypes (with explicit void).
43487         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
43488         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
43490 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
43492         regex: spelling fix
43493         * lib/regexec.c: spelling fix
43495         regex: rely on stdint.h for SIZE_MAX
43496         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
43498 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
43500         regex: merge glibc changes
43502         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
43503         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
43504         (init_word_char): Work even if bitset words are not exactly 32 or
43505         64 bits wide.  Don't assume there are no padding bits.
43506         * lib/regex.c [_LIBC]: Do not include <config.h>.
43507         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
43508         and -Wtype-limits.
43509         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
43510         needless disagreement with glibc.  All uses changed.  Define it to
43511         1 only if _GNU_SOURCE, to match glibc.
43512         (_REG_RM_NAME): Remove; no longer needed, since the names in
43513         question are now all protected by __USE_GNU.
43514         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
43515         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
43516         * lib/regex_internal.h (MIN): New macro.
43518         2012-01-03 Ulrich Drepper <drepper@gmail.com>
43519         * lib/regcomp.c (init_word_char): Optimize regex a bit.
43521         2011-12-30 Jakub Jelinek <jakub@redhat.com>
43522         * lib/regex_internal.c (re_string_fetch_byte_case):
43523         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
43524         is miscompiled, and it turns out it is because of an incorrect
43525         attribute on re_string_fetch_byte_case.  Unlike
43526         re_string_peek_byte_case, this one is really not pure, it modifies
43527         memory (increments pstr->cur_idx), and with the pure attribute GCC
43528         assumed it doesn't and it cached the presumed value of
43529         regexp->cur_idx in a variable across the
43530          for (;; ++i)
43531            {
43532              if (i >= BRACKET_NAME_BUF_SIZE)
43533                return REG_EBRACK;
43534              if (token->type == OP_OPEN_CHAR_CLASS)
43535                ch = re_string_fetch_byte_case (regexp);
43536              else
43537                ch = re_string_fetch_byte (regexp);
43538              if (re_string_eoi(regexp))
43539                return REG_EBRACK;
43540              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
43541                break;
43542              elem->opr.name[i] = ch;
43543            }
43545         2011-11-29 Andreas Schwab <schwab@redhat.com>
43546         * lib/regcomp.c (build_equiv_class):
43547         Fix access after end of search string in regex matcher.
43549         2011-11-12 Ulrich Drepper <drepper@redhat.com>
43550         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
43552         2011-10-12 Ulrich Drepper <drepper@redhat.com>
43553         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
43555         2011-10-11 Ulrich Drepper <drepper@redhat.com>
43556         * lib/regcomp.c (parse_branch, parse_sub_exp):
43557         More regex memory leak fixes and tests.
43558         (parse_sub_exp, parse_bracket_exp):
43559         Fix memory leak for some invalid regular expressions.
43561         2011-05-28 Ulrich Drepper <drepper@gmail.com>
43562         * lib/regex_internal.c, lib/regexec.c:
43563         Fix unnecessary overallocation due to incomplete character.  When
43564         incomplete characters are found at the end of a string the code
43565         ran amok and allocated lots of memory.  Stricter limits are now in
43566         place.
43568         2011-05-20 Reuben Thomas <rrt@sc3d.org>
43569         * lib/regex.h: Update documentation.
43571         2011-05-16 Aharon Robbins <arnold@skeeve.com>
43572         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
43574         2010-05-05 Andreas Schwab <schwab@redhat.com>
43575         * lib/regexec.c (find_collation_sequence_value):
43576         Fix lookup of collation sequence value during regexp matching.
43578         2010-01-22 Ulrich Drepper <drepper@redhat.com>
43579         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
43581         2008-01-16 Ulrich Drepper <drepper@redhat.com>
43582         * lib/regex.h: Cleanup namespace.
43584         2007-11-26 Ulrich Drepper <drepper@redhat.com>
43585         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
43587         2007-08-26 Ulrich Drepper <drepper@redhat.com>
43588         * lib/regex_internal.h: Prevent some declarations and definitions
43589         to be seen when used in tests.
43591         2005-05-06 Ulrich Drepper <drepper@redhat.com>
43592         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
43593         __libc_lock_* macros if not _LIBC.
43594         (struct re_dfa_t): Add lock.
43596 2012-02-07  Eric Blake  <eblake@redhat.com>
43598         maint.mk: also prohibit lower-case @var@
43599         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
43600         lower case, like @top_srcdir@.
43602 2012-02-04  Eric Blake  <eblake@redhat.com>
43604         canonicalize: avoid uninitialized memory use
43605         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
43606         random '/' left in dest.
43607         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
43609 2012-02-04  Bruno Haible  <bruno@clisp.org>
43611         isatty: Fix test failure of ptsname_r on native Windows.
43612         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
43613         and don't set errno.
43614         (isatty): Test first whether fd is valid. Set errno when returning 0.
43616 2012-02-04  Bruno Haible  <bruno@clisp.org>
43618         spawn-pipe tests: Fix a NULL program name in a diagnostic.
43619         * tests/test-spawn-pipe-main.c: Include progname.h.
43620         (main): Invoke set_program_name.
43621         * modules/spawn-pipe-tests (Depends-on): Add progname.
43623         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
43624         * tests/test-nonblocking-socket-main.c: Include progname.h.
43625         (main): Invoke set_program_name.
43626         * modules/nonblocking-socket-tests (Depends-on): Add progname.
43628         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
43629         * tests/test-nonblocking-pipe-main.c: Include progname.h.
43630         (main): Invoke set_program_name.
43631         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
43633 2012-02-04  Eric Blake  <eblake@redhat.com>
43635         canonicalize-lgpl: fix // handling
43636         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
43638         canonicalize: fix // handling
43639         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
43640         /// to //, since only // is special.
43642 2012-02-04  Bruno Haible  <bruno@clisp.org>
43644         ioctl: Fix test failure on native Windows.
43645         * lib/ioctl.c: Include msvc-nothrow.h.
43646         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
43648 2012-02-04  Bruno Haible  <bruno@clisp.org>
43650         fsync: Avoid test failure on native Windows.
43651         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
43652         read-only.
43654 2012-02-04  Bruno Haible  <bruno@clisp.org>
43656         sys_select: Avoid syntax error on OpenBSD 5.0.
43657         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
43658         currently being included, just include the system's <sys/select.h>.
43660 2012-02-04  Bruno Haible  <bruno@clisp.org>
43662         sys_select: Avoid syntax error on OpenBSD 5.0.
43663         * lib/sys_select.in.h: Include <signal.h> only after the include_next
43664         <sys/select.h>, not before.
43665         Reported by Jiri B <jirib@devio.us>.
43667 2012-02-04  Bruno Haible  <bruno@clisp.org>
43669         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
43670         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
43671         global variables.
43672         * tests/test-get-rusage-data.c (main): Likewise.
43673         Reported by Jim Meyering.
43675 2012-02-04  Bruno Haible  <bruno@clisp.org>
43677         stdioext: Fix last commit.
43678         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
43680 2012-02-03  Bruno Haible  <bruno@clisp.org>
43682         stdioext: Add tentative support for Plan9.
43683         * lib/stdio-impl.h: Include <errno.h>.
43684         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
43685         * lib/freadable.c (freadable): Likewise.
43686         * lib/fwritable.c (fwritable): Likewise.
43687         * lib/fbufmode.c (fbufmode): Likewise.
43688         * lib/freading.c (freading): Likewise.
43689         * lib/fwriting.c (fwriting): Likewise.
43690         * lib/freadptr.c (freadptr): Likewise.
43691         * lib/freadseek.c (freadptrinc): Likewise.
43692         * lib/freadahead.c (freadahead): Likewise.
43693         * lib/fpurge.c (fpurge): Likewise.
43694         * lib/fseeko.c (rpl_fseeko): Likewise.
43695         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
43696         Reported by Jens Staal <staal1978@gmail.com>.
43698 2012-02-02  Jim Meyering  <meyering@redhat.com>
43700         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
43701         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
43702         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
43703         not even to try to add the attribute.  Instead, add a pragma to suppress
43704         the suggestion/warning.
43706 2012-01-31  Karl Berry  <karl@gnu.org>
43708         setstate doc: typo.
43709         * doc/posix-functions/setstate.texi (setstate): { not (.
43711 2012-01-31  Bruno Haible  <bruno@clisp.org>
43713         popen: Make more robust on Windows.
43714         * lib/popen.c: On native Windows, use the _popen based code even if
43715         HAVE_POPEN is set.
43716         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
43717         environment variable on native Windows.
43719 2012-01-30  Bruno Haible  <bruno@clisp.org>
43721         pclose: Fix typo.
43722         * lib/stdio.in.h (pclose): Fix typo in warning message.
43724 2012-01-30  Bruno Haible  <bruno@clisp.org>
43726         doc about getlogin_r, setstate.
43727         * doc/posix-functions/getlogin_r.texi: List the incompatible
43728         declaration problem under "not fixed by gnulib".
43729         * doc/posix-functions/setstate.texi: Mention incompatible declaration
43730         problem on Solaris 11 and other platforms.
43732 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
43733             Bruno Haible  <bruno@clisp.org>
43735         poll tests: Make test more robust.
43736         * tests/test-poll.c: Include macros.h.
43737         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
43738         return value of various I/O operations.
43739         * modules/poll-tests (Files): Add tests/macros.h.
43741 2012-01-30  Bruno Haible  <bruno@clisp.org>
43743         sys_stat: Fix support for mingw64 and MSVC.
43744         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
43745         header files already do it.
43746         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
43747         stat itself.
43748         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
43750 2012-01-30  Bruno Haible  <bruno@clisp.org>
43752         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
43753         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
43754         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
43756 2012-01-29  Bruno Haible  <bruno@clisp.org>
43758         quotearg: Fix test failure on MacOS X 10.5.
43759         * tests/test-quotearg-simple.c: Include localcharset.h.
43760         (main): If the locale encoding is not ASCII, bypass the tests of
43761         locale_quoting_style and clocale_quoting_style.
43762         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
43764 2012-01-29  Jim Meyering  <meyering@redhat.com>
43766         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
43767         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
43768         detect uses of canonicalize_file_name.
43770 2012-01-28  Bruno Haible  <bruno@clisp.org>
43772         test-framework-sh: Fix test failure with AIX 7.1 diff.
43773         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
43774         in column 1, like 'diff -c' does.
43775         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
43776         whether 'diff -u' is used. Instead, test whether the output contains
43777         some '@' character.
43779 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
43781         strtoimax: eliminate need for stdint.h, inttypes.h checks
43782         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
43783         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
43784         the prerequisites for a recently-introduced strtoimax test.
43785         I guess this might cause strtoimax to be replaced when not
43786         strictly necessary on older hosts, but this shouldn't introduce
43787         any bugs and it should make Emacs 'configure' faster on typical
43788         modern hosts.  Problem discovered when importing the latest gnulib
43789         to an Emacs test version.
43790         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
43792 2012-01-28  Bruno Haible  <bruno@clisp.org>
43794         sys_time: Override 'struct timeval' on some native Windows platforms.
43795         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
43796         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
43797         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
43798         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
43799         needs to be overridden.
43800         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
43801         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
43802         * tests/test-sys_select.c: Check that the tv_sec member has the same
43803         size as a 'time_t'.
43804         * tests/test-sys_time.c: Likewise.
43805         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
43806         is set, set also REPLACE_GETTIMEOFDAY.
43807         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
43808         convert the resulting 'struct timeval' before returning.
43809         * lib/select.c: Include <sys/time.h>.
43810         (select, timeval): Undefine at the right place.
43811         * modules/select (Depends-on): Add sys_time.
43812         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
43813         some Windows platforms.
43814         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
43816 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
43818         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
43819         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
43820         an integer.
43821         * lib/fcntl.c (dupfd): Likewise.
43822         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
43824 2012-01-28  Bruno Haible  <bruno@clisp.org>
43826         fcntl: Avoid compilation error on native Windows.
43827         * modules/fcntl (Depends-on): Add 'close'.
43829 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
43831         select, poll, isatty: Avoid warnings on x86_64 mingw64.
43832         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
43833         pointer to an integer.
43834         * lib/poll.c (IsConsoleHandle): Likewise.
43835         * lib/isatty.c (IsConsoleHandle): Likewise.
43837 2012-01-28  Jim Meyering  <meyering@redhat.com>
43839         doc: clarify README-release
43840         * top/README-release: Clarify: you should make a point to have
43841         the latest stable versions of build tools in your PATH, and the
43842         reference to buildreq is solely for its list of tool names, not
43843         for its minimal-functional version numbers.
43844         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
43846         maint.mk: use more readable (yet functionally equivalent) quoting
43847         It is common to quote a single quote in a single quoted string like
43848         this:  '...'\''...'.  Unless you know the idiom, that looks like
43849         gibberish, so prefer to double-quote the string when possible.
43850         Then you can use a more readable, lone single quote: "...'..."
43851         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
43852         "don't" is more readable than the equivalent 'don'\''t'.
43853         (sc_cast_of_x_alloc_return_value): Likewise.
43854         (sc_cast_of_alloca_return_value): Likewise.
43855         (sc_makefile_path_separator_check): Similar: use ":" in '...',
43856         rather than '\'':'\''.
43858 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
43860         stdalign: relax _Alignof and tighten _Alignas test
43861         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
43862         as it was too strict: alignof must divide offsetof, but it need
43863         not equal offsetof.  Inspired by Joseph S. Myers's comment
43864         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
43865         Conversely, tighten the _Alignas test a bit, as the resulting
43866         alignment must be exactly 8.
43868 2012-01-27  Bruno Haible  <bruno@clisp.org>
43870         stdalign: Document the last change.
43871         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
43873 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
43875         stdalign: check that alignof and offsetof are consistent
43876         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
43877         Problem reported for gnulib by Richard W.M. Jones in
43878         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00340.html>.
43880 2012-01-27  Jim Meyering  <meyering@redhat.com>
43882         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
43883         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
43884         convert a sequence with gaps to the minimal containing range.
43885         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
43886         * tests/test-update-copyright.sh: Test for this.
43887         The FSF confirmed it is ok to do this, assuming there is at
43888         least one significant change per year in the affected range:
43889         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
43891 2012-01-26  Bruno Haible  <bruno@clisp.org>
43893         pipe2: refine doc about thread-safety
43894         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
43895         multithread-safety problem.
43896         * doc/glibc-functions/accept4.texi: Likewise.
43898 2012-01-26  Bruno Haible  <bruno@clisp.org>
43900         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
43901         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
43902         In the test program, include <fcntl.h>, for O_RDONLY.
43904 2012-01-26  Eric Blake  <eblake@redhat.com>
43906         pipe2: document lack of thread-safety in replacement
43907         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
43908         issue in replacement.
43909         * doc/glibc-functions/accept4.texi (accept4): Likewise.
43910         Based on a report by Eric Wong.
43912 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
43913             Bruno Haible  <bruno@clisp.org>
43915         malloca: Avoid warnings on x86_64 mingw64.
43916         * lib/malloca.c: Include <stdint.h>.
43917         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
43918         * modules/malloca (Depends-on): Add stdint.
43919         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
43921 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
43923         obstack: remove __STDC__ conditionals
43924         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
43925         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
43926         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
43927         m4/include_next.m4 as the only gnulib-maintained places that still
43928         refer to __STDC__.
43930 2012-01-24  Bruno Haible  <bruno@clisp.org>
43932         havelib: Modern quoting.
43933         * build-aux/config.rpath: Quote 'like this', not `like this', as per
43934         the recent change to the GNU coding standards.
43936 2012-01-24  Bruno Haible  <bruno@clisp.org>
43938         stdint: Improve support for Android.
43939         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
43940         Reported by Simon Josefsson <simon@josefsson.org>.
43942 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
43944         doc: omit trailing empty lines from INSTALL etc.
43945         * doc/Makefile (INSTALL): Omit trailing empty lines.
43946         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
43947         omit trailing empty lines.  This simplifies the build procedure.
43949 2012-01-23  Jim Meyering  <meyering@redhat.com>
43951         tests: avoid spurious warnings about gl_sockets_startup
43952         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
43953         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
43954         reporting a "statement with no effect".
43955         * tests/test-accept.c (main): Mark as "(void)".
43956         * tests/test-accept4.c (main): Likewise.
43957         * tests/test-bind.c (main): Likewise.
43958         * tests/test-connect.c (main): Likewise.
43959         * tests/test-getpeername.c (main): Likewise.
43960         * tests/test-getsockname.c (main): Likewise.
43961         * tests/test-getsockopt.c (main): Likewise.
43962         * tests/test-listen.c (main): Likewise.
43963         * tests/test-recv.c (main): Likewise.
43964         * tests/test-recvfrom.c (main): Likewise.
43965         * tests/test-send.c (main): Likewise.
43966         * tests/test-sendto.c (main): Likewise.
43967         * tests/test-setsockopt.c (main): Likewise.
43968         * tests/test-shutdown.c (main): Likewise.
43970 2012-01-21  Bruno Haible  <bruno@clisp.org>
43972         locale-fr.m4: Fix for Android.
43973         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
43974         failure of the test program on Bionic libc.
43976 2012-01-21  Jim Meyering  <meyering@redhat.com>
43978         bootstrap: fail when bootstrap_post_import_hook fails
43979         Otherwise, it's far too easy to miss diagnostics emitted
43980         between gnulib-tool's output and that of running configure.
43981         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
43983 2012-01-17  Jim Meyering  <meyering@redhat.com>
43985         maint: enable sc_trailing_blank
43986         * build-aux/pmccabe.css: Remove trailing blanks.
43987         * doc/acl-cygwin.txt: Likewise.
43988         * doc/gnu-oids.texi: Likewise
43989         * cfg.mk: Enable sc_trailing_blank.
43990         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
43992 2012-01-17  Jim Meyering  <meyering@redhat.com>
43994         maint: enable sc_prohibit_openat_without_use
43995         * cfg.mk: Enable sc_prohibit_openat_without_use.
43996         Exempt lib/selinux-at.c.
43998 2012-01-17  Jim Meyering  <meyering@redhat.com>
44000         maint: enable sc_prohibit_cloexec_without_use
44001         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
44002         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
44004 2012-01-17  Jim Meyering  <meyering@redhat.com>
44006         maint: enable sc_prohibit_intprops_without_use
44007         * cfg.mk: Enable sc_prohibit_intprops_without_use
44008         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
44010 2012-01-17  Jim Meyering  <meyering@redhat.com>
44012         maint: enable sc_prohibit_hash_pjw_without_use
44013         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
44014         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
44015         to match any use of \<hash_pjw\>, i.e., not necessarily with a
44016         following " (".
44018 2012-01-17  Jim Meyering  <meyering@redhat.com>
44020         maint: enable double-word-prohibiting rule
44021         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
44022         Exempt three files.
44024 2012-01-17  Jim Meyering  <meyering@redhat.com>
44026         maint: remove empty lines at EOF, but excluding modules/*
44027         Apply syntax rules at home as well as abroad.  Most changes
44028         were induced by running this:
44029           make srcdir=. _build-aux=build-aux -f top/maint.mk \
44030             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
44031             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
44032         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
44033         Exempt modules/* and two binary files.
44034         Also exempt doc/INSTALL*, per request from Bruno Haible.
44035         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
44036         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
44037         * doc/Copyright/request-assign.future: Likewise.
44038         * doc/Copyright/request-disclaim.changes: Likewise.
44039         * doc/INSTALL: Likewise.
44040         * doc/INSTALL.ISO: Likewise.
44041         * doc/INSTALL.UTF-8: Likewise.
44042         * doc/acl-cygwin.txt: Likewise.
44043         * doc/acl-resources.txt: Likewise.
44044         * doc/fdl-1.2.texi: Likewise.
44045         * doc/fdl-1.3.texi: Likewise.
44046         * doc/fdl.texi: Likewise.
44047         * lib/argp-pin.c: Likewise.
44048         * lib/round.c: Likewise.
44049         * lib/unicase/u16-totitle.c: Likewise.
44050         * lib/unictype/block_test.c: Likewise.
44051         * lib/uninorm/canonical-decomposition.c: Likewise.
44052         * m4/README: Likewise.
44053         * m4/relocatable-lib.m4: Likewise.
44054         * tests/test-isnand-nolibm.c: Likewise.
44055         * tests/test-isnand.c: Likewise.
44056         * tests/uninorm/NormalizationTest.txt: Likewise.
44058 2012-01-17  Jim Meyering  <meyering@redhat.com>
44060         maint: add framework to run syntax-check rules against gnulib sources
44061         * cfg.mk: New file, to disable all currently-failing tests.
44062         We'll enable them one by one, as they are made to pass.
44063         * Makefile (sc_maint): New rule.
44065 2012-01-21  Bruno Haible  <bruno@clisp.org>
44067         stdint: Add support for Android.
44068         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
44069         include the system's <stdint.h>.
44070         Reported by Simon Josefsson <simon@josefsson.org>.
44072 2012-01-19  Jim Meyering  <meyering@redhat.com>
44074         bootstrap: add bootstrap_post_import_hook
44075         Bison does still need something like the gnulib_mk_hook whose
44076         invocation I had to remove along with slurp in commit 767ccd40.
44077         Technically, we could get along without it, but doing so would
44078         have required living with a warning and a mandatory post-bootstrap
44079         automake rerun.
44080         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
44081         (bootstrap_post_import_hook): New function.
44082         Invoke it after gnulib-tool --import and before autoreconf.
44084 2012-01-18  Jim Meyering  <meyering@redhat.com>
44086         gitlog-to-changelog: don't use "no_"-prefixed variable name
44087         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
44088         to enable both --cluster and --no-cluster.  Change variable name,
44089         s/\$no_cluster/$cluster/, and reverse usage to match.
44091         gitlog-to-changelog: use "||", not "or" in expressions
44092         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
44093         expressions.
44095 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
44097         gitlog-to-changelog: new option --no-cluster
44098         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
44099         clustering of adjacent commit messages.
44101 2012-01-17  Jim Meyering  <meyering@redhat.com>
44103         maint: spell file systems with two words, not one
44104         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
44105         two words, not one.
44107 2012-01-16  Jim Meyering  <meyering@redhat.com>
44109         bootstrap: add a FIXME comment to ensure we eventually remove the hack
44110         * build-aux/bootstrap (gnulib_tool_options): Add comment.
44112 2012-01-16  Eric Blake  <eblake@redhat.com>
44114         bootstrap: cater to autoconf 2.59
44115         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
44116         is not available.
44118         bootstrap: properly check for libtool
44119         * build-aux/bootstrap (libtoolize): Also run libtool when older
44120         usage is detected.
44122 2012-01-15  Bruno Haible  <bruno@clisp.org>
44124         Improve support for MSVC 9.
44125         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
44126         clashes on MSVC.
44127         * lib/fcntl.in.h: Likewise.
44128         * lib/stdlib.in.h: Likewise.
44129         * lib/sys_stat.in.h: Likewise.
44131 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
44133         gnupload: we hold the master copy of this script now
44134         For motivation and more information, see:
44135         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00222.html>
44136         * build-aux/gnupload: Make it clear in the heading comments that the
44137         master copy of this file is maintained by gnulib.  Since we are at
44138         it, bump its copyright year and ...
44139         ($scriptversion): ... the date in its version.
44140         ($usage): Patches and bug reports should be sent to the gnulib list,
44141         not the automake one.
44142         * config/srclist.txt: Don't try to sync 'gnupload' from automake
44143         anymore.
44145 2012-01-15  Bruno Haible  <bruno@clisp.org>
44147         Fix module 'random'.
44148         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
44149         initstate, setstate are declared.
44151 2012-01-14  Bruno Haible  <bruno@clisp.org>
44153         Tests for module 'random'.
44154         * modules/random-tests: New file.
44155         * tests/test-random.c: New file, based on tests/test-random_r.c.
44157         New module 'random'.
44158         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
44159         declarations.
44160         * lib/random.c: New file, based on glibc/stdlib/random.c.
44161         * m4/random.m4: New file.
44162         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
44163         HAVE_RANDOM.
44164         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
44165         * modules/random: New file.
44166         * config/srclist.txt: Add an entry for random.c.
44167         * doc/posix-functions/random.texi: Mention the 'random' module.
44168         * doc/posix-functions/initstate.texi: Likewise.
44169         * doc/posix-functions/setstate.texi: Likewise.
44170         * doc/posix-functions/srandom.texi: Likewise.
44172 2012-01-12  Bruno Haible  <bruno@clisp.org>
44174         random_r: Use common idioms.
44175         * lib/random_r.c: Include <stdlib.h> first.
44177         random_r: Override incompatible API on AIX, OSF/1.
44178         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
44179         Override the system function if REPLACE_RANDOM_R is 1.
44180         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
44181         and OSF/1, set REPLACE_RANDOM_R.
44182         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
44183         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
44184         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
44185         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
44186         * doc/glibc-functions/random_r.texi: Likewise.
44187         * doc/glibc-functions/setstate_r.texi: Likewise.
44189         random_r: Support for MSVC 9.
44190         * lib/random_r.c: Include stdint.h, not inttypes.h.
44192 2012-01-12  Eric Blake  <eblake@redhat.com>
44194         inet_ntop: guard extra work by IF_LINT
44195         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
44196         better code generation when not checking for warnings.
44197         Suggested by Paul Eggert and Jim Meyering.
44199         strptime: fix regression on mingw
44200         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
44201         Fix regression.  Reported by Bruno Haible.
44203 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
44204             Bruno Haible  <bruno@clisp.org>
44206         copy-file: add error-code-returning variant.
44207         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
44208         (qcopy_file_preserving): New declaration.
44209         * lib/copy-file.c (qcopy_file_preserving): Renamed from
44210         copy_file_preserving. Change return type to 'int'. Don't emit an error
44211         message here.
44212         (copy_file_preserving): New function.
44213         * tests/test-copy-file.c: Include <stdlib.h>.
44214         (main): Test qcopy_file_preserving if the environment variable
44215         NO_STDERR_OUTPUT is set.
44216         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
44217         with NO_STDERR_OUTPUT
44218         * tests/test-copy-file-2.sh: Likewise.
44220 2012-01-10  Bruno Haible  <bruno@clisp.org>
44222         copy-file: Use 'quote' module consistently.
44223         * lib/copy-file.c (copy_file_preserving): Use quote().
44225         copy-file: Refactor.
44226         * lib/copy-file.c: Include quote.h.
44227         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
44228         message here.
44229         * modules/copy-file (Depends-on): Add quote.
44231         acl: Export qcopy_acl.
44232         * lib/acl.h (qcopy_acl): New declaration.
44233         * lib/copy-acl.c (qcopy_acl): Make non-static.
44235         acl: Rename a local variable.
44236         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
44238         acl: Align return values of copy_acl and qcopy_acl.
44239         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
44240         maybe < -1.
44242 2012-01-11  Eric Blake  <eblake@redhat.com>
44244         strptime: silence gcc warnings
44245         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
44246         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
44247         Reported by Daniel P. Berrange.
44249         inet_ntop: silence gcc warning
44250         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
44251         Reported by Daniel P. Berrange.
44253 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
44255         getloadavg test: skip the test on GNU/Linux without /proc mounted
44256         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
44257         file.  When /proc is not mounted, it always fails with ENOENT.
44258         * tests/test-getloadavg.c (main): Treat ENOENT return code from
44259         getloadavg(3) the same way as ENOSYS and ENOTSUP.
44261 2012-01-10  Bruno Haible  <bruno@clisp.org>
44263         regex: Avoid link error on MSVC 9.
44264         * modules/regex (Depends-on): Add wctype.
44266 2012-01-10  Bruno Haible  <bruno@clisp.org>
44268         doc: Mention --with-tests option.
44269         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
44270         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
44271         --with-tests.
44272         Reported by Reuben Thomas.
44274 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
44276         users.txt: order package names lexicographically.
44277         * users.txt: Order package names lexicographically.
44279 2012-01-10  Jim Meyering  <meyering@redhat.com>
44281         maint.mk: fix description in comment
44282         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
44284         ignore-value: remove deprecated ignore_ptr function
44285         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
44286         * NEWS: Note this.
44288 2012-01-09  Jim Meyering  <meyering@redhat.com>
44290         test-init.sh: avoid a subshell
44291         * tests/test-init.sh: Remove protective subshell.
44292         Suggested by Bernhard Voelker.  While a subshell is normally
44293         required to protect against older shells (Solaris, FreeBSD) that
44294         warn about a missing program before performing redirection, the
44295         shell-selection tests performed by init.sh probably exclude any
44296         offending shell.
44298 2012-01-08  Bruno Haible  <bruno@clisp.org>
44300         setlocale tests: Avoid test failure on Solaris 11.0.
44301         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
44302         variable.
44304 2012-01-08  Bruno Haible  <bruno@clisp.org>
44306         posix_spawn_file_actions_addopen: Work around Solaris 11.0 bug.
44307         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
44308         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
44309         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
44310         macro.
44311         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
44312         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
44313         * lib/spawn_faction_addopen.c: Add workaround implementation if
44314         HAVE_WORKING_POSIX_SPAWN.
44315         * modules/spawn (Makefile): Substitute
44316         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
44317         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
44318         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
44319         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
44320         (Depends-on): Update conditions.
44321         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
44322         the Solaris 11 bug.
44324 2012-01-08  Bruno Haible  <bruno@clisp.org>
44326         posix_spawn_file_actions_adddup2: Work around Solaris 11.0 bug.
44327         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
44328         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
44329         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
44330         macro.
44331         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
44332         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
44333         * lib/spawn_faction_adddup2.c: Add workaround implementation if
44334         HAVE_WORKING_POSIX_SPAWN.
44335         * modules/spawn (Makefile): Substitute
44336         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
44337         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
44338         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
44339         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
44340         (Depends-on): Update conditions.
44341         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
44342         the Solaris 11 bug.
44344 2012-01-08  Bruno Haible  <bruno@clisp.org>
44346         posix_spawn_file_actions_addclose: Work around Solaris 11.0 bug.
44347         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
44348         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
44349         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
44350         HAVE_WORKING_POSIX_SPAWN.
44351         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
44352         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
44353         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
44354         * lib/spawn_faction_addclose.c: Add workaround implementation if
44355         HAVE_WORKING_POSIX_SPAWN.
44356         * modules/spawn (Makefile): Substitute
44357         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
44358         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
44359         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
44360         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
44361         (Depends-on): Update conditions.
44362         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
44363         the Solaris 11 bug.
44365 2012-01-08  Bruno Haible  <bruno@clisp.org>
44367         doc: Update for Solaris 11.0.
44368         * doc/*/*.texi: Mention Solaris 11.0 where appropriate.
44369         * m4/printf.m4: Update comments.
44371 2012-01-08  Bruno Haible  <bruno@clisp.org>
44373         mktime: Avoid compilation error on Solaris 11.
44374         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
44376 2012-01-08  Bruno Haible  <bruno@clisp.org>
44378         doc: Small fix.
44379         * doc/posix-headers/nl_types.texi: Correct platforms list.
44381 2012-01-08  Simon Josefsson  <simon@josefsson.org>
44383         Add lgpl-3.0 module.
44384         * MODULES.html.sh (Support for building documentation): Add
44385         lgpl-3.0.
44386         * modules/lgpl-3.0: New file.
44388 2012-01-08  Jim Meyering  <meyering@redhat.com>
44390         select.c: indent with spaces, not TABs
44391         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
44393 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
44395         quotearg: do not use grave accent for left quote
44396         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
44397         locale_quoting_style.
44398         (quotearg_buffer_restyled): Fix example.
44399         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
44401 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
44403         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
44404         Most programs do not have translation catalogs for English and much
44405         less separate catalogs for British and American English.  Drop the
44406         suggestion to translators about these two, and provide it
44407         automatically for Unicode locales.  Like most programs, even those
44408         using American English, we use single quotation marks.  This conflicts
44409         with the American typographic convention, but works better when you
44410         cite the entire error message within double quotes.  It also tries not
44411         to clash with established practice and with what non-gnulib programs
44412         will usually do.
44413         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
44414         using an UTF-8 or GB-18030 locale.  The list of other locales with
44415         quotes was provided by Bruno Haible.
44416         (quotearg_buffer_restyled): Adjust instructions to translators.
44417         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
44418         text, since this would be wrong when using Unicode.
44419         * modules/quotearg: Depend on c-strcaseeq.
44421 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
44423         quotearg: fix Wikipedia link
44424         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
44426 2012-01-07  Simon Josefsson  <simon@josefsson.org>
44428         Fix for mingw with MSVC9.
44429         * m4/ld-version-script.m4: Check that compiler rejects version
44430         scripts with syntax errors.  Reported by Bruno Haible
44431         <bruno@clisp.org>.
44433 2012-01-06  Bruno Haible  <bruno@clisp.org>
44435         Talk about "native Windows API", not "Woe32".
44436         * lib/accept4.c: Update comments to mention native Windows.
44437         * lib/execute.c: Likewise.
44438         * lib/fatal-signal.c: Likewise.
44439         * lib/localcharset.c: Likewise.
44440         * lib/nanosleep.c: Likewise.
44441         * lib/nl_langinfo.c: Likewise.
44442         * lib/pclose.c: Likewise.
44443         * lib/pipe-filter-gi.c: Likewise.
44444         * lib/pipe-filter-ii.c: Likewise.
44445         * lib/pipe.c: Likewise.
44446         * lib/pipe2.c: Likewise.
44447         * lib/popen.c: Likewise.
44448         * lib/progreloc.c: Likewise.
44449         * lib/relocatable.c: Likewise.
44450         * lib/sigaction.c: Likewise.
44451         * lib/sigprocmask.c: Likewise.
44452         * lib/spawn-pipe.h: Likewise.
44453         * lib/spawn-pipe.c: Likewise.
44454         * lib/spawni.c: Likewise.
44455         * lib/stat-time.h: Likewise.
44456         * lib/w32spawn.h: Likewise.
44457         * tests/test-isatty.c: Likewise.
44458         * lib/config.charset: More comments.
44459         * doc/gnulib-intro.texi: Mention native Windows.
44460         * doc/posix-functions/_Exit_C99.texi: Likewise.
44461         * doc/posix-headers/fcntl.texi: Likewise.
44463 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
44465         argp: Avoid crash if translator uses % characters in a translation.
44466         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
44467         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
44469 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
44471         doc: C11 and C++11 are now official
44472         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
44473         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
44474         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
44475         * modules/stdalign:
44476         Replace references to draft C1X to C11, and to draft C++0X to C++11.
44478 2012-01-06  Bruno Haible  <bruno@clisp.org>
44480         uc-is-grapheme-break tests: Tweak.
44481         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
44482         message.
44484 2012-01-06  Bruno Haible  <bruno@clisp.org>
44486         test-init.sh: correct the test for diff -u
44487         * tests/test-init.sh: Also redirect stdout to /dev/null.
44489 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
44491         Use ', not `, for quoting output.
44492         * build-aux/announce-gen (usage, sizes, print_news_deltas)
44493         (print_changelog_deltas, get_tool_versions, main program):
44494         * build-aux/git-version-gen:
44495         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
44496         * build-aux/move-if-change (help):
44497         * build-aux/useless-if-before-free (usage, main program):
44498         * check-module (parse_module_file, usage)
44499         (find_included_lib_files, check_module):
44500         * lib/argmatch.c (main) [TEST]:
44501         * lib/argp-help.c (_help):
44502         * lib/getopt1.c (main) [TEST]:
44503         * lib/git-merge-changelog.c (usage):
44504         * lib/xstrtol-error.c (xstrtol_error):
44505         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
44506         * m4/argz.m4 (gl_FUNC_ARGZ):
44507         * m4/bison.m4 (gl_BISON):
44508         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
44509         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
44510         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
44511         * m4/fpending.m4 (gl_PREREQ_FPENDING):
44512         * m4/gc-random.m4 (gl_GC_RANDOM):
44513         * m4/intl.m4 (gt_CHECK_DECL):
44514         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
44515         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
44516         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
44517         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
44518         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
44519         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
44520         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
44521         * tests/test-dirname.c (main):
44522         * tests/test-getpass.c (main):
44523         * tests/test-iconvme.c (main):
44524         * tests/test-parse-datetime.c (LOG):
44525         * tests/test-xstrtoimax.sh:
44526         * tests/test-xstrtol.sh:
44527         * tests/test-xstrtoll.sh:
44528         * tests/test-xstrtoumax.sh:
44529         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
44530         * top/GNUmakefile (abort-due-to-no-makefile):
44531         Quote 'like this', not `like this', as per the recent change to
44532         the GNU coding standards.
44534 2012-01-05  Bruno Haible  <bruno@clisp.org>
44536         strtoimax: Don't force a replacement on systems where intmax_t is int.
44537         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
44538         'intmax_t' is not larger than 'int'.
44539         Reported by Pádraig Brady <P@draigBrady.com>.
44541 2012-01-05  Bruno Haible  <bruno@clisp.org>
44543         doc: Mention NetBSD bugs.
44544         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
44545         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
44547 2012-01-05  Bruno Haible  <bruno@clisp.org>
44549         strtoumax tests: Enhance tests.
44550         * tests/test-strtoumax.c (main): Add tests for large values.
44552 2012-01-05  Bruno Haible  <bruno@clisp.org>
44554         strtoimax: Work around AIX 5.1 bug.
44555         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
44556         definition.
44557         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
44558         Set HAVE_STRTOIMAX.
44559         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
44560         REPLACE_STRTOIMAX.
44561         * modules/inttypes-incomplete (Makefile.am): Substitute
44562         REPLACE_STRTOIMAX.
44563         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
44564         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
44565         (Depends-on): Update conditions.
44566         * tests/test-strtoimax.c (main): Add tests for large values.
44567         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
44569 2012-01-05  Bruno Haible  <bruno@clisp.org>
44571         inttypes: Modernize.
44572         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
44573         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
44574         (Makefile.am): Update inttypes.h rule.
44576 2012-01-05  Jim Meyering  <meyering@redhat.com>
44578         init.sh: don't waste a subshell just to redirect stderr
44579         * tests/init.sh: In testing for diff -u and diff -c, use a
44580         stderr-redirecting exec inside `...` rather than a subshell.
44582         test-init.sh: avoid failure on HP-UX 11.00
44583         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
44584         resolves to diff -c or cmp.  Reported by Bruno Haible.
44586 2012-01-05  Bruno Haible  <bruno@clisp.org>
44588         Tests for module 'strtoull'.
44589         * modules/strtoull-tests: New file.
44590         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
44592 2012-01-05  Bruno Haible  <bruno@clisp.org>
44594         Tests for module 'strtoll'.
44595         * modules/strtoll-tests: New file.
44596         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
44598 2012-01-05  Bruno Haible  <bruno@clisp.org>
44600         Tests for module 'strtoul'.
44601         * modules/strtoul-tests: New file.
44602         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
44604 2012-01-05  Bruno Haible  <bruno@clisp.org>
44606         Tests for module 'strtol'.
44607         * modules/strtol-tests: New file.
44608         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
44610 2012-01-04  Jim Meyering  <meyering@redhat.com>
44612         test-init.sh: accommodate Solaris 5.10's different diff -u output
44613         * tests/test-init.sh: Also exempt @@ lines from the comparison
44614         of diff output, since Solaris 5.10 and GNU diff formats differ.
44615         Reported by Stefano Lattarini.
44617 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
44619         test-posixtm: don't assume signed integer wraparound
44620         * tests/test-posixtm.c (main): Don't assume wraparound semantics
44621         after signed integer overflow.  Inspired by (though it may not
44622         fix) Bruno Haible's bug report in
44623         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00066.html>.
44625         Spell out "Windows 9x" and "Windows XP".
44626         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
44627         "Windows 9x" and "WinXP" with "Windows XP".
44629 2012-01-04  Jim Meyering  <meyering@redhat.com>
44631         test-vc-list-files-cvs.sh: remove obsolete comment
44632         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
44633         double exit.  Now that's all encapsulated via skip_ and Exit.
44635 2012-01-04  Bruno Haible  <bruno@clisp.org>
44637         Talk about "native Windows API", not "Win32".
44638         * lib/classpath.c: Update comments to mention native Windows.
44639         * lib/csharpexec.c: Likewise.
44640         * lib/dup2.c: Likewise.
44641         * lib/error.c: Likewise.
44642         * lib/fcntl.c: Likewise.
44643         * lib/filename.h: Likewise.
44644         * lib/findprog.c: Likewise.
44645         * lib/get-rusage-as.c: Likewise.
44646         * lib/get-rusage-data.c: Likewise.
44647         * lib/getpagesize.c: Likewise.
44648         * lib/javaexec.c: Likewise.
44649         * lib/msvc-inval.c: Likewise.
44650         * lib/msvc-nothrow.c: Likewise.
44651         * lib/nanosleep.c: Likewise.
44652         * lib/nonblocking.c: Likewise.
44653         * lib/printf-parse.c: Likewise.
44654         * lib/setlocale.c: Likewise.
44655         * lib/sigaction.c: Likewise.
44656         * lib/strerror_r.c: Likewise.
44657         * lib/tmpdir.c: Likewise.
44658         * lib/vasnprintf.c: Likewise.
44659         * lib/w32spawn.h: Likewise.
44660         * lib/waitpid.c: Likewise.
44661         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
44662         * m4/locale-ar.m4: Likewise.
44663         * m4/locale-fr.m4: Likewise.
44664         * m4/locale-ja.m4: Likewise.
44665         * m4/locale-tr.m4: Likewise.
44666         * m4/locale-zh.m4: Likewise.
44667         * m4/printf.m4: Likewise.
44668         * tests/test-cloexec.c: Likewise.
44669         * tests/test-copy-acl.sh: Likewise.
44670         * tests/test-copy-file.sh: Likewise.
44671         * tests/test-file-has-acl.sh: Likewise.
44672         * tests/test-set-mode-acl.sh: Likewise.
44673         * tests/test-dup-safer.c: Likewise.
44674         * tests/test-dup2.c: Likewise.
44675         * tests/test-dup3.c: Likewise.
44676         * tests/test-fcntl.c: Likewise.
44677         * tests/test-nonblocking-pipe.h: Likewise.
44678         * tests/test-nonblocking-socket.h: Likewise.
44679         * tests/test-pipe.c: Likewise.
44680         * tests/test-pipe2.c: Likewise.
44681         * tests/test-spawn-pipe-child.c: Likewise.
44682         * doc/acl-resources.txt: Likewise.
44683         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
44684         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
44685         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
44686         * lib/localcharset.c: Update comments to mention native Windows.
44687         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
44688         * lib/localename.c: Likewise.
44689         * lib/progreloc.c: Likewise.
44690         * lib/relocatable.c: Likewise.
44691         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
44692         (windows_compute_revents): Renamed from win32_compute_revents.
44693         (windows_compute_revents_socket): Renamed from
44694         win32_compute_revents_socket.
44695         * lib/select.c: Update comments to mention native Windows.
44696         (windows_poll_handle): Renamed from win32_poll_handle.
44697         * m4/threadlib.m4: Update comments to mention native Windows.
44698         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
44699         --enable-threads=windows instead of --enable-threads=win32. Set
44700         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
44701         * lib/glthread/lock.h: Update comments to mention native Windows.
44702         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
44703         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
44704         USE_WIN32_THREADS.
44705         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
44706         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
44707         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
44708         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
44709         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
44710         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
44711         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
44712         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
44713         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
44714         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
44715         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
44716         * tests/test-tls.c: Likewise.
44717         Rationale:
44718         Microsoft renamed the "Win32 API" to "Windows API", as it is available
44719         on both 32-bit and 64-bit Windows systems.
44720         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
44721         line of distinction is between "native Windows" on one side and Unix/
44722         POSIX systems on the other side. More details in
44723         <https://lists.gnu.org/r/bug-gnulib/2012-01/msg00027.html>.
44724         Suggested by Paul Eggert.
44726 2012-01-03  Bruno Haible  <bruno@clisp.org>
44728         isatty: Support for MSVC 9.
44729         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
44730         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
44731         (_isatty_nothrow): New function.
44732         (isatty): Use it instead of _isatty.
44733         (IsConsoleHandle): Add comment, from Paolo Bonzini.
44734         * lib/poll.c (IsConsoleHandle): Likewise.
44735         * lib/select.c (IsConsoleHandle): Likewise.
44736         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
44737         (gl_PREREQ_ISATTY): New macro.
44738         * modules/isatty (Depends-on): Add msvc-inval.
44739         (configure.ac): Invoke gl_PREREQ_ISATTY.
44741 2012-01-03  Jim Meyering  <meyering@redhat.com>
44743         maint.mk: remove temporary transition aid from over 1.5 years ago
44744         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
44745         purpose was to aid in the transition (avoiding silent malfunction)
44746         from that old name to the new _sc_search_regexp.  This shim was
44747         added by commit 219c504b.
44749         init.sh: do not try to accommodate compare arguments starting with "-"
44750         * tests/init.sh (compare_dev_null_): Do not try to accommodate
44751         compare arguments that start with "-".  Besides, we do not worry
44752         about this when invoking diff or cmp; why start now with sed?
44753         Using "--" to separate options from argument would trigger sed
44754         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
44755         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
44757 2012-01-02  Bruno Haible  <bruno@clisp.org>
44759         Enhance tests for module 'isatty'.
44760         * modules/isatty-tests (Depends-on): Add pipe-posix.
44761         * tests/test-isatty.c: Include <fcntl.h>.
44762         (DEV_NULL): New macro.
44763         (main): Test the resut of isatty() also on regular files, pipes, and
44764         /dev/null.
44766         New module 'isatty'.
44767         * lib/unistd.in.h (isatty): New declaration.
44768         * lib/isatty.c: New file, based on an idea of
44769         Bastien Roucariès <roucaries.bastien@gmail.com>.
44770         * m4/isatty.m4: New file.
44771         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
44772         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
44773         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
44774         REPLACE_ISATTY.
44775         * modules/isatty: New file.
44776         * doc/posix-functions/isatty.texi: Mention the new module.
44777         Suggested by Paolo Bonzini.
44779 2012-01-02  Bruno Haible  <bruno@clisp.org>
44781         canonicalize: Tweak 2011-12-29 commit.
44782         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
44783         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
44785 2012-01-02  Jim Meyering  <meyering@redhat.com>
44787         gitlog-to-changelog: describe input syntax in --help output
44788         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
44790         gitlog-to-changelog: fix typo in --help: show backslash before email @
44791         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
44792         in sources, but not in actual output.
44794 2011-12-30  Jim Meyering  <meyering@redhat.com>
44796         gitlog-to-changelog: don't malfunction when name contains %-directive
44797         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
44798         in a name string cause trouble.  E.g., with a user name of "%s",
44799         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
44801 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
44803         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
44804         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
44805         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
44806         the "  (tiny change)" notation that is appended to the standard
44807         ChangeLog "date  name  email" header line.
44809 2012-01-01  Jim Meyering  <meyering@redhat.com>
44811         test-framework-sh: init.sh: fix "make dist" failure
44812         When using gnulib-tool's --with-tests option and any module that
44813         depends on test-framework-sh, "make dist" would fail due to the
44814         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
44815         in the gltests directory, and not in the gllib/ directory.
44816         One way to work around that is to move the EXTRA_DIST += init.sh
44817         from the primary module to the -tests one:
44818         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
44819         * modules/test-framework-sh (Makefile.am): ...not here.
44820         Reported by Tom G. Christensen in
44821         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
44823         version-etc: update copyright year reported by --version
44824         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
44826 2011-12-31  Pádraig Brady  <P@draigBrady.com>
44828         canonicalize: only stat() if required
44829         * lib/canonicalize.c (canonicalize_filename_mode):
44830         Avoid calling l?stat() when both CAN_MISSING,
44831         and CAN_NOLINKS are set, as we neither need
44832         to resolve symlinks or test component existence.
44834 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
44836         doc: cover st_ino issues once; add OpenVMS etc.
44837         * doc/posix-functions/stat.texi (stat):
44838         * doc/posix-functions/lstat.texi (lstat):
44839         * doc/posix-functions/fstatat.texi (fstatat):
44840         * doc/posix-functions/fstat.texi (fstat):
44841         Move general 'struct stat' stuff to sys_stat.texi,
44842         leaving behind a pointer.
44843         * doc/posix-headers/sys_stat.texi (sys/stat.h):
44844         Merge duplicate info about 'struct stat' problems into here.
44845         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
44846         and suggest partial workarounds.
44848         same-inode: port to OpenVMS
44849         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
44850         three st_ino values.
44852 2011-12-30  Pádraig Brady  <P@draigBrady.com>
44854         canonicalize: fix references to stat() and lstat()
44855         * lib/canonicalize.c (canonicalize_filename_mode):
44856         Ensure references always resolve to a replacement
44857         function if required (even via a macro).
44859 2011-12-30  Jim Meyering  <meyering@redhat.com>
44861         gitlog-to-changelog: remove a little duplication
44862         * build-aux/gitlog-to-changelog (main): Grep @lines once,
44863         rather than twice.
44865 2011-12-29  Pádraig Brady  <P@draigBrady.com>
44867         canonicalize: add support for not resolving symlinks
44868         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
44869         indicate we don't want to follow symlinks.  Also
44870         provide CAN_MODE_MASK to aid setting these existing
44871         mutually exclusive values.
44872         * lib/canonicalize.c (canonicalize_filename_mode):
44873         Extract the flags from can_mode parameter, which
44874         are currently just used to select between stat()
44875         and lstat().  Also ensure that mutually exclusive
44876         values are flagged immediately as invalid.
44877         * tests/test-canonicalize.c: Verify symlinks are
44878         not followed, and that invalid flag combinations
44879         are diagnosed.
44881 2011-12-25  Jim Meyering  <meyering@redhat.com>
44883         gitlog-to-changelog: do not clump multi-paragraph entries
44884         Identical header lines (date,name,email+coauthors) are suppressed,
44885         thus putting all entries with those same characteristics under
44886         a single header.  However, when a log entry consists of two or
44887         more paragraphs, it may not be clear where it starts and ends.
44888         This change makes it so that such an entry is always separated
44889         from others by a header line, even when that header would
44890         otherwise be suppressed.
44891         * build-aux/gitlog-to-changelog: Implement the above.
44892         Inspired by a related request from Stefano Lattarini in
44893         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
44895 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
44897         announce-gen: fix `cmd' typo in diagnostic
44898         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
44899         diagnostic: a missing '$' meant that the command was not output.
44901 2011-12-23  Jim Meyering  <meyering@redhat.com>
44903         test-framework-sh: distribute init.sh
44904         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
44905         Otherwise, "make -C gnulib-tests check" (at least in grep) would
44906         fail due to the lack of init.sh.
44908         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
44909         * modules/atexit-tests: Rather than listing tests/init.sh,
44910         now that there's a module for it, simply depend on that new module.
44911         * modules/closein-tests: Likewise.
44912         * modules/exclude-tests: Likewise.
44913         * modules/getcwd-tests: Likewise.
44914         * modules/perror-tests: Likewise.
44915         * modules/pread-tests: Likewise.
44916         * modules/pwrite-tests: Likewise.
44917         * modules/vc-list-files-tests: Likewise.
44918         * modules/verify-tests: Likewise.
44919         * modules/xalloc-die-tests: Likewise.
44920         * modules/xstrtoimax-tests: Likewise.
44921         * modules/xstrtol-tests: Likewise.
44922         * modules/xstrtoll-tests: Likewise.
44923         * modules/xstrtoumax-tests: Likewise.
44924         * modules/yesno-tests: Likewise.
44926 2011-12-22  Jim Meyering  <meyering@redhat.com>
44928         test-framework-sh: add minimal tests of init.sh's compare function
44929         * modules/test-framework-sh-tests: New file.
44930         * tests/test-init.sh: New file.
44932         test-framework-sh: new module
44933         * modules/test-framework-sh: New file.
44934         * MODULES.html.sh (Support for maintaining and releasing projects):
44935         List it.
44937         init.sh: do not emit simulated diff output to stderr
44938         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
44940 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
44942         .gitignore: ignore gnulib.dvi and regex.info
44943         * doc/.gitignore:add gnulib.dvi and regex.info
44945 2011-12-22  Jim Meyering  <meyering@redhat.com>
44947         init.sh: correct previous change
44948         * tests/init.sh (compare): My previous change was wrong.
44949         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
44951         init.sh: avoid unwarranted test failure when using "set -e"
44952         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
44953         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
44954         a use like "compare exp out" would get evoke an unconditional failure.
44956 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
44958         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
44959         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
44960         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
44961         autoreconf that did not.
44962         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
44963         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
44965 2011-12-17  Jim Meyering  <meyering@redhat.com>
44967         bootstrap: remove some now-unneeded code
44968         This script arose back when gnulib-tool was young.
44969         Since then, it has seen improvements that render much of this
44970         script unnecessary.  In particular, it can now make symlinks
44971         to the files it uses.  Also, I no longer see as much value in
44972         marking files as read-only via comments.
44973         If you relied on the symlink-creation feature of the preceding
44974         version of this script, you can get most of that functionality
44975         by adding the --symlink option to the definition of
44976         gnulib_tool_option_extras in your bootstrap.conf file.
44977         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
44978         Run autopoint and libtoolize *before* gnulib-tool.
44979         After it, run an abbreviated autoreconf, rather than a loop around
44980         all tools.
44981         (slirp, bt_mark_as_generated): Remove functions.
44983 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
44985         ftoastr: fix typo
44986         * lib/ftoastr.h: Fix misspelling in comment.
44988 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
44990         * top/README-release: fix punctuation.
44992 2011-12-17  Jim Meyering  <meyering@redhat.com>
44994         bootstrap: correct the recent buildreq change
44995         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
44996         had no effect.
44997         * build-aux/bootstrap (buildreq): Bracket each search term with
44998         "*...*", so that the shell "case" statement works as intended.
44999         Add comments.
45001 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
45003         build: let bootstrap resort to wget when downloading .po files
45004         * build-aux/bootstrap (download_po_files): Fallback to wget when
45005         downloading the .po files via rsync fails.  This is necessary to
45006         bootstrap from behind a strict firewall.
45008 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
45010         stdint: don't assume C++11 when compiling with g++
45011         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
45012         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00099.html>.
45013         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
45014         work also in C++ before C++11, as that improperly inhibits
45015         generating a substitute stdint.h for that case.
45017 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
45019         alloca: protect comment from gnulib-tool
45020         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
45021         that gnulib-tool doesn't think it's a license, and munge it to
45022         say "GCC version 3".
45024 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
45026         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
45027         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
45028         $(abs_top_builddir) instead of $(top_builddir).
45030 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
45032         strftime-tests: also test nanoseconds
45033         * tests/test-strftime.c (T): Add a test of %N.
45035 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
45037         inttypes, stdint: add C++11 support
45038         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
45039         when including inttypes.h and stdint.h.  Support this change to
45040         the standard.
45041         * doc/posix-headers/inttypes.texi (inttypes.h):
45042         * doc/posix-headers/stdint.texi (stdint.h): Document this.
45043         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
45044         Define if not defined already, for the benefit of pre-C++11 hosts.
45045         Define the standard format macros (e.g., PRId8) always.
45046         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
45047         Likewise, if __cpluspus.  Define the standard constant and limit
45048         macros (e.g., INT8_C, INT8_MAX) always.
45049         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
45050         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
45051         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
45052         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
45053         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
45054         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
45055         Likewise.
45057 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
45059         nonblocking tests: Fix test failure on Linux/PPC.
45060         Suggested by Prerna Saxena in
45061         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00080.html>.
45062         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
45063         Set to 1100000.
45065 2011-12-12  Jim Meyering  <meyering@redhat.com>
45067         argmatch: don't hard-code `' when listing valid option arguments
45068         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
45069         use the quote function to add quotes.  Use fputs rather than
45070         fprintf for the format string with no format directive.
45072 2011-12-07  Eric Blake  <eblake@redhat.com>
45074         bootstrap: detect tools required by gnulib-tool
45075         * build-aux/bootstrap (buildreq): Provide minimum implicit
45076         dependencies.
45077         * DEPENDENCIES: Mention patch as a prereq.
45079 2011-12-04  Bruno Haible  <bruno@clisp.org>
45081         sethostname: Port to Windows platforms.
45082         * lib/sethostname.c: Provide an alternate implementation for Windows
45083         platforms.
45084         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
45085         (main): Skip the test if sethostname() fails with EPERM. On Windows
45086         platforms, don't check the result of gethostname().
45088 2011-12-04  Bruno Haible  <bruno@clisp.org>
45089             Jim Meyering  <meyering@redhat.com>
45091         tests: Avoid spurious error message on platforms without mktemp program.
45092         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
45094 2011-12-04  Bruno Haible  <bruno@clisp.org>
45096         sethostname: Fix documentation.
45097         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
45098         "not fixed" section.
45100 2011-12-03  Bruno Haible  <bruno@clisp.org>
45102         gnulib-tool: Verify that the License field is present and non-empty.
45103         * gnulib-tool (func_get_license_raw): New function, extracted from
45104         func_get_license.
45105         (func_get_license): Use it. Warn if the module is not a test module and
45106         has no license.
45107         Suggested by Jim Meyering.
45109 2011-12-03  Bruno Haible  <bruno@clisp.org>
45111         sethostname tests: Fix link error on mingw.
45112         * tests/test-sethostname1.c: New file, extracted from
45113         tests/test-sethostname.c.
45114         * tests/test-sethostname2.c: New file, extracted from
45115         tests/test-sethostname.c.
45116         * tests/test-sethostname.c: Remove file.
45117         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
45118         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
45119         (Depends-on): Add gethostname.
45120         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
45121         Link the latter with $(GETHOSTNAME_LIB).
45123         sethostname tests: Fix compilation error on mingw.
45124         * tests/test-sethostname.c: Don't include <sys/types.h>.
45125         (geteuid): Use a dummy value without uid_t.
45126         * modules/sethostname-tests (Depends-on): Remove sys_types.
45128         sethostname tests: Avoid a gcc warning.
45129         * tests/test-sethostname.c (main): Remove an unused variable.
45131         Tweak last commit.
45132         * modules/sethostname-tests (Files): Sort by decreasing importance.
45133         (configure.ac): Check for geteuid.
45134         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
45135         the test when there's nothing to test. Drop an unnecessary cast.
45136         Improve an error message. Verify that the final sethostname() call
45137         succeeds.
45139 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
45141         Add a test suite for the sethostname module.
45142         * modules/sethostname-tests: New file.  A test program
45143         for the sethostname module.
45144         * tests/test-sethostname.c: Likewise.
45146 2011-12-03  Bruno Haible  <bruno@clisp.org>
45148         Tweak last commit.
45149         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
45150         Fix preprocessor directives indentation. Fix typos.
45151         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
45152         * modules/unistd (Makefile): Likewise.
45154 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
45156         Integrate the sethostname module into unistd.
45157         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
45158         into the unistd.h header.
45159         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
45160         preprocessor directives.
45161         * modules/unistd: Setup the Makefile substitutions of the
45162         SETHOSTNAME preprocessor directives.
45164 2011-12-03  Bruno Haible  <bruno@clisp.org>
45166         Tweak last commit.
45167         * lib/sethostname.c: Don't include <string.h>.
45168         (sethostname): No need to copy the argument string to the stack. Don't
45169         call clearerr. Preserve errno when fprintf failed.
45170         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
45171         Don't invoke AC_REPLACE_FUNCS.
45172         * modules/sethostname (Link): Remove empty section.
45173         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
45174         failure problem.
45176 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
45178         New module 'sethostname'.
45179         * lib/sethostname.c (sethostname): New file.  Provide sethostname
45180         for systems that lack it.
45181         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
45182         sethostname declaration and function.
45183         * modules/sethostname: New file.  Define the sethostname module.
45185 2011-12-03  Bruno Haible  <bruno@clisp.org>
45187         Tweak last commit.
45188         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
45190 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
45192         Split the HOST_NAME_MAX detection into a separate m4 macro.
45193         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
45194         macro so it can be used by the pending sethostname module.
45196 2011-12-03  Bruno Haible  <bruno@clisp.org>
45198         Fix module descriptions syntax.
45199         * modules/argv-iter (License): Fix syntax.
45200         * modules/di-set (License): Likewise.
45201         * modules/ino-map (License): Likewise.
45202         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
45204 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
45206         stdalign: port to Clang 3.0
45207         Problem reported by Simon Josefsson in
45208         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00005.html>.
45209         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
45210         which has <stdalign.h> but which does not define alignof.
45211         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
45213 2011-12-01  Eric Blake  <eblake@redhat.com>
45215         mktempd: silence dd usage
45216         * build-aux/mktempd (rand_bytes): Silence dd.
45218 2011-11-30  Simon Josefsson  <simon@josefsson.org>
45220         manywarnings: Don't mention gcc version in docstring.
45221         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
45222         Jim Meyering <meyering@redhat.com>.
45224 2011-11-30  Jim Meyering  <meyering@redhat.com>
45226         hash: mark a few floating point constants with "f" suffix
45227         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
45228         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
45229         floating point constants with "f", since they're destined to be
45230         saved/used as "float"s.
45232 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
45234         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
45235         * tests/test-float.c (test_long_double): Correct and re-enable the
45236         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
45238 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
45240         Avoid subtracting two pointers that don't point into the same block.
45241         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
45242         only pointers into the same memory block are subtracted. We cannot
45243         assume that sizeof (ptrdiff_t) == sizeof (void *).
45245 2011-11-29  Eric Blake  <eblake@redhat.com>
45247         maint.mk: add syntax check for use of compare from init.sh
45248         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
45249         moved here from coreutils.
45251         manywarnings: drop -Wunsuffixed-float-constants
45252         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
45253         '1.0D', which is the only way to silence this warning for 'double'.
45255 2011-11-29  Jim Meyering  <meyering@redhat.com>
45257         hash: mark compute_bucket_size with the pure attribute
45258         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
45260         quotearg, propername: correct pragma guard expression
45261         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
45262         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
45264 2011-11-28  Jim Meyering  <meyering@redhat.com>
45266         propername: do not mark proper_name with the const attribute
45267         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
45268         since it examines data pointed to by its parameter.
45269         * lib/propername.c (proper_name): Instead, add a pragma to suppress
45270         the suggestion from -Wsuggest-attribute=const.
45272         propername: mark one more function as const
45273         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
45275 2011-11-27  Jim Meyering  <meyering@redhat.com>
45277         mark functions with const and pure attributes
45279         Mark functions per suggestions from gcc-4.6 when using these options:
45280         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
45281         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
45282         Follow these guidelines: when possible, apply the attribute to
45283         an extern declaration, not to its definition.  Apply it to the
45284         definition only when the definition is static.
45285         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
45286         * lib/argv-iter.h (argv_iter_n_args): Likewise.
45287         * lib/base64.h (isbase64): Likewise.
45288         * lib/basename-lgpl.c (last_component, base_len): Likewise.
45289         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
45290         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
45291         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
45292         (c_tolower, c_toupper): Likewise.
45293         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
45294         * lib/chdir-long.c (find_non_slash): Likewise.
45295         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
45296         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
45297         * lib/file-type.h (file_type): Likewise.
45298         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
45299         * lib/filevercmp.c (verrevcmp): Likewise.
45300         * lib/freadahead.h (freadahead): Likewise.
45301         * lib/fts.c (fts_maxarglen): Likewise.
45302         * lib/hash-pjw.h (hash_pjw): Likewise.
45303         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
45304         * lib/hash.c (is_prime, next_prime): Likewise.
45305         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
45306         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
45307         (hash_table_ok, hash_get_first, hash_string): Likewise.
45308         (compute_bucket_size): Likewise.
45309         * lib/i-ring.h (i_ring_empty): Likewise.
45310         * lib/isnan.c (isnanl): Likewise.
45311         * lib/math.h (isnanl, rpl_isnanl): Likewise.
45312         * lib/memcasecmp.h (memcasecmp): Likewise.
45313         * lib/memchr2.h (memchr2): Likewise.
45314         * lib/memcmp2.h (memcmp2): Likewise.
45315         * lib/parse-datetime.y (lookup_zone): Likewise.
45316         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
45317         [!WINDOWS_SOCKETS]: Likewise.
45318         * lib/strnlen1.h (strnlen1): Likewise.
45319         * lib/uniwidth.in.h (uc_width): Likewise.
45320         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
45321         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
45322         (quoting_options_from_style): Add a comment.
45323         * lib/propername.h (proper_name): Add a comment.
45325 2011-11-27  Bruno Haible  <bruno@clisp.org>
45327         Remove unused macros from !_LIBC code in glibc-borrowed files.
45328         * lib/fnmatch.c (STRCOLL): Remove macro.
45329         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
45330         * lib/glob.c (__stat, __readdir64): Remove macros.
45331         * lib/tempname.c (__open64, __xstat64): Remove macros.
45332         Suggested by Paul Eggert.
45334 2011-11-27  Bruno Haible  <bruno@clisp.org>
45336         getcwd: Fix link error on MSVC 9.
45337         * modules/getcwd (Depends-on): Add readdir, rewinddir.
45339 2011-11-27  Bruno Haible  <bruno@clisp.org>
45341         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
45342         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
45343         HAVE_OPENDIR is 0.
45344         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
45345         HAVE_CLOSEDIR is 0.
45346         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
45347         is 0.
45348         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
45350 2011-11-27  Bruno Haible  <bruno@clisp.org>
45352         getcwd: Fix bug from 2011-08-17.
45353         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
45354         platforms that need it.
45355         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
45356         code of 4 to be a failure, not a success. This ensures that
45357         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
45359 2011-11-27  Bruno Haible  <bruno@clisp.org>
45361         binary-io tests: Avoid test failure on mingw when libtool is used.
45362         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
45363         Don't verify the size of t-bin-out1.tmp here.
45364         * tests/test-binary-io.sh: Verify it here.
45365         Reported by Simon Josefsson.
45367 2011-11-26  Bruno Haible  <bruno@clisp.org>
45369         Fix conflict between two instantiations of module 'unistd'.
45370         * gnulib-tool (func_emit_autoconf_snippet): Substitute
45371         ${include_guard_prefix} also in the autoconf snippet.
45372         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
45373         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
45374         GNULIB_UNISTD_H_GETOPT.
45375         * modules/getopt-posix (configure.ac): Set the
45376         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
45377         * modules/getopt-gnu (configure.ac): Likewise.
45378         * modules/unistd (Makefile.am): Change the substitution value of
45379         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
45380         Reported by Simon Josefsson.
45382 2011-11-25  Bruno Haible  <bruno@clisp.org>
45384         pagealign_alloc: Doc and comments.
45385         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
45386         module.
45387         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
45389 2011-11-25  Jim Meyering  <meyering@redhat.com>
45391         test-update-copyright.sh: avoid false-positive failure
45392         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
45393         around false positive failure on Cygwin/Windows.  The latter was
45394         matching erroneously-created files with names like
45395         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
45397 2011-11-25  Simon Josefsson  <simon@josefsson.org>
45399         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
45400         * m4/valgrind-tests.m4: Check that the parameters that will be
45401         used works, not just a subset of them.  Reported by Bruno Haible
45402         <bruno@clisp.org>.
45404 2011-11-24  Jim Meyering  <meyering@redhat.com>
45406         test-stdalign.c: comment out long double tests
45407         * tests/test-stdalign.c: Don't try to reduce alignment of long double
45408         variables.  That provokes errors like this from gcc-4.7.0 20111124:
45409         error: '_Alignas' specifiers cannot reduce alignment of \
45410         'static_longdouble_alignas'.
45412 2011-11-22  Jim Meyering  <meyering@redhat.com>
45414         init.sh: make "compare /dev/null FILE" output more readable
45415         * tests/init.sh (compare_): Document the preferred order of arguments.
45416         (emit_diff_u_header_): New function.
45417         (compare_dev_null_): Emit a simulated diff, rather than just the
45418         contents of the unexpected file.  Suggestion from Bruno Haible.
45420 2011-11-21  Jim Meyering  <meyering@redhat.com>
45421             Eric Blake  <eblake@redhat.com>
45423         init.sh: work around OSF/1 5.1's mishandling of /dev/null
45424         * tests/init.sh: Make our compare function slightly more portable.
45425         Reported by Bruno Haible in
45426         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
45428 2011-11-21  Simon Josefsson  <simon@josefsson.org>
45430         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
45431         before using it, in code that ends up in config.h.
45433 2011-11-20  Bruno Haible  <bruno@clisp.org>
45435         getcwd: Work around getcwd bug on AIX 5..7.
45436         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
45437         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
45438         Use a different value for gl_cv_func_getcwd_path_max. Move the
45439         definition of HAVE_PARTLY_WORKING_GETCWD from here...
45440         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
45441         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
45442         Define HAVE_MINIMALLY_WORKING_GETCWD.
45443         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
45444         where it is not even minimally working, that is, on AIX.
45445         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
45446         m4/getcwd-path-max.m4.
45447         (main): Update exit code computation.
45448         * doc/posix-functions/getcwd.texi: Mention list of platforms where
45449         getcwd does not handle long file names.
45451 2011-11-20  Bruno Haible  <bruno@clisp.org>
45453         getcwd: Fix bug from 2009-09-10.
45454         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
45455         like "no".
45457 2011-11-20  Simon Josefsson  <simon@josefsson.org>
45459         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
45461 2011-11-20  Bruno Haible  <bruno@clisp.org>
45463         fma tests: Avoid shadowing local variables.
45464         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
45465         expected.
45467 2011-11-20  Bruno Haible  <bruno@clisp.org>
45469         copysignf tests: Fix.
45470         * tests/test-copysignf.c: Fix signature check.
45472 2011-11-20  Bruno Haible  <bruno@clisp.org>
45474         fma: Remove unused code.
45475         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
45476         unused macros.
45478 2011-11-20  Bruno Haible  <bruno@clisp.org>
45480         sethostname: Fix doc about AIX.
45481         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
45482         sethostname; it has it.
45484         sethostname: Mention more portability problems.
45485         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
45486         problem.
45487         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
45489 2011-11-19  Bruno Haible  <bruno@clisp.org>
45491         Depend on module fcntl-h when AT_FDCWD is used.
45492         * modules/utimens (Depends-on): Add fcntl-h.
45493         * modules/areadlinkat (Depends-on): Likewise.
45494         * modules/areadlinkat-with-size (Depends-on): Likewise.
45495         * modules/faccessat (Depends-on): Likewise.
45496         * modules/fchmodat (Depends-on): Likewise.
45497         * modules/fchownat (Depends-on): Likewise.
45498         * modules/getcwd (Depends-on): Likewise.
45499         * modules/mkdirat (Depends-on): Likewise.
45500         * modules/mkfifoat (Depends-on): Likewise.
45501         * modules/readlinkat (Depends-on): Likewise.
45502         * modules/symlinkat (Depends-on): Likewise.
45503         * modules/dup2-tests (Depends-on): Likewise.
45504         * modules/fdutimensat-tests (Depends-on): Likewise.
45505         * modules/futimens-tests (Depends-on): Likewise.
45507 2011-11-19  Bruno Haible  <bruno@clisp.org>
45509         euidaccess: Update a comment.
45510         * lib/euidaccess.c: Update comment about platforms with faccessat.
45512 2011-11-19  Bruno Haible  <bruno@clisp.org>
45514         openat: Fix file list.
45515         * modules/openat (Files): Remove lib/at-func.c.
45517 2011-11-19  Bruno Haible  <bruno@clisp.org>
45519         fstatat: Simplify.
45520         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
45521         gnulib should define rpl_fstatat, there is a
45522         "#define fstatat rpl_fstatat" in <sys/stat.h>.
45524 2011-11-19  Bruno Haible  <bruno@clisp.org>
45526         Ensure 'inline' can be used in tests/test-utimens-common.h.
45527         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
45528         * modules/futimens-tests (configure.ac): Likewise.
45529         * modules/utimens-tests (configure.ac): Likewise.
45530         * modules/utimensat-tests (configure.ac): Likewise.
45532 2011-11-19  Simon Josefsson  <simon@josefsson.org>
45534         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
45535         not hash_insert0.
45536         (hash_insert_if_absent): Doc fix.
45538 2011-11-19  Simon Josefsson  <simon@josefsson.org>
45540         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
45542 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
45544         test-getcwd: disambiguate exit status
45545         * tests/test-getcwd.c (test_long_name): Return 0..7.
45546         (main): Exit with an unambiguous exit status.  The old
45547         code yielded a mysterious mixture of two failure codes.
45549         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
45550         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
45551         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
45552         rpl_fstatat or fstatat.  This should fix the other problem
45553         reported by Kai Habel in
45554         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
45555         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
45556         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00239.html>
45557         and I reproduced it on a Solaris 8 host we still have in production.
45559 2011-11-18  Jim Meyering  <meyering@redhat.com>
45561         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
45562         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
45563         Add a sentence to the comment.
45564         (hash_insert0): New function that simply calls hash_insert_if_absent.
45565         * lib/hash.h (hash_insert_if_absent): Declare it.
45566         (hash_insert0): Add deprecation attribute.
45567         (_GL_ATTRIBUTE_DEPRECATED): Define.
45568         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
45569         not hash_insert0.
45570         * NEWS: Mention it, even though it's not really an incompatible change.
45572 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
45574         openat: avoid compilation failure due to lack of <errno.h> inclusion
45575         * lib/openat.c: Include <errno.h>.
45577 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
45579         * modules/getcwd (Depends-on): Add fdopendir.
45580         This fixes one of the two problems reported by Kai Habel in
45581         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
45583         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
45584         stdalign problem reported by Ian Beckwith in
45585         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00238.html>.
45586         * modules/crypto/gc-arcfour (Depends-on):
45587         Depend conditionally on crypto/arcfour.
45588         * modules/crypto/gc-arctwo (Depends-on):
45589         Depend conditionally on crypto/arctwo.
45590         * modules/crypto/gc-des (Depends-on):
45591         Depend conditionally on crypto/des.
45592         * modules/crypto/gc-hmac-md5 (Depends-on):
45593         Depend conditionally on crypto/hmac-md5.
45594         * modules/crypto/gc-hmac-sha1 (Depends-on):
45595         Depend conditionally on crypto/hmac-sha1.
45596         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
45597         * modules/crypto/gc-md4 (Depends-on):
45598         Depend conditionally on crypto/md4.
45599         * modules/crypto/gc-md5 (Depends-on):
45600         Depend conditionally on crypto/md5.
45601         * modules/crypto/gc-rijndael (Depends-on):
45602         Depend conditionally on crypto/rijndael.
45603         * modules/crypto/gc-sha1 (Depends-on):
45604         Depend conditionally on crypto/sha1.
45605         * modules/crypto/gc-arcfour:
45606         * modules/crypto/gc-arctwo:
45607         * modules/crypto/gc-des:
45608         * modules/crypto/gc-hmac-md5:
45609         * modules/crypto/gc-hmac-sha1:
45610         * modules/crypto/gc-md2:
45611         * modules/crypto/gc-md4:
45612         * modules/crypto/gc-md5:
45613         * modules/crypto/gc-rijndael:
45614         * modules/crypto/gc-sha1:
45615         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
45616         now that the conditional dependencies do the work for us.
45618 2011-11-17  Jim Meyering  <meyering@redhat.com>
45620         tests: factor st_ctime-comparison out of two headers
45621         * tests/test-utimens-common.h (ctime_compare): Define.
45622         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
45623         * tests/test-lutimens.h (test_lutimens): Likewise.
45624         * tests/test-utimens.h (test_utimens): Likewise.
45626         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
45627         Invoke the test program via an init.sh-using wrapper.
45628         * tests/test-getcwd.sh: New file.
45629         * modules/getcwd-tests (Files): Add it.
45630         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
45632 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
45634         gitlog-to-changelog: support multi-author commits.
45635         The FSF cares about keeping track of all authors of patches to its
45636         projects, but Git doesn't provide obvious support for multi-author
45637         changesets. Consensus seems to be forming around the use of extra
45638         Signed-off-by inspired lines in the log message formatted as
45639         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
45640         multi-author commits between version control systems.
45641         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
45642         log message and output in standard ChangeLog multi-author format.
45643         Reported by Peter Rosin <peda@lysator.liu.se>
45645 2011-11-15  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
45646             Bruno Haible  <bruno@clisp.org>
45648         Fix some modules' file list.
45649         * modules/fstatat (Files): Add m4/lstat.m4.
45650         * modules/openat (Files): Likewise.
45651         * modules/unlinkat (Files): Likewise.
45653 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
45655         maint.mk: fix tight-scope.mk generation in VPATH builds.
45656         * top/maint.mk (tight-scope.mk): Make sure to prefix file
45657         reference with $(srcdir) so that the file is found correctly even
45658         when running `make syntax-check' in a VPATH build.
45660 2011-11-13  Bruno Haible  <bruno@clisp.org>
45661             Jim Meyering  <meyering@redhat.com>
45663         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
45664         * tests/init.sh (compare): Remove "No differences encountered" or
45665         synonymous output from the 'diff' program.
45667 2011-11-13  Bruno Haible  <bruno@clisp.org>
45669         Makefile: Tweak indentation.
45670         * Makefile: Use tab as first character in every line that contains rule
45671         commands.
45673 2011-11-13  Bruno Haible  <bruno@clisp.org>
45675         Syntax check for copyright statements.
45676         * check-copyright: New file.
45677         * Makefile (sc_check_copyright): New rule.
45679 2011-11-13  Simon Josefsson  <simon@josefsson.org>
45681         * build-aux/git-version-gen: Add --prefix to configure the tag
45682         match string.
45684 2011-11-13  Simon Josefsson  <simon@josefsson.org>
45686         * build-aux/git-version-gen: Add --help and --version.
45688 2011-11-12  Jim Meyering  <meyering@redhat.com>
45690         revamp the other test-exclude?.sh scripts to use init.sh, too
45691         * tests/test-exclude1.sh: Use init.sh.
45692         * tests/test-exclude2.sh: Likewise.
45693         * tests/test-exclude3.sh: Likewise.
45694         * tests/test-exclude4.sh: Likewise.
45695         * tests/test-exclude5.sh: Likewise.
45696         * tests/test-exclude6.sh: Likewise.
45697         * tests/test-exclude7.sh: Likewise.
45698         * tests/test-exclude8.sh: Likewise.
45699         * modules/exclude-tests (Files): List init.sh.
45701         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
45702         These shell scripts ignored failure of the binary test-exclude,
45703         so making the latter return 77 didn't cause them to be skipped.
45704         * tests/test-exclude5.sh: Exit with test-exclude's error status
45705         when that program fails.  Revamp to use init.sh.
45706         * tests/test-exclude2.sh: Likewise.
45708         test-exclude: fix a typo
45709         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
45711 2011-11-11  Bruno Haible  <bruno@clisp.org>
45713         obstack: Fix compilation error on MSVC 9.
45714         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
45716 2011-11-11  Jim Meyering  <meyering@redhat.com>
45718         test-exclude: skip tests rather than failing on deficient systems
45719         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
45720         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
45721         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
45722         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
45724 2011-11-10  Bruno Haible  <bruno@clisp.org>
45726         ptsname_r test: Avoid gcc warning on glibc systems.
45727         * tests/test-ptsname_r.c (null_ptr): New function.
45728         (test_errors): Use it.
45730 2011-11-10  Bruno Haible  <bruno@clisp.org>
45732         ptsname_r: Avoid compilation error on OSF/1 5.1.
45733         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
45734         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
45735         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
45736         function is not declared or incompatibly declared.
45737         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
45738         * modules/ptsname_r (Depends-on, configure.ac): Update.
45739         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
45741 2011-11-10  Bruno Haible  <bruno@clisp.org>
45743         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
45744         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
45745         When cross-compiling, guess yes on all platforms except AIX.
45746         Reported by Ludovic Courtès <ludo@gnu.org>.
45748 2011-11-09  Bruno Haible  <bruno@clisp.org>
45750         ptsname_r tests: Fix bugs.
45751         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
45752         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
45754 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
45756         fstatat: work with cross-compilation
45757         Problem reported by Ludovic Courtès in
45758         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00136.html>.
45759         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
45760         "cross-compiling" and assume the bug is present.  Replace
45761         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
45762         an inverted sense, to be more conservative about our assumptions.
45763         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
45765 2011-11-09  Bruno Haible  <bruno@clisp.org>
45767         Improve MODULES.html output.
45768         * modules/mkfifoat (Description): Use the word "function".
45769         * modules/readlinkat (Description): Likewise.
45770         * modules/symlinkat (Description): Likewise.
45772 2011-11-09  Eric Blake  <eblake@redhat.com>
45774         ptsname_r-tests: new test module
45775         * modules/ptsname_r-tests: New module.
45776         * tests/test-ptsname_r.c: New file.
45778         ptsname_r: new module
45779         * modules/ptsname_r: New module.
45780         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
45781         * lib/ptsname.c (__ptsname_r): Split...
45782         * lib/ptsname_r.c: ...into new file.
45783         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
45784         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
45785         * modules/stdlib (Makefile.am): Substitute witnesses.
45786         * lib/stdlib.in.h (ptsname_r): Declare it.
45787         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
45788         * MODULES.html.sh (Misc): Likewise.
45789         * modules/ptsname (Depends-on): Alter dependency.
45790         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
45792 2011-11-09  Jim Meyering  <meyering@redhat.com>
45794         announce-gen: be more concise when there's only one URL+tarball
45795         * build-aux/announce-gen (get_tool_versions): When you distribute
45796         only one type of tarball, combine the first two "Here are..."
45797         sections and make the key-checking grammar independent of
45798         how many tarballs there are.
45800 2011-11-09  Eric Blake  <eblake@redhat.com>
45802         openpty: provide a stub on mingw
45803         * lib/pty.in.h (includes): Provide forward declarations.
45804         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
45806         raise: fix mingw handling of SIGPIPE
45807         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
45809 2011-11-08  Bruno Haible  <bruno@clisp.org>
45811         More conditional dependencies.
45812         * modules/faccessat (Depends-on): Add conditions.
45813         * modules/fchmodat (Depends-on): Likewise.
45814         * modules/fchownat (Depends-on): Likewise.
45815         * modules/fstatat (Depends-on): Likewise.
45816         * modules/mkfifoat (Depends-on): Likewise.
45817         * modules/readlinkat (Depends-on): Likewise.
45818         * modules/symlinkat (Depends-on): Likewise.
45819         * modules/unlinkat (Depends-on): Likewise.
45820         * modules/utimensat (Depends-on): Likewise.
45821         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
45822         * modules/linkat (Depends-on): Refine the conditions.
45823         * modules/renameat (Depends-on): Likewise.
45825 2011-11-08  Bruno Haible  <bruno@clisp.org>
45827         faccessat: Move AC_LIBOBJ invocation to module description.
45828         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
45829         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
45830         invocation from here...
45831         * modules/faccessat (configure.ac): ... to here. Invoke
45832         gl_PREREQ_FACCESSAT.
45834 2011-11-08  Bruno Haible  <bruno@clisp.org>
45836         faccessat: Simplify autoconf macro.
45837         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
45838         gl_FUNC_EUIDACCESS.
45840 2011-11-08  Bruno Haible  <bruno@clisp.org>
45842         renameat: Fix dependencies.
45843         * modules/renameat (Depends-on): Add stdbool.
45845 2011-11-08  Bruno Haible  <bruno@clisp.org>
45847         mkfifoat: Fix module description.
45848         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
45849         not gl_UNISTD_MODULE_INDICATOR.
45851 2011-11-08  Bruno Haible  <bruno@clisp.org>
45853         fstatat: Remove unused dependency.
45854         * modules/fstatat (Depends-on): Remove fstat.
45856 2011-11-08  Simon Josefsson  <simon@josefsson.org>
45858         GNUmakefile: behave when Makefile is missing.
45859         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
45861 2011-11-08  Bruno Haible  <bruno@clisp.org>
45863         openat: Conditionalize dependencies.
45864         * lib/openat.c: Reduce the scope of some #includes.
45865         * modules/openat (Depends-on): Add conditions.
45867 2011-11-07  Jim Meyering  <meyering@redhat.com>
45869         maint.mk: extract GPG key ID without using a temporary file
45870         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
45871         without using a temporary file.  Based on a suggestion from Werner Koch
45872         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
45874 2011-11-07  Eric Blake  <eblake@redhat.com>
45876         grantpt: fix typo
45877         * lib/stdlib.in.h (grantpt): Check correct function.
45879         maint.mk: silence new syntax check
45880         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
45882 2011-11-06  Bruno Haible  <bruno@clisp.org>
45884         Doc about floating-point and math API.
45885         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
45886         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
45888 2011-11-06  Bruno Haible  <bruno@clisp.org>
45890         stdalign tests: Skip the test when compiled by Sun C.
45891         * tests/test-stdalign.c (main): Skip the test on Sun C.
45893 2011-11-06  Bruno Haible  <bruno@clisp.org>
45895         ansi-c++-opt: Complete the 2011-06-05 change.
45896         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
45897         does not support namespaces, set the variable to "no", not to ":".
45899 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
45901         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
45903 2011-11-06  Bruno Haible  <bruno@clisp.org>
45905         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
45906         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
45907         (minus_zerol) [HP-UX]: New macro.
45908         (unary_minus) [HP-UX]: New function.
45909         (copysignl) [HP-UX]: Use unary_minus function.
45911 2011-11-06  Bruno Haible  <bruno@clisp.org>
45913         ldexp, ldexpf, ldexpl: Enhance tests.
45914         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
45915         and tests/test-ldexpl.c.
45916         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
45917         LDEXP, MIN_EXP, MAX_EXP): New macros.
45918         Include test-ldexp.h.
45919         (main): Just call test_function.
45920         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
45921         infinity.h, nan.h.
45922         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
45923         MAX_EXP): New macros.
45924         Include test-ldexp.h.
45925         (x, y): Remove variables.
45926         (main): Just call test_function.
45927         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
45928         infinity.h, nan.h.
45929         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
45930         MAX_EXP): New macros.
45931         Include test-ldexp.h.
45932         (x, y): Remove variables.
45933         (main): Just call test_function.
45934         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
45935         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
45936         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
45937         (Depends-on): Add isnand-nolibm, signbit, float.
45938         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
45939         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
45940         (Depends-on): Add isnanf-nolibm, signbit, float.
45942 2011-11-06  Bruno Haible  <bruno@clisp.org>
45944         math tests: Cosmetics.
45945         * tests/test-math-c++.cc: Reorder declarations.
45947 2011-11-05  Bruno Haible  <bruno@clisp.org>
45949         fma*: Simplify test.
45950         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
45951         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
45953         Tests for module 'fmal'.
45954         * modules/fmal-tests: New file.
45955         * tests/test-fmal1.c: New file.
45956         * tests/test-fmal2.c: New file.
45958         New module 'fmal'.
45959         * lib/math.in.h (fmal): New declaration.
45960         * lib/fmal.c: New file.
45961         * m4/fmal.m4: New file.
45962         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
45963         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
45964         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
45965         REPLACE_FMAL.
45966         * modules/fmal: New file.
45967         * doc/posix-functions/fmal.texi: Mention the new module and the various
45968         bugs.
45970         Tests for module 'fmaf'.
45971         * modules/fmaf-tests: New file.
45972         * tests/test-fmaf1.c: New file.
45973         * tests/test-fmaf2.c: New file.
45975         New module 'fmaf'.
45976         * lib/math.in.h (fmaf): New declaration.
45977         * lib/fmaf.c: New file.
45978         * m4/fmaf.m4: New file.
45979         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
45980         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
45981         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
45982         REPLACE_FMAF.
45983         * modules/fmaf: New file.
45984         * doc/posix-functions/fmaf.texi: Mention the new module and the various
45985         bugs.
45987         Tests for module 'fma'.
45988         * modules/fma-tests: New file.
45989         * tests/test-fma1.c: New file.
45990         * tests/test-fma1.h: New file.
45991         * tests/test-fma2.c: New file.
45992         * tests/test-fma2.h: New file.
45994         New module 'fma'.
45995         * lib/math.in.h (fma): New declaration.
45996         * lib/fma.c: New file.
45997         * m4/fma.m4: New file.
45998         * m4/fegetround.m4: New file.
45999         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
46000         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
46001         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
46002         REPLACE_FMA.
46003         * modules/fma: New file.
46004         * doc/posix-functions/fma.texi: Mention the new module and the various
46005         bugs.
46007         Extend gl_MATHFUNC.
46008         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
46009         Support 'void' as argument type.
46010         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
46012 2011-11-05  Jim Meyering  <meyering@redhat.com>
46014         maint.mk: also prohibit inclusion of dirent.h without use
46015         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
46017 2011-11-05  Bruno Haible  <bruno@clisp.org>
46019         ldexpl tests: Avoid test failure on MSVC 9.
46020         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
46021         value. Needed in order to enforce the conversion from a value greater
46022         than LDBL_MAX to Infinity.
46024 2011-11-05  Bruno Haible  <bruno@clisp.org>
46026         New modules 'at-internal', 'openat-h', split off from module 'openat'.
46027         * modules/at-internal: New file, extracted from modules/openat.
46028         * modules/openat-h: New file.
46029         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
46030         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
46031         * modules/openat (Description): Add reference to POSIX function.
46032         (Files): Remove lib/openat.h, lib/openat-proc.c.
46033         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
46034         intprops, unistd.
46035         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
46036         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
46037         gl_FCNTL_MODULE_INDICATOR.
46038         (Include): Remove unistd.h, openat.h.
46039         * modules/areadlinkat (Files): Add lib/at-func.c.
46040         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
46041         openat-die, openat-h, save-cwd.
46042         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
46043         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
46044         openat-die, openat-h, save-cwd, unistd.
46045         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
46046         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
46047         openat-h, save-cwd. Remove fcntl-h, openat.
46048         * modules/fchmodat (Files): Remove lib/openat.h.
46049         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
46050         openat, stdbool, unistd.
46051         * modules/fchownat (Files): Remove lib/openat.h.
46052         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
46053         openat, stdbool, sys_stat.
46054         * modules/fdopendir (Files): Remove lib/openat-priv.h,
46055         lib/openat-proc.c.
46056         (Depends-on): Add at-internal.
46057         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
46058         * modules/fstatat (Files): Remove lib/openat.h.
46059         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
46060         stdbool, unistd.
46061         * modules/fts (Depends-on): Add openat-h.
46062         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
46063         openat.
46064         * modules/mkdirat (Files): Remove lib/openat.h.
46065         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
46066         openat, stdbool, sys_stat.
46067         * modules/mkfifoat (Files): Add lib/at-func.c.
46068         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
46069         openat-h, save-cwd. Remove fcntl-h, openat.
46070         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
46071         * modules/readlinkat (Files): Add lib/at-func.c.
46072         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
46073         openat-h, save-cwd. Remove fcntl-h, openat.
46074         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
46075         openat.
46076         * modules/selinux-at (Files): Add lib/at-func.c.
46077         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
46078         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
46079         * modules/symlinkat (Files): Add lib/at-func.c.
46080         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
46081         openat-h, save-cwd. Remove fcntl-h, openat.
46082         * modules/unlinkat (Files): Remove lib/openat.h.
46083         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
46084         stdbool.
46085         * modules/utimensat (Files): Add lib/at-func.c.
46086         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
46087         openat-die, openat-h, save-cwd.
46088         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
46089         * modules/fdutimensat-tests (Depends-on): Add openat.
46090         * modules/fstatat-tests (Depends-on): Add openat-h.
46091         * modules/readlinkat-tests (Depends-on): Add openat.
46092         * modules/symlinkat-tests (Depends-on): Add openat.
46094 2011-11-05  Bruno Haible  <bruno@clisp.org>
46096         openat: Include <stdbool.h>.
46097         * lib/openat.c: Include <stdbool.h>.
46099 2011-11-04  Bruno Haible  <bruno@clisp.org>
46101         fchownat, renameat, unlinkat: Fix dependencies.
46102         * modules/fchownat (Depends-on): Add fstatat.
46103         * modules/renameat (Depends-on): Likewise.
46104         * modules/unlinkat (Depends-on): Likewise.
46106 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
46108         openat: remove direct dependency on dirent
46109         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
46110         and hasn't been needed ever since fdopendir was split into its own
46111         module on 2009-08-31.
46112         * modules/openat (Depends-on): Remove dirent.
46114 2011-11-04  Bruno Haible  <bruno@clisp.org>
46116         renameat: Optimize code size.
46117         * modules/renameat (configure.ac): Don't compile at-func2.c if
46118         REPLACE_RENAMEAT is 1.
46120 2011-11-04  Bruno Haible  <bruno@clisp.org>
46122         openat tests: Fix file list.
46123         * modules/openat-tests (Files): Add tests/test-open.h.
46125 2011-11-04  Bruno Haible  <bruno@clisp.org>
46127         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
46128         * modules/fchmodat (Depends-on): Add openat-die.
46129         * modules/fchownat (Depends-on): Likewise.
46130         * modules/linkat (Depends-on): Likewise.
46131         * modules/renameat (Depends-on): Likewise.
46132         * modules/openat (Depends-on): Add dirent.
46134 2011-11-04  Jim Meyering  <meyering@redhat.com>
46136         at-func*.c: fix comments
46137         * lib/at-func2.c: Correct/improve first-line comment.
46138         * lib/at-func.c: Correct grammar in first-line comment.
46140 2011-11-04  Bruno Haible  <bruno@clisp.org>
46142         New module 'mkdirat', split off from module 'openat'.
46143         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
46144         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
46145         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
46146         * modules/mkdirat: New file, extracted from modules/openat.
46147         * modules/openat (Files): Remove lib/mkdirat.c.
46148         (Depends-on): Remove mkdir.
46149         (configure.ac): Remove AC_LIBOBJ of mkdirat.
46150         (Include): Remove <sys/stat.h>.
46151         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
46152         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
46153         tests/test-mkdir.h.
46154         (Depends-on): Remove ignore-value.
46155         (Makefile.am): Remove rules for test-mkdirat.
46156         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
46157         of module 'openat'.
46158         * NEWS: Mention the change.
46160 2011-11-04  Bruno Haible  <bruno@clisp.org>
46162         closedir: Avoid warning on mingw.
46163         * lib/closedir.c: Include <unistd.h>.
46165 2011-11-04  Bruno Haible  <bruno@clisp.org>
46167         New module 'fstatat', split off from module 'openat'.
46168         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
46169         defined.
46170         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
46171         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
46172         gl_FUNC_FSTATAT.
46173         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
46174         * modules/fstatat: New file, extracted from modules/openat.
46175         * modules/openat (Files): Remove lib/fstatat.c.
46176         (Depends-on): Remove lstat.
46177         (configure.ac): Remove AC_LIBOBJ of fstatat.
46178         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
46179         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
46180         tests/test-lstat.h, tests/test-stat.h.
46181         (Depends-on): Remove getcwd-lgpl.
46182         (Makefile.am): Remove rules for test-fstatat.
46183         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
46184         of module 'openat'.
46185         * NEWS: Mention the change.
46186         * modules/getcwd (Depends-on): Add fstatat.
46187         * modules/linkat (Depends-on): Likewise.
46188         * modules/mkfifoat-tests (Depends-on): Likewise.
46189         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
46191 2011-11-03  Bruno Haible  <bruno@clisp.org>
46193         New module 'unlinkat', split off from module 'openat'.
46194         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
46195         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
46196         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
46197         * modules/unlinkat: New file, extracted from modules/openat. Correct
46198         the dependency conditions.
46199         * modules/openat (Files): Remove lib/unlinkat.c.
46200         (Depends-on): Remove rmdir, unlink.
46201         (configure.ac): Remove AC_LIBOBJ of unlinkat.
46202         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
46203         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
46204         tests/test-rmdir.h, tests/test-unlink.h.
46205         (Depends-on): Remove unlinkdir.
46206         (Makefile.am): Remove rules for test-unlinkat.
46207         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
46208         of module 'openat'.
46209         * NEWS: Mention the change.
46210         * modules/linkat-tests (Depends-on): Add unlinkat.
46211         * modules/mkfifoat-tests (Depends-on): Likewise.
46212         * modules/readlinkat-tests (Depends-on): Likewise.
46214 2011-11-02  Bruno Haible  <bruno@clisp.org>
46216         New module 'fchmodat', split off from module 'openat'.
46217         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
46218         defined.
46219         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
46220         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
46221         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
46222         * modules/fchmodat: New file, extracted from modules/openat.
46223         * modules/openat (Files): Remove lib/fchmodat.c.
46224         (configure.ac): Remove AC_LIBOBJ of fchmodat.
46225         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
46226         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
46227         (Makefile.am): Remove rules for test-fchmodat.
46228         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
46229         of module 'openat'.
46230         * NEWS: Mention the change.
46232 2011-11-02  Jim Meyering  <meyering@redhat.com>
46234         putenv: indent #definition of "environ" to placate cppi
46235         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
46237         gitlog-to-changelog: provide a ChangeLog-repair mechanism
46238         Git logs are often treated as immutable, because editing them
46239         changes the SHA1 checksums of all descendants.  Thus, errors in
46240         git logs tend to stay there forever.  However, when we generate
46241         a ChangeLog file -- typically for distribution -- from that git log,
46242         we can actually make corrections in the generated file.  The key
46243         lies in recording in machine-readable/applicable form the desired
46244         corrections.  See --help for description and an example.
46245         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
46246         (usage): Describe it; alphabetize option descriptions.
46247         (main): Honor the new option, carefully.
46249 2011-11-01  Jim Meyering  <meyering@redhat.com>
46251         gitlog-to-changelog: avoid an infloop
46252         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
46253         that ends up being empty.
46255 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
46257         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
46258         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
46259         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
46260         contains (possibly-quoted) backslashes.  This should avoid
46261         all-too-common shell bugs if COMPLICATED contains backslashes in
46262         the "wrong" places.  Reported by David Evans in
46263         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00013.html>.
46264         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
46265         because we want ASCII ranges.  Is there some reason we don't use
46266         the C locale everywhere in this script?
46267         (func_module, top level): Avoid unwanted pathname expansion when
46268         $repo_url_prefix or $repo_url_suffix_repl contain shell
46269         metacharacters like '?' and '*'.
46271 2011-11-01  Bruno Haible  <bruno@clisp.org>
46273         fchownat: Improve description.
46274         * modules/fchownat (Description): Add link to function.
46276 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
46278         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
46279         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
46280         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00006.html>.
46281         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
46283 2011-11-01  Bruno Haible  <bruno@clisp.org>
46285         alignof: Avoid collision with stdalign module.
46286         * lib/alignof.h (alignof): Remove macro.
46287         * NEWS: Mention the change.
46288         Reported by Paul Eggert.
46290 2011-11-01  Bruno Haible  <bruno@clisp.org>
46292         New module 'fchownat', split off from module 'openat'.
46293         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
46294         defined.
46295         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
46296         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
46297         invoke gl_FUNC_FCHOWNAT.
46298         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
46299         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
46300         * modules/fchownat: New file, extracted from modules/openat.
46301         * modules/openat (Files): Remove lib/fchownat.c.
46302         (Depends-on): Remove lchown.
46303         (configure.ac): Remove AC_LIBOBJ of fchownat.
46304         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
46305         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
46306         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
46307         (Depends-on): Remove mgetgroups, usleep, stat-time.
46308         (configure.ac): Remove test for getegid.
46309         (Makefile.am): Remove rules for test-fchownat.
46310         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
46311         of module 'openat'.
46312         * NEWS: Mention the change.
46314 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
46316         stdalign: port better to MSVC and to Sun C 5.11
46317         This fixes some of the problems reported by Bruno Haible in
46318         <http://lists.gnu.org/r/bug-gnulib/2011-10/msg00300.html>.
46319         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
46320         shortcomings of MSVC and of Sun C 5.11.
46321         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
46322         around __declspec arg.
46323         * modules/stdalign-tests (Files): Add tests/macros.h.
46324         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
46325         Include macros.h, for ASSERT.
46326         (DECLARE_ALIGNED): Remove.
46327         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
46328         to catch bug), and to 1 if not (simplifies the rest of the code).
46329         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
46330         (CHECK_AUTO): Remove.
46331         (CHECK_ALIGNED): Check only the alignment of the static vars,
46332         since auto var alignment isn't supported by Sun C 5.11.
46333         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
46334         ASSERT failures are easier to diagnose.
46336 2011-10-31  Bruno Haible  <bruno@clisp.org>
46338         doc about some IRIX 5.3 problems.
46339         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
46340         on IRIX 5.3.
46341         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
46342         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
46343         5.3.
46344         * doc/posix-functions/grantpt.texi: Likewise.
46345         * doc/posix-functions/unlockpt.texi: Likewise.
46346         * doc/posix-functions/lgamma.texi: Likewise.
46347         * doc/posix-functions/nextafter.texi: Likewise.
46348         * doc/posix-functions/remainder.texi: Likewise.
46349         * doc/posix-functions/select.texi: Mention misplaced declaration on
46350         IRIX 5.3.
46351         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46353 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
46355         gitlog-to-changelog: fix git-log invocation.
46356         git-log mishandles date strings before 1970-01-01 UTC, and there is
46357         no use to specify --since=1970-01-01 by default anyway.
46358         * build-aux/gitlog-to-changelog: By default, when no --since option
46359         was given, do not specify explicit --since option to git-log.
46361 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
46363         gitlog-to-changelog: new option --append-dot.
46364         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
46365         first non-blank line of each commit message terminated with a dot.
46367 2011-10-30  Bruno Haible  <bruno@clisp.org>
46369         ffsl, ffsll: Avoid compilation error due to 'restrict'.
46370         * lib/ffsl.h: Include <config.h>.
46371         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
46373 2011-10-30  Jim Meyering  <meyering@redhat.com>
46375         GNUmakefile: reenable "make syntax-check" for most projects
46376         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
46377         build-aux variable", "syntax-check" would do nothing but succeed with
46378         the "No version control files detected..." diagnostic (unless you
46379         happened to override _build-aux via cfg.mk).
46380         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
46381         to precede inclusion of maint.mk.  Otherwise, these variables would
46382         be used undefined in any project that does not override the default.
46384 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
46386         gitlog-to-changelog: treat a message with only blank lines as empty.
46387         * build-aux/gitlog-to-changelog: Move the code that removes leading and
46388         trailing blank lines before the code that issues a warning about an
46389         empty commit message.
46391 2011-10-30  Jim Meyering  <meyering@redhat.com>
46393         test-parse-datetime.c: avoid new DST-related false positive test failure
46394         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
46395         based on the time/date we'll convert, not the current time.
46396         Otherwise, the moment we cross a DST boundary like today's in
46397         Europe, (CEST to CET), that offset ends up being one hour off.
46399 2011-10-27  Bruno Haible  <bruno@clisp.org>
46401         fstat: Tweak documentation.
46402         * modules/fstat (Description): More precise description.
46404 2011-10-27  Bruno Haible  <bruno@clisp.org>
46406         Update documentation regarding 'largefile' module.
46407         * doc/posix-functions/fstat.texi: Tweak wording.
46408         * doc/posix-functions/opendir.texi: Mention that the module fixes the
46409         problems with huge directories and/or small ino_t types.
46410         * doc/posix-functions/readdir.texi: Likewise.
46411         * doc/posix-functions/rewinddir.texi: Likewise.
46413 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
46415         maint.mk: don't maintain a second build-aux variable.
46416         * maint.mk (build_aux): Removed.  The maintainer-makefile module
46417         depends on GNUmakefile, which already maintains a cfg.mk
46418         overridable $(_build-aux) for projects with a non-standard
46419         build-aux directory location, although without the $(srcdir)
46420         prefix.  Use that variable consistently instead of introducing a
46421         second one.  Adjust all call sites.
46423 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
46425         Add stdalign module and use it in other modules.
46426         This is based on a previous proposal by Bruno Haible
46427         <https://lists.gnu.org/r/bug-gnulib/2011-07/msg00226.html>.
46429         stdalign: new module
46430         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
46431         * modules/stdalign: New files.
46432         * MODULES.html.sh (c1x_core_properties): Add stdalign.
46433         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
46435         stdalign-tests: new module
46436         * modules/stdalign-tests, tests/test-stdalign.c: New files.
46438         argp: use stdalign
46439         * lib/argp-parse.c: Include <stdalign.h>.
46440         (alignof): Remove.
46441         * modules/argp (Depends-on): Add stdalign.
46443         crypto libraries: use stdalign
46444         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
46445         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
46446         Do not include <stdlib.h> twice, in md4.c.
46447         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
46448         because we are accessing a pointer's bit-pattern, not a size.
46449         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
46450         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
46451         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
46452         * modules/crypto/sha512: Likewise.
46454         sys_socket: use stdalign, not alignof
46455         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
46456         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
46458 2011-10-27  Bruno Haible  <bruno@clisp.org>
46460         raise test: Avoid a test failure on Linux/MIPS.
46461         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
46462         because 99 is a valid signal on Linux/MIPS.
46464 2011-10-27  Bruno Haible  <bruno@clisp.org>
46466         nonblocking tests: Fix test failure on Linux/MIPS.
46467         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
46468         Set to 270000.
46470 2011-10-27  Bruno Haible  <bruno@clisp.org>
46472         utimensat: Work around problem on Linux/hppa.
46473         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
46474         values.
46475         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
46477 2011-10-25  Jim Meyering  <meyering@redhat.com>
46479         maint.mk: fix a bug in sc_prohibit_stddef_without_use
46480         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
46481         after symbols like NULL, size_t, etc.
46482         Reported by Alfred M. Szmidt.
46484         maint.mk: exempt ENODATA from a syntax-check rule
46485         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
46486         from the sc_prohibit_always-defined_macros syntax-check rule.
46487         Add a comment.  See this for more details:
46488         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
46490 2011-10-23  Jim Meyering  <meyering@redhat.com>
46492         fts: close parent dir FD before returning from post-traversal fts_read
46493         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
46494         unlink A, even though an FD open on A remained.  This is suboptimal
46495         (holding a file descriptor open longer than needed), but otherwise not
46496         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
46497         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
46498         that represents a real problem: it causes the removal of A to fail
46499         with e.g., "rm: cannot remove `A': Device or resource busy"
46501         fts visits each directory twice and keeps a cache (fts_fd_ring) of
46502         directory file descriptors.  After completing the final, FTS_DP,
46503         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
46504         cache, but then proceeded to add a new FD to it via the subsequent
46505         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
46506         final file descriptor would be closed only via fts_close's call to
46507         fd_ring_clear.  Now, it is usually closed earlier, via the final
46508         FTS_DP-returning fts_read call.
46509         * lib/fts.c (restore_initial_cwd): New function, converted from
46510         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
46511         Update callers.
46512         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
46513         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
46515 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
46516             Bruno Haible  <bruno@clisp.org>
46517             Jim Meyering  <jim@meyering.net>
46519         readme-release: improve safety of release prep instructions.
46520         * README-release: Don't git pull all branches when only master
46521         is needed for the release process.
46522         Run make maintainer-clean before changing trees and merging.
46523         Don't try to run ./configure right after git pull in case files
46524         that influence the bootstrap process have changed, move the
46525         ./configure step to after running ./bootstrap.
46526         Don't bootstrap "one last time"... it's the first time!
46528 2011-10-22  Bruno Haible  <bruno@clisp.org>
46530         errno, strerror-override: Support for MSVC 10.
46531         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
46532         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
46533         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
46534         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
46535         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
46536         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
46537         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
46538         Assign values compatible with MSVC 10.
46539         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
46540         New macros.
46541         (GNULIB_defined_EWINSOCK): New macro.
46542         * lib/strerror-override.c (strerror_override): Update accordingly.
46543         * lib/strerror-override.h: Likewise.
46544         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
46545         longer equal to the corresponding errno value.
46546         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
46548 2011-10-22  Bruno Haible  <bruno@clisp.org>
46550         perror: Recognize when test program crashes.
46551         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
46552         strerror, set gl_cv_func_perror_works to no.
46553         Reported by Daniel Richard G. <skunk@iskunk.org>.
46555         perror: Fix indentation.
46556         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
46558 2011-10-22  Bruno Haible  <bruno@clisp.org>
46560         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
46561         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
46562         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
46563         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
46564         functions, not as a macro.
46565         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
46566         macros.
46567         (isfinite, isinf, isnan, signbit): Check overloaded functions and
46568         absence of macro.
46569         Suggested by Eric Blake.
46570         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
46572 2011-10-21  Bruno Haible  <bruno@clisp.org>
46574         relocatable-prog-wrapper: Don't leave object files behind.
46575         * build-aux/install-reloc: Re-synchronize list of .o files to be
46576         removed with list of compilation units.
46578 2011-10-20  Bruno Haible  <bruno@clisp.org>
46580         openpty, posix_openpt: Remove code duplication.
46581         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
46582         * lib/openpty.c: Include <stdlib.h>.
46583         (openpty): Use posix_openpt on all platforms except IRIX.
46584         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
46586 2011-10-20  Bruno Haible  <bruno@clisp.org>
46588         unlockpt: Detect invalid argument.
46589         * lib/unlockpt.c: Include <fcntl.h>.
46590         (unlockpt): Check whether fd is valid, using fcntl().
46591         * modules/unlockpt (Depends-on): Add fcntl-h.
46593 2011-10-20  Bruno Haible  <bruno@clisp.org>
46595         openpty: Avoid compilation error on AIX 6.1.
46596         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
46598 2011-10-20  Bruno Haible  <bruno@clisp.org>
46600         posix_openpt: Support for OpenBSD.
46601         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
46602         (posix_openpt) [OpenBSD]: New code.
46603         * lib/grantpt.c: Include <fcntl.h>.
46604         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
46605         * modules/grantpt (Depends-on): Add fcntl-h.
46607 2011-10-20  Bruno Haible  <bruno@clisp.org>
46609         posix_openpt test: Coding style.
46610         * tests/test-posix_openpt.c: Use GNU coding style.
46612 2011-10-20  Bruno Haible  <bruno@clisp.org>
46614         grantpt: Support --avoid=pt_chown.
46615         * modules/grantpt (Files): Add lib/pty-private.h.
46617 2011-10-20  Bruno Haible  <bruno@clisp.org>
46619         posix_openpt: Fix autoconf macro.
46620         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
46621         unneeded check for _getpty.
46623 2011-10-20  Bruno Haible  <bruno@clisp.org>
46625         openpty: Update comments.
46626         * lib/openpty.c: Add comments about Minix.
46628 2011-10-19  Eric Blake  <eblake@redhat.com>
46630         openpty: relax license
46631         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
46633         pt_chown: use configmake to simplify build
46634         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
46636         ptsname and others: relax license
46637         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
46638         * modules/unlockpt (License): Likewise.
46639         * modules/pt_chown (License): Likewise.
46640         * modules/ptsname (License): Likewise.
46641         * modules/ttyname_r (License): Likewise.
46643 2011-10-19  Jim Meyering  <meyering@redhat.com>
46645         posix_openpt: remove spurious #endif
46646         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
46648 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
46650         maint.mk: Respect $(build_aux) in web-manual rule.
46651         * top/maint.mk (web-manual): Find gen-announce script in user's
46652         $(build_aux) directory instead of hard-coding 'build-aux'.
46654 2011-10-19  Bruno Haible  <bruno@clisp.org>
46656         posix_openpt: Fix compilation error.
46657         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
46658         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
46659         Mention the openpty module as an alternative.
46661 2011-10-19  Bruno Haible  <bruno@clisp.org>
46663         Support for old NeXTstep 3.3 frexp().
46664         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
46665         execution time of the test to 5 seconds.
46666         Reported by Daniel Richard G. <skunk@iskunk.org>.
46668 2011-10-19  Bruno Haible  <bruno@clisp.org>
46670         Support for old NeXTstep 3.3 sed.
46671         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
46672         part, use /.../, not \|...|. Escape periods in the header file name.
46673         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
46674         Reported by Daniel Richard G. <skunk@iskunk.org>.
46676 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
46678         Support for old NeXTstep 3.3 gcc.
46679         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
46680         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
46681         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
46682         * lib/spawn.in.h (_Restrict_arr_): Likewise.
46683         * lib/regex.h (_Restrict_arr_): Likewise.
46684         * lib/regex_internal.h (re_token_t): Likewise.
46685         * lib/regexec.c (check_node_accept_bytes): Likewise.
46686         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
46688 2011-10-18  Eric Blake  <eblake@redhat.com>
46690         posix_openpt: new module
46691         * modules/posix_openpt: New module.
46692         * m4/posix_openpt.m4: New file.
46693         * lib/posix_openpt.c: Likewise.
46694         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
46695         (gl_STDLIB_H_DEFAULTS): Set defaults.
46696         * modules/stdlib (Makefile.am): Substitute macros.
46697         * lib/stdlib.in.h (posix_openpt): Declare.
46698         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
46699         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
46700         * modules/posix_openpt-tests: New test module.
46701         * tests/test-posix_openpt.c: New test.
46703 2011-10-15  Bruno Haible  <bruno@clisp.org>
46705         xstrtoll: Fix compilation failure.
46706         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
46707         from lib/strtol.c.
46708         * doc/posix-headers/limits.texi: Mention missing numerical limits on
46709         some platforms.
46710         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46712 2011-10-15  Bruno Haible  <bruno@clisp.org>
46714         vasnprintf: Optimize bit search operation.
46715         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
46716         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
46717         gl_DOUBLE_EXPONENT_LOCATION.
46718         * modules/vasnprintf (Files): Add m4/exponentd.m4.
46719         * modules/unistdio/u8-vasnprintf (Files): Likewise.
46720         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
46721         * modules/unistdio/u16-vasnprintf (Files): Likewise.
46722         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
46723         * modules/unistdio/u32-vasnprintf (Files): Likewise.
46724         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
46725         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
46726         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
46728 2011-10-15  Bruno Haible  <bruno@clisp.org>
46730         vasnprintf: Fix comments.
46731         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
46733 2011-10-14  Bruno Haible  <bruno@clisp.org>
46735         Tests for module 'integer_length_ll'.
46736         * modules/integer_length_ll-tests: New file.
46737         * tests/test-integer_length_ll.c: New file.
46739         New module 'integer_length_ll'.
46740         * lib/integer_length_ll.c: New file.
46741         * modules/integer_length_ll: New file.
46743 2011-10-14  Bruno Haible  <bruno@clisp.org>
46745         Tests for module 'integer_length_l'.
46746         * modules/integer_length_l-tests: New file.
46747         * tests/test-integer_length_l.c: New file.
46749         New module 'integer_length_l'.
46750         * lib/integer_length_l.c: New file.
46751         * modules/integer_length_l: New file.
46753 2011-10-14  Bruno Haible  <bruno@clisp.org>
46755         Tests for module 'integer_length'.
46756         * modules/integer_length-tests: New file.
46757         * tests/test-integer_length.c: New file.
46759         New module 'integer_length'.
46760         * lib/integer_length.h: New file.
46761         * lib/integer_length.c: New file.
46762         * modules/integer_length: New file.
46764 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
46766         popen: Fix dependency conditions.
46767         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
46769 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
46771         perror: Fix autoconf test.
46772         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
46773         <stdlib.h> and <string.h>.
46775 2011-10-14  Bruno Haible  <bruno@clisp.org>
46777         ffsl: Optimize on 64-bit platforms.
46778         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
46779         unrolling.
46781 2011-10-13  Bruno Haible  <bruno@clisp.org>
46783         ffsl: Optimize on 32-bit platforms.
46784         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
46785         use ffs() without a loop.
46787         ffsl, ffsll: Optimize for GCC.
46788         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
46789         * lib/ffsl.c (GCC_BUILTIN): New macro.
46790         * lib/ffsll.c (GCC_BUILTIN): Likewise.
46792 2011-10-13  Bruno Haible  <bruno@clisp.org>
46794         ffs, bcopy, memset: Support symbol renaming via config.h.
46795         * lib/ffs.c: Include <config.h>.
46796         * lib/bcopy.c: Likewise.
46797         * lib/memset.c: Likewise.
46799 2011-10-10  Bruno Haible  <bruno@clisp.org>
46801         atanl: Simplify for platforms where 'long double' == 'double'.
46802         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
46803         alternative implementation.
46804         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46805         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46806         * modules/atanl (Depends-on): Add atan. Update conditions.
46808 2011-10-10  Bruno Haible  <bruno@clisp.org>
46810         acosl: Simplify for platforms where 'long double' == 'double'.
46811         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
46812         alternative implementation.
46813         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46814         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46815         * modules/acosl (Depends-on): Add acos. Update conditions.
46817 2011-10-10  Bruno Haible  <bruno@clisp.org>
46819         asinl: Simplify for platforms where 'long double' == 'double'.
46820         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
46821         alternative implementation.
46822         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46823         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46824         * modules/asinl (Depends-on): Add asin. Update conditions.
46826 2011-10-10  Bruno Haible  <bruno@clisp.org>
46828         tanl: Simplify for platforms where 'long double' == 'double'.
46829         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
46830         implementation.
46831         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46832         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46833         * modules/tanl (Depends-on): Add tan. Update conditions.
46834         (configure.ac): Don't compile trigl.c if
46835         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46837 2011-10-10  Bruno Haible  <bruno@clisp.org>
46839         cosl: Simplify for platforms where 'long double' == 'double'.
46840         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
46841         implementation.
46842         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46843         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46844         * modules/cosl (Depends-on): Add cos. Update conditions.
46845         (configure.ac): Don't compile sincosl.c and trigl.c if
46846         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46848 2011-10-10  Bruno Haible  <bruno@clisp.org>
46850         sinl: Simplify for platforms where 'long double' == 'double'.
46851         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
46852         implementation.
46853         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46854         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46855         * modules/sinl (Depends-on): Add sin. Update conditions.
46856         (configure.ac): Don't compile sincosl.c and trigl.c if
46857         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46859 2011-10-10  Bruno Haible  <bruno@clisp.org>
46861         logl: Simplify for platforms where 'long double' == 'double'.
46862         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
46863         implementation.
46864         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46865         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46866         * modules/logl (Depends-on): Add log. Update conditions.
46868 2011-10-10  Bruno Haible  <bruno@clisp.org>
46870         expl: Simplify for platforms where 'long double' == 'double'.
46871         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
46872         implementation.
46873         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46874         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46875         * modules/expl (Depends-on): Add exp. Update conditions.
46877 2011-10-10  Bruno Haible  <bruno@clisp.org>
46879         sqrtl: Simplify for platforms where 'long double' == 'double'.
46880         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
46881         alternative implementation.
46882         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46883         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46884         * modules/sqrtl (Depends-on): Update conditions.
46886 2011-10-10  Bruno Haible  <bruno@clisp.org>
46888         ldexpl: Simplify for platforms where 'long double' == 'double'.
46889         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
46890         alternative implementation.
46891         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46892         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46893         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
46895 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
46897         ffsll: set correct witness
46898         * modules/ffsll (configure.ac): Fix typo.
46900 2011-10-10  Bruno Haible  <bruno@clisp.org>
46902         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
46903         * lib/printf-frexpl.c: Include <config.h>.
46904         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
46905         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
46906         second time.
46907         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
46908         gl_LONG_DOUBLE_VS_DOUBLE.
46909         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
46910         conditions.
46912 2011-10-10  Bruno Haible  <bruno@clisp.org>
46914         frexpl: Simplify for platforms where 'long double' == 'double'.
46915         * lib/frexpl.c: Include <config.h>.
46916         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
46917         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
46918         time.
46919         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46920         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46921         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
46922         * modules/frexpl (Depends-on): Add frexp. Update conditions.
46923         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
46924         conditions.
46926 2011-10-10  Jim Meyering  <meyering@redhat.com>
46928         test-renameat: don't leave behind a temporary file
46929         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
46930           ERROR: files left in build directory after distclean:
46931           ./gltests/test-renameat.too
46932           make[1]: *** [distcleancheck] Error 1
46933         Reported by Tom G. Christensen.
46935 2011-10-09  Bruno Haible  <bruno@clisp.org>
46937         rint: Determine RINT_LIBM correctly on AIX 7.
46938         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
46939         directly, not only through a function pointer. Also accept an optional
46940         4th argument with extra code.
46941         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
46942         rintf() call by gcc when optimizing.
46944         mathfunc.m4: Refactor.
46945         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
46946         m4 variable.
46948 2011-10-09  Bruno Haible  <bruno@clisp.org>
46950         rintl: Simplify for platforms where 'long double' == 'double'.
46951         * lib/rintl.c: Include <config.h>.
46952         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
46953         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
46954         time.
46955         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46956         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46957         * modules/rintl (Depends-on): Add rint. Update conditions.
46959 2011-10-09  Bruno Haible  <bruno@clisp.org>
46961         roundl: Simplify for platforms where 'long double' == 'double'.
46962         * lib/roundl.c: Include <config.h>.
46963         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
46964         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
46965         time.
46966         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46967         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46968         * modules/roundl (Depends-on): Add round. Update conditions.
46970 2011-10-09  Bruno Haible  <bruno@clisp.org>
46972         truncl: Simplify for platforms where 'long double' == 'double'.
46973         * lib/truncl.c: Include <config.h>.
46974         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
46975         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
46976         time.
46977         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46978         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46979         * modules/truncl (Depends-on): Add trunc. Update conditions.
46981 2011-10-09  Bruno Haible  <bruno@clisp.org>
46983         ceill: Simplify for platforms where 'long double' == 'double'.
46984         * lib/ceill.c: Include <config.h>.
46985         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
46986         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
46987         time.
46988         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46989         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46990         * modules/ceill (Depends-on): Add ceil. Update conditions.
46992 2011-10-09  Bruno Haible  <bruno@clisp.org>
46994         floorl: Simplify for platforms where 'long double' == 'double'.
46995         * lib/floorl.c: Include <config.h>.
46996         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
46997         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
46998         time.
46999         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
47000         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47001         * modules/floorl (Depends-on): Add floor. Update conditions.
47003 2011-10-09  Bruno Haible  <bruno@clisp.org>
47005         rint: Fix ordering constraints.
47006         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
47007         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
47008         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
47010 2011-10-09  Bruno Haible  <bruno@clisp.org>
47012         copysignl: Simplify for platforms where 'long double' == 'double'.
47013         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
47014         alternative.
47015         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
47016         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47017         * modules/copysignl (Depends-on): Add copysign. Update conditions.
47019 2011-10-09  Bruno Haible  <bruno@clisp.org>
47021         Tests for module 'rintl'.
47022         * modules/rintl-tests: New file.
47023         * tests/test-rintl.c: New file.
47025         New module 'rintl'.
47026         * lib/math.in.h (rintl): New declaration.
47027         * lib/rintl.c: New file.
47028         * m4/rintl.m4: New file.
47029         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
47030         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
47031         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
47032         * modules/rintl: New file.
47033         * tests/test-math-c++.cc: Check the declaration of rintl.
47034         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
47035         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
47036         * doc/posix-functions/rintl.texi: Mention the new module.
47038 2011-10-09  Bruno Haible  <bruno@clisp.org>
47040         Tests for module 'rintf'.
47041         * modules/rintf-tests: New file.
47042         * tests/test-rintf.c: New file.
47044         New module 'rintf'.
47045         * lib/math.in.h (rintf): New declaration.
47046         * lib/rintf.c: New file.
47047         * m4/rintf.m4: New file.
47048         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
47049         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
47050         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
47051         * modules/rintf: New file.
47052         * tests/test-math-c++.cc: Check the declaration of rintf.
47053         * doc/posix-functions/rintf.texi: Mention the new module.
47055 2011-10-09  Bruno Haible  <bruno@clisp.org>
47057         rint: Support for MSVC.
47058         * lib/math.in.h (rint): New declaration.
47059         * lib/rint.c: New file.
47060         * m4/rint.m4: New file.
47061         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
47062         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
47063         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
47064         * modules/rint (Description): Fix.
47065         (Files): Add lib/rint.c, m4/rint.m4.
47066         (Depends-on): Add math.
47067         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
47068         gl_MATH_MODULE_INDICATOR.
47069         * tests/test-math-c++.cc: Check the declaration of rint.
47070         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
47071         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
47072         * doc/posix-functions/rint.texi: Mention the replacement provided by
47073         the module.
47075         rint tests: More tests.
47076         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
47077         minus-zero.h, infinity.h, nan.h.
47078         (main): Skip the test if the current rounding mode is not standard. Add
47079         tests for negative numbers, minus zero, infinity, NaN.
47080         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
47081         tests/nan.h.
47082         (Depends-on): Add isnand-nolibm.
47084 2011-10-09  Bruno Haible  <bruno@clisp.org>
47086         Tests for module 'copysignl'.
47087         * modules/copysignl-tests: New file.
47088         * tests/test-copysignl.c: New file.
47090         New module 'copysignl'.
47091         * lib/math.in.h (copysignl): New declaration.
47092         * lib/copysignl.c: New file.
47093         * m4/copysignl.m4: New file.
47094         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
47095         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
47096         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
47097         HAVE_COPYSIGNL.
47098         * modules/copysignl: New file.
47099         * tests/test-math-c++.cc: Check the declaration of copysignl.
47100         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
47101         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
47102         * doc/posix-functions/copysignl.texi: Mention the new module.
47104 2011-10-09  Bruno Haible  <bruno@clisp.org>
47106         Tests for module 'copysignf'.
47107         * modules/copysignf-tests: New file.
47108         * tests/test-copysignf.c: New file.
47110         New module 'copysignf'.
47111         * lib/math.in.h (copysignf): New declaration.
47112         * lib/copysignf.c: New file.
47113         * m4/copysignf.m4: New file.
47114         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
47115         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
47116         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
47117         HAVE_COPYSIGNF.
47118         * modules/copysignf: New file.
47119         * tests/test-math-c++.cc: Check the declaration of copysignf.
47120         * doc/posix-functions/copysignf.texi: Mention the new module.
47122 2011-10-09  Bruno Haible  <bruno@clisp.org>
47124         Ensure that HAVE_* variables are set to 1 before they are set to 0.
47125         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
47126         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
47127         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
47128         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
47129         gl_SIGNAL_H_DEFAULTS.
47131 2011-10-09  Bruno Haible  <bruno@clisp.org>
47133         poll: Make macro safer.
47134         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
47135         ac_cv_header_poll_h is not set.
47137 2011-10-09  Bruno Haible  <bruno@clisp.org>
47139         copysign: Provide replacement.
47140         * lib/math.in.h (copysign): New declaration.
47141         * lib/copysign.c: New file.
47142         * m4/copysign.m4: New file.
47143         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
47144         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
47145         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
47146         HAVE_COPYSIGN.
47147         * modules/copysign (Description): Clarify.
47148         (Files): Add lib/copysign.c, m4/copysign.m4.
47149         (Depends-on): Add math, signbit.
47150         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
47151         gl_MATH_MODULE_INDICATOR.
47152         * tests/test-math-c++.cc: Check the declaration of copysign.
47153         * doc/posix-functions/copysign.texi: Mention the effects of the module
47154         on Minix and MSVC.
47156 2011-10-09  Bruno Haible  <bruno@clisp.org>
47158         isinf: Ensure macro on AIX 5.1.
47159         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
47160         macro.
47161         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
47163 2011-10-09  Bruno Haible  <bruno@clisp.org>
47165         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
47166         * modules/snprintf-posix-tests (configure.ac): Require
47167         gl_LONG_DOUBLE_VS_DOUBLE.
47168         * modules/sprintf-posix-tests (configure.ac): Likewise.
47169         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
47170         * modules/vasprintf-posix-tests (configure.ac): Likewise.
47171         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
47172         * modules/vsprintf-posix-tests (configure.ac): Likewise.
47173         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
47174         tests on platforms where 'long double' is the same as 'double'.
47175         * tests/test-sprintf-posix.h (test_function): Likewise.
47176         * tests/test-vasnprintf-posix.c (test_function): Likewise.
47177         * tests/test-vasprintf-posix.c (test_function): Likewise.
47179         *printf: Fix for platforms where 'long double' == 'double'.
47180         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
47181         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
47182         * modules/dprintf-posix (Files): Add m4/math_h.m4.
47183         * modules/fprintf-posix (Files): Likewise.
47184         * modules/obstack-printf-posix (Files): Likewise.
47185         * modules/snprintf-posix (Files): Likewise.
47186         * modules/sprintf-posix (Files): Likewise.
47187         * modules/vasnprintf (Files): Likewise.
47188         * modules/vasnprintf-posix (Files): Likewise.
47189         * modules/vasprintf-posix (Files): Likewise.
47190         * modules/vdprintf-posix (Files): Likewise.
47191         * modules/vfprintf-posix (Files): Likewise.
47192         * modules/vsnprintf-posix (Files): Likewise.
47193         * modules/vsprintf-posix (Files): Likewise.
47194         * modules/unistdio/u8-vasnprintf (Files): Likewise.
47195         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
47196         * modules/unistdio/u16-vasnprintf (Files): Likewise.
47197         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
47198         * modules/unistdio/u32-vasnprintf (Files): Likewise.
47199         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
47200         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
47202         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
47203         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
47204         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
47205         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
47206         'long double'.
47207         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
47209         isinf: Fix for platforms where 'long double' == 'double'.
47210         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
47211         Don't blindly assume 80-bit 'long double'.
47213         isfinite: Fix for platforms where 'long double' == 'double'.
47214         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
47215         Don't blindly assume 80-bit 'long double'.
47217         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
47218         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
47219         * modules/isfinite-tests (configure.ac): Require
47220         gl_LONG_DOUBLE_VS_DOUBLE.
47221         * modules/isinf-tests (configure.ac): Likewise.
47222         * modules/isnan-tests (configure.ac): Likewise.
47223         * modules/isnanl-tests (configure.ac): Likewise.
47224         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
47225         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
47226         tests on platforms where 'long double' is the same as 'double'.
47227         * tests/test-isinf.c (test_isinfl): Likewise.
47228         * tests/test-isnan.c (test_long_double): Likewise.
47229         * tests/test-isnanl.h (main): Likewise.
47231 2011-10-08  Bruno Haible  <bruno@clisp.org>
47233         Tests for module 'tanhf'.
47234         * modules/tanhf-tests: New file.
47235         * tests/test-tanhf.c: New file.
47237         New module 'tanhf'.
47238         * lib/math.in.h (tanhf): New declaration.
47239         * lib/tanhf.c: New file.
47240         * m4/tanhf.m4: New file.
47241         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
47242         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
47243         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
47244         * modules/tanhf: New file.
47245         * tests/test-math-c++.cc: Check the declaration of tanhf.
47246         * doc/posix-functions/tanhf.texi: Mention the new module.
47248         tanh: Use a .m4 file.
47249         * m4/tanh.m4: New file.
47250         * modules/tanh (Files): Add it.
47251         (configure.ac): Just invoke gl_FUNC_TANH.
47253 2011-10-08  Bruno Haible  <bruno@clisp.org>
47255         Tests for module 'coshf'.
47256         * modules/coshf-tests: New file.
47257         * tests/test-coshf.c: New file.
47259         New module 'coshf'.
47260         * lib/math.in.h (coshf): New declaration.
47261         * lib/coshf.c: New file.
47262         * m4/coshf.m4: New file.
47263         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
47264         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
47265         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
47266         * modules/coshf: New file.
47267         * tests/test-math-c++.cc: Check the declaration of coshf.
47268         * doc/posix-functions/coshf.texi: Mention the new module.
47270         cosh: Use a .m4 file.
47271         * m4/cosh.m4: New file.
47272         * modules/cosh (Files): Add it.
47273         (configure.ac): Just invoke gl_FUNC_COSH.
47275 2011-10-08  Bruno Haible  <bruno@clisp.org>
47277         Tests for module 'sinhf'.
47278         * modules/sinhf-tests: New file.
47279         * tests/test-sinhf.c: New file.
47281         New module 'sinhf'.
47282         * lib/math.in.h (sinhf): New declaration.
47283         * lib/sinhf.c: New file.
47284         * m4/sinhf.m4: New file.
47285         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
47286         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
47287         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
47288         * modules/sinhf: New file.
47289         * tests/test-math-c++.cc: Check the declaration of sinhf.
47290         * doc/posix-functions/sinhf.texi: Mention the new module.
47292         sinh: Use a .m4 file.
47293         * m4/sinh.m4: New file.
47294         * modules/sinh (Files): Add it.
47295         (configure.ac): Just invoke gl_FUNC_SINH.
47297 2011-10-08  Bruno Haible  <bruno@clisp.org>
47299         Tests for module 'atan2f'.
47300         * modules/atan2f-tests: New file.
47301         * tests/test-atan2f.c: New file.
47303         New module 'atan2f'.
47304         * lib/math.in.h (atan2f): New declaration.
47305         * lib/atan2f.c: New file.
47306         * m4/atan2f.m4: New file.
47307         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
47308         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
47309         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
47310         * modules/atan2f: New file.
47311         * tests/test-math-c++.cc: Check the declaration of atan2f.
47312         * doc/posix-functions/atan2f.texi: Mention the new module.
47314         atan2: Use a .m4 file.
47315         * m4/atan2.m4: New file.
47316         * modules/atan2 (Files): Add it.
47317         (configure.ac): Just invoke gl_FUNC_ATAN2.
47319 2011-10-08  Bruno Haible  <bruno@clisp.org>
47321         Tests for module 'atanf'.
47322         * modules/atanf-tests: New file.
47323         * tests/test-atanf.c: New file.
47325         New module 'atanf'.
47326         * lib/math.in.h (atanf): New declaration.
47327         * lib/atanf.c: New file.
47328         * m4/atanf.m4: New file.
47329         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
47330         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
47331         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
47332         * modules/atanf: New file.
47333         * tests/test-math-c++.cc: Check the declaration of atanf.
47334         * doc/posix-functions/atanf.texi: Mention the new module.
47336         atan: Use a .m4 file.
47337         * m4/atan.m4: New file.
47338         * modules/atan (Files): Add it.
47339         (configure.ac): Just invoke gl_FUNC_ATAN.
47341 2011-10-08  Bruno Haible  <bruno@clisp.org>
47343         Tests for module 'acosf'.
47344         * modules/acosf-tests: New file.
47345         * tests/test-acosf.c: New file.
47347         New module 'acosf'.
47348         * lib/math.in.h (acosf): New declaration.
47349         * lib/acosf.c: New file.
47350         * m4/acosf.m4: New file.
47351         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
47352         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
47353         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
47354         * modules/acosf: New file.
47355         * tests/test-math-c++.cc: Check the declaration of acosf.
47356         * doc/posix-functions/acosf.texi: Mention the new module.
47358         acos: Use a .m4 file.
47359         * m4/acos.m4: New file.
47360         * modules/acos (Files): Add it.
47361         (configure.ac): Just invoke gl_FUNC_ACOS.
47363 2011-10-08  Bruno Haible  <bruno@clisp.org>
47365         Tests for module 'asinf'.
47366         * modules/asinf-tests: New file.
47367         * tests/test-asinf.c: New file.
47369         New module 'asinf'.
47370         * lib/math.in.h (asinf): New declaration.
47371         * lib/asinf.c: New file.
47372         * m4/asinf.m4: New file.
47373         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
47374         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
47375         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
47376         * modules/asinf: New file.
47377         * tests/test-math-c++.cc: Check the declaration of asinf.
47378         * doc/posix-functions/asinf.texi: Mention the new module.
47380         asin: Use a .m4 file.
47381         * m4/asin.m4: New file.
47382         * modules/asin (Files): Add it.
47383         (configure.ac): Just invoke gl_FUNC_ASIN.
47385 2011-10-08  Bruno Haible  <bruno@clisp.org>
47387         Tests for module 'tanf'.
47388         * modules/tanf-tests: New file.
47389         * tests/test-tanf.c: New file.
47391         New module 'tanf'.
47392         * lib/math.in.h (tanf): New declaration.
47393         * lib/tanf.c: New file.
47394         * m4/tanf.m4: New file.
47395         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
47396         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
47397         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
47398         * modules/tanf: New file.
47399         * tests/test-math-c++.cc: Check the declaration of tanf.
47400         * doc/posix-functions/tanf.texi: Mention the new module.
47402         tan: Use a .m4 file.
47403         * m4/tan.m4: New file.
47404         * modules/tan (Files): Add it.
47405         (configure.ac): Just invoke gl_FUNC_TAN.
47407 2011-10-08  Bruno Haible  <bruno@clisp.org>
47409         Tests for module 'cosf'.
47410         * modules/cosf-tests: New file.
47411         * tests/test-cosf.c: New file.
47413         New module 'cosf'.
47414         * lib/math.in.h (cosf): New declaration.
47415         * lib/cosf.c: New file.
47416         * m4/cosf.m4: New file.
47417         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
47418         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
47419         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
47420         * modules/cosf: New file.
47421         * tests/test-math-c++.cc: Check the declaration of cosf.
47422         * doc/posix-functions/cosf.texi: Mention the new module.
47424         cos: Use a .m4 file.
47425         * m4/cos.m4: New file.
47426         * modules/cos (Files): Add it.
47427         (configure.ac): Just invoke gl_FUNC_COS.
47429 2011-10-08  Bruno Haible  <bruno@clisp.org>
47431         Tests for module 'sinf'.
47432         * modules/sinf-tests: New file.
47433         * tests/test-sinf.c: New file.
47435         New module 'sinf'.
47436         * lib/math.in.h (sinf): New declaration.
47437         * lib/sinf.c: New file.
47438         * m4/sinf.m4: New file.
47439         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
47440         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
47441         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
47442         * modules/sinf: New file.
47443         * tests/test-math-c++.cc: Check the declaration of sinf.
47444         * doc/posix-functions/sinf.texi: Mention the new module.
47446         sin: Use a .m4 file.
47447         * m4/sin.m4: New file.
47448         * modules/sin (Files): Add it.
47449         (configure.ac): Just invoke gl_FUNC_SIN.
47451 2011-10-08  Bruno Haible  <bruno@clisp.org>
47453         Tests for module 'powf'.
47454         * modules/powf-tests: New file.
47455         * tests/test-powf.c: New file.
47457         New module 'powf'.
47458         * lib/math.in.h (powf): New declaration.
47459         * lib/powf.c: New file.
47460         * m4/powf.m4: New file.
47461         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
47462         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
47463         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
47464         * modules/powf: New file.
47465         * tests/test-math-c++.cc: Check the declaration of powf.
47466         * doc/posix-functions/powf.texi: Mention the new module.
47468         pow: Use a .m4 file.
47469         * m4/pow.m4: New file.
47470         * modules/pow (Files): Add it.
47471         (configure.ac): Just invoke gl_FUNC_POW.
47473 2011-10-08  Bruno Haible  <bruno@clisp.org>
47475         Tests for module 'log10f'.
47476         * modules/log10f-tests: New file.
47477         * tests/test-log10f.c: New file.
47479         New module 'log10f'.
47480         * lib/math.in.h (log10f): New declaration.
47481         * lib/log10f.c: New file.
47482         * m4/log10f.m4: New file.
47483         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
47484         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
47485         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
47486         * modules/log10f: New file.
47487         * tests/test-math-c++.cc: Check the declaration of log10f.
47488         * doc/posix-functions/log10f.texi: Mention the new module.
47490         log10: Use a .m4 file.
47491         * m4/log10.m4: New file.
47492         * modules/log10 (Files): Add it.
47493         (configure.ac): Just invoke gl_FUNC_LOG10.
47495 2011-10-08  Bruno Haible  <bruno@clisp.org>
47497         Tests for module 'logf'.
47498         * modules/logf-tests: New file.
47499         * tests/test-logf.c: New file.
47501         New module 'logf'.
47502         * lib/math.in.h (logf): New declaration.
47503         * lib/logf.c: New file.
47504         * m4/logf.m4: New file.
47505         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
47506         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
47507         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
47508         * modules/logf: New file.
47509         * tests/test-math-c++.cc: Check the declaration of logf.
47510         * doc/posix-functions/logf.texi: Mention the new module.
47512         log: Use a .m4 file.
47513         * m4/log.m4: New file.
47514         * modules/log (Files): Add it.
47515         (configure.ac): Just invoke gl_FUNC_LOG.
47517 2011-10-08  Bruno Haible  <bruno@clisp.org>
47519         Tests for module 'expf'.
47520         * modules/expf-tests: New file.
47521         * tests/test-expf.c: New file.
47523         New module 'expf'.
47524         * lib/math.in.h (expf): New declaration.
47525         * lib/expf.c: New file.
47526         * m4/expf.m4: New file.
47527         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
47528         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
47529         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
47530         * modules/expf: New file.
47531         * tests/test-math-c++.cc: Check the declaration of expf.
47532         * doc/posix-functions/expf.texi: Mention the new module.
47534         exp: Use a .m4 file.
47535         * m4/exp.m4: New file.
47536         * modules/exp (Files): Add it.
47537         (configure.ac): Just invoke gl_FUNC_EXP.
47539 2011-10-08  Bruno Haible  <bruno@clisp.org>
47541         Tests for module 'sqrtf'.
47542         * modules/sqrtf-tests: New file.
47543         * tests/test-sqrtf.c: New file.
47545         New module 'sqrtf'.
47546         * lib/math.in.h (sqrtf): New declaration.
47547         * lib/sqrtf.c: New file.
47548         * m4/sqrtf.m4: New file.
47549         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
47550         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
47551         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
47552         * modules/sqrtf: New file.
47553         * tests/test-math-c++.cc: Check the declaration of sqrtf.
47554         * doc/posix-functions/sqrtf.texi: Mention the new module.
47556 2011-10-08  Bruno Haible  <bruno@clisp.org>
47558         Tests: Avoid link failures w.r.t. libintl.
47559         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
47560         $(LIBINTL).
47561         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
47562         $(LIBINTL).
47563         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
47564         against $(LIBINTL).
47565         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
47566         $(LIBINTL).
47567         * modules/openat-tests (Makefile.am): Link test-fchmodat against
47568         $(LIBINTL).
47569         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
47571 2011-10-08  Bruno Haible  <bruno@clisp.org>
47573         pow tests: Defeat compiler optimizations.
47574         * tests/test-pow.c (main): Assign arguments to x and y before use.
47576 2011-10-08  Bruno Haible  <bruno@clisp.org>
47578         gnulib-tool: Improve last commit.
47579         * gnulib-tool (func_modules_transitive_closure): Simplify code.
47580         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
47581         ignore dependencies that are not among the modules list.
47583 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
47585         gnulib-tool: don't follow dependencies to avoided modules
47586         This fixes a bug that is related to the previous one.
47587         * gnulib-tool (func_modules_transitive_closure)
47588         (func_emit_autoconf_snippets):
47589         Check whether a dependency is acceptable before using it.
47590         (--extract-dependencies): Report an error if --avoid is also used,
47591         since this combination of options is not yet supported.
47593         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
47594         Problem reported by Peter Dyballa in
47595         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
47596         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
47597         when echoing "$condition".
47599 2011-10-07  Bruno Haible  <bruno@clisp.org>
47601         Fix documentation about math functions on MacOS X.
47602         * doc/posix-functions/exp2.texi: Don't say the function is missing on
47603         MacOS X 10.5.
47604         * doc/posix-functions/fdim.texi: Likewise.
47605         * doc/posix-functions/feclearexcept.texi: Likewise.
47606         * doc/posix-functions/fegetenv.texi: Likewise.
47607         * doc/posix-functions/fegetround.texi: Likewise.
47608         * doc/posix-functions/feholdexcept.texi: Likewise.
47609         * doc/posix-functions/feraiseexcept.texi: Likewise.
47610         * doc/posix-functions/fesetenv.texi: Likewise.
47611         * doc/posix-functions/fesetround.texi: Likewise.
47612         * doc/posix-functions/fetestexcept.texi: Likewise.
47613         * doc/posix-functions/feupdateenv.texi: Likewise.
47614         * doc/posix-functions/fmax.texi: Likewise.
47615         * doc/posix-functions/fmin.texi: Likewise.
47616         * doc/posix-functions/log2.texi: Likewise.
47617         * doc/posix-functions/modff.texi: Likewise.
47618         * doc/posix-functions/nan.texi: Likewise.
47619         * doc/posix-functions/nanf.texi: Likewise.
47620         * doc/posix-functions/nextafterf.texi: Likewise.
47621         * doc/posix-functions/remquo.texi: Likewise.
47623 2011-10-07  Bruno Haible  <bruno@clisp.org>
47625         modff: Drop assumption about library that defines modff.
47626         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
47627         AC_CHECK_FUNCS.
47628         * modules/modff (Files): Add m4/mathfunc.m4.
47630 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
47632         raise tests: Avoid a GCC warning.
47633         * tests/test-raise.c (handler): Use _Noreturn.
47635 2011-10-07  Bruno Haible  <bruno@clisp.org>
47637         Tests for module 'ldexpf'.
47638         * modules/ldexpf-tests: New file.
47639         * tests/test-ldexpf.c: New file.
47641         New module 'ldexpf'.
47642         * lib/math.in.h (ldexpf): New declaration.
47643         * lib/ldexpf.c: New file.
47644         * m4/ldexpf.m4: New file.
47645         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
47646         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
47647         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
47648         * modules/ldexpf: New file.
47649         * tests/test-math-c++.cc: Check the declaration of ldexpf.
47650         * doc/posix-functions/ldexpf.texi: Mention the new module.
47652 2011-10-06  Bruno Haible  <bruno@clisp.org>
47654         frexpf: Work around problems on IRIX and mingw.
47655         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
47656         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
47657         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
47658         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
47659         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
47660         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
47661         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
47663 2011-10-06  Bruno Haible  <bruno@clisp.org>
47665         fabsf: Drop assumption about library that defines fabsf.
47666         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
47667         AC_CHECK_FUNCS.
47668         * modules/fabsf (Files): Add m4/mathfunc.m4.
47670 2011-10-06  Bruno Haible  <bruno@clisp.org>
47672         frexpf: Drop assumption about library that defines frexpf.
47673         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
47674         'int *', 'float *', 'long double *', 'float', 'long double'.
47675         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
47676         AC_CHECK_FUNCS.
47677         * modules/frexpf (Files): Add m4/mathfunc.m4.
47679         Tests for module 'frexpf'.
47680         * modules/frexpf-tests: New file.
47681         * tests/test-frexpf.c: New file.
47683         New module 'frexpf'.
47684         * lib/math.in.h (frexpf): New declaration.
47685         * lib/frexpf.c: New file.
47686         * m4/frexpf.m4: New file.
47687         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
47688         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
47689         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
47690         * modules/frexpf: New file.
47691         * tests/test-math-c++.cc: Check the declaration of frexpf.
47692         * doc/posix-functions/frexpf.texi: Mention the new module.
47694 2011-10-06  Bruno Haible  <bruno@clisp.org>
47696         math: Sort function declarations of math.in.h.
47697         * lib/math.in.h (frexp, logb): Move declarations.
47699 2011-10-05  Bruno Haible  <bruno@clisp.org>
47701         Tests for module 'modff'.
47702         * modules/modff-tests: New file.
47703         * tests/test-modff.c: New file.
47705         New module 'modff'.
47706         * lib/math.in.h (modff): New declaration.
47707         * lib/modff.c: New file.
47708         * m4/modff.m4: New file.
47709         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
47710         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
47711         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
47712         * modules/modff: New file.
47713         * tests/test-math-c++.cc: Check the declaration of modff.
47714         * doc/posix-functions/modff.texi: Mention the new module.
47716         modf tests: Make test sharper.
47717         * tests/test-modf.c (main): Strengthen upper bound.
47719         modf: Use a .m4 file.
47720         * m4/modf.m4: New file.
47721         * modules/modf (Files): Add it.
47722         (configure.ac): Just invoke gl_FUNC_MODF.
47724 2011-10-05  Bruno Haible  <bruno@clisp.org>
47726         Tests for module 'fmodf'.
47727         * modules/fmodf-tests: New file.
47728         * tests/test-fmodf.c: New file.
47730         New module 'fmodf'.
47731         * lib/math.in.h (fmodf): New declaration.
47732         * lib/fmodf.c: New file.
47733         * m4/fmodf.m4: New file.
47734         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
47735         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
47736         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
47737         * modules/fmodf: New file.
47738         * tests/test-math-c++.cc: Check the declaration of fmodf.
47739         * doc/posix-functions/fmodf.texi: Mention the new module.
47741         fmod: Use a .m4 file.
47742         * m4/fmod.m4: New file.
47743         * modules/fmod (Files): Add it.
47744         (configure.ac): Just invoke gl_FUNC_FMOD.
47746 2011-10-05  Bruno Haible  <bruno@clisp.org>
47748         Tests for module 'fabsf'.
47749         * modules/fabsf-tests: New file.
47750         * tests/test-fabsf.c: New file.
47752         New module 'fabsf'.
47753         * lib/math.in.h (fabsf): New declaration.
47754         * lib/fabsf.c: New file.
47755         * m4/fabsf.m4: New file.
47756         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
47757         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
47758         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
47759         * modules/fabsf: New file.
47760         * tests/test-math-c++.cc: Check the declaration of fabsf.
47761         * doc/posix-functions/fabsf.texi: Mention the new module.
47763         fabs: Use a .m4 file.
47764         * m4/fabs.m4: New file.
47765         * modules/fabs (Files): Add it.
47766         (configure.ac): Just invoke gl_FUNC_FABS.
47768 2011-10-05  Jim Meyering  <meyering@redhat.com>
47770         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
47771         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
47772         ls -lL regression introduced in coreutils-8.12, it does so at the
47773         cost of an additional stat call in the common case.  Besides, now
47774         that the kernel change that prompted commit 95f7c57f has been reverted
47775         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
47776         we have no use for commit 95f7c57f, "file-has-acl: use
47777         acl_extended_file_nofollow if available".
47779 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
47781         file-has-acl: revert unintended change in behavior of ls -L
47782         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
47783         derived from...
47784         (file_has_acl): ...code here.  Call it.
47785         This problem was introduced with 2011-07-22 commit 95f7c57f,
47786         "file-has-acl: use acl_extended_file_nofollow if available".
47787         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
47789 2011-10-03  Bruno Haible  <bruno@clisp.org>
47791         poll: Avoid link errors on MSVC.
47792         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
47793         * modules/poll (Depends-on): Add sockets.
47794         (Link): New section.
47795         * NEWS: Mention the change.
47796         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
47797         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
47798         $(LIB_POLL) instead of $(LIBSOCKET).
47800 2011-10-03  Bruno Haible  <bruno@clisp.org>
47802         sys_select tests: Fix link error on MSVC 9.
47803         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
47804         with $(LIB_SELECT) instead of $(LIBSOCKET).
47806 2011-10-03  Bruno Haible  <bruno@clisp.org>
47808         sys_select: Fix compilation error on mingw.
47809         * lib/sys_select.in.h: On native Windows, include <io.h>.
47811 2011-10-03  Bruno Haible  <bruno@clisp.org>
47813         wmemset: Support for MSVC.
47814         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
47815         whether wmemset() exists.
47817 2011-10-03  Bruno Haible  <bruno@clisp.org>
47819         wmemmove: Support for MSVC.
47820         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
47821         whether wmemmove() exists.
47823 2011-10-03  Bruno Haible  <bruno@clisp.org>
47825         wmemcpy: Support for MSVC.
47826         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
47827         whether wmemcpy() exists.
47829 2011-10-03  Bruno Haible  <bruno@clisp.org>
47831         wmemcmp: Support for MSVC.
47832         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
47833         whether wmemcmp() exists.
47835 2011-10-03  Bruno Haible  <bruno@clisp.org>
47837         wmemchr: Support for MSVC.
47838         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
47839         whether wmemchr() exists.
47841 2011-10-03  Bruno Haible  <bruno@clisp.org>
47843         glthread/*, strsignal: Support for MSVC.
47844         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
47845         including <winsock.h> on MSVC 9.
47846         * lib/glthread/lock.h: Likewise.
47847         * lib/glthread/thread.h: Likewise.
47848         * lib/glthread/tls.h: Likewise.
47849         * lib/glthread/yield.h: Likewise.
47850         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
47851         if HAVE_UNISTD_H is false.
47852         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
47854 2011-10-03  Bruno Haible  <bruno@clisp.org>
47856         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
47857         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
47858         Set to 100000.
47860 2011-10-03  Bruno Haible  <bruno@clisp.org>
47862         acl: Fix specification.
47863         * lib/file-has-acl.c (file_has_acl): Fix specification.
47865 2011-10-03  Bruno Haible  <bruno@clisp.org>
47867         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
47868         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
47869         (compute_curr_prefix, shared_library_fullname,
47870         find_shared_library_fullname, get_shared_library_fullname, relocate):
47871         Use it together with PIC && INSTALLDIR.
47872         Reported by <jojelino@gmail.com>
47873         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
47875 2011-10-01  Jim Meyering  <meyering@redhat.com>
47877         maint.mk: adjust a release-related rule not to require use of gzip
47878         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
47879         Instead, check each file in $(DIST_ARCHIVES).  This is better for
47880         projects that build only .tar.xz files.  Also fix an erroneous test.
47882         test-linkat: don't leave behind a temporary file
47883         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
47884         Otherwise, coreutils' "make distcheck" would fail with this:
47885           Only in /c/cu/tests/torture/coreutils/test/\
47886             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
47887           make[2]: *** [my-distcheck] Error 1
47889         float, math: add omitted file
47890         * lib/itold.c: Add file, required for yesterday's float change.
47892 2011-10-01  Bruno Haible  <bruno@clisp.org>
47894         isinf: Fix for OpenBSD/x86.
47895         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
47896         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
47897         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
47899 2011-10-01  Bruno Haible  <bruno@clisp.org>
47901         isfinite: Fix syntax error in configure test.
47902         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
47904         isfinite: Fix typo.
47905         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
47906         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
47908 2011-10-01  Bruno Haible  <bruno@clisp.org>
47910         nonblocking tests: Fix test failure on Linux/IA-64.
47911         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
47912         Set to 270000.
47914 2011-10-01  Bruno Haible  <bruno@clisp.org>
47916         mkfifoat tests: Fix a test failure on mingw.
47917         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
47918         with error ENOSYS.
47920 2011-09-30  Bruno Haible  <bruno@clisp.org>
47922         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
47923         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
47924         'long double'. Set REPLACE_ITOLD.
47925         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
47926         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
47927         * lib/itold.c: New file.
47928         * modules/float (Files): Add lib/itold.c.
47929         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
47930         (Makefile.am): Substitute REPLACE_ITOLD.
47931         * modules/math (Depends-on): Add float.
47932         (Makefile.am): Substitute REPLACE_ITOLD.
47933         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
47934         * doc/posix-headers/math.texi: Likewise.
47935         * doc/posix-functions/logl.texi: Likewise.
47937 2011-09-30  Bruno Haible  <bruno@clisp.org>
47939         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
47940         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
47941         Set to 140000.
47943 2011-09-30  Bruno Haible  <bruno@clisp.org>
47945         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
47946         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
47947         invocation, say "right after AC_PROG_CC_STDC", not "right after
47948         AC_PROG_CC".
47949         Reported by Gary V. Vaughan <gary@gnu.org>.
47951 2011-09-30  Bruno Haible  <bruno@clisp.org>
47953         Centralize C99 requirement.
47954         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
47955         * modules/stdarg (configure.ac-early): Invoke it instead of
47956         AC_PROG_CC_STDC.
47957         Reported by Gary V. Vaughan and Paul Eggert.
47959 2011-09-29  Bruno Haible  <bruno@clisp.org>
47961         float: Fix LDBL_MAX value on Linux/PowerPC.
47962         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
47963         on Linux/PowerPC.
47964         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
47965         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
47966         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
47967         platform.
47968         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
47970 2011-09-29  Bruno Haible  <bruno@clisp.org>
47972         doc: Improve doc about gl_EARLY.
47973         * doc/gnulib-tool.texi (Initial import): Mention where to place an
47974         AC_PROG_CC_STDC invocation.
47975         Reported by Gary V. Vaughan <gary@gnu.org>.
47977 2011-09-28  Bruno Haible  <bruno@clisp.org>
47979         fgetc, fputc, fread, fwrite tests: Fix link error.
47980         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
47981         on non-MSVC platforms.
47982         * tests/test-fputc.c (main): Likewise.
47983         * tests/test-fread.c (main): Likewise.
47984         * tests/test-fwrite.c (main): Likewise.
47985         Reported by Jim Meyering.
47987 2011-09-27  Bruno Haible  <bruno@clisp.org>
47989         fputc, fwrite tests: Avoid test failure on MSVC.
47990         * tests/test-fgetc.c: Include msvc-inval.h.
47991         (main): Invoke gl_msvc_inval_ensure_handler.
47992         * tests/test-fputc.c: Include msvc-inval.h.
47993         (main): Invoke gl_msvc_inval_ensure_handler.
47994         * tests/test-fread.c: Include msvc-inval.h.
47995         (main): Invoke gl_msvc_inval_ensure_handler.
47996         * tests/test-fwrite.c: Include msvc-inval.h.
47997         (main): Invoke gl_msvc_inval_ensure_handler.
47998         * modules/fgetc-tests (Depends-on): Add msvc-inval.
47999         * modules/fputc-tests (Depends-on): Likewise.
48000         * modules/fread-tests (Depends-on): Likewise.
48001         * modules/fwrite-tests (Depends-on): Likewise.
48003 2011-09-27  Bruno Haible  <bruno@clisp.org>
48005         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
48006         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
48007         (raise): Remove older, duplicated declaration.
48008         (_gl_raise_SIGPIPE): New declaration.
48009         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
48010         (rpl_raise): Remove function.
48011         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
48012         a gnulib-defined SIGPIPE here.
48013         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
48014         'sigprocmask' has detected missing signal-blocking and the module
48015         'sigpipe' is enabled.
48016         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
48018 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
48020         base64-tests: avoid memory leak
48021         * tests/test-base64.c (main): Plug memory leak.
48023         base32: new module
48024         * modules/base32: New module.
48025         * lib/base32.c: New file.
48026         * lib/base32.h: Likewise.
48027         * m4/base32.m4: Likewise.
48028         * modules/base32-tests: New test.
48029         * tests/test-base32.c: Likewise.
48030         * MODULES.html.sh (Misc): Mention it.
48032 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
48034         gnulib: use more-standard license notice wording
48035         * gnulib-tool (func_emit_copyright_notice): When emitting a
48036         license notice into a file, use the standard wording as suggested
48037         by the current information for GNU maintainers, except say "file"
48038         rather than "program".  The new wording gives a license version
48039         number, which addresses an issue raised by Glenn Morris in
48040         <http://lists.gnu.org/r/bug-gnulib/2011-09/msg00397.html>.
48041         * m4/onceonly.m4: Use that same wording here, too.
48043         dup2: minor simplification
48044         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
48045         as lib/dup2.c no longer uses 'inline'.
48047 2011-09-25  Bruno Haible  <bruno@clisp.org>
48049         strings: Fix compilation error on MSVC.
48050         * lib/strings.in.h: Include <stddef.h> for size_t.
48052 2011-09-25  Bruno Haible  <bruno@clisp.org>
48054         fflush et al.: Document limitation on MSVC.
48055         * doc/posix-functions/fflush.texi: Document possible crash in handling
48056         mode other than DEFAULT_HANDLING.
48057         * doc/posix-functions/fgetc.texi: Likewise.
48058         * doc/posix-functions/fputc.texi: Likewise.
48059         * doc/posix-functions/fread.texi: Likewise.
48060         * doc/posix-functions/fwrite.texi: Likewise.
48062 2011-09-25  Bruno Haible  <bruno@clisp.org>
48064         msvc-inval: Allow three invalid parameter handling modes.
48065         * lib/msvc-inval.h: Don't include <stdlib.h> here.
48066         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
48067         macros.
48068         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
48069         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
48070         SANE_LIBRARY_HANDLING as a no-op.
48071         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
48072         <stdlib.h>.
48073         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
48075 2011-09-25  Bruno Haible  <bruno@clisp.org>
48077         msvc-inval: Make handler multithread-safe.
48078         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
48079         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
48080         declarations.
48081         (gl_msvc_inval_current): New declaration.
48082         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
48083         Operate on the structure returned by gl_msvc_inval_current().
48084         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
48085         Remove varaiables.
48086         (tls_index, tls_initialized): New variables.
48087         (not_per_thread): New variable.
48088         (gl_msvc_inval_current): New function.
48089         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
48090         returned by gl_msvc_inval_current().
48092 2011-09-25  Bruno Haible  <bruno@clisp.org>
48094         msvc-inval: Install handler globally.
48095         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
48096         !_MSC_VER.
48097         (gl_msvc_invalid_parameter_handler): Remove declaration.
48098         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
48099         declarations.
48100         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
48101         Install the handler globally, don't uninstall it.
48102         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
48103         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
48104         currently valid, call RaiseException instead.
48105         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
48106         for !_MSC_VER.
48108 2011-09-25  Bruno Haible  <bruno@clisp.org>
48110         strerror_r-posix: Fix for MSVC 9.
48111         * lib/strerror_r.c (local_snprintf): New function.
48112         (snprintf): Define to local_snprintf, not to _snprintf.
48114 2011-09-25  Bruno Haible  <bruno@clisp.org>
48116         ftruncate: Support for MSVC 9.
48117         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
48118         (chsize_nothrow): New function.
48119         (chsize): Redefine as a macro.
48120         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
48121         * modules/ftruncate (Depends-on): Add msvc-inval.
48123 2011-09-25  Bruno Haible  <bruno@clisp.org>
48125         New module 'fstat'.
48126         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
48127         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
48128         * lib/fchdir.c (rpl_fstat): Remove function.
48129         * m4/fstat.m4: New file.
48130         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
48131         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
48132         declared.
48133         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
48134         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
48135         * modules/fstat: New file.
48136         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
48137         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
48138         is set.
48139         * doc/posix-functions/fstat.texi: Mention the new module and the
48140         problem on MSVC.
48141         * NEWS: Mention the change.
48142         * modules/acl (Depends-on): Add fstat.
48143         * modules/chdir-safer (Depends-on): Likewise.
48144         * modules/chown (Depends-on): Likewise.
48145         * modules/copy-file (Depends-on): Likewise.
48146         * modules/fchdir (Depends-on): Likewise.
48147         * modules/fdopendir (Depends-on): Likewise.
48148         * modules/fopen (Depends-on): Likewise.
48149         * modules/fts (Depends-on): Likewise.
48150         * modules/getcwd (Depends-on): Likewise.
48151         * modules/isapipe (Depends-on): Likewise.
48152         * modules/linkat (Depends-on): Likewise.
48153         * modules/lseek (Depends-on): Likewise.
48154         * modules/mkdir-p (Depends-on): Likewise.
48155         * modules/open (Depends-on): Likewise.
48156         * modules/openat (Depends-on): Likewise.
48157         * modules/read-file (Depends-on): Likewise.
48158         * modules/renameat (Depends-on): Likewise.
48159         * modules/utimens (Depends-on): Likewise.
48161 2011-09-25  Bruno Haible  <bruno@clisp.org>
48163         linkat: Fix compilation on MSVC 9.
48164         * lib/linkat.c: Don't include <stdint.h>.
48166 2011-09-25  Bruno Haible  <bruno@clisp.org>
48168         fclose: Support for MSVC 9.
48169         * lib/fclose.c: Include msvc-inval.h.
48170         (fclose_nothrow): New function.
48171         (rpl_fclose): Use it.
48172         * modules/fclose (Depends-on): Add msvc-inval.
48173         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
48175 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
48177         dup2: minor simplifications
48178         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
48179         that it's a performance win.
48180         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
48181         ! defined __CYGWIN__)" to "ifdef F_GETFL".
48183 2011-09-24  Jim Meyering  <meyering@redhat.com>
48185         test-futimens: avoid a warning from gcc -Wshadow
48186         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
48187         to avoid a shadowing warning.
48189 2011-09-24  Bruno Haible  <bruno@clisp.org>
48191         fdopen: Support for MSVC 9.
48192         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
48193         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
48194         * lib/fdopen.c: Include msvc-inval.h.
48195         (fdopen_nothrow): New function.
48196         (rpl_fdopen): Use it.
48197         * modules/fdopen (Depends-on): Add msvc-inval.
48198         * modules/fclose-tests (Depends-on): Add fdopen.
48199         * modules/fflush-tests (Depends-on): Likewise.
48200         * modules/fgetc-tests (Depends-on): Likewise.
48201         * modules/fputc-tests (Depends-on): Likewise.
48202         * modules/fread-tests (Depends-on): Likewise.
48203         * modules/freopen-tests (Depends-on): Likewise.
48204         * modules/fseeko-tests (Depends-on): Likewise.
48205         * modules/ftello-tests (Depends-on): Likewise.
48206         * modules/fwrite-tests  (Depends-on): Likewise.
48207         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
48209 2011-09-24  Bruno Haible  <bruno@clisp.org>
48211         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
48212         * modules/fgetc-tests (Depends-on): Add unistd.
48213         * modules/fputc-tests (Depends-on): Likewise.
48214         * modules/fread-tests (Depends-on): Likewise.
48215         * modules/fwrite-tests (Depends-on): Likewise.
48217 2011-09-24  Bruno Haible  <bruno@clisp.org>
48219         dup: Simplify autoconf test.
48220         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
48221         on gl_MSVC_INVAL's result.
48223 2011-09-24  Bruno Haible  <bruno@clisp.org>
48225         Tests for function fwrite().
48226         * modules/fwrite-tests: New file.
48227         * tests/test-fwrite.c: New file.
48228         * modules/stdio-tests (Depends-on): Add fwrite-tests.
48230         Tests for function fread().
48231         * modules/fread-tests: New file.
48232         * tests/test-fread.c: New file.
48233         * modules/stdio-tests (Depends-on): Add fread-tests.
48235         Activate fputc tests.
48236         * modules/stdio-tests (Depends-on): Add fputc-tests.
48238         Enhance fgetc, fputc tests.
48239         * tests/test-fgetc.c (main): Also test the stream's error indicator.
48240         * tests/test-fputc.c (main): Likewise.
48242 2011-09-24  Bruno Haible  <bruno@clisp.org>
48244         write: Support for MSVC 9.
48245         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
48246         is not 1.
48247         * lib/write.c (write_nothrow): New function.
48248         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
48249         not 1. Use write_nothrow.
48250         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
48251         invalid parameter handler.
48252         (gl_PREREQ_WRITE): New macro.
48253         * modules/write (Depends-on): Add msvc-inval.
48254         (configure.ac): Invoke gl_PREREQ_WRITE.
48255         * doc/posix-functions/write.texi: Mention the problem on MSVC.
48257 2011-09-24  Bruno Haible  <bruno@clisp.org>
48259         read: Fix last commit.
48260         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
48262 2011-09-24  Bruno Haible  <bruno@clisp.org>
48264         dup2: Fix last commit.
48265         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
48266         (rpl_dup2): Disable fcntl workaround on native Windows.
48268         sigprocmask: Make code safer.
48269         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
48270         section that changes macro definitions for this compilation unit.
48272 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
48274         dup2: clarify by coalescing Windows-specific material
48275         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
48276         "msvc-nothrow.h"' to the Windows-specific section, so that the
48277         Emacs source need not contain these include files.
48278         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
48279         Windows-specific fixes into this function rather than just the
48280         nothrow fix, as this shortens and clarifies the code.  Always
48281         define as a function, as that's a bit cleaner than having it be
48282         sometimes a function and sometimes a macro.
48283         (rpl_dup2): Move the Windows-specific stuff out of here and into
48284         ms_windows_dup2.  Don't protect the Haiku-related fix with
48285         "#if !defined __linux__", as the same code also works around
48286         a Linux kernel bug, and it doesn't add any system calls on any
48287         platform.  Add comment about FreeBSD 6.1.
48289         sigprocmask: move #include directive
48290         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
48291         Windows-specific section, so that the Emacs source need not
48292         contain msvc-inval.h.
48294 2011-09-23  Bruno Haible  <bruno@clisp.org>
48296         read: Support for MSVC 9.
48297         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
48298         is not 1.
48299         * lib/read.c (read_nothrow): New function.
48300         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
48301         read_nothrow.
48302         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
48303         invalid parameter handler.
48304         (gl_PREREQ_READ): New macro.
48305         * modules/read (Depends-on): Add msvc-inval.
48306         (configure.ac): Invoke gl_PREREQ_READ.
48307         * doc/posix-functions/read.texi: Mention the problem on MSVC.
48309 2011-09-23  Bruno Haible  <bruno@clisp.org>
48311         close: Support for MSVC 9.
48312         * lib/close.c: Include <errno.h>, msvc-inval.h.
48313         (close_nothrow): New function.
48314         (rpl_close): Use it.
48315         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
48316         invalid parameter handler.
48317         * modules/close (Depends-on): Add msvc-inval.
48318         * modules/dup2-tests (Depends-on): Add close.
48319         * modules/dup3-tests (Depends-on): Likewise.
48320         * modules/fcntl-tests (Depends-on): Likewise.
48321         * modules/spawn-pipe-tests (Depends-on): Likewise.
48322         * modules/unistd-safer-tests (Depends-on): Likewise.
48323         * doc/posix-functions/close.texi: Mention the problem on MSVC.
48325 2011-09-23  Bruno Haible  <bruno@clisp.org>
48327         New module 'dup'.
48328         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
48329         Allow replacement.
48330         * lib/dup.c: New file.
48331         * lib/fchdir.c (rpl_dup): Remove function.
48332         * m4/dup.m4: New file.
48333         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
48334         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
48335         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
48336         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
48337         * modules/dup: New file.
48338         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
48339         'dup' module is in use.
48340         * modules/fdopendir (Depends-on): Add dup.
48341         * modules/fdutimensat-tests (Depends-on): Likewise.
48342         * modules/fts (Depends-on): Likewise.
48343         * modules/futimens-tests (Depends-on): Likewise.
48344         * modules/posix_spawnp-tests (Depends-on): Likewise.
48345         * modules/unistd-safer-tests (Depends-on): Likewise.
48346         * modules/utimens-tests (Depends-on): Likewise.
48347         * doc/posix-functions/dup.texi: Mention the new module and the problem
48348         on MSVC.
48350 2011-09-23  Bruno Haible  <bruno@clisp.org>
48352         getdtablesize: Support for MSVC 9.
48353         * lib/getdtablesize.c: Include msvc-inval.h.
48354         (_setmaxstdio_nothrow): New function.
48355         (_setmaxstdio): Redefine it.
48356         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
48357         * modules/getdtablesize (Depends-on): Add msvc-inval.
48358         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
48360 2011-09-23  Bruno Haible  <bruno@clisp.org>
48362         signal-h: Rename from signal.
48363         * modules/signal-h: Renamed from modules/signal.
48364         * modules/pthread_sigmask (Depends-on): Update.
48365         * modules/raise (Depends-on): Likewise.
48366         * modules/sigaction (Depends-on): Likewise.
48367         * modules/sigpipe (Depends-on): Likewise.
48368         * modules/sigprocmask (Depends-on): Likewise.
48369         * modules/sys_select (Depends-on): Likewise.
48370         * modules/signal-h-tests: Renamed from modules/signal-tests.
48371         (Files, Depends-on, Makefile.am): Update.
48372         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
48373         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
48374         (Files, Makefile.am): Update.
48375         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
48376         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
48377         * modules/signal: New placeholder file.
48378         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
48379         * doc/posix-headers/signal.texi: Update.
48380         * NEWS: Mention the change.
48382 2011-09-23  Bruno Haible  <bruno@clisp.org>
48384         sigprocmask: Avoid crashes through signal() on MSVC 9.
48385         * lib/sigprocmask.c: Include msvc-inval.h.
48386         (signal_nothrow): New function.
48387         (signal): Redefine it.
48388         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
48389         * modules/sigprocmask (Depends-on): Add msvc-inval.
48390         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
48392 2011-09-23  Bruno Haible  <bruno@clisp.org>
48394         Tests for module 'raise'.
48395         * modules/raise-tests: New file.
48396         * tests/test-raise.c: New file.
48398         raise: Support for MSVC.
48399         * lib/signal.in.h (raise): New declaration.
48400         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
48401         for native Windows platforms.
48402         * m4/raise.m4: New file.
48403         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
48404         HAVE_RAISE, REPLACE_RAISE.
48405         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
48406         REPLACE_RAISE.
48407         * modules/raise (Status, Notice): Remove fields.
48408         (Files): Add m4/raise.m4.
48409         (Depends-on): Add signal, msvc-inval.
48410         (configure.ac): Use the common idioms.
48411         (Maintainer): Add me.
48412         * tests/test-signal-c++.cc: Check the signature of raise.
48413         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
48415 2011-09-23  Bruno Haible  <bruno@clisp.org>
48417         pipe2: Fix compilation on pre-C99 compilers.
48418         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
48420 2011-09-23  Bruno Haible  <bruno@clisp.org>
48422         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
48423         * lib/msvc-nothrow.h: New file.
48424         * lib/msvc-nothrow.c: New file.
48425         * m4/msvc-nothrow.m4: New file.
48426         * modules/msvc-nothrow: New file.
48427         * lib/dup2.c: Include msvc-nothrow.h.
48428         (rpl_dup2): No need to protect _get_osfhandle call here.
48429         * lib/accept4.c: Include msvc-nothrow.h.
48430         * lib/error.c: Likewise.
48431         * lib/fcntl.c: Likewise.
48432         * lib/lseek.c: Likewise.
48433         * lib/nonblocking.c: Likewise.
48434         * lib/poll.c: Likewise.
48435         * lib/read.c: Likewise.
48436         * lib/select.c: Likewise.
48437         * lib/sockets.h: Likewise.
48438         * lib/sockets.c: Likewise.
48439         * lib/stdio-read.c: Likewise.
48440         * lib/stdio-write.c: Likewise.
48441         * lib/write.c: Likewise.
48442         * lib/w32sock.h: Likewise.
48443         * lib/w32spawn.h: Likewise.
48444         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
48445         * lib/fsync.c: Likewise.
48446         * lib/isapipe.c: Likewise.
48447         * modules/dup2 (Depends-on): Add msvc-nothrow.
48448         * modules/accept4 (Depends-on): Likewise.
48449         * modules/error (Depends-on): Likewise.
48450         * modules/fcntl (Depends-on): Likewise.
48451         * modules/lseek (Depends-on): Likewise.
48452         * modules/nonblocking (Depends-on): Likewise.
48453         * modules/poll (Depends-on): Likewise.
48454         * modules/read (Depends-on): Likewise.
48455         * modules/select (Depends-on): Likewise.
48456         * modules/sockets (Depends-on): Likewise.
48457         * modules/sigpipe (Depends-on): Likewise.
48458         * modules/write (Depends-on): Likewise.
48459         * modules/accept (Depends-on): Likewise.
48460         * modules/bind (Depends-on): Likewise.
48461         * modules/connect (Depends-on): Likewise.
48462         * modules/gethostname (Depends-on): Likewise.
48463         * modules/getpeername (Depends-on): Likewise.
48464         * modules/getsockname (Depends-on): Likewise.
48465         * modules/getsockopt (Depends-on): Likewise.
48466         * modules/ioctl (Depends-on): Likewise.
48467         * modules/listen (Depends-on): Likewise.
48468         * modules/recv (Depends-on): Likewise.
48469         * modules/recvfrom (Depends-on): Likewise.
48470         * modules/send (Depends-on): Likewise.
48471         * modules/sendto (Depends-on): Likewise.
48472         * modules/setsockopt (Depends-on): Likewise.
48473         * modules/shutdown (Depends-on): Likewise.
48474         * modules/socket (Depends-on): Likewise.
48475         * modules/execute (Depends-on): Likewise.
48476         * modules/spawn-pipe (Depends-on): Likewise.
48477         * modules/flock (Depends-on): Likewise.
48478         * modules/fsync (Depends-on): Likewise.
48479         * modules/isapipe (Depends-on): Likewise.
48480         * tests/test-cloexec.c: Include msvc-nothrow.h.
48481         * tests/test-dup-safer.c: Likewise.
48482         * tests/test-dup2.c: Likewise.
48483         * tests/test-dup3.c: Likewise.
48484         * tests/test-fcntl.c: Likewise.
48485         * tests/test-pipe.c: Likewise.
48486         * tests/test-pipe2.c: Likewise.
48487         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
48488         * modules/unistd-safer-tests (Depends-on): Likewise.
48489         * modules/dup2-tests (Depends-on): Likewise.
48490         * modules/dup3-tests (Depends-on): Likewise.
48491         * modules/fcntl-tests (Depends-on): Likewise.
48492         * modules/pipe-posix-tests (Depends-on): Likewise.
48493         * modules/pipe2-tests (Depends-on): Likewise.
48495 2011-09-23  Bruno Haible  <bruno@clisp.org>
48497         dup2: Make code more maintainable.
48498         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
48499         (rpl_dup2): Use it.
48500         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
48501         * modules/dup2 (configure.ac): Invoke it.
48502         Reported by Paul Eggert.
48504 2011-09-23  Bruno Haible  <bruno@clisp.org>
48506         msvc-inval: Fix compilation error.
48507         * lib/msvc-inval.h: Include <excpt.h>.
48509 2011-09-23  Bruno Haible  <bruno@clisp.org>
48511         mkdir: Tweak for MSVC 9.
48512         * lib/sys_stat.in.h: Update comments.
48513         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
48515         Tests for module 'chdir'.
48516         * modules/chdir-tests: New file.
48517         * tests/test-chdir.c: New file.
48519         New module 'chdir'.
48520         * modules/chdir: New file.
48521         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
48522         (chdir): New declaration.
48523         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
48524         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
48525         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
48526         * tests/test-unistd-c++.cc: Check signature of chdir.
48527         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
48528         * modules/chdir-long (Depends-on): Add chdir.
48529         * modules/fchdir (Depends-on): Likewise.
48530         * modules/rename (Depends-on): Likewise.
48531         * modules/savewd (Depends-on): Likewise.
48533         rmdir: Support for mingw, MSVC 9.
48534         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
48535         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
48537         getcwd: Tweak for MSVC 9.
48538         * lib/unistd.in.h: Update comments.
48539         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
48541 2011-09-22  Bruno Haible  <bruno@clisp.org>
48543         strerror_r-posix: Avoid a link error on MSVC.
48544         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
48545         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
48547 2011-09-22  Bruno Haible  <bruno@clisp.org>
48549         select: Avoid link errors on MSVC.
48550         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
48551         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
48552         * modules/pselect (Link): Likewise.
48553         * NEWS: Mention the change.
48554         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
48555         test-select-stdin against $(LIB_SELECT).
48556         * modules/pselect-tests (Makefile.am): Link test-pselect against
48557         $(LIB_SELECT).
48559 2011-09-22  Bruno Haible  <bruno@clisp.org>
48561         select: Avoid compilation error on MSVC.
48562         * lib/select.c: Don't include <stdbool.h>.
48564 2011-09-21  Bruno Haible  <bruno@clisp.org>
48566         Consolidate all uses of PATH_MAX in *.m4 files.
48567         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
48568         macros.
48569         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
48570         and gl_PATHMAX_SNIPPET.
48571         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
48572         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
48573         * modules/chdir-long (Files): Add m4/pathmax.m4.
48574         * modules/getcwd (Files): Likewise.
48576 2011-09-21  Bruno Haible  <bruno@clisp.org>
48578         ftruncate: Un-deprecate, concentrate on Win32 support.
48579         * modules/ftruncate (Status, Notice): Remove sections.
48580         (Depends-on): Add largefile.
48581         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
48582         non-mingw platforms.
48583         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
48584         include <io.h>.
48585         * modules/perror-tests (Depends-on): Add ftruncate.
48586         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
48587         'ftruncate' module.
48589 2011-09-21  Bruno Haible  <bruno@clisp.org>
48591         Add dependencies to new dirent related modules.
48592         * modules/opendir (Depends-on): Add closedir.
48593         * modules/getcwd (Depends-on): Add opendir, closedir.
48594         * modules/dirent-safer-tests (Depends-on): Likewise.
48595         * modules/fdopendir-tests (Depends-on): Likewise.
48596         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
48597         * modules/renameat-tests (Depends-on): Likewise.
48599 2011-09-21  Bruno Haible  <bruno@clisp.org>
48601         opendir: Avoid compilation error on mingw.
48602         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
48603         * modules/opendir (Depends-on): Add unistd.
48605 2011-09-21  Bruno Haible  <bruno@clisp.org>
48607         ftruncate tests: Avoid a test failure on mingw.
48608         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
48610 2011-09-21  Bruno Haible  <bruno@clisp.org>
48612         select tests: Avoid test failures on OSF/1 5.1 and mingw.
48613         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
48614         native Windows.
48616 2011-09-21  Bruno Haible  <bruno@clisp.org>
48618         New module 'fdopen'.
48619         * lib/stdio.in.h (fdopen): New declaration.
48620         * lib/fdopen.c: New file.
48621         * m4/fdopen.m4: New file.
48622         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
48623         REPLACE_FDOPEN.
48624         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
48625         REPLACE_FDOPEN.
48626         * modules/fdopen: New file.
48627         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
48628         * tests/test-stdio-c++.cc: Check signature of fdopen.
48629         * doc/posix-functions/fdopen.texi: Mention the new module.
48631 2011-09-21  Bruno Haible  <bruno@clisp.org>
48633         unlockpt tests: Avoid test failure on NetBSD 5.1.
48634         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
48635         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
48637 2011-09-21  Bruno Haible  <bruno@clisp.org>
48639         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
48640         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
48641         * tests/test-getlogin_r.c (main): Likewise.
48643 2011-09-20  Bruno Haible  <bruno@clisp.org>
48645         time tests: Don't require pid_t.
48646         * doc/posix-headers/time.texi: Revert last change.
48647         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
48648         * tests/test-time.c: Comment out the check for pid_t.
48650 2011-09-20  Bruno Haible  <bruno@clisp.org>
48652         fsync tests: Avoid a test failure on mingw.
48653         * tests/test-fsync.c (main): Allow a failure with EIO.
48655 2011-09-20  Bruno Haible  <bruno@clisp.org>
48657         euidaccess: Update comments.
48658         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
48660 2011-09-20  Bruno Haible  <bruno@clisp.org>
48662         Ensure EBADF returns for socket functions on mingw.
48663         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
48664         descriptor is invalid.
48665         * lib/bind.c (rpl_bind): Likewise.
48666         * lib/connect.c (rpl_connect): Likewise.
48667         * lib/getpeername.c (rpl_getpeername): Likewise.
48668         * lib/getsockname.c (rpl_getsockname): Likewise.
48669         * lib/getsockopt.c (rpl_getsockopt): Likewise.
48670         * lib/listen.c (rpl_listen): Likewise.
48671         * lib/recv.c (rpl_recv): Likewise.
48672         * lib/recvfrom.c (rpl_recvfrom): Likewise.
48673         * lib/send.c (rpl_send): Likewise.
48674         * lib/sendto.c (rpl_sendto): Likewise.
48675         * lib/setsockopt.c (rpl_setsockopt): Likewise.
48676         * lib/shutdown.c (rpl_shutdown): Likewise.
48678 2011-09-20  Bruno Haible  <bruno@clisp.org>
48680         select tests: EBADF tests.
48681         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
48682         test_bad_fd): New functions.
48683         (test_function): Invoke also test_bad_fd.
48685 2011-09-20  Bruno Haible  <bruno@clisp.org>
48687         Tests for module 'posix_spawn_file_actions_addopen.
48688         * modules/posix_spawn_file_actions_addopen-tests: New file.
48689         * tests/test-posix_spawn_file_actions_addopen.c: New file.
48691         Tests for module 'posix_spawn_file_actions_adddup2'.
48692         * modules/posix_spawn_file_actions_adddup2-tests: New file.
48693         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
48695         Tests for module 'posix_spawn_file_actions_addclose'.
48696         * modules/posix_spawn_file_actions_addclose-tests: New file.
48697         * tests/test-posix_spawn_file_actions_addclose.c: New file.
48699 2011-09-20  Bruno Haible  <bruno@clisp.org>
48701         Tests for module 'unlockpt'.
48702         * modules/unlockpt-tests: New file.
48703         * tests/test-unlockpt.c: New file.
48704         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
48706         Tests for module 'grantpt'.
48707         * modules/grantpt-tests: New file.
48708         * tests/test-grantpt.c: New file.
48709         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
48711 2011-09-20  Bruno Haible  <bruno@clisp.org>
48713         freopen tests: EBADF tests.
48714         * tests/test-freopen.c: Include errno.h, unistd.h.
48715         (main): Add tests for EBADF, commented out for the moment.
48717         fclose tests: EBADF tests.
48718         * tests/test-fclose.c (main): Add tests for EBADF.
48720         fflush tests: EBADF tests.
48721         * tests/test-fflush.c: Include errno.h, macros.h.
48722         (main): Add tests for EBADF.
48724         ftello tests: EBADF tests.
48725         * tests/test-ftello4.sh: New file.
48726         * tests/test-ftello4.c: New file.
48727         * modules/ftello-tests (Files): Add them.
48728         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
48730         fseeko tests: EBADF tests.
48731         * tests/test-fseeko4.sh: New file.
48732         * tests/test-fseeko4.c: New file.
48733         * modules/fseeko-tests (Files): Add them.
48734         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
48736         Tests for function fputc().
48737         * modules/fputc-tests: New file.
48738         * tests/test-fputc.c: New file.
48739         * modules/stdio-tests (Depends-on): Add fputc-tests.
48741         Tests for function fgetc().
48742         * modules/fgetc-tests: New file.
48743         * tests/test-fgetc.c: New file.
48744         * modules/stdio-tests (Depends-on): Add fgetc-tests.
48746         Tests for function fdopen().
48747         * modules/fdopen-tests: New file.
48748         * tests/test-fdopen.c: New file.
48749         * modules/stdio-tests (Depends-on): Add fdopen-tests.
48751         Tests for module 'vdprintf'.
48752         * modules/vdprintf-tests: New file.
48753         * tests/test-vdprintf.c: New file.
48755         Tests for module 'dprintf'.
48756         * modules/dprintf-tests: New file.
48757         * tests/test-dprintf.c: New file.
48759 2011-09-20  Bruno Haible  <bruno@clisp.org>
48761         Tests for module 'ioctl'.
48762         * modules/ioctl-tests: New file.
48763         * tests/test-ioctl.c: New file.
48765 2011-09-20  Bruno Haible  <bruno@clisp.org>
48767         fcntl tests: EBADF tests.
48768         * tests/test-fcntl.c (main): Add more tests for EBADF.
48770 2011-09-20  Bruno Haible  <bruno@clisp.org>
48772         utimensat tests: EBADF tests.
48773         * tests/test-utimensat.c (main): Add tests for EBADF.
48775         renameat tests: EBADF tests.
48776         * tests/test-renameat.c (main): Add tests for EBADF.
48778         mkfifoat tests: EBADF tests.
48779         * tests/test-mkfifoat.c (main): Add tests for EBADF.
48781         readlinkat tests: EBADF tests.
48782         * tests/test-readlinkat.c (main): Add tests for EBADF.
48784         symlinkat tests: EBADF tests.
48785         * tests/test-symlinkat.c (main): Add tests for EBADF.
48787         linkat tests: EBADF tests.
48788         * tests/test-linkat.c (main): Add tests for EBADF.
48790         Tests for module 'faccessat'.
48791         * modules/faccessat-tests: New file.
48792         * tests/test-faccessat.c: New file.
48794         fdopendir tests: EBADF tests.
48795         * tests/test-fdopendir.c (main): Add more tests for EBADF.
48797         openat tests: EBADF tests.
48798         * tests/test-fchownat.c (main): Add tests for EBADF.
48799         * tests/test-fstatat.c (main): Likewise.
48800         * tests/test-mkdirat.c (main): Likewise.
48801         * tests/test-openat.c (main): Likewise.
48802         * tests/test-unlinkat.c (main): Likewise.
48803         * tests/test-fchmodat.c: New file.
48804         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
48805         (Makefile.am): Also run 'test-fchmodat'.
48807 2011-09-20  Bruno Haible  <bruno@clisp.org>
48809         utimens, futimens, fdutimensat tests: EBADF tests.
48810         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
48812         Tests for function fstat().
48813         * modules/fstat-tests: New file.
48814         * tests/test-fstat.c: New file.
48815         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
48817 2011-09-20  Bruno Haible  <bruno@clisp.org>
48819         test-ttyname_r tests: EBADF tests.
48820         * tests/test-ttyname_r.c (main): Add tests for EBADF.
48822         Tests for module 'isatty'.
48823         * modules/isatty-tests: New file.
48824         * tests/test-isatty.c: New file.
48826         Tests for module 'write'.
48827         * modules/write-tests: New file.
48828         * tests/test-write.c: New file.
48830         Tests for module 'read'.
48831         * modules/read-tests: New file.
48832         * tests/test-read.c: New file.
48834         pwrite tests: EBADF tests.
48835         * tests/test-pwrite.c (main): Add tests for EBADF.
48837         pread tests: EBADF tests.
48838         * tests/test-pread.c (main): Add tests for EBADF.
48840         lseek tests: EBADF tests.
48841         * tests/test-lseek.c (main): Add more tests for EBADF.
48843         Tests for module 'ftruncate'.
48844         * modules/ftruncate-tests: New file.
48845         * tests/test-ftruncate.sh: New file.
48846         * tests/test-ftruncate.c: New file.
48848         fsync tests: EBADF tests.
48849         * tests/test-fsync.c (main): Add more tests for EBADF.
48851         fdatasync tests: EBADF tests.
48852         * tests/test-fdatasync.c (main): Add more tests for EBADF.
48854         Tests for module 'fchown'.
48855         * modules/fchown-tests: New file.
48856         * tests/test-fchown.c: New file.
48858         Tests for module 'fchmod'.
48859         * modules/fchmod-tests: New file.
48860         * tests/test-fchmod.c: New file.
48862         fchdir tests: EBADF tests.
48863         * tests/test-fchdir.c (main): Add more tests for EBADF.
48865         dup2 tests: EBADF tests.
48866         * tests/test-dup2.c (main): Add more tests for EBADF.
48868         Tests for module 'dup'.
48869         * modules/dup-tests: New file.
48870         * tests/test-dup.c: New file.
48872         Tests for module 'close'.
48873         * modules/close-tests: New file.
48874         * tests/test-close.c: New file.
48876 2011-09-20  Bruno Haible  <bruno@clisp.org>
48878         Tests for module 'shutdown'.
48879         * modules/shutdown-tests: New file.
48880         * tests/test-shutdown.c: New file.
48882         Tests for module 'setsockopt'.
48883         * modules/setsockopt-tests: New file.
48884         * tests/test-setsockopt.c: New file.
48886         Tests for module 'sendto'.
48887         * modules/sendto-tests: New file.
48888         * tests/test-sendto.c: New file.
48890         Tests for module 'send'.
48891         * modules/send-tests: New file.
48892         * tests/test-send.c: New file.
48894         Tests for module 'recvfrom'.
48895         * modules/recvfrom-tests: New file.
48896         * tests/test-recvfrom.c: New file.
48898         Tests for module 'recv'.
48899         * modules/recv-tests: New file.
48900         * tests/test-recv.c: New file.
48902         Tests for module 'listen'.
48903         * modules/listen-tests: New file.
48904         * tests/test-listen.c: New file.
48906         Tests for module 'getsockopt'.
48907         * modules/getsockopt-tests: New file.
48908         * tests/test-getsockopt.c: New file.
48910         Tests for module 'getsockname'.
48911         * modules/getsockname-tests: New file.
48912         * tests/test-getsockname.c: New file.
48914         Tests for module 'getpeername'.
48915         * modules/getpeername-tests: New file.
48916         * tests/test-getpeername.c: New file.
48918         Tests for module 'connect'.
48919         * modules/connect-tests: New file.
48920         * tests/test-connect.c: New file.
48922         Tests for module 'bind'.
48923         * modules/bind-tests: New file.
48924         * tests/test-bind.c: New file.
48926         accept4 tests: Fix for native Windows.
48927         * tests/test-accept4.c: Include sockets.h.
48928         (main): Invoke gl_sockets_startup.
48929         * modules/accept4-tests (Depends-on): Add sockets.
48931         accept tests: Fix for native Windows.
48932         * tests/test-accept.c: Include sockets.h.
48933         (main): Invoke gl_sockets_startup.
48934         * modules/accept-tests (Depends-on): Add sockets.
48936 2011-09-19  Bruno Haible  <bruno@clisp.org>
48938         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
48939         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
48940         do...while(0).
48941         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
48942         Suggested by Paul Eggert.
48944 2011-09-19  Bruno Haible  <bruno@clisp.org>
48946         sched: Ensure pid_t is defined.
48947         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
48948         not define pid_t.
48949         * lib/sched.in.h: Include <sys/types.h>.
48950         * doc/posix-headers/sched.texi: Mention the pid_t problem.
48951         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48953 2011-09-19  Bruno Haible  <bruno@clisp.org>
48955         msvc-inval: Ensure the entire expansion is a single statement.
48956         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
48957         of braces.
48959 2011-09-19  Jim Meyering  <meyering@redhat.com>
48961         tests: use printf, not echo in init.sh's warn_ function
48962         * tests/init.sh (warn_): Use printf, not echo.  The latter would
48963         misbehave when given strings containing a backslash or starting
48964         with e.g., -n.  James Youngman suggested setting IFS.
48966 2011-09-19  Eric Blake  <eblake@redhat.com>
48968         futimens: enhance test
48969         * tests/test-futimens.h (test_futimens): Also check for EBADF on
48970         closed non-negative fd.
48972         date: accept 'hence' as opposite of 'ago'
48973         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
48974         * tests/test-parse-datetime.c (main): Enhance test.
48975         Suggested by Jesse Wilson.
48977 2011-09-19  Jim Meyering  <meyering@redhat.com>
48979         getcwd: don't fail in a deep directory on a system without openat
48980         Before this change, getcwd would fail when called from a directory
48981         of depth PATH_MAX / 3 or greater.  That was due to the fact that
48982         the non-openat implementation used "..", "../..", "../../..", etc.
48983         to access ancestor directories.  With too many, that string would
48984         be longer than PATH_MAX.
48985         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
48986         using gnulib's openat replacement.
48987         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
48988         we're using the replacement function.
48990 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
48992         maint.mk: avoid warnings from perl about missing files
48993         * top/maint.mk (def_sym_regex): Ignore files listed in
48994         $(gl_other_headers_) that do not exist, say because a project
48995         does not use a corresponding module.
48997 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
48999         stat: use pathmax.h only if needed
49000         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
49001         This is better for Emacs, which does not have a mingw port and
49002         therefore can avoid the pathmax module.
49004         utimens: remove dependency on dup2
49005         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
49006         to work around the Linux kernel bug.
49007         * modules/utimens (Depends-on): Remove dup2.
49009 2011-09-18  Bruno Haible  <bruno@clisp.org>
49011         inet_ntop, inet_pton: Look for it also in libresolv.
49012         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
49013         libnsl, search for it in libresolv.
49014         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
49015         Needed on Solaris 7.
49017 2011-09-18  Bruno Haible  <bruno@clisp.org>
49019         accept, accept4 tests: Avoid link error on Solaris.
49020         * modules/accept-tests (Makefile.am): Link test-accept against
49021         $(LIBSOCKET).
49022         * modules/accept4-tests (Makefile.am): Link test-accept4 against
49023         $(LIBSOCKET).
49025         accept4: Avoid link error on Solaris.
49026         * modules/accept4 (Link): New section.
49028         socket functions: Avoid link errors on Solaris.
49029         * modules/accept (Depends-on): Add socketlib.
49030         (Link): New section.
49031         * modules/bind (Depends-on): Add socketlib.
49032         (Link): New section.
49033         * modules/connect (Depends-on): Add socketlib.
49034         (Link): New section.
49035         * modules/getpeername (Depends-on): Add socketlib.
49036         (Link): New section.
49037         * modules/getsockname (Depends-on): Add socketlib.
49038         (Link): New section.
49039         * modules/getsockopt (Depends-on): Add socketlib.
49040         (Link): New section.
49041         * modules/listen (Depends-on): Add socketlib.
49042         (Link): New section.
49043         * modules/recv (Depends-on): Add socketlib.
49044         (Link): New section.
49045         * modules/recvfrom (Depends-on): Add socketlib.
49046         (Link): New section.
49047         * modules/send (Depends-on): Add socketlib.
49048         (Link): New section.
49049         * modules/sendto (Depends-on): Add socketlib.
49050         (Link): New section.
49051         * modules/setsockopt (Depends-on): Add socketlib.
49052         (Link): New section.
49053         * modules/shutdown (Depends-on): Add socketlib.
49054         (Link): New section.
49055         * modules/socket (Depends-on): Add socketlib.
49056         (Link): New section.
49058 2011-09-18  Bruno Haible  <bruno@clisp.org>
49060         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
49061         * tests/test-ptsname.c (main): Terminate the test if it takes longer
49062         than 5 seconds.
49063         * modules/ptsname-tests (configure.ac): Test for alarm.
49065 2011-09-18  Bruno Haible  <bruno@clisp.org>
49067         posix_spawn_file_actions_add*: Fix module dependencies.
49068         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
49069         posix_spawn_file_actions_init.
49070         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
49071         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
49073 2011-09-18  Bruno Haible  <bruno@clisp.org>
49075         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
49076         * tests/test-rename.h (test_rename): Allow error code EEXIST.
49077         * tests/test-renameat.c (main): Likewise.
49079 2011-09-18  Bruno Haible  <bruno@clisp.org>
49081         Tests for module 'accept4'.
49082         * modules/accept4-tests: New file.
49083         * tests/test-accept4.c: New file.
49085 2011-09-18  Bruno Haible  <bruno@clisp.org>
49087         Tests for module 'accept'.
49088         * modules/accept-tests: New file.
49089         * tests/test-accept.c: New file.
49091 2011-09-18  Bruno Haible  <bruno@clisp.org>
49093         dup2: Support for MSVC.
49094         * lib/dup2.c: Include msvc-inval.h.
49095         (rpl_dup2): Handle invalid parameter notifications during dup2 and
49096         _get_osfhandle calls.
49097         * modules/dup2 (Depends-on): Add msvc-inval.
49098         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
49100         New module 'msvc-inval'.
49101         * lib/msvc-inval.h: New file.
49102         * lib/msvc-inval.c: New file.
49103         * m4/msvc-inval.m4: New file.
49104         * modules/msvc-inval: New file.
49106 2011-09-17  Bruno Haible  <bruno@clisp.org>
49108         Tests for module 'pclose'.
49109         * modules/pclose-tests: New file.
49111         New module 'pclose'.
49112         * lib/stdio.in.h (pclose): New declaration.
49113         * lib/pclose.c: New file.
49114         * m4/pclose.m4: New file.
49115         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
49116         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
49117         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
49118         * modules/pclose: New file.
49119         * modules/popen-tests (Depends-on): Add pclose.
49120         * modules/popen-safer-tests (Depends-on): Likewise.
49121         * doc/posix-functions/pclose.texi: Mention the new module.
49123 2011-09-17  Bruno Haible  <bruno@clisp.org>
49125         popen: Support for MSVC.
49126         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
49127         * lib/popen.c (popen): Provide alternate definition for native Windows.
49128         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
49129         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
49130         * modules/popen (Depends-on, configure.ac): Update condition.
49131         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
49132         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
49133         fixed.
49135 2011-09-17  Bruno Haible  <bruno@clisp.org>
49137         isnanl, isnand, isnanf: Work around MSVC bug.
49138         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
49140 2011-09-17  Bruno Haible  <bruno@clisp.org>
49142         sys_socket tests: Fix recent mistake.
49143         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
49145 2011-09-17  Bruno Haible  <bruno@clisp.org>
49147         putenv: Support for MSVC.
49148         * modules/putenv (Depends-on): Add environ.
49149         * lib/putenv.c (environ): Disable declaration.
49150         * lib/unistd.in.h: Update comment.
49152 2011-09-17  Bruno Haible  <bruno@clisp.org>
49154         math: Avoid macro redefinition warnings on MSVC.
49155         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
49156         Undefine before redefining.
49158 2011-09-17  Bruno Haible  <bruno@clisp.org>
49160         doc: Mention functions which are declared as macros.
49161         * doc/posix-functions/*[fl].texi: Mention that some functions are
49162         defined as macros with arguments only.
49164 2011-09-17  Bruno Haible  <bruno@clisp.org>
49166         Add dependencies to new dirent related modules.
49167         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
49168         * modules/fts (Depends-on): Likewise.
49169         * modules/glob (Depends-on): Likewise.
49170         * modules/savedir (Depends-on): Likewise.
49171         * modules/scandir (Depends-on): Likewise.
49172         * modules/dirent-safer (Depends-on): Add opendir, closedir.
49173         * modules/fdopendir (Depends-on): Add opendir.
49175 2011-09-17  Bruno Haible  <bruno@clisp.org>
49177         inet_pton: Support for MSVC on Windows Vista or newer.
49178         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
49179         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
49180         HAVE_DECL_INET_PTON is defined.
49181         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
49182         On platforms with <winsock2.h>, test whether inet_pton is declared in
49183         <ws2tcpip.h>. If so, arrange to replace it.
49184         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
49185         REPLACE_INET_PTON.
49186         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
49187         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
49188         (Depends-on, configure.ac): Update condition.
49189         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
49191 2011-09-17  Bruno Haible  <bruno@clisp.org>
49193         inet_ntop: Support for MSVC on Windows Vista or newer.
49194         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
49195         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
49196         HAVE_DECL_INET_NTOP is defined.
49197         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
49198         On platforms with <winsock2.h>, test whether inet_ntop is declared in
49199         <ws2tcpip.h>. If so, arrange to replace it.
49200         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
49201         REPLACE_INET_NTOP.
49202         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
49203         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
49204         (Depends-on, configure.ac): Update condition.
49205         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
49207 2011-09-16  Eric Blake  <eblake@redhat.com>
49209         test-fsync: yet another enhancement
49210         * tests/test-fsync.c (main): Also test behavior on read-only text
49211         file.
49213 2011-09-16  Bruno Haible  <bruno@clisp.org>
49215         Enhance fsync, fdatasync tests.
49216         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
49217         * tests/test-fdatasync.c (main): Likewise.
49219 2011-09-16  Bruno Haible  <bruno@clisp.org>
49221         Support for MSVC compiler: Ensure mode_t gets defined.
49222         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
49223         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
49224         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
49225         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
49226         * tests/test-fcntl-h.c: Check that mode_t is defined.
49227         * tests/test-sys_stat.c: Likewise.
49228         * tests/test-sys_types.c: Likewise.
49229         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
49230         * doc/posix-headers/sys_stat.texi: Likewise.
49231         * doc/posix-headers/sys_types.texi: Likewise.
49233 2011-09-16  Bruno Haible  <bruno@clisp.org>
49235         sys_stat: Support for MSVC.
49236         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
49237         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
49238         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
49239         MSVC.
49241 2011-09-16  Bruno Haible  <bruno@clisp.org>
49243         Support for MSVC compiler: Ensure off_t gets defined.
49244         * lib/unistd.in.h: Include <sys/types.h>.
49245         * tests/test-fcntl-h.c: Check that off_t is defined.
49246         * tests/test-sys_stat.c: Likewise.
49247         * tests/test-sys_types.c: Likewise.
49249 2011-09-16  Eric Blake  <eblake@redhat.com>
49251         fdatasync: port to Solaris
49252         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
49253         * modules/fdatasync (Link): Document it.
49254         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
49256         fdatasync: port to MacOS X 10.7
49257         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
49258         declared.
49259         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
49260         * modules/unistd (Makefile.am): Substitute it.
49261         * lib/unistd.in.h (fdatasync): Declare on MacOS.
49262         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
49264         fdatasync: minor improvements
49265         * modules/fdatasync (Depends-on): Add condition for fsync.
49266         * lib/fdatasync.c (fdatasync): Add comment.
49267         * tests/test-unistd-c++.cc: Test fdatasync.
49269         unistd: update refs to newer POSIX
49270         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
49271         Suggested by Bruno Haible.
49273         fdatasync: new module
49274         * modules/fsync (Description): Document difference to fdatasync.
49275         * modules/fdatasync: New module.
49276         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
49277         * lib/fdatasync.c (fdatasync): Likewise.
49278         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
49279         defaults.
49280         * modules/unistd (Makefile.am): Set witnesses.
49281         * lib/unistd.in.h (fdatasync): Declare.
49282         * MODULES.html.sh: Document it.
49283         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
49284         * modules/fdatasync-tests: New test.
49285         * tests/test-fdatasync.c: Likewise.
49287 2011-09-16  Eric Blake  <eblake@redhat.com>
49289         test-fsync: enhance tests
49290         * modules/fsync-tests (Depends-on): Add errno, for mingw.
49291         * tests/test-fsync.c (main): Enhance test.
49293 2011-09-15  Bruno Haible  <bruno@clisp.org>
49295         Support for MSVC compiler: Ensure ssize_t gets defined.
49296         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
49297         * doc/posix-headers/stdio.texi: Likewise.
49298         * modules/stdio (Depends-on): Add ssize_t.
49299         * modules/sys_socket (Depends-on): Likewise.
49300         * modules/sys_types (Depends-on): Likewise.
49301         * modules/sys_uio (Depends-on): Likewise.
49302         * modules/unistd (Depends-on): Likewise.
49303         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
49304         * tests/test-sys_types.c: Check that ssize_t is defined.
49306 2011-09-14  Bruno Haible  <bruno@clisp.org>
49308         Avoid using #, the m4 comment starter character, near brackets.
49309         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
49310         delimiter character in sed expressions.
49311         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
49312         Suggested by Eric Blake.
49314         Properly quote AC_CHECK_DECLS' 4th argument.
49315         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
49316         argument.
49317         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
49318         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
49319         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
49320         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
49321         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
49322         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
49323         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
49324         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
49325         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
49326         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
49327         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
49328         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
49329         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
49330         * m4/isinf.m4 (gl_ISINF): Likewise.
49331         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
49332         * m4/readutmp.m4 (gl_READUTMP): Likewise.
49333         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
49334         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
49335         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
49336         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
49337         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
49338         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
49339         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
49340         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
49341         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
49342         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
49343         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
49344         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
49345         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
49346         Reported by Eric Blake.
49348         Properly quote AC_CHECK_DECL's 4th argument.
49349         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
49350         argument.
49351         * m4/argp.m4 (gl_ARGP): Likewise.
49352         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
49353         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
49354         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
49355         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
49356         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
49357         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
49358         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
49359         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
49360         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
49361         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
49362         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
49363         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
49364         Reported by Eric Blake.
49366 2011-09-14  Eric Blake  <eblake@redhat.com>
49368         opendir: avoid compile warning
49369         * lib/opendir.c (includes): Always include errno.h.
49370         Reported by Tatsuro MATSUOKA.
49372 2011-09-14  Jim Meyering  <meyering@redhat.com>
49374         maint.mk: sc_tight_scope: propagate failure from sub-make
49375         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
49376         Reported by Martin von Gagern.
49378 2011-09-13  Bruno Haible  <bruno@clisp.org>
49380         tempname: Support for MSVC.
49381         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
49382         MSVC.
49383         * modules/tempname (Depends-on): Add fcntl-h.
49385 2011-09-13  Bruno Haible  <bruno@clisp.org>
49387         sys_time: Support for MSVC.
49388         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
49389         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
49390         include <winsock2.h>.
49391         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
49392         function declarations that collide with POSIX.
49393         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
49394         (Makefile.am): Substitute HAVE_WINSOCK2_H.
49396 2011-09-13  Bruno Haible  <bruno@clisp.org>
49398         stat: Support for MSVC.
49399         * lib/stat.c: Include pathmax.h.
49400         * modules/stat (Depends-on): Add pathmax.
49402         pathmax: Support for native Windows.
49403         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
49405 2011-09-12  Bruno Haible  <bruno@clisp.org>
49407         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
49408         * lib/dirent.in.h (struct dirent): New type.
49409         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
49410         DT_WHT): New macros.
49411         (DIR): New type.
49412         (opendir, closedir): Declare only if the module 'opendir' is enabled.
49413         (readdir, rewinddir): New declarations.
49414         * lib/dirent-private.h: New file.
49415         * lib/opendir.c: New file.
49416         * lib/readdir.c: New file.
49417         * lib/rewinddir.c: New file.
49418         * lib/closedir.c: New file.
49419         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
49420         * m4/opendir.m4: New file.
49421         * m4/readdir.m4: New file.
49422         * m4/rewinddir.m4: New file.
49423         * m4/closedir.m4: New file.
49424         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
49425         REPLACE_CLOSEDIR here.
49426         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
49427         readdir, rewinddir are declared.
49428         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
49429         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
49430         HAVE_REWINDDIR, HAVE_CLOSEDIR.
49431         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
49432         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
49433         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
49434         * modules/opendir: New file.
49435         * modules/readdir: New file.
49436         * modules/rewinddir: New file.
49437         * modules/closedir: New file.
49438         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
49439         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
49440         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
49441         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
49442         * NEWS: Mention the 'fchdir' change.
49444 2011-09-11  Bruno Haible  <bruno@clisp.org>
49446         asm-underscore.m4: Support for MSVC.
49447         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
49448         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
49450 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
49452         Doc about crypt functions.
49453         * doc/posix-functions/crypt.texi: Expand range of glibc versions
49454         needing for _GNU_SOURCE to get crypt.
49455         * doc/posix-functions/encrypt.texi: Likewise.
49456         * doc/posix-functions/setkey.texi: Likewise.
49458 2011-09-11  Bruno Haible  <bruno@clisp.org>
49460         doc: Update regarding MSVC 9.
49461         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
49462         tested".
49463         * doc/posix-functions/*.texi: Update with info about MSVC 9.
49464         * doc/posix-headers/*.texi: Likewise.
49465         * doc/pastposix-functions/*.texi: Likewise.
49466         * doc/glibc-functions/*.texi: Likewise.
49467         * doc/glibc-headers/*.texi: Likewise.
49469 2011-09-11  Bruno Haible  <bruno@clisp.org>
49471         unistd et al.: Don't assume <unistd.h> exists.
49472         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
49473         does not exist.
49474         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
49475         exist. But include <stdlib.h>.
49476         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
49477         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
49478         symlink() does not exist.
49479         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
49480         include <io.h> instead.
49481         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
49482         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
49483         include <direct.h> instead.
49484         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
49485         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
49486         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
49487         <io.h> instead.
49488         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
49489         correctly if the system does not have hard links.
49490         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
49491         <direct.h> instead.
49492         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
49493         it when looking for function declarations.
49494         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
49495         <direct.h> and <io.h> instead.
49496         * doc/posix-headers/unistd.texi: More details about MSVC problem.
49498 2011-09-11  Bruno Haible  <bruno@clisp.org>
49500         strcase: Support for MSVC.
49501         * modules/strcase (Status, Notice): Remove obsoletion mark.
49502         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
49503         * doc/posix-functions/strncasecmp.texi: Likewise.
49505         strings: Don't assume <strings.h> exists.
49506         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
49507         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
49508         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
49509         * doc/posix-headers/strings.texi: Mention the MSVC problem.
49511 2011-09-11  Bruno Haible  <bruno@clisp.org>
49513         dirent: Don't assume <dirent.h> exists.
49514         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
49515         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
49516         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
49517         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
49519 2011-09-11  Bruno Haible  <bruno@clisp.org>
49521         Fix wint_t on MSVC.
49522         * lib/wchar.in.h (wint_t): On MSVC, override it.
49523         * lib/wctype.in.h (wint_t): Likewise.
49524         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
49525         MSVC.
49526         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
49527         * doc/posix-headers/wctype.texi: Likewise.
49529 2011-09-11  Bruno Haible  <bruno@clisp.org>
49531         sys_types: Fix typo.
49532         * lib/sys_types.in.h: Fix typo in comment.
49533         Reported by Paul Eggert.
49535         Support for MSVC compiler: Ensure size_t gets defined.
49536         * modules/strings (Depends-on): Add 'sys_types'.
49537         * modules/sys_uio (Depends-on): Likewise.
49538         * lib/sys_uio.in.h: Update comment.
49540         C++ tests for module 'sys_types'.
49541         * modules/sys_types-c++-tests: New file.
49542         * tests/test-sys_types-c++.cc: New file.
49544         Tests for module 'sys_types'.
49545         * modules/sys_types-tests: New file.
49546         * tests/test-sys_types.c: New file.
49548         New module 'sys_types'.
49549         * lib/sys_types.in.h: New file.
49550         * m4/sys_types_h.m4: New file.
49551         * modules/sys_types: New file.
49552         * doc/posix-headers/sys_types.texi: Mention the new module and the
49553         size_t problem on MSVC 9.
49555 2011-09-11  Bruno Haible  <bruno@clisp.org>
49557         Support for MSVC compiler: Avoid division by a literal 0.
49558         * lib/math.in.h (NAN): Define through a function call also on MSVC.
49559         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
49560         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
49561         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
49562         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
49563         * tests/infinity.h: New file.
49564         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
49565         on MSVC.
49566         * tests/test-ceilf1.c: Include infinity.h.
49567         (main): Use Infinityf.
49568         * tests/test-ceil1.c: Include infinity.h.
49569         (main): Use Infinityd.
49570         * tests/test-ceill.c: Include infinity.h.
49571         (main): Use Infinityl.
49572         * tests/test-dprintf-posix.c: Include infinity.h.
49573         (test_function): Use Infinityd.
49574         * tests/test-floorf1.c: Include infinity.h.
49575         (main): Use Infinityf.
49576         * tests/test-floor1.c: Include infinity.h.
49577         (main): Use Infinityd.
49578         * tests/test-floorl.c: Include infinity.h.
49579         (main): Use Infinityl.
49580         * tests/test-fprintf-posix.c: Include infinity.h.
49581         (test_function): Use Infinityd.
49582         * tests/test-frexp.c: Include infinity.h.
49583         (main): Use Infinityd.
49584         * tests/test-frexpl.c: Include infinity.h.
49585         (main): Use Infinityl.
49586         * tests/test-isfinite.c: Include infinity.h.
49587         (test_isfinitef): Use Infinityf.
49588         (test_isfinited): Use Infinityd.
49589         (test_isfinitel): Use Infinityl.
49590         * tests/test-isinf.c: Include infinity.h.
49591         (test_isinff): Use Infinityf.
49592         (test_isinfd): Use Infinityd.
49593         (test_isinfl): Use Infinityl.
49594         * tests/test-isnan.c: Include infinity.h.
49595         (test_float): Use Infinityf.
49596         (test_double): Use Infinityd.
49597         (test_long_double): Use Infinityl.
49598         * tests/test-isnanf.h: Include infinity.h.
49599         (main): Use Infinityf.
49600         * tests/test-isnand.h: Include infinity.h.
49601         (main): Use Infinityd.
49602         * tests/test-isnanl.h: Include infinity.h.
49603         (main): Use Infinityl.
49604         * tests/test-ldexpl.c: Include infinity.h.
49605         (main): Use Infinityl.
49606         * tests/test-printf-posix.h: Include infinity.h.
49607         (test_function): Use Infinityd.
49608         * tests/test-roundf1.c: Include infinity.h.
49609         (main): Use Infinityf.
49610         * tests/test-round1.c: Include infinity.h.
49611         (main): Use Infinityd.
49612         * tests/test-roundl.c: Include infinity.h.
49613         (main): Use Infinityl.
49614         * tests/test-signbit.c: Include infinity.h.
49615         (test_signbitf): Use Infinityf.
49616         (test_signbitd): Use Infinityd.
49617         (test_signbitl): Use Infinityl.
49618         * tests/test-snprintf-posix.h: Include infinity.h.
49619         (test_function): Use Infinityd, Infinityl.
49620         * tests/test-sprintf-posix.h: Include infinity.h.
49621         (test_function): Use Infinityd, Infinityl.
49622         * tests/test-truncf1.c: Include infinity.h.
49623         (main): Use Infinityf.
49624         * tests/test-trunc1.c: Include infinity.h.
49625         (main): Use Infinityd.
49626         * tests/test-truncl.c: Include infinity.h.
49627         (main): Use Infinityl.
49628         * tests/test-vasnprintf-posix.c: Include infinity.h.
49629         (test_function): Use Infinityd, Infinityl.
49630         * tests/test-vasprintf-posix.c: Include infinity.h.
49631         (test_function): Use Infinityd, Infinityl.
49632         * modules/ceilf-tests (Files): Add tests/infinity.h.
49633         * modules/ceil-tests (Files): Likewise.
49634         * modules/ceill-tests (Files): Likewise.
49635         * modules/dprintf-posix-tests (Files): Likewise.
49636         * modules/floorf-tests (Files): Likewise.
49637         * modules/floor-tests (Files): Likewise.
49638         * modules/floorl-tests (Files): Likewise.
49639         * modules/fprintf-posix-tests (Files): Likewise.
49640         * modules/frexp-tests (Files): Likewise.
49641         * modules/frexp-nolibm-tests (Files): Likewise.
49642         * modules/frexpl-tests (Files): Likewise.
49643         * modules/frexpl-nolibm-tests (Files): Likewise.
49644         * modules/isfinite-tests (Files): Likewise.
49645         * modules/isinf-tests (Files): Likewise.
49646         * modules/isnan-tests (Files): Likewise.
49647         * modules/isnanf-tests (Files): Likewise.
49648         * modules/isnanf-nolibm-tests (Files): Likewise.
49649         * modules/isnand-tests (Files): Likewise.
49650         * modules/isnand-nolibm-tests (Files): Likewise.
49651         * modules/isnanl-tests (Files): Likewise.
49652         * modules/isnanl-nolibm-tests (Files): Likewise.
49653         * modules/ldexpl-tests (Files): Likewise.
49654         * modules/printf-posix-tests (Files): Likewise.
49655         * modules/roundf-tests (Files): Likewise.
49656         * modules/round-tests (Files): Likewise.
49657         * modules/roundl-tests (Files): Likewise.
49658         * modules/signbit-tests (Files): Likewise.
49659         * modules/snprintf-posix-tests (Files): Likewise.
49660         * modules/sprintf-posix-tests (Files): Likewise.
49661         * modules/truncf-tests (Files): Likewise.
49662         * modules/trunc-tests (Files): Likewise.
49663         * modules/truncl-tests (Files): Likewise.
49664         * modules/vasnprintf-posix-tests (Files): Likewise.
49665         * modules/vasprintf-posix-tests (Files): Likewise.
49666         * modules/vdprintf-posix-tests (Files): Likewise.
49667         * modules/vfprintf-posix-tests (Files): Likewise.
49668         * modules/vprintf-posix-tests (Files): Likewise.
49669         * modules/vsnprintf-posix-tests (Files): Likewise.
49670         * modules/vsprintf-posix-tests (Files): Likewise.
49671         * modules/xprintf-posix-tests (Files): Likewise.
49673 2011-09-11  Bruno Haible  <bruno@clisp.org>
49675         Ensure pid_t gets defined.
49676         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
49677         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
49678         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
49679         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
49680         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
49681         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
49682         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
49683         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
49684         * tests/test-fcntl-h.c: Check that pid_t is defined.
49685         * tests/test-sched.c: Likewise.
49686         * tests/test-termios.c: Likewise.
49687         * tests/test-time.c: Likewise.
49688         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
49689         * doc/posix-headers/signal.texi: Likewise.
49690         * doc/posix-headers/sys_types.texi: Likewise.
49691         * doc/posix-headers/time.texi: Likewise.
49693 2011-09-11  Bruno Haible  <bruno@clisp.org>
49695         acl: Fix compilation on Solaris 10 (older version).
49696         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
49697         of ACE_EVERYONE.
49698         * lib/set-mode-acl.c (qset_acl): Likewise.
49699         Reported by Christian Jullien <eligis@orange.fr>.
49701 2011-09-10  Bruno Haible  <bruno@clisp.org>
49703         iconv, unsetenv: Add support for MSVC compiler.
49704         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
49705         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
49707 2011-09-10  Bruno Haible  <bruno@clisp.org>
49709         *printf: Add support for MSVC compiler.
49710         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
49711         handles the exception caused by the %n directive. When cross-compiling,
49712         guess no on native Windows.
49713         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
49714         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
49715         emulate it through vsnprintf.
49716         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
49717         * doc/posix-functions/dprintf.texi: Update documentation regarding
49718         MSVC 9.
49719         * doc/posix-functions/fprintf.texi: Likewise.
49720         * doc/posix-functions/printf.texi: Likewise.
49721         * doc/posix-functions/snprintf.texi: Likewise.
49722         * doc/posix-functions/sprintf.texi: Likewise.
49723         * doc/posix-functions/swprintf.texi: Likewise.
49724         * doc/posix-functions/vdprintf.texi: Likewise.
49725         * doc/posix-functions/vfprintf.texi: Likewise.
49726         * doc/posix-functions/vprintf.texi: Likewise.
49727         * doc/posix-functions/vsnprintf.texi: Likewise.
49728         * doc/posix-functions/vsprintf.texi: Likewise.
49729         * doc/glibc-functions/asprintf.texi: Likewise.
49730         * doc/glibc-functions/obstack_printf.texi: Likewise.
49731         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
49732         * doc/glibc-functions/vasprintf.texi: Likewise.
49734 2011-09-10  Bruno Haible  <bruno@clisp.org>
49736         nocrash: Add support for native Windows.
49737         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
49739 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
49740             Bruno Haible  <bruno@clisp.org>
49742         absolute-header, include-next: Add support for MSVC compiler.
49743         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
49744         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
49745         directory separator in #line directives.
49746         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
49747         recognize also backslash as directory separator in #line directives.
49749 2011-09-08  Jim Meyering  <meyering@redhat.com>
49751         maint.mk: mark the post-release commit log with "maint: " prefix
49752         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
49753         one-line commit-log summary.
49755 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
49756             Bruno Haible  <bruno@clisp.org>
49758         Doc about crypt functions.
49759         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
49760         systems.
49761         * doc/posix-functions/encrypt.texi: Likewise.
49762         * doc/posix-functions/setkey.texi: Likewise.
49764 2011-09-08  Simon Josefsson  <simon@josefsson.org>
49766         * lib/gc.h: Fix copyright header.
49768 2011-09-07  Bruno Haible  <bruno@clisp.org>
49770         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
49771         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
49772         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
49774 2011-09-07  Bruno Haible  <bruno@clisp.org>
49776         openat: Work around compilation error with OSF/1 5.1 DTK cc.
49777         * lib/fopen.c: Use different syntax for include of <stdio.h>.
49778         * lib/freopen.c: Likewise.
49779         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
49780         * lib/lstat.c: Likewise.
49781         * lib/stat.c: Likewise.
49782         * lib/open.c: Use different syntax for include of <fcntl.h>.
49783         * lib/openat.c: Include fcntl.h again, explicitly.
49785 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
49787         parse-datetime: document the newly accepted format
49788         * doc/parse-datetime.texi (Combined date and time of day items):
49789         New section.
49791 2011-09-06  Bruno Haible  <bruno@clisp.org>
49793         acl: Fix a test failure on newer Solaris 10 with ZFS.
49794         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
49795         ENOSYS as no ACL.
49796         Reported by Jim Meyering.
49798 2011-09-06  Bruno Haible  <bruno@clisp.org>
49800         acl: Update for AIX >= 5.3 with NFS.
49801         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
49802         ENOSYS as no ACL.
49804         acl: Fix a test failure on AIX >= 5.3 with NFS.
49805         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
49806         as no ACL.
49808 2011-09-06  Bruno Haible  <bruno@clisp.org>
49810         acl: Fix a test failure on IRIX 6.5 with NFS.
49811         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
49812         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
49813         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
49814         * lib/copy-acl.c (qcopy_acl): Likewise.
49816 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
49818         openat: port to AIX 7.1 with large files
49819         AIX 7.1 does a "#define openat open64at" if large files are in use,
49820         so we can't simply #undef openat.  Use the orig_openat trick (similar
49821         to orig_open in lib/open.c) to work around the problem.  Problem
49822         reported by Kevin Brott for GNU tar, in the thread containing
49823         <http://lists.gnu.org/r/bug-tar/2011-09/msg00032.html>.
49824         * lib/openat.c (__need_system_fcntl_h): Define first.
49825         Include <fcntl.h> and <sys/types.h> before undefining.
49826         (orig_openat) [HAVE_OPENAT]: New inline function.
49827         (openat) [HAVE_OPENAT]: Do not undef.
49828         (rpl_openat): Use orig_openat, not openat.
49830 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
49831             Bruno Haible  <bruno@clisp.org>
49833         acl: Avoid errors on NonStop Kernel.
49834         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
49835         ENOTSUP errors.
49837 2011-09-05  Bruno Haible  <bruno@clisp.org>
49839         acl: Clean up Solaris code.
49840         * lib/acl-internal.h: Remove no-op #if.
49841         * lib/file-has-acl.c: Likewise.
49842         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
49843         * lib/copy-acl.c (qcopy_acl): Likewise.
49845 2011-09-05  Bruno Haible  <bruno@clisp.org>
49847         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
49848         binaries built on the original Solaris 10.
49849         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
49850         trivial.
49852 2011-09-05  Bruno Haible  <bruno@clisp.org>
49854         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
49855         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
49856         10.
49857         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
49858         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
49859         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
49860         instead of acl_get, facl_get, acl_set, facl_set.
49862 2011-09-05  Bruno Haible  <bruno@clisp.org>
49864         copy-file: Try unit tests on more file systems.
49865         * tests/test-copy-file-1.sh: New file.
49866         * tests/test-copy-file-2.sh: New file.
49867         * modules/copy-file-tests (Files): Add them.
49868         (Makefile.am): Add them to TESTS.
49870         acl: Try unit tests on more file systems.
49871         * tests/test-file-has-acl-1.sh: New file.
49872         * tests/test-file-has-acl-2.sh: New file.
49873         * tests/test-set-mode-acl-1.sh: New file.
49874         * tests/test-set-mode-acl-2.sh: New file.
49875         * tests/test-copy-acl-1.sh: New file.
49876         * tests/test-copy-acl-2.sh: New file.
49877         * modules/acl-tests (Files): Add them.
49878         (Makefile.am): Add them to TESTS.
49880 2011-09-04  Bruno Haible  <bruno@clisp.org>
49882         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
49883         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
49884         10.
49885         (OLD_ALLOW, OLD_DENY): New macros.
49886         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
49887         ACE_ACCESS_ALLOWED_ACE_TYPE.
49888         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
49889         ACE_ACCESS_DENIED_ACE_TYPE.
49890         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
49891         (NEW_ACE_EXECUTE): Fix value.
49892         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
49893         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
49894         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
49895         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
49896         NEW_ACE_SYNCHRONIZE): New macros.
49897         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
49898         instead of acl_fromtext, acl_set, facl_set.
49899         Fixes a coreutils/tests/cp/perm failure.
49901 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
49903         openat: test for fstatat (..., 0) bug
49904         Further testing with tar suggests that fstatat (..., 0)
49905         does not work in general, on AIX 7.1; see
49906         <http://lists.gnu.org/r/bug-tar/2011-09/msg00023.html>.
49907         So, give up entirely on AIX 7.1's fstatat, and fall back on our
49908         replacement fstatat (which is what older AIX releases were using
49909         anyway).
49910         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
49911         use is now changed to orig_fstatat.  This was probably the right
49912         thing to do anyway.
49913         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
49914         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
49915         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
49916         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
49917         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
49918         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
49919         if the bug is found.
49921         openat: test for fstatat (AT_FDCWD, ..., 0) bug
49922         This tests for another fstatat bug on AIX 7.1:
49923         fstatat (AT_FDCWD, ..., 0) does not work.  See
49924         <http://lists.gnu.org/r/bug-tar/2011-09/msg00015.html>.
49925         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
49926         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
49927         (rpl_fstatat): Adjust so that it works around either (or both)
49928         bugs if present.
49929         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
49931 2011-09-03  Karl Berry  <karl@gnu.org>
49933         * doc/regex.texi (Character Class Operators): Avoid literal ":"
49934         in index entries.
49936 2011-09-02  Bruno Haible  <bruno@clisp.org>
49938         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
49939         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
49940         values of AR, ARFLAGS, RANLIB.
49941         Reported by John W. Eaton <jwe@gnu.org> for Octave.
49943 2011-09-02  Bruno Haible  <bruno@clisp.org>
49945         Find 'ar' program that fits with --host argument.
49946         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
49948 2011-09-02  Bruno Haible  <bruno@clisp.org>
49950         tests: init.sh: Support any non-GNU diff.
49951         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
49952         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
49953         Solaris 8.
49955 2011-09-02  Bruno Haible  <bruno@clisp.org>
49957         tests: init.sh: work also with any non-GNU diff that supports -u
49958         * tests/init.sh: Relax check for diff -u support.
49959         Rather than checking for GNU diff via --version, simply check
49960         for support for -u itself.  Useful at least on OpenBSD 4.9,
49961         AIX 7.1, IRIX 6.5, and Solaris 10.
49963 2011-09-01  Bruno Haible  <bruno@clisp.org>
49965         strtoimax, strtoumax: Document problem on HP-UX 11.
49966         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
49967         * doc/posix-functions/strtoumax.texi: Likewise.
49969 2011-09-01  Bruno Haible  <bruno@clisp.org>
49971         strtoumax: Avoid link error on OSF/1 with DTK cc.
49972         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
49973         defined as a function.
49974         * modules/strtoumax (Depends-on, configure.ac): Test only whether
49975         strtoumax is defined, not whether it is declared.
49977 2011-09-01  Bruno Haible  <bruno@clisp.org>
49979         strtoimax: Avoid link error on OSF/1 with DTK cc.
49980         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
49981         defined as a function.
49982         * modules/strtoimax (Depends-on, configure.ac): Test only whether
49983         strtoimax is defined, not whether it is declared.
49985 2011-09-01  Bruno Haible  <bruno@clisp.org>
49987         imaxdiv: Avoid link error on OSF/1 with DTK cc.
49988         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
49989         as a function.
49990         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
49991         whether it is declared.
49993 2011-09-01  Bruno Haible  <bruno@clisp.org>
49995         imaxabs: Avoid link error on OSF/1 with DTK cc.
49996         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
49997         as a function.
49998         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
49999         whether it is declared.
50001 2011-09-01  Bruno Haible  <bruno@clisp.org>
50003         Tests for module 'strtoumax'.
50004         * modules/strtoumax-tests: New file.
50005         * tests/test-strtoumax.c: New file.
50007         Tests for module 'strtoimax'.
50008         * modules/strtoimax-tests: New file.
50009         * tests/test-strtoimax.c: New file.
50011         Tests for module 'imaxdiv'.
50012         * modules/imaxdiv-tests: New file.
50013         * tests/test-imaxdiv.c: New file.
50015         Tests for module 'imaxabs'.
50016         * modules/imaxabs-tests: New file.
50017         * tests/test-imaxabs.c: New file.
50019 2011-09-01  Bruno Haible  <bruno@clisp.org>
50021         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
50022         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
50023         pthread_create.
50025 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
50027         openat: work around AIX 7.1 fstatat issue
50028         This should fix the problem that was not properly fixed
50029         in the previous change, dated 2011-08-30.
50030         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
50031         __need_system_stat_h defined.
50032         (orig_fstatat) [HAVE_FSTATAT]: New function.
50033         (rpl_fstatat): Go back to the old way of doing things,
50034         except call orig_fstatat instead of fstatat.
50035         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
50036         Remove unnecessary check whether fstatat fills in st_size etc.
50038 2011-09-01  Bruno Haible  <bruno@clisp.org>
50040         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
50041         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
50042         just include the system's header.
50044 2011-08-31  Jim Meyering  <meyering@redhat.com>
50046         tests: avoid spurious assertion failure in test-float.c on ppc64
50047         * tests/test-float.c (test_long_double): Comment out an assertion,
50048         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
50049         with gcc-4.4.4.
50051         maint: indent with spaces, not TABs
50052         I need to get in the habit of running gnulib's "make check".
50053         Both of these would have been caught.
50054         * m4/largefile.m4: Indent with spaces, not TABs.
50055         * lib/parse-datetime.y (iso_8601_time): Likewise.
50056         Spotted by Pádraig Brady.
50058         test-parse-datetime.c: accommodate a relatively strict gcc warning
50059         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
50060         to avoid a warning from gcc's -Werror=missing-declarations.
50061         Insert a few spaces-before-funcall-parenthesis.
50063 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
50065         parse-datetime: accept ISO 8601 date and time rep with "T" separator
50066         The parser now accepts ISO 8601 date-time strings with "T" as the
50067         separator.  It has long parsed dates like "2004-02-29 16:21:42"
50068         with a space between the date and time strings.  Now it also parses
50069         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
50070         variants like "2004-02-29T16:21:42.333-07:00"
50071         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
50072         of day representation using the 'T' separator character.
50073         * doc/parse-datetime.texi (General date syntax): replace use of
50074         deprecated --iso-8601 option with --rfc-3339 in example of date
50075         command output formats that can be parsed.
50076         * tests/test-parse-datetime.c (tm_diff): New function, taken from
50077         lib/parse-datetime.y.
50078         (gmt_offset): New function.
50079         (main): Add additional test cases to validate ISO8601 extended
50080         date and time of day parsing.
50082 2011-08-31  Bruno Haible  <bruno@clisp.org>
50084         freopen: Documentation.
50085         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
50086         name.
50087         Reported by Claudio Bley <claudio.bley@gmail.com>.
50089 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
50091         freopen: Don't crash if the filename argument is NULL.
50092         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
50093         NULL.
50095 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
50097         openat: work around AIX 7.1 fstatat bug
50098         Problem reported by Kevin Brott for GNU tar, in the thread containing
50099         <http://lists.gnu.org/r/bug-tar/2011-08/msg00015.html>.
50100         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
50101         FSTATAT_ST_SIZE_ETC_BROKEN.
50102         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
50103         rpl_fstatat.
50104         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
50105         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
50106         AC_CHECK_FUNCS_ONCE for fstatat.
50107         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
50108         fchmodat, mkdirat, openat and unlinkat.
50110 2011-08-30  Bruno Haible  <bruno@clisp.org>
50112         Avoid endless recursions if config.h includes some header files.
50113         * lib/fopen.c (__need_FILE): Define already before including config.h.
50114         * lib/freopen.c (__need_FILE): Likewise.
50115         * lib/open.c (__need_system_fcntl_h): Likewise.
50116         * lib/stat.c (__need_system_sys_stat_h): Likewise.
50117         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
50118         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
50120 2011-08-25  Karl Berry  <karl@gnu.org>
50122         * config/srclist.txt (ylwrap): new try.
50123         * build-aux/ylwrap: new file.
50125 2011-08-23  Bruno Haible  <bruno@clisp.org>
50127         tmpdir: Use a good default directory on native Windows.
50128         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
50129         (P_tmpdir): Default to _P_tmpdir on native Windows.
50130         (path_search): On native Windows, try the value returned by GetTempPath
50131         before trying P_tmpdir.
50132         * modules/tmpdir (Depends-on): Add pathmax.
50133         Suggested by John Darrington <john@darrington.wattle.id.au>.
50135 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
50137         doc: fix typo in README-release
50138         * top/README-release: Capitalize first word of a sentence.
50140 2011-08-19  Jim Meyering  <meyering@redhat.com>
50142         fts: do not exhaust memory when processing million-entry directories
50143         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
50144         directory would require about 256*N bytes of memory.  Thus, it was
50145         easy to construct a directory too large to be processed by any of
50146         those tools.  With this change, fts' maximum memory utilization is
50147         now limited to around 30MB.
50148         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
50149         (fts_read): When we've processed the final entry (i.e., when
50150         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
50151         using the parent entry to read any remaining entries.  Dispatch
50152         depending on what fts_build returns:
50153         - NULL+stop, aka failure: stop
50154         - NULL otherwise: move up in the dir hierarchy
50155         - non-NULL: handle this new entry
50156         (fts_build): Declare and use new local, continue_readdir.
50157         Prepare to be called from fts_read, when the entries
50158         from a partially-read directory have just been exhausted.
50159         In that case, we'll skip the opendir and instead use the parent's
50160         fts_dirp and derive dir_fd from that.
50161         Finally, in the readdir loop, if we read max_entries entries,
50162         exit the loop ensuring *not* to call closedir.  This is required
50163         so that fts_dirp can be reused on a subsequent call.
50164         Prompted by Ben England's report of memory exhaustion in find
50165         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
50167         maint: fts: move decl of `dp' down into while loop; split a long line
50168         * lib/fts.c (fts_build): No semantic change.
50170         fts: add/use new struct member, fts_dirp
50171         We are about to use this to manage any directory with
50172         too many entries to read all of them into memory at once.
50173         To do that, we'll need to save the DIR* pointer in each
50174         affected FTSENT struct.
50175         * lib/fts_.h: Include <dirent.h>.
50176         (struct FTSENT) [fts_dirp]: New member.
50177         * lib/fts.c (closedir_and_clear): Define.
50178         Use it in place of closedir so that we are sure to
50179         clear the new fts_dirp member when done with it.
50180         (fts_alloc): Initialize the new member.
50181         (fts_lfree): Free, if needed.
50183         maint: fts: give __opendir2 a new parameter and rename
50184         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
50185         than surreptitiously using sole caller's "dir_fd".
50186         (fts_opendir): Rename from __opendir2.
50188         maint: fts.c: remove __opendir2's now-unused parameter, oflag
50189         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
50191         maint: fts.c: correct off-by-one indentation
50192         * lib/fts.c (fts_build): Correct indentation, change style
50193         of a couple of block comments, and bracing style.
50195         maint: fts.c: move __opendir2 #define "up" out of function body
50196         * lib/fts.c (__opendir2): Move "up".  No semantic change.
50198         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
50199         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
50200         out for a long time and besides was useful only on BSD systems.
50202 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
50204         regex: port to Stratus OpenVOS
50205         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
50206         define to empty, rather than attempting nonportable optimizations.
50207         Problem reported by Paul Green in:
50208         http://lists.gnu.org/r/bug-diffutils/2011-08/msg00047.html
50209         and fix suggested by Eric Blake in:
50210         http://lists.gnu.org/r/bug-gnulib/2011-08/msg00143.html
50212 2011-08-17  Eric Blake  <eblake@redhat.com>
50214         getcwd: fix test failures on mingw
50215         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
50216         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
50217         test if long directory cannot be created, and allow mingw errno.
50219         getcwd-lgpl: fix m4 to match relaxed test for BSD
50220         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
50221         (gl_FUNC_GETCWD_SIGNATURE): New macro.
50222         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
50223         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
50224         signature problem.
50226         getcwd: fix compilation on mingw64
50227         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
50228         getcwd.
50229         Reported by Marc-André Lureau.
50231         pipe2: silence compiler warning
50232         * lib/pipe2.c (pipe2): Hide label if it is not used.
50234 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
50236         relocatable-prog: fix link error
50237         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
50238         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
50239         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
50240         into modules/relocatable-lib without noticing that
50241         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
50242         also needs to build relocatable.c.
50244 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
50246         getaddrinfo: fix sh typo in gai_strerrorA decl checking
50247         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
50248         shell code: it contained a 'break' that was not in a loop.
50249         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
50250         via a shell-language loop; this may have been true in old Autoconf
50251         versions, but it's not true in Autoconf 2.68.  I found this bug
50252         when testing coreutils git on Solaris 8, whose shell complains
50253         about the syntax error.
50255 2011-08-12  Simon Josefsson  <simon@josefsson.org>
50257         * lib/base64.c: Fix comment to reference RFC 4648.
50258         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
50259         <gvtulder@gmail.com>.
50261 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
50263         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
50265         po/Makefile.in.in: fix make -q problem
50266         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
50267         rule, since there's no file named 'check-macro-version' and its
50268         use as a file breaks make -q.
50269         (all): Don't depend on check-macro-version.
50270         (CHECK_MACRO_VERSION): New macro.
50271         (stamp-po): Use it.
50273         configmake: fix make -q problem
50274         * modules/configmake (configmake.h): Update configmake.h's time stamp
50275         even if the file does not change.  Otherwise, 'make -q' fails.
50276         Problem reported by Simon Josefsson in
50277         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00088.html>.
50279 2011-08-11  Jim Meyering  <meyering@redhat.com>
50281         git-version-gen: correct the advice in a comment
50282         * build-aux/git-version-gen: Correct comment.
50283         Don't recommend to list .tarball-version in .gitignore.
50285 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
50287         base64: fix off-by-one buffer size bug
50288         Problem and (trivial) fix reported by Gijs van Tulder in
50289         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00083.html>.
50290         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
50291         * tests/test-base64.c (main): Catch the bug.
50293 2011-08-10  Eric Blake  <eblake@redhat.com>
50295         closein: correct comments
50296         * lib/closein.c (close_stdin): Improve comments.
50298 2011-08-09  Bruno Haible  <bruno@clisp.org>
50300         More tests for 'fseeko'.
50301         * tests/test-fseeko3.c: New file, from Eric Blake.
50302         * tests/test-fseeko3.sh: New file.
50303         * modules/fseeko-tests (Files): Add them.
50304         (TESTS): Add test-fseeko3.sh.
50305         (check_PROGRAMS): Add test-fseeko3.
50307 2011-08-09  Eric Blake  <eblake@redhat.com>
50309         fseeko: remove unneeded hack
50310         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
50312         fseeko: fix bug on glibc
50313         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
50314         Reported by John W. Eaton.
50316 2011-08-08  Bruno Haible  <bruno@clisp.org>
50318         unictype/base: Fix interoperability with preinstalled libunistring.
50319         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
50320         Reported by Simon Josefsson.
50322 2011-08-08  Bruno Haible  <bruno@clisp.org>
50324         iswblank: Detect declaration correctly.
50325         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
50326         AC_CHECK_DECLS invocation.
50328 2011-08-08  Bruno Haible  <bruno@clisp.org>
50330         tcgetsid: Detect declaration correctly.
50331         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
50332         AC_CHECK_DECLS invocation.
50333         Reported by Simon Josefsson.
50335 2011-08-08  Eric Blake  <eblake@redhat.com>
50337         largefile: fix typo that regressed large file support
50338         * modules/largefile (configure.ac-early): Fix section name.
50340 2011-08-06  Karl Berry  <karl@gnu.org>
50342         * MODULES.html.sh (func_all_files): _Noreturn is no longer
50343         a separate module.
50345 2011-08-05  Simon Josefsson  <simon@josefsson.org>
50347         openat: Fix warnings and commens when building unlinkat.c on Hurd.
50348         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
50349         get prototype for free.
50351 2011-08-04  Bruno Haible  <bruno@clisp.org>
50353         Tests for module 'pathmax'.
50354         * modules/pathmax-tests: New file.
50355         * tests/test-pathmax.c: New file.
50357         canonicalize-lgpl: Support larger filenames on the Hurd.
50358         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
50359         Reported by Paul Eggert.
50361         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
50362         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
50363         * lib/chdir-long.h: Include pathmax.h.
50364         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
50365         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
50366         (PATH_MAX): Remove code that is done by pathmax.h.
50367         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
50368         * lib/tmpfile.c: Add a comment.
50369         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
50370         * modules/chdir-long (Depends-on): Add pathmax.
50371         * modules/getcwd (Depends-on): Add pathmax.
50372         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
50373         is not defined.
50374         * doc/posix-headers/limits.texi: Mention the pathmax module.
50375         * NEWS: Mention the change.
50377 2011-08-02  Bruno Haible  <bruno@clisp.org>
50379         pthread_sigmask: Actually use results of gl_THREADLIB.
50380         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
50381         gl_THREADLIB, not gl_[]THREADLIB.
50382         Reported by Eric Blake.
50384 2011-08-02  Jim Meyering  <meyering@redhat.com>
50386         maint.mk: relax the default _gl_TS_function_match regexp
50387         * top/maint.mk (_gl_TS_function_match): Don't require at least one
50388         space between function name and "(" in an "extern" declaration.
50389         That would fail to match a decl with no space there: extern void foo();
50391 2011-07-31  Iain Nicol  <iain@thenicols.net>
50393         git-version-gen: document that EXTRA_DIST must include .version
50394         * build-aux/git-version-gen: In the how-to-use comment, document
50395         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
50396         will fail when run from an unpacked distribution tarball.
50398 2011-08-01  Bruno Haible  <bruno@clisp.org>
50400         wctype-h: Fix last change.
50401         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
50402         REPLACE_TOWLOWER to 0.
50403         Reported by Sam Steingold <sds@gnu.org>.
50405 2011-07-31  Bruno Haible  <bruno@clisp.org>
50407         frexpl: Update autoconf test.
50408         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
50409         according to changes of 2011-06-20.
50411 2011-07-31  Bruno Haible  <bruno@clisp.org>
50413         sys_utsname: Add support for Minix.
50414         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
50415         <sys/utsname.h>.
50416         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
50417         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
50419 2011-07-31  Bruno Haible  <bruno@clisp.org>
50421         strings: Add support for Minix.
50422         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
50423         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
50424         * doc/posix-headers/strings.texi: Document the Minix problem.
50426 2011-07-31  Bruno Haible  <bruno@clisp.org>
50428         wctype-h: Add support for Minix.
50429         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
50430         REPLACE_TOWLOWER.
50431         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
50432         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
50433         REPLACE_ISWCNTRL.
50435 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
50437         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
50438         This is a performance improvement for 64-bit hosts: it causes the
50439         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
50441 2011-07-31  Bruno Haible  <bruno@clisp.org>
50443         stdioext: Add support for Minix.
50444         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
50445         * lib/fpurge.c (fpurge): Likewise.
50446         * lib/freadahead.c (freadahead): Likewise.
50447         * lib/freadable.c (freadable): Likewise.
50448         * lib/freading.c (freading): Likewise.
50449         * lib/freadptr.c (freadptr): Likewise.
50450         * lib/freadseek.c (freadptrinc): Likewise.
50451         * lib/fseeko.c (rpl_fseeko): Likewise.
50452         * lib/fseterr.c (fseterr): Likewise.
50453         * lib/fwritable.c (fwritable): Likewise.
50454         * lib/fwriting.c (fwriting): Likewise.
50455         * lib/fflush.c (clear_ungetc_buffer): Update comment.
50456         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
50458 2011-07-31  Bruno Haible  <bruno@clisp.org>
50460         errno: Port to Minix.
50461         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
50462         ECONNABORTED are defined.
50463         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
50464         GNULIB_defined_ECONNABORTED): New macros.
50465         * lib/strerror-override.h (strerror_override): Test also
50466         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
50467         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
50468         ECONNABORTED.
50469         * doc/posix-headers/errno.texi: Mention the Minix problem.
50471 2011-07-31  Bruno Haible  <bruno@clisp.org>
50473         Work around declaration collisions on Minix.
50474         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
50475         defined, set REPLACE_MBSINIT.
50476         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
50477         defined, set REPLACE_MBRTOWC.
50478         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
50479         set REPLACE_MBRLEN.
50480         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
50481         defined, set REPLACE_MBSRTOWCS.
50482         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
50483         defined, set REPLACE_WCRTOMB.
50484         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
50485         defined, set REPLACE_WCSRTOMBS.
50487 2011-07-31  Bruno Haible  <bruno@clisp.org>
50489         Add support for Minix with ACK compiler.
50490         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
50491         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
50492         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
50494 2011-07-31  Bruno Haible  <bruno@clisp.org>
50496         Documentation about Minix.
50497         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
50498         * doc/glibc-headers/*.texi: Likewise.
50499         * doc/posix-functions/*.texi: Likewise.
50500         * doc/glibc-functions/*.texi: Likewise.
50502 2011-07-31  Bruno Haible  <bruno@clisp.org>
50504         snippet/warn-on-use: Fix indentation.
50505         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
50507 2011-07-25  Jim Meyering  <meyering@redhat.com>
50509         tests: test-update-copyright.sh: remove unnecessary "rm" commands
50510         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
50511         commands.
50513 2011-07-27  Jim Meyering  <meyering@redhat.com>
50515         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
50516         * top/maint.mk (gl_extract_significant_defines_): Now that
50517         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
50518         gnulib/lib/signal.in.h, and now that we recommend to
50519         define-if-undefined those two symbols in application code,
50520         we must filter them out of the "significant" list.
50521         This avoids a "make syntax-check" failure in coreutils.
50523 2011-07-26  Eric Blake  <eblake@redhat.com>
50525         warnings: add comments about previous patch
50526         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
50527         * m4/include_next.m4: Likewise.
50528         * m4/warn-on-use.m4: Likewise.
50529         * m4/warnings.m4: Likewise, and simplify use.
50530         Suggested by Stefano Lattarini.
50532         include-next, warnings: support older autoconf
50533         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
50534         AS_VAR_PUSHDEF in a way that works with older autoconf.
50535         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
50536         Reported by Daniel P. Berrange.
50538 2011-07-25  Bruno Haible  <bruno@clisp.org>
50540         fseek, ftell: Fix doc.
50541         * doc/posix-functions/fseek.texi: Reword statement about
50542         AC_SYS_LARGEFILE.
50543         * doc/posix-functions/ftell.texi: Likewise.
50545 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
50546             Bruno Haible  <bruno@clisp.org>
50548         Add dependencies to the 'largefile' module.
50549         * modules/fopen (Depends-on): Add 'largefile'.
50550         * modules/freopen (Depends-on): Likewise.
50551         * modules/fseeko (Depends-on): Likewise.
50552         * modules/ftello (Depends-on): Likewise.
50553         * modules/glob (Depends-on): Likewise.
50554         * modules/lseek (Depends-on): Likewise.
50555         * modules/lstat (Depends-on): Likewise.
50556         * modules/mkostemp (Depends-on): Likewise.
50557         * modules/mkostemps (Depends-on): Likewise.
50558         * modules/mkstemp (Depends-on): Likewise.
50559         * modules/mkstemps (Depends-on): Likewise.
50560         * modules/open (Depends-on): Likewise.
50561         * modules/openat (Depends-on): Likewise.
50562         * modules/pread (Depends-on): Likewise.
50563         * modules/pwrite (Depends-on): Likewise.
50564         * modules/scandir (Depends-on): Likewise.
50565         * modules/stat (Depends-on): Likewise.
50566         * modules/tmpfile (Depends-on): Likewise.
50567         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
50568         since the containing module now depends on the largefile module.
50569         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
50570         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
50571         off_t is fixed by gnulib.
50572         * doc/posix-functions/freopen.texi: Likewise.
50573         * doc/posix-functions/fseeko.texi: Likewise.
50574         * doc/posix-functions/fstatat.texi: Likewise.
50575         * doc/posix-functions/ftello.texi: Likewise.
50576         * doc/posix-functions/glob.texi: Likewise.
50577         * doc/posix-functions/lseek.texi: Likewise.
50578         * doc/posix-functions/lstat.texi: Likewise.
50579         * doc/posix-functions/mkstemp.texi: Likewise.
50580         * doc/posix-functions/open.texi: Likewise.
50581         * doc/posix-functions/openat.texi: Likewise.
50582         * doc/posix-functions/pread.texi: Likewise.
50583         * doc/posix-functions/pwrite.texi: Likewise.
50584         * doc/posix-functions/scandir.texi: Likewise.
50585         * doc/posix-functions/stat.texi: Likewise.
50586         * doc/posix-functions/tmpfile.texi: Likewise.
50587         * doc/glibc-functions/mkostemp.texi: Likewise.
50588         * doc/glibc-functions/mkostemps.texi: Likewise.
50589         * doc/glibc-functions/mkstemps.texi: Likewise.
50591 2011-07-25  Bruno Haible  <bruno@clisp.org>
50593         fcntl: Move AC_LIBOBJ invocation to module description.
50594         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
50595         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
50597         fcntl: Remove call-in from fchdir.m4.
50598         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
50599         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
50601         dup3: Remove potential call-in from fchdir.m4.
50602         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
50603         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
50605         dup2: Move AC_LIBOBJ invocation to module description.
50606         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
50607         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
50608         Don't invoke AC_LIBOBJ.
50609         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
50611         dup2: Remove call-in from fchdir.m4.
50612         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
50613         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
50615         fclose: Move AC_LIBOBJ invocation to module description.
50616         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
50617         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
50618         to 1.
50619         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
50621         fclose: Remove call-in from close.m4.
50622         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
50623         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
50625         close: Move AC_LIBOBJ invocation to module description.
50626         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
50627         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
50628         1.
50629         * modules/close (configure.ac): Invoke AC_LIBOBJ.
50631         close: Remove call-in from fchdir.m4.
50632         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
50633         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
50635         open: Move AC_LIBOBJ invocation to module description.
50636         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
50637         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
50638         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
50640         open: Remove call-in from fchdir.m4.
50641         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
50642         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
50644         fchdir: Start to remove gl_REPLACE_* idiom.
50645         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
50646         (gl_FUNC_FCHDIR): Invoke it.
50648 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
50650         * lib/ftell.c (ftell): Comment out cast.
50652         close: use gl_REPLACE_FCLOSE only if defined
50653         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
50654         is defined.  The close module doesn't depend on the fclose module
50655         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
50656         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00392.html>.
50657         I reproduced the problem with "./gnulib-tool --test close sys_socket".
50659 2011-07-24  Jim Meyering  <meyering@redhat.com>
50661         test-select.h: avoid warning when using gcc's -Wmissing-declarations
50662         * tests/test-select.h (test_function): Declare as "static".
50664 2011-07-24  Bruno Haible  <bruno@clisp.org>
50666         doc: Mention the effects of AC_SYS_LARGEFILE.
50667         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
50668         on this function.
50669         * doc/posix-functions/aio_error.texi: Likewise.
50670         * doc/posix-functions/aio_fsync.texi: Likewise.
50671         * doc/posix-functions/aio_read.texi: Likewise.
50672         * doc/posix-functions/aio_return.texi: Likewise.
50673         * doc/posix-functions/aio_suspend.texi: Likewise.
50674         * doc/posix-functions/aio_write.texi: Likewise.
50675         * doc/posix-functions/fgetpos.texi: Likewise.
50676         * doc/posix-functions/fopen.texi: Likewise.
50677         * doc/posix-functions/freopen.texi: Likewise.
50678         * doc/posix-functions/fsetpos.texi: Likewise.
50679         * doc/posix-functions/fstatvfs.texi: Likewise.
50680         * doc/posix-functions/ftruncate.texi: Likewise.
50681         * doc/posix-functions/ftw.texi: Likewise.
50682         * doc/posix-functions/getrlimit.texi: Likewise.
50683         * doc/posix-functions/glob.texi: Likewise.
50684         * doc/posix-functions/lio_listio.texi: Likewise.
50685         * doc/posix-functions/lockf.texi: Likewise.
50686         * doc/posix-functions/mkstemp.texi: Likewise.
50687         * doc/posix-functions/mmap.texi: Likewise.
50688         * doc/posix-functions/nftw.texi: Likewise.
50689         * doc/posix-functions/openat.texi: Likewise.
50690         * doc/posix-functions/opendir.texi: Likewise.
50691         * doc/posix-functions/posix_fadvise.texi: Likewise.
50692         * doc/posix-functions/posix_fallocate.texi: Likewise.
50693         * doc/posix-functions/pread.texi: Likewise.
50694         * doc/posix-functions/pwrite.texi: Likewise.
50695         * doc/posix-functions/readdir.texi: Likewise.
50696         * doc/posix-functions/readdir_r.texi: Likewise.
50697         * doc/posix-functions/rewinddir.texi: Likewise.
50698         * doc/posix-functions/scandir.texi: Likewise.
50699         * doc/posix-functions/seekdir.texi: Likewise.
50700         * doc/posix-functions/setrlimit.texi: Likewise.
50701         * doc/posix-functions/statvfs.texi: Likewise.
50702         * doc/posix-functions/telldir.texi: Likewise.
50703         * doc/posix-functions/tmpfile.texi: Likewise.
50704         * doc/posix-functions/truncate.texi: Likewise.
50705         * doc/glibc-functions/fallocate.texi: Likewise.
50706         * doc/glibc-functions/fstatfs.texi: Likewise.
50707         * doc/glibc-functions/fts_children.texi: Likewise.
50708         * doc/glibc-functions/fts_read.texi: Likewise.
50709         * doc/glibc-functions/getdirentries.texi: Likewise.
50710         * doc/glibc-functions/mkostemp.texi: Likewise.
50711         * doc/glibc-functions/mkostemps.texi: Likewise.
50712         * doc/glibc-functions/mkstemps.texi: Likewise.
50713         * doc/glibc-functions/preadv.texi: Likewise.
50714         * doc/glibc-functions/pwritev.texi: Likewise.
50715         * doc/glibc-functions/sendfile.texi: Likewise.
50716         * doc/glibc-functions/statfs.texi: Likewise.
50718 2011-07-24  Bruno Haible  <bruno@clisp.org>
50720         doc: Fix typo.
50721         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
50723 2011-07-24  Bruno Haible  <bruno@clisp.org>
50725         doc: Mention fsusage.
50726         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
50728 2011-07-24  Bruno Haible  <bruno@clisp.org>
50730         doc: Mention new glibc headers and functions.
50731         * doc/glibc-headers/gshadow.texi: New file.
50732         * doc/glibc-functions/endsgent.texi: New file.
50733         * doc/glibc-functions/fgetsgent.texi: New file.
50734         * doc/glibc-functions/fgetsgent_r.texi: New file.
50735         * doc/glibc-functions/getsgent.texi: New file.
50736         * doc/glibc-functions/getsgent_r.texi: New file.
50737         * doc/glibc-functions/getsgnam.texi: New file.
50738         * doc/glibc-functions/getsgnam_r.texi: New file.
50739         * doc/glibc-functions/putsgent.texi: New file.
50740         * doc/glibc-functions/setsgent.texi: New file.
50741         * doc/glibc-functions/sgetsgent.texi: New file.
50742         * doc/glibc-functions/sgetsgent_r.texi: New file.
50743         * doc/glibc-functions/malloc_info.texi: New file.
50744         * doc/glibc-functions/preadv.texi: New file.
50745         * doc/glibc-functions/pwritev.texi: New file.
50746         * doc/glibc-functions/register_printf_modifier.texi: New file.
50747         * doc/glibc-functions/register_printf_specifier.texi: New file.
50748         * doc/glibc-functions/register_printf_type.texi: New file.
50749         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
50750         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
50751         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
50752         * doc/glibc-functions/pthread_getname_np.texi: New file.
50753         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
50754         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
50755         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
50756         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
50757         * doc/glibc-functions/pthread_setname_np.texi: New file.
50758         * doc/glibc-functions/pthread_sigqueue.texi: New file.
50759         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
50760         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
50761         * doc/glibc-functions/qsort_r.texi: New file.
50762         * doc/glibc-functions/quick_exit.texi: New file.
50763         * doc/glibc-functions/syncfs.texi: New file.
50764         * doc/gnulib.texi: Include them.
50765         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
50766         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
50767         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
50768         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
50769         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
50770         * doc/glibc-functions/execvpe.texi: Likewise.
50772 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
50774         ftell: don't include <unistd.h>
50775         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
50776         guaranteed to define off_t, and the ftell module depends on the
50777         stdio module.
50779         ftell: do not assume wraparound signed arithmetic
50780         * lib/ftell.c: Include <limits.h>.
50781         (ftell): Don't assume wraparound signed arithmetic.
50783 2011-07-24  Bruno Haible  <bruno@clisp.org>
50785         close: No longer depend on module 'fclose'.
50786         * modules/close (Depends-on): Remove fclose.
50787         * NEWS: Mention the change.
50788         Suggested by Sam Steingold <sds@gnu.org>.
50790 2011-07-24  Bruno Haible  <bruno@clisp.org>
50792         fsusage: Enable large volume support on AIX >= 5.2.
50793         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
50794         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
50795         instead of STAT_STATVFS.
50796         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
50798         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
50799         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
50800         f_blocks field only on MacOS X.
50802         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
50803         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
50804         * modules/fsusage (Depends-on): Add largefile.
50806 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
50808         * README: Modernize discussion of signed integers.
50809         Assuming overflow wraparound is no longer safe.
50810         Mention ones' complement and signed magnitude.
50812 2011-07-22  Bruno Haible  <bruno@clisp.org>
50814         select tests, pselect tests: Refactor.
50815         * tests/test-select.h: New file, extracted from tests/test-select.c.
50816         (select_fn): New type.
50817         (test, do_select, do_select_nowait, do_select_wait, test_tty,
50818         test_connect_first, test_accept_first, test_pair, test_socket_pair,
50819         test_pipe): Add my_select argument.
50820         (test_function): Renamed from main. Add my_select argument.
50821         * tests/test-select.c: Move most code to tests/test-select.h. Include
50822         test-select.h.
50823         * modules/select-tests (Files): Add tests/test-select.h.
50824         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
50825         (my_select, main): New functions.
50826         * modules/pselect-tests (Files): Add tests/test-select.h,
50827         tests/macros.h, tests/signature.h.
50828         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
50829         (configure.ac): Check for <sys/wait.h>.
50831 2011-07-22  Bruno Haible  <bruno@clisp.org>
50833         sys_select tests: Check the signature of FD_*.
50834         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
50835         signature tests from here...
50836         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
50837         here.
50838         * modules/sys_select-tests (Files): Add tests/signature.h.
50840 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
50842         largefile: new module, replacing large-inode
50843         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
50844         * MODULES.html.sh: Add largefile, remove large-inode.
50845         * modules/largefile, m4/largefile.m4: New files.
50846         * modules/large-inode, m4/large-inode.m4: Remove.
50848         fsusage: port to MacOS X 10.7 with 4 TiB file systems
50849         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
50850         implementations that use only 32 bits to count blocks.
50851         On typical hosts with 1024-byte blocks, this fails with file
50852         systems as small as 4 TiB.  Problem reported by Herb Wartens
50853         <http://debbugs.gnu.org/9140> and this should also fix a similar
50854         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
50856         large-inode: New module
50857         * MODULES.html.sh: Add it.
50858         * modules/large-inode, m4/large-inode.m4: New files.
50860         extensions: Enable extensions on MacOS X 10.5 and later.
50861         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
50863 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
50865         file-has-acl: use acl_extended_file_nofollow if available
50866         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
50867         (acl_extended_file): New macro.
50868         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
50869         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
50871 2011-07-21  Bruno Haible  <bruno@clisp.org>
50873         Declare system functions in a way that works with C++.
50874         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
50875         declare fdopendir as extern "C".
50876         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
50877         declare frexpl as extern "C".
50878         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
50879         declare gai_strerror as extern "C".
50880         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
50881         programs, declare gai_strerror as extern "C".
50882         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
50883         declare getlogin_r as extern "C".
50884         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
50885         as extern "C".
50886         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
50887         declare ldexpl as extern "C".
50888         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
50889         as extern "C".
50890         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
50891         program, declare getmntinfo as extern "C".
50892         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
50893         stpncpy as extern "C".
50894         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
50895         program, declare __xpg_strerror_r as extern "C".
50896         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
50897         strndup as extern "C".
50898         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
50899         declare memset and bzero as extern "C".
50900         Reported by Sam Steingold <sds@gnu.org>.
50902 2011-07-12  Jim Meyering  <meyering@redhat.com>
50904         maint.mk: prohibit inclusion of "verify.h" without use
50905         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
50907 2011-07-19  Pádraig Brady  <P@draigBrady.com>
50909         timer-time: A new module to check for timer_settime()
50910         * m4/timer_time.m4: Check for the posix function.
50911         * modules/timer-time: Add the new module.
50912         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
50913         Mention it.
50915 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
50916             Bruno Haible  <bruno@clisp.org>
50918         pthread_sigmask: assume POSIX threads if --avoid=threadlib
50919         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
50920         not defined, assume POSIX threads and look for pthread_sigmask in
50921         $LIBS, without changing $CPPFLAGS.
50923 2011-07-19  Bruno Haible  <bruno@clisp.org>
50925         strstr: Update cross-compilation guess.
50926         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
50927         CPUs, guess no, in view of glibc
50928         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
50929         Suggested by Eric Blake. Reported by Reuben Thomas.
50931 2011-07-19  Pádraig Brady  <P@draigBrady.com>
50933         getopt-gnu: suppress core dumps from detection code
50934         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
50935         to suppress core dumps that may well occur on glibc systems.
50936         * modules/getopt-gnu: Depend on nocrash.
50938 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
50940         pthread_sigmask: ensure usleep is declared
50941         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
50942         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
50944 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
50946         doc: Document NonStop portability issues.
50947         * doc/posix-functions/sigaction.texi (sigaction):
50948         * doc/posix-headers/signal.texi (signal.h):
50949         Document NonStop.  See Joachim Schmitz in
50950         http://lists.gnu.org/r/bug-coreutils/2011-07/msg00062.html
50952 2011-07-15  Bruno Haible  <bruno@clisp.org>
50954         ffsl, ffsll: Avoid unportable behaviour.
50955         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
50957 2011-07-15  Bruno Haible  <bruno@clisp.org>
50959         ffs: More tests.
50960         * tests/test-ffs.c (NBITS): New macro.
50961         (main): Add more tests.
50962         * tests/test-ffsl.c (NBITS): New macro.
50963         (main): Add more tests.
50964         * tests/test-ffsll.c (NBITS): New macro.
50965         (main): Add more tests.
50967 2011-07-15  Eric Blake  <eblake@redhat.com>
50969         ffsl, ffsll: new modules
50970         * modules/ffsl: New file.
50971         * modules/ffsll: Likewise.
50972         * m4/ffsl.m4: Likewise.
50973         * m4/ffsll.m4: Likewise.
50974         * lib/ffsl.c: Likewise.
50975         * lib/ffsl.h: Likewise.
50976         * lib/ffsll.c: Likewise.
50977         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
50978         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
50979         * modules/string (Makefile.am): Substitute witnesses.
50980         * lib/strings.in.h (ffsl, ffsll): Declare.
50981         * modules/ffsl-tests: New test file.
50982         * modules/ffsll-tests: Likewise.
50983         * tests/test-ffsl.c: Likewise.
50984         * tests/test-ffsll.c: Likewise.
50985         * MODULES.html.sh (Integer arithmetic functions): Mention it.
50986         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
50987         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
50989         ffs: fix m4 prerequisite
50990         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
50992         ffs: avoid undefined behavior
50993         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
50994         * tests/test-ffs.c (naive, main): Avoid signed shifts.
50995         Reported by Bruno Haible.
50997 2011-07-12  Bruno Haible  <bruno@clisp.org>
50999         pthread_sigmask: Rely on module 'threadlib'.
51000         * modules/pthread_sigmask (Depends-on): Add threadlib.
51001         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
51002         is defined.
51004 2011-07-12  Bruno Haible  <bruno@clisp.org>
51006         regex: Depend on module 'strcase'.
51007         * modules/regex (Depends-on): Add strcase, for strcasecmp().
51009 2011-07-12  Jim Meyering  <meyering@redhat.com>
51011         warn-on-use: fix typo in file name
51012         * modules/snippet/warn-on-use (Files): Correct file name:
51013         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
51015 2011-07-12  Bruno Haible  <bruno@clisp.org>
51017         strings: Document module.
51018         * doc/posix-headers/strings.texi: Mention module 'strings'.
51020 2011-07-12  Bruno Haible  <bruno@clisp.org>
51022         Rename module '_Noreturn' to 'snippet/_Noreturn'.
51023         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
51024         (Files, Makefile.am): Update.
51025         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
51026         * modules/stdlib (Depends-on): Update.
51028 2011-07-12  Bruno Haible  <bruno@clisp.org>
51030         * NEWS: Mention the changes.
51032         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
51033         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
51034         (Files, Makefile.am): Update.
51035         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
51036         * modules/arpa_inet (Depends-on): Update.
51037         * modules/ctype (Depends-on): Update.
51038         * modules/dirent (Depends-on): Update.
51039         * modules/fcntl-h (Depends-on): Update.
51040         * modules/glob (Depends-on): Update.
51041         * modules/iconv-h (Depends-on): Update.
51042         * modules/inttypes-incomplete (Depends-on): Update.
51043         * modules/langinfo (Depends-on): Update.
51044         * modules/locale (Depends-on): Update.
51045         * modules/math (Depends-on): Update.
51046         * modules/netdb (Depends-on): Update.
51047         * modules/poll-h (Depends-on): Update.
51048         * modules/pty (Depends-on): Update.
51049         * modules/search (Depends-on): Update.
51050         * modules/signal (Depends-on): Update.
51051         * modules/spawn (Depends-on): Update.
51052         * modules/stdio (Depends-on): Update.
51053         * modules/stdlib (Depends-on): Update.
51054         * modules/string (Depends-on): Update.
51055         * modules/strings (Depends-on): Update.
51056         * modules/sys_file (Depends-on): Update.
51057         * modules/sys_ioctl (Depends-on): Update.
51058         * modules/sys_select (Depends-on): Update.
51059         * modules/sys_socket (Depends-on): Update.
51060         * modules/sys_stat (Depends-on): Update.
51061         * modules/sys_time (Depends-on): Update.
51062         * modules/sys_times (Depends-on): Update.
51063         * modules/sys_utsname (Depends-on): Update.
51064         * modules/sys_wait (Depends-on): Update.
51065         * modules/termios (Depends-on): Update.
51066         * modules/time (Depends-on): Update.
51067         * modules/unistd (Depends-on): Update.
51068         * modules/wchar (Depends-on): Update.
51069         * modules/wctype-h (Depends-on): Update.
51070         * MODULES.html.sh (Support for building libraries and executables):
51071         Update.
51073         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
51074         * modules/snippet/unused-parameter: Renamed from
51075         modules/unused-parameter.
51076         (Files, Makefile.am): Update.
51077         * build-aux/snippet/unused-parameter.h: Renamed from
51078         build-aux/unused-parameter.h.
51079         * modules/selinux-h (Depends-on): Update.
51080         * modules/unistr/base (Depends-on): Update.
51081         * MODULES.html.sh (Core language properties): Update.
51083         Rename module 'link-warning' to 'snippet/link-warning'.
51084         * modules/snippet/link-warning: Renamed from modules/link-warning.
51085         (Files, Makefile.am): Update.
51086         * build-aux/snippet/link-warning.h: Renamed from
51087         build-aux/link-warning.h.
51088         * MODULES.html.sh (Support for building libraries and executables):
51089         Update.
51091         Rename module 'c++defs' to 'snippet/c++defs'.
51092         * modules/snippet/c++defs: Renamed from modules/c++defs.
51093         (Files, Makefile.am): Update.
51094         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
51095         * modules/arpa_inet (Depends-on): Update.
51096         * modules/ctype (Depends-on): Update.
51097         * modules/dirent (Depends-on): Update.
51098         * modules/fcntl-h (Depends-on): Update.
51099         * modules/glob (Depends-on): Update.
51100         * modules/iconv-h (Depends-on): Update.
51101         * modules/langinfo (Depends-on): Update.
51102         * modules/locale (Depends-on): Update.
51103         * modules/math (Depends-on): Update.
51104         * modules/netdb (Depends-on): Update.
51105         * modules/poll-h (Depends-on): Update.
51106         * modules/pty (Depends-on): Update.
51107         * modules/search (Depends-on): Update.
51108         * modules/signal (Depends-on): Update.
51109         * modules/spawn (Depends-on): Update.
51110         * modules/stdio (Depends-on): Update.
51111         * modules/stdlib (Depends-on): Update.
51112         * modules/string (Depends-on): Update.
51113         * modules/strings (Depends-on): Update.
51114         * modules/sys_ioctl (Depends-on): Update.
51115         * modules/sys_select (Depends-on): Update.
51116         * modules/sys_socket (Depends-on): Update.
51117         * modules/sys_stat (Depends-on): Update.
51118         * modules/sys_time (Depends-on): Update.
51119         * modules/sys_wait (Depends-on): Update.
51120         * modules/termios (Depends-on): Update.
51121         * modules/time (Depends-on): Update.
51122         * modules/unistd (Depends-on): Update.
51123         * modules/wchar (Depends-on): Update.
51124         * modules/wctype-h (Depends-on): Update.
51126         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
51127         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
51128         (Files, Makefile.am): Update.
51129         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
51130         * modules/argv-iter (Depends-on): Update.
51131         * modules/arpa_inet (Depends-on): Update.
51132         * modules/dirent (Depends-on): Update.
51133         * modules/fcntl-h (Depends-on): Update.
51134         * modules/fnmatch (Depends-on): Update.
51135         * modules/getopt-posix (Depends-on): Update.
51136         * modules/glob (Depends-on): Update.
51137         * modules/iconv-h (Depends-on): Update.
51138         * modules/inttypes-incomplete (Depends-on): Update.
51139         * modules/locale (Depends-on): Update.
51140         * modules/math (Depends-on): Update.
51141         * modules/netdb (Depends-on): Update.
51142         * modules/search (Depends-on): Update.
51143         * modules/signal (Depends-on): Update.
51144         * modules/spawn (Depends-on): Update.
51145         * modules/stdio (Depends-on): Update.
51146         * modules/stdlib (Depends-on): Update.
51147         * modules/string (Depends-on): Update.
51148         * modules/strings (Depends-on): Update.
51149         * modules/sys_socket (Depends-on): Update.
51150         * modules/sys_stat (Depends-on): Update.
51151         * modules/sys_time (Depends-on): Update.
51152         * modules/sys_times (Depends-on): Update.
51153         * modules/sys_utsname (Depends-on): Update.
51154         * modules/time (Depends-on): Update.
51155         * modules/unistd (Depends-on): Update.
51156         * modules/wchar (Depends-on): Update.
51157         * MODULES.html.sh (Support for building libraries and executables):
51158         Update.
51160 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
51162         Improvements on _Noreturn and related modules.
51164         modules/_Exit-tests: test _Noreturn too
51165         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
51166         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
51167         (main): Use them.
51169         stdnoreturn, stdnoreturn-tests: remove modules
51170         They're not needed here and a bit premature for use elsewhere.  See
51171         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00209.html>.
51172         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
51173         * tests/test-stdnoreturn.c: Remove files.
51174         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
51175         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
51176         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
51177         and using noreturn.
51178         * modules/openat, modules/sigpipe-die, modules/xalloc:
51179         * modules/xmemdup0, modules/xstrtol:
51180         Remove dependency on stdnoreturn.
51182         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
51183         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
51184         Reparenthesize to avoid GCC warning.
51185         Support Microsoft's syntax.
51186         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
51188         _Noreturn-tests: remove module
51189         * modules/_Noreturn-tests: Remove.
51190         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
51191         * tests/test-_Noreturn.c: Remove.
51192         * tests/test-stdnoreturn.c: Merge from the old
51193         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
51195 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
51197         _Noreturn, stdnoreturn, and related modules.
51199         * top/maint.mk: Adjust to new noreturn support.
51200         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
51201         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
51203         xalloc: use stdnoreturn.h
51204         * lib/xalloc.h: Include <stdnoreturn.h>.
51205         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
51206         * modules/xalloc (Depends-on): Add stdnoreturn.
51208         xstrtol: use stdnoreturn.h
51209         * lib/xstrtol.h: Include <stdnoreturn.h>.
51210         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
51211         * modules/xstrtol (Depends-on): Add stdnoreturn.
51213         xmemdup0: use stdnoreturn.h
51214         * lib/xmemdup0.h: Include <stdnoreturn.h>.
51215         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
51216         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
51218         sigpipe-die: use stdnoreturn.h
51219         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
51220         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
51221         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
51223         openat: use stdnoreturn.h
51224         * lib/openat.h: Include <stdnoreturn.h>.
51225         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
51226         * modules/openat (Depends-on): Add stdnoreturn.
51228         * lib/openat-die.c (openat_save_fail): Modernize comment.
51230         * lib/xalloc-die.c (xalloc_die): Modernize comment.
51232         * lib/glthread/thread.h: Modernize comment.
51234         obstack: use _Noreturn
51235         * lib/obstack.c (__attribute__): Remove macro.
51236         (print_and_abort): Use _Noreturn.
51238         c-stack: use _Noreturn
51239         * lib/c-stack.c (die, overflow_handler, segv_handler):
51240         Use _Noreturn rather than __attribute__((noreturn)).
51242         argmatch-tests, exclude_tests: use _Noreturn
51243         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
51244         Remove.
51245         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
51247         stdlib: use _Noreturn
51248         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
51249         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
51250         * modules/stdlib (Depends-on): Add _Noreturn.
51251         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
51253         stdnoreturn-tests: new module
51254         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
51256         stdnoreturn: new module
51257         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
51258         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
51260         _Noreturn-tests: new module
51261         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
51263         _Noreturn: new module
51264         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
51265         New section, mentioning it.
51266         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
51268         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
51270 2011-07-11  Eric Blake  <eblake@redhat.com>
51272         ffs: new module
51273         * modules/ffs: New file.
51274         * m4/ffs.m4: Likewise.
51275         * lib/ffs.c: Likewise.
51276         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
51277         * modules/strings (Makefile.am): Substitute witness.
51278         (Depends-on): Add c++defs.
51279         * lib/strings.in.h (ffs): Declare.
51280         * modules/ffs-tests: New test file.
51281         * tests/test-ffs.c: Test new module.
51282         * MODULES.html.sh (Integer arithmetic functions): Mention it.
51283         * doc/posix-functions/ffs.texi (ffs): Likewise.
51285         regex: avoid compiler warning
51286         * lib/regex.c (includes): Include <strings.h>, for use of
51287         strcasecmp in regcomp.c.
51288         Reported by Joachim Schmitz.
51290 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
51292         stdint: respect system's intmax_t if INTMAX_MAX
51293         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
51294         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
51295         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
51296         long but int64_t is long long, and where we will clash with the
51297         system intmax_t if we override it.  See
51298         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00160.html>.
51299         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
51300         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
51301         similarly for UINTMAX_C.
51303 2011-07-08  Bruno Haible  <bruno@clisp.org>
51305         pthread_sigmask tests: Avoid a compiler warning.
51306         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
51307         non-zero.
51309         sigprocmask tests: A better way to avoid a compiler warning.
51310         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
51311         (main): Complain if system() returns non-zero.
51312         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
51314 2011-07-08  Bruno Haible  <bruno@clisp.org>
51316         pthread_sigmask: Work around IRIX bug.
51317         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
51318         bug.
51319         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
51320         there may be unblocked pending signals.
51321         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
51323 2011-07-08  Bruno Haible  <bruno@clisp.org>
51325         pthread_sigmask: Work around Cygwin bug.
51326         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
51327         bug.
51328         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
51329         the system's pthread_sigmask function.
51330         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
51332 2011-07-08  Bruno Haible  <bruno@clisp.org>
51334         pthread_sigmask: Work around bug in single-threaded implementation.
51335         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
51336         FreeBSD, HP-UX, Solaris bug.
51337         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
51338         * lib/pthread_sigmask.c: Include <stddef.h>.
51339         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
51340         the system's pthread_sigmask function.
51341         * modules/pthread_sigmask (configure.ac): Invoke
51342         gl_PREREQ_PTHREAD_SIGMASK.
51343         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
51344         HP-UX, Solaris.
51346 2011-07-08  Eric Blake  <eblake@redhat.com>
51348         test-sigprocmask: avoid compiler warning
51349         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
51350         * tests/test-sigprocmask.c (main): Use it to silence warning.
51351         Reported by Jim Meyering.
51353         test-snprintf: avoid compiler warning
51354         * tests/test-snprintf.c (main): Avoid shadowed declaration.
51355         * tests/test-vsnprintf.c (main): Likewise.
51356         Reported by Jim Meyering.
51358 2011-07-08  Bruno Haible  <bruno@clisp.org>
51360         Tests for module 'pthread_sigmask'.
51361         * modules/pthread_sigmask-tests: New file.
51362         * tests/test-pthread_sigmask1.c: New file, based on
51363         tests/test-sigprocmask.c.
51364         * tests/test-pthread_sigmask2.c: New file.
51366 2011-07-08  Jim Meyering  <meyering@redhat.com>
51368         test-getopt.h: avoid warning about an unused variable
51369         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
51371 2011-07-07  Jim Meyering  <meyering@redhat.com>
51373         maint: reduce list of files exempt from sc_prohibit_leading_TABs
51374         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
51375         now that it no longer contains leading TABs.
51376         Remove unused "url=FIXME" statement.
51378 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
51380         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
51381         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
51382         When gl_THREADLIB is not in use, assume that the POSIX sematics
51383         are desired.  This is better for Emacs, which uses POSIX semantics
51384         on GNUish and/or POSIXish platforms, and does not use threads at
51385         all otherwise.
51387         pthread_sigmask: fix typo when testing for libraries
51388         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
51389         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
51391 2011-07-08  Eric Blake  <eblake@redhat.com>
51393         fts: introduce FTS_NOATIME
51394         * lib/fts_.h (FTS_NOATIME): New bit flag.
51395         (FTS_OPTIONMASK): Adjust.
51396         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
51397         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
51399 2011-07-08  Bruno Haible  <bruno@clisp.org>
51401         Tests for module 'thread'.
51402         * modules/thread-tests: New file.
51403         * tests/test-thread_self.c: New file.
51404         * tests/test-thread_create.cc: New file.
51406 2011-07-08  Bruno Haible  <bruno@clisp.org>
51408         thread: Avoid gcc warnings when using gl_thread_self().
51409         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
51410         'void *'.
51411         (gl_thread_self_pointer): Update.
51413 2011-07-07  Bruno Haible  <bruno@clisp.org>
51415         signal-c++-tests: Check declaration of pthread_sigmask.
51416         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
51417         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
51418         $(LIB_PTHREAD_SIGMASK).
51420 2011-07-07  Bruno Haible  <bruno@clisp.org>
51422         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
51423         * lib/signal.in.h (pthread_sigmask): Override if
51424         REPLACE_PTHREAD_SIGMASK is 1.
51425         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
51426         REPLACE_PTHREAD_SIGMASK.
51427         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
51428         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
51429         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
51430         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
51431         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
51433 2011-07-07  Bruno Haible  <bruno@clisp.org>
51435         pthread_sigmask: Ensure declaration in <signal.h>.
51436         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
51437         include <pthread.h>.
51438         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
51439         problem.
51441 2011-07-07  Bruno Haible  <bruno@clisp.org>
51443         pthread_sigmask: Document the module.
51444         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
51446 2011-07-07  Bruno Haible  <bruno@clisp.org>
51448         pthread_sigmask: Follow gnulib conventions.
51449         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
51450         gl_PTHREAD_SIGMASK.
51451         * modules/pthread_sigmask (configure.ac): Update.
51453 2011-07-07  Bruno Haible  <bruno@clisp.org>
51455         pthread_sigmask: Make declaration C++ safe.
51456         * lib/signal.in.h: In two special conditions, just do an #include_next.
51457         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
51458         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
51459         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
51460         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
51461         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
51462         not REPLACE_PTHREAD_MASK.
51463         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
51464         not REPLACE_PTHREAD_MASK.
51465         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
51467 2011-07-07  Bruno Haible  <bruno@clisp.org>
51469         pthread_sigmask: Fix return value.
51470         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
51471         * lib/pthread_sigmask.c: New file.
51472         * modules/pthread_sigmask (Files): Add it.
51473         (configure.ac): Invoke AC_LIBOBJ.
51475 2011-07-07  Eric Blake  <eblake@redhat.com>
51477         getopt: more portable argv creation
51478         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
51479         const, use char arrays rather than strings.
51480         Suggested by Paul Eggert.
51482 2011-07-07  Bruno Haible  <bruno@clisp.org>
51484         Tests for module 'sigprocmask'.
51485         * modules/sigprocmask-tests: New file.
51486         * tests/test-sigprocmask.c: New file.
51488 2011-07-07  Bruno Haible  <bruno@clisp.org>
51490         float tests: Tweak.
51491         * tests/test-float.c (main): Tweak skip message.
51493 2011-07-07  Eric Blake  <eblake@redhat.com>
51495         getopt: avoid compiler warning during configure
51496         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
51497         assigning string literals to non-const pointer.
51499         getopt-gnu: avoid crash in glibc getopt
51500         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
51501         * tests/test-getopt.h (test_getopt): Enhance test.
51502         * tests/test-getopt_long.h (test_getopt_long): Likewise.
51503         * doc/posix-functions/getopt.texi (getopt): Document it.
51504         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
51505         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
51506         Likewise.
51508 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
51510         getopt: handle W; without long options in getopt [BZ #12922]
51511         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
51512         but no long options are defined, just return 'W'.
51514 2011-07-07  Bruno Haible  <bruno@clisp.org>
51516         Avoid literal tabs.
51517         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
51518         variable containing a tab instead of a literal tab.
51519         Reported by Jim Meyering.
51521 2011-07-07  Bruno Haible  <bruno@clisp.org>
51523         Comments.
51524         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
51526 2011-07-06  Bruno Haible  <bruno@clisp.org>
51528         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
51529         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
51530         <winsock2.h>.
51531         (rpl_fd_isset, FD_ISSET): New definitions, copied from
51532         lib/sys_socket.in.h.
51533         (close, gethostname): Hide declarations from <winsock2.h>.
51534         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
51535         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
51536         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
51537         (select): Don't override if gnulib's <sys/select.h> was already
51538         included.
51539         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
51540         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
51541         setsockopt, shutdown, select): Tweak indentation.
51543 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
51545         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
51546         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
51547         in an application that does not use the sys_select module.
51549 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
51551         poll: do not return 0 on timeout=-1
51552         * lib/poll.c: Loop with yield if no events occurred.
51554 2011-07-06  Eric Blake  <eblake@redhat.com>
51556         pthread_sigmask: always replace when not using pthread
51557         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
51558         replacement when using some threading other than pthread.  Fix
51559         logic bug.
51561 2011-07-06  Bruno Haible  <bruno@clisp.org>
51563         Comments.
51564         * m4/printf.m4: Update comments about mingw.
51566 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
51568         sys_select: define sigset_t more portably
51569         * lib/sys_select.in.h: Always include <sys/types.h>, since
51570         we now need sigset_t and mingw defines it there.
51571         Include <signal.h> before split inclusion guard, to avoid
51572         mishaps on Solaris, whose <signal.h> eventually includes us.
51573         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
51574         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
51575         which come from ...
51576         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
51577         gl_CHECK_TYPE_SIGSET_T.
51578         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
51579         does the real work.
51580         * modules/sys_select (Depends-on): Add 'signal'.
51582         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
51583         Suggested by Bruno Haible.
51585         pselect: Use pthread_sigmask, not sigprocmask.
51586         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
51587         multithreaded apps better than sigprocmask does.
51588         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
51589         sigprocmask directly.
51591 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
51593         * lib/pselect.c (pselect): Use plain name, without "rpl_".
51594         Don't #undef,  since we don't need any underlying pselect.
51595         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
51596         (Depends-on): Add select.
51597         (Link): Add $(LIBSOCKET).
51598         These changes suggested by Bruno Haible.
51600         pselect: document better
51601         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
51602         * doc/posix-functions/pselect.texi (pselect): Document new module.
51604         pthread_sigmask: new module
51605         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
51606         * doc/posix-functions/pthread_sigmask.texi: Document new module.
51607         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
51608         This is done only as a macro; I don't know how well that'll
51609         work for C++.  Move <sys/types.h> include before the include_next,
51610         to avoid mishap on Solaris.
51611         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
51612         * modules/signal (Makefile.am): Substitute the check's results.
51613         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
51615         test-pselect: new module
51616         * modules/pselect-tests, tests/test-pselect.c: New files.
51617         * tests/test-select.c, tests/test-sys_select-c++.cc:
51618         If TEST_PSELECT is defined, test pselect instead of testing select.
51620         * tests/test-sys_select.c (sigset_t): Test for it, too.
51621         Suggested by Bruno Haible.
51623 2011-07-05  Eric Blake  <eblake@redhat.com>
51625         snprintf: guarantee %1$d, for libintl
51626         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
51627         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
51628         * doc/posix-functions/snprintf.texi (snprintf): Update.
51629         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
51630         * tests/test-snprintf.c (main): Enhance test.
51631         * tests/test-vsnprintf.c (main): Likewise.
51633 2011-07-05  Jim Meyering  <meyering@redhat.com>
51635         maint: exempt stdio-read.c and stdio-write.c from the cppi check
51636         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
51637         per Bruno's request, to accommodate this idiom (no space after "#")
51638         even when the function is inside an #if block:
51639         char *
51640         gets (char *s)
51641         #undef gets
51642         {
51643           ...
51644         }
51646 2011-07-04  Jim Meyering  <meyering@redhat.com>
51648         maint: indent with spaces, not TABs, and add a rule to check this
51649         * tests/test-userspec.c: Indent with spaces, not TABs.
51650         * tests/test-argp.c: Likewise.
51651         * tests/test-c-stack2.sh: Likewise.
51652         * tests/test-parse-duration.sh: Likewise
51653         * m4/strtod.m4: Likewise.
51654         * m4/alloca.m4: Likewise.
51655         * m4/pselect.m4: Likewise.
51656         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
51658 2011-07-03  Jim Meyering  <meyering@redhat.com>
51660         maint.mk: correct omissions in prohibit_argmatch_without_use check
51661         This rule would mistakenly report that argmatch.h is included without
51662         use even when both the argmatch and invalid_arg macro were used.
51663         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
51664         of argmatch and invalid_arg.
51666 2011-07-03  Bruno Haible  <bruno@clisp.org>
51668         Comments about EINTR.
51669         * lib/safe-read.h: Explain the purpose of this module.
51670         * lib/safe-write.h: Likewise.
51671         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
51672         module.
51673         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
51674         module.
51675         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51677 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
51679         xnanosleep: Rewrite to use new dtotimespec module.
51680         It has the conversion code that used to be in xnanosleep.
51681         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
51682         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
51683         (TIME_T_MAX): Remove.
51684         (xnanosleep): Rewrite in terms of dtotimespec.
51685         * modules/xnanosleep (Depends-on): Add dtotimespec.
51686         Remove intprops, stdbool.
51688         timespec-add, timespec-sub: new modules
51689         * lib/timespec.h (timespec_add, timespec_sub): New decls.
51690         * lib/timespec-add.c, lib/timespec-sub.c:
51691         * modules/timespec-add, modules/timespec-sub: New files.
51693         dtotimespec: new module
51694         * lib/timespec.h (dtotimespec): New decl.
51695         * lib/dtotimespec.c, modules/dtotimespec: New files.
51697         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
51699         pselect: new module
51700         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
51701         (pselect): New decls.
51702         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
51703         since the standard pselect decl uses 'restrict'.
51704         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
51705         HAVE_PSELECT, REPLACE_PSELECT.
51706         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
51707         HAVE_PSELECT, REPLACE_PSELECT.
51708         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
51710         sys_select: don't depend on sys_socket
51711         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
51712         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00358.html>.
51713         This fix works on GNU and GNU-like platforms, but has not been tested
51714         on native Windows.
51715         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
51716         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
51717         gl_HEADER_SYS_SOCKET.
51718         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
51719         gl_PREREQ_SYS_H_WINSOCK2.
51721 2011-06-29  Eric Blake  <eblake@redhat.com>
51723         pipe2: fix C89 compile problem
51724         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
51725         Reported by Bruno Haible.
51727         pipe, pipe2: don't corrupt fd on error
51728         * lib/pipe.c (pipe): Leave fd unchanged on error.
51729         * lib/pipe2.c (pipe2): Likewise.
51730         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
51731         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
51733 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
51735         mmap-anon: do not use regular expressions inadvertently
51736         * m4/mmap-anon.m4: Remove trailing period from strings sought
51737         in the output.
51739 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
51741         nanosleep: fix integer overflow problem
51742         * lib/nanosleep.c (my_usleep): Don't assume signed integer
51743         arithmetic wraps around on overflow.
51745         nanosleep: simplify carrying
51746         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
51747         first call to the underyling nanosleep, not for the last one.
51748         This doesn't fix any bugs, but it simplifies the computation of
51749         the remaining delay.  Found while auditing integer overflow issues.
51751         dup2: remove test for existence of fcntl
51752         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
51753         "#if HAVE_FCNTL", in the configure-time test program.
51754         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
51755         and therefore speeds up "configure" a bit.  Found while
51756         adding the dup2 module to Emacs.
51758 2011-06-24  Eric Blake  <eblake@redhat.com>
51760         maint.mk: enhance useless header checks
51761         * top/maint.mk (_sc_header_without_use): Check both include
51762         styles.
51763         (sc_prohibit_assert_without_use)
51764         (sc_prohibit_close_stream_without_use)
51765         (sc_prohibit_getopt_without_use)
51766         (sc_prohibit_quotearg_without_use)
51767         (sc_prohibit_quote_without_use)
51768         (sc_prohibit_long_options_without_use)
51769         (sc_prohibit_inttostr_without_use)
51770         (sc_prohibit_ignore_value_without_use)
51771         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
51772         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
51773         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
51774         (sc_prohibit_hash_pjw_without_use)
51775         (sc_prohibit_safe_read_without_use)
51776         (sc_prohibit_argmatch_without_use)
51777         (sc_prohibit_canonicalize_without_use)
51778         (sc_prohibit_root_dev_ino_without_use)
51779         (sc_prohibit_openat_without_use)
51780         (sc_prohibit_c_ctype_without_use)
51781         (sc_prohibit_signal_without_use)
51782         (sc_prohibit_stdio--_without_use)
51783         (sc_prohibit_stdio-safer_without_use)
51784         (sc_prohibit_strings_without_use)
51785         (sc_prohibit_intprops_without_use)
51786         (sc_prohibit_stddef_without_use)
51787         (sc_prohibit_xfreopen_without_use): Update clients.
51789 2011-06-24  Jim Meyering  <meyering@redhat.com>
51791         syntax-check: keep one maint.mk rule in sync with its header
51792         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
51793         of the bug Eric has just fixed, with today's commit 25e4c2ec.
51794         I prefer to avoid temporary files here, so use <(...), but that
51795         is not supported by /bin/sh, so...
51796         (SHELL): Define to /bin/bash.
51798 2011-06-24  Eric Blake  <eblake@redhat.com>
51800         maint.mk: update sc_prohibit_intprops_without_use
51801         * top/maint.mk (_intprops_names): Match recent changes.
51803 2011-06-24  Bruno Haible  <bruno@clisp.org>
51805         strerror-override: No-op tweak.
51806         * lib/strerror-override.h (strerror_override): Reorder conditions,
51807         for consistency with lib/strerror-override.c.
51809 2011-06-23  Eric Blake  <eblake@redhat.com>
51811         maint.mk: test further PATH_MAX issues
51812         * top/maint.mk (sc_prohibit_path_max_array): Rename...
51813         (sc_prohibit_path_max_allocation): ...and also test alloca.
51814         Suggested by Jim Meyering.
51816 2011-06-22  Eric Blake  <eblake@redhat.com>
51818         maint.mk: add syntax-check to avoid char[PATH_MAX]
51819         * top/maint.mk (sc_prohibit_path_max_array): New rule.
51821         stat: be robust to PATH_MAX definition
51822         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
51823         * modules/stat (Depends-on): Add verify.
51825         link: work around IRIX bug
51826         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
51827         * lib/link.c (rpl_link): Work around it.
51828         * tests/test-link.h (test_link): Enhance test.
51829         * doc/posix-functions/link.texi (link): Document the bug.
51831         getopt: silence clang warning
51832         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
51833         dereference.
51834         Reported by Gustavo Martin Domato.
51836 2011-06-22  Jim Meyering  <meyering@redhat.com>
51838         bootstrap: do not insert a blank line into each .gitignore file
51839         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
51841 2011-06-21  Eric Blake  <eblake@redhat.com>
51843         perror: test for output mismatch
51844         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
51845         perror on IRIX.
51847         strerror_r: fix OpenBSD behavior on out-of-range
51848         * lib/strerror_r.c (strerror_r): Always use maximal string.
51849         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
51851         strerror_r: fix OpenBSD behavior on 0
51852         * lib/strerror-override.c (strerror_override): Also override 0
51853         when needed.
51854         * lib/strerror-override.h (strerror_override): Likewise.
51855         * lib/strerror.c (strerror): Simplify, now that 0 override is done
51856         earlier.
51857         * lib/strerror_r.c (strerror_r): Likewise.
51858         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
51859         behavior...
51860         (gl_FUNC_STRERROR_0): ...into new macro.
51861         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
51862         is overridden.
51863         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
51864         * modules/strerror-override (Files): Add strerror.m4.
51865         (configure.ac): Also provide override for 0 when needed.
51866         * doc/posix-functions/strerror.texi (strerror): Document this.
51867         * doc/posix-functions/perror.texi (perror): Likewise.
51869         perror: adjust array size
51870         * modules/perror (Depends-on): Add strerror-override.
51871         * lib/perror.c (perror): Use it to avoid magic number.
51873         strerror-override: reduce size
51874         * lib/strerror-override.c (strerror_override): Use fewer lines.
51876 2011-06-20  Bruno Haible  <bruno@clisp.org>
51878         pathmax: Ensure correct value for PATH_MAX on HP-UX.
51879         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
51881 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
51883         alloca: port to compilers that can optimize like GCC 4.6.0
51884         * lib/alloca.c (find_stack_direction): New signature, taken from
51885         Autoconf git.  This works with GCC 4.6.0.  This code should never
51886         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
51887         be used with other compilers that optimize as well as GCC 4.6.0 does.
51888         (alloca): Adjust to new signature.
51889         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
51890         New macro, which patches Autoconf in a similar way.
51892         c-stack: stop worrying about stack direction
51893         * lib/c-stack.c (find_stack_direction): Remove.
51894         (segv_handler): Don't worry about stack direction growth, as it's
51895         too much of a pain to configure this correctly, given how compilers
51896         are optimizing-away our stack-growth detection code.  Instead, assume
51897         that any access to just before or just after the stack is OK.
51898         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
51899         Don't require AC_FUNC_ALLOCA; no longer needed.
51901 2011-06-20  Eric Blake  <eblake@redhat.com>
51903         test-stat: don't allocate PATH_MAX bytes
51904         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
51905         PATH_MAX-sized buffer.
51906         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
51907         * modules/stat-tests (Depends-on): Likewise.
51908         * tests/test-fstatat.c (includes): Drop pathmax.h.
51909         * tests/test-stat.c (includes): Likewise.
51910         Reported by Bruno Haible.
51912 2011-06-20  Bruno Haible  <bruno@clisp.org>
51914         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
51915         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
51916         * lib/float.c: New file.
51917         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
51918         REPLACE_FLOAT_LDBL.
51919         * modules/float (Files): Add lib/float.c.
51920         (configure.ac): Invoke AC_LIBOBJ.
51921         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
51923 2011-06-20  Bruno Haible  <bruno@clisp.org>
51925         Tests for module 'float'.
51926         * modules/float-tests: New file.
51927         * tests/test-float.c: New file.
51929 2011-06-19  Bruno Haible  <bruno@clisp.org>
51931         isinf: Coding style.
51932         * lib/isinf.c: Use GNU coding style.
51934 2011-06-19  Bruno Haible  <bruno@clisp.org>
51936         linkat test: Avoid test failure on AIX 7.1.
51937         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
51938         * tests/test-link.h (test_link): Likewise.
51940 2011-06-19  Bruno Haible  <bruno@clisp.org>
51942         pread test: Avoid test failure on OpenBSD 4.9.
51943         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
51945 2011-06-19  Bruno Haible  <bruno@clisp.org>
51947         sprintf-posix: Fix test failure on AIX 7.1.
51948         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
51949         * doc/posix-functions/dprintf.texi: Mention limited precision problem
51950         on AIX.
51951         * doc/posix-functions/fprintf.texi: Likewise.
51952         * doc/posix-functions/printf.texi: Likewise.
51953         * doc/posix-functions/snprintf.texi: Likewise.
51954         * doc/posix-functions/sprintf.texi: Likewise.
51955         * doc/posix-functions/vdprintf.texi: Likewise.
51956         * doc/posix-functions/vfprintf.texi: Likewise.
51957         * doc/posix-functions/vprintf.texi: Likewise.
51958         * doc/posix-functions/vsnprintf.texi: Likewise.
51959         * doc/posix-functions/vsprintf.texi: Likewise.
51961 2011-06-19  Bruno Haible  <bruno@clisp.org>
51963         roundl-ieee: Fix test failure on AIX 7.1.
51964         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
51965         * doc/posix-functions/roundl.texi: Mention problem with negative
51966         arguments.
51968 2011-06-19  Bruno Haible  <bruno@clisp.org>
51970         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
51971         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
51972         * doc/posix-functions/round.texi: Mention problem with negative
51973         arguments.
51974         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
51976 2011-06-19  Bruno Haible  <bruno@clisp.org>
51978         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
51979         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
51980         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
51981         * doc/posix-functions/roundf.texi: Mention problem with negative
51982         arguments.
51983         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
51985 2011-06-19  Bruno Haible  <bruno@clisp.org>
51987         ceilf-ieee: Work around bug on MacOS X 10.5.
51988         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
51990         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
51991         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
51992         IEEE compliant, avoid compiler optimizations.
51993         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
51994         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
51995         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
51996         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
51997         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
51998         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
51999         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
52000         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
52001         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
52002         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
52004 2011-06-19  Bruno Haible  <bruno@clisp.org>
52006         ceilf-ieee: Work around bug on AIX 7.1.
52007         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
52008         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
52010 2011-06-19  Bruno Haible  <bruno@clisp.org>
52012         ceil-ieee: Work around bug on AIX 7.1.
52013         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
52014         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
52016 2011-06-18  Bruno Haible  <bruno@clisp.org>
52018         fsync test: Avoid test failure on MacOS X and AIX.
52019         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
52020         EINVAL.
52022 2011-06-18  Bruno Haible  <bruno@clisp.org>
52024         openat, fdopendir tests: Fix link errors.
52025         * modules/openat-tests (Depends-on): Add progname.
52026         * modules/fdopendir-tests (Depends-on): Likewise.
52027         * tests/test-fchownat.c: Include progname.h.
52028         (main): Call set_program_name.
52029         * tests/test-fstatat.c: Include progname.h.
52030         (main): Call set_program_name.
52031         * tests/test-mkdirat.c: Include progname.h.
52032         (main): Call set_program_name.
52033         * tests/test-openat.c: Include progname.h.
52034         (main): Call set_program_name.
52035         * tests/test-unlinkat.c: Include progname.h.
52036         (main): Call set_program_name.
52037         * tests/test-fdopendir.c: Include progname.h.
52038         (main): Call set_program_name.
52040 2011-06-18  Bruno Haible  <bruno@clisp.org>
52042         Doc update.
52043         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
52044         HP-UX.
52045         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
52047 2011-06-18  Bruno Haible  <bruno@clisp.org>
52049         getcwd tests: Avoid compilation error on HP-UX 11.31.
52050         * modules/getcwd-tests (Depends-on): Add pathmax.
52051         * tests/test-getcwd.c: Include pathmax.h.
52053 2011-06-18  Bruno Haible  <bruno@clisp.org>
52055         isfinite, isinf: Fix link error on AIX 6 and 7.
52056         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
52057         needed, also test the macro with a 'float' argument.
52058         * m4/isinf.m4 (gl_ISINF): Likewise.
52060 2011-06-18  Bruno Haible  <bruno@clisp.org>
52062         getloadavg: Don't clobber LIBS. Regression from previous commit.
52063         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
52064         AC_CHECK_LIB from here...
52065         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
52066         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
52067         gl_func_getloadavg_done.
52068         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52070 2011-06-18  Bruno Haible  <bruno@clisp.org>
52072         clean-temp: Improve documentation.
52073         * lib/clean-temp.h: Explain better how to use this module.
52074         Reported by John Darrington <john@darrington.wattle.id.au>.
52076 2011-06-17  Bruno Haible  <bruno@clisp.org>
52078         pread, pwrite: Avoid cc warning on AIX.
52079         * lib/unistd.in.h (pread): Undefine before defining as a macro.
52080         (pwrite): Likewise.
52082 2011-06-17  Bruno Haible  <bruno@clisp.org>
52084         spawn-pipe tests: Fix link error.
52085         * tests/test-spawn-pipe-child.c: Undefine fprintf.
52086         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52088 2011-06-17  Bruno Haible  <bruno@clisp.org>
52090         Tests: Remove unnecessary dependency.
52091         * modules/canonicalize-tests (Depends-on): Remove progname.
52092         * modules/chown-tests (Depends-on): Likewise.
52093         * modules/dirname-tests (Depends-on): Likewise.
52094         * modules/fdopendir-tests (Depends-on): Likewise.
52095         * modules/fdutimensat-tests (Depends-on): Likewise.
52096         * modules/hash-tests (Depends-on): Likewise.
52097         * modules/lchown-tests (Depends-on): Likewise.
52098         * modules/linkat-tests (Depends-on): Likewise.
52099         * modules/renameat-tests (Depends-on): Likewise.
52100         * modules/spawn-pipe-tests (Depends-on): Likewise.
52101         * modules/utimensat-tests (Depends-on): Likewise.
52103 2011-06-17  Bruno Haible  <bruno@clisp.org>
52105         spawn-pipe tests: Fix link error.
52106         * tests/test-spawn-pipe-child.c: Undefine fflush.
52108 2011-06-17  Bruno Haible  <bruno@clisp.org>
52110         Fix tests link errors.
52111         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
52112         * modules/chown-tests (Makefile.am): Don't link test-chown with
52113         LIBINTL.
52114         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
52115         LIBINTL.
52116         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
52117         LIBINTL.
52118         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
52119         LIBINTL.
52121 2011-06-16  Bruno Haible  <bruno@clisp.org>
52123         crypto/gc-sha1: Fix recent regression.
52124         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
52125         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
52127         crypto/gc-md5: Fix recent regression.
52128         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
52130         crypto/gc-md4: Fix recent regression.
52131         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
52132         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
52134         crypto/gc-arctwo: Fix recent regression.
52135         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
52136         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
52138         crypto/gc-rijndael: Fix recent regression.
52139         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
52140         (configure.ac): Invoke AC_LIBOBJ here.
52141         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
52142         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52144         crypto/gc-hmac-sha1: Fix recent regression.
52145         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
52146         (configure.ac): Invoke AC_LIBOBJ here.
52147         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
52148         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52150         crypto/gc-hmac-md5: Fix recent regression.
52151         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
52152         (configure.ac): Invoke AC_LIBOBJ here.
52153         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
52154         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52156         crypto/gc-des: Fix recent regression.
52157         * modules/crypto/gc-des (Files): Remove m4/des.m4.
52158         (configure.ac): Invoke AC_LIBOBJ here.
52159         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
52160         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52162         crypto/gc-arcfour: Fix recent regression.
52163         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
52164         (configure.ac): Invoke AC_LIBOBJ here.
52165         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
52166         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52168 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
52170         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
52171         After the 2011-05-21 change, this macro requires
52172         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
52173         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
52175 2011-06-16  Bruno Haible  <bruno@clisp.org>
52177         fprintftime: Move AC_LIBOBJ invocations to module description.
52178         * m4/fprintftime.m4: Remove file.
52179         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
52180         (configure.ac): Remove gl_FPRINTFTIME call.
52181         (Makefile.am): Augment lib_SOURCES.
52182         Reported by Jim Meyering.
52184 2011-06-16  Bruno Haible  <bruno@clisp.org>
52186         tmpfile-safer: Finish 2011-05-23 commit.
52187         * m4/stdio-safer.m4: Really remove file.
52188         Reported by Jim Meyering.
52190 2011-06-16  Bruno Haible  <bruno@clisp.org>
52192         syntax-check: Fix typo.
52193         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
52194         printf-posix.m4.
52195         Reported by Jim Meyering.
52197 2011-06-13  Jim Meyering  <meyering@redhat.com>
52199         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
52200         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
52202 2011-05-23  Bruno Haible  <bruno@clisp.org>
52204         yesno: Move AC_LIBOBJ invocations to module description.
52205         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
52206         * modules/yesno (Makefile.am): Augment lib_SOURCES.
52208 2011-05-23  Bruno Haible  <bruno@clisp.org>
52210         xstrtol: Move AC_LIBOBJ invocations to module description.
52211         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
52212         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
52214 2011-05-23  Bruno Haible  <bruno@clisp.org>
52216         xstrtold: Move AC_LIBOBJ invocations to module description.
52217         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
52218         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
52220 2011-05-23  Bruno Haible  <bruno@clisp.org>
52222         xstrtod: Move AC_LIBOBJ invocations to module description.
52223         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
52224         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
52226 2011-05-23  Bruno Haible  <bruno@clisp.org>
52228         xnanosleep: Move AC_LIBOBJ invocations to module description.
52229         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
52230         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
52232 2011-05-23  Bruno Haible  <bruno@clisp.org>
52234         xgetcwd: Move AC_LIBOBJ invocations to module description.
52235         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
52236         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
52238 2011-05-23  Bruno Haible  <bruno@clisp.org>
52240         xalloc: Move AC_LIBOBJ invocations to module description.
52241         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
52242         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
52244 2011-05-23  Bruno Haible  <bruno@clisp.org>
52246         write-any-file: Move AC_LIBOBJ invocations to module description.
52247         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
52248         invocation.
52249         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
52251 2011-05-23  Bruno Haible  <bruno@clisp.org>
52253         utimens: Move AC_LIBOBJ invocations to module description.
52254         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
52255         * modules/utimens (Makefile.am): Augment lib_SOURCES.
52257 2011-05-23  Bruno Haible  <bruno@clisp.org>
52259         utimecmp: Move AC_LIBOBJ invocations to module description.
52260         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
52261         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
52263 2011-05-23  Bruno Haible  <bruno@clisp.org>
52265         userspec: Move AC_LIBOBJ invocations to module description.
52266         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
52267         * modules/userspec (Makefile.am): Augment lib_SOURCES.
52269 2011-05-23  Bruno Haible  <bruno@clisp.org>
52271         unlinkdir: Move AC_LIBOBJ invocations to module description.
52272         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
52273         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
52275 2011-05-23  Bruno Haible  <bruno@clisp.org>
52277         unistd-safer: Move AC_LIBOBJ invocations to module description.
52278         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
52279         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
52281 2011-05-23  Bruno Haible  <bruno@clisp.org>
52283         tempname: Move AC_LIBOBJ invocations to module description.
52284         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
52285         * modules/tempname (Makefile.am): Augment lib_SOURCES.
52287 2011-05-23  Bruno Haible  <bruno@clisp.org>
52289         strftime: Move AC_LIBOBJ invocations to module description.
52290         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
52291         * modules/strftime (Makefile.am): Augment lib_SOURCES.
52293 2011-05-23  Bruno Haible  <bruno@clisp.org>
52295         stdlib-safer: Move AC_LIBOBJ invocations to module description.
52296         * m4/stdlib-safer.m4: Remove file.
52297         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
52298         (configure.ac): Remove gl_STDLIB_SAFER call.
52299         (Makefile.am): Augment lib_SOURCES.
52301 2011-05-23  Bruno Haible  <bruno@clisp.org>
52303         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
52304         * m4/stdio-safer.m4: Remove file.
52305         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
52306         (configure.ac): Remove gl_TMPFILE_SAFER call.
52307         (Makefile.am): Augment lib_SOURCES.
52309 2011-05-23  Bruno Haible  <bruno@clisp.org>
52311         popen-safer: Move AC_LIBOBJ invocations to module description.
52312         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
52313         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
52314         (configure.ac): Remove gl_POPEN_SAFER call.
52315         (Makefile.am): Augment lib_SOURCES.
52317 2011-05-23  Bruno Haible  <bruno@clisp.org>
52319         freopen-safer: Move AC_LIBOBJ invocations to module description.
52320         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
52321         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
52322         (configure.ac): Remove gl_FREOPEN_SAFER call.
52323         (Makefile.am): Augment lib_SOURCES.
52325 2011-05-23  Bruno Haible  <bruno@clisp.org>
52327         fopen-safer: Move AC_LIBOBJ invocations to module description.
52328         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
52329         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
52330         (configure.ac): Remove gl_FOPEN_SAFER call.
52331         (Makefile.am): Augment lib_SOURCES.
52333 2011-05-23  Bruno Haible  <bruno@clisp.org>
52335         crypto/sha512: Move AC_LIBOBJ invocations to module description.
52336         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
52337         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
52339 2011-05-23  Bruno Haible  <bruno@clisp.org>
52341         crypto/sha256: Move AC_LIBOBJ invocations to module description.
52342         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
52343         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
52345 2011-05-23  Bruno Haible  <bruno@clisp.org>
52347         crypto/sha1: Move AC_LIBOBJ invocations to module description.
52348         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
52349         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
52351 2011-05-23  Bruno Haible  <bruno@clisp.org>
52353         settime: Move AC_LIBOBJ invocations to module description.
52354         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
52355         * modules/settime (Makefile.am): Augment lib_SOURCES.
52357 2011-05-23  Bruno Haible  <bruno@clisp.org>
52359         savedir: Move AC_LIBOBJ invocations to module description.
52360         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
52361         * modules/savedir (Makefile.am): Augment lib_SOURCES.
52363 2011-05-23  Bruno Haible  <bruno@clisp.org>
52365         save-cwd: Move AC_LIBOBJ invocations to module description.
52366         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
52367         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
52369 2011-05-23  Bruno Haible  <bruno@clisp.org>
52371         same: Move AC_LIBOBJ invocations to module description.
52372         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
52373         * modules/same (Makefile.am): Augment lib_SOURCES.
52375 2011-05-23  Bruno Haible  <bruno@clisp.org>
52377         safe-write: Move AC_LIBOBJ invocations to module description.
52378         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
52379         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
52380         instead of gl_SAFE_WRITE.
52381         (Makefile.am): Augment lib_SOURCES.
52383 2011-05-23  Bruno Haible  <bruno@clisp.org>
52385         safe-read: Move AC_LIBOBJ invocations to module description.
52386         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
52387         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
52388         of gl_SAFE_READ.
52389         (Makefile.am): Augment lib_SOURCES.
52391 2011-05-23  Bruno Haible  <bruno@clisp.org>
52393         safe-alloc: Move AC_LIBOBJ invocations to module description.
52394         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
52395         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
52397 2011-05-23  Bruno Haible  <bruno@clisp.org>
52399         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
52400         * m4/rijndael.m4: Remove file.
52401         * modules/crypto/rijndael (Files): Remove it.
52402         (configure.ac): Remove gl_RIJNDAEL call.
52403         (Makefile.am): Augment lib_SOURCES.
52405 2011-05-23  Bruno Haible  <bruno@clisp.org>
52407         readtokens: Move AC_LIBOBJ invocations to module description.
52408         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
52409         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
52411 2011-05-23  Bruno Haible  <bruno@clisp.org>
52413         read-file: Move AC_LIBOBJ invocations to module description.
52414         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
52415         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
52416         of gl_FUNC_READ_FILE.
52417         (Makefile.am): Augment lib_SOURCES.
52419 2011-05-23  Bruno Haible  <bruno@clisp.org>
52421         quotearg: Move AC_LIBOBJ invocations to module description.
52422         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
52423         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
52425 2011-05-23  Bruno Haible  <bruno@clisp.org>
52427         quote: Move AC_LIBOBJ invocations to module description.
52428         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
52429         * modules/quote (Makefile.am): Augment lib_SOURCES.
52431 2011-05-23  Bruno Haible  <bruno@clisp.org>
52433         posixver: Move AC_LIBOBJ invocations to module description.
52434         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
52435         * modules/posixver (Makefile.am): Augment lib_SOURCES.
52437 2011-05-23  Bruno Haible  <bruno@clisp.org>
52439         posixtm: Move AC_LIBOBJ invocations to module description.
52440         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
52441         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
52443 2011-05-23  Bruno Haible  <bruno@clisp.org>
52445         physmem: Move AC_LIBOBJ invocations to module description.
52446         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
52447         * modules/physmem (Makefile.am): Augment lib_SOURCES.
52449 2011-05-23  Bruno Haible  <bruno@clisp.org>
52451         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
52452         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
52453         invocation.
52454         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
52456 2011-05-23  Bruno Haible  <bruno@clisp.org>
52458         mpsort: Move AC_LIBOBJ invocations to module description.
52459         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
52460         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
52462 2011-05-23  Bruno Haible  <bruno@clisp.org>
52464         modechange: Move AC_LIBOBJ invocations to module description.
52465         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
52466         * modules/modechange (Makefile.am): Augment lib_SOURCES.
52468 2011-05-23  Bruno Haible  <bruno@clisp.org>
52470         mkdir-p: Move AC_LIBOBJ invocations to module description.
52471         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
52472         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
52474 2011-05-23  Bruno Haible  <bruno@clisp.org>
52476         mkancesdirs: Move AC_LIBOBJ invocations to module description.
52477         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
52478         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
52480 2011-05-23  Bruno Haible  <bruno@clisp.org>
52482         mgetgroups: Move AC_LIBOBJ invocations to module description.
52483         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
52484         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
52486 2011-05-23  Bruno Haible  <bruno@clisp.org>
52488         memxor: Move AC_LIBOBJ invocations to module description.
52489         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
52490         * modules/memxor (Makefile.am): Augment lib_SOURCES.
52492 2011-05-23  Bruno Haible  <bruno@clisp.org>
52494         memcoll: Move AC_LIBOBJ invocations to module description.
52495         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
52496         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
52498 2011-05-23  Bruno Haible  <bruno@clisp.org>
52500         memcasecmp: Move AC_LIBOBJ invocations to module description.
52501         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
52502         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
52504 2011-05-23  Bruno Haible  <bruno@clisp.org>
52506         crypto/md5: Move AC_LIBOBJ invocations to module description.
52507         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
52508         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
52510 2011-05-23  Bruno Haible  <bruno@clisp.org>
52512         crypto/md4: Move AC_LIBOBJ invocations to module description.
52513         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
52514         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
52516 2011-05-23  Bruno Haible  <bruno@clisp.org>
52518         crypto/md2: Move AC_LIBOBJ invocations to module description.
52519         * m4/md2.m4: Remove file.
52520         * modules/crypto/md2 (Files): Remove it.
52521         (configure.ac): Remove gl_MD2 call.
52522         (Makefile.am): Augment lib_SOURCES.
52524 2011-05-23  Bruno Haible  <bruno@clisp.org>
52526         long-options: Move AC_LIBOBJ invocations to module description.
52527         * m4/long-options.m4: Remove file.
52528         * modules/long-options (Files): Remove it.
52529         (configure.ac): Remove gl_LONG_OPTIONS call.
52530         (Makefile.am): Augment lib_SOURCES.
52532 2011-05-23  Bruno Haible  <bruno@clisp.org>
52534         i-ring: Move AC_LIBOBJ invocations to module description.
52535         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
52536         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
52538 2011-05-23  Bruno Haible  <bruno@clisp.org>
52540         idcache: Move AC_LIBOBJ invocations to module description.
52541         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
52542         * modules/idcache (Makefile.am): Augment lib_SOURCES.
52544 2011-05-23  Bruno Haible  <bruno@clisp.org>
52546         human: Move AC_LIBOBJ invocations to module description.
52547         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
52548         * modules/human (Makefile.am): Augment lib_SOURCES.
52550 2011-05-23  Bruno Haible  <bruno@clisp.org>
52552         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
52553         * m4/hmac-sha1.m4: Remove file.
52554         * modules/crypto/hmac-sha1 (Files): Remove it.
52555         (configure.ac): Remove gl_HMAC_SHA1 call.
52556         (Makefile.am): Augment lib_SOURCES.
52558 2011-05-23  Bruno Haible  <bruno@clisp.org>
52560         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
52561         * m4/hmac-md5.m4: Remove file.
52562         * modules/crypto/hmac-md5 (Files): Remove it.
52563         (configure.ac): Remove gl_HMAC_MD5 call.
52564         (Makefile.am): Augment lib_SOURCES.
52566 2011-05-23  Bruno Haible  <bruno@clisp.org>
52568         hash: Move AC_LIBOBJ invocations to module description.
52569         * m4/hash.m4: Remove file.
52570         * modules/hash (Files): Remove it.
52571         (configure.ac): Remove gl_HASH call.
52572         (Makefile.am): Augment lib_SOURCES.
52574 2011-05-23  Bruno Haible  <bruno@clisp.org>
52576         hard-locale: Move AC_LIBOBJ invocations to module description.
52577         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
52578         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
52580 2011-05-23  Bruno Haible  <bruno@clisp.org>
52582         getugroups: Move AC_LIBOBJ invocations to module description.
52583         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
52584         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
52586 2011-05-23  Bruno Haible  <bruno@clisp.org>
52588         gettime: Move AC_LIBOBJ invocations to module description.
52589         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
52590         * modules/gettime (Makefile.am): Augment lib_SOURCES.
52592 2011-05-23  Bruno Haible  <bruno@clisp.org>
52594         getndelim2: Move AC_LIBOBJ invocations to module description.
52595         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
52596         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
52598 2011-05-23  Bruno Haible  <bruno@clisp.org>
52600         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
52601         * m4/gc-pbkdf2-sha1.m4: Remove file.
52602         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
52603         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
52604         (Makefile.am): Augment lib_SOURCES.
52606 2011-05-23  Bruno Haible  <bruno@clisp.org>
52608         fts: Move AC_LIBOBJ invocations to module description.
52609         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
52610         * modules/fts (configure.ac): ... to here.
52612 2011-05-23  Bruno Haible  <bruno@clisp.org>
52614         file-type: Move AC_LIBOBJ invocations to module description.
52615         * m4/file-type.m4: Remove file.
52616         * modules/file-type (Files): Remove it.
52617         (configure.ac): Remove gl_FILE_TYPE call.
52618         (Makefile.am): Augment lib_SOURCES.
52620 2011-05-23  Bruno Haible  <bruno@clisp.org>
52622         filenamecat*: Respect rules for use of AC_LIBOBJ.
52623         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
52624         Remove AC_LIBOBJ invocation.
52625         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
52626         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
52628 2011-05-23  Bruno Haible  <bruno@clisp.org>
52630         filemode: Move AC_LIBOBJ invocations to module description.
52631         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
52632         * modules/filemode (Makefile.am): Augment lib_SOURCES.
52634 2011-05-23  Bruno Haible  <bruno@clisp.org>
52636         openat-safer: Move AC_LIBOBJ invocations to module description.
52637         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
52638         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
52640 2011-05-23  Bruno Haible  <bruno@clisp.org>
52642         fcntl-safer: Move AC_LIBOBJ invocations to module description.
52643         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
52644         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
52646 2011-05-23  Bruno Haible  <bruno@clisp.org>
52648         exclude: Move AC_LIBOBJ invocations to module description.
52649         * m4/exclude.m4: Remove file.
52650         * modules/exclude (Files): Remove it.
52651         (configure.ac): Remove gl_EXCLUDE call.
52652         (Makefile.am): Augment lib_SOURCES.
52654 2011-05-23  Bruno Haible  <bruno@clisp.org>
52656         dirname*: Respect rules for use of AC_LIBOBJ.
52657         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
52658         invocations.
52659         * modules/dirname (Makefile.am): Augment lib_SOURCES.
52660         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
52662 2011-05-23  Bruno Haible  <bruno@clisp.org>
52664         dirent-safer: Move AC_LIBOBJ invocations to module description.
52665         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
52666         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
52668 2011-05-23  Bruno Haible  <bruno@clisp.org>
52670         crypto/des: Move AC_LIBOBJ invocations to module description.
52671         * m4/des.m4: Remove file.
52672         * modules/crypto/des (Files): Remove it.
52673         (configure.ac): Remove gl_DES call.
52674         (Makefile.am): Augment lib_SOURCES.
52676 2011-05-23  Bruno Haible  <bruno@clisp.org>
52678         cycle-check: Move AC_LIBOBJ invocations to module description.
52679         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
52680         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
52682 2011-05-23  Bruno Haible  <bruno@clisp.org>
52684         c-strtold: Move AC_LIBOBJ invocations to module description.
52685         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
52686         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
52688 2011-05-23  Bruno Haible  <bruno@clisp.org>
52690         c-strtod: Move AC_LIBOBJ invocations to module description.
52691         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
52692         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
52694 2011-05-23  Bruno Haible  <bruno@clisp.org>
52696         crc: Move AC_LIBOBJ invocations to module description.
52697         * m4/crc.m4: Remove file.
52698         * modules/crc (Files): Remove it.
52699         (configure.ac): Remove gl_CRC call.
52700         (Makefile.am): Augment lib_SOURCES.
52702 2011-05-23  Bruno Haible  <bruno@clisp.org>
52704         close-stream: Move AC_LIBOBJ invocations to module description.
52705         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
52706         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
52708 2011-05-23  Bruno Haible  <bruno@clisp.org>
52710         closeout: Move AC_LIBOBJ invocations to module description.
52711         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
52712         * modules/closeout (Makefile.am): Augment lib_SOURCES.
52714 2011-05-23  Bruno Haible  <bruno@clisp.org>
52716         closein: Move AC_LIBOBJ invocations to module description.
52717         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
52718         * modules/closein (Makefile.am): Augment lib_SOURCES.
52720 2011-05-23  Bruno Haible  <bruno@clisp.org>
52722         cloexec: Move AC_LIBOBJ invocations to module description.
52723         * m4/cloexec.m4: Remove file.
52724         * modules/cloexec (Files): Remove it.
52725         (configure.ac): Remove gl_CLOEXEC call.
52726         (Makefile.am): Augment lib_SOURCES.
52728 2011-05-23  Bruno Haible  <bruno@clisp.org>
52730         check-version: Move AC_LIBOBJ invocations to module description.
52731         * m4/check-version.m4: Remove file.
52732         * modules/check-version (Files): Remove it.
52733         (configure.ac): Remove gl_CHECK_VERSION call.
52734         (Makefile.am): Augment lib_SOURCES.
52736 2011-05-23  Bruno Haible  <bruno@clisp.org>
52738         chdir-safer: Move AC_LIBOBJ invocations to module description.
52739         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
52740         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
52742 2011-05-23  Bruno Haible  <bruno@clisp.org>
52744         canonicalize: Move AC_LIBOBJ invocations to module description.
52745         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
52746         AC_LIBOBJ invocation.
52747         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
52749 2011-05-23  Bruno Haible  <bruno@clisp.org>
52751         canon-host: Move AC_LIBOBJ invocations to module description.
52752         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
52753         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
52754         instead of gl_CANON_HOST.
52755         (Makefile.am): Augment lib_SOURCES.
52757 2011-05-23  Bruno Haible  <bruno@clisp.org>
52759         backupfile: Move AC_LIBOBJ invocations to module description.
52760         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
52761         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
52763 2011-05-23  Bruno Haible  <bruno@clisp.org>
52765         argmatch: Move AC_LIBOBJ invocations to module description.
52766         * m4/argmatch.m4: Remove file.
52767         * modules/argmatch (Files): Remove it.
52768         (configure.ac): Remove gl_ARGMATCH call.
52769         (Makefile.am): Augment lib_SOURCES.
52771 2011-05-23  Bruno Haible  <bruno@clisp.org>
52773         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
52774         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
52775         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
52777 2011-05-23  Bruno Haible  <bruno@clisp.org>
52779         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
52780         * m4/arcfour.m4: Remove file.
52781         * modules/crypto/arcfour (Files): Remove it.
52782         (configure.ac): Remove gl_ARCFOUR call.
52783         (Makefile.am): Augment lib_SOURCES.
52785 2011-05-22  Bruno Haible  <bruno@clisp.org>
52787         write: Move AC_LIBOBJ invocations to module description.
52788         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
52789         * modules/write (configure.ac): ... to here.
52791 2011-05-22  Bruno Haible  <bruno@clisp.org>
52793         wmemset: Move AC_LIBOBJ invocations to module description.
52794         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
52795         here...
52796         * modules/wmemset (configure.ac): ... to here.
52798 2011-05-22  Bruno Haible  <bruno@clisp.org>
52800         wmemmove: Move AC_LIBOBJ invocations to module description.
52801         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
52802         here...
52803         * modules/wmemmove (configure.ac): ... to here.
52805 2011-05-22  Bruno Haible  <bruno@clisp.org>
52807         wmemcpy: Move AC_LIBOBJ invocations to module description.
52808         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
52809         here...
52810         * modules/wmemcpy (configure.ac): ... to here.
52812 2011-05-22  Bruno Haible  <bruno@clisp.org>
52814         wmemcmp: Move AC_LIBOBJ invocations to module description.
52815         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
52816         here...
52817         * modules/wmemcmp (configure.ac): ... to here.
52819 2011-05-22  Bruno Haible  <bruno@clisp.org>
52821         wmemchr: Move AC_LIBOBJ invocations to module description.
52822         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
52823         here...
52824         * modules/wmemchr (configure.ac): ... to here.
52826 2011-05-22  Bruno Haible  <bruno@clisp.org>
52828         wcswidth: Move AC_LIBOBJ invocations to module description.
52829         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
52830         here...
52831         * modules/wcswidth (configure.ac): ... to here.
52833 2011-05-22  Bruno Haible  <bruno@clisp.org>
52835         wcwidth: Respect rules for use of AC_LIBOBJ.
52836         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
52837         invocation from here...
52838         * modules/wcwidth (configure.ac): ... to here.
52839         (Depends-on): Update conditions.
52841 2011-05-22  Bruno Haible  <bruno@clisp.org>
52843         wctype: Move AC_LIBOBJ invocations to module description.
52844         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
52845         invocation from here...
52846         * modules/wctype (configure.ac): ... to here.
52847         (Depends-on): Update conditions.
52849 2011-05-22  Bruno Haible  <bruno@clisp.org>
52851         wctrans: Move AC_LIBOBJ invocations to module description.
52852         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
52853         invocation from here...
52854         * modules/wctrans (configure.ac): ... to here.
52856 2011-05-22  Bruno Haible  <bruno@clisp.org>
52858         wctomb: Move AC_LIBOBJ invocations to module description.
52859         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
52860         invocations from here...
52861         * modules/wctomb (configure.ac): ... to here.
52863 2011-05-22  Bruno Haible  <bruno@clisp.org>
52865         wctob: Move AC_LIBOBJ invocations to module description.
52866         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
52867         gl_PREREQ_WCTOB invocations from here...
52868         * modules/wctob (configure.ac): ... to here.
52869         (Depends-on): Update conditions.
52871 2011-05-22  Bruno Haible  <bruno@clisp.org>
52873         wcsxfrm: Move AC_LIBOBJ invocations to module description.
52874         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
52875         here...
52876         * modules/wcsxfrm (configure.ac): ... to here.
52878 2011-05-22  Bruno Haible  <bruno@clisp.org>
52880         wcstok: Move AC_LIBOBJ invocations to module description.
52881         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
52882         * modules/wcstok (configure.ac): ... to here.
52884 2011-05-22  Bruno Haible  <bruno@clisp.org>
52886         wcsstr: Move AC_LIBOBJ invocations to module description.
52887         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
52888         * modules/wcsstr (configure.ac): ... to here.
52890 2011-05-22  Bruno Haible  <bruno@clisp.org>
52892         wcsspn: Move AC_LIBOBJ invocations to module description.
52893         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
52894         * modules/wcsspn (configure.ac): ... to here.
52896 2011-05-22  Bruno Haible  <bruno@clisp.org>
52898         wcsrtombs: Move AC_LIBOBJ invocations to module description.
52899         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
52900         gl_PREREQ_WCSRTOMBS invocations from here...
52901         * modules/wcsrtombs (configure.ac): ... to here.
52903 2011-05-22  Bruno Haible  <bruno@clisp.org>
52905         wcsrchr: Move AC_LIBOBJ invocations to module description.
52906         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
52907         here...
52908         * modules/wcsrchr (configure.ac): ... to here.
52910 2011-05-22  Bruno Haible  <bruno@clisp.org>
52912         wcspbrk: Move AC_LIBOBJ invocations to module description.
52913         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
52914         here...
52915         * modules/wcspbrk (configure.ac): ... to here.
52917 2011-05-22  Bruno Haible  <bruno@clisp.org>
52919         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
52920         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
52921         gl_PREREQ_WCSNRTOMBS invocations from here...
52922         * modules/wcsnrtombs (configure.ac): ... to here.
52924 2011-05-22  Bruno Haible  <bruno@clisp.org>
52926         wcsnlen: Move AC_LIBOBJ invocations to module description.
52927         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
52928         here...
52929         * modules/wcsnlen (configure.ac): ... to here.
52931 2011-05-22  Bruno Haible  <bruno@clisp.org>
52933         wcsncpy: Move AC_LIBOBJ invocations to module description.
52934         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
52935         here...
52936         * modules/wcsncpy (configure.ac): ... to here.
52938 2011-05-22  Bruno Haible  <bruno@clisp.org>
52940         wcsncmp: Move AC_LIBOBJ invocations to module description.
52941         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
52942         here...
52943         * modules/wcsncmp (configure.ac): ... to here.
52945 2011-05-22  Bruno Haible  <bruno@clisp.org>
52947         wcsncat: Move AC_LIBOBJ invocations to module description.
52948         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
52949         here...
52950         * modules/wcsncat (configure.ac): ... to here.
52952 2011-05-22  Bruno Haible  <bruno@clisp.org>
52954         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
52955         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
52956         from here...
52957         * modules/wcsncasecmp (configure.ac): ... to here.
52959 2011-05-22  Bruno Haible  <bruno@clisp.org>
52961         wcslen: Move AC_LIBOBJ invocations to module description.
52962         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
52963         * modules/wcslen (configure.ac): ... to here.
52965 2011-05-22  Bruno Haible  <bruno@clisp.org>
52967         wcsdup: Move AC_LIBOBJ invocations to module description.
52968         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
52969         * modules/wcsdup (configure.ac): ... to here.
52971 2011-05-22  Bruno Haible  <bruno@clisp.org>
52973         wcscspn: Move AC_LIBOBJ invocations to module description.
52974         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
52975         here...
52976         * modules/wcscspn (configure.ac): ... to here.
52978 2011-05-22  Bruno Haible  <bruno@clisp.org>
52980         wcscpy: Move AC_LIBOBJ invocations to module description.
52981         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
52982         * modules/wcscpy (configure.ac): ... to here.
52984 2011-05-22  Bruno Haible  <bruno@clisp.org>
52986         wcscoll: Move AC_LIBOBJ invocations to module description.
52987         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
52988         here...
52989         * modules/wcscoll (configure.ac): ... to here.
52991 2011-05-22  Bruno Haible  <bruno@clisp.org>
52993         wcscmp: Move AC_LIBOBJ invocations to module description.
52994         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
52995         * modules/wcscmp (configure.ac): ... to here.
52997 2011-05-22  Bruno Haible  <bruno@clisp.org>
52999         wcschr: Move AC_LIBOBJ invocations to module description.
53000         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
53001         * modules/wcschr (configure.ac): ... to here.
53003 2011-05-22  Bruno Haible  <bruno@clisp.org>
53005         wcscat: Move AC_LIBOBJ invocations to module description.
53006         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
53007         * modules/wcscat (configure.ac): ... to here.
53009 2011-05-22  Bruno Haible  <bruno@clisp.org>
53011         wcscasecmp: Move AC_LIBOBJ invocations to module description.
53012         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
53013         here...
53014         * modules/wcscasecmp (configure.ac): ... to here.
53016 2011-05-22  Bruno Haible  <bruno@clisp.org>
53018         wcrtomb: Move AC_LIBOBJ invocations to module description.
53019         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
53020         invocations from here...
53021         * modules/wcrtomb (configure.ac): ... to here.
53023 2011-05-22  Bruno Haible  <bruno@clisp.org>
53025         wcpncpy: Move AC_LIBOBJ invocations to module description.
53026         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
53027         here...
53028         * modules/wcpncpy (configure.ac): ... to here.
53030 2011-05-22  Bruno Haible  <bruno@clisp.org>
53032         wcpcpy: Move AC_LIBOBJ invocations to module description.
53033         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
53034         * modules/wcpcpy (configure.ac): ... to here.
53036 2011-05-22  Bruno Haible  <bruno@clisp.org>
53038         waitpid: Move AC_LIBOBJ invocations to module description.
53039         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
53040         invocation from here...
53041         * modules/waitpid (configure.ac): ... to here.
53043 2011-05-22  Bruno Haible  <bruno@clisp.org>
53045         utimensat: Move AC_LIBOBJ invocations to module description.
53046         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
53047         here...
53048         * modules/utimensat (configure.ac): ... to here.
53050 2011-05-22  Bruno Haible  <bruno@clisp.org>
53052         usleep: Move AC_LIBOBJ invocations to module description.
53053         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
53054         here...
53055         * modules/usleep (configure.ac): ... to here.
53057 2011-05-22  Bruno Haible  <bruno@clisp.org>
53059         unlockpt: Move AC_LIBOBJ invocations to module description.
53060         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
53061         gl_PREREQ_UNLOCKPT invocations from here...
53062         * modules/unlockpt (configure.ac): ... to here.
53064 2011-05-22  Bruno Haible  <bruno@clisp.org>
53066         unlink: Respect rules for use of AC_LIBOBJ.
53067         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
53068         * modules/unlink (configure.ac): ... to here.
53070 2011-05-22  Bruno Haible  <bruno@clisp.org>
53072         uname: Move AC_LIBOBJ invocations to module description.
53073         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
53074         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
53075         here...
53076         * modules/uname (configure.ac): ... to here.
53078 2011-05-22  Bruno Haible  <bruno@clisp.org>
53080         ttyname_r: Move AC_LIBOBJ invocations to module description.
53081         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
53082         gl_PREREQ_TTYNAME_R invocations from here...
53083         * modules/ttyname_r (configure.ac): ... to here.
53085 2011-05-22  Bruno Haible  <bruno@clisp.org>
53087         tsearch: Move AC_LIBOBJ invocations to module description.
53088         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
53089         invocations from here...
53090         * modules/tsearch (configure.ac): ... to here.
53092 2011-05-22  Bruno Haible  <bruno@clisp.org>
53094         towctrans: Move AC_LIBOBJ invocations to module description.
53095         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
53096         AC_LIBOBJ invocation from here...
53097         * modules/towctrans (configure.ac): ... to here.
53099 2011-05-22  Bruno Haible  <bruno@clisp.org>
53101         tmpfile: Move AC_LIBOBJ invocations to module description.
53102         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
53103         invocations from here...
53104         * modules/tmpfile (configure.ac): ... to here.
53106 2011-05-22  Bruno Haible  <bruno@clisp.org>
53108         times: Move AC_LIBOBJ invocations to module description.
53109         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
53110         * modules/times (configure.ac): ... to here.
53112 2011-05-22  Bruno Haible  <bruno@clisp.org>
53114         time_r: Move AC_LIBOBJ invocations to module description.
53115         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
53116         invocations from here...
53117         * modules/time_r (configure.ac): ... to here.
53119 2011-05-22  Bruno Haible  <bruno@clisp.org>
53121         timegm: Move AC_LIBOBJ invocations to module description.
53122         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
53123         invocations from here...
53124         * modules/timegm (configure.ac): ... to here.
53126 2011-05-22  Bruno Haible  <bruno@clisp.org>
53128         tcgetsid: Move AC_LIBOBJ invocations to module description.
53129         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
53130         and gl_PREREQ_TCGETSID invocations from here...
53131         * modules/tcgetsid (configure.ac): ... to here.
53132         (Depends-on): Update conditions.
53134 2011-05-22  Bruno Haible  <bruno@clisp.org>
53136         symlinkat: Move AC_LIBOBJ invocations to module description.
53137         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
53138         here...
53139         * modules/symlinkat (configure.ac): ... to here.
53141 2011-05-22  Bruno Haible  <bruno@clisp.org>
53143         symlink: Move AC_LIBOBJ invocations to module description.
53144         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
53145         here...
53146         * modules/symlink (configure.ac): ... to here.
53148 2011-05-22  Bruno Haible  <bruno@clisp.org>
53150         strverscmp: Move AC_LIBOBJ invocations to module description.
53151         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
53152         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
53153         from here...
53154         * modules/strverscmp (configure.ac): ... to here.
53156 2011-05-22  Bruno Haible  <bruno@clisp.org>
53158         strtok_r: Move AC_LIBOBJ invocations to module description.
53159         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
53160         and gl_PREREQ_STRTOK_R invocations from here...
53161         * modules/strtok_r (configure.ac): ... to here.
53162         (Depends-on): Update conditions.
53164 2011-05-22  Bruno Haible  <bruno@clisp.org>
53166         strtoumax: Move AC_LIBOBJ invocations to module description.
53167         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
53168         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
53169         from here...
53170         * modules/strtoumax (configure.ac): ... to here.
53172 2011-05-22  Bruno Haible  <bruno@clisp.org>
53174         strtoimax: Move AC_LIBOBJ invocations to module description.
53175         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
53176         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
53177         from here...
53178         * modules/strtoimax (configure.ac): ... to here.
53180 2011-05-22  Bruno Haible  <bruno@clisp.org>
53182         strtoull: Move AC_LIBOBJ invocations to module description.
53183         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
53184         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
53185         from here...
53186         * modules/strtoull (configure.ac): ... to here.
53188 2011-05-22  Bruno Haible  <bruno@clisp.org>
53190         strtoll: Move AC_LIBOBJ invocations to module description.
53191         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
53192         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
53193         here...
53194         * modules/strtoll (configure.ac): ... to here.
53196 2011-05-22  Bruno Haible  <bruno@clisp.org>
53198         strtoul: Move AC_LIBOBJ invocations to module description.
53199         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
53200         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
53201         * modules/strtoul (configure.ac): ... to here.
53203 2011-05-22  Bruno Haible  <bruno@clisp.org>
53205         strtol: Move AC_LIBOBJ invocations to module description.
53206         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
53207         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
53208         * modules/strtol (configure.ac): ... to here.
53210 2011-05-22  Bruno Haible  <bruno@clisp.org>
53212         strtod: Move AC_LIBOBJ invocations to module description.
53213         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
53214         invocations from here...
53215         * modules/strtod (configure.ac): ... to here.
53217 2011-05-22  Bruno Haible  <bruno@clisp.org>
53219         strstr*: Move AC_LIBOBJ invocations to module description.
53220         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
53221         invocations from here...
53222         * modules/strstr-simple (configure.ac): ... to here.
53223         * modules/strstr (configure.ac): ... and here.
53225 2011-05-22  Bruno Haible  <bruno@clisp.org>
53227         strsignal: Move AC_LIBOBJ invocations to module description.
53228         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
53229         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
53230         * modules/strsignal (configure.ac): ... to here.
53231         (Depends-on): Update conditions.
53233 2011-05-22  Bruno Haible  <bruno@clisp.org>
53235         strsep: Move AC_LIBOBJ invocations to module description.
53236         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
53237         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
53238         here...
53239         * modules/strsep (configure.ac): ... to here.
53241 2011-05-22  Bruno Haible  <bruno@clisp.org>
53243         strptime: Move AC_LIBOBJ invocations to module description.
53244         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
53245         gl_PREREQ_STRPTIME invocations from here...
53246         * modules/strptime (configure.ac): ... to here.
53248 2011-05-22  Bruno Haible  <bruno@clisp.org>
53250         strpbrk: Move AC_LIBOBJ invocations to module description.
53251         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
53252         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
53253         here...
53254         * modules/strpbrk (configure.ac): ... to here.
53256 2011-05-22  Bruno Haible  <bruno@clisp.org>
53258         strnlen: Move AC_LIBOBJ invocations to module description.
53259         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
53260         invocations from here...
53261         * modules/strnlen (configure.ac): ... to here.
53263 2011-05-22  Bruno Haible  <bruno@clisp.org>
53265         strndup: Move AC_LIBOBJ invocations to module description.
53266         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
53267         invocations from here...
53268         * modules/strndup (configure.ac): ... to here.
53269         (Depends-on): Update conditions.
53271 2011-05-22  Bruno Haible  <bruno@clisp.org>
53273         strncat: Move AC_LIBOBJ invocations to module description.
53274         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
53275         invocations from here...
53276         * modules/strncat (configure.ac): ... to here.
53278 2011-05-22  Bruno Haible  <bruno@clisp.org>
53280         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
53281         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
53282         invocations from here...
53283         * modules/strdup (configure.ac): ... to here.
53284         * modules/strdup-posix (configure.ac): ... and here.
53286 2011-05-22  Bruno Haible  <bruno@clisp.org>
53288         strcspn: Move AC_LIBOBJ invocations to module description.
53289         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
53290         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
53291         here...
53292         * modules/strcspn (configure.ac): ... to here.
53294 2011-05-22  Bruno Haible  <bruno@clisp.org>
53296         strchrnul: Move AC_LIBOBJ invocations to module description.
53297         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
53298         gl_PREREQ_STRCHRNUL invocations from here...
53299         * modules/strchrnul (configure.ac): ... to here.
53301 2011-05-22  Bruno Haible  <bruno@clisp.org>
53303         strcasestr*: Move AC_LIBOBJ invocations to module description.
53304         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
53305         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
53306         * modules/strcasestr-simple (configure.ac): ... to here.
53307         * modules/strcasestr (configure.ac): ... and here.
53309 2011-05-22  Bruno Haible  <bruno@clisp.org>
53311         strcase: Move AC_LIBOBJ invocations to module description.
53312         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
53313         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
53314         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
53315         gl_PREREQ_STRNCASECMP invocations from here...
53316         * modules/strcase (configure.ac): ... to here.
53318 2011-05-22  Bruno Haible  <bruno@clisp.org>
53320         stpncpy: Move AC_LIBOBJ invocations to module description.
53321         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
53322         here...
53323         * modules/stpncpy (configure.ac): ... to here.
53325 2011-05-22  Bruno Haible  <bruno@clisp.org>
53327         stpcpy: Move AC_LIBOBJ invocations to module description.
53328         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
53329         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
53330         here...
53331         * modules/stpcpy (configure.ac): ... to here.
53333 2011-05-21  Bruno Haible  <bruno@clisp.org>
53335         stat: Move AC_LIBOBJ invocations to module description.
53336         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
53337         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
53338         here...
53339         * modules/stat (configure.ac): ... to here.
53341 2011-05-21  Bruno Haible  <bruno@clisp.org>
53343         sleep: Move AC_LIBOBJ invocations to module description.
53344         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
53345         * modules/sleep (configure.ac): ... to here.
53347 2011-05-21  Bruno Haible  <bruno@clisp.org>
53349         signbit: Move AC_LIBOBJ invocations to module description.
53350         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
53351         * modules/signbit (configure.ac): ... to here.
53353 2011-05-21  Bruno Haible  <bruno@clisp.org>
53355         sigprocmask: Move AC_LIBOBJ invocations to module description.
53356         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
53357         gl_PREREQ_SIGPROMASK invocations from here...
53358         * modules/sigprocmask (configure.ac): ... to here.
53360 2011-05-21  Bruno Haible  <bruno@clisp.org>
53362         sigaction: Move AC_LIBOBJ invocations to module description.
53363         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
53364         gl_PREREQ_SIGACTION invocations from here...
53365         * modules/sigaction (configure.ac): ... to here.
53367 2011-05-21  Bruno Haible  <bruno@clisp.org>
53369         sig2str: Move AC_LIBOBJ invocations to module description.
53370         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
53371         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
53372         here...
53373         * modules/sig2str (configure.ac): ... to here.
53375 2011-05-21  Bruno Haible  <bruno@clisp.org>
53377         setlocale: Move AC_LIBOBJ invocations to module description.
53378         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
53379         gl_PREREQ_SETLOCALE invocations from here...
53380         * modules/setlocale (configure.ac): ... to here.
53382 2011-05-21  Bruno Haible  <bruno@clisp.org>
53384         unsetenv: Move AC_LIBOBJ invocations to module description.
53385         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
53386         and gl_PREREQ_UNSETENV invocations from here...
53387         * modules/unsetenv (configure.ac): ... to here.
53388         (Depends-on): Update.
53390 2011-05-21  Bruno Haible  <bruno@clisp.org>
53392         setenv: Move AC_LIBOBJ invocations to module description.
53393         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
53394         here...
53395         * modules/setenv (configure.ac): ... to here.
53397 2011-05-21  Bruno Haible  <bruno@clisp.org>
53399         selinux-h: Move AC_LIBOBJ invocations to module description.
53400         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
53401         AC_LIBOBJ invocation from here...
53402         * modules/selinux-h (configure.ac): ... to here.
53404 2011-05-21  Bruno Haible  <bruno@clisp.org>
53406         select: Respect rules for use of AC_LIBOBJ.
53407         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
53408         here...
53409         * modules/select (configure.ac): ... to here.
53411 2011-05-21  Bruno Haible  <bruno@clisp.org>
53413         scandir: Move AC_LIBOBJ invocations to module description.
53414         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
53415         invocations from here...
53416         * modules/scandir (configure.ac): ... to here.
53418 2011-05-21  Bruno Haible  <bruno@clisp.org>
53420         rpmatch: Move AC_LIBOBJ invocations to module description.
53421         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
53422         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
53423         here...
53424         * modules/rpmatch (configure.ac): ... to here.
53426 2011-05-21  Bruno Haible  <bruno@clisp.org>
53428         rmdir: Respect rules for use of AC_LIBOBJ.
53429         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
53430         * modules/rmdir (configure.ac): ... to here.
53432 2011-05-21  Bruno Haible  <bruno@clisp.org>
53434         renameat: Move AC_LIBOBJ invocations to module description.
53435         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
53436         here...
53437         * modules/renameat (configure.ac): ... to here.
53439 2011-05-21  Bruno Haible  <bruno@clisp.org>
53441         rename: Respect rules for use of AC_LIBOBJ.
53442         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
53443         here...
53444         * modules/rename (configure.ac): ... to here.
53446 2011-05-21  Bruno Haible  <bruno@clisp.org>
53448         remove: Move AC_LIBOBJ invocations to module description.
53449         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
53450         here...
53451         * modules/remove (configure.ac): ... to here.
53453 2011-05-21  Bruno Haible  <bruno@clisp.org>
53455         relocatable-lib: Move AC_LIBOBJ invocations to module description.
53456         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
53457         macro.
53458         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
53459         * modules/relocatable-lib (configure.ac): ... to here.
53460         * modules/relocatable-prog-wrapper (configure.ac): Invoke
53461         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
53463 2011-05-21  Bruno Haible  <bruno@clisp.org>
53465         relocatable-prog: Move AC_LIBOBJ invocations to module description.
53466         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
53467         here...
53468         * modules/relocatable-prog (configure.ac): ... to here.
53470 2011-05-21  Bruno Haible  <bruno@clisp.org>
53472         regex: Move AC_LIBOBJ invocations to module description.
53473         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
53474         invocations from here...
53475         * modules/regex (configure.ac): ... to here.
53477 2011-05-21  Bruno Haible  <bruno@clisp.org>
53479         realloc-*: Move AC_LIBOBJ invocations to module description.
53480         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
53481         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
53482         AC_LIBOBJ invocations from here...
53483         * modules/realloc-gnu (configure.ac): ... to here.
53484         * modules/realloc-posix (configure.ac): ... and here.
53486 2011-05-21  Bruno Haible  <bruno@clisp.org>
53488         readutmp: Move AC_LIBOBJ invocations to module description.
53489         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
53490         * modules/readutmp (configure.ac): ... to here.
53492 2011-05-21  Bruno Haible  <bruno@clisp.org>
53494         readlinkat: Move AC_LIBOBJ invocations to module description.
53495         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
53496         here...
53497         * modules/readlinkat (configure.ac): ... to here.
53499 2011-05-21  Bruno Haible  <bruno@clisp.org>
53501         readlink: Move AC_LIBOBJ invocations to module description.
53502         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
53503         gl_PREREQ_READLINK invocations from here...
53504         * modules/readlink (configure.ac): ... to here.
53506 2011-05-21  Bruno Haible  <bruno@clisp.org>
53508         readline: Move AC_LIBOBJ invocations to module description.
53509         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
53510         gl_PREREQ_READLINE invocations from here...
53511         * modules/readline (configure.ac): ... to here.
53513 2011-05-21  Bruno Haible  <bruno@clisp.org>
53515         read: Move AC_LIBOBJ invocations to module description.
53516         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
53517         * modules/read (configure.ac): ... to here.
53519 2011-05-21  Bruno Haible  <bruno@clisp.org>
53521         rawmemchr: Move AC_LIBOBJ invocations to module description.
53522         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
53523         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
53524         from here...
53525         * modules/rawmemchr (configure.ac): ... to here.
53527 2011-05-21  Bruno Haible  <bruno@clisp.org>
53529         random_r: Move AC_LIBOBJ invocations to module description.
53530         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
53531         gl_PREREQ_RANDOM_R invocations from here...
53532         * modules/random_r (configure.ac): ... to here.
53534 2011-05-21  Bruno Haible  <bruno@clisp.org>
53536         pwrite: Move AC_LIBOBJ invocations to module description.
53537         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
53538         * modules/pwrite (configure.ac): ... to here.
53540 2011-05-21  Bruno Haible  <bruno@clisp.org>
53542         putenv: Move AC_LIBOBJ invocations to module description.
53543         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
53544         * modules/putenv (configure.ac): ... to here.
53546 2011-05-21  Bruno Haible  <bruno@clisp.org>
53548         login_tty: Move AC_LIBOBJ invocations to module description.
53549         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
53550         * modules/login_tty (configure.ac): ... to here.
53552 2011-05-21  Bruno Haible  <bruno@clisp.org>
53554         openpty: Move AC_LIBOBJ invocations to module description.
53555         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
53556         * modules/openpty (configure.ac): ... to here.
53558 2011-05-21  Bruno Haible  <bruno@clisp.org>
53560         forkpty: Move AC_LIBOBJ invocations to module description.
53561         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
53562         * modules/forkpty (configure.ac): ... to here.
53564 2011-05-21  Bruno Haible  <bruno@clisp.org>
53566         ptsname: Move AC_LIBOBJ invocations to module description.
53567         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
53568         invocations from here...
53569         * modules/ptsname (configure.ac): ... to here.
53571 2011-05-21  Bruno Haible  <bruno@clisp.org>
53573         pread: Move AC_LIBOBJ invocations to module description.
53574         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
53575         * modules/pread (configure.ac): ... to here.
53577 2011-05-21  Bruno Haible  <bruno@clisp.org>
53579         posix_spawn*: Move AC_LIBOBJ invocations to module description.
53580         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
53581         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
53582         * modules/posix_spawn (configure.ac): ... to here.
53583         * modules/posix_spawnp (configure.ac): ... and here.
53585 2011-05-21  Bruno Haible  <bruno@clisp.org>
53587         popen: Move AC_LIBOBJ invocations to module description.
53588         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
53589         invocations from here...
53590         * modules/popen (configure.ac): ... to here.
53592 2011-05-21  Bruno Haible  <bruno@clisp.org>
53594         poll: Move AC_LIBOBJ invocations to module description.
53595         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
53596         invocations from here...
53597         * modules/poll (configure.ac): ... to here.
53599 2011-05-21  Bruno Haible  <bruno@clisp.org>
53601         pipe-posix: Move AC_LIBOBJ invocations to module description.
53602         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
53603         * modules/pipe-posix (configure.ac): ... to here.
53605 2011-05-21  Bruno Haible  <bruno@clisp.org>
53607         openat: Respect rules for use of AC_LIBOBJ.
53608         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
53609         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
53610         * modules/openat (configure.ac): ... to here.
53612 2011-05-21  Bruno Haible  <bruno@clisp.org>
53614         obstack-printf*: Move AC_LIBOBJ invocations to module description.
53615         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
53616         invocation from here...
53617         * modules/obstack-printf (configure.ac): ... to here.
53618         * modules/obstack-printf-posix (configure.ac): ... and here.
53620 2011-05-21  Bruno Haible  <bruno@clisp.org>
53622         nl_langinfo: Move AC_LIBOBJ invocations to module description.
53623         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
53624         from here...
53625         * modules/nl_langinfo (configure.ac): ... to here.
53627 2011-05-21  Bruno Haible  <bruno@clisp.org>
53629         nanosleep: Move AC_LIBOBJ invocations to module description.
53630         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
53631         gl_PREREQ_NANOSLEEP invocations from here...
53632         * modules/nanosleep (configure.ac): ... to here.
53634 2011-05-21  Bruno Haible  <bruno@clisp.org>
53636         mountlist: Move AC_LIBOBJ invocations to module description.
53637         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
53638         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
53639         * modules/mountlist (configure.ac): ... to here.
53641 2011-05-21  Bruno Haible  <bruno@clisp.org>
53643         mktime: Respect rules for use of AC_LIBOBJ.
53644         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
53645         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
53646         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
53647         (gl_FUNC_MKTIME_INTERNAL): ... and here...
53648         * modules/mktime (configure.ac): ... to here.
53649         * modules/mktime-internal (configure.ac): ... and here.
53650         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
53652 2011-05-21  Bruno Haible  <bruno@clisp.org>
53654         mkstemps: Move AC_LIBOBJ invocations to module description.
53655         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
53656         here...
53657         * modules/mkstemps (configure.ac): ... to here.
53659 2011-05-21  Bruno Haible  <bruno@clisp.org>
53661         mkstemp: Move AC_LIBOBJ invocations to module description.
53662         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
53663         gl_PREREQ_MKSTEMP invocations from here...
53664         * modules/mkstemp (configure.ac): ... to here.
53666 2011-05-21  Bruno Haible  <bruno@clisp.org>
53668         mkostemps: Move AC_LIBOBJ invocations to module description.
53669         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
53670         here...
53671         * modules/mkostemps (configure.ac): ... to here.
53673 2011-05-21  Bruno Haible  <bruno@clisp.org>
53675         mkostemp: Move AC_LIBOBJ invocations to module description.
53676         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
53677         gl_PREREQ_MKOSTEMP invocations from here...
53678         * modules/mkostemp (configure.ac): ... to here.
53680 2011-05-21  Bruno Haible  <bruno@clisp.org>
53682         mknod: Move AC_LIBOBJ invocations to module description.
53683         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
53684         * modules/mknod (configure.ac): ... to here.
53686 2011-05-21  Bruno Haible  <bruno@clisp.org>
53688         mkfifoat: Move AC_LIBOBJ invocations to module description.
53689         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
53690         here...
53691         * modules/mkfifoat (configure.ac): ... to here.
53693 2011-05-21  Bruno Haible  <bruno@clisp.org>
53695         mkfifo: Respect rules for use of AC_LIBOBJ.
53696         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
53697         here...
53698         * modules/mkfifo (configure.ac): ... to here.
53700 2011-05-21  Bruno Haible  <bruno@clisp.org>
53702         mkdtemp: Move AC_LIBOBJ invocations to module description.
53703         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
53704         invocations from here...
53705         * modules/mkdtemp (configure.ac): ... to here.
53707 2011-05-21  Bruno Haible  <bruno@clisp.org>
53709         mkdir: Move AC_LIBOBJ invocations to module description.
53710         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
53711         * modules/mkdir (configure.ac): ... to here.
53713 2011-05-21  Bruno Haible  <bruno@clisp.org>
53715         memset: Move AC_LIBOBJ invocations to module description.
53716         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
53717         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
53718         here...
53719         * modules/memset (configure.ac): ... to here.
53721 2011-05-21  Bruno Haible  <bruno@clisp.org>
53723         memrchr: Move AC_LIBOBJ invocations to module description.
53724         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
53725         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
53726         here...
53727         * modules/memrchr (configure.ac): ... to here.
53729 2011-05-21  Bruno Haible  <bruno@clisp.org>
53731         mempcpy: Move AC_LIBOBJ invocations to module description.
53732         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
53733         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
53734         here...
53735         * modules/mempcpy (configure.ac): ... to here.
53737 2011-05-21  Bruno Haible  <bruno@clisp.org>
53739         memmove: Move AC_LIBOBJ invocations to module description.
53740         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
53741         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
53742         here...
53743         * modules/memmove (configure.ac): ... to here.
53745 2011-05-21  Bruno Haible  <bruno@clisp.org>
53747         memmem*: Move AC_LIBOBJ invocations to module description.
53748         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
53749         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
53750         here...
53751         (gl_FUNC_MEMMEM): ... and here...
53752         * modules/memmem-simple (configure.ac): ... to here.
53753         * modules/memmem (configure.ac): ... and here.
53755 2011-05-21  Bruno Haible  <bruno@clisp.org>
53757         memcpy: Move AC_LIBOBJ invocations to module description.
53758         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
53759         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
53760         here...
53761         * modules/memcpy (configure.ac): ... to here.
53763 2011-05-21  Bruno Haible  <bruno@clisp.org>
53765         memcmp: Simplify autoconf macro.
53766         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
53767         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
53768         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
53770 2011-05-21  Bruno Haible  <bruno@clisp.org>
53772         memcmp: Move AC_LIBOBJ invocations to module description.
53773         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
53774         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
53775         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
53776         * modules/memcmp (configure.ac): ... to here.
53777         (Depends-on): Update conditions.
53779 2011-05-21  Bruno Haible  <bruno@clisp.org>
53781         memchr: Respect rules for use of AC_LIBOBJ.
53782         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
53783         invocations from here...
53784         * modules/memchr (configure.ac): ... to here.
53786 2011-05-21  Bruno Haible  <bruno@clisp.org>
53788         mbtowc: Move AC_LIBOBJ invocations to module description.
53789         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
53790         invocations from here...
53791         * modules/mbtowc (configure.ac): ... to here.
53793 2011-05-21  Bruno Haible  <bruno@clisp.org>
53795         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
53796         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
53797         gl_PREREQ_MBSRTOWCS invocations from here...
53798         * modules/mbsrtowcs (configure.ac): ... to here.
53800 2011-05-21  Bruno Haible  <bruno@clisp.org>
53802         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
53803         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
53804         gl_PREREQ_MBSNRTOWCS invocations from here...
53805         * modules/mbsnrtowcs (configure.ac): ... to here.
53807 2011-05-21  Bruno Haible  <bruno@clisp.org>
53809         mbsinit: Move AC_LIBOBJ invocations to module description.
53810         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
53811         invocations from here...
53812         * modules/mbsinit (configure.ac): ... to here.
53814 2011-05-21  Bruno Haible  <bruno@clisp.org>
53816         mbrlen: Move AC_LIBOBJ invocations to module description.
53817         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
53818         invocations from here...
53819         * modules/mbrlen (configure.ac): ... to here.
53821 2011-05-21  Bruno Haible  <bruno@clisp.org>
53823         mbrtowc: Respect rules for use of AC_LIBOBJ.
53824         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
53825         invocations from here...
53826         * modules/mbrtowc (configure.ac): ... to here.
53828 2011-05-21  Bruno Haible  <bruno@clisp.org>
53830         malloc-*: Move AC_LIBOBJ invocations to module description.
53831         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
53832         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
53833         AC_LIBOBJ invocations from here...
53834         * modules/malloc-gnu (configure.ac): ... to here.
53835         * modules/malloc-posix (configure.ac): ... and here.
53837 2011-05-21  Bruno Haible  <bruno@clisp.org>
53839         lstat, openat: Respect rules for use of AC_LIBOBJ.
53840         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
53841         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
53842         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
53843         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
53844         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
53845         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
53846         here.
53847         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
53849 2011-05-21  Bruno Haible  <bruno@clisp.org>
53851         lseek: Move AC_LIBOBJ invocations to module description.
53852         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
53853         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
53854         * modules/lseek (configure.ac): ... to here.
53856 2011-05-21  Bruno Haible  <bruno@clisp.org>
53858         linkat: Move AC_LIBOBJ invocations to module description.
53859         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
53860         here...
53861         * modules/linkat (configure.ac): ... to here.
53863 2011-05-21  Bruno Haible  <bruno@clisp.org>
53865         link: Respect rules for use of AC_LIBOBJ.
53866         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
53867         * modules/link (configure.ac): ... to here.
53869 2011-05-21  Bruno Haible  <bruno@clisp.org>
53871         lchown: Move AC_LIBOBJ invocations to module description.
53872         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
53873         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
53874         * modules/lchown (configure.ac): ... to here.
53876 2011-05-21  Bruno Haible  <bruno@clisp.org>
53878         iswctype: Move AC_LIBOBJ invocations to module description.
53879         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
53880         here...
53881         * modules/iswctype (configure.ac): ... to here.
53883 2011-05-21  Bruno Haible  <bruno@clisp.org>
53885         iswblank: Move AC_LIBOBJ invocations to module description.
53886         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
53887         here...
53888         * modules/iswblank (configure.ac): ... to here.
53890 2011-05-21  Bruno Haible  <bruno@clisp.org>
53892         atanl: Move AC_LIBOBJ invocations to module description.
53893         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
53894         * modules/atanl (configure.ac): ... to here.
53896 2011-05-21  Bruno Haible  <bruno@clisp.org>
53898         acosl: Move AC_LIBOBJ invocations to module description.
53899         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
53900         * modules/acosl (configure.ac): ... to here.
53902 2011-05-21  Bruno Haible  <bruno@clisp.org>
53904         asinl: Respect rules for use of AC_LIBOBJ.
53905         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
53906         * modules/asinl (configure.ac): ... to here.
53908 2011-05-21  Bruno Haible  <bruno@clisp.org>
53910         tanl: Move AC_LIBOBJ invocations to module description.
53911         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
53912         * modules/tanl (configure.ac): ... to here.
53914 2011-05-21  Bruno Haible  <bruno@clisp.org>
53916         cosl: Move AC_LIBOBJ invocations to module description.
53917         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
53918         * modules/cosl (configure.ac): ... to here.
53920 2011-05-21  Bruno Haible  <bruno@clisp.org>
53922         sinl: Move AC_LIBOBJ invocations to module description.
53923         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
53924         * modules/sinl (configure.ac): ... to here.
53926 2011-05-21  Bruno Haible  <bruno@clisp.org>
53928         logl: Move AC_LIBOBJ invocations to module description.
53929         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
53930         * modules/logl (configure.ac): ... to here.
53932 2011-05-21  Bruno Haible  <bruno@clisp.org>
53934         expl: Move AC_LIBOBJ invocations to module description.
53935         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
53936         * modules/expl (configure.ac): ... to here.
53938 2011-05-21  Bruno Haible  <bruno@clisp.org>
53940         roundl: Move AC_LIBOBJ invocations to module description.
53941         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
53942         * modules/roundl (configure.ac): ... to here.
53944 2011-05-21  Bruno Haible  <bruno@clisp.org>
53946         round: Move AC_LIBOBJ invocations to module description.
53947         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
53948         * modules/round (configure.ac): ... to here.
53950 2011-05-21  Bruno Haible  <bruno@clisp.org>
53952         roundf: Move AC_LIBOBJ invocations to module description.
53953         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
53954         * modules/roundf (configure.ac): ... to here.
53956 2011-05-21  Bruno Haible  <bruno@clisp.org>
53958         truncl: Move AC_LIBOBJ invocations to module description.
53959         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
53960         * modules/truncl (configure.ac): ... to here.
53962 2011-05-21  Bruno Haible  <bruno@clisp.org>
53964         trunc: Move AC_LIBOBJ invocations to module description.
53965         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
53966         * modules/trunc (configure.ac): ... to here.
53968 2011-05-21  Bruno Haible  <bruno@clisp.org>
53970         truncf: Move AC_LIBOBJ invocations to module description.
53971         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
53972         * modules/truncf (configure.ac): ... to here.
53974 2011-05-21  Bruno Haible  <bruno@clisp.org>
53976         ceill: Move AC_LIBOBJ invocations to module description.
53977         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
53978         * modules/ceill (configure.ac): ... to here.
53980 2011-05-21  Bruno Haible  <bruno@clisp.org>
53982         ceil: Move AC_LIBOBJ invocations to module description.
53983         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
53984         * modules/ceil (configure.ac): ... to here.
53986 2011-05-21  Bruno Haible  <bruno@clisp.org>
53988         ceilf: Move AC_LIBOBJ invocations to module description.
53989         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
53990         * modules/ceilf (configure.ac): ... to here.
53992 2011-05-21  Bruno Haible  <bruno@clisp.org>
53994         floorl: Respect rules for use of AC_LIBOBJ.
53995         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
53996         * modules/floorl (configure.ac): ... to here.
53998 2011-05-21  Bruno Haible  <bruno@clisp.org>
54000         floor: Respect rules for use of AC_LIBOBJ.
54001         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
54002         * modules/floor (configure.ac): ... to here.
54004 2011-05-21  Bruno Haible  <bruno@clisp.org>
54006         floorf: Move AC_LIBOBJ invocations to module description.
54007         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
54008         * modules/floorf (configure.ac): ... to here.
54010 2011-05-20  Bruno Haible  <bruno@clisp.org>
54012         sqrtl: Respect rules for use of AC_LIBOBJ.
54013         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
54014         * modules/sqrtl (configure.ac): ... to here.
54016 2011-05-20  Bruno Haible  <bruno@clisp.org>
54018         ldexpl: Respect rules for use of AC_LIBOBJ.
54019         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
54020         * modules/ldexpl (configure.ac): ... to here.
54022 2011-05-20  Bruno Haible  <bruno@clisp.org>
54024         frexpl*: Respect rules for use of AC_LIBOBJ.
54025         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
54026         invocation from here...
54027         * modules/frexpl (configure.ac): ... to here.
54028         * modules/frexpl-nolibm (configure.ac): ... and here.
54030 2011-05-20  Bruno Haible  <bruno@clisp.org>
54032         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
54033         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
54034         invocation from here...
54035         * modules/frexp (configure.ac): ... to here.
54036         * modules/frexp-nolibm (configure.ac): ... and here.
54038 2011-05-20  Bruno Haible  <bruno@clisp.org>
54040         isnan: Respect rules for use of AC_LIBOBJ.
54041         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
54042         invocations here.
54043         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
54044         REPLACE_ISNAN.
54045         * modules/isnand (configure.ac): Likewise.
54046         * modules/isnanl (configure.ac): Likewise.
54048 2011-05-20  Bruno Haible  <bruno@clisp.org>
54050         isnanl*: Respect rules for use of AC_LIBOBJ.
54051         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
54052         invocation from here...
54053         * modules/isnanl (configure.ac): ... to here.
54054         * modules/isnanl-nolibm (configure.ac): ... and here.
54056 2011-05-20  Bruno Haible  <bruno@clisp.org>
54058         isnand*: Move AC_LIBOBJ invocations to module description.
54059         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
54060         invocation from here...
54061         * modules/isnand (configure.ac): ... to here.
54062         * modules/isnand-nolibm (configure.ac): ... and here.
54064 2011-05-20  Bruno Haible  <bruno@clisp.org>
54066         isnanf*: Move AC_LIBOBJ invocations to module description.
54067         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
54068         invocation from here...
54069         * modules/isnanf (configure.ac): ... to here.
54070         * modules/isnanf-nolibm (configure.ac): ... and here.
54072 2011-05-20  Bruno Haible  <bruno@clisp.org>
54074         isnan*: Separate the AC_LIBOBJ invocations.
54075         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
54076         AC_LIBOBJ invocation.
54077         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
54078         here.
54079         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
54080         AC_LIBOBJ invocation.
54081         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
54082         here.
54083         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
54084         AC_LIBOBJ invocation.
54085         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
54086         here.
54087         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
54089 2011-05-08  Bruno Haible  <bruno@clisp.org>
54091         isinf: Move AC_LIBOBJ invocations to module description.
54092         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
54093         * modules/isinf (configure.ac): ... to here.
54095 2011-05-08  Bruno Haible  <bruno@clisp.org>
54097         isfinite: Move AC_LIBOBJ invocations to module description.
54098         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
54099         * modules/isfinite (configure.ac): ... to here.
54101 2011-05-08  Bruno Haible  <bruno@clisp.org>
54103         isblank: Move AC_LIBOBJ invocations to module description.
54104         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
54105         here...
54106         * modules/isblank (configure.ac): ... to here.
54108 2011-05-08  Bruno Haible  <bruno@clisp.org>
54110         isapipe: Move AC_LIBOBJ invocations to module description.
54111         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
54112         gl_PREREQ_ISAPIPE invocations from here...
54113         * modules/isapipe (configure.ac): ... to here.
54114         (Depends-on): Update condition.
54116 2011-05-08  Bruno Haible  <bruno@clisp.org>
54118         ioctl: Move AC_LIBOBJ invocations to module description.
54119         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
54120         invocations from here...
54121         * modules/ioctl (configure.ac): ... to here.
54122         (Depends-on): Update condition.
54124 2011-05-08  Bruno Haible  <bruno@clisp.org>
54126         imaxdiv: Move AC_LIBOBJ invocations to module description.
54127         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
54128         invocations from here...
54129         * modules/imaxdiv (configure.ac): ... to here.
54131 2011-05-08  Bruno Haible  <bruno@clisp.org>
54133         imaxabs: Move AC_LIBOBJ invocations to module description.
54134         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
54135         invocations from here...
54136         * modules/imaxabs (configure.ac): ... to here.
54138 2011-05-08  Bruno Haible  <bruno@clisp.org>
54140         getaddrinfo: Move AC_LIBOBJ invocations to module description.
54141         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
54142         AC_LIBOBJ invocations from here...
54143         * modules/getaddrinfo (configure.ac): ... to here.
54144         (Depends-on): Add conditions.
54146 2011-05-08  Bruno Haible  <bruno@clisp.org>
54148         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
54149         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
54150         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
54151         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
54152         (gl_PREREQ_INET_PTON): ... from here.
54153         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
54154         gl_PREREQ_INET_PTON here.
54155         (Depends-on): Update condition.
54157 2011-05-08  Bruno Haible  <bruno@clisp.org>
54159         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
54160         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
54161         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
54162         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
54163         (gl_PREREQ_INET_NTOP): ... from here.
54164         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
54165         gl_PREREQ_INET_NTOP here.
54166         (Depends-on): Update condition.
54168 2011-05-08  Bruno Haible  <bruno@clisp.org>
54170         iconv_open: Move AC_LIBOBJ invocations to module description.
54171         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
54172         AC_LIBOBJ invocations from here...
54173         * modules/iconv_open (configure.ac): ... to here.
54175 2011-05-08  Bruno Haible  <bruno@clisp.org>
54177         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
54178         If module 'iconv_open' is among the main modules and module
54179         'iconv_open-utf' is among the tests dependencies, then
54180         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
54181         return the special iconv_t values. Therefore iconv() and iconv_close()
54182         must support these special iconv_t values, already in lib, not only in
54183         tests.
54184         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
54185         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
54186         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
54187         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
54188         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
54189         (Depends-on): Add the dependencies of iconv_open-utf.
54190         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
54191         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
54192         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
54194 2011-05-08  Bruno Haible  <bruno@clisp.org>
54196         group-member: Move AC_LIBOBJ invocations to module description.
54197         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
54198         gl_PREREQ_GROUP_MEMBER invocations from here...
54199         * modules/group-member (configure.ac): ... to here.
54201 2011-05-08  Bruno Haible  <bruno@clisp.org>
54203         grantpt: Move AC_LIBOBJ invocations to module description.
54204         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
54205         invocations from here...
54206         * modules/grantpt (configure.ac): ... to here.
54208 2011-05-08  Bruno Haible  <bruno@clisp.org>
54210         glob: Move AC_LIBOBJ invocations to module description.
54211         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
54212         from here...
54213         * modules/glob (configure.ac): ... to here.
54215 2011-05-08  Bruno Haible  <bruno@clisp.org>
54217         getusershell: Move AC_LIBOBJ invocations to module description.
54218         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
54219         Move AC_LIBOBJ invocation from here...
54220         * modules/getusershell (configure.ac): ... to here.
54221         (Depends-on): Update condition.
54223 2011-05-08  Bruno Haible  <bruno@clisp.org>
54225         gettimeofday: Move AC_LIBOBJ invocations to module description.
54226         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
54227         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
54228         gl_PREREQ_GETTIMEOFDAY invocations from here...
54229         * modules/gettimeofday (configure.ac): ... to here.
54231 2011-05-08  Bruno Haible  <bruno@clisp.org>
54233         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
54234         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
54235         just gl_FUNC_TZSET.
54236         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
54237         (gl_FUNC_TZSET_CLOBBER): Remove actions.
54238         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
54239         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
54241 2011-05-08  Bruno Haible  <bruno@clisp.org>
54243         getsubopt: Move AC_LIBOBJ invocations to module description.
54244         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
54245         gl_PREREQ_GETSUBOPT invocations from here...
54246         * modules/getsubopt (configure.ac): ... to here.
54248 2011-05-08  Bruno Haible  <bruno@clisp.org>
54250         getpass-gnu: Move AC_LIBOBJ invocations to module description.
54251         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
54252         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
54253         * modules/getpass-gnu (configure.ac): ... to here.
54255 2011-05-08  Bruno Haible  <bruno@clisp.org>
54257         getpass: Move AC_LIBOBJ invocations to module description.
54258         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
54259         gl_PREREQ_GETPASS invocations from here...
54260         * modules/getpass (configure.ac): ... to here.
54262 2011-05-08  Bruno Haible  <bruno@clisp.org>
54264         getpagesize: Move AC_LIBOBJ invocations to module description.
54265         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
54266         from here...
54267         * modules/getpagesize (configure.ac): ... to here.
54269 2011-05-08  Bruno Haible  <bruno@clisp.org>
54271         getopt: Move AC_LIBOBJ invocations to module description.
54272         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
54273         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
54274         invocations from here...
54275         * modules/getopt-gnu (configure.ac): ... to here.
54276         * modules/getopt-posix (configure.ac): ... and here.
54277         (Depends-on): Update condition.
54279 2011-05-08  Bruno Haible  <bruno@clisp.org>
54281         getopt, argp: Respect rules for use of AC_LIBOBJ.
54282         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
54283         (gl_REPLACE_GETOPT_ALWAYS): New macro.
54284         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
54285         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
54287 2011-05-08  Bruno Haible  <bruno@clisp.org>
54289         getlogin_r: Move AC_LIBOBJ invocations to module description.
54290         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
54291         gl_PREREQ_GETLOGIN_R invocations from here...
54292         * modules/getlogin_r (configure.ac): ... to here.
54294 2011-05-08  Bruno Haible  <bruno@clisp.org>
54296         getlogin: Move AC_LIBOBJ invocations to module description.
54297         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
54298         here...
54299         * modules/getlogin (configure.ac): ... to here.
54301 2011-05-08  Bruno Haible  <bruno@clisp.org>
54303         getloadavg: Move AC_LIBOBJ invocations to module description.
54304         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
54305         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
54306         * modules/getloadavg (configure.ac): ... to here.
54308 2011-05-08  Bruno Haible  <bruno@clisp.org>
54310         gethrxtime: Move AC_LIBOBJ invocations to module description.
54311         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
54312         LIB_GETHRXTIME from here...
54313         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
54314         invocations from here...
54315         * modules/gethrxtime (configure.ac): ... to here.
54317 2011-05-08  Bruno Haible  <bruno@clisp.org>
54319         gethostname: Move AC_LIBOBJ invocations to module description.
54320         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
54321         gl_PREREQ_GETHOSTNAME invocations from here...
54322         * modules/gethostname (configure.ac): ... to here.
54324 2011-05-08  Bruno Haible  <bruno@clisp.org>
54326         getgroups: Move AC_LIBOBJ invocations to module description.
54327         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
54328         here...
54329         * modules/getgroups (configure.ac): ... to here.
54331 2011-05-08  Bruno Haible  <bruno@clisp.org>
54333         getdtablesize: Move AC_LIBOBJ invocations to module description.
54334         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
54335         invocation from here...
54336         * modules/getdtablesize (configure.ac): ... to here.
54338 2011-05-08  Bruno Haible  <bruno@clisp.org>
54340         getdomainname: Move AC_LIBOBJ invocations to module description.
54341         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
54342         gl_PREREQ_GETDOMAINNAME invocations from here...
54343         * modules/getdomainname (configure.ac): ... to here.
54345 2011-05-08  Bruno Haible  <bruno@clisp.org>
54347         getline: Move AC_LIBOBJ invocations to module description.
54348         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
54349         invocations from here...
54350         * modules/getline (configure.ac): ... to here.
54352 2011-05-08  Bruno Haible  <bruno@clisp.org>
54354         getline: Simplify.
54355         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
54356         It's already handled through the module dependency.
54358 2011-05-08  Bruno Haible  <bruno@clisp.org>
54360         getdelim: Move AC_LIBOBJ invocations to module description.
54361         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
54362         and gl_PREREQ_GETDELIM invocations from here...
54363         * modules/getdelim (configure.ac): ... to here.
54364         (Depends-on): Fix condition.
54366 2011-05-08  Bruno Haible  <bruno@clisp.org>
54368         getcwd: Move AC_LIBOBJ invocations to module description.
54369         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
54370         invocations from here...
54371         * modules/getcwd (configure.ac): ... to here.
54373 2011-05-08  Bruno Haible  <bruno@clisp.org>
54375         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
54376         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
54377         here...
54378         * modules/getcwd-lgpl (configure.ac): ... to here.
54380 2011-05-07  Bruno Haible  <bruno@clisp.org>
54382         crypto/gc: Move AC_LIBOBJ invocations to module description.
54383         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
54384         * modules/crypto/gc (configure.ac): ... to here.
54386 2011-05-07  Bruno Haible  <bruno@clisp.org>
54388         fwriting: Move AC_LIBOBJ invocations to module description.
54389         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
54390         here...
54391         * modules/fwriting (configure.ac): ... to here.
54393 2011-05-07  Bruno Haible  <bruno@clisp.org>
54395         fwritable: Move AC_LIBOBJ invocations to module description.
54396         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
54397         here...
54398         * modules/fwritable (configure.ac): ... to here.
54400 2011-05-07  Bruno Haible  <bruno@clisp.org>
54402         futimens: Move AC_LIBOBJ invocations to module description.
54403         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
54404         here...
54405         * modules/futimens (configure.ac): ... to here.
54407 2011-05-07  Bruno Haible  <bruno@clisp.org>
54409         ftruncate: Move AC_LIBOBJ invocations to module description.
54410         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
54411         gl_PREREQ_FTRUNCATE invocations from here...
54412         * modules/ftruncate (configure.ac): ... to here.
54414 2011-05-07  Bruno Haible  <bruno@clisp.org>
54416         fsync: Move AC_LIBOBJ invocations to module description.
54417         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
54418         invocations from here...
54419         * modules/fsync (configure.ac): ... to here.
54421 2011-05-07  Bruno Haible  <bruno@clisp.org>
54423         fsusage: Move AC_LIBOBJ invocations to module description.
54424         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
54425         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
54426         * modules/fsusage (configure.ac): ... to here.
54428 2011-05-07  Bruno Haible  <bruno@clisp.org>
54430         freopen: Move AC_LIBOBJ invocations to module description.
54431         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
54432         invocations from here...
54433         * modules/freopen (configure.ac): ... to here.
54435 2011-05-07  Bruno Haible  <bruno@clisp.org>
54437         free: Move AC_LIBOBJ invocations to module description.
54438         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
54439         invocations from here...
54440         * modules/free (configure.ac): ... to here.
54442 2011-05-07  Bruno Haible  <bruno@clisp.org>
54444         freadable: Move AC_LIBOBJ invocations to module description.
54445         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
54446         here...
54447         * modules/freadable (configure.ac): ... to here.
54449 2011-05-07  Bruno Haible  <bruno@clisp.org>
54451         fpurge: Move AC_LIBOBJ invocations to module description.
54452         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
54453         invocations from here...
54454         * modules/fpurge (configure.ac): ... to here.
54456 2011-05-07  Bruno Haible  <bruno@clisp.org>
54458         fpending: Move AC_LIBOBJ invocations to module description.
54459         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
54460         gl_FUNC_FPENDING.
54461         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
54462         invocations from here...
54463         * modules/fpending (configure.ac): ... to here.
54465 2011-05-07  Bruno Haible  <bruno@clisp.org>
54467         fopen: Move AC_LIBOBJ invocations to module description.
54468         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
54469         invocations from here...
54470         * modules/fopen (configure.ac): ... to here.
54472 2011-05-07  Bruno Haible  <bruno@clisp.org>
54474         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
54475         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
54476         gl_FUNC_FNMATCH_POSIX.
54477         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
54478         invocations from here...
54479         * modules/fnmatch (configure.ac): ... to here.
54480         * modules/fnmatch-gnu (configure.ac): ... and here.
54482 2011-05-07  Bruno Haible  <bruno@clisp.org>
54484         flock: Move AC_LIBOBJ invocations to module description.
54485         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
54486         invocations from here...
54487         * modules/flock (configure.ac): ... to here.
54489 2011-05-07  Bruno Haible  <bruno@clisp.org>
54491         fileblocks: Move AC_LIBOBJ invocations to module description.
54492         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
54493         gl_PREREQ_FILEBLOCKS invocations from here...
54494         * modules/fileblocks (configure.ac): ... to here.
54496 2011-05-06  Bruno Haible  <bruno@clisp.org>
54498         fflush: Move AC_LIBOBJ invocations to module description.
54499         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
54500         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
54501         invocations from here...
54502         * modules/fflush (configure.ac): ... to here.
54504 2011-05-06  Bruno Haible  <bruno@clisp.org>
54506         fdopendir: Move AC_LIBOBJ invocations to module description.
54507         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
54508         here...
54509         * modules/fdopendir (configure.ac): ... to here.
54510         (Depends-on): Improve conditions.
54512 2011-05-06  Bruno Haible  <bruno@clisp.org>
54514         _Exit: Move AC_LIBOBJ invocations to module description.
54515         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
54516         invocations from here...
54517         * modules/_Exit (configure.ac): ... to here.
54519 2011-05-21  Bruno Haible  <bruno@clisp.org>
54521         euidaccess: Respect rules for use of AC_LIBOBJ.
54522         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
54523         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
54524         from here...
54525         * modules/euidaccess (configure.ac): ... to here.
54527 2011-05-06  Bruno Haible  <bruno@clisp.org>
54529         error: Move AC_LIBOBJ invocations to module description.
54530         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
54531         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
54532         invocations from here...
54533         * modules/error (configure.ac): ... to here.
54535 2011-05-06  Bruno Haible  <bruno@clisp.org>
54537         duplocale: Move AC_LIBOBJ invocations to module description.
54538         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
54539         gl_PREREQ_DUPLOCALE invocations from here...
54540         * modules/duplocale (configure.ac): ... to here.
54542 2011-05-05  Bruno Haible  <bruno@clisp.org>
54544         dirfd: Move AC_LIBOBJ invocations to module description.
54545         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
54546         gl_FUNC_DIRFD.
54547         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
54548         here...
54549         * modules/dirfd (configure.ac): ... to here.
54550         (Depends-on): Fix condition.
54552 2011-05-05  Bruno Haible  <bruno@clisp.org>
54554         chown: Respect rules for use of AC_LIBOBJ.
54555         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
54556         * modules/chown (configure.ac): ... to here.
54558 2011-05-05  Bruno Haible  <bruno@clisp.org>
54560         chdir-long: Move AC_LIBOBJ invocations to module description.
54561         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
54562         gl_PREREQ_CHDIR_LONG invocations from here...
54563         * modules/chdir-long (configure.ac): ... to here.
54565 2011-05-05  Bruno Haible  <bruno@clisp.org>
54567         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
54568         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
54569         from here...
54570         * modules/canonicalize-lgpl (configure.ac): ... to here.
54572 2011-05-05  Bruno Haible  <bruno@clisp.org>
54574         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
54575         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
54576         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
54577         REPLACE_CALLOC.
54578         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
54579         * modules/calloc-gnu (configure.ac): Likewise.
54581 2011-05-05  Bruno Haible  <bruno@clisp.org>
54583         btowc: Move AC_LIBOBJ invocations to module description.
54584         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
54585         invocations from here...
54586         * modules/btowc (configure.ac): ... to here.
54588 2011-05-21  Bruno Haible  <bruno@clisp.org>
54590         atexit: Move AC_LIBOBJ invocations to module description.
54591         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
54592         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
54593         here...
54594         * modules/atexit (configure.ac): ... to here.
54596 2011-05-05  Bruno Haible  <bruno@clisp.org>
54598         atoll: Move AC_LIBOBJ invocations to module description.
54599         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
54600         invocations from here...
54601         * modules/atoll (configure.ac): ... to here.
54603 2011-05-05  Bruno Haible  <bruno@clisp.org>
54605         argz: Move AC_LIBOBJ invocations to module description.
54606         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
54607         * modules/argz (configure.ac): ... to here.
54609 2011-05-05  Bruno Haible  <bruno@clisp.org>
54611         alphasort: Move AC_LIBOBJ invocations to module description.
54612         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
54613         gl_PREREQ_ALPHASORT invocations from here...
54614         * modules/alphasort (configure.ac): ... to here.
54616 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
54618         verify: new macro verify_expr; verify_true deprecated
54619         * NEWS: Mention this.
54620         * doc/verify.texi (Compile-time Assertions): Document this.
54621         * lib/verify.h (verify_true): Deprecate.
54622         (verify_expr): New macro.
54623         * tests/test-verify.c (function): Test verify_expr.
54625 2011-06-14  Jim Meyering  <meyering@redhat.com>
54627         init.sh: give more portable redirection-related advice in a comment
54628         * tests/init.sh (stderr_fileno_): Update the advice in comments.
54629         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
54630         for lots of discussion.  Stefano Lattarini suggested the solution
54631         of putting "9>&2" after the command.  Reported by Bruno Haible.
54633 2011-06-13  Bruno Haible  <bruno@clisp.org>
54635         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
54636         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
54637         'none'.
54639 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
54641         ftoastr: use strtof only if HAVE_STRTOF
54642         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
54643         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00154.html>.
54644         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
54645         * modules/ftoastr (configure.ac): Check for strtof.
54647 2011-06-13  Bruno Haible  <bruno@clisp.org>
54649         gnulib-tool: Addendum to 2011-06-08 commit.
54650         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
54651         and --witness-c-macro have been given, augment AM_CPPFLAGS.
54653 2011-06-13  Bruno Haible  <bruno@clisp.org>
54655         fseeko: Provide a non-inline replacement of fseek().
54656         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
54657         * modules/fseeko (Depends-on): Add fseek.
54658         * modules/fseek (License): Change to LGPLv2+.
54660 2011-06-13  Bruno Haible  <bruno@clisp.org>
54662         ftello: Provide a non-inline replacement of ftell().
54663         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
54664         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
54665         not have ftello() (such as on mingw).
54666         * modules/ftello (Depends-on): Add ftell.
54667         * modules/ftell (License): Change to LGPLv2+.
54669 2011-05-07  Bruno Haible  <bruno@clisp.org>
54671         ftell: Move AC_LIBOBJ invocations to module description.
54672         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
54673         * modules/ftell (configure.ac): ... to here.
54675 2011-05-07  Bruno Haible  <bruno@clisp.org>
54677         ftello: Respect rules for use of AC_LIBOBJ.
54678         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
54679         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
54680         here...
54681         * modules/ftello (configure.ac): ... to here.
54683 2011-05-07  Bruno Haible  <bruno@clisp.org>
54685         fseeko: Simplify.
54686         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
54687         (gl_FUNC_FSEEKO): Inline it here.
54689 2011-05-07  Bruno Haible  <bruno@clisp.org>
54691         fseek: Move AC_LIBOBJ invocations to module description.
54692         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
54693         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
54694         * modules/fseek (configure.ac): ... to here.
54696 2011-05-07  Bruno Haible  <bruno@clisp.org>
54698         fseek: Respect rules for use of AC_LIBOBJ.
54699         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
54700         here...
54701         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
54703 2011-05-07  Bruno Haible  <bruno@clisp.org>
54705         fseeko: Respect rules for use of AC_LIBOBJ.
54706         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
54707         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
54708         here...
54709         * modules/fseeko (configure.ac): ... to here.
54711 2011-06-13  Bruno Haible  <bruno@clisp.org>
54713         gnulib-tool: Allow comments in the 'Depends-on' section.
54714         * doc/gnulib.texi (Module description): Mention comment syntax in the
54715         Depends-on section.
54716         * gnulib-tool (func_get_dependencies): Filter out comment lines.
54718 2011-06-13  Bruno Haible  <bruno@clisp.org>
54720         file-set.h: guard __attibute__ use, now that it's not always defined
54721         * lib/file-set.h (record_file): Use __attribute__ only with compiler
54722         versions that support it.  This fixes a coreutils build failure with
54723         the vendor cc on HP-UX 11.31.
54725 2011-06-12  Bruno Haible  <bruno@clisp.org>
54727         acl: Add support for HP-UX >= 11.11 JFS ACLs.
54728         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
54729         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
54730         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
54731         (acl, aclsort): New declarations.
54732         (aclv_nontrivial): New declaration.
54733         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
54734         (file_has_acl): Read also the second kind of HP-UX ACLs.
54735         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
54736         kind of HP-UX ACLs if the first kind fails.
54737         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
54738         second kind of HP-UX ACLs.
54739         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
54740         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
54741         agree.
54742         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
54743         hpuxjfs.
54744         Handle hpuxjfs.
54745         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
54746         hpuxjfs.
54747         Handle hpuxjfs.
54748         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
54749         (func_test_same_acls): Use both lsacl and getacl.
54750         Handle hpuxjfs.
54751         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
54752         (func_test_same_acls): Use both lsacl and getacl.
54753         Handle hpuxjfs.
54755 2011-06-12  Bruno Haible  <bruno@clisp.org>
54757         acl: Complete the 2010-08-10 fix.
54758         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
54759         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
54760         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
54761         explicitly.
54762         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
54763         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
54765 2011-06-12  Bruno Haible  <bruno@clisp.org>
54767         spawn-pipe tests: Comments.
54768         * tests/test-spawn-pipe-child.c (main): Update comment.
54769         Reported by James Youngman <jay@gnu.org>.
54771 2011-06-11  James Youngman  <jay@gnu.org>
54773         New module 'stat-size'.
54774         * modules/stat-size: New module.  Provides macros for accessing
54775         file size information in instances of struct stat.  Depends on the
54776         fileblocks module because it calls st_blocks.
54777         * lib/stat-size.h: New file, adapted from coreutils' system.h.
54778         * doc/gnulib.texi: Include stat-size.texi.
54779         * doc/stat-size.texi: Documentation for this module.
54780         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
54781         * m4/fileblocks.m4: Mention that stat-size depends on the call to
54782         AC_STRUCT_ST_BLOCKS.
54784 2011-06-09  Bruno Haible  <bruno@clisp.org>
54786         thread: Support pthreads-win32.
54787         * lib/glthread/thread.h (gl_thread_self): Define differently on
54788         pthreads-win32.
54789         (gl_null_thread): New declaration.
54790         (gl_thread_self_pointer): New macro.
54791         * lib/glthread/thread.c (gl_null_thread): New constant.
54792         * tests/test-lock.c: Use gl_thread_self_pointer instead of
54793         gl_thread_self.
54794         * tests/test-tls.c: Likewise.
54795         Suggested by Paul Eggert. Reported by Eric Blake.
54797 2011-06-09  Bruno Haible  <bruno@clisp.org>
54799         thread: Fix confusion between NULL and 0.
54800         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
54801         Reported by Paul Eggert.
54803 2011-06-09  Bruno Haible  <bruno@clisp.org>
54805         spawn-pipe tests: Avoid test failure on HP-UX 11.
54806         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
54807         is closed.
54809 2011-06-09  Bruno Haible  <bruno@clisp.org>
54811         acl tests: Fix compilation error on HP-UX 11.
54812         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
54814 2011-06-09  Bruno Haible  <bruno@clisp.org>
54816         rmdir: Avoid test failure on HP-UX 10.20.
54817         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
54818         EEXIST.
54820 2011-06-08  Eric Blake  <eblake@redhat.com>
54822         perror: fix test on mingw
54823         * modules/perror-tests (Depends-on): Add dup2.
54825         strerror_r-posix: fix on MacOS
54826         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
54827         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
54828         logic bug.
54829         * lib/strerror_r.c (strerror_r): Fix the bug.
54830         * lib/strerror.c (strerror): Likewise.
54831         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
54832         problem.
54833         * doc/posix-functions/strerror.texi (strerror): Likewise.
54834         * doc/posix-functions/perror.texi (perror): Likewise.
54835         * tests/test-strerror.c (main): Enhance test.
54836         * tests/test-strerror_r.c (main): Likewise.
54838 2011-06-08  Bruno Haible  <bruno@clisp.org>
54840         gnulib-tool: Better isolation between different gnulib-tool invocations.
54841         * gnulib-tool: New option --witness-c-macro.
54842         (witness_c_macro): New variable.
54843         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
54844         AM_CPPFLAGS define it as a C macro.
54845         (func_emit_tests_Makefile_am): Likewise.
54846         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
54847         read it from there.
54848         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
54849         m4_define, not AC_DEFUN.
54850         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
54851         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
54852         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
54853         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
54854         s|...|...|, to substitute the values of the GNULIB_* module indicator
54855         variables.
54856         * modules/dirent (Makefile.am): Likewise.
54857         * modules/fcntl-h (Makefile.am): Likewise.
54858         * modules/iconv-h (Makefile.am): Likewise.
54859         * modules/langinfo (Makefile.am): Likewise.
54860         * modules/locale (Makefile.am): Likewise.
54861         * modules/math (Makefile.am): Likewise.
54862         * modules/netdb (Makefile.am): Likewise.
54863         * modules/poll-h (Makefile.am): Likewise.
54864         * modules/pty (Makefile.am): Likewise.
54865         * modules/search (Makefile.am): Likewise.
54866         * modules/signal (Makefile.am): Likewise.
54867         * modules/spawn (Makefile.am): Likewise.
54868         * modules/stdio (Makefile.am): Likewise.
54869         * modules/stdlib (Makefile.am): Likewise.
54870         * modules/string (Makefile.am): Likewise.
54871         * modules/sys_ioctl (Makefile.am): Likewise.
54872         * modules/sys_select (Makefile.am): Likewise.
54873         * modules/sys_socket (Makefile.am): Likewise.
54874         * modules/sys_stat (Makefile.am): Likewise.
54875         * modules/sys_times (Makefile.am): Likewise.
54876         * modules/sys_utsname (Makefile.am): Likewise.
54877         * modules/sys_wait (Makefile.am): Likewise.
54878         * modules/termios (Makefile.am): Likewise.
54879         * modules/time (Makefile.am): Likewise.
54880         * modules/unistd (Makefile.am): Likewise.
54881         * modules/wchar (Makefile.am): Likewise.
54883 2011-06-08  Eric Blake  <eblake@redhat.com>
54885         strerror: simplify replacement
54886         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
54887         * modules/strerror (configure.ac): No prereqs needed here...
54888         * modules/strerror-override (configure.ac): ...but this needs it.
54889         (Files): Add file for needed prereq macro.
54891 2011-06-08  Bruno Haible  <bruno@clisp.org>
54893         strerror_r-posix: Tweaks.
54894         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
54895         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
54896         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
54897         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
54898         (gl_FUNC_STRERROR_R): ... to here.
54899         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
54901 2011-06-07  Eric Blake  <eblake@redhat.com>
54903         perror: document fixed bugs
54904         * doc/posix-functions/perror.texi (perror): Document recent
54905         patches.
54907 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
54909         stat-time: get_stat_birthtime failure is better-defined
54910         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
54911         return a timestamp whose tv_sec and tv_nsec values are both -1.
54912         Previously, the spec said only that the tv_nsec value was negative.
54913         This upward-compatible change simplifies GNU tar a bit.
54915 2011-06-07  Eric Blake  <eblake@redhat.com>
54917         strerror_r-posix: work around cygwin 1.7.9
54918         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
54919         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
54920         bug without replacing strerror_r.
54921         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
54922         strerror_r is buggy, but without requiring strerror_r compilation.
54923         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
54925         test-perror: relax test to ignore cygwin bug
54926         * tests/test-perror2.c (main): Relax test on requiring detection
54927         of stream errors, and use unbuffered stream.
54928         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
54929         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
54930         * doc/posix-functions/fputc.texi (fputc): Likewise.
54931         * doc/posix-functions/fputs.texi (fputs): Likewise.
54932         * doc/posix-functions/fputws.texi (fputws): Likewise.
54933         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
54934         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
54935         * doc/posix-functions/getopt.texi (getopt): Likewise.
54936         * doc/posix-functions/perror.texi (perror): Likewise.
54937         * doc/posix-functions/printf.texi (printf): Likewise.
54938         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
54939         * doc/posix-functions/psignal.texi (psignal): Likewise.
54940         * doc/posix-functions/putc.texi (putc): Likewise.
54941         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
54942         Likewise.
54943         * doc/posix-functions/putchar.texi (putchar): Likewise.
54944         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
54945         Likewise.
54946         * doc/posix-functions/puts.texi (puts): Likewise.
54947         * doc/posix-functions/putwc.texi (putwc): Likewise.
54948         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
54949         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
54950         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
54951         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
54952         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
54953         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
54954         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
54955         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
54957 2011-05-22  Bruno Haible  <bruno@clisp.org>
54959         strerror: Move AC_LIBOBJ invocations to module description.
54960         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
54961         gl_PREREQ_STRERROR invocations from here...
54962         * modules/strerror (configure.ac): ... to here.
54964 2011-05-21  Bruno Haible  <bruno@clisp.org>
54966         perror: Use common idiom.
54967         * modules/perror (configure.ac): Reorder statements.
54969 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
54971         tests: fix usage message in 'mktempd_'
54972         * tests/init.sh (mktempd_): In the usage message, use literal
54973         'mktempd_', not '$ME' (which is even undefined), as the name of
54974         the subroutine.
54976 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
54978         tests init: new function 'fatal_', for hard errors
54979         Before this patch, the only way offered by tests/init.sh to
54980         properly signal a hard error was the `framework_failure_'
54981         function.  But the error message issued by that function,
54982         as its name would suggest, refers to a set-up failure in the
54983         testsuite, while hard errors can obviously also be due to
54984         other reasons.  The best way to fix this inconsistency is to
54985         introduce a new function with a more general error message.
54986         * tests/init.sh (fatal_): New function.
54988 2011-06-06  Eric Blake  <eblake@redhat.com>
54990         canonicalize-lgpl: use common idiom
54991         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
54992         over newer POSIX -Rf.
54993         Reported by Bruno Haible.
54995         canonicalize-lgpl: work around AIX realpath bug
54996         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
54997         * doc/posix-functions/realpath.texi (realpath): Document it.
54998         Reported by Bruno Haible.
55000         strerror: work around FreeBSD bug
55001         * lib/strerror.c (strerror): Special case 0.
55002         Reported by Bruno Haible.
55004         strerror-override: avoid bloating errno module
55005         * modules/errno (Files, configure.ac): Move replacement strings...
55006         * modules/strerror-override: ...to new module.
55007         * modules/strerror (Depends-on): Add strerror-override.
55008         * modules/strerror_r-posix (Depends-on): Likewise.
55009         * MODULES.html.sh: Document new module.
55010         Reported by Bruno Haible.
55012 2011-06-06  Bruno Haible  <bruno@clisp.org>
55014         spawn-pipe tests: Rename program.
55015         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
55016         * tests/test-spawn-pipe-child.c: Update comment.
55017         * tests/test-spawn-pipe.sh: Update.
55018         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
55020         spawn-pipe tests: Link the child program only against libc.
55021         * tests/test-spawn-pipe-child.c: New file, extracted from
55022         tests/test-spawn-pipe.c.
55023         (main): Expect only one argument.
55024         (is_open): New function, copied from tests/test-pipe.c.
55025         * tests/test-spawn-pipe.c: Don't include <errno.h>.
55026         (child_main): Remove function.
55027         (test_pipe): Pass only one argument to the child program.
55028         (main): Remove child process code. Expect the child program's name as
55029         first argument.
55030         * tests/test-spawn-pipe.sh: Pass the child program's name as first
55031         argument.
55032         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
55033         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
55034         test-spawn-pipe-child against no libraries.
55036 2011-06-06  Bruno Haible  <bruno@clisp.org>
55038         careadlinkat: Avoid mismatch between ssize_t and int.
55039         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
55040         * lib/careadlinkat.c (careadlinkatcwd): Define always.
55042 2011-06-06  Jim Meyering  <meyering@redhat.com>
55044         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
55045         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
55046         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
55048 2011-06-05  Bruno Haible  <bruno@clisp.org>
55050         ansi-c++-opt: Interoperability with libtool.
55051         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
55052         set the variable to "no", not to ":".
55053         * NEWS: Mention the change.
55055 2011-06-05  Bruno Haible  <bruno@clisp.org>
55057         acl: Fix test failure on AIX 7.
55058         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
55059         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
55061 2011-06-05  Bruno Haible  <bruno@clisp.org>
55063         pipe-filter-ii: Fix test failure on AIX and IRIX.
55064         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
55065         with EAGAIN, retry with a smaller buffer size.
55067 2011-06-05  Bruno Haible  <bruno@clisp.org>
55069         localename: Fix link dependencies.
55070         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
55071         * modules/localename-tests (Makefile.am): Link test-localename with
55072         $(LIBTHREAD).
55074 2011-06-05  Bruno Haible  <bruno@clisp.org>
55076         error: Avoid gcc warning.
55077         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
55079 2011-06-05  Bruno Haible  <bruno@clisp.org>
55081         unsetenv: Avoid gcc warning.
55082         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
55084 2011-06-05  Bruno Haible  <bruno@clisp.org>
55086         setenv: Avoid gcc warning.
55087         * lib/setenv.c (setenv): Provide declaration if system lacks it.
55089 2011-06-05  Bruno Haible  <bruno@clisp.org>
55091         sys_select: Ensure memset is declared also on AIX 7.
55092         * lib/sys_select.in.h: Include <string.h> also on AIX.
55093         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
55094         self-contained also on AIX 7.1.
55096 2011-06-04  Jim Meyering  <meyering@redhat.com>
55098         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
55099         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
55100         function name, "error".
55101         (_gl_translatable_diag_func_re): New configurable variable.
55103 2011-06-04  Bruno Haible  <bruno@clisp.org>
55105         getopt: Avoid gcc warning.
55106         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
55108 2011-06-04  Bruno Haible  <bruno@clisp.org>
55110         strerror_r: Fix comments.
55111         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
55112         commit.
55114 2011-06-04  Bruno Haible  <bruno@clisp.org>
55116         perror: Fix compilation error.
55117         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
55118         Undefine fprintf, not sprintf.
55119         * modules/perror (Depends-on): Remove intprops, verify.
55121 2011-06-04  Bruno Haible  <bruno@clisp.org>
55123         setlocale: Enable replacement on Cygwin 1.5.
55124         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
55125         Cygwin 1.5.x.
55126         * doc/posix-functions/setlocale.texi: Mention that the problem with the
55127         LC_CTYPE category also exists on Cygwin 1.5.x.
55129 2011-06-04  Bruno Haible  <bruno@clisp.org>
55131         strerror-override: Don't disable symbol renamings.
55132         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
55133         * lib/strerror-override.c: Include config.h.
55134         (strerror_override): Don't undefine.
55136 2011-06-03  Bruno Haible  <bruno@clisp.org>
55138         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
55139         * lib/localename.h: Update copyright header.
55140         * lib/localename.c: Likewise.
55141         * lib/relocatable.h: Likewise.
55142         * lib/relocatable.c: Likewise.
55144 2011-06-02  Bruno Haible  <bruno@clisp.org>
55146         doc: Fix a module name.
55147         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
55149 2011-06-02  Bruno Haible  <bruno@clisp.org>
55151         pipe2: Remove dependency on 'nonblocking' module.
55152         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
55153         O_NONBLOCK is defined by gnulib.
55154         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
55155         is zero.
55156         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
55157         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
55158         defined by gnulib.
55159         (get_nonblocking_flag): New function.
55160         (main): Test O_NONBLOCK flag only if it is nonzero.
55161         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
55163 2011-06-03  Jim Meyering  <meyering@redhat.com>
55165         maint: three new prohibit-header-without-use rules
55166         Prohibit use of cloexec.h, posixver.h, same.h without use.
55167         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
55168         (sc_prohibit_posixver_without_use): Likewise.
55169         (sc_prohibit_same_without_use): Likewise.
55171 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
55173         allocator: 'die' routine is now given requested size
55174         * lib/allocator.h (struct allocator.die): New size arg.
55175         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
55176         If the actual problem is an ssize_t limitation, not a size_t or
55177         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
55179 2011-06-01  Eric Blake  <eblake@redhat.com>
55181         strerror: drop strerror_r dependency
55182         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
55183         * lib/strerror-override.c (strerror_override): ...to new file.
55184         * lib/strerror-override.h: Add prototype.
55185         * lib/strerror-impl.h: Delete.
55186         * lib/strerror.c (strerror): New implementation.
55187         * modules/errno (Files): Add new files.
55188         (configure.ac): Compile new file as appropriate.
55189         * modules/strerror (Files): Drop unused file.
55190         (Depends-on): Drop strerror_r-posix.
55191         * MODULES.html.sh: Document strerror_r-posix.
55192         Requested by Sam Steingold.
55194         perror: call strerror_r directly
55195         * modules/perror (Files): Drop strerror-impl.h.
55196         * lib/perror.c (perror): Use our own stack buffer, rather than
55197         calling a wrapper that uses static storage.
55198         * doc/posix-functions/perror.texi (perror): Document a limitation
55199         of our replacement.
55201         strerror_r: fix includes for FreeBSD
55202         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
55203         since we use abort on some platforms.
55204         Reported by Matthias Bolte.
55206 2011-05-31  Bruno Haible  <bruno@clisp.org>
55208         Fix link errors in tests: openat-die uses gettext-h.
55209         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
55210         against $(LIBINTL).
55211         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
55212         against $(LIBINTL).
55213         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
55214         $(LIBINTL).
55215         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
55216         against $(LIBINTL).
55217         * modules/linkat-tests (Makefile.am): Link test-linkat against
55218         $(LIBINTL).
55219         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
55220         $(LIBINTL).
55221         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
55222         against $(LIBINTL).
55223         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
55224         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
55225         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
55226         $(LIBINTL).
55227         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
55228         $(LIBINTL).
55229         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
55230         $(LIBINTL).
55231         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
55233 2011-05-31  Bruno Haible  <bruno@clisp.org>
55235         Fix link errors in tests: wait-process uses gettext-h.
55236         * modules/nonblocking-pipe-tests (Makefile.am): Set
55237         test_nonblocking_pipe_main_LDADD.
55238         * modules/nonblocking-socket-tests (Makefile.am): Link
55239         test-nonblocking-socket-main against $(LIBINTL).
55240         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
55242 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
55244         assert-h: work around 'verify' incompatibility
55245         * lib/verify.h: Use @...@ directives, not ifdef.
55246         * modules/assert-h (assert.h): Implement the directives.
55247         (assert.h): Substitute the symbol-prefix more consistently.
55249 2011-05-29  Jim Meyering  <meyering@redhat.com>
55251         trim: remove three superfluous assignments
55252         * lib/trim.c (trim2): Remove three superfluous assignments
55253         and correct brace positioning.
55255 2011-05-29  Bruno Haible  <bruno@clisp.org>
55257         wctype-h: Avoid namespace pollution on Solaris 2.6.
55258         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
55259         identifiers.
55260         * doc/posix-headers/wctype.texi: Mention the problem.
55261         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
55263 2011-05-28  Jim Meyering  <meyering@redhat.com>
55265         parse-datetime.y: accommodate -Wstrict-overflow
55266         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
55267         placate -Wstrict-overflow.
55269         trim: avoid a warning from -O2 -Wstrict-overflow
55270         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
55272 2011-05-29  Bruno Haible  <bruno@clisp.org>
55274         gnulib-tool: Fix bug in yesterday's commit.
55275         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
55276         twice.
55278 2011-05-29  Bruno Haible  <bruno@clisp.org>
55280         Allow multiple gnulib generated include files to be combined.
55281         * gnulib-tool (func_compute_include_guard_prefix): New function.
55282         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
55283         ${gl_include_guard_prefix} references.
55284         (func_import, func_create_testdir): Invoke
55285         func_compute_include_guard_prefix.
55286         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
55287         * lib/ctype.in.h: Likewise.
55288         * lib/dirent.in.h: Likewise.
55289         * lib/errno.in.h: Likewise.
55290         * lib/fcntl.in.h: Likewise.
55291         * lib/float.in.h: Likewise.
55292         * lib/getopt.in.h: Likewise.
55293         * lib/iconv.in.h: Likewise.
55294         * lib/langinfo.in.h: Likewise.
55295         * lib/locale.in.h: Likewise.
55296         * lib/math.in.h: Likewise.
55297         * lib/netdb.in.h: Likewise.
55298         * lib/netinet_in.in.h: Likewise.
55299         * lib/poll.in.h: Likewise.
55300         * lib/pthread.in.h: Likewise.
55301         * lib/pty.in.h: Likewise.
55302         * lib/sched.in.h: Likewise.
55303         * lib/se-selinux.in.h: Likewise.
55304         * lib/search.in.h: Likewise.
55305         * lib/signal.in.h: Likewise.
55306         * lib/spawn.in.h: Likewise.
55307         * lib/stdarg.in.h: Likewise.
55308         * lib/stddef.in.h: Likewise.
55309         * lib/stdint.in.h: Likewise.
55310         * lib/stdio.in.h: Likewise.
55311         * lib/stdlib.in.h: Likewise.
55312         * lib/string.in.h: Likewise.
55313         * lib/strings.in.h: Likewise.
55314         * lib/sys_file.in.h: Likewise.
55315         * lib/sys_ioctl.in.h: Likewise.
55316         * lib/sys_select.in.h: Likewise.
55317         * lib/sys_socket.in.h: Likewise.
55318         * lib/sys_stat.in.h: Likewise.
55319         * lib/sys_time.in.h: Likewise.
55320         * lib/sys_times.in.h: Likewise.
55321         * lib/sys_uio.in.h: Likewise.
55322         * lib/sys_utsname.in.h: Likewise.
55323         * lib/sys_wait.in.h: Likewise.
55324         * lib/sysexits.in.h: Likewise.
55325         * lib/termios.in.h: Likewise.
55326         * lib/time.in.h: Likewise.
55327         * lib/unistd.in.h: Likewise.
55328         * lib/wchar.in.h: Likewise.
55329         * lib/wctype.in.h: Likewise.
55330         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
55331         * modules/ctype (Makefile.am): Likewise.
55332         * modules/dirent (Makefile.am): Likewise.
55333         * modules/errno (Makefile.am): Likewise.
55334         * modules/fcntl-h (Makefile.am): Likewise.
55335         * modules/float (Makefile.am): Likewise.
55336         * modules/getopt-posix (Makefile.am): Likewise.
55337         * modules/iconv-h (Makefile.am): Likewise.
55338         * modules/langinfo (Makefile.am): Likewise.
55339         * modules/locale (Makefile.am): Likewise.
55340         * modules/math (Makefile.am): Likewise.
55341         * modules/netdb (Makefile.am): Likewise.
55342         * modules/netinet_in (Makefile.am): Likewise.
55343         * modules/poll-h (Makefile.am): Likewise.
55344         * modules/pthread (Makefile.am): Likewise.
55345         * modules/pty (Makefile.am): Likewise.
55346         * modules/sched (Makefile.am): Likewise.
55347         * modules/search (Makefile.am): Likewise.
55348         * modules/selinux-h (Makefile.am): Likewise.
55349         * modules/signal (Makefile.am): Likewise.
55350         * modules/spawn (Makefile.am): Likewise.
55351         * modules/stdarg (Makefile.am): Likewise.
55352         * modules/stddef (Makefile.am): Likewise.
55353         * modules/stdint (Makefile.am): Likewise.
55354         * modules/stdio (Makefile.am): Likewise.
55355         * modules/stdlib (Makefile.am): Likewise.
55356         * modules/string (Makefile.am): Likewise.
55357         * modules/strings (Makefile.am): Likewise.
55358         * modules/sys_file (Makefile.am): Likewise.
55359         * modules/sys_ioctl (Makefile.am): Likewise.
55360         * modules/sys_select (Makefile.am): Likewise.
55361         * modules/sys_socket (Makefile.am): Likewise.
55362         * modules/sys_stat (Makefile.am): Likewise.
55363         * modules/sys_time (Makefile.am): Likewise.
55364         * modules/sys_times (Makefile.am): Likewise.
55365         * modules/sys_uio (Makefile.am): Likewise.
55366         * modules/sys_utsname (Makefile.am): Likewise.
55367         * modules/sys_wait (Makefile.am): Likewise.
55368         * modules/sysexits (Makefile.am): Likewise.
55369         * modules/termios (Makefile.am): Likewise.
55370         * modules/time (Makefile.am): Likewise.
55371         * modules/unistd (Makefile.am): Likewise.
55372         * modules/wchar (Makefile.am): Likewise.
55373         * modules/wctype-h (Makefile.am): Likewise.
55374         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
55376 2011-05-29  Bruno Haible  <bruno@clisp.org>
55378         assert-h: Allow multiple gnulib generated replacements to coexist.
55379         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
55381 2011-05-29  Bruno Haible  <bruno@clisp.org>
55383         argp: Allow coexistence with strerror_r-posix module.
55384         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
55385         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
55386         by gnulib's <string.h> replacement), assume it has the POSIX signature,
55387         not the glibc signature.
55389 2011-05-28  Bruno Haible  <bruno@clisp.org>
55391         gnulib-tool: Alternative structure of testdirs, similar to --import.
55392         * gnulib-tool: New option --single-configure.
55393         (func_usage): Document it.
55394         (single_configure): New variable.
55395         (func_modules_transitive_closure_separately,
55396         func_modules_transitive_closure_separately,
55397         func_determine_use_libtests, func_modules_add_dummy_separately,
55398         func_modules_to_filelist_separately): New functions, extracted from
55399         func_import.
55400         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
55401         (func_import): Use the new functions.
55402         (func_create_testdir): Set final_modules. Handle $single_configure =
55403         true case.
55405 2011-05-28  Bruno Haible  <bruno@clisp.org>
55407         getloadavg: Remove an unreliable safety check.
55408         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
55409         getloadavg.c is in place.
55410         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
55411         Reported by Sam Steingold <sds@gnu.org>.
55413 2011-05-28  Bruno Haible  <bruno@clisp.org>
55415         doc: Cleanup yet another file produced by texinfo.tex.
55416         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
55418 2011-05-28  Bruno Haible  <bruno@clisp.org>
55420         Finish the conditional dependencies mechanism.
55421         * gnulib-tool: New option --no-conditional-dependencies.
55422         (func_usage): Document it. Don't mark --conditional-dependencies as
55423         experimental.
55424         (cond_dependencies): The possible values can now be true, false, empty.
55425         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
55426         (func_import): Store setting in gnulib-cache.m4 and read it from there.
55427         * doc/gnulib-tool.texi (Conditional dependencies): New section.
55429 2011-05-28  Bruno Haible  <bruno@clisp.org>
55431         doc: Use a recent texinfo.tex.
55432         * doc/Makefile (tex_opts): New variable.
55433         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
55435 2011-05-28  Jim Meyering  <meyering@redhat.com>
55437         intprops.h: adjust comment to match code change
55438         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
55439         only once, it *may* have side effects.  Also fix an unrelated typo.
55440         (_GL_INT_SIGNED): Likewise.
55442 2011-05-26  Simon Josefsson  <simon@josefsson.org>
55444         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
55446 2011-05-26  Bruno Haible  <bruno@clisp.org>
55448         mbsrchr: Avoid collision with system function on Interix.
55449         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
55450         Reported by Markus Duft <mduft@gentoo.org>.
55452 2011-05-15  James Youngman  <jay@gnu.org>
55454         getopt: for ambiguous options, enumerate the possibilities.
55455         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
55456         the ambiguous options when an ambiguous prefix is given. This was
55457         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
55458         glibc change was
55459         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
55461 2011-05-25  Eric Blake  <eblake@redhat.com>
55463         getcwd: work around mingw bug
55464         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
55465         * doc/posix-functions/getcwd.texi (getcwd): Document it.
55466         Reported by Matthias Bolte.
55468 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
55470         test-intprops: disable -Wtype-limits diagnostics
55471         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
55472         diagnostics.  Otherwise, the integer overflow macros generate many
55473         diagnostics.  Reported by Jim Meyering in
55474         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
55476         intprops: shorten, to pacify gcc -Woverlength-strings
55477         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
55478         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
55479         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
55480         likely to run afoul of C compiler limits for string constant lengths.
55481         See <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
55483 2011-05-24  Eric Blake  <eblake@redhat.com>
55485         docs: document recently fixed glibc printf bug
55486         * doc/posix-functions/fprintf.texi (fprintf): Document it.
55487         * doc/posix-functions/printf.texi (printf): Likewise.
55488         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
55489         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
55491         closein-tests: convert to init.sh
55492         * modules/closein-tests (Files): Add init.sh
55493         * tests/test-closein.sh Use it.
55495         yesno-tests: convert to init.sh
55496         * modules/yesno-tests (Files): Add init.sh.
55497         * tests/test-yesno.sh: Use it.
55499         atexit-tests: ensure reliable exit status
55500         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
55501         Reported by Bruno Haible.
55503 2011-05-24  Bruno Haible  <bruno@clisp.org>
55505         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
55506         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
55507         gl_PREREQ_STRERROR_R invocations from here...
55508         * modules/strerror_r-posix (configure.ac): ... to here.
55510 2011-05-24  Eric Blake  <eblake@redhat.com>
55512         strerror_r: fix missing header
55513         * lib/strerror_r.c: Avoid compiler warning about snprintf.
55515         strerror_r: fix AIX test failures
55516         * lib/strerror_r.c (strerror_r): Convert silent truncation to
55517         ERANGE failure.
55519         strerror_r: fix Solaris test failures
55520         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
55521         failures.
55522         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
55524         strerror_r: enforce POSIX recommendations
55525         * lib/strerror_r.c (safe_copy): New helper method.
55526         (strerror_r): Guarantee a non-empty string.
55527         * tests/test-strerror_r.c (main): Enhance tests to incorporate
55528         recent POSIX rulings and to match our strerror guarantees.
55529         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
55531 2011-05-24  Jim Meyering  <meyering@redhat.com>
55533         test-perror2.c: avoid warning about unused variable
55534         * tests/test-perror2.c (main): Remove declaration of unused "fp".
55536 2011-05-24  Eric Blake  <eblake@redhat.com>
55538         perror: avoid spurious test failure on HP-UX
55539         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
55541         tests: fix logic bug in init.sh
55542         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
55543         shell.
55545 2011-05-24  Jim Meyering  <meyering@redhat.com>
55547         utimensat: do not reference an out-of-scope buffer
55548         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
55549         declared in an inner scope, yet "times" would be dereferenced outside
55550         the scope in which "ts" was valid.
55551         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
55552         of ts[2] "out/up", so that the use of aliased "times" (via
55553         "times = ts;") does not end up referencing an out-of-scope "ts"
55555         opendir-safer.c: don't clobber errno; don't close negative FD
55556         * lib/opendir-safer.c (opendir_safer):
55557         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
55558         file descriptor, and more importantly, don't clobber the
55559         offending errno value with EINVAL.  Before, upon failure
55560         of dup_safer, we would pass the negative file descriptor to
55561         fdopendir, which would clobber errno.
55563 2011-05-23  Bruno Haible  <bruno@clisp.org>
55565         idcache: Fix module description.
55566         * modules/idcache (Include): Set to "idcache.h".
55568 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
55570         gnulib-tool: fix portability problem with MacOS sed
55571         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
55572         before the "}".  Problem reported by Leo in
55573         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00717.html>.
55574         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
55575         sed_extract_condition1, sed_extract_condition2.
55577 2011-05-23  Bruno Haible  <bruno@clisp.org>
55579         hash: Simplify autoconf macro.
55580         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
55582 2011-05-23  Bruno Haible  <bruno@clisp.org>
55584         getugroups: Fix module description.
55585         * modules/getugroups (Include): Set to "getugroups.h".
55587 2011-05-23  Bruno Haible  <bruno@clisp.org>
55589         linkat: Simplify autoconf macro.
55590         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
55592 2011-05-23  Bruno Haible  <bruno@clisp.org>
55593             Eric Blake  <eblake@redhat.com>
55595         linkat, renameat: Update dependencies.
55596         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
55597         * modules/linkat (Depends-on): Likewise. Remove also readlink,
55598         symlinkat.
55600 2011-05-23  Jim Meyering  <meyering@redhat.com>
55602         maint.mk: more tight_scope improvements
55603         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
55604         (_gl_TS_headers): Define only in if-0'd block.
55605         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
55606         sometimes we must *not* use it.  Adjust uses accordingly.
55607         (sc_tight_scope): Use much simpler grep-based test to determine
55608         whether we skip this rule.
55610         maint.mk: generalize/improve the tight-scope rule
55611         * top/maint.mk: Emit a warning when the test is skipped.
55612         (_gl_TS_dir): Add $(srcdir)/ prefix.
55613         (_gl_TS_function_match): Simplify, rather than trying
55614         to enumerate common types.  Otherwise, it would fail to match an
55615         "extern unsigned char const *" declaration in idutils.
55616         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
55617         a way to support use of that type of macro.
55618         (_gl_TS_var_match): Simplify regexp.
55619         (_gl_TS_obj_files): New configurable variable.
55620         (_gl_TS_headers): Likewise.
55622 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
55624         verify: fix bug when gnulib <assert.h> is also included
55625         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
55626         is defined, not if _GL_STATIC_ASSERT_H is not defined.
55627         Perhaps there's a better way, but this fixes the immediate problem.
55628         Problem reported by Bruno Haible in
55629         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00478.html>.
55631 2011-05-22  Bruno Haible  <bruno@clisp.org>
55633         xgetcwd: Simplify autoconf macro.
55634         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
55636 2011-05-22  Bruno Haible  <bruno@clisp.org>
55638         New module 'mktime-internal'.
55639         * modules/mktime-internal: New file.
55640         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
55641         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
55642         mktime_internal as a C macro if libc has __mktime_internal.
55643         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
55644         conditions.
55645         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
55647 2011-05-22  Bruno Haible  <bruno@clisp.org>
55649         timegm: Correct mktime replacement statements.
55650         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
55651         defining mktime as a C macro. This completes a 2009-07-28 commit.
55653 2011-05-22  Bruno Haible  <bruno@clisp.org>
55655         timegm: Simplify autoconf macro.
55656         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
55658 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
55660         clock-time: change to LGPLv2+.
55661         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
55662         BSD-like but we have no mark for that; this is good enough for now.
55664 2011-05-21  Bruno Haible  <bruno@clisp.org>
55666         strerror_r: Fix comments.
55667         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
55669 2011-05-21  Bruno Haible  <bruno@clisp.org>
55671         relocatable-prog-wrapper: Fix possible link error.
55672         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
55673         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
55674         (gl_FUNC_SETENV): ... to here.
55675         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
55676         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
55678 2011-05-21  Bruno Haible  <bruno@clisp.org>
55680         relocatable-prog-wrapper: Assume strerror() exists.
55681         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
55682         m4/strerror.m4.
55683         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
55684         * lib/relocwrapper.c: Remove mention of strerror module.
55685         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
55686         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
55687         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
55688         C macro.
55690 2011-05-21  Bruno Haible  <bruno@clisp.org>
55692         select: Simplify replacement idiom.
55693         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
55694         Win32 platforms.
55695         * lib/sys_select.in.h (select): Simplify accordingly.
55696         * modules/select (Depends-on): Likewise.
55698 2011-05-21  Bruno Haible  <bruno@clisp.org>
55700         mkdir-p: Simplify autoconf macro.
55701         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
55702         gl_FUNC_LCHOWN.
55704 2011-05-21  Eric Blake  <eblake@redhat.com>
55706         strerror_r: avoid clobbering strerror on cygwin
55707         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
55708         fall back instead to sys_errlist.
55709         * modules/strerror (configure.ac): Add witness.
55710         * tests/test-strerror_r.c (main): Enhance test.
55711         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
55712         * tests/test-perror2.c (main): Free memory before exit.
55714 2011-05-21  Bruno Haible  <bruno@clisp.org>
55716         mkdtemp: Use gnulib naming conventions.
55717         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
55718         * modules/mkdtemp (configure.ac): Update.
55720 2011-05-20  Eric Blake  <eblake@redhat.com>
55722         strerror_r: avoid corrupting errno on Solaris
55723         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
55724         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
55726         strerror_r: avoid compiler warning
55727         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
55729         strerror_r: simplify AIX code
55730         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
55732         test-perror: avoid spurious failure on FreeBSD
55733         * modules/perror-tests (Depends-on): Add strerror, now that
55734         strerror_r no longer pulls it in.
55736 2011-05-20  Bruno Haible  <bruno@clisp.org>
55738         strerror_r-posix: Remove unused dependencies.
55739         * modules/strerror_r-posix (Depends-on): Remove strerror.
55740         Reported by Eric Blake.
55742 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
55744         intprops: remove assumption about A|B representation
55745         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
55746         is a valid integer if both A and B are.  Although this is true for
55747         all known practical hosts, the C standard doesn't guarantee it,
55748         and the code need not assume it.  Also, this change may work around
55749         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
55750         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00426.html>.
55752 2011-05-20  Eric Blake  <eblake@redhat.com>
55754         perror: work around FreeBSD bug
55755         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
55756         is broken.  Move AC_LIBOBJ...
55757         * modules/perror (configure.ac): Here.
55758         * doc/posix-functions/perror.texi (perror): Document this.
55759         * tests/test-perror2.c (main): Enhance test.
55761         test-perror: check for strerror interactions
55762         * tests/macros.h (STREQ): Add macro.
55763         * modules/perror-tests (Files): Add second test.
55764         * tests/test-perror2.c (main): New file.
55765         * doc/posix-functions/perror.texi (perror): Document glibc bug.
55767         test-perror: rewrite to use init script
55768         * modules/perror-tests (Files): Add init.sh.
55769         * tests/test-perror.sh: Use temporary directory.
55771 2011-05-20  Jim Meyering  <meyering@redhat.com>
55773         maint: replace misused "a" with "an"
55774         * doc/intprops.texi: "a integer"
55775         * doc/regex.texi: "a explanation"
55776         * lib/alignof.h: "a object"
55777         * lib/argmatch.h: "a explanation"
55778         * lib/argp-help.c: "a option" and "a OPTION_DOC"
55779         * lib/stdint.in.h: "a integer"
55780         * lib/userspec.c: "a owner"
55781         * doc/gnulib.texi: Fix "a idea", and reword.
55783 2011-05-19  Jim Meyering  <meyering@redhat.com>
55785         maint: correct misuse of "a" and "an"
55786         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
55787         * lib/argp-help.c: "an docum...": s/an/a/
55788         * lib/argp-parse.c: "An vector": s/An/A/
55789         * lib/execute.c: "an native": s/an/a/
55790         * lib/spawn-pipe.c: Likewise.
55791         * lib/gc.h: "an Gc_rc": s/an/a/
55792         * lib/unigbrk.in.h: "an grapheme": s/an/a/
55793         * lib/fts.c: "an stat.st_dev": s/an/a/
55795 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
55797         intprops-tests: work around HP-UX 11.23 cc bug with constants
55798         * tests/test-intprops.c (VERIFY): New macro.
55799         (main): Use it, instead of verify, to work around the compiler bug; see
55800         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
55802         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
55803         See http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html
55804         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
55805         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
55806         (_GL_REMAINDER_OVERFLOW): Use it.
55808         intprops-tests: revert unsigned part of previous change
55809         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
55810         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
55811         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
55812         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html>.
55814 2011-05-19  Bruno Haible  <bruno@clisp.org>
55816         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
55817         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
55818         strerror_r() returned without filling the buffer.
55819         Reported by Eric Blake.
55821 2011-05-19  Eric Blake  <eblake@redhat.com>
55823         strerror_r: guarantee unchanged errno
55824         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
55825         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
55826         failure.
55827         * tests/test-strerror_r.c (main): Enhance test.
55829 2011-05-19  Bruno Haible  <bruno@clisp.org>
55831         strerror_r: Reorder #if blocks.
55832         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
55833         for consistency with the previous commit.
55835 2011-05-19  Bruno Haible  <bruno@clisp.org>
55837         perror: Avoid clobbering the strerror buffer when possible.
55838         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
55839         * lib/strerror.c: Include it.
55840         * modules/strerror (Files): Add lib/strerror-impl.h.
55841         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
55842         (my_strerror): New function, defined through lib/strerror-impl.h.
55843         (perror): Use it instead of strerror.
55844         * modules/perror (Files): Add lib/strerror-impl.h.
55845         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
55847 2011-05-19  Eric Blake  <eblake@redhat.com>
55849         strerror_r: fix on newer cygwin
55850         * lib/strerror_r.c (strerror_r): Cygwin now has
55851         __xpg_strerror_r, use it.
55853 2011-05-19  Bruno Haible  <bruno@clisp.org>
55855         strerror_r: Avoid clobbering the strerror buffer when possible.
55856         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
55857         (sys_nerr, sys_errlist): New declarations.
55858         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
55859         HP-UX, native Win32, IRIX, and 32-bit Solaris.
55860         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
55862 2011-05-19  Bruno Haible  <bruno@clisp.org>
55864         strerror_r: Fix test failure on mingw.
55865         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
55866         EXTEND_STRERROR_R.
55867         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
55868         macros from errno.in.h instead.
55870 2011-05-19  Eric Blake  <eblake@redhat.com>
55872         strerror: relax test for Solaris
55873         * tests/test-strerror.c (main): Permit Solaris behavior.
55874         * tests/test-strerror_r.c (main): Likewise.
55876         strerror: enforce POSIX ruling on strerror(0)
55877         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
55878         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
55879         * lib/strerror_r.c (rpl_strerror_r): Work around it.
55880         * doc/posix-functions/strerror.texi (strerror): Document it.
55881         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
55882         * tests/test-strerror.c (main): Strengthen test.
55883         * tests/test-strerror_r.c (main): Likewise.
55885 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
55887         intprop-tests: port to older and more-pedantic compilers
55888         * modules/intprops-tests (Files): Add tests/macros.h.
55889         * tests/test-intprops.c: Include macros.h.
55890         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
55891         it's no longer documented to expand to an integer constant expression.
55892         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
55893         argument is floating point, as it's no longer documented to expand
55894         to an integer constant expression in that case.
55895         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
55896         compiler bugs reported by Bruno Haible.  See
55897         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
55898         (U0, U1): New constants, to work around the same bugs.  Also,
55899         in tests, use e.g., "(unsigned int) 39" rather than "39u".
55901         intprops: work around C compiler bugs
55902         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
55903         bug in Sun C 5.11 2010/08/13 and other compilers; see
55904         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
55906         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
55907         * doc/intprops.texi (Integer Type Determination): Fix
55908         documentation for TYPE_IS_INTEGER: it returns an constant
55909         expression, not an integer constant expression.  Fix doc for
55910         TYPE_SIGNED: it returns an integer constant expression only if its
55911         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
55912         hardly worth documented that way....)
55914 2011-05-18  Bruno Haible  <bruno@clisp.org>
55916         strerror_r: Avoid clobbering the strerror buffer when possible.
55917         * lib/strerror_r.c (strerror_r): Merge the three implementations.
55918         Handle gnulib defined errno values here. When strerror() returns NULL
55919         or an empty string, return EINVAL.
55920         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
55921         gnulib defined errno values here.
55922         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
55924 2011-05-18  Eric Blake  <eblake@redhat.com>
55926         fnmatch: avoid compiler warning
55927         * lib/fnmatch_loop.c (FCT): Use correct type.
55928         Reported by Matthias Bolte.
55930 2011-05-13  Jim Meyering  <meyering@redhat.com>
55932         maint.mk: three new prohibit_<HDR>_without_use rules
55933         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
55934         (sc_prohibit_stdio-safer_without_use): Likewise.
55935         (sc_prohibit_xfreopen_without_use): Likewise.
55937 2011-05-17  Jim Meyering  <meyering@redhat.com>
55939         announce-gen: fail if the NEWS delta is empty
55940         If there's nothing noteworthy in NEWS, then either you forgot
55941         or you shouldn't be releasing.
55942         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
55944 2011-05-17  Pádraig Brady  <P@draigBrady.com>
55946         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
55947         reserved symbols starting with double underscore from the check.
55949 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
55951         intprops: add doc
55952         * doc/intprops.texi: New file, documenting intprops.
55953         * doc/gnulib.texi (Particular Modules): Include it.
55955         verify: add doc to gnulib manual and fix example
55956         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
55957         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
55958         (Compile-time Assertions): Fix example so it can't overflow.
55960 2011-05-17  Jim Meyering  <meyering@redhat.com>
55962         warnings.m4: don't usurp save_CPPFLAGS variable name
55963         * m4/warnings.m4: Prefix local temporary variable name with gl_.
55965         doc: fix typo
55966         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
55968 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
55969             Bruno Haible  <bruno@clisp.org>
55971         doc: Tweak recent change.
55972         * README (Portability guidelines): Tweak new text.
55973         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
55974         Interix 6.1.
55976 2011-05-16  Eric Blake  <eblake@redhat.com>
55978         inttypes: avoid autoconf warning
55979         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
55980         * m4/stdint.m4 (gl_STDINT_H): Likewise.
55982 2011-05-16  Sam Steingold  <sds@gnu.org>
55983         and Eric Blake  <eblake@redhat.com>
55985         vc-list-files: accept multiple directory operands
55986         * build-aux/vc-list-files: Iterate over all remaining operands.
55988 2011-05-16  Bruno Haible  <bruno@clisp.org>
55990         Fix confusion regarding deprecated modules.
55991         * modules/calloc (Status, Notice): Mark module as deprecated, not
55992         obsolete.
55993         * modules/fnmatch-posix (Status, Notice): Likewise.
55994         * modules/getdate (Status, Notice): Likewise.
55995         * modules/getopt (Status, Notice): Likewise.
55996         * modules/malloc (Status, Notice): Likewise.
55997         * modules/pipe (Status, Notice): Likewise.
55998         * modules/realloc (Status, Notice): Likewise.
55999         * modules/rename-dest-slash (Status, Notice): Likewise.
56000         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
56001         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
56002         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
56003         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
56004         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
56006 2011-05-16  Bruno Haible  <bruno@clisp.org>
56008         doc: List the target platforms.
56009         * doc/gnulib-intro.texi (Target Platforms): New section.
56010         * doc/gnulib.texi (Introduction): Update menu.
56011         * README (Portability guidelines): Refer to the new section. Update
56012         statement about oldest supported environment. Remove rationale why
56013         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
56014         unportable C89 function.
56015         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
56016         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
56018 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
56020         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
56022 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
56024         intprops-tests: new module
56025         * modules/intprops-tests, tests/test-intprops.c: New files.
56027         intprops: add safe, portable integer overflow checking
56028         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
56029         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
56030         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
56031         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
56032         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
56033         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
56034         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
56035         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
56036         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
56037         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
56038         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
56040 2011-05-12  James Youngman  <jay@gnu.org>
56042         Add a test for glibc's Bugzilla bug #12378.
56043         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
56044         doesn't allow the literal matching of a lone "[" (which is
56045         required by POSIX).
56046         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
56048 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
56050         Sync glibc change fixing Bugzilla bug #12378.
56051         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
56052         beginning and fall back to matching as normal character if the
56053         string ends before the matching ']' is found.  This is what POSIX
56054         requires.
56056 2011-05-13  Eric Blake  <eblake@redhat.com>
56058         getcwd-lgpl: relax test for FreeBSD
56059         * doc/posix-functions/getcwd.texi (getcwd): Document portability
56060         issue.
56061         * tests/test-getcwd-lgpl.c (main): Relax test.
56062         Reported by Matthias Bolte.
56064 2011-05-11  Eric Blake  <eblake@redhat.com>
56066         test-fflush: silence compiler warning
56067         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
56069 2011-05-11  Bruno Haible  <bruno@clisp.org>
56071         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
56072         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
56073         * modules/canonicalize (Depends-on): Add 'nocrash'.
56074         * modules/canonicalize-lgpl (Depends-on): Likewise.
56075         * doc/posix-functions/realpath.texi: Update platforms list.
56076         Reported by Ryan Schmidt <ryandesign@macports.org>.
56078 2011-05-11  Bruno Haible  <bruno@clisp.org>
56080         group-member: Declare function in <unistd.h>.
56081         * lib/unistd.in.h (group_member): New declaration.
56082         * lib/group-member.h: Remove file.
56083         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
56084         * tests/test-unistd-c++.cc: Check signature of group_member.
56085         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
56086         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
56087         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
56088         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
56089         HAVE_GROUP_MEMBER.
56090         * modules/group-member (Files): Remove lib/group-member.h.
56091         (Depends-on): Add unistd. Specify conditions.
56092         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56093         (Include): Change to <unistd.h>.
56094         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
56095         HAVE_GROUP_MEMBER.
56096         * NEWS: Mention the change.
56097         * lib/euidaccess.c: Don't include group-member.h.
56099 2011-05-11  Bruno Haible  <bruno@clisp.org>
56101         group-member: Document module.
56102         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
56103         module.
56105 2011-05-11  Bruno Haible  <bruno@clisp.org>
56107         fclose: Fix mistake earlier today.
56108         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
56110 2011-05-11  Eric Blake  <eblake@redhat.com>
56112         fclose: preserve fflush errors
56113         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
56114         Reported by Jim Meyering.
56116         bootstrap: support a prereq of 'rpcgen -' on RHEL5
56117         * build-aux/bootstrap (check_versions): When no specific version
56118         is required, merely check that the app produces an exit status
56119         that indicates its existence.
56121         maint.mk: drop redundant check
56122         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
56123         the same but better.
56125 2011-05-11  Bruno Haible  <bruno@clisp.org>
56127         fclose: Fix possible link error.
56128         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
56129         unregister_shadow_fd. Improve comments.
56130         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
56131         Eric Blake.
56133 2011-05-11  Jim Meyering  <meyering@redhat.com>
56135         maint.mk: improve "can not" detection and generalize rule name
56136         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
56137         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
56138         Use the same technique as in sc_prohibit_doubled_word, so that
56139         we recognize "can not" also when the words are separated by a newline.
56140         Suggested by Eric Blake.
56141         (perl_filename_lineno_text_): Define.  Factored out of...
56142         (prohibit_doubled_word_): ...here.  Use the new definition.
56143         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
56144         (prohibit_undesirable_word_seq_RE_): New overridable variable.
56145         (ignore_undesirable_word_sequence_RE_): New overridable variable.
56147 2011-05-10  Eric Blake  <eblake@redhat.com>
56149         fclose: avoid double close race when possible
56150         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
56151         all but WINDOWS_SOCKETS.
56153 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
56155         openat: correct new comment
56156         * lib/openat-proc.c (openat_proc_name): Correct the comment.
56158 2011-05-10  Jim Meyering  <meyering@redhat.com>
56160         openat: add comments
56161         * lib/openat-proc.c (openat_proc_name): Add comments,
56162         mostly from Eric Blake.
56164 2011-05-09  Eric Blake  <eblake@redhat.com>
56166         openat: reduce syscalls in first probe of /proc
56167         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
56168         be a directory.  Simplify the probe for .. bugs.
56169         * modules/openat (Depends-on): Drop same-inode.
56170         Reported by Bastien ROUCARIES.
56172 2011-05-09  Jim Meyering  <meyering@redhat.com>
56174         maint.mk: change semantics/name of tight_scope variables
56175         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
56176         Rename variables to align with semantics that make them more useful.
56178         maint.mk: tweak new rule's name not to impinge
56179         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
56180         (sc_tight_scope): Use new rule name rather than $@-0.
56182         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
56183         * top/maint.mk (sc_tight_scope): New rule.
56184         (sc_tight_scope-0): New rule, ifdef'd out.
56185         (_gl_TS_dir): Default.
56186         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
56187         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
56189 2011-05-09  Simon Josefsson  <simon@josefsson.org>
56191         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
56192         Haible <bruno@clisp.org>.
56194 2011-05-08  Bruno Haible  <bruno@clisp.org>
56196         Comments.
56197         * m4/isnanf.m4: Add comment.
56198         * m4/isnanl.m4: Likewise.
56200 2011-05-08  Bruno Haible  <bruno@clisp.org>
56202         glob: Remove obsolete macro.
56203         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
56205 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
56207         intprops: Sun C 5.11 supports __typeof__
56208         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
56209         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
56210         which is new.
56211         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
56213         intprops: switch to usual gnulib indenting and naming
56214         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
56215         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
56217         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
56219 2011-05-08  Jim Meyering  <meyering@redhat.com>
56221         maint.mk: suppress "Entering/Leaving directory" diag in announcement
56222         * top/maint.mk (release-prep): Use make's --no-print-directory
56223         option when generating the announcement.  This eliminates the
56224         pesky "make[2]: Entering/Leaving directory" diagnostics in the
56225         generated announcement template.
56227 2011-05-08  Bruno Haible  <bruno@clisp.org>
56229         tzset: Fix gettimeofday wrapper on Solaris 2.6.
56230         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
56231         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
56233 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
56235         ignore-value, verify: Omit include files from lib_SOURCES.
56236         * modules/ignore-value, modules/verify (Makefile.am):
56237         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
56238         that leads Automake to duplicate use of am__objects_... variables
56239         in Makefile.in.  See
56240         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00257.html>.
56242 2011-05-07  Bruno Haible  <bruno@clisp.org>
56244         fclose: Simplify autoconf macro.
56245         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
56246         defined.
56248 2011-05-07  Bruno Haible  <bruno@clisp.org>
56250         canonicalize-lgpl: Fix autoconf macro ordering bug.
56251         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
56252         gl_STDLIB_H_DEFAULTS.
56254 2011-05-06  Eric Blake  <eblake@redhat.com>
56256         maintainer-makefile: make sc_po_check easier to tune
56257         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
56258         to probe for strings, such as an alternate location for gnulib.
56260         fclose: guarantee behavior on seekable stdin
56261         * modules/fclose (Depends-on): Add fflush.
56262         * doc/posix-functions/fclose.texi (fclose): Document this.
56263         * tests/test-fclose.c (main): Make test for this unconditional.
56265 2011-05-06  Bruno Haible  <bruno@clisp.org>
56267         fflush, fpurge: Relicense under LGPLv2+.
56268         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
56269         * modules/fpurge (License): Likewise.
56270         With permission from Eric Blake and Jim Meyering.
56271         Suggested by Eric Blake.
56273 2011-05-06  Karl Berry  <karl@gnu.org>
56275         * MODULES.html.sh (func_all_modules): remove exit.
56277 2011-05-06  Jim Meyering  <meyering@redhat.com>
56279         maint.mk: use info-gnu@ as the default only for a stable release
56280         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
56281         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
56282         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
56283         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
56285 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
56287         assert-h: new module, which supports C1X-style static_assert
56288         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
56289         * lib/verify.h: Revamp so that this can be copied into assert.h,
56290         while retaining the ability to use it standalone as before.
56291         Rename private identifiers so as not to encroach on the
56292         standard C namespace, since this is now used by assert.h.
56293         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
56294         the old verify_true.
56295         (_GL_VERIFY_TRUE): New macro, with much of the contents of
56296         the old verify_true.  Use _GL_VERIFY_TYPE.
56297         (_GL_VERIFY): New macro, with much of the contents of the old verify.
56298         (static_assert): New macro, if _GL_STATIC_ASSERT_H
56299         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
56300         defined when this file is copied into the replacement assert.h.
56301         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
56302         and _Static_assert is not built in.
56303         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
56304         defined, and use the new macros mentioned above.
56305         * doc/posix-headers/assert.texi: Document this.
56307 2011-05-05  Bruno Haible  <bruno@clisp.org>
56309         fclose, fflush: Respect rules for use of AC_LIBOBJ.
56310         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
56311         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
56312         gl_REPLACE_FCLOSE here.
56313         * modules/fflush (Depends-on): Remove fclose.
56314         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
56315         combination with module 'fclose'.
56317 2011-05-05  Bruno Haible  <bruno@clisp.org>
56319         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
56320         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
56321         gl_FUNC_FFLUSH.
56322         (gl_FUNC_FFLUSH): Use it.
56323         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
56324         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
56325         gl_REPLACE_FSEEKO here.
56327 2011-05-05  Bruno Haible  <bruno@clisp.org>
56329         tzset: Relicense under LGPL.
56330         * modules/tzset (License): Change to LGPL.
56331         No agreement needed; it's a no-op.
56333         strtoimax, strtoumax: Relicense under LGPL.
56334         * modules/strtoimax (License): Change to LGPL.
56335         * modules/strtoumax (License): Likewise.
56336         With permission from Jim Meyering, Paul Eggert:
56337         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00124.html>
56338         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00109.html>
56340         getgroups: Relicense under LGPL.
56341         * modules/getgroups (License): Change to LGPL.
56342         With permission from Jim Meyering, Paul Eggert, Eric Blake:
56343         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
56344         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
56345         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
56347         nanosleep: Relicense under LGPL.
56348         * modules/nanosleep (License): Change to LGPL.
56349         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
56350         Haible:
56351         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
56352         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
56353         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
56354         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
56356         futimens: Relicense under LGPL.
56357         * modules/futimens (License): Change to LGPL.
56358         With permission from Eric Blake:
56359         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
56361         fflush: Relicense under LGPL.
56362         * modules/fflush (License): Change to LGPL.
56363         With permission from Eric Blake, Bruno Haible, Jim Meyering:
56364         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
56365         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
56366         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00133.html>
56368         tmpfile: Relicense under LGPL.
56369         * modules/tmpfile (License): Change to LGPL.
56370         With permission from Ben Pfaff:
56371         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
56373         isfinite: Relicense under LGPL.
56374         * modules/isfinite (License): Change to LGPL.
56375         With permission from Ben Pfaff, Bruno Haible:
56376         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
56377         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00130.html>
56379         acosl..tanl: Relicense under LGPL.
56380         * modules/acosl (License): Change to LGPL.
56381         * modules/asinl (License): Likewise.
56382         * modules/atanl (License): Likewise.
56383         * modules/cosl (License): Likewise.
56384         * modules/expl (License): Likewise.
56385         * modules/logl (License): Likewise.
56386         * modules/sinl (License): Likewise.
56387         * modules/sqrtl (License): Likewise.
56388         * modules/tanl (License): Likewise.
56389         Source code originally from glibc and Paolo Bonzini. Agreements:
56390         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00137.html>
56391         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00128.html>
56393 2011-05-05  Bruno Haible  <bruno@clisp.org>
56395         signal: Define sighandler_t.
56396         * lib/signal.in.h (sighandler_t): New type.
56397         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
56398         whether sighandler_t is defined.
56399         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
56400         * modules/signal (Depends-on): Add extensions.
56401         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
56402         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
56403         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
56405 2011-05-05  Eric Blake  <eblake@redhat.com>
56407         maint: remove useless REPLACE_*_H macros
56408         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
56409         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
56410         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
56411         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
56412         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
56413         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
56414         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
56415         * m4/btowc.m4: Update callers.
56416         * m4/dirfd.m4: Likewise.
56417         * m4/duplocale.m4: Likewise.
56418         * m4/fchdir.m4: Likewise.
56419         * m4/fdopendir.m4: Likewise.
56420         * m4/inet_ntop.m4: Likewise.
56421         * m4/inet_pton.m4: Likewise.
56422         * m4/ioctl.m4: Likewise.
56423         * m4/mbrlen.m4: Likewise.
56424         * m4/mbrtowc.m4: Likewise.
56425         * m4/mbsinit.m4: Likewise.
56426         * m4/mbsnrtowcs.m4: Likewise.
56427         * m4/mbsrtowcs.m4: Likewise.
56428         * m4/poll.m4: Likewise.
56429         * m4/setlocale.m4: Likewise.
56430         * m4/wcrtomb.m4: Likewise.
56431         * m4/wcsnrtombs.m4: Likewise.
56432         * m4/wcsrtombs.m4: Likewise.
56433         * m4/wctob.m4: Likewise.
56434         * m4/wcwidth.m4: Likewise.
56435         * modules/posix_spawn: Likewise.
56436         * modules/posix_spawn_file_actions_addclose: Likewise.
56437         * modules/posix_spawn_file_actions_adddup2: Likewise.
56438         * modules/posix_spawn_file_actions_addopen: Likewise.
56439         * modules/posix_spawn_file_actions_destroy: Likewise.
56440         * modules/posix_spawn_file_actions_init: Likewise.
56441         * modules/posix_spawnattr_destroy: Likewise.
56442         * modules/posix_spawnattr_getflags: Likewise.
56443         * modules/posix_spawnattr_getpgroup: Likewise.
56444         * modules/posix_spawnattr_getschedparam: Likewise.
56445         * modules/posix_spawnattr_getschedpolicy: Likewise.
56446         * modules/posix_spawnattr_getsigdefault: Likewise.
56447         * modules/posix_spawnattr_getsigmask: Likewise.
56448         * modules/posix_spawnattr_init: Likewise.
56449         * modules/posix_spawnattr_setflags: Likewise.
56450         * modules/posix_spawnattr_setpgroup: Likewise.
56451         * modules/posix_spawnattr_setschedparam: Likewise.
56452         * modules/posix_spawnattr_setschedpolicy: Likewise.
56453         * modules/posix_spawnattr_setsigdefault: Likewise.
56454         * modules/posix_spawnattr_setsigmask: Likewise.
56455         * modules/posix_spawnp: Likewise.
56457 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
56459         Add option to do-release-commit-and-tag to specify branch.
56460         * build-aux/do-release-commit-and-tag: Add --branch.
56462 2011-05-03  Bruno Haible  <bruno@clisp.org>
56464         Avoid unnecessary compilation units, through conditional dependencies.
56465         * modules/accept (Depends-on): Add conditions to the dependencies.
56466         * modules/acosl (Depends-on): Likewise.
56467         * modules/argz (Depends-on): Likewise.
56468         * modules/asinl (Depends-on): Likewise.
56469         * modules/atanl (Depends-on): Likewise.
56470         * modules/atoll (Depends-on): Likewise.
56471         * modules/bind (Depends-on): Likewise.
56472         * modules/btowc (Depends-on): Likewise.
56473         * modules/canonicalize-lgpl (Depends-on): Likewise.
56474         * modules/ceil (Depends-on): Likewise.
56475         * modules/ceilf (Depends-on): Likewise.
56476         * modules/ceill (Depends-on): Likewise.
56477         * modules/chdir-long (Depends-on): Likewise.
56478         * modules/chown (Depends-on): Likewise.
56479         * modules/close (Depends-on): Likewise.
56480         * modules/connect (Depends-on): Likewise.
56481         * modules/cosl (Depends-on): Likewise.
56482         * modules/dirfd (Depends-on): Likewise.
56483         * modules/dprintf (Depends-on): Likewise.
56484         * modules/dprintf-posix (Depends-on): Likewise.
56485         * modules/error (Depends-on): Likewise.
56486         * modules/euidaccess (Depends-on): Likewise.
56487         * modules/expl (Depends-on): Likewise.
56488         * modules/faccessat (Depends-on): Likewise.
56489         * modules/fchdir (Depends-on): Likewise.
56490         * modules/fclose (Depends-on): Likewise.
56491         * modules/fcntl (Depends-on): Likewise.
56492         * modules/fdopendir (Depends-on): Likewise.
56493         * modules/fflush (Depends-on): Likewise.
56494         * modules/floor (Depends-on): Likewise.
56495         * modules/floorf (Depends-on): Likewise.
56496         * modules/floorl (Depends-on): Likewise.
56497         * modules/fnmatch (Depends-on): Likewise.
56498         * modules/fopen (Depends-on): Likewise.
56499         * modules/fprintf-posix (Depends-on): Likewise.
56500         * modules/frexp (Depends-on): Likewise.
56501         * modules/frexp-nolibm (Depends-on): Likewise.
56502         * modules/frexpl (Depends-on): Likewise.
56503         * modules/frexpl-nolibm (Depends-on): Likewise.
56504         * modules/fseek (Depends-on): Likewise.
56505         * modules/fsusage (Depends-on): Likewise.
56506         * modules/ftell (Depends-on): Likewise.
56507         * modules/ftello (Depends-on): Likewise.
56508         * modules/futimens (Depends-on): Likewise.
56509         * modules/getcwd (Depends-on): Likewise.
56510         * modules/getcwd-lgpl (Depends-on): Likewise.
56511         * modules/getdelim (Depends-on): Likewise.
56512         * modules/getdomainname (Depends-on): Likewise.
56513         * modules/getgroups (Depends-on): Likewise.
56514         * modules/gethostname (Depends-on): Likewise.
56515         * modules/getline (Depends-on): Likewise.
56516         * modules/getlogin_r (Depends-on): Likewise.
56517         * modules/getopt-posix (Depends-on): Likewise.
56518         * modules/getpeername (Depends-on): Likewise.
56519         * modules/getsockname (Depends-on): Likewise.
56520         * modules/getsockopt (Depends-on): Likewise.
56521         * modules/getsubopt (Depends-on): Likewise.
56522         * modules/getusershell (Depends-on): Likewise.
56523         * modules/glob (Depends-on): Likewise.
56524         * modules/grantpt (Depends-on): Likewise.
56525         * modules/iconv_open (Depends-on): Likewise.
56526         * modules/iconv_open-utf (Depends-on): Likewise.
56527         * modules/inet_ntop (Depends-on): Likewise.
56528         * modules/inet_pton (Depends-on): Likewise.
56529         * modules/ioctl (Depends-on): Likewise.
56530         * modules/isapipe (Depends-on): Likewise.
56531         * modules/isfinite (Depends-on): Likewise.
56532         * modules/isinf (Depends-on): Likewise.
56533         * modules/lchown (Depends-on): Likewise.
56534         * modules/ldexpl (Depends-on): Likewise.
56535         * modules/link (Depends-on): Likewise.
56536         * modules/linkat (Depends-on): Likewise.
56537         * modules/listen (Depends-on): Likewise.
56538         * modules/logl (Depends-on): Likewise.
56539         * modules/lstat (Depends-on): Likewise.
56540         * modules/mbrlen (Depends-on): Likewise.
56541         * modules/mbrtowc (Depends-on): Likewise.
56542         * modules/mbsinit (Depends-on): Likewise.
56543         * modules/mbsnrtowcs (Depends-on): Likewise.
56544         * modules/mbsrtowcs (Depends-on): Likewise.
56545         * modules/mbtowc (Depends-on): Likewise.
56546         * modules/memcmp (Depends-on): Likewise.
56547         * modules/mkdir (Depends-on): Likewise.
56548         * modules/mkdtemp (Depends-on): Likewise.
56549         * modules/mkfifo (Depends-on): Likewise.
56550         * modules/mkfifoat (Depends-on): Likewise.
56551         * modules/mknod (Depends-on): Likewise.
56552         * modules/mkostemp (Depends-on): Likewise.
56553         * modules/mkostemps (Depends-on): Likewise.
56554         * modules/mkstemp (Depends-on): Likewise.
56555         * modules/mkstemps (Depends-on): Likewise.
56556         * modules/mktime (Depends-on): Likewise.
56557         * modules/nanosleep (Depends-on): Likewise.
56558         * modules/open (Depends-on): Likewise.
56559         * modules/openat (Depends-on): Likewise.
56560         * modules/perror (Depends-on): Likewise.
56561         * modules/poll (Depends-on): Likewise.
56562         * modules/popen (Depends-on): Likewise.
56563         * modules/posix_spawn (Depends-on): Likewise.
56564         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
56565         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
56566         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
56567         * modules/posix_spawnp (Depends-on): Likewise.
56568         * modules/pread (Depends-on): Likewise.
56569         * modules/printf-posix (Depends-on): Likewise.
56570         * modules/ptsname (Depends-on): Likewise.
56571         * modules/putenv (Depends-on): Likewise.
56572         * modules/pwrite (Depends-on): Likewise.
56573         * modules/readline (Depends-on): Likewise.
56574         * modules/readlink (Depends-on): Likewise.
56575         * modules/readlinkat (Depends-on): Likewise.
56576         * modules/recv (Depends-on): Likewise.
56577         * modules/recvfrom (Depends-on): Likewise.
56578         * modules/regex (Depends-on): Likewise.
56579         * modules/remove (Depends-on): Likewise.
56580         * modules/rename (Depends-on): Likewise.
56581         * modules/renameat (Depends-on): Likewise.
56582         * modules/rmdir (Depends-on): Likewise.
56583         * modules/round (Depends-on): Likewise.
56584         * modules/roundf (Depends-on): Likewise.
56585         * modules/roundl (Depends-on): Likewise.
56586         * modules/rpmatch (Depends-on): Likewise.
56587         * modules/select (Depends-on): Likewise.
56588         * modules/send (Depends-on): Likewise.
56589         * modules/sendto (Depends-on): Likewise.
56590         * modules/setenv (Depends-on): Likewise.
56591         * modules/setlocale (Depends-on): Likewise.
56592         * modules/setsockopt (Depends-on): Likewise.
56593         * modules/shutdown (Depends-on): Likewise.
56594         * modules/sigaction (Depends-on): Likewise.
56595         * modules/signbit (Depends-on): Likewise.
56596         * modules/sigprocmask (Depends-on): Likewise.
56597         * modules/sinl (Depends-on): Likewise.
56598         * modules/sleep (Depends-on): Likewise.
56599         * modules/snprintf (Depends-on): Likewise.
56600         * modules/snprintf-posix (Depends-on): Likewise.
56601         * modules/socket (Depends-on): Likewise.
56602         * modules/sprintf-posix (Depends-on): Likewise.
56603         * modules/sqrtl (Depends-on): Likewise.
56604         * modules/stat (Depends-on): Likewise.
56605         * modules/strchrnul (Depends-on): Likewise.
56606         * modules/strdup-posix (Depends-on): Likewise.
56607         * modules/strerror (Depends-on): Likewise.
56608         * modules/strerror_r-posix (Depends-on): Likewise.
56609         * modules/strndup (Depends-on): Likewise.
56610         * modules/strnlen (Depends-on): Likewise.
56611         * modules/strptime (Depends-on): Likewise.
56612         * modules/strsep (Depends-on): Likewise.
56613         * modules/strsignal (Depends-on): Likewise.
56614         * modules/strstr-simple (Depends-on): Likewise.
56615         * modules/strtod (Depends-on): Likewise.
56616         * modules/strtoimax (Depends-on): Likewise.
56617         * modules/strtok_r (Depends-on): Likewise.
56618         * modules/strtoumax (Depends-on): Likewise.
56619         * modules/symlink (Depends-on): Likewise.
56620         * modules/symlinkat (Depends-on): Likewise.
56621         * modules/tanl (Depends-on): Likewise.
56622         * modules/tcgetsid (Depends-on): Likewise.
56623         * modules/tmpfile (Depends-on): Likewise.
56624         * modules/trunc (Depends-on): Likewise.
56625         * modules/truncf (Depends-on): Likewise.
56626         * modules/truncl (Depends-on): Likewise.
56627         * modules/uname (Depends-on): Likewise.
56628         * modules/unlink (Depends-on): Likewise.
56629         * modules/unlockpt (Depends-on): Likewise.
56630         * modules/unsetenv (Depends-on): Likewise.
56631         * modules/usleep (Depends-on): Likewise.
56632         * modules/utimensat (Depends-on): Likewise.
56633         * modules/vasprintf (Depends-on): Likewise.
56634         * modules/vdprintf (Depends-on): Likewise.
56635         * modules/vdprintf-posix (Depends-on): Likewise.
56636         * modules/vfprintf-posix (Depends-on): Likewise.
56637         * modules/vprintf-posix (Depends-on): Likewise.
56638         * modules/vsnprintf (Depends-on): Likewise.
56639         * modules/vsnprintf-posix (Depends-on): Likewise.
56640         * modules/vsprintf-posix (Depends-on): Likewise.
56641         * modules/wcrtomb (Depends-on): Likewise.
56642         * modules/wcscasecmp (Depends-on): Likewise.
56643         * modules/wcscspn (Depends-on): Likewise.
56644         * modules/wcsdup (Depends-on): Likewise.
56645         * modules/wcsncasecmp (Depends-on): Likewise.
56646         * modules/wcsnrtombs (Depends-on): Likewise.
56647         * modules/wcspbrk (Depends-on): Likewise.
56648         * modules/wcsrtombs (Depends-on): Likewise.
56649         * modules/wcsspn (Depends-on): Likewise.
56650         * modules/wcsstr (Depends-on): Likewise.
56651         * modules/wcstok (Depends-on): Likewise.
56652         * modules/wcswidth (Depends-on): Likewise.
56653         * modules/wctob (Depends-on): Likewise.
56654         * modules/wctomb (Depends-on): Likewise.
56655         * modules/wctype (Depends-on): Likewise.
56656         * modules/wcwidth (Depends-on): Likewise.
56657         * modules/write (Depends-on): Likewise.
56659 2011-05-03  Bruno Haible  <bruno@clisp.org>
56661         Support for conditional dependencies.
56662         * doc/gnulib.texi (Module description): Document the syntax of
56663         conditional dependencies.
56664         * gnulib-tool: New option --conditional-dependencies.
56665         (func_usage): Document it.
56666         (cond_dependencies): New variable.
56667         (func_get_automake_snippet_conditional,
56668         func_get_automake_snippet_unconditional): New functions, extracted from
56669         func_get_automake_snippet.
56670         (func_get_automake_snippet): Use them.
56671         (sed_first_32_chars): New variable.
56672         (func_module_shellfunc_name): New function.
56673         (func_module_shellvar_name): New function.
56674         (func_module_conditional_name): New function.
56675         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
56676         func_cond_module_condition): New functions.
56677         (func_modules_transitive_closure): Add support for conditional
56678         dependencies.
56679         (func_emit_lib_Makefile_am): For a conditional module, enclose the
56680         conditional automake snippet in an automake conditional.
56681         (func_emit_autoconf_snippets): Emit shell functions that contain the
56682         code for conditional modules.
56683         (func_import, func_create_testdir): Update specification.
56685 2011-05-03  Eric Blake  <eblake@redhat.com>
56687         test-getaddrinfo: report error information
56688         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
56690 2011-05-03  Jim Meyering  <meyering@redhat.com>
56692         bootstrap: avoid build failure when $GZIP is set
56693         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
56694         program name.  If defined at all, it is supposed to list gzip options.
56695         Reported by Alan Curry in http://debbugs.gnu.org/8609
56697 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
56699         readme-release: new module with release instructions
56700         * modules/readme-release: New module.
56701         * top/README-release: New file, from coreutils, grep, diffutils.
56702         * MODULES.html.sh (Support for maintaining and releasing): Add it.
56704 2011-05-02  Eric Blake  <eblake@redhat.com>
56706         fflush: also replace fclose when fixing fflush
56707         * modules/fflush (Depends-on): Add fclose.
56708         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
56709         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
56710         memstreams with no backing fd.
56711         * doc/posix-functions/fclose.texi (fclose): Document the use of
56712         fflush module to fix the bug.
56713         * tests/test-fclose.c (main): Relax test when fclose is used in
56714         isolation.
56716         fclose: add some tests
56717         * modules/fclose-tests: New test module.
56718         * tests/test-fclose.c: New file.
56719         * doc/posix-functions/fclose.texi (fclose): Document the bug.
56721         fclose: reduced dependencies
56722         * modules/fclose (Depends-on): Switch from fflush/fseeko to
56723         simpler lseek.
56724         * lib/fclose.c (rpl_fclose): Likewise.
56725         Reported by Simon Josefsson.
56727         exit: drop remaining clients
56728         * modules/argmatch (Depends-on): Replace exit with stdlib.
56729         * modules/copy-file (Depends-on): Likewise.
56730         * modules/execute (Depends-on): Likewise.
56731         * modules/exitfail (Depends-on): Likewise.
56732         * modules/obstack (Depends-on): Likewise.
56733         * modules/pagealign_alloc (Depends-on): Likewise.
56734         * modules/pipe-filter-gi (Depends-on): Likewise.
56735         * modules/pipe-filter-ii (Depends-on): Likewise.
56736         * modules/savewd (Depends-on): Likewise.
56737         * modules/spawn-pipe (Depends-on): Likewise.
56738         * modules/wait-process (Depends-on): Likewise.
56739         * modules/xsetenv (Depends-on): Likewise.
56740         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
56741         * modules/git-merge-changelog (Depends-on): Likewise.
56742         * modules/long-options (Depends-on): Likewise.
56743         * modules/pt_chown (Depends-on): Likewise.
56744         * modules/sysexits (Depends-on): Likewise.
56746         freading: relax license from LGPLv3+ to LGPLv2+
56747         * modules/freading (License): Relax LGPL version.
56749 2011-05-02  Bruno Haible  <bruno@clisp.org>
56751         fchdir: Remove unused dependencies.
56752         * modules/fchdir (Depends-on): Remove include_next.
56754 2011-05-02  Bruno Haible  <bruno@clisp.org>
56756         gnulib-tool: Refactor.
56757         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
56758         from func_emit_autoconf_snippets.
56759         (func_emit_autoconf_snippets): Use it.
56761 2011-05-02  Simon Josefsson  <simon@josefsson.org>
56763         * NEWS: Document removal of 'exit'.
56764         * modules/exit: Remove file.
56766 2011-05-01  Bruno Haible  <bruno@clisp.org>
56768         Update DEPENDENCIES.
56769         * DEPENDENCIES (gettext): Recommend the newest release.
56770         Reported by Simon Josefsson.
56772 2011-05-01  Bruno Haible  <bruno@clisp.org>
56774         gnulib-tool: Reduce code duplication.
56775         * gnulib-tool (func_emit_autoconf_snippets): New function.
56776         (func_import, func_create_testdir): Use it.
56778 2011-04-30  Eric Blake  <eblake@redhat.com>
56780         fclose: don't fail on non-seekable input stream
56781         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
56782         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
56783         since fflush is allowed to fail in that case.
56785 2011-04-30  Bruno Haible  <bruno@clisp.org>
56787         dup3: cleanup
56788         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
56790 2011-04-30  Bruno Haible  <bruno@clisp.org>
56792         netdb: Make it work in C++ mode.
56793         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
56794         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
56795         module.
56796         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
56797         gl_MODULE_INDICATOR_FOR_TESTS.
56798         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
56799         * modules/netdb-c++-tests: New file.
56800         * tests/test-netdb-c++.cc: New file.
56802 2011-04-30  Bruno Haible  <bruno@clisp.org>
56804         New modules 'vfscanf', 'vscanf'.
56805         * modules/vfscanf: New file.
56806         * modules/vscanf: New file.
56807         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
56808         here.
56809         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
56810         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
56812 2011-04-30  Bruno Haible  <bruno@clisp.org>
56814         passfd: Add comments.
56815         * lib/passfd.c: Add comments about platforms.
56817 2011-04-30  Bruno Haible  <bruno@clisp.org>
56819         sys_uio: Make <sys/uio.h> self-contained.
56820         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
56821         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
56823 2011-04-30  Bruno Haible  <bruno@clisp.org>
56825         sys_socket: Ensure 'struct iovec' definition.
56826         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
56827         <sys/socket.h>.
56828         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
56830 2011-04-30  Bruno Haible  <bruno@clisp.org>
56832         sys_uio: Protect definition of 'struct iovec'.
56833         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
56834         it as a C struct.
56836 2011-04-30  Bruno Haible  <bruno@clisp.org>
56838         manywarnings: fix indentation
56839         * m4/manywarnings.m4: Indent by 2 spaces consistently.
56841 2011-04-30  Pádraig Brady  <P@draigBrady.com>
56843         manywarnings: add -Wno-missing-field-initializers if needed.
56844         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
56845         option if it's needed to allow initialization with { 0, }
56847 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
56849         announce-gen: cosmetic improvement
56850         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
56852 2011-04-29  Jim Meyering  <meyering@redhat.com>
56854         vc-list-files: indent with spaces, not TABs
56855         * build-aux/vc-list-files: Convert leading TABs to spaces,
56856         to match the style of most other files in gnulib.
56858         announce-gen: indent with spaces, not TABs
56859         * build-aux/announce-gen: Convert all TABs to spaces, to match
56860         the style of most other files in gnulib.
56862 2011-04-29  Eric Blake  <eblake@redhat.com>
56864         quotearg: avoid uninitialized variable use
56865         * lib/quotearg.c (quoting_options_from_style): Initialize
56866         remaining fields, and ensure that custom styles are only used via
56867         quoting_options rather than quoting_style.
56869 2011-04-29  Jim Meyering  <meyering@redhat.com>
56871         maint.mk: remove unused VC-tag variable
56872         * top/maint.mk (VC-tag): Remove unused variable.
56874 2011-04-29  Bruno Haible  <bruno@clisp.org>
56876         netdb: fix gai_strerror replacements
56877         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
56878         * modules/netdb: Substitute it.
56880 2011-04-29  Jim Meyering  <meyering@redhat.com>
56882         test-getcwd.c: avoid new set-but-not-used warning
56883         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
56884         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
56885         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
56886         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
56888         test-hash.c: avoid a new shadowing warning
56889         * tests/test-hash.c (main): Don't shadow "dup".
56891 2011-04-28  Eric Blake  <eblake@redhat.com>
56893         getaddrinfo: fix gai_strerror signature
56894         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
56895         and work around mingw with UNICODE defined.
56896         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
56897         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
56898         * modules/netdb (Makefile.am): Substitute it.
56899         * lib/netdb.in.h (gai_strerror): Declare replacement.
56900         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
56901         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
56902         the fix.
56904         getsockopt: avoid compiler warning
56905         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
56906         Reported by Matthias Bolte.
56908         tests: drop unused link dependency
56909         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
56910         * modules/dirent-safer-tests (Makefile.am): Likewise.
56911         * modules/fdopendir-tests (Makefile.am): Likewise.
56912         * modules/mkfifoat-tests (Makefile.am): Likewise.
56913         * modules/openat-safer-tests (Makefile.am): Likewise.
56914         * modules/openat-tests (Makefile.am): Likewise.
56915         * modules/readlinkat-tests (Makefile.am): Likewise.
56916         * modules/symlinkat-tests (Makefile.am): Likewise.
56917         * modules/linkat-tests (Makefile.am): Likewise.
56918         (Depends-on): Switch to filenamecat-lgpl.
56919         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
56920         LIBINTL.
56921         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
56922         * tests/test-linkat.c (main): Don't require xalloc.
56924         hash, mgetgroups: drop xalloc dependency
56925         * lib/hash.c (includes): Adjust includes.
56926         * lib/mgetgroups.c (includes): Likewise.
56927         (xgetgroups): Move...
56928         * lib/xgetgroups.c: ...to new file.
56929         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
56930         * modules/xgetgroups: New file, split from...
56931         * modules/mgetgroups: ...here.
56932         (Depends-on): Add xalloc-oversized.
56933         * modules/hash (Depends-on): Likewise.
56934         * modules/hash-tests (Depends-on): Drop xalloc.
56935         (test_hash_LDADD): Drop unused library.
56936         * tests/test-hash.c (main): Break xalloc dependency.
56937         (includes): Drop unused include.
56939         xalloc-oversized: new module
56940         * modules/xalloc-oversized: New module.
56941         * modules/xalloc (Depends-on): Add it.
56942         * lib/xalloc.h (xalloc_oversized): Move...
56943         * lib/xalloc-oversized.h: ...into new file.
56945         utimecmp: drop dependency on xmalloc
56946         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
56947         due to memory pressure.
56948         * modules/utimecmp (Depends-on): Drop xalloc.
56950 2011-04-27  Eric Blake  <eblake@redhat.com>
56952         getcwd: fix mingw bugs
56953         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
56954         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
56955         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
56957 2011-04-27  Bruno Haible  <bruno@clisp.org>
56959         mkstemps: Ensure declaration on MacOS X 10.5.
56960         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
56961         * doc/glibc-functions/mkstemps.texi: Document header file problem on
56962         MacOS X.
56964 2011-04-27  Bruno Haible  <bruno@clisp.org>
56966         mkstemp: More documentation.
56967         * doc/posix-functions/mkstemp.texi: Document header file problem on
56968         MacOS X.
56970 2011-04-27  Bruno Haible  <bruno@clisp.org>
56972         mkstemp: Tweak configure message when cross-compiling.
56973         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
56974         result as a guess.
56976 2011-04-27  Bruno Haible  <bruno@clisp.org>
56978         clean-temp: Clarify what it does.
56979         * lib/clean-temp.h: Add more comments.
56980         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
56981         module.
56982         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
56983         * doc/glibc-functions/mkstemps.texi: Likewise.
56984         * doc/glibc-functions/mkostemps.texi: Likewise.
56986 2011-04-27  Eric Blake  <eblake@redhat.com>
56988         fchdir: avoid extra chdir and fix test
56989         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
56990         getcwd-lgpl.
56991         * lib/fchdir.c (get_name): Any absolute name will do; it does not
56992         have to be canonical.
56993         (canonicalize_file_name): Drop unused macro.
56994         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
56996         filenamecat-lgpl: fix licence
56997         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
56998         when it was first created.
57000         linkat, renameat: add missing dependency
57001         * modules/linkat (Depends-on): Require getcwd-lgpl.
57002         * modules/renameat (Depends-on): Likewise.
57004         tests: reduce dependencies
57005         * tests/test-linkat.c (main): Use lighter-weight getcwd.
57006         * tests/test-renameat.c (main): Likewise.
57007         * modules/linkat-tests (Depends-on): Relax dependency.
57008         * modules/renameat-tests (Depends-on): Likewise.
57009         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
57010         dependency explicit.
57012         save-cwd: reduce default dependency
57013         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
57014         * lib/save-cwd.c: Update comments.
57015         * NEWS: Document the semantic change.
57017         getcwd: enhance tests
57018         * tests/test-getcwd-lgpl.c: New file, taken from...
57019         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
57020         repeat long path stress tests from m4 probe.
57021         * modules/getcwd-lgpl-tests: New module.
57022         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
57023         * m4/getcwd-abort-bug.m4: Update comment.
57024         * m4/getcwd-path-max.m4: Likewise.
57026         getcwd-lgpl: new module
57027         * modules/getcwd-lgpl: New module.
57028         * lib/getcwd-lgpl.c: New file.
57029         * doc/posix-functions/getcwd.texi (getcwd): Document it.
57030         * MODULES.html.sh (lacking POSIX:2008): Likewise.
57031         * modules/getcwd (configure.ac): Set C witness.
57032         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
57034         getcwd: tweak comments
57035         * m4/getcwd-abort-bug.m4: Fix comments.
57036         * m4/getcwd-path-max.m4: Likewise.
57037         * m4/getcwd.m4: Likewise.
57039 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
57040         and Eric Blake  <eblake@redhat.com>
57042         mkstemp: replace if system version uses wrong permissions
57043         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
57044         read/write mode bits set in file created by mkstemp.
57045         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
57047 2011-04-27  Eric Blake  <eblake@redhat.com>
57049         passfd: avoid compiler warning
57050         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
57051         Reported by Laine Stump.
57053 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
57055         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
57056         required by the NetBSD (and perhaps other 4.4BSD derived) join.
57058 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
57059         and Eric Blake  <eblake@redhat.com>
57061         mkstemp: mention clean-temp module
57062         * lib/mkstemp.c: Add comment.
57063         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
57065 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
57067         inttypes: also provide default values for 32-bit tests
57068         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
57069         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
57071 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
57073         strtoumax: remove dependency on strtoimax
57074         This is like the strtoull change of yesterday.
57075         * modules/strtoumax (Files): Add lib/strtoimax.c.
57076         (Depends-on): Remove strtoimax and add verify.
57078         inttypes-incomplete: new module
57079         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
57080         all but the PRI* and SCN* parts of gl_INTTYPES_H.
57081         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
57082         of gl_INTTYPES_H.
57083         (gl_INTTYPES_H): Rewrite in terms of these new macros.
57084         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
57085         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
57086         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
57087         * modules/strtoumax, modules/xstrtol (Depends-on):
57088         Depend on inttypes-incomplete, not inttypes.
57089         * modules/inttypes-incomplete: New module, containing the contents
57090         of the old modules/inttypes module, except that the Files: section
57091         omits m4/inttypes-pri.m4, and the configure.ac section invokes
57092         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
57093         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
57094         (Depends-on): Depend only on inttypes-incomplete.
57095         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
57097         inttypes: omit now-redundant strtoimax and strtoumax work
57098         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
57099         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
57101         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
57102         This supports apps that need pointers to strtoimax and strtoumax,
57103         and ports to HP-UX 11.00 64.bit, which has macros that expand to
57104         nonexistent functions.  See
57105         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00241.html>
57106         et seq.
57107         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
57108         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
57109         a macro.
57110         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
57112 2011-04-25  Simon Josefsson  <simon@josefsson.org>
57114         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
57116 2011-04-25  Bruno Haible  <bruno@clisp.org>
57118         strtol, strtoul: Mark modules as obsolete.
57119         * modules/strtol (Status, Notice): New sections.
57120         * modules/strtoul (Status, Notice): New sections.
57122 2011-04-25  Bruno Haible  <bruno@clisp.org>
57124         strtod: Remove check for strtod, unless supporting old platforms.
57125         * modules/strtod-obsolete: New file.
57126         * m4/strtod-obsolete.m4: New file.
57127         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
57128         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
57129         * modules/strtod (Depends-on): Add strtod-obsolete.
57130         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
57132 2011-04-25  Bruno Haible  <bruno@clisp.org>
57134         strcase: Make module obsolete.
57135         * modules/strcase (Status, Notice): New sections.
57137 2011-04-25  Bruno Haible  <bruno@clisp.org>
57139         dup2: Remove check for dup2, unless supporting old obsolete platforms.
57140         * modules/dup2-obsolete: New file.
57141         * m4/dup2-obsolete.m4: New file.
57142         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
57143         gl_FUNC_DUP2_OBSOLETE is not also defined.
57144         * modules/dup2 (Depends-on): Add dup2-obsolete.
57145         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
57147 2011-04-25  Bruno Haible  <bruno@clisp.org>
57149         strnlen: Avoid memchr related link error on old obsolete platforms.
57150         * modules/memchr-obsolete: New file.
57151         * m4/memchr-obsolete.m4: New file.
57152         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
57153         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
57154         * modules/memchr (Depends-on): Add memchr-obsolete.
57155         * modules/strnlen (Depends-on): Likewise.
57156         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
57158 2011-04-25  Jim Meyering  <meyering@redhat.com>
57160         maint.mk: makefile_at_at_check extend and clean up
57161         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
57162         in addition to */Makefile.am.
57163         Exempt legitimate uses of @VAR@ notation, e.g.,
57164         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
57165         Remove obsolete coreutils-specific comment.
57166         Prompted by discussion here:
57167         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
57169 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
57171         strtoul: remove dependency on strtol
57172         This is so that 'configure' need not check for strtol merely because
57173         the application needs strtoul.
57174         * modules/strtoul (Files): Add lib/strtol.c.
57175         (Depends-on): Remove strtol.
57177         strtoull: remove dependency on strtoul
57178         This is like the strtoll change.
57179         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
57180         (Depends-on): Remove strtoul.
57182         strtoll: remove dependency on strtol
57183         This is so that 'configure' need not check for strtol merely because
57184         the application needs strtoll.
57185         * modules/strtoll (Files): Add lib/strtol.c.
57186         (Depends-on): Remove strtol.
57188 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
57190         inttypes: Move some configure check to module 'imaxdiv'.
57191         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
57192         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
57193         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
57195 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
57197         inttypes: Move some configure check to module 'imaxabs'.
57198         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
57199         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
57200         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
57202 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
57204         inttypes: Remove configure tests that are not needed since 2009-12-31.
57205         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
57206         gl_cv_header_working_inttypes_h.
57208 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
57210         * modules/strnlen (Depends-on): Remove memchr.
57211         The strnlen implementation doesn't need the memchr module's fixes; see
57212         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00237.html>.
57214         strtol: remove dependency on wchar
57215         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
57216         * modules/strtol (Depends-on): Remove wchar.
57218 2011-04-21  Eric Blake  <eblake@redhat.com>
57220         passfd: fix test regression on Linux
57221         * modules/passfd-tests (configure.ac): Correct socketpair check.
57223         passfd: speed up configure and drop unused code
57224         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
57225         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
57226         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
57227         Instead of probing at configure for unix_scm_rights_bsd44_way,
57228         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
57229         check to a struct member probe.
57230         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
57231         (sendfd, recvfd): Update preprocessor checks.
57232         * modules/passfd (Files): Reflect rename, and drop unused file.
57233         (Depends-on): Drop unused dependency.
57235         passfd: allow compilation on mingw
57236         * modules/sys_socket (Depends-on): Add sys_uio.
57237         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
57238         iovec and a minimal struct msghdr.
57239         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
57240         * tests/test-sys_socket.c (main): Enhance test.
57241         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
57242         guaranteed to provide what we need.
57243         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
57244         * modules/passfd-tests (Depends-on): Add sys_wait.
57245         * tests/test-passfd.c (main): Skip test on mingw, for now.
57246         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
57247         partial 'struct msghdr' implementation.
57249         sys_uio: new module
57250         * modules/sys_uio: New module.
57251         * modules/sys_uio-tests: Likewise.
57252         * lib/sys_uio.in.h: New file.
57253         * m4/sys_uio_h.m4: Likewise.
57254         * tests/test-sys_uio.c: Likewise.
57255         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
57256         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
57258 2011-04-20  Jim Meyering  <meyering@redhat.com>
57260         useless-if-before-free: avoid false-positive
57261         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
57262         disjunct so that it too requires a terminating ";".  Without that,
57263         this script would identify as useless one statement from gcc that
57264         was not:
57265           if (aligned_ptr)
57266             free (((void **) aligned_ptr) [-1]);
57268 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
57270         doc: update users.txt.
57271         * users.txt: Add barcode.
57273 2011-04-19  Bruno Haible  <bruno@clisp.org>
57275         ioctl: Remove link dependency on native Windows.
57276         * lib/fd-hook.h: Renamed from lib/close-hook.h.
57277         (gl_close_fn, gl_ioctl_fn): New types.
57278         (struct fd_hook): Renamed from struct close_hook. Change type of
57279         private_close_fn field. Add private_ioctl_fn field.
57280         (close_hook_fn): Add parameter for primary close method.
57281         (execute_close_hooks, execute_all_close_hooks): Likewise.
57282         (ioctl_hook_fn): New type.
57283         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
57284         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
57285         argument.
57286         (unregister_fd_hook): Renamed from unregister_close_hook.
57287         * lib/fd-hook.c: Renamed from lib/close-hook.c.
57288         Don't include <unistd.h>.
57289         (close): Remove undef.
57290         (anchor): Update.
57291         (execute_close_hooks): Add argument for primary close method.
57292         (execute_all_close_hooks): Likewise.
57293         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
57294         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
57295         argument. Allow each argument to be NULL.
57296         (unregister_fd_hook): Renamed from unregister_close_hook.
57297         * lib/close.c (rpl_close): Pass 'close' function pointer to
57298         execute_all_close_hooks.
57299         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
57300         (primary_ioctl): New function.
57301         (ioctl): Don't call ioctlsocket here. Instead, call
57302         execute_all_ioctl_hooks.
57303         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
57304         close method.
57305         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
57306         (fd_sockets_hook): Renamed from close_sockets_hook.
57307         (gl_sockets_startup, gl_sockets_cleanup): Update.
57308         * modules/fd-hook: Renamed from modules/close-hook. Update.
57309         * modules/close (Depends-on): Add fd-hook, remove close-hook.
57310         * modules/sockets (Depends-on): Likewise.
57311         * modules/ioctl (Depends-on): Add fd-hook.
57312         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
57313         GNULIB_SOCKET.
57315 2011-04-19  Bruno Haible  <bruno@clisp.org>
57317         Move the support of O_NONBLOCK in open() to the 'open' module.
57318         * modules/nonblocking (Depends-on): Remove 'open'.
57319         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
57320         gl_cv_have_open_O_NONBLOCK.
57321         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
57322         O_NONBLOCK support.
57323         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
57325 2011-04-17  Bruno Haible  <bruno@clisp.org>
57327         pipe2: Simplify code.
57328         * lib/pipe2.c (pipe2): Reduce code duplication.
57330 2011-04-17  Bruno Haible  <bruno@clisp.org>
57332         nonblocking: Add comment.
57333         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
57335 2011-04-17  Bruno Haible  <bruno@clisp.org>
57337         nonblocking: Add tests for sockets.
57338         * tests/test-nonblocking-socket.sh: New file.
57339         * tests/test-nonblocking-socket-main.c: New file.
57340         * tests/test-nonblocking-socket-child.c: New file.
57341         * tests/test-nonblocking-socket.h: New file.
57342         * tests/socket-server.h: New file.
57343         * tests/socket-client.h: New file.
57344         * modules/nonblocking-socket-tests: New file.
57345         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
57347 2011-04-17  Bruno Haible  <bruno@clisp.org>
57349         nonblocking: Add tests for pipes.
57350         * tests/test-nonblocking-pipe.sh: New file.
57351         * tests/test-nonblocking-pipe-main.c: New file.
57352         * tests/test-nonblocking-pipe-child.c: New file.
57353         * tests/test-nonblocking-pipe.h: New file.
57354         * tests/test-nonblocking-writer.h: New file.
57355         * tests/test-nonblocking-reader.h: New file.
57356         * tests/test-nonblocking-misc.h: New file.
57357         * modules/nonblocking-pipe-tests: New file.
57358         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
57360 2011-04-16  Bruno Haible  <bruno@clisp.org>
57362         gettext: Clarify the needed programmer actions.
57363         * modules/gettext (Notice): New field.
57364         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
57366 2011-04-16  Bruno Haible  <bruno@clisp.org>
57368         strchrnul: Tweak last commit.
57369         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
57370         bug.
57371         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
57372         as in _GL_FUNCDECL_SYS.
57373         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
57374         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
57376 2011-04-15  Eric Blake  <eblake@redhat.com>
57378         strchrnul: work around cygwin bug
57379         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
57380         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
57381         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
57382         * modules/string (Makefile.am): Substitute it.
57383         * lib/string.in.h (strchrnul): Use it.
57385 2011-04-15  Bruno Haible  <bruno@clisp.org>
57387         Don't require lib/stdio-write.c when only module 'stdio' is used.
57388         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
57389         invocation.
57390         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
57392 2011-04-14  Bruno Haible  <bruno@clisp.org>
57394         Support non-blocking pipe I/O in read() on native Windows.
57395         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
57396         (read): New declaration.
57397         * lib/read.c: New file.
57398         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
57399         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
57400         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
57401         vscanf): New declarations.
57402         * lib/stdio-read.c: New file.
57403         * m4/read.m4: New file.
57404         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
57405         REPLACE_READ.
57406         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
57407         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
57408         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
57409         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
57410         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
57411         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
57412         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
57413         * modules/read: New file.
57414         * modules/nonblocking (Files): Add lib/stdio-read.c.
57415         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
57416         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
57417         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
57418         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
57419         * modules/pread (Depends-on): Add read.
57420         * modules/safe-read (Depends-on): Likewise.
57421         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
57422         gets, scanf, vfscanf, vscanf): Verify signatures.
57423         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
57424         problem with non-blocking pipes.
57425         * doc/posix-functions/fgetc.texi: Likewise.
57426         * doc/posix-functions/fgets.texi: Likewise.
57427         * doc/posix-functions/fread.texi: Likewise.
57428         * doc/posix-functions/fscanf.texi: Likewise.
57429         * doc/posix-functions/getc.texi: Likewise.
57430         * doc/posix-functions/getchar.texi: Likewise.
57431         * doc/posix-functions/gets.texi: Likewise.
57432         * doc/posix-functions/scanf.texi: Likewise.
57433         * doc/posix-functions/vfscanf.texi: Likewise.
57434         * doc/posix-functions/vscanf.texi: Likewise.
57436 2011-04-14  Bruno Haible  <bruno@clisp.org>
57438         Support non-blocking pipe I/O in write() on native Windows.
57439         * lib/write.c (rpl_write): Split a write request that failed merely
57440         because the byte count was larger than the pipe buffer's size.
57441         * doc/posix-functions/write.texi: Mention the problem with large byte
57442         counts.
57444 2011-04-14  Bruno Haible  <bruno@clisp.org>
57446         wchar: Ensure that wchar_t gets defined on uClibc.
57447         * lib/wchar.in.h: On uClibc, include <stddef.h>.
57448         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
57450 2011-04-13  Bruno Haible  <bruno@clisp.org>
57452         safe-write, full-read: Avoid unnecessary compilation units.
57453         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
57454         (Depends-on): Remove safe-read. Add ssize_t.
57455         * modules/full-read (Files): Add lib/full-write.c.
57456         (Depends-on): Add full-write.
57458 2011-04-13  Bruno Haible  <bruno@clisp.org>
57460         Support non-blocking pipe I/O and SIGPIPE in pwrite().
57461         * modules/pwrite (Depends-on): Add 'write'.
57463 2011-04-13  Bruno Haible  <bruno@clisp.org>
57465         Support non-blocking pipe I/O in write() on native Windows.
57466         * lib/unistd.in.h (write): Enable replacement also if
57467         GNULIB_UNISTD_H_NONBLOCKING is 1.
57468         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
57469         (rpl_write): When failing to write on a non-blocking pipe, change
57470         errno from ENOSPC to EAGAIN.
57471         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
57472         putchar, puts, vfprintf, vprintf): Enable replacement also if
57473         GNULIB_STDIO_H_NONBLOCKING is 1.
57474         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
57475         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
57476         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
57477         CALL_WITH_SIGPIPE_EMULATION.
57478         (CALL_WITH_SIGPIPE_EMULATION): Use them.
57479         * m4/nonblocking.m4: New file.
57480         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
57481         for non-blocking I/O support.
57482         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
57483         GNULIB_UNISTD_H_NONBLOCKING.
57484         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
57485         required for non-blocking I/O support.
57486         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
57487         * modules/nonblocking (Files): Add m4/nonblocking.m4,
57488         lib/stdio-write.c, m4/asm-underscore.m4.
57489         (Depends-on): Add stdio, unistd.
57490         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
57491         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
57492         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
57493         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
57494         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
57495         problem with non-blocking pipes.
57496         * doc/posix-functions/fputc.texi: Likewise.
57497         * doc/posix-functions/fputs.texi: Likewise.
57498         * doc/posix-functions/fwrite.texi: Likewise.
57499         * doc/posix-functions/printf.texi: Likewise.
57500         * doc/posix-functions/putc.texi: Likewise.
57501         * doc/posix-functions/putchar.texi: Likewise.
57502         * doc/posix-functions/puts.texi: Likewise.
57503         * doc/posix-functions/vfprintf.texi: Likewise.
57504         * doc/posix-functions/vprintf.texi: Likewise.
57505         * doc/posix-functions/write.texi: Likewise.
57507 2011-04-10  Jim Meyering  <meyering@redhat.com>
57509         maint.mk: prohibit doubled words
57510         Detect them also when they're separated by a newline.
57511         There are 3 ways to customize it:
57512           - disable the test on a per file basis, as usual with rules using
57513             $(VC_LIST_EXCEPT)
57514           - replace the default doubled-word-selecting regexp (affects all files)
57515           - ignore a particular file-vs-doubled-word match
57516         I nearly used that last one to ignore the "is is" match in
57517         coreutils' NEWS file, since the text was "ls -is is ..."
57518         To do that, I would have added this line to cfg.mk:
57519           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
57520         but it would have ignored any "is is" match in NEWS.
57521         Low probability, but still...
57522         Instead, I changed the text, slightly:
57523           -  ls -is is now consistent with ls -lis in ignoring values returned
57524           +  "ls -is" is now consistent with ls -lis in ignoring values returned
57525         * top/maint.mk (prohibit_double_word_RE_): Provide default.
57526         (prohibit_doubled_word_): Define.
57527         (sc_prohibit_doubled_word): New rule.
57528         (sc_prohibit_the_the): Remove.  Subsumed by the above.
57530 2011-04-10  Jim Meyering  <meyering@redhat.com>
57532         maint: fix doubled-word typo in comment
57533         * m4/gethostname.m4: s/is is/it is/
57534         * m4/getdomainname.m4: Likewise.
57536 2011-04-10  Jim Meyering  <meyering@redhat.com>
57538         maint: remove doubled word: s/it it/it/
57539         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
57541 2011-04-10  Jim Meyering  <meyering@redhat.com>
57543         maint.mk: remove useless semicolon and backslash
57544         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
57545         semicolon and backslash.
57547 2011-04-10  Bruno Haible  <bruno@clisp.org>
57549         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
57550         * modules/stdint-tests (Depends-on): Add wchar.
57552 2011-04-10  Jim Meyering  <meyering@redhat.com>
57554         maint: remove doubled words in comments, e.g., s/a a/a/
57555         * lib/strptime.c (day_of_the_week): s/the the/the/
57556         * tests/test-chown.h (test_chown): s/a a/a/
57558         test-chown.h: correct a cast
57559         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
57560         when the destination is a stat.st_gid.
57562 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
57564         getaddrinfo: Fix test for sa_len member.
57565         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
57566         include <sys/types.h> before <sys/socket.h>.
57568 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
57570         maint: change "can not" to "cannot"
57571         * doc/posix-functions/iconv.texi (iconv): This one crossed line
57572         boundaries.
57574 2011-04-09  Jim Meyering  <meyering@redhat.com>
57576         maint: change "a a" to "a"
57577         * tests/test-lchown.h (test_lchown): s/a a/a/
57579         maint.mk: prohibit \<the the\>
57580         * top/maint.mk (sc_prohibit_the_the): New rule.
57582         maint: fix "the the" in comment
57583         * lib/count-one-bits.h: s/the the/the/
57585         maint: change "can not" to "cannot"
57586         But do not change the occurrences in maintain.texi or in
57587         build-aux/po/Makefile.in.in, which I presume comes from gettext.
57588         * doc/gnulib-tool.texi: s/can not/cannot/
57589         * doc/posix-functions/accept.texi (accept): Likewise.
57590         * doc/posix-functions/socket.texi (socket): Likewise.
57591         * lib/mbrtowc.c: Likewise.
57593         maint.mk: prohibit use of "can not"
57594         * top/maint.mk (sc_prohibit_can_not): New rule.
57595         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
57597 2011-04-09  Bruno Haible  <bruno@clisp.org>
57599         careadlinkat: Guard against misuse of careadlinkatcwd.
57600         * lib/careadlinkat.c: Include <stdlib.h>.
57601         (careadlinkatcwd): Check that the fd argument is as expected.
57603 2011-04-09  Bruno Haible  <bruno@clisp.org>
57605         careadlinkat: Use common coding style.
57606         * lib/careadlinkat.c: Move gnulib includes after system includes.
57608 2011-04-09  Bruno Haible  <bruno@clisp.org>
57610         careadlinkat: Clarify specification.
57611         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
57612         (careadlinkatcwd): Add comment.
57613         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
57615 2011-04-09  Bruno Haible  <bruno@clisp.org>
57617         areadlinkat: Avoid link error on many platforms.
57618         * modules/areadlinkat (Depends-on): Add areadlink.
57620 2011-04-09  Bruno Haible  <bruno@clisp.org>
57622         allocator, careadlinkat: Fix double-inclusion guard.
57623         * lib/allocator.h: Fix double-inclusion guard.
57624         * lib/careadlinkat.h: Likewise.
57626 2011-04-09  Bruno Haible  <bruno@clisp.org>
57628         relocatable-prog-wrapper: Update after module 'areadlink' changed.
57629         * lib/relocwrapper.c: Update dependencies hierarchy.
57630         * build-aux/install-reloc: Update list of files to be compiled.
57631         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
57632         lib/allocator.[hc].
57634 2011-04-08  Eric Blake  <eblake@redhat.com>
57636         strftime: silence gnulib-tool warning
57637         * modules/strftime-tests (Depends-on): Drop automatic dependency.
57639 2011-04-08  Bruno Haible  <bruno@clisp.org>
57641         verify: Fix syntax error with GCC 4.6 in C++ mode.
57642         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
57643         (HAVE_STATIC_ASSERT): New macro.
57644         (verify_true, verify): Use 'static_assert' if it is supported and
57645         '_Static_assert' is not supported.
57647 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
57649         allocator: New module.
57650         * modules/allocator, lib/allocator.c: New files.
57651         * lib/allocator.h (stdlib_allocator): New decl.
57652         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
57653         Remove.  Do not include <stdlib.h>.
57654         (careadlinkat): Use stdlib_allocator instead of rolling our own.
57655         * modules/careadlinkat (Files): Remove lib/allocator.h.
57656         (Depends-on): Add allocator.
57658         stdlib: let modules use system malloc, realloc
57659         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
57660         if !_GL_USE_STDLIB_ALLOC.
57661         (malloc, realloc): Limit this change to a smaller scope.
57663         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
57664         (malloc, realloc): Don't #undef; no longer needed.
57665         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
57666         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
57667         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
57668         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
57669         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
57670         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
57671         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
57672         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
57674         careadlinkat: rename members to avoid problem
57675         * lib/allocator.h (struct allocator): Rename members from
57676         malloc/realloc to allocate/reallocate, to avoid problems if malloc
57677         and realloc are #define'd.  Reported by Eric Blake in
57678         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00091.html>.
57679         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
57681 2011-04-08  Eric Blake  <eblake@redhat.com>
57683         nonblocking: reduce dependency
57684         * tests/test-nonblocking.c: Only test sockets when in use.
57685         * modules/nonblocking-tests (Depends-on): Drop socket.
57686         (Makefile.am): Link even if sockets are not present.
57687         * modules/pipe2-tests (Makefile.am): Likewise.
57688         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
57690         pipe2: fix O_NONBLOCK support on mingw
57691         * modules/pipe2 (Depends-on): Add nonblocking.
57692         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
57693         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
57694         * tests/test-nonblocking.c (main): Likewise.
57695         * modules/pipe2-tests (Makefile.am): Avoid link failure.
57697         fcntl-h: fix O_ACCMODE on cygwin
57698         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
57699         * lib/fcntl.in.h (O_ACCMODE): Fix it.
57701         pipe-filter: drop O_NONBLOCK workarounds
57702         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
57703         * modules/pipe-filter-ii (Depends-on): Likewise.
57704         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
57706         nonblocking: provide O_NONBLOCK for mingw
57707         * modules/nonblocking (Depends-on): Add open.
57708         (configure.ac): Set new witness macro.
57709         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
57710         * modules/fcntl-h (Makefile.am): Substitute it.
57711         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
57712         nonblocking module is in use.
57713         * lib/nonblocking.c: Adjust portability test.
57714         * lib/open.c (open): Don't let native open see gnulib flag.
57715         * tests/test-fcntl-h.c (main): Enhance test.
57716         * tests/test-open.h (test_open): Likewise.
57717         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
57719         careadlinkat: fix compilation error on mingw
57720         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
57721         within struct allocator.
57723 2011-04-06  Eric Blake  <eblake@redhat.com>
57725         binary-io: relicense under LGPLv2+
57726         * modules/binary-io (License): Relax to LGPLv2+.
57727         Requested for libvirt, and required by pipe2.
57729 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
57731         verify: use _Static_assert if available
57732         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
57733         (verify_true, verify): Use it if available.  This generates better
57734         diagnostics with GCC 4.6.0 and later.
57736 2011-04-05  Bruno Haible  <bruno@clisp.org>
57738         Remove leftover generated .h files after config.status changed.
57740         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
57741         GL_GENERATE_ALLOCA_H.
57742         * modules/alloca-opt (Makefile.am): Remove alloca.h if
57743         GL_GENERATE_ALLOCA_H evaluates to false.
57745         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
57746         GL_GENERATE_ARGZ_H.
57747         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
57748         evaluates to false.
57750         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
57751         GL_GENERATE_BYTESWAP_H.
57752         * modules/byteswap (Makefile.am): Remove byteswap.h if
57753         GL_GENERATE_BYTESWAP_H evaluates to false.
57755         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
57756         GL_GENERATE_ERRNO_H.
57757         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
57758         evaluates to false.
57760         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
57761         GL_GENERATE_FLOAT_H.
57762         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
57763         evaluates to false.
57765         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
57766         GL_GENERATE_FNMATCH_H.
57767         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
57768         GL_GENERATE_FNMATCH_H evaluates to false.
57770         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
57771         GL_GENERATE_GLOB_H.
57772         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
57773         evaluates to false.
57775         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
57776         automake conditional GL_GENERATE_ICONV_H.
57777         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
57778         evaluates to false.
57780         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
57781         GL_GENERATE_NETINET_IN_H.
57782         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
57783         GL_GENERATE_NETINET_IN_H evaluates to false.
57785         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
57786         conditional GL_GENERATE_PTHREAD_H.
57787         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
57788         * modules/pthread (Makefile.am): Remove pthread.h if
57789         GL_GENERATE_PTHREAD_H evaluates to false.
57791         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
57792         GL_GENERATE_SCHED_H.
57793         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
57794         evaluates to false.
57796         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
57797         conditional GL_GENERATE_SELINUX_CONTEXT_H.
57798         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
57799         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
57801         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
57802         GL_GENERATE_STDARG_H.
57803         * modules/stdarg (Makefile.am): Remove stdarg.h if
57804         GL_GENERATE_STDARG_H evaluates to false.
57806         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
57807         GL_GENERATE_STDBOOL_H.
57808         * modules/stdbool (Makefile.am): Remove stdbool.h if
57809         GL_GENERATE_STDBOOL_H evaluates to false.
57811         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
57812         conditional GL_GENERATE_STDDEF_H.
57813         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
57814         * modules/stddef (Makefile.am): Remove stddef.h if
57815         GL_GENERATE_STDDEF_H evaluates to false.
57817         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
57818         GL_GENERATE_STDINT_H.
57819         * modules/stdint (Makefile.am): Remove stdint.h if
57820         GL_GENERATE_STDINT_H evaluates to false.
57822         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
57823         GL_GENERATE_SYSEXITS_H.
57824         * modules/sysexits (Makefile.am): Remove sysexits.h if
57825         GL_GENERATE_SYSEXITS_H evaluates to false.
57827         Reported by Karl Berry and Ralf Wildenhues.
57829 2011-04-05  Bruno Haible  <bruno@clisp.org>
57831         Ensure to rebuild generated .h files when config.status has changed.
57832         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
57833         config.status.
57834         * modules/ctype (Makefile.am): Likewise.
57835         * modules/dirent (Makefile.am): Likewise.
57836         * modules/errno (Makefile.am): Likewise.
57837         * modules/fcntl-h (Makefile.am): Likewise.
57838         * modules/float (Makefile.am): Likewise.
57839         * modules/getopt-posix (Makefile.am): Likewise.
57840         * modules/glob (Makefile.am): Likewise.
57841         * modules/iconv-h (Makefile.am): Likewise.
57842         * modules/inttypes (Makefile.am): Likewise.
57843         * modules/langinfo (Makefile.am): Likewise.
57844         * modules/locale (Makefile.am): Likewise.
57845         * modules/math (Makefile.am): Likewise.
57846         * modules/netdb (Makefile.am): Likewise.
57847         * modules/netinet_in (Makefile.am): Likewise.
57848         * modules/poll-h (Makefile.am): Likewise.
57849         * modules/pthread (Makefile.am): Likewise.
57850         * modules/pty (Makefile.am): Likewise.
57851         * modules/sched (Makefile.am): Likewise.
57852         * modules/search (Makefile.am): Likewise.
57853         * modules/selinux-h (Makefile.am): Likewise.
57854         * modules/signal (Makefile.am): Likewise.
57855         * modules/spawn (Makefile.am): Likewise.
57856         * modules/stdarg (Makefile.am): Likewise.
57857         * modules/stdbool (Makefile.am): Likewise.
57858         * modules/stddef (Makefile.am): Likewise.
57859         * modules/stdint (Makefile.am): Likewise.
57860         * modules/stdio (Makefile.am): Likewise.
57861         * modules/stdlib (Makefile.am): Likewise.
57862         * modules/string (Makefile.am): Likewise.
57863         * modules/strings (Makefile.am): Likewise.
57864         * modules/sys_file (Makefile.am): Likewise.
57865         * modules/sys_ioctl (Makefile.am): Likewise.
57866         * modules/sys_select (Makefile.am): Likewise.
57867         * modules/sys_socket (Makefile.am): Likewise.
57868         * modules/sys_stat (Makefile.am): Likewise.
57869         * modules/sys_time (Makefile.am): Likewise.
57870         * modules/sys_times (Makefile.am): Likewise.
57871         * modules/sys_utsname (Makefile.am): Likewise.
57872         * modules/sys_wait (Makefile.am): Likewise.
57873         * modules/sysexits (Makefile.am): Likewise.
57874         * modules/termios (Makefile.am): Likewise.
57875         * modules/time (Makefile.am): Likewise.
57876         * modules/unistd (Makefile.am): Likewise.
57877         * modules/wchar (Makefile.am): Likewise.
57878         * modules/wctype-h (Makefile.am): Likewise.
57879         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
57881 2011-04-05  Bruno Haible  <bruno@clisp.org>
57883         pipe2: Relicense under LGPLv2+.
57884         * modules/pipe2 (License): Change to LGPLv2+.
57885         Requested by Eric Blake, for libvirt.
57887 2011-04-05  Bruce Korb  <bkorb@gnu.org>
57889         bootstrap: compute gnulib_extra_files after updating build_aux
57890         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
57891         change build_aux or also supply gnulib_extra_files.  Handle correctly.
57893 2011-04-05  Eric Blake  <eblake@redhat.com>
57895         bootstrap: preserve git whitelist item sorting
57896         * build-aux/bootstrap (sort_patterns): New function.
57897         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
57899 2011-04-05  Simon Josefsson  <simon@josefsson.org>
57901         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
57902         sc_space_tab check.
57904 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
57906         areadlink, areadlinkat: rewrite in terms of careadlinkat
57907         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
57908         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
57909         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
57910         (malloc, realloc): Remove #undefs.
57911         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
57912         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
57913         readlink, ssize_t, stdint, unistd.
57914         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
57915         areadlink, stdint.
57917         careadlinkat: new module
57918         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
57919         * modules/careadlinkat: New files, written by me with
57920         a review and feedback from Ben Pfaff in
57921         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00008.html>.
57923 2011-04-01  Bruno Haible  <bruno@clisp.org>
57925         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
57926         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
57927         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
57928         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
57929         Reported by Bruce Korb <bruce.korb@gmail.com>.
57931 2011-04-01  Bruno Haible  <bruno@clisp.org>
57933         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
57934         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
57935         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
57936         * modules/wcpcpy (Depends-on): Add extensions.
57937         * modules/wcpncpy (Depends-on): Likewise.
57938         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
57939         systems.
57940         * doc/posix-functions/wcpncpy.texi: Likewise.
57941         * doc/posix-functions/wcwidth.texi: Likewise.
57943 2011-03-31  Eric Blake  <eblake@redhat.com>
57945         nonblocking: fix mingw test failures
57946         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
57947         non-blocking flag on regular file.
57948         (get_nonblocking_flag): Set errno on invalid fd.
57949         * tests/test-nonblocking.c (main): Avoid test failure on
57950         directories if fchdir is not active.
57951         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
57953 2011-03-31  Bruno Haible  <bruno@clisp.org>
57955         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
57956         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
57957         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
57958         Reported by Simon Josefsson <simon@josefsson.org>.
57960 2011-03-31  Bruno Haible  <bruno@clisp.org>
57961         and Eric Blake  <eblake@redhat.com>
57963         nonblocking: new module
57964         * modules/nonblocking: New module.
57965         * modules/nonblocking-tests: Likewise.
57966         * lib/nonblocking.h: New file.
57967         * lib/nonblocking.c: Likewise.
57968         * tests/test-nonblocking.c: New test.
57969         * lib/ioctl.c (ioctl) [mingw]: Update comment.
57971 2011-03-30  Bruno Haible  <bruno@clisp.org>
57973         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
57974         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
57975         instead of 'printf' format for GCC >= 4.4.
57976         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
57977         (fprintf, printf, vfprintf, vprintf): Declare with
57978         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
57979         the system's vfprintf() function.
57980         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
57982 2011-03-30  Eric Blake  <eblake@redhat.com>
57984         passfd: fix scoping bug
57985         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
57986         before sendmsg/recvmsg.
57988         passfd: standardize coding conventions
57989         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
57990         can be learned at compile time.
57991         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
57992         ifdefs.
57993         (sendfd, recvfd): Follow gnulib code conventions.
57995         passfd: fix incorrect sendmsg arguments
57996         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
57997         incorrect msg_controllen value.
57998         * modules/passfd-tests (Depends-on): Check for alarm.
57999         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
58000         Reported by Bastien ROUCARIES.
58002 2011-03-30  Bruno Haible  <bruno@clisp.org>
58004         c-strcasestr: Relicense under LGPLv2+.
58005         * modules/c-strcasestr (License): Change to LGPLv2+.
58006         Requested by Eric Blake, for libvirt.
58008 2011-03-30  Simon Josefsson  <simon@josefsson.org>
58010         * users.txt: Add libidn2.  Fix libtasn1 link.
58012 2011-03-30  Jim Meyering  <meyering@redhat.com>
58014         tests: readlink* ("",... fails with EINVAL on newer kernels
58015         readlink and readlinkat have typically failed with ENOENT for
58016         the invalid, empty file name,  "".  However, with the advent
58017         of linux-2.6.39, they fail with EINVAL.
58018         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
58019         when operating on the empty file name.
58020         * tests/test-readlink.h (test_readlink): Likewise.
58022 2011-03-29  Bruno Haible  <bruno@clisp.org>
58024         Relicense some modules under LGPLv2+, for libidn2.
58025         * modules/array-mergesort (License): Change to LGPLv2+.
58026         * modules/c-strcaseeq (License): Likewise.
58027         * modules/striconveh (License): Likewise.
58028         * modules/striconveha (License): Likewise.
58029         * modules/uniconv/base (License): Likewise.
58030         * modules/uniconv/u8-conv-from-enc (License): Likewise.
58031         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
58032         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
58033         * modules/unictype/base (License): Likewise.
58034         * modules/unictype/bidiclass-of (License): Likewise.
58035         * modules/unictype/category-M (License): Likewise.
58036         * modules/unictype/category-none (License): Likewise.
58037         * modules/unictype/category-of (License): Likewise.
58038         * modules/unictype/category-test (License): Likewise.
58039         * modules/unictype/category-test-withtable (License): Likewise.
58040         * modules/unictype/combining-class (License): Likewise.
58041         * modules/unictype/joiningtype-of (License): Likewise.
58042         * modules/unictype/scripts (License): Likewise.
58043         * modules/uninorm/base (License): Likewise.
58044         * modules/uninorm/canonical-decomposition (License): Likewise.
58045         * modules/uninorm/composition (License): Likewise.
58046         * modules/uninorm/decompose-internal (License): Likewise.
58047         * modules/uninorm/decomposition-table (License): Likewise.
58048         * modules/uninorm/nfc (License): Likewise.
58049         * modules/uninorm/nfd (License): Likewise.
58050         * modules/uninorm/u32-normalize (License): Likewise.
58051         * modules/unistr/base (License): Likewise.
58052         * modules/unistr/u32-cpy (License): Likewise.
58053         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
58054         * modules/unistr/u32-to-u8 (License): Likewise.
58055         * modules/unistr/u32-uctomb (License): Likewise.
58056         * modules/unistr/u8-check (License): Likewise.
58057         * modules/unistr/u8-mblen (License): Likewise.
58058         * modules/unistr/u8-mbtouc (License): Likewise.
58059         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
58060         * modules/unistr/u8-mbtoucr (License): Likewise.
58061         * modules/unistr/u8-prev (License): Likewise.
58062         * modules/unistr/u8-strlen (License): Likewise.
58063         * modules/unistr/u8-to-u32 (License): Likewise.
58064         * modules/unistr/u8-uctomb (License): Likewise.
58065         * modules/unitypes (License): Likewise.
58066         Requested by Simon Josefsson.
58068 2011-03-29  Simon Josefsson  <simon@josefsson.org>
58070         lib-symbol-visibility: Add a notice.
58071         * modules/lib-symbol-visibility (Notice): New field.
58073 2011-03-29  Bruno Haible  <bruno@clisp.org>
58075         getaddrinfo: Doc fix.
58076         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
58077         section "fixed in Gnulib".
58079 2011-03-28  Simon Josefsson  <simon@josefsson.org>
58081         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
58082         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
58084 2011-03-26  Bruno Haible  <bruno@clisp.org>
58086         unictype/property-byname: Reduce the number of load-time relocations.
58087         * lib/unictype/pr_byname.c: Include <stdlib.h>.
58088         (UC_PROPERTY_INDEX_*): New enumeration values.
58089         (uc_property_byname): Convert an index from the lookup table to an
58090         uc_property_t.
58091         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
58092         values.
58094 2011-03-26  Bruno Haible  <bruno@clisp.org>
58096         unictype/property-byname: Allow omitted word separators and aliases.
58097         * lib/unictype/pr_byname.gperf: Add property names without word
58098         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
58099         for 'space'.
58101 2011-03-26  Bruno Haible  <bruno@clisp.org>
58103         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
58104         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
58105         also hyphens to space.
58106         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
58107         without spaces.
58108         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
58110 2011-03-26  Bruno Haible  <bruno@clisp.org>
58112         unictype/joiningtype-byname: Recognize long names as well.
58113         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
58114         a long name.
58115         * lib/unictype/joiningtype_byname.c: Include <string.h>,
58116         unictype/joiningtype_byname.h.
58117         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
58118         * lib/unictype/joiningtype_byname.gperf: New file.
58119         * modules/unictype/joiningtype-byname (Files): Add
58120         lib/unictype/joiningtype_byname.gperf.
58121         (Depends-on): Add gperf.
58122         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
58123         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
58124         long names.
58126         Tests for module 'unictype/joiningtype-longname'.
58127         * modules/unictype/joiningtype-longname-tests: New file.
58128         * tests/unictype/test-joiningtype_longname.c: New file.
58130         New module 'unictype/joiningtype-longname'.
58131         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
58132         * lib/unictype/joiningtype_longname.c: New file.
58133         * modules/unictype/joiningtype-longname: New file.
58134         * modules/unictype/joiningtype-all (Depends-on): Add
58135         unictype/joiningtype-longname.
58137 2011-03-26  Bruno Haible  <bruno@clisp.org>
58139         unictype/bidiclass-byname: Recognize long names as well.
58140         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
58141         name.
58142         * lib/unictype/bidi_byname.c: Include <string.h>,
58143         unictype/bidi_byname.h.
58144         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
58145         * lib/unictype/bidi_byname.gperf: New file.
58146         * modules/unictype/bidiclass-byname (Files): Add
58147         lib/unictype/bidi_byname.gperf.
58148         (Depends-on): Add gperf.
58149         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
58150         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
58151         long names.
58153         Tests for module 'unictype/bidiclass-longname'.
58154         * modules/unictype/bidiclass-longname-tests: New file.
58155         * tests/unictype/test-bidi_longname.c: New file.
58157         New module 'unictype/bidiclass-longname'.
58158         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
58159         * lib/unictype/bidi_longname.c: New file.
58160         * modules/unictype/bidiclass-longname: New file.
58161         * modules/unictype/bidiclass-all (Depends-on): Add
58162         unictype/bidiclass-longname.
58164 2011-03-26  Bruno Haible  <bruno@clisp.org>
58166         unictype/bidi*: Rename modules.
58167         * modules/unictype/bidiclass-all: Renamed from
58168         modules/unictype/bidicategory-all.
58169         * modules/unictype/bidiclass-name: Renamed from
58170         modules/unictype/bidiclass-name.
58171         (Description): Update.
58172         * modules/unictype/bidiclass-name-tests: Renamed from
58173         modules/unictype/bidicategory-name-tests.
58174         * modules/unictype/bidiclass-byname: Renamed from
58175         modules/unictype/bidicategory-byname.
58176         (Description): Update.
58177         * modules/unictype/bidiclass-byname-tests: Renamed from
58178         modules/unictype/bidicategory-byname-tests.
58179         * modules/unictype/bidiclass-of: Renamed from
58180         modules/unictype/bidicategory-of.
58181         (Description): Update.
58182         * modules/unictype/bidiclass-of-tests: Renamed from
58183         modules/unictype/bidicategory-of-tests.
58184         * modules/unictype/bidiclass-test: Renamed from
58185         modules/unictype/bidicategory-test.
58186         (Description): Update.
58187         * modules/unictype/bidiclass-test-tests: Renamed from
58188         modules/unictype/bidicategory-test-tests.
58189         * modules/unictype/bidicategory-all: New file, a simple redirection.
58190         * modules/unictype/bidicategory-name: Likewise.
58191         * modules/unictype/bidicategory-byname: Likewise.
58192         * modules/unictype/bidicategory-of: Likewise.
58193         * modules/unictype/bidicategory-test: Likewise.
58194         * modules/unictype/property-bidi-* (Dependencies): Update.
58195         * lib/unictype/bidi_*.c: Update comment.
58197 2011-03-26  Bruno Haible  <bruno@clisp.org>
58199         unictype/bidi*: Rename functions, part 2.
58200         * modules/unictype/bidicategory-name (configure.ac): Update required
58201         libunistring version.
58202         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
58204 2011-03-25  Bruno Haible  <bruno@clisp.org>
58206         New module 'unictype/combining-class-all'.
58207         * modules/unictype/combining-class-all: New file.
58209         Tests for module 'unictype/combining-class-byname'.
58210         * modules/unictype/combining-class-byname-tests: New file.
58211         * tests/unictype/test-combiningclass_byname.c: New file.
58213         New module 'unictype/combining-class-byname'.
58214         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
58215         * lib/unictype/combiningclass_byname.c: New file.
58216         * lib/unictype/combiningclass_byname.gperf: New file.
58217         * modules/unictype/combining-class-byname: New file.
58219         Tests for module 'unictype/combining-class-longname'.
58220         * modules/unictype/combining-class-longname-tests: New file.
58221         * tests/unictype/test-combiningclass_longname.c: New file.
58223         New module 'unictype/combining-class-longname'.
58224         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
58225         * lib/unictype/combiningclass_longname.c: New file.
58226         * modules/unictype/combining-class-longname: New file.
58228         Tests for module 'unictype/combining-class-name'.
58229         * modules/unictype/combining-class-name-tests: New file.
58230         * tests/unictype/test-combiningclass_name.c: New file.
58232         New module 'unictype/combining-class-name'.
58233         * lib/unictype.in.h (uc_combining_class_name): New declaration.
58234         * lib/unictype/combiningclass_name.c: New file.
58235         * modules/unictype/combining-class-name: New file.
58237 2011-03-25  Bruno Haible  <bruno@clisp.org>
58239         unictype/combining-class: Rename source files.
58240         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
58241         of unictype/combining.h.
58242         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
58243         Update.
58244         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
58245         * modules/unictype/combining-class (Description): Fix.
58246         (Files, Makefile.am): Update.
58247         * tests/unictype/test-combiningclass.c: Renamed from
58248         tests/unictype/test-combining.c.
58249         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
58251 2011-03-25  Bruno Haible  <bruno@clisp.org>
58253         unictype: Update list of canonical combining classes.
58254         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
58256 2011-03-25  Bruno Haible  <bruno@clisp.org>
58258         unictype/category-byname: Recognize long names as well.
58259         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
58260         a long name.
58261         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
58262         unictype/categ_byname.h.
58263         (UC_CATEGORY_INDEX_*): New enumeration values.
58264         (uc_general_category_byname): Use uc_general_category_lookup and
58265         convert from index to value.
58266         * lib/unictype/categ_byname.gperf: New file.
58267         * modules/unictype/category-byname (Files): Add
58268         lib/unictype/categ_byname.gperf.
58269         (Depends-on): Add gperf.
58270         (Makefile.am): Add rule for generating unictype/categ_byname.h.
58271         * tests/unictype/test-categ_byname.c (main): Test the recognition of
58272         long names.
58274         Tests for module 'unictype/category-longname'.
58275         * modules/unictype/category-longname-tests: New file.
58276         * tests/unictype/test-categ_longname.c: New file.
58278         New module 'unictype/category-longname'.
58279         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
58280         * lib/unictype/categ_longname.c: New file.
58281         * modules/unictype/category-longname: New file.
58282         * modules/unictype/category-all (Depends-on): Add it.
58284 2011-03-25  Bruno Haible  <bruno@clisp.org>
58286         Tests for module 'unictype/category-LC'.
58287         * modules/unictype/category-LC-tests: New file.
58288         * tests/unictype/test-categ_LC.c: New file, automatically generated.
58290         New module 'unictype/category-LC'.
58291         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
58292         (UC_CATEGORY_LC): New declaration.
58293         (UC_CASED_LETTER): New macro.
58294         * lib/gen-uni-tables.c (is_category_LC): New function.
58295         (output_categories): Also handle category LC.
58296         (UC_CATEGORY_MASK_LC): New enumeration value.
58297         (general_category_byname): Also handle category LC.
58298         * lib/unictype/categ_LC.c: New file.
58299         * lib/unictype/categ_LC.h: New file, automatically generated.
58300         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
58301         category LC.
58302         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
58303         * modules/unictype/category-LC: New file.
58304         * modules/unictype/category-byname (Depends-on): Add
58305         unictype/category-LC.
58306         * modules/unictype/category-all (Depends-on): Likewise.
58308 2011-03-25  Eric Blake  <eblake@redhat.com>
58310         xmalloc: revert yesterday's regression
58311         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
58312         realloc's underlying behavior (allowing allocation of zero-size
58313         objects, especially if malloc-gnu is also in use).
58315 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
58317         maint.mk: add missing version to VC-tag
58318         * top/maint.mk: git tag was missing actual tag name; add it.
58320         valgrind: do leak checking, and exit with code 1 on error (not 0)
58321         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
58322         to VALGRIND.
58324 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
58326         posix-modules: say what it does.
58327         * posix-modules: Add a line to the --help output saying what it does.
58329 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
58331         xmalloc: Do not leak if underlying realloc is C99 compatible.
58332         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
58333         This avoids a leak on C99-based systems.  See
58334         <http://lists.gnu.org/r/bug-gnulib/2011-03/msg00243.html>.
58336 2011-03-24  Eric Blake  <eblake@redhat.com>
58338         realloc: document portability problem
58339         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
58340         passing 0 size to realloc.
58342 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
58344         doc: update users.txt
58345         * users.txt: Add cvsps, tmpwatch
58347 2011-03-23  Matt Rice  <ratmice@gmail.com>
58349         doc: update users.txt
58350         * users.txt: Add gdb.
58352 2011-03-23  Jim Meyering  <meyering@redhat.com>
58354         doc: update users.txt
58355         Looking through matches up to the following URL (there are still
58356         several more pages), I found several projects that use gnulib:
58357         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
58358         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
58359         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
58361 2011-03-22  Bruno Haible  <bruno@clisp.org>
58363         unictype/bidi*: Rename functions.
58364         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
58365         uc_bidi_class, uc_is_bidi_class): New declarations.
58366         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
58367         uc_bidi_category_byname.
58368         (uc_bidi_category_byname): New function.
58369         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
58370         u_bidi_category_name.
58371         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
58372         (uc_bidi_category_name): New function.
58373         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
58374         uc_bidi_category.
58375         (uc_bidi_category): New function.
58376         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
58377         uc_is_bidi_category. Invoke uc_bidi_class.
58378         (uc_is_bidi_category): New function.
58379         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
58380         instead of uc_bidi_category_byname.
58381         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
58382         instead of uc_bidi_category_name.
58383         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
58384         uc_bidi_category.
58385         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
58386         instead of uc_is_bidi_category.
58388 2011-03-21  Bruno Haible  <bruno@clisp.org>
58390         New module 'unictype/joininggroup-all'.
58391         * modules/unictype/joininggroup-all: New file.
58393         Tests for module 'unictype/joininggroup-of'.
58394         * modules/unictype/joininggroup-of-tests: New file.
58395         * tests/unictype/test-joininggroup_of.c: New file.
58396         * tests/unictype/test-joininggroup_of.h: New file, automatically
58397         generated by gen-uni-tables.
58399         New module 'unictype/joininggroup-of'.
58400         * modules/unictype/joininggroup-of: New file.
58401         * lib/unictype/joininggroup_of.c: New file.
58402         * lib/unictype/joininggroup_of.h: New file, automatically generated by
58403         gen-uni-tables.
58405         Tests for module 'unictype/joininggroup-byname'.
58406         * modules/unictype/joininggroup-byname-tests: New file.
58407         * tests/unictype/test-joininggroup_byname.c: New file.
58409         New module 'unictype/joininggroup-byname'.
58410         * modules/unictype/joininggroup-byname: New file.
58411         * lib/unictype/joininggroup_byname.c: New file.
58412         * lib/unictype/joininggroup_byname.gperf: New file.
58414         Tests for module 'unictype/joininggroup-name'.
58415         * modules/unictype/joininggroup-name-tests: New file.
58416         * tests/unictype/test-joininggroup_name.c: New file.
58418         New module 'unictype/joininggroup-name'.
58419         * modules/unictype/joininggroup-name: New file.
58420         * lib/unictype/joininggroup_name.c: New file.
58421         * lib/unictype/joininggroup_name.h: New file.
58423         New module 'unictype/joiningtype-all'.
58424         * modules/unictype/joiningtype-all: New file.
58426         Tests for module 'unictype/joiningtype-of'.
58427         * modules/unictype/joiningtype-of-tests: New file.
58428         * tests/unictype/test-joiningtype_of.c: New file.
58429         * tests/unictype/test-joiningtype_of.h: New file, automatically
58430         generated by gen-uni-tables.
58432         New module 'unictype/joiningtype-of'.
58433         * modules/unictype/joiningtype-of: New file.
58434         * lib/unictype/joiningtype_of.c: New file.
58435         * lib/unictype/joiningtype_of.h: New file, automatically generated by
58436         gen-uni-tables.
58438         Tests for module 'unictype/joiningtype-byname'.
58439         * modules/unictype/joiningtype-byname-tests: New file.
58440         * tests/unictype/test-joiningtype_byname.c: New file.
58442         New module 'unictype/joiningtype-byname'.
58443         * modules/unictype/joiningtype-byname: New file.
58444         * lib/unictype/joiningtype_byname.c: New file.
58446         Tests for module 'unictype/joiningtype-name'.
58447         * modules/unictype/joiningtype-name-tests: New file.
58448         * tests/unictype/test-joiningtype_name.c: New file.
58450         New module 'unictype/joiningtype-name'.
58451         * modules/unictype/joiningtype-name: New file.
58452         * lib/unictype/joiningtype_name.c: New file.
58454         unictype: Add support for Arabic shaping properties.
58455         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
58456         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
58457         declarations.
58458         (UC_JOINING_GROUP_*): New enumeration values.
58459         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
58460         declarations.
58461         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
58462         (unicode_joining_type): New variable.
58463         (UC_JOINING_GROUP_*): New enumeration values.
58464         (unicode_joining_group): New variable.
58465         (fill_arabicshaping, joining_type_as_c_identifier,
58466         output_joining_type_test, output_joining_type,
58467         joining_group_as_c_identifier, output_joining_group_test,
58468         output_joining_group): New functions.
58469         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
58470         fill_arabicshaping and output_joining_type_test, output_joining_type,
58471         output_joining_group_test, output_joining_group.
58472         Reported by Simon Josefsson.
58474 2011-03-21  Jim Meyering  <meyering@redhat.com>
58476         strftime: fix a bug in yesterday's change
58477         * lib/strftime.c (add): Accommodate width's initial value of -1.
58478         Otherwise, nstrftime would copy uninitialized data into
58479         the result buffer.
58481 2011-03-21  Jim Meyering  <meyering@redhat.com>
58483         tests: add strftime-tests module
58484         * tests/test-strftime.c: New file.
58485         * modules/strftime-tests: New module.
58487 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
58489         strftime: don't assume a byte count fits in 'int'
58490         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
58491         found this problem by static analysis, using gcc -Wstrict-overflow
58492         (GCC 4.5.2, x86-64).  This reported an optimization that depended
58493         on an integer overflow having undefined behavior, but it turns out
58494         that the argument is a size, which might not fit in 'int' anyway,
58496 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
58498         stdio: don't require ignore_value around fwrite
58500         This patch works around libc bug 11959
58501         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
58502         Without this patch, applications must often write
58503         ignore_value (fwrite (...)) even though the ignore_value is
58504         not helpful here.  It's common to write many objects, using
58505         fwrite/printf/etc., and then use ferror to detect output error.
58507         I considered making this patch optional, but decided against it,
58508         because libc is obviously being inconsistent here: there is no
58509         reason libc should insist that user code must inspect fwrite
58510         return's value without also insisting that it inspect printf's,
58511         putchar's, etc.  If user code wants to have a strict style where
58512         all these functions' values are checked (so that ferror need not
58513         be checked), we could add support for that style in a new gnulib
58514         module, but in the meantime it's better to be consistent and to
58515         support common usage.
58517         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
58518         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
58519         that we are compiling in checking mode, and if not C++, and
58520         if not already wrapping fwrite for some other reason.
58521         (fwrite): #define to rpl_fwrite if the latter is defined.
58523 2011-03-20  Bruno Haible  <bruno@clisp.org>
58525         verror: Fix compilation error introduced on 2011-02-13.
58526         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
58527         instead of __attribute__.
58528         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
58530 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
58531             Bruno Haible  <bruno@clisp.org>
58533         socklen: do not depend on sys_socket
58534         While trying to modify Emacs to use gnulib's socklen module,
58535         I discovered a circular dependency: socklen depends on sys_socket
58536         and vice versa.  Emacs can use socklen, but it does not need
58537         sys_socket because it has its own substitute for sys/socket.h.
58538         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
58539         gl_TYPE_SOCKLEN_T.
58540         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
58541         gl_PREREQ_SYS_H_SOCKET.
58542         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
58543         gl_PREREQ_SYS_H_SOCKET.
58544         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
58545         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
58546         * modules/socklen (Depends-on): Do not depend on sys_socket.
58547         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
58549 2011-03-20  Jim Meyering  <meyering@redhat.com>
58551         maint.mk: sort file names *after* new transformation
58552         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
58553         prefix would have led to an unwarranted failure in GNU parted.
58554         Sort after that transformation.
58556 2011-03-19  Jim Meyering  <meyering@redhat.com>
58558         maint.mk: fix po-file syntax-check rule
58559         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
58560         Patch by Bruno Haible.
58562 2011-03-19  Bruno Haible  <bruno@clisp.org>
58564         socklen: Update comment.
58565         * m4/socklen.m4: Update comment about platforms.
58567 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
58568             Bruno Haible  <bruno@clisp.org>
58570         inet_ntop, inet_pton: Simplify.
58571         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
58572         documented to provide socklen_t and we already depend on sys_socket.
58573         * modules/inet_pton (Depends-on): Likewise.
58574         * lib/arpa_inet.in.h: Adjust comment.
58576 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
58577             Bruno Haible  <bruno@clisp.org>
58579         netdb: Simplify.
58580         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
58581         documented to provide socklen_t and we already depend on sys_socket.
58582         * lib/netdb.in.h: Adjust comment.
58584 2011-03-19  Bruno Haible  <bruno@clisp.org>
58586         sys_socket, netdb: Document problem with socklen_t.
58587         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
58588         platforms.
58589         * doc/posix-headers/netdb.texi: Likewise.
58591 2011-03-18  Eric Blake  <eblake@redhat.com>
58593         maint.mk: let po check work in VPATH build
58594         * top/maint.mk (po_file): Allow cfg.mk override.
58595         (sc_po_check): Allow VPATH use.
58596         Reported by Jiri Denemark.
58598 2011-03-16  Jim Meyering  <meyering@redhat.com>
58600         maint.mk: allow fine-grained syntax-check exclusion via Make variables
58601         Before, you would have had to create one .x-sc_ file per rule in order
58602         to exempt offending files.  Now, you may instead use a Make variable --
58603         usually defined in cfg.mk -- whose name identifies the affected rule.
58604         * top/maint.mk (_sc_excl): Define.
58605         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
58606         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
58608 2011-03-13  Bruno Haible  <bruno@clisp.org>
58610         ignore-value tests: Avoid warnings.
58611         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
58612         empty for gcc < 3.4.
58614 2011-03-13  Bruno Haible  <bruno@clisp.org>
58616         passfd: Fix link error on Solaris.
58617         * modules/passfd (Description): Correct.
58618         (Depends-on): Add socketlib.
58619         (Link): New section.
58620         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
58622 2011-03-13  Bruno Haible  <bruno@clisp.org>
58624         passfd: Fix link error on AIX 5.2.
58625         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
58627 2011-03-13  Bruno Haible  <bruno@clisp.org>
58629         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
58630         * lib/sys_socket.in.h: Include <stddef.h>.
58631         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
58632         CMSG_FIRSTHDR. Remove unused variable.
58634 2011-03-13  Bruno Haible  <bruno@clisp.org>
58636         passfd: Fix compilation error on OpenBSD.
58637         * lib/passfd.c: Include <sys/uio.h>.
58639 2011-03-13  Bruno Haible  <bruno@clisp.org>
58641         passfd test: Fix warnings.
58642         * tests/test-passfd.c: Include <sys/wait.h>.
58643         (main): Fix typo.
58645 2011-03-13  Bruno Haible  <bruno@clisp.org>
58647         passfd module, part 4, tweaks.
58648         * tests/test-passfd.c: Reorder includes.
58649         (main): Fix perror and printf calls.
58651 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
58653         passfd module, part 4.
58654         * modules/passfd-tests: New file.
58655         * tests/test-passfd.c: New file.
58657 2011-03-13  Jim Meyering  <meyering@redhat.com>
58659         Makefile: rely on GNU make; derive syntax-check rule names
58660         Rather than requiring that each sc_ rule be listed as a dependent
58661         of "check", use features of GNU make to derive the list.
58662         * Makefile (syntax-check-rules): Define.
58663         (check): Depend on the new variable, not the hard-coded list.
58665 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
58666             Bruno Haible  <bruno@clisp.org>
58668         passfd module, part 3.
58669         * lib/passfd.h (recvfd): Add a flags argument.
58670         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
58671         (recvfd): Add a flags argument.
58672         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
58673         exists.
58674         * modules/passfd (Depends-on): Add cloexec.
58675         Suggested by Eric Blake.
58677 2011-03-13  Bruno Haible  <bruno@clisp.org>
58679         passfd module, part 2, tweaks.
58680         * modules/passfd (Files): Reorder.
58681         (Depends-on): Remove errno.
58682         (Include): Remove <sys/socket.h>, <sys/un.h>.
58683         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
58684         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
58685         specification header. Include <sys/socket.h> always. Don't include
58686         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
58687         (sendfd): Clarify that it sets errno when it fails.
58688         (recvfd): Fix specification.
58690 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
58692         passfd module, part 2.
58693         * modules/passfd: New file.
58694         * lib/passfd.h: New file.
58695         * lib/passfd.c: New file.
58697 2011-03-12  Bruno Haible  <bruno@clisp.org>
58699         wcswidth, mbswidth: Avoid integer overflow.
58700         * lib/wcswidth.c: Include <limits.h>.
58701         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
58702         * lib/mbswidth.c: Include <limits.h>.
58703         (mbsnwidth): Avoid 'int' overflow.
58704         Reported by Jim Meyering.
58706 2011-03-12  Bruno Haible  <bruno@clisp.org>
58708         futimens, utimensat: Avoid endless recursion on Solaris 10.
58709         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
58710         Solaris.
58711         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
58712         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
58714 2011-03-11  Jim Meyering  <meyering@redhat.com>
58716         maint.mk: relax a regexp to accommodate other formatting styles
58717         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
58718         between "ngettext" and the following "(".
58720 2011-03-11  Pádraig Brady  <P@draigBrady.com>
58722         maint.mk: suppress a false positive warning
58723         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
58724         diagnostics are marked with ngettext.
58726 2011-03-10  Eric Blake  <eblake@redhat.com>
58728         wchar: add explicit dependencies, for Tru64
58729         * modules/mbmemcasecoll (Depends-on): Add wchar.
58730         * modules/mbtowc (Depends-on): Likewise.
58731         * modules/vasnprintf (Depends-on): Likewise.
58732         * modules/unistdio/u-printf-args (Depends-on): Likewise.
58733         * modules/wctomb (Depends-on): Likewise.
58734         Reported by Peter O'Gorman.
58736 2011-03-08  Bruno Haible  <bruno@clisp.org>
58738         passfd module, part 1, tweaks.
58739         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
58740         Improve indentation. Improve AC_MSG_CHECKING messages.
58741         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
58742         gl_SOCKET_FAMILIES.
58744 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
58746         passfd module, part 1.
58747         * m4/afunix.m4: New file.
58748         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
58749         sockets.
58751 2011-03-08  Bruno Haible  <bruno@clisp.org>
58753         regex-quote: New API.
58754         * lib/regex-quote.h: Include <stdbool.h>.
58755         (struct regex_quote_spec): New type.
58756         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
58757         New declarations.
58758         (regex_quote_length, regex_quote_copy, regex_quote): Take a
58759         'const struct regex_quote_spec *' argument.
58760         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
58761         (pcre_special): New constant.
58762         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
58763         New functions.
58764         (regex_quote_length, regex_quote_copy, regex_quote): Take a
58765         'const struct regex_quote_spec *' argument.
58766         * modules/regex-quote (Depends-on): Add stdbool.
58767         * tests/test-regex-quote.c (check): Update for new API. Add test for
58768         anchored results.
58769         * NEWS: Mention the API change.
58770         Reported by Reuben Thomas and Eric Blake.
58772 2011-03-06  Bruno Haible  <bruno@clisp.org>
58774         regex-quote: Fix creation of POSIX extended regular expressions.
58775         * lib/regex-quote.c (ere_special): Add grouping and alternation
58776         operators.
58778 2011-03-05  Bruno Haible  <bruno@clisp.org>
58780         doc: Improve doc regarding autopoint vs. gnulib.
58781         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
58782         disable autopoint while running autoreconf.
58783         Suggested by Ralf Wildenhues.
58785 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58787         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
58788         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
58790 2011-03-03  Bruce Korb  <bkorb@gnu.org>
58792         parse-duration: remove xalloc.h dependency
58793         * lib/parse-duration.c (parse_period): handle NULL return from
58794         strdup instead of calling xstrdup().
58795         * modules/parse-duration: remove "xalloc" dependency
58797 2011-03-03  Matthew Booth  <mbooth@redhat.com>
58799         bootstrap: honor m4_base when running aclocal
58800         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
58802 2011-03-02  Jim Meyering  <meyering@redhat.com>
58804         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
58805         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
58806         on request from Matt Booth.
58808 2011-03-01  Eric Blake  <eblake@redhat.com>
58810         test-link: work on Hurd
58811         * tests/test-link.h (test_link): Hurd rejects linking directories
58812         with EISDIR instead of the POSIX-mandated EPERM.
58814 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
58816         stdio: simplify by moving files to printf-posix, sigpipe
58817         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
58818         since this symbol is needed only if printf is replaced.
58819         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
58820         Require gl_ASM_SYMBOL_PREFIX.
58821         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
58822         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
58823         (Depends-on): Add 'raise'.
58824         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
58825         * modules/stdio (Files): Remove lib/stdio-write.c,
58826         m4/asm-underscore.m4.
58827         (Depends-on): Remove 'raise'.
58829         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
58830         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
58831         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
58832         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
58834 2011-02-28  Bruno Haible  <bruno@clisp.org>
58836         localcharset: Assume ANSI C behaviour of free().
58837         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
58838         calling free().
58839         Suggested by Simon Josefsson <simon@josefsson.org>.
58841 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
58842             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
58843             Bruno Haible  <bruno@clisp.org>  (tiny change)
58845         On Cygwin, use /proc file system instead of win32 API.
58846         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
58847         Win32 file names.
58848         (DllMain): Simplify by removing Cygwin specific code.
58849         (find_shared_library_fullname): Use Linux specific implementation also
58850         for Cygwin.
58851         (get_shared_library_fullname): Update accordingly.
58852         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
58853         Win32 file names.
58854         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
58855         Cygwin specific code.
58857 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
58858             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
58860         Fix OpenMP flag detection for various Fortran compilers.
58861         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
58862         OpenMP-conditional compilation construct, to force compile
58863         failure with missing OpenMP flag.
58864         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
58866 2011-02-25  Eric Blake  <eblake@redhat.com>
58868         strstr: expand test coverage
58869         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
58870         compilation.
58871         * tests/test-memmem.c (main): Duplicate tests.
58872         * tests/test-strcasestr.c (main): Likewise.
58873         * tests/test-c-strcasestr.c (main): Likewise.
58875 2011-02-25  Jim Meyering  <meyering@redhat.com>
58877         maint.mk: detect missing-NL-at-EOF, too
58878         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
58879         it also detects when a file lacks a newline at EOF.
58880         (require_exactly_one_NL_at_EOF_): Renamed from
58881         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
58882         since people may well have .x-sc_... file names tied to the
58883         existing name.  Suggested by Eric Blake.
58885 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
58887         dirname: move m4/dos.m4 functionality into lib/dosname.h
58889         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
58890         extracts symbols from it, puts them into config.h; but it's much
58891         easier to use the symbols directly.  filename.h already does this,
58892         but it disagrees with dos.m4 in some respects.  This patch
58893         introduces a different include file dosname.h that packages up
58894         dos.m4, and then later we can work on merging filename.h and
58895         dosname.h.  Applications that need only the easy-to-configure
58896         symbols should consider including dosname.h rather than dirname.h.
58897         * NEWS: Mention incompatible changes.
58898         * m4/dos.m4: Remove.
58899         * lib/dosname.h, modules/dosname: New files.
58900         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
58901         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
58902         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
58903         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
58904         Include dosname.h, not dirname.h.
58905         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
58906         Include dosname.h, for definitions of symbols like ISSLASH
58907         that used to be in config.h.
58908         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
58909         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
58910         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
58911         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
58912         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
58913         * modules/rmdir (Files): Likewise.
58914         * modules/stat (Files): Likewise.
58915         * modules/unlink (Files): Likewise.
58916         * modules/dirname-lgpl (Depends-on): Add dosname.
58917         * modules/lstat (Depends-on): Likewise.
58918         * modules/openat (Depends-on): Likewise.
58919         * modules/rmdir (Depends-on): Likewise.
58920         * modules/savewd (Depends-on): Likewise.
58921         * modules/stat (Depends-on): Likewise.
58922         * modules/unlink (Depends-on): Likewise.
58923         * modules/openat (Depends-on): Remove dirname-lgpl.
58924         * modules/savewd (Depends-on): Likewise.
58925         * tests/test-dirname.c: Do not use removed symbols like
58926         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
58927         the remaining symbols, e.g., ISSLASH ('\\').
58929 2011-02-25  Eric Blake  <eblake@redhat.com>
58931         strstr: revert patches that introduced bug and pessimization
58932         * lib/str-two-way.h: Add another reference.
58933         (two_way_short_needle, two_way_long_needle): Revert changes from
58934         2011-02-24; they pessimize search speed.
58935         (critical_factorization): Partially revert changes from
58936         2010-06-22; they violate the requirement that the left half of the
58937         needle be smaller than the period of the needle.
58939 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
58941         filenamecat: remove unnecessary dependency on dirname-lgpl
58942         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
58943         is no direct dependency, just an indirect one via filenamecat-lgpl.
58945         remove: remove unnecessary use of m4/dos.m4
58946         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
58947         * modules/remove (FILES): Remove m4/dos.m4.
58949         * lib/openat-proc.c: Don't include dirname.h; not needed.
58951         backupfile: remove unnecessary use of m4/dos.m4
58952         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
58953         of its symbols are used by the backupfile code.  backupfile.c does
58954         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
58955         for the rare case of programs that want all their backup file
58956         names to live within 8+3 limits, and dos.m4 doesn't address that.
58957         * modules/backupfile (Files): Remove m4/dos.m4.
58959 2011-02-24  Jim Meyering  <meyering@redhat.com>
58961         strstr: fix a bug whereby strstr would mistakenly return NULL
58962         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
58963         in period calculation.
58964         (two_way_long_needle): Likewise.
58965         The original problem was reported by Mike Stump in
58966         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
58967         Ralf Wildenhues provided the short needle and haystack.
58968         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
58969         Add a more involved test to trigger the bug in two_way_long_needle.
58971 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
58973         gnulib-tool: remove use of bold display in help screen
58974         * gnulib-tool (func_usage): Do not use bold display anymore in the
58975         help screen.  That was just meant to be a temporary emphasis for a
58976         backward-incompatible change.
58978 2011-02-23  Bruno Haible  <bruno@clisp.org>
58980         Fix misindentation of preprocessor directives.
58981         * lib/argp-namefrob.h: Reindent preprocessor directives.
58982         * lib/getopt_int.h (struct _getopt_data): Likewise.
58983         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
58984         * lib/vasnprintf.c (decode_long_double): Likewise.
58985         * tests/test-argmatch.c: Insert blank lines, for clarity.
58986         * tests/test-exclude.c: Likewise.
58988 2011-02-22  Bruno Haible  <bruno@clisp.org>
58990         ioctl: Fix for MacOS X in 64-bit mode.
58991         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
58992         value.
58993         Suggested by Eric Blake.
58994         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
58996 2011-02-22  Jim Meyering  <meyering@redhat.com>
58998         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
58999         * Makefile (sc_cpp_indent_check): Don't limit the check to files
59000         in lib/.
59002 2011-02-22  Eric Blake  <eblake@redhat.com>
59004         maint: avoid any CDPATH issue
59005         * Makefile (sc_cpp_indent_check): Anchor cd argument.
59007         maint: adjust cpp indentation for my modules, as well
59008         * Makefile (sc_cpp_indent_check): Add my name.
59009         * lib/fbufmode.c: Filter through cppi.
59010         * lib/fpurge.c: Likewise.
59011         * lib/freadable.c: Likewise.
59012         * lib/freading.c: Likewise.
59013         * lib/fwritable.c: Likewise.
59014         * lib/fwriting.c: Likewise.
59015         * lib/sigaction.c: Likewise.
59017 2011-02-22  Jim Meyering  <meyering@redhat.com>
59019         maint: adjust cpp indentation to reflect nesting depth
59020         I.e., in a block of code that begins with an unnested "#if",
59021         put one space between the "#" in column 1 and following token.
59022         For example,
59023         -#include <sys/vfs.h>
59024         +# include <sys/vfs.h>
59025         Do this only in .c files that are part of a module I maintain.
59026         * lib/linkat.c: Filter through cppi.
59027         * lib/nanosleep.c: Likewise.
59028         * lib/openat.c: Likewise.
59029         * lib/openat-die.c: Likewise.
59030         * lib/dup3.c: Likewise.
59031         * lib/fchownat.c: Likewise.
59032         * lib/flock.c: Likewise.
59033         * lib/fsync.c: Likewise.
59034         * lib/fts.c: Likewise.
59035         * lib/getpass.c: Likewise.
59036         * lib/gettimeofday.c: Likewise.
59037         * lib/userspec.c: Likewise.
59038         * Makefile (sc_cpp_indent_check): New rule, to check this.
59040 2011-02-22  Bruno Haible  <bruno@clisp.org>
59042         New module 'wctomb'.
59043         * lib/stdlib.in.h (wctomb): New declaration.
59044         * lib/wctomb.c: New file.
59045         * lib/wctomb-impl.h: New file.
59046         * m4/wctomb.m4: New file.
59047         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
59048         REPLACE_WCTOMB.
59049         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
59050         REPLACE_WCTOMB.
59051         * modules/wctomb: New file.
59052         * tests/test-stdlib-c++.cc: Test signature of wctomb.
59053         * doc/posix-functions/wctomb.texi: Mention the new module.
59054         * modules/wctob (Depends-on): Add wctomb.
59056 2011-02-22  Bruno Haible  <bruno@clisp.org>
59058         New module 'mbtowc'.
59059         * lib/stdlib.in.h (mbtowc): New declaration.
59060         * lib/mbtowc.c: New file.
59061         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
59062         * m4/mbtowc.m4: New file.
59063         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
59064         REPLACE_MBTOWC.
59065         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
59066         REPLACE_MBTOWC.
59067         * modules/mbtowc: New file.
59068         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
59069         * doc/posix-functions/mbtowc.texi: Mention the new module.
59070         * modules/btowc (Depends-on): Add mbtowc.
59072 2011-02-22  Bruno Haible  <bruno@clisp.org>
59074         wcrtomb: Add more tests for native Windows platforms.
59075         * tests/test-wcrtomb-w32-1.sh: New file.
59076         * tests/test-wcrtomb-w32-2.sh: New file.
59077         * tests/test-wcrtomb-w32-3.sh: New file.
59078         * tests/test-wcrtomb-w32-4.sh: New file.
59079         * tests/test-wcrtomb-w32-5.sh: New file.
59080         * tests/test-wcrtomb-w32.c: New file.
59081         * modules/wcrtomb-tests (Files): Add them.
59082         (Makefile.am): Arrange to run these tests.
59083         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
59084         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
59086 2011-02-20  Bruno Haible  <bruno@clisp.org>
59088         wcrtomb: Enhance test.
59089         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
59091 2011-02-20  Bruno Haible  <bruno@clisp.org>
59093         mbrtowc: Tiny optimization.
59094         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
59096 2011-02-20  Jim Meyering  <meyering@redhat.com>
59098         test-exclude.c: remove unmatched #endif
59099         * tests/test-exclude.c: Remove stray #endif, left over from
59100         the change of a week ago.
59102 2011-02-19  Jim Meyering  <meyering@redhat.com>
59104         git-version-gen: skip "-dirty" check when appropriate
59105         * build-aux/git-version-gen: Don't run any git commands when the
59106         version string comes from .tarball-version.  Prior to this, we
59107         would run git update-index --refresh even from a just-unpacked
59108         tarball directory, and that could affect a .git/ directory in a
59109         parent of the build directory.  Reported by Mike Frysinger.
59111 2011-02-19  Bruno Haible  <bruno@clisp.org>
59113         unictype/property-byname: Reduce the size of the 'data' segment.
59114         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
59116 2011-02-19  Bruno Haible  <bruno@clisp.org>
59118         unictype/scripts: Reduce the size of the 'data' segment.
59119         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
59120         '%pic'.
59121         * lib/unictype/scripts_byname.gperf: Regenerated.
59123 2011-02-19  Bruno Haible  <bruno@clisp.org>
59125         stdint: Update documentation.
59126         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
59128 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
59130         stdint: omit redundant check for wchar.h
59131         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
59132         always tests whether wchar.h exists, so remove the now-redundant test.
59134 2011-02-18  Bruno Haible  <bruno@clisp.org>
59136         stdint: Cut dependency to module 'wchar'.
59137         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
59138         include the necessary prerequisites.
59139         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
59140         * modules/stdint (Depends-on): Remove wchar.
59141         (Makefile.am): Substitute HAVE_WCHAR_H.
59142         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
59144 2011-02-18  Eric Blake  <eblake@redhat.com>
59146         longlong: skip, rather than fail, on cross-compilation
59147         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
59148         when cross-compiling; regression from 2011-02-16.
59150 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
59152         * NEWS: Mention 2011-02-08 change to stdlib.
59154 2011-02-17  Bruno Haible  <bruno@clisp.org>
59156         getloadavg: Add comments about platforms.
59157         * m4/getloadavg.m4: Add comment.
59158         * lib/getloadavg.c: Likewise.
59160 2011-02-17  Bruno Haible  <bruno@clisp.org>
59162         getloadavg: Fix link error on Solaris 2.6.
59163         * modules/getloadavg (Link): New section.
59164         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
59165         linking test-getloadavg.
59166         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
59167         getloadavg.
59169 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
59171         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
59172         It was 'int', but this doesn't match the IRIX 6.5 manual.
59173         Suggested by Bruno Haible in
59174         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00207.html>.
59176 2011-02-17  Bruno Haible  <bruno@clisp.org>
59178         havelib: Fix comments.
59179         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
59180         change.
59182 2011-02-17  Bruno Haible  <bruno@clisp.org>
59184         havelib: Update config.rpath.
59185         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
59187 2011-02-17  Bruno Haible  <bruno@clisp.org>
59189         getloadavg test: Add some plausibility checks.
59190         * tests/test-getloadavg.c (check_avg): Print a warning when the value
59191         is improbable.
59193 2011-02-16  Eric Blake  <eblake@redhat.com>
59195         maintainer-makefile: make syntax-check a no-op from tarballs
59196         * top/maint.mk (no-vc-detected): New rule.
59197         (local-checks-available): Use it to avoid hanging if someone tries
59198         'make syntax-check' from a tarball.  Also append to any non-syntax
59199         checks already defined in cfg.mk.
59201 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
59203         longlong: tune, particularly for common case of c99
59205         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
59206         or running anything if c99, or if unsigned long long int does not
59207         work.  In either case, we know the answer without further tests.
59208         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
59209         it at most once, and use its results for both long long int and
59210         unsigned long long int.  This is more likely to be efficient in
59211         the common case where the program wants to check for both long
59212         long int and unsigned long long int.
59213         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
59214         since the answer is already known.
59216 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
59218         getloadavg: set errno
59219         * lib/getloadavg.c: Set errno when returning -1.  If no other
59220         error number looks appropriate, set it to ENOSYS if the getloadavg
59221         looks like it can't possibly ever work, ENOTSUP otherwise.
59222         Suggested by Bruno Haible in
59223         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00187.html>.
59225         getloadavg: trim unused parts and speed up 'configure'
59226         * NEWS: Document this.
59227         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
59228         always compiled if getloadavg is absent.
59229         Move test code to ...
59230         * tests/test-getloadavg.c: New file, containing previous
59231         contents of test from lib/getloadavg.c.  It also contains
59232         suggestions by Bruno Haible in
59233         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00186.html>.
59234         * modules/getloadavg-tests: New file.
59235         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
59236         Do tests in the same order as they're needed for getloadavg.c.
59237         Omit setgid-related tests that generate symbols KMEM_GROUP,
59238         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
59239         Do only the tests that are needed to see whether the system has
59240         getloadavg, moving the other tests into ...
59241         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
59242         NLIST_NAME_UNION; nobody should be using it.  Do not define
59243         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
59244         relevant, as the user of this module shouldn't care how getloadavg
59245         is implemented.
59247         getloadavg: omit unused var
59248         * lib/getloadavg.c (getloadavg): Omit unused local variable.
59250 2011-02-15  Jim Meyering  <meyering@redhat.com>
59252         doc: update users.txt
59253         * users.txt: Update iwhd's URL.
59255 2011-02-13  Bruno Haible  <bruno@clisp.org>
59257         Consistent macro naming for macros that use GCC __attribute__.
59258         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
59259         _ATTRIBUTE_NONNULL_.
59260         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
59261         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
59262         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
59263         ATTRIBUTE_DEPRECATED.
59264         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
59265         ATTRIBUTE_NORETURN.
59266         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
59267         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
59268         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
59269         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
59270         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
59271         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
59272         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
59273         ATTRIBUTE_SENTINEL.
59274         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
59275         ATTRIBUTE_RETURN_CHECK.
59276         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
59277         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
59278         ATTRIBUTE_NORETURN.
59279         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
59280         Reported by Paul Eggert.
59282 2011-02-13  Bruno Haible  <bruno@clisp.org>
59284         Don't interfere with a program's definition of __attribute__.
59285         * lib/argp.h (__attribute__): Remove definition.
59286         (_GL_ATTRIBUTE_FORMAT): New macro.
59287         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
59288         * lib/argp-fmtstream.h (__attribute__): Remove definition.
59289         (_GL_ATTRIBUTE_FORMAT): New macro.
59290         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
59291         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
59292         GCC 3 or newer.
59293         * lib/error.h (__attribute__): Remove definition.
59294         (_GL_ATTRIBUTE_FORMAT): New macro.
59295         (error, error_at_line): Use it.
59296         * lib/hash.h (__attribute__): Remove definition.
59297         (ATTRIBUTE_WUR): Update definition. Define always.
59298         * lib/openat.h (__attribute__): Remove definition.
59299         (ATTRIBUTE_NORETURN): Update definition. Define always.
59300         * lib/sigpipe-die.h (__attribute__): Remove definition.
59301         (ATTRIBUTE_NORETURN): Update definition. Define always.
59302         * lib/vasnprintf.h (__attribute__): Remove definition.
59303         (_GL_ATTRIBUTE_FORMAT): New macro.
59304         (asnprintf, vasnprintf): Use it.
59305         * lib/xalloc.h (__attribute__): Remove definition.
59306         (ATTRIBUTE_NORETURN): Update definition. Define always.
59307         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
59308         * lib/xmemdup0.h (__attribute__): Remove definition.
59309         (ATTRIBUTE_NORETURN): Update definition. Define always.
59310         * lib/xprintf.h (__attribute__): Remove definition.
59311         (_GL_ATTRIBUTE_FORMAT): New macro.
59312         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
59313         * lib/xstrtol.h (__attribute__): Remove definition.
59314         (ATTRIBUTE_NORETURN): Update definition. Define always.
59315         * lib/xvasprintf.h (__attribute__): Remove definition.
59316         (_GL_ATTRIBUTE_FORMAT): New macro.
59317         (xasprintf, xvasprintf): Use it.
59318         * tests/test-argmatch.c (__attribute__): Remove definition.
59319         (ATTRIBUTE_NORETURN): Update definition. Define always.
59320         * tests/test-exclude.c (__attribute__): Remove definition.
59321         (ATTRIBUTE_NORETURN): Update definition. Define always.
59322         Reported by Paul Eggert.
59324 2011-02-13  Bruno Haible  <bruno@clisp.org>
59326         mbrtowc: Add more tests for native Windows platforms.
59327         * tests/test-mbrtowc-w32-1.sh: New file.
59328         * tests/test-mbrtowc-w32-2.sh: New file.
59329         * tests/test-mbrtowc-w32-3.sh: New file.
59330         * tests/test-mbrtowc-w32-4.sh: New file.
59331         * tests/test-mbrtowc-w32-5.sh: New file.
59332         * tests/test-mbrtowc-w32.c: New file.
59333         * modules/mbrtowc-tests (Files): Add them.
59334         (Makefile.am): Arrange to run these tests.
59335         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
59336         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
59338 2011-02-13  Bruno Haible  <bruno@clisp.org>
59340         mbrtowc: Work around native Windows bug.
59341         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
59342         guess when no suitable locale for testing was found.
59343         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
59345 2011-02-13  Bruno Haible  <bruno@clisp.org>
59347         mbsinit: Work around mingw bug.
59348         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
59349         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
59350         Windows.
59351         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
59353 2011-02-13  Bruno Haible  <bruno@clisp.org>
59355         mbsinit: Don't crash for a NULL argument.
59356         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
59357         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
59359 2011-02-13  Bruno Haible  <bruno@clisp.org>
59361         Don't interfere with a program's definition of __attribute__.
59362         * lib/stdio.in.h (__attribute__): Remove definition.
59363         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
59364         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
59365         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
59366         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
59367         * lib/string.in.h (__attribute__): Remove definition.
59368         Reported by Paul Eggert.
59370 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
59372         stdlib: don't get in the way of non-GCC __attribute__
59373         See thread starting at
59374         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00161.html>.
59375         Revert previous stdlib change, installing the following instead:
59376         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
59377         to get in the way of a non-GCC compiler that supports __attribute__.
59378         (_GL_ATTRIBUTE_RETURN): New macro.
59379         (_Exit): Use it instead of __attribute__.
59381 2011-02-12  Bruno Haible  <bruno@clisp.org>
59383         quotearg test: Avoid test failure on mingw.
59384         * tests/test-quotearg.sh: Convert the locale identifier from native
59385         Windows syntax to Unix syntax.
59387 2011-02-12  Bruno Haible  <bruno@clisp.org>
59389         setlocale: Prefer gnulib's override over libintl's override.
59390         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
59391         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
59392         GNULIB_defined_setlocale is set.
59394 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
59396         stdlib: support non-GCC __attribute__
59398         Fix a serious and tricky problem encountered when attempting to
59399         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
59400         5.5, but it crashed due to memory corruption on Solaris 10 with
59401         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
59402         bits that are otherwise zero.  This tagging is optional inside
59403         Emacs but is preferred and is used when __attribute__ ((__aligned
59404         (8))) works, as it does with both recent-enough GCC and with Sun C
59405         5.11.  However, Sun C 5.11 is not GCC and does not #define
59406         __GNUC__ and __GNUC_MINOR__.
59408         When I added the getloadavg module to Emacs, it brought in
59409         stdlib.in.h, which contained this fragment:
59411            #ifndef __attribute__
59412            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
59413            #  define __attribute__(Spec)   /* empty */
59414            # endif
59415            #endif
59417         When files that include <stdlib.h> were compiled with Sun C 5.11,
59418         the above code disabled __attribute__ ((__aligned (8))), which
59419         caused variables to not be properly aligned, which eventually led
59420         to the pointer corruption mentioned above.  (This was a bit hard
59421         to diagnose, unfortunately.)
59423         Several "#define __attribute__(X) /* empty */" code snippets need
59424         to be eradicated from Gnulib to work with non-GCC compilers that
59425         support __attribute__.  The Autoconf way to do this is to test for
59426         each kind of attribute that we want support for, and selectively
59427         enable that in source code.
59429         Fix this problem just for stdlib.h, by adding a test for the
59430         __noreturn__ attribute, and change stdlib.in.h to use that test
59431         when needed.  This technique can be easily generalized to the
59432         other *.in.h files and attributes, and a similar technique can be
59433         used for *.h and *.c files.  This patch is enough to solve the
59434         problem for Emacs + getloadavg, and I thought I'd publish it for
59435         feedback before undertaking further, similar fixes in other
59436         modules.
59438         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
59439         because it's not needed for stdlib.h.  It merely substitutes the
59440         value directly into stdlib.h.  We may well need to #define it, or
59441         similar symbols, for other modules, but it's nice to also have an
59442         option to not #define it for applications like Emacs that do not
59443         need it.
59445         * lib/stdlib.in.h (__attribute__): Do not #define.
59446         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
59447         be defined only if the _Exit module is also used.
59448         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
59449         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
59450         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
59451         platforms.
59452         * modules/_Exit (Files): Add m4/attribute.m4.
59453         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
59454         * m4/attribute.m4: New file.
59456 2011-02-12  Bruno Haible  <bruno@clisp.org>
59458         wcsrtombs: Work around bug on native Windows.
59459         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
59460         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
59461         instead of len.
59462         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
59464 2011-02-12  Bruno Haible  <bruno@clisp.org>
59466         mbsrtowcs: Work around bug on native Windows.
59467         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
59468         against mingw bug.
59469         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
59471 2011-02-12  Bruno Haible  <bruno@clisp.org>
59473         Avoid setlocale bugs in tests.
59474         * modules/btowc (Dependencies): Add setlocale.
59475         * modules/c-strcase (Dependencies): Likewise.
59476         * modules/mbmemcasecmp (Dependencies): Likewise.
59477         * modules/mbmemcasecoll (Dependencies): Likewise.
59478         * modules/mbrtowc (Dependencies): Likewise.
59479         * modules/mbscasecmp (Dependencies): Likewise.
59480         * modules/mbscasestr (Dependencies): Likewise.
59481         * modules/mbschr (Dependencies): Likewise.
59482         * modules/mbscspn (Dependencies): Likewise.
59483         * modules/mbsinit (Dependencies): Likewise.
59484         * modules/mbsncasecmp (Dependencies): Likewise.
59485         * modules/mbsnrtowcs (Dependencies): Likewise.
59486         * modules/mbspbrk (Dependencies): Likewise.
59487         * modules/mbspcasecmp (Dependencies): Likewise.
59488         * modules/mbsrchr (Dependencies): Likewise.
59489         * modules/mbsrtowcs (Dependencies): Likewise.
59490         * modules/mbsspn (Dependencies): Likewise.
59491         * modules/mbsstr (Dependencies): Likewise.
59492         * modules/nl_langinfo (Dependencies): Likewise.
59493         * modules/quotearg (Dependencies): Likewise.
59494         * modules/unicase/locale-language (Dependencies): Likewise.
59495         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
59496         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
59497         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
59498         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
59499         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
59500         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
59501         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
59502         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
59503         * modules/vasnprintf-posix (Dependencies): Likewise.
59504         * modules/wcrtomb (Dependencies): Likewise.
59505         * modules/wcsnrtombs (Dependencies): Likewise.
59506         * modules/wcsrtombs (Dependencies): Likewise.
59508 2011-02-12  Bruno Haible  <bruno@clisp.org>
59510         setlocale: Workaround native Windows bug.
59511         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
59512         succeeds but sets LC_CTYPE to "C", report a failure.
59513         * tests/test-setlocale2.sh: New file.
59514         * tests/test-setlocale2.c: New file.
59515         * modules/setlocale-tests (Files): Add the new files.
59516         (Makefile.am): Enable test-setlocale2.sh test.
59517         * doc/posix-functions/setlocale.texi: Mention workaround.
59519 2011-02-11  Bruno Haible  <bruno@clisp.org>
59521         Tests for module 'setlocale'.
59522         * modules/setlocale-tests: New file.
59523         * tests/test-setlocale1.sh: New file.
59524         * tests/test-setlocale1.c: New file.
59526         New module 'setlocale'.
59527         * lib/locale.in.h (setlocale): New declaration.
59528         * lib/setlocale.c: New file, based on
59529         gettext/gettext-runtime/intl/setlocale.c.
59530         * m4/setlocale.m4: New file.
59531         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
59532         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
59533         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
59534         REPLACE_SETLOCALE.
59535         * modules/setlocale: New file.
59536         * tests/test-locale-c++.cc: Test the declaration of setlocale.
59537         * doc/posix-functions/setlocale.texi: Mention the new module.
59539 2011-02-11  Bruno Haible  <bruno@clisp.org>
59541         Prepare for locale dependent tests on mingw.
59542         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
59543         because it has the wrong locale encoding.
59544         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
59545         French_France.1252 instead of "fr".
59546         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
59547         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
59548         because it has the wrong locale encoding.
59549         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
59550         native Windows, try Turkish_Turkey.65001.
59551         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
59552         Chinese_China.54936.
59554         Prepare for locale dependent tests on mingw.
59555         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
59556         differently.
59557         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
59558         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
59559         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
59560         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
59562 2011-02-11  Eric Blake  <eblake@redhat.com>
59564         strptime: avoid compiler warnings
59565         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
59566         compiler warnings about dead code.
59567         Reported by Daniel P. Berrange.
59569 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
59571         doc: update users.txt
59572         * users.txt: Add rcs.
59574 2011-02-10  John W. Eaton  <jwe@gnu.org>
59576         doc: update users.txt
59577         * users.txt: Add octave.
59579 2011-02-10  Jim Meyering  <meyering@redhat.com>
59581         doc: update users.txt
59582         * users.txt: Add iwhd.
59584 2011-02-09  Bruno Haible  <bruno@clisp.org>
59586         gnulib-tool: Make copyright notice adjustment more robust.
59587         * gnulib-tool (func_import): In sed_transform_main_lib_file,
59588         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
59589         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
59590         License".
59591         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
59593 2011-02-06  Bruno Haible  <bruno@clisp.org>
59595         New module 'towctrans'.
59596         * modules/towctrans: New file.
59597         * lib/wctype.in.h (towctrans): New declaration.
59598         * lib/towctrans.c: New file.
59599         * lib/towctrans-impl.h: New file.
59600         * m4/towctrans.m4: New file.
59601         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
59602         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
59603         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
59604         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
59605         * doc/posix-functions/towctrans.texi: Mention the new module.
59607 2011-02-06  Bruno Haible  <bruno@clisp.org>
59609         New module 'wctrans'.
59610         * modules/wctrans: New file.
59611         * lib/wctype.in.h (wctrans): New declaration.
59612         * lib/wctrans.c: New file.
59613         * lib/wctrans-impl.h: New file.
59614         * m4/wctrans.m4: New file.
59615         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
59616         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
59617         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
59618         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
59619         * doc/posix-functions/wctrans.texi: Mention the new module.
59621 2011-02-06  Bruno Haible  <bruno@clisp.org>
59623         New module 'iswctype'.
59624         * modules/iswctype: New file.
59625         * lib/wctype.in.h (iswctype): New declaration.
59626         * lib/iswctype.c: New file.
59627         * lib/iswctype-impl.h: New file.
59628         * m4/iswctype.m4: New file.
59629         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
59630         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
59631         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
59632         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
59633         * doc/posix-functions/iswctype.texi: Mention the new module and the
59634         HP-UX 11.00 problem.
59636 2011-02-06  Bruno Haible  <bruno@clisp.org>
59638         New module 'wctype'.
59639         * modules/wctype: Change to represent the wctype() substitute.
59640         * lib/wctype.in.h (wctype): New declaration.
59641         * lib/wctype.c: New file.
59642         * lib/wctype-impl.h: New file.
59643         * m4/wctype.m4: New file.
59644         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
59645         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
59646         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
59647         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
59648         * doc/posix-functions/wctype.texi: Mention the new module and the
59649         HP-UX 11.00 problem.
59651 2011-02-06  Bruno Haible  <bruno@clisp.org>
59653         wctype-h: Ensure wctype_t and wctrans_t are defined.
59654         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
59655         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
59656         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
59657         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
59658         HAVE_WCTRANS_T.
59659         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
59661 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
59663         flock: fix license typo
59665         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
59666         omitted.
59668 2011-02-08  Bruno Haible  <bruno@clisp.org>
59670         Split large sed scripts, for HP-UX sed.
59671         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
59672         to avoid HP-UX limit of 99 commands, in the near future.
59673         * modules/stdlib (Makefile.am): Likewise.
59674         * modules/unistd (Makefile.am): Likewise.
59675         * modules/wchar (Makefile.am): Likewise.
59676         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
59677         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
59678         <http://lists.gnu.org/r/bug-gnulib/2010-01/msg00216.html>.
59680 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
59681             Bruno Haible  <bruno@clisp.org>
59683         stdlib: improve random_r modularization
59684         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
59685         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
59686         you also need the random_r module to get this material right.
59687         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
59688         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
59689         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
59691 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
59693         stdlib: don't depend on stdint
59694         * lib/stdlib.in.h: Don't include <stdint.h> merely because
59695         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
59696         be independent of whether stdint.h is needed.
59697         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
59698         here, instead of ...
59699         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
59700         struct random_data should be using the random_r module, not just
59701         the stdlib module (which wouldn't make sense: what package needs
59702         just struct random_data without also needing random_r?).
59703         * modules/stdlib (Depends-on): Remove stdint.
59705         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
59706         See the thread rooted at
59707         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00090.html>.
59708         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
59709         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
59710         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
59711         __VMS)); previously it was always included (via fcntl--.h).
59712         (getloadavg): Do not use c_strtod.  Instead, approximate it by
59713         hand; this is good enough for load averages.  Also, do not use
59714         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
59715         flags directly if available and don't bother otherwise.  (Packages
59716         that need the extra reliability should use the modules that define
59717         these flags on older platforms that lack them.)
59718         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
59719         fcntl-safer.
59721 2011-02-08  Jim Meyering  <meyering@redhat.com>
59723         di-set.h, ino-map.h: add multiple-inclusion guard
59724         Technically, the guard is required only for ino-map.h, due to its
59725         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
59726         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
59727         * lib/ino-map.h: Likewise.
59729 2011-02-06  Bruno Haible  <bruno@clisp.org>
59731         iswblank: Ensure declaration on glibc systems.
59732         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
59733         * modules/iswblank (Dependencies): Add 'extensions'.
59734         * doc/posix-functions/iswblank.texi: Document the glibc problem.
59736 2011-02-06  Bruno Haible  <bruno@clisp.org>
59738         New module 'iswblank'.
59739         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
59740         * modules/iswblank: New file.
59741         * modules/wctype-h (Files): Remove lib/iswblank.c.
59742         (Makefile.am): Substitute GNULIB_ISWBLANK.
59743         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
59744         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
59745         (gl_WCTYPE_H_DEFAULTS): New macro.
59746         (gl_WCTYPE_H): Require it. Remove iswblank related code.
59747         * modules/iswblank-tests: New file.
59748         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
59749         * tests/test-wctype-h.c (main): Remove iswblank tests.
59750         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
59751         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
59752         of 'wctype-h'.
59753         * NEWS: Mention the change.
59754         * modules/mbchar (Depends-on): Add iswblank.
59756 2011-02-08  Bruno Haible  <bruno@clisp.org>
59758         di-set tests: Refactor.
59759         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
59760         unnecessary includes.
59761         (ASSERT): Remove macro.
59762         (main): Make C90 compliant by avoiding variable declaration after
59763         statement.
59764         * modules/di-set-tests (Files): Add tests/macros.h.
59766 2011-02-08  Bruno Haible  <bruno@clisp.org>
59768         ino-map tests: Refactor.
59769         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
59770         unnecessary includes.
59771         (ASSERT): Remove macro.
59772         (main): Make C90 compliant by avoiding variable declaration after
59773         statement.
59774         * modules/ino-map-tests (Files): Add tests/macros.h.
59776 2011-02-08  Jim Meyering  <meyering@redhat.com>
59778         di-set: add "const" to a cast
59779         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
59780         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
59782 2011-02-06  Bruno Haible  <bruno@clisp.org>
59784         Rename module 'wctype' to 'wctype-h'.
59785         * modules/wctype-h: Renamed from modules/wctype.
59786         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
59787         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
59788         (Files, Depends-on, Makefile.am): Update.
59789         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
59790         (Files, Makefile.am): Update.
59791         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
59792         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
59793         * doc/posix-headers/wctype.texi: Update.
59794         * doc/posix-functions/iswalnum.texi: Update.
59795         * doc/posix-functions/iswalpha.texi: Update.
59796         * doc/posix-functions/iswblank.texi: Update.
59797         * doc/posix-functions/iswcntrl.texi: Update.
59798         * doc/posix-functions/iswdigit.texi: Update.
59799         * doc/posix-functions/iswgraph.texi: Update.
59800         * doc/posix-functions/iswlower.texi: Update.
59801         * doc/posix-functions/iswprint.texi: Update.
59802         * doc/posix-functions/iswpunct.texi: Update.
59803         * doc/posix-functions/iswspace.texi: Update.
59804         * doc/posix-functions/iswupper.texi: Update.
59805         * doc/posix-functions/iswxdigit.texi: Update.
59806         * doc/posix-functions/towlower.texi: Update.
59807         * doc/posix-functions/towupper.texi: Update.
59808         * NEWS: Mention the change.
59809         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
59810         * modules/mbchar (Dependencies): Likewise.
59811         * modules/mbswidth (Dependencies): Likewise.
59812         * modules/quotearg (Dependencies): Likewise.
59813         * modules/regex (Dependencies): Likewise.
59814         * modules/wcscasecmp (Dependencies): Likewise.
59815         * modules/wcsncasecmp (Dependencies): Likewise.
59816         * modules/wcwidth (Dependencies): Likewise.
59818 2011-02-06  Bruno Haible  <bruno@clisp.org>
59820         New module 'wcswidth'.
59821         * modules/wcswidth: New file.
59822         * lib/wchar.in.h (wcswidth): New declaration.
59823         * lib/wcswidth.c: New file.
59824         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
59825         * m4/wcswidth.m4: New file.
59826         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
59827         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
59828         REPLACE_WCSWIDTH.
59829         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
59830         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
59831         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
59832         * doc/posix-functions/wcswidth.texi: Mention the new module.
59834 2011-02-06  Bruno Haible  <bruno@clisp.org>
59836         New module 'wcstok'.
59837         * modules/wcstok: New file.
59838         * lib/wchar.in.h (wcstok): New declaration.
59839         * lib/wcstok.c: New file.
59840         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
59841         * m4/wcstok.m4: New file.
59842         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
59843         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
59844         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
59845         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
59846         * doc/posix-functions/wcstok.texi: Mention the new module.
59848 2011-02-06  Bruno Haible  <bruno@clisp.org>
59850         New module 'wcsstr'.
59851         * modules/wcsstr: New file.
59852         * lib/wchar.in.h (wcsstr): New declaration.
59853         * lib/wcsstr.c: New file.
59854         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
59855         * m4/wcsstr.m4: New file.
59856         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
59857         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
59858         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
59859         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
59860         * doc/posix-functions/wcsstr.texi: Mention the new module.
59862 2011-02-06  Bruno Haible  <bruno@clisp.org>
59864         New module 'wcspbrk'.
59865         * modules/wcspbrk: New file.
59866         * lib/wchar.in.h (wcspbrk): New declaration.
59867         * lib/wcspbrk.c: New file.
59868         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
59869         * m4/wcspbrk.m4: New file.
59870         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
59871         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
59872         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
59873         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
59874         * doc/posix-functions/wcspbrk.texi: Mention the new module.
59876 2011-02-06  Bruno Haible  <bruno@clisp.org>
59878         New module 'wcsspn'.
59879         * modules/wcsspn: New file.
59880         * lib/wchar.in.h (wcsspn): New declaration.
59881         * lib/wcsspn.c: New file.
59882         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
59883         * m4/wcsspn.m4: New file.
59884         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
59885         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
59886         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
59887         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
59888         * doc/posix-functions/wcsspn.texi: Mention the new module.
59890 2011-02-06  Bruno Haible  <bruno@clisp.org>
59892         New module 'wcscspn'.
59893         * modules/wcscspn: New file.
59894         * lib/wchar.in.h (wcscspn): New declaration.
59895         * lib/wcscspn.c: New file.
59896         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
59897         * m4/wcscspn.m4: New file.
59898         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
59899         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
59900         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
59901         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
59902         * doc/posix-functions/wcscspn.texi: Mention the new module.
59904 2011-02-06  Bruno Haible  <bruno@clisp.org>
59906         New module 'wcsrchr'.
59907         * modules/wcsrchr: New file.
59908         * lib/wchar.in.h (wcsrchr): New declaration.
59909         * lib/wcsrchr.c: New file.
59910         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
59911         * m4/wcsrchr.m4: New file.
59912         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
59913         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
59914         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
59915         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
59916         * doc/posix-functions/wcsrchr.texi: Mention the new module.
59918 2011-02-06  Bruno Haible  <bruno@clisp.org>
59920         New module 'wcschr'.
59921         * modules/wcschr: New file.
59922         * lib/wchar.in.h (wcschr): New declaration.
59923         * lib/wcschr.c: New file.
59924         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
59925         * m4/wcschr.m4: New file.
59926         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
59927         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
59928         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
59929         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
59930         * doc/posix-functions/wcschr.texi: Mention the new module.
59932 2011-02-06  Bruno Haible  <bruno@clisp.org>
59934         New module 'wcsdup'.
59935         * modules/wcsdup: New file.
59936         * lib/wchar.in.h (wcsdup): New declaration.
59937         * lib/wcsdup.c: New file.
59938         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
59939         * m4/wcsdup.m4: New file.
59940         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
59941         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
59942         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
59943         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
59944         * doc/posix-functions/wcsdup.texi: Mention the new module.
59946 2011-02-06  Bruno Haible  <bruno@clisp.org>
59948         New module 'wcsxfrm'.
59949         * modules/wcsxfrm: New file.
59950         * lib/wchar.in.h (wcsxfrm): New declaration.
59951         * lib/wcsxfrm.c: New file.
59952         * lib/wcsxfrm-impl.h: New file.
59953         * m4/wcsxfrm.m4: New file.
59954         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
59955         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
59956         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
59957         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
59958         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
59960 2011-02-06  Bruno Haible  <bruno@clisp.org>
59962         New module 'wcscoll'.
59963         * modules/wcscoll: New file.
59964         * lib/wchar.in.h (wcscoll): New declaration.
59965         * lib/wcscoll.c: New file.
59966         * lib/wcscoll-impl.h: New file.
59967         * m4/wcscoll.m4: New file.
59968         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
59969         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
59970         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
59971         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
59972         * doc/posix-functions/wcscoll.texi: Mention the new module.
59974 2011-02-06  Bruno Haible  <bruno@clisp.org>
59976         New module 'wcsncasecmp'.
59977         * modules/wcsncasecmp: New file.
59978         * lib/wchar.in.h (wcsncasecmp): New declaration.
59979         * lib/wcsncasecmp.c: New file.
59980         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
59981         * m4/wcsncasecmp.m4: New file.
59982         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
59983         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
59984         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
59985         HAVE_WCSNCASECMP.
59986         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
59987         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
59989 2011-02-06  Bruno Haible  <bruno@clisp.org>
59991         New module 'wcscasecmp'.
59992         * modules/wcscasecmp: New file.
59993         * lib/wchar.in.h (wcscasecmp): New declaration.
59994         * lib/wcscasecmp.c: New file.
59995         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
59996         * m4/wcscasecmp.m4: New file.
59997         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
59998         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
59999         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
60000         HAVE_WCSCASECMP.
60001         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
60002         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
60004 2011-02-05  Bruno Haible  <bruno@clisp.org>
60006         New module 'wcsncmp'.
60007         * modules/wcsncmp: New file.
60008         * lib/wchar.in.h (wcsncmp): New declaration.
60009         * lib/wcsncmp.c: New file.
60010         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
60011         * m4/wcsncmp.m4: New file.
60012         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
60013         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
60014         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
60015         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
60016         * doc/posix-functions/wcsncmp.texi: Mention the new module.
60018 2011-02-05  Bruno Haible  <bruno@clisp.org>
60020         New module 'wcscmp'.
60021         * modules/wcscmp: New file.
60022         * lib/wchar.in.h (wcscmp): New declaration.
60023         * lib/wcscmp.c: New file.
60024         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
60025         * m4/wcscmp.m4: New file.
60026         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
60027         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
60028         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
60029         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
60030         * doc/posix-functions/wcscmp.texi: Mention the new module.
60032 2011-02-05  Bruno Haible  <bruno@clisp.org>
60034         New module 'wcsncat'.
60035         * modules/wcsncat: New file.
60036         * lib/wchar.in.h (wcsncat): New declaration.
60037         * lib/wcsncat.c: New file.
60038         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
60039         * m4/wcsncat.m4: New file.
60040         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
60041         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
60042         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
60043         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
60044         * doc/posix-functions/wcsncat.texi: Mention the new module.
60046 2011-02-05  Bruno Haible  <bruno@clisp.org>
60048         New module 'wcscat'.
60049         * modules/wcscat: New file.
60050         * lib/wchar.in.h (wcscat): New declaration.
60051         * lib/wcscat.c: New file.
60052         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
60053         * m4/wcscat.m4: New file.
60054         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
60055         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
60056         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
60057         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
60058         * doc/posix-functions/wcscat.texi: Mention the new module.
60060 2011-02-05  Bruno Haible  <bruno@clisp.org>
60062         New module 'wcpncpy'.
60063         * modules/wcpncpy: New file.
60064         * lib/wchar.in.h (wcpncpy): New declaration.
60065         * lib/wcpncpy.c: New file.
60066         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
60067         * m4/wcpncpy.m4: New file.
60068         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
60069         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
60070         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
60071         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
60072         * doc/posix-functions/wcpncpy.texi: Mention the new module.
60074 2011-02-05  Bruno Haible  <bruno@clisp.org>
60076         New module 'wcsncpy'.
60077         * modules/wcsncpy: New file.
60078         * lib/wchar.in.h (wcsncpy): New declaration.
60079         * lib/wcsncpy.c: New file.
60080         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
60081         * m4/wcsncpy.m4: New file.
60082         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
60083         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
60084         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
60085         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
60086         * doc/posix-functions/wcsncpy.texi: Mention the new module.
60088 2011-02-05  Bruno Haible  <bruno@clisp.org>
60090         New module 'wcpcpy'.
60091         * modules/wcpcpy: New file.
60092         * lib/wchar.in.h (wcpcpy): New declaration.
60093         * lib/wcpcpy.c: New file.
60094         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
60095         * m4/wcpcpy.m4: New file.
60096         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
60097         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
60098         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
60099         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
60100         * doc/posix-functions/wcpcpy.texi: Mention the new module.
60102 2011-02-05  Bruno Haible  <bruno@clisp.org>
60104         New module 'wcscpy'.
60105         * modules/wcscpy: New file.
60106         * lib/wchar.in.h (wcscpy): New declaration.
60107         * lib/wcscpy.c: New file.
60108         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
60109         * m4/wcscpy.m4: New file.
60110         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
60111         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
60112         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
60113         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
60114         * doc/posix-functions/wcscpy.texi: Mention the new module.
60116 2011-02-05  Bruno Haible  <bruno@clisp.org>
60118         New module 'wcsnlen'.
60119         * modules/wcsnlen: New file.
60120         * lib/wchar.in.h (wcsnlen): New declaration.
60121         * lib/wcsnlen.c: New file.
60122         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
60123         * m4/wcsnlen.m4: New file.
60124         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
60125         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
60126         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
60127         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
60128         * doc/posix-functions/wcsnlen.texi: Mention the new module.
60130 2011-02-05  Bruno Haible  <bruno@clisp.org>
60132         New module 'wcslen'.
60133         * modules/wcslen: New file.
60134         * lib/wchar.in.h (wcslen): New declaration.
60135         * lib/wcslen.c: New file.
60136         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
60137         * m4/wcslen.m4: New file.
60138         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
60139         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
60140         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
60141         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
60142         * doc/posix-functions/wcslen.texi: Mention the new module.
60144 2011-02-05  Bruno Haible  <bruno@clisp.org>
60146         New module 'wmemset'.
60147         * modules/wmemset: New file.
60148         * lib/wchar.in.h (wmemset): New declaration.
60149         * lib/wmemset.c: New file.
60150         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
60151         * m4/wmemset.m4: New file.
60152         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
60153         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
60154         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
60155         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
60156         * doc/posix-functions/wmemset.texi: Mention the new module.
60158 2011-02-05  Bruno Haible  <bruno@clisp.org>
60160         New module 'wmemmove'.
60161         * modules/wmemmove: New file.
60162         * lib/wchar.in.h (wmemmove): New declaration.
60163         * lib/wmemmove.c: New file.
60164         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
60165         * m4/wmemmove.m4: New file.
60166         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
60167         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
60168         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
60169         HAVE_WMEMMOVE.
60170         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
60171         * doc/posix-functions/wmemmove.texi: Mention the new module.
60173 2011-02-05  Bruno Haible  <bruno@clisp.org>
60175         New module 'wmemcpy'.
60176         * modules/wmemcpy: New file.
60177         * lib/wchar.in.h (wmemcpy): New declaration.
60178         * lib/wmemcpy.c: New file.
60179         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
60180         * m4/wmemcpy.m4: New file.
60181         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
60182         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
60183         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
60184         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
60185         * doc/posix-functions/wmemcpy.texi: Mention the new module.
60187 2011-02-05  Bruno Haible  <bruno@clisp.org>
60189         New module 'wmemcmp'.
60190         * modules/wmemcmp: New file.
60191         * lib/wchar.in.h (wmemcmp): New declaration.
60192         * lib/wmemcmp.c: New file.
60193         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
60194         * m4/wmemcmp.m4: New file.
60195         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
60196         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
60197         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
60198         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
60199         * doc/posix-functions/wmemcmp.texi: Mention the new module.
60201 2011-02-07  Jim Meyering  <meyering@redhat.com>
60203         di-set, ino-map: new modules, from coreutils
60204         * lib/di-set.c: New file.
60205         * lib/di-set.h: Likewise.
60206         * lib/ino-map.c: Likewise.
60207         * lib/ino-map.h: Likewise.
60208         * modules/di-set: Likewise.
60209         * modules/di-set-tests: Likewise.
60210         * modules/ino-map: Likewise.
60211         * modules/ino-map-tests: Likewise.
60212         * tests/test-di-set.c: Likewise.
60213         * tests/test-ino-map.c: Likewise.
60215 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
60217         getloadavg: merge minor changes from Emacs
60219         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
60220         (getloadavg): Use memset, not bzero.
60222         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
60223         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
60224         clash (bug#86).
60226 2010-11-14  Bruno Haible  <bruno@clisp.org>
60228         Allow multiple gnulib generated replacements to coexist.
60229         * lib/getopt.in.h (struct option): Avoid identical redefinition.
60230         * lib/inttypes.in.h (imaxdiv_t): Likewise.
60231         * lib/langinfo.in.h (nl_item): Likewise.
60232         * lib/math.in.h (_NaN, NAN): Likewise.
60233         * lib/netdb.in.h (struct addrinfo): Likewise.
60234         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
60235         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
60236         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
60237         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
60238         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
60239         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
60240         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
60241         pthread_mutexattr_init, pthread_mutexattr_settype,
60242         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
60243         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
60244         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
60245         pthread_spin_trylock, pthread_spin_unlock): Likewise.
60246         * lib/sched.in.h (struct sched_param): Likewise.
60247         * lib/se-selinux.in.h (security_class_t, security_context_t,
60248         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
60249         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
60250         lsetfilecon, fsetfilecon, security_check_context,
60251         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
60252         Likewise.
60253         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
60254         Likewise.
60255         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
60256         _gl_function_taking_int_returning_void_t, union sigval,
60257         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
60258         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
60259         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
60260         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
60261         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
60262         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
60263         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
60264         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
60265         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
60266         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
60267         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
60268         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
60269         socklen_t, rpl_fd_isset): Likewise.
60270         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
60271         * lib/sys_time.in.h (struct timeval): Likewise.
60272         * lib/sys_times.in.h (struct tms): Likewise.
60273         * lib/sys_utsname.in.h (struct utsname):
60274         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
60275         * lib/unistd.in.h (getpagesize): Likewise.
60276         * lib/wchar.in.h (mbstate_t): Likewise.
60277         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
60278         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
60279         towlower, towupper): Likewise.
60280         Reported by Sam Steingold <sds@gnu.org>.
60282 2011-02-05  Eric Blake  <eblake@redhat.com>
60284         unsetenv: work around Haiku issues
60285         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
60286         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
60288 2010-12-30  Bruce Korb  <bkorb@gnu.org>
60290         libposix: avoid calling error() within libposix
60291         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
60292         is defined.
60294 2011-02-05  Eric Blake  <eblake@redhat.com>
60296         strerror_r-posix: port to cygwin
60297         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
60298         implementation.
60299         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
60300         * tests/test-strerror_r.c (main): Fix test.
60301         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
60302         issue.
60304 2011-02-05  Bruno Haible  <bruno@clisp.org>
60306         New module 'wmemchr'.
60307         * modules/wmemchr: New file.
60308         * lib/wchar.in.h (wmemchr): New declaration.
60309         * lib/wmemchr.c: New file.
60310         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
60311         * m4/wmemchr.m4: New file.
60312         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
60313         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
60314         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
60315         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
60316         * doc/posix-functions/wmemchr.texi: Mention the new module.
60318 2011-02-04  Eric Blake  <eblake@redhat.com>
60320         fdopendir: detect FreeBSD bug
60321         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
60322         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
60324 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
60326         stdbool: do not define HAVE_STDBOOL_H
60327         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
60328         AC_HEADER_STDBOOL.  All uses changed.  Do not define
60329         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
60330         imported from the latest Autoconf git.  It was motivated by Emacs,
60331         which uses gnulib but does not need HAVE_STDBOOL_H.
60333 2011-02-04  Bruno Haible  <bruno@clisp.org>
60335         wcsnrtombs: Prepare for new module wwcsnrtombs.
60336         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
60337         * lib/wcsnrtombs.c: Include it.
60338         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
60340         wcsrtombs: Prepare for new module wwcsrtombs.
60341         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
60342         * lib/wcsrtombs.c: Include it.
60343         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
60345         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
60346         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
60347         * lib/mbsnrtowcs.c: Include it.
60348         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
60350         mbsrtowcs: Prepare for new module mbsrtowwcs.
60351         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
60352         * lib/mbsrtowcs.c: Include it.
60353         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
60355 2011-02-04  Bruno Haible  <bruno@clisp.org>
60357         vasnprintf: Reduce use of malloc for small format strings.
60358         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
60359         (arguments): Add room for the first 7 arguments.
60360         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
60361         (char_directives, u8_directives, u16_directives, u32_directives): Add
60362         room for the first 7 directives.
60363         * lib/printf-parse.c: Include <string.h>.
60364         (PRINTF_PARSE): Change memory handling code so that it uses the first
60365         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
60366         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
60367         Reported by Pádraig Brady <P@draigbrady.com>.
60369 2011-01-31  Eric Blake  <eblake@redhat.com>
60371         dup2: work around Haiku bug
60372         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
60373         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
60374         * doc/posix-functions/dup2.texi (dup2): Document the bug.
60375         * tests/test-dup2.c (main): Enhance test.
60377 2011-01-31  Simon Josefsson  <simon@josefsson.org>
60379         doc: off_t is not available in eglibc 2.11.2 stdio.h.
60380         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
60381         declared by eglibc 2.11.2.
60382         * lib/stdio.in.h: Likewise.
60384 2011-01-31  Eric Blake  <eblake@redhat.com>
60386         ignore-value: add missing test dependency
60387         * tests/test-ignore-value.c: Revert previous change; stdio.h
60388         provides off_t.
60389         * modules/ignore-value-tests (Depends-on): Add missing dependency.
60391 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
60393         mktime: clarify long_int width checking
60394         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
60395         the top level, to make it clearer that the assumption about
60396         long_int width is being checked.  See
60397         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00554.html>.
60399 2011-01-30  Simon Josefsson  <simon@josefsson.org>
60401         ignore-value: Fix self-test.
60402         * tests/test-ignore-value.c: Include sys/types.h for off_t.
60404 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
60406         TYPE_MAXIMUM: avoid theoretically undefined behavior
60407         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
60408         negative number, which the C Standard says has undefined behavior.
60409         In practice this is not a problem, but might as well do it by the book.
60410         Reported by Rich Felker and Eric Blake; see
60411         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00493.html>.
60412         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
60413         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
60414         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
60415         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
60416         * m4/stdint.m4 (gl_STDINT_H): Likewise.
60417         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
60419         mktime: #undef mktime before #defining it
60420         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
60422         mktime: systematically normalize tm_isdst comparisons
60423         * lib/mktime.c (isdst_differ): New function.
60424         (__mktime_internal): Use it systematically for all isdst comparisons.
60425         This completes the fix for libc BZ #6723, and removes the need for
60426         normalizing tm_isdst.  See
60427         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
60428         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
60430         mktime: fix some integer overflow issues and sidestep the rest
60432         This was prompted by a bug report by Benjamin Lindner for MinGW
60433         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00472.html>.
60434         His bug is due to signed integer overflow (0 - INT_MIN), and I
60435         I scanned through mktime.c looking for other integer overflow
60436         problems, fixing all the bugs I found.
60438         Although the C Standard says the resulting code is still not safe
60439         in the presence of integer overflow, in practice it should be good
60440         enough for all real-world two's-complement implementations, except
60441         for debugging environments that deliberately trap on integer
60442         overflow (e.g., gcc -ftrapv).
60444         * lib/mktime.c (WRAPV): New macro.
60445         (SHR): Also check that long_int and time_t shift right in the
60446         usual way, before using the fast-but-unportable method.
60447         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
60448         used.  The code already assumed two's complement, so there's
60449         no need to test for alternatives.  All uses removed.
60450         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
60451         the C standard.  Problem reported by Rich Felker in
60452         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00488.html>.
60453         (twos_complement_arithmetic): Also check long_int and time_t.
60454         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
60455         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
60456         (__mktime_internal): Avoid integer overflow with unary subtraction
60457         in two instances where -1 - X is an adequate replacement for -X,
60458         since the calculations are approximate.
60460 2011-01-29  Eric Blake  <eblake@redhat.com>
60462         mktime: avoid infinite loop
60463         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
60464         type; behavior is still undefined but portable to all known targets.
60465         Reported by Rich Felker.
60467 2011-01-29  Simon Josefsson  <simon@josefsson.org>
60469         rename, unlink, same-inode: Relicense.
60470         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
60471         * modules/unlink (License): Likewise.
60472         * modules/same-inode (License): Likewise.
60474 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
60476         mktime: avoid problems on NetBSD 5 / i386
60477         * lib/mktime.c (long_int): New type.  This works around a problem
60478         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
60479         but time_t is 64 bits, and where I expect the existing code is
60480         wrong in some cases.
60481         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
60482         (ydhms_diff): Bring back the compile-time check for wide-enough
60483         year and yday.
60485         mktime: fix misspelling in comment
60486         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
60487         This merges all recent glibc changes of importance.
60489 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60491         move-if-change: cope with concurrent mv of identical file.
60492         * build-aux/move-if-change (CMPPROG): Accept environment
60493         variable as an override for `cmp'.
60494         (usage): Document CMPPROG.
60495         Adjust comparison to drop stdout.  Cope with failure of mv if
60496         the target file exists and is identical to the source, for
60497         parallel builds.
60498         Report from H.J. Lu against binutils in PR binutils/12283.
60500 2011-01-28  Bruce Korb  <bkorb@gnu.org>
60502         * users.txt: Mention sharutils.
60504 2011-01-28  Simon Josefsson  <simon@josefsson.org>
60506         * users.txt: Mention OATH Toolkit.
60508 2011-01-27  Bruno Haible  <bruno@clisp.org>
60510         Prepare for supporting FreeBSD 10.
60511         * build-aux/config.libpath: Remove handling of freebsd1*.
60513 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
60515         Prepare for supporting FreeBSD 10.
60516         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
60517         match FreeBSD 10.0.
60519 2011-01-27  Bruno Haible  <bruno@clisp.org>
60521         vma-iter, get-rusage-as: Add OpenBSD support.
60522         * modules/vma-iter (configure.ac): Test for mquery.
60523         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
60524         * lib/vma-iter.c: Include <sys/mman.h>.
60525         (vma_iterate): Add an implementation based on mquery().
60526         * lib/resource-ext.h (get_rusage_as): Update comments.
60527         * lib/get-rusage-as.c: Likewise.
60528         * lib/get-rusage-data.c: Likewise.
60530 2011-01-26  Karl Berry  <karl@gnu.org>
60532         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
60533         variables to make it easier to override the makeinfo program used.
60535 2011-01-26  Eric Blake  <eblake@redhat.com>
60537         fcntl: work around Haiku F_DUPFD bugs
60538         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
60539         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
60540         cloexec bit on duplication.
60541         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
60543 2011-01-26  Bruno Haible  <bruno@clisp.org>
60545         Enable memory leak tests on AIX.
60546         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
60547         * tests/test-fprintf-posix3.c (main): Likewise.
60549 2011-01-26  Bruno Haible  <bruno@clisp.org>
60551         Tests for module 'get-rusage-data'.
60552         * modules/get-rusage-data-tests: New file.
60553         * tests/test-get-rusage-data.c: New file.
60555         New module 'get-rusage-data'.
60556         * lib/resource-ext.h (get_rusage_data): New declaration.
60557         * lib/get-rusage-data.c: New file.
60558         * modules/get-rusage-data: New file.
60560 2011-01-25  Bruno Haible  <bruno@clisp.org>
60562         get-rusage-as: Allow for easier testing.
60563         * lib/resource-ext.h (get_rusage_as): Add comment.
60564         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
60565         (main): New function for interactive testing.
60567 2011-01-25  Bruno Haible  <bruno@clisp.org>
60569         vma-iter: Treat Haiku like BeOS.
60570         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
60571         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
60573 2011-01-25  Eric Blake  <eblake@redhat.com>
60575         c-stack: fix regression on cygwin when libsigsegv is present
60576         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
60578 2011-01-24  Bruno Haible  <bruno@clisp.org>
60580         vma-iter: Avoid empty intervals.
60581         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
60582         on an empty interval.
60584 2011-01-24  Jim Meyering  <meyering@redhat.com>
60586         u64: remove unnecessary #include
60587         * lib/u64.h: Don't include <stddef.h>.  It was not used.
60589 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
60591         Allow the user to avoid the HAVE_RAW_DECL_* macros.
60592         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
60594 2011-01-23  Bruno Haible  <bruno@clisp.org>
60596         New module 'vma-iter'.
60597         * lib/vma-iter.h: New file.
60598         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
60599         * modules/vma-iter: New file.
60600         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
60601         for get_rusage_as_via_iterator.
60602         (vma_iterate_callback): New function.
60603         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
60604         * modules/get-rusage-as (Depends-on): Add vma-iter.
60606 2011-01-23  Bruno Haible  <bruno@clisp.org>
60608         uninorm: Tweak includes.
60609         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
60610         Reported by Jim Meyering.
60612 2011-01-23  Bruno Haible  <bruno@clisp.org>
60614         get-rusage-as: Improve on NetBSD.
60615         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
60616         /proc, like on FreeBSD.
60618 2011-01-23  Jim Meyering  <meyering@redhat.com>
60620         xreadlink.h: remove unnecessary #include
60621         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
60623         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
60624         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
60626 2011-01-23  Bruno Haible  <bruno@clisp.org>
60628         get-rusage-as: Fix bug.
60629         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
60630         original limit when aborting the first loop.
60632 2011-01-23  Bruno Haible  <bruno@clisp.org>
60634         wctype: Ensure valid C syntax.
60635         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
60636         unconditionally, instead of gl_NEXT_HEADERS conditionally.
60638 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
60640         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
60641         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
60642         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
60643         as they are needed only for configure's test case.
60644         This removes two unnecessary symbols from config.h.
60646         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
60647         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
60648         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
60649         AC_CHECK_HEADERS_ONCE on a header that we also invoke
60650         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
60651         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
60652         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
60653         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
60654         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
60655         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
60656         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
60657         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
60658         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
60659         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
60660         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
60661         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
60662         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
60663         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
60665 2011-01-21  Eric Blake  <eblake@redhat.com>
60667         maintainer-makefile: work with older git for submodule check
60668         * top/maint.mk (public-submodule-commit): Rewrite to avoid
60669         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
60670         Reported by Matthias Bolte.
60672         bootstrap: minor portability fixes
60673         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
60674         (usage): Omit leading capital and trailing . on help phrases, per
60675         GNU Coding Standards.
60676         (check_versions, top level): Prefix messages with script name.
60678 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
60680         bootstrap: support --no-git option
60681         * build-aux/bootstrap: Add --no-git option, to be used when
60682         --gnulib-srcdir points to the exact desired checkout.
60684 2011-01-21  Eric Blake  <eblake@redhat.com>
60686         strerror_r-posix: work with glibc 2.13
60687         * lib/strerror_r.c (strerror_r): Fix return type.
60689 2011-01-21  Pádraig Brady  <P@draigBrady.com>
60690             Bruno Haible  <bruno@clisp.org>
60692         uN_strstr: New unit tests.
60693         * modules/unistr/u8-strstr-tests: New file.
60694         * modules/unistr/u16-strstr-tests: New file.
60695         * modules/unistr/u32-strstr-tests: New file.
60696         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
60697         * tests/unistr/test-u8-strstr.c: New file.
60698         * tests/unistr/test-u16-strstr.c: New file.
60699         * tests/unistr/test-u32-strstr.c: New file.
60701 2011-01-21  Pádraig Brady  <P@draigBrady.com>
60702             Bruno Haible  <bruno@clisp.org>
60704         Make uN_strstr functions O(n) worst-case.
60705         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
60706         16-bit and 32-bit unit cases, use the unibyte algorithm from
60707         lib/mbsstr.c.
60708         * lib/unistr/u8-strstr.c: Include <string.h>.
60709         (UNIT_IS_UINT8_T): New macro.
60710         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
60711         (U_STRLEN, U_STRNLEN): New macros.
60712         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
60713         (U_STRLEN, U_STRNLEN): New macros.
60714         * modules/unistr/u8-strstr (Depends-on): Add strstr.
60715         (configure.ac): Update required libunistring version.
60716         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
60717         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
60718         malloca.
60719         (configure.ac): Update required libunistring version.
60720         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
60721         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
60722         malloca.
60723         (configure.ac): Update required libunistring version.
60725 2011-01-21  Pádraig Brady  <P@draigBrady.com>
60726             Bruno Haible  <bruno@clisp.org>
60728         Prepare for faster uN_strstr functions.
60729         * lib/str-kmp.h: Support definable UNITs.
60730         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
60731         needle_len argument.
60732         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
60733         * lib/mbscasestr.c (mbscasestr): Likewise.
60735 2011-01-21  Pádraig Brady  <P@draigBrady.com>
60737         malloca-tests: make faster by unsetting MALLOC_PERTURB_
60738         * tests/test-malloca.c (main): Unset the environment variable
60739         to greatly speed up the test.
60740         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
60741         * modules/malloca-tests: Depend on unsetenv.
60743 2011-01-21  Pádraig Brady  <P@draigBrady.com>
60745         ignore-value: remove stdint dependency
60746         * lib/ignore-value.h: Remove <stdint.h>
60747         * modules/ignore-value: Remove stdint dependency.
60749 2011-01-21  Jim Meyering  <meyering@redhat.com>
60751         maint.mk: adjust variable name to be consistent with other gl_ vars
60752         * top/maint.mk (gl_public_submodule_commit): Rename the variable
60753         to be lower case.
60755 2011-01-20  Jim Meyering  <meyering@redhat.com>
60757         maint.mk: make "check" depend on public-submodule-commit by default
60758         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
60760 2011-01-20  Bruno Haible  <bruno@clisp.org>
60762         mbfile, mbiter: Complete change from 2008-12-21.
60763         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
60764         * m4/mbiter.m4 (gl_MBITER): Likewise.
60766 2011-01-20  Jim Meyering  <meyering@redhat.com>
60768         init.sh: insert space between each function name and "()"
60769         * tests/init.sh: Make it a little easier to see that a function's
60770         name is "warn_", and not "warn" when looking at the first part of
60771         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
60773 2011-01-20  Jim Meyering  <meyering@redhat.com>
60775         mountlist: clean up code formatting
60776         * lib/mountlist.c (read_file_system_list): Split a long line,
60777         correct bracing style, use NULL in place of "(struct statfs *)0",
60778         don't parenthesize return value, add spaces around "=" and after
60779         ";-in-for-stmt".
60781 2011-01-14  Markus Duft  <mduft@gentoo.org>
60783         mountlist: add support for Interix
60784         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
60785         Apply statvfs to all entries of /dev/fs.
60786         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
60787         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
60789 2011-01-20  Jim Meyering  <meyering@redhat.com>
60791         maint.mk: improve the public-submodule-commit rule
60792         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
60793         to suppress printing of its commands... unless V=1.
60794         Add git submodule's --quiet option to suppress printing of e.g.,
60795         "Entering gnulib" output.
60796         "cd" into $(srcdir) before running git submodule.
60798 2011-01-20  Bruno Haible  <bruno@clisp.org>
60800         include_next: Fix bug introduced on 2011-01-18.
60801         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
60802         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
60803         ac_cv_header_... variable if the second argument is not 'check'.
60804         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
60805         gl_NEXT_HEADERS_INTERNAL.
60807 2011-01-20  Bruno Haible  <bruno@clisp.org>
60809         Allow the user to avoid the GNULIB_TEST_* macros.
60810         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
60811         Suggested by Paul Eggert.
60813 2011-01-14  Jim Meyering  <meyering@redhat.com>
60815         bootstrap: avoid failure when there is no .gitmodules file
60816         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
60817         has been assigned to, even when its value is the empty string.
60818         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
60819         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
60820         Reported by John W. Eaton <jwe@gnu.org>.
60822 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
60824         assume <ctype.h>, ..., <time.h> exist
60825         For years gnulib has been assuming the existence of the headers
60826         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
60827         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
60828         them, since they don't appear to be needed.
60829         * README (Portability guidelines): Document this.
60830         * lib/flock.c: Assume <fcntl.h> exists.
60831         * lib/regex_internal.h: Assume <locale.h> exists.
60832         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
60833         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
60834         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
60835         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
60836         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
60837         * m4/regex.m4 (gl_REGEX): Likewise.
60838         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
60839         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
60840         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
60841         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
60842         * tests/test-argp.c: Likewise.
60843         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
60845         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
60846         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
60847         AA_APPLE_UNIVERSAL_BUILD.  See
60848         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00247.html>.
60849         * NEWS: Document this.
60851 2011-01-19  Eric Blake  <eblake@redhat.com>
60853         c-stack: assume stack overflow if SA_SIGINFO unsupported
60854         * lib/c-stack.c (SIGACTION_WORKS): Rename...
60855         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
60856         sigaction will work.
60857         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
60858         behavior match Linux.
60859         * tests/test-c-stack.c (main): Prefer NULL for pointers.
60861         stdbool-tests: accommodate Haiku
60862         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
60864         binary-io: fix O_TEXT on Haiku
60865         * modules/binary-io (Depends-on): Add fcntl-h.
60866         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
60867         than blindly undefining O_TEXT.
60868         Reported by Scott McCreary.
60870 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
60872         include_next: do not check for standard headers like stddef.h
60874         I found this problem when modifying Emacs to use gnulib.
60875         I noticed that it added HAVE_STDDEF_H to config.h, even though
60876         gnulib always assumes <stddef.h> exists as per README and this
60877         symbol is unnecessary.
60878         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
60879         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
60880         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
60881         faster for headers like stddef.h that are known to exist.
60882         (gl_CHECK_NEXT_HEADERS): Use it.
60883         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
60884         rather than gl_CHECK_NEXT_HEADERS.
60885         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
60886         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
60888 2011-01-18  Eric Blake  <eblake@redhat.com>
60890         ansi-c++-opt: skip C++ dependency style if C++ is unused
60891         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
60892         tests when we know C++ compilation is not desired.
60893         Reported by Scott McCreary.
60895 2011-01-18  Bruno Haible  <bruno@clisp.org>
60897         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
60898         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
60899         (main): Perform test also when getrlimit and setrlimit don't exist or
60900         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
60901         limiting the address space size using setrlimit, compare the address
60902         space size before and after the test.
60903         * tests/test-dprintf-posix2.c: Likewise.
60904         * tests/test-fprintf-posix3.sh: Update skip messages.
60905         * tests/test-dprintf-posix2.sh: Likewise.
60906         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
60907         * modules/dprintf-posix-tests (Depends-on): Likewise.
60908         Reported by Bruce Korb <bkorb@gnu.org> and
60909         Gary V. Vaughan <gary@gnu.org>.
60911 2011-01-18  Bruno Haible  <bruno@clisp.org>
60913         get-rusage-as: Improvement for Cygwin.
60914         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
60915         areas that are merely reserved.
60917 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
60919         strftime: remove dependencies on multibyte modules
60921         strftime depended on mbrlen, mbsinit, and wchar, but these modules
60922         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
60923         only if __osf__ is defined, and I suspect OSF doesn't need these
60924         other modules.  If my guess is wrong, we'll need to come up with a
60925         variant of strftime that doesn't need the multibyte modules.
60927         I discovered this problem when attempting modify Emacs to use the
60928         strftime module.  With the previous gnulib, this caused Emacs to
60929         need 31 new files, ranging from lib/config.charset to
60930         m4/wint_t.m4.  This was overkill and I expect would be offputting
60931         to the Emacs maintainers.  After this change, only 6 new files are
60932         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
60933         stdbool.m4, and tm_gmtoff.m4.
60935         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
60936         Suggested by Bruno Haible in
60937         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00238.html>.
60938         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
60939         and do not check for wchar.h.
60940         * modules/strftime (Files): Remove m4/mbstate_t.m4.
60941         (Depends-on): Remove mbrlen, mbsinit, wchar.
60943 2011-01-18  Bruno Haible  <bruno@clisp.org>
60945         Tests for module 'get-rusage-as'.
60946         * modules/get-rusage-as-tests: New file.
60947         * tests/test-get-rusage-as.c: New file.
60949         New module 'get-rusage-as'.
60950         * modules/get-rusage-as: New file.
60951         * lib/resource-ext.h: New file.
60952         * lib/get-rusage-as.c: New file.
60954 2011-01-17  Eric Blake  <eblake@redhat.com>
60956         sigaction: relax license from LGPLv3+ to LGPLv2+
60957         * modules/sigaction (License): Relax to LGPLv2+.
60959 2011-01-14  Bruno Haible  <bruno@clisp.org>
60961         filemode: Make function declarations usable in C++ mode.
60962         * lib/filemode.h: Enclose function declarations in extern "C" block.
60963         Reported by John W. Eaton <jwe@gnu.org>.
60965 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
60967         save-cwd: no longer include "xgetcwd.h"
60968         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
60969         This avoids a compilation failure in projects that use save-cwd
60970         without also using the xgetcwd module.
60972 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
60974         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
60975         This is so that a program like Emacs, which needs only dtoastr,
60976         does not have to bother with distributing and compiling ftoastr
60977         and ldtoastr.
60978         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
60979         * modules/dtoastr, modules/ldtoastr: New files.
60980         * modules/ftoastr: Now works just for 'float'.
60981         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
60982         (Makefile.am): Remove ftoastr.h (not needed and no effect),
60983         dtoastr.c, ldtoastr.c.
60985 2011-01-11  Jim Meyering  <meyering@redhat.com>
60987         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
60988         There is no need to work around the lack of the fchdir function,
60989         since gnulib can now provide a replacement when required.
60990         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
60991         * modules/save-cwd (Depends-on): Add fchdir.
60993 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
60995         openat, save-cwd: avoid xmalloc
60997         This removes a direct (but undocumented) dependency of openat on
60998         xalloc, along with an indirect dependency via save-cwd.  It also
60999         removes a dependency of save-cwd on xgetcwd, and thereby
61000         indirectly on xalloc.  This change causes the openat substitute
61001         to fall back on save_cwd when memory is tight, and for save_cwd to
61002         fail instead of dying when memory is tight, but that's good enough.
61003         Problem and initial idea for fix reported by Bastien Roucaries in
61004         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00170.html>.
61006         * lib/openat-proc.c: Include stdlib.h (for malloc), not
61007         xalloc.h (for xmalloc).
61008         (openat_proc_name): Use malloc, not xmalloc.
61009         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
61010         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
61012         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
61013         This avoids heap allocation for file names whose lengths are in
61014         the range 512..1023, with the upper bound increasing to at most
61015         4031 depending on the platform's PATH_MAX.  (We do not want
61016         pathmax.h here as it might supply a non-constant PATH_MAX.)
61017         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
61018         Perhaps they should be moved to malloca.h?
61019         (OPENAT_BUFFER_SIZE): Use them.
61021 2011-01-10  Bruno Haible  <bruno@clisp.org>
61023         doc: Update users.txt.
61024         * users.txt: Add recutils.
61026 2011-01-09  Karl Berry  <karl@gnu.org>
61028         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
61030         * doc/configmake.texi: New file.
61031         * doc/gnulib.texi: Include it.
61032         * modules/configmake: Move documentation from here.
61034 2011-01-09  Bruno Haible  <bruno@clisp.org>
61036         Update to Unicode 6.0.0.
61037         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
61038         (get_lbp): Update for Unicode 6.0.0.
61039         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
61040         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
61041         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
61042         U+11001, U+11038..U+11046. Remove U+06DE.
61043         (uc_width): Fix bounds of planes.
61044         * tests/uniwidth/test-uc_width2.sh: Same updates as in
61045         lib/uniwidth/width.c.
61046         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
61047         trailing whitespace removed.
61048         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
61049         without comments, but with the original copyright notice.
61050         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
61051         * lib/unicase/ignorable.h: Likewise.
61052         * lib/unicase/tocasefold.h: Likewise.
61053         * lib/unicase/tolower.h: Likewise.
61054         * lib/unicase/totitle.h: Likewise.
61055         * lib/unicase/toupper.h: Likewise.
61056         * lib/unictype/bidi_of.h: Likewise.
61057         * lib/unictype/blocks.h: Likewise.
61058         * lib/unictype/categ_C.h: Likewise.
61059         * lib/unictype/categ_Cn.h: Likewise.
61060         * lib/unictype/categ_L.h: Likewise.
61061         * lib/unictype/categ_Ll.h: Likewise.
61062         * lib/unictype/categ_Lm.h: Likewise.
61063         * lib/unictype/categ_Lo.h: Likewise.
61064         * lib/unictype/categ_Lu.h: Likewise.
61065         * lib/unictype/categ_M.h: Likewise.
61066         * lib/unictype/categ_Mc.h: Likewise.
61067         * lib/unictype/categ_Me.h: Likewise.
61068         * lib/unictype/categ_Mn.h: Likewise.
61069         * lib/unictype/categ_N.h: Likewise.
61070         * lib/unictype/categ_Nd.h: Likewise.
61071         * lib/unictype/categ_No.h: Likewise.
61072         * lib/unictype/categ_P.h: Likewise.
61073         * lib/unictype/categ_Po.h: Likewise.
61074         * lib/unictype/categ_S.h: Likewise.
61075         * lib/unictype/categ_Sc.h: Likewise.
61076         * lib/unictype/categ_Sk.h: Likewise.
61077         * lib/unictype/categ_Sm.h: Likewise.
61078         * lib/unictype/categ_So.h: Likewise.
61079         * lib/unictype/categ_of.h: Likewise.
61080         * lib/unictype/combining.h: Likewise.
61081         * lib/unictype/ctype_alnum.h: Likewise.
61082         * lib/unictype/ctype_alpha.h: Likewise.
61083         * lib/unictype/ctype_graph.h: Likewise.
61084         * lib/unictype/ctype_lower.h: Likewise.
61085         * lib/unictype/ctype_print.h: Likewise.
61086         * lib/unictype/ctype_punct.h: Likewise.
61087         * lib/unictype/ctype_upper.h: Likewise.
61088         * lib/unictype/decdigit.h: Likewise.
61089         * lib/unictype/digit.h: Likewise.
61090         * lib/unictype/numeric.h: Likewise.
61091         * lib/unictype/pr_alphabetic.h: Likewise.
61092         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
61093         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
61094         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
61095         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
61096         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
61097         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
61098         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
61099         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
61100         * lib/unictype/pr_case_ignorable.h: Likewise.
61101         * lib/unictype/pr_cased.h: Likewise.
61102         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
61103         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
61104         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
61105         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
61106         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
61107         * lib/unictype/pr_combining.h: Likewise.
61108         * lib/unictype/pr_composite.h: Likewise.
61109         * lib/unictype/pr_currency_symbol.h: Likewise.
61110         * lib/unictype/pr_decimal_digit.h: Likewise.
61111         * lib/unictype/pr_deprecated.h: Likewise.
61112         * lib/unictype/pr_format_control.h: Likewise.
61113         * lib/unictype/pr_grapheme_base.h: Likewise.
61114         * lib/unictype/pr_grapheme_extend.h: Likewise.
61115         * lib/unictype/pr_grapheme_link.h: Likewise.
61116         * lib/unictype/pr_id_continue.h: Likewise.
61117         * lib/unictype/pr_id_start.h: Likewise.
61118         * lib/unictype/pr_ideographic.h: Likewise.
61119         * lib/unictype/pr_lowercase.h: Likewise.
61120         * lib/unictype/pr_math.h: Likewise.
61121         * lib/unictype/pr_numeric.h: Likewise.
61122         * lib/unictype/pr_other_alphabetic.h: Likewise.
61123         * lib/unictype/pr_other_id_continue.h: Likewise.
61124         * lib/unictype/pr_other_math.h: Likewise.
61125         * lib/unictype/pr_punctuation.h: Likewise.
61126         * lib/unictype/pr_sentence_terminal.h: Likewise.
61127         * lib/unictype/pr_terminal_punctuation.h: Likewise.
61128         * lib/unictype/pr_unassigned_code_value.h: Likewise.
61129         * lib/unictype/pr_unified_ideograph.h: Likewise.
61130         * lib/unictype/pr_uppercase.h: Likewise.
61131         * lib/unictype/pr_xid_continue.h: Likewise.
61132         * lib/unictype/pr_xid_start.h: Likewise.
61133         * lib/unictype/scripts.h: Likewise.
61134         * lib/unictype/scripts_byname.gperf: Likewise.
61135         * lib/unictype/sy_java_ident.h: Likewise.
61136         * lib/unigbrk/gbrkprop.h: Likewise.
61137         * lib/unilbrk/lbrkprop1.h: Likewise.
61138         * lib/unilbrk/lbrkprop2.h: Likewise.
61139         * lib/uninorm/decomposition-table2.h: Likewise.
61140         * lib/uniwbrk/wbrkprop.h: Likewise.
61141         * tests/unicase/test-cased.c: Likewise.
61142         * tests/unicase/test-ignorable.c: Likewise.
61143         * tests/unicase/test-uc_tolower.c: Likewise.
61144         * tests/unicase/test-uc_totitle.c: Likewise.
61145         * tests/unicase/test-uc_toupper.c: Likewise.
61146         * tests/unictype/test-categ_C.c: Likewise.
61147         * tests/unictype/test-categ_Cn.c: Likewise.
61148         * tests/unictype/test-categ_L.c: Likewise.
61149         * tests/unictype/test-categ_Ll.c: Likewise.
61150         * tests/unictype/test-categ_Lm.c: Likewise.
61151         * tests/unictype/test-categ_Lo.c: Likewise.
61152         * tests/unictype/test-categ_Lu.c: Likewise.
61153         * tests/unictype/test-categ_M.c: Likewise.
61154         * tests/unictype/test-categ_Mc.c: Likewise.
61155         * tests/unictype/test-categ_Me.c: Likewise.
61156         * tests/unictype/test-categ_Mn.c: Likewise.
61157         * tests/unictype/test-categ_N.c: Likewise.
61158         * tests/unictype/test-categ_Nd.c: Likewise.
61159         * tests/unictype/test-categ_No.c: Likewise.
61160         * tests/unictype/test-categ_P.c: Likewise.
61161         * tests/unictype/test-categ_Po.c: Likewise.
61162         * tests/unictype/test-categ_S.c: Likewise.
61163         * tests/unictype/test-categ_Sc.c: Likewise.
61164         * tests/unictype/test-categ_Sk.c: Likewise.
61165         * tests/unictype/test-categ_Sm.c: Likewise.
61166         * tests/unictype/test-categ_So.c: Likewise.
61167         * tests/unictype/test-ctype_alnum.c: Likewise.
61168         * tests/unictype/test-ctype_alpha.c: Likewise.
61169         * tests/unictype/test-ctype_graph.c: Likewise.
61170         * tests/unictype/test-ctype_lower.c: Likewise.
61171         * tests/unictype/test-ctype_print.c: Likewise.
61172         * tests/unictype/test-ctype_punct.c: Likewise.
61173         * tests/unictype/test-ctype_upper.c: Likewise.
61174         * tests/unictype/test-decdigit.h: Likewise.
61175         * tests/unictype/test-digit.h: Likewise.
61176         * tests/unictype/test-numeric.h: Likewise.
61177         * tests/unictype/test-pr_alphabetic.c: Likewise.
61178         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
61179         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
61180         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
61181         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
61182         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
61183         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
61184         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
61185         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
61186         * tests/unictype/test-pr_case_ignorable.c: Likewise.
61187         * tests/unictype/test-pr_cased.c: Likewise.
61188         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
61189         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
61190         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
61191         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
61192         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
61193         * tests/unictype/test-pr_combining.c: Likewise.
61194         * tests/unictype/test-pr_composite.c: Likewise.
61195         * tests/unictype/test-pr_currency_symbol.c: Likewise.
61196         * tests/unictype/test-pr_decimal_digit.c: Likewise.
61197         * tests/unictype/test-pr_deprecated.c: Likewise.
61198         * tests/unictype/test-pr_format_control.c: Likewise.
61199         * tests/unictype/test-pr_grapheme_base.c: Likewise.
61200         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
61201         * tests/unictype/test-pr_grapheme_link.c: Likewise.
61202         * tests/unictype/test-pr_id_continue.c: Likewise.
61203         * tests/unictype/test-pr_id_start.c: Likewise.
61204         * tests/unictype/test-pr_ideographic.c: Likewise.
61205         * tests/unictype/test-pr_lowercase.c: Likewise.
61206         * tests/unictype/test-pr_math.c: Likewise.
61207         * tests/unictype/test-pr_numeric.c: Likewise.
61208         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
61209         * tests/unictype/test-pr_other_id_continue.c: Likewise.
61210         * tests/unictype/test-pr_other_math.c: Likewise.
61211         * tests/unictype/test-pr_punctuation.c: Likewise.
61212         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
61213         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
61214         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
61215         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
61216         * tests/unictype/test-pr_uppercase.c: Likewise.
61217         * tests/unictype/test-pr_xid_continue.c: Likewise.
61218         * tests/unictype/test-pr_xid_start.c: Likewise.
61219         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
61220         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
61221         changes.
61222         * lib/unictype/categ_Cc.h: Likewise.
61223         * lib/unictype/categ_Cf.h: Likewise.
61224         * lib/unictype/categ_Co.h: Likewise.
61225         * lib/unictype/categ_Cs.h: Likewise.
61226         * lib/unictype/categ_Lt.h: Likewise.
61227         * lib/unictype/categ_Nl.h: Likewise.
61228         * lib/unictype/categ_Pc.h: Likewise.
61229         * lib/unictype/categ_Pd.h: Likewise.
61230         * lib/unictype/categ_Pe.h: Likewise.
61231         * lib/unictype/categ_Pf.h: Likewise.
61232         * lib/unictype/categ_Pi.h: Likewise.
61233         * lib/unictype/categ_Ps.h: Likewise.
61234         * lib/unictype/categ_Z.h: Likewise.
61235         * lib/unictype/categ_Zl.h: Likewise.
61236         * lib/unictype/categ_Zp.h: Likewise.
61237         * lib/unictype/categ_Zs.h: Likewise.
61238         * lib/unictype/ctype_blank.h: Likewise.
61239         * lib/unictype/ctype_cntrl.h: Likewise.
61240         * lib/unictype/ctype_digit.h: Likewise.
61241         * lib/unictype/ctype_space.h: Likewise.
61242         * lib/unictype/ctype_xdigit.h: Likewise.
61243         * lib/unictype/mirror.h: Likewise.
61244         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
61245         * lib/unictype/pr_bidi_block_separator.h: Likewise.
61246         * lib/unictype/pr_bidi_common_separator.h: Likewise.
61247         * lib/unictype/pr_bidi_control.h: Likewise.
61248         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
61249         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
61250         * lib/unictype/pr_bidi_european_digit.h: Likewise.
61251         * lib/unictype/pr_bidi_pdf.h: Likewise.
61252         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
61253         * lib/unictype/pr_bidi_whitespace.h: Likewise.
61254         * lib/unictype/pr_dash.h: Likewise.
61255         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
61256         * lib/unictype/pr_diacritic.h: Likewise.
61257         * lib/unictype/pr_extender.h: Likewise.
61258         * lib/unictype/pr_hex_digit.h: Likewise.
61259         * lib/unictype/pr_hyphen.h: Likewise.
61260         * lib/unictype/pr_ids_binary_operator.h: Likewise.
61261         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
61262         * lib/unictype/pr_ignorable_control.h: Likewise.
61263         * lib/unictype/pr_iso_control.h: Likewise.
61264         * lib/unictype/pr_join_control.h: Likewise.
61265         * lib/unictype/pr_left_of_pair.h: Likewise.
61266         * lib/unictype/pr_line_separator.h: Likewise.
61267         * lib/unictype/pr_logical_order_exception.h: Likewise.
61268         * lib/unictype/pr_non_break.h: Likewise.
61269         * lib/unictype/pr_not_a_character.h: Likewise.
61270         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
61271         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
61272         * lib/unictype/pr_other_id_start.h: Likewise.
61273         * lib/unictype/pr_other_lowercase.h: Likewise.
61274         * lib/unictype/pr_other_uppercase.h: Likewise.
61275         * lib/unictype/pr_paired_punctuation.h: Likewise.
61276         * lib/unictype/pr_paragraph_separator.h: Likewise.
61277         * lib/unictype/pr_pattern_syntax.h: Likewise.
61278         * lib/unictype/pr_pattern_white_space.h: Likewise.
61279         * lib/unictype/pr_private_use.h: Likewise.
61280         * lib/unictype/pr_quotation_mark.h: Likewise.
61281         * lib/unictype/pr_radical.h: Likewise.
61282         * lib/unictype/pr_soft_dotted.h: Likewise.
61283         * lib/unictype/pr_space.h: Likewise.
61284         * lib/unictype/pr_titlecase.h: Likewise.
61285         * lib/unictype/pr_variation_selector.h: Likewise.
61286         * lib/unictype/pr_white_space.h: Likewise.
61287         * lib/unictype/pr_zero_width.h: Likewise.
61288         * lib/unictype/sy_c_ident.h: Likewise.
61289         * lib/unictype/sy_c_whitespace.h: Likewise.
61290         * lib/unictype/sy_java_whitespace.h: Likewise.
61291         * lib/uninorm/composition-table.gperf: Likewise.
61292         * lib/uninorm/decomposition-table1.h: Likewise.
61293         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
61294         LB8.
61295         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
61296         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
61297         * modules/unictype/*: Bump version number of expected libunistring
61298         version.
61300 2011-01-09  Bruno Haible  <bruno@clisp.org>
61302         Update to Unicode 5.2.0.
61303         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
61304         trailing whitespace removed.
61306 2011-01-09  Bruno Haible  <bruno@clisp.org>
61308         New Unicode character properties, from Unicode 5.2.0.
61309         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
61310         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
61311         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
61312         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
61313         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
61314         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
61315         uc_is_property_cased, uc_is_property_case_ignorable,
61316         uc_is_property_changes_when_lowercased,
61317         uc_is_property_changes_when_uppercased,
61318         uc_is_property_changes_when_titlecased,
61319         uc_is_property_changes_when_casefolded,
61320         uc_is_property_changes_when_casemapped): New declarations.
61321         * lib/unictype/pr_byname.gperf: Add the new properties.
61322         * modules/unictype/property-byname (Depends-on): Depend on the new
61323         properties modules.
61324         * modules/unictype/property-all (Depends-on): Likewise.
61325         * MODULES.html.sh (Unicode string functions): Add
61326         unictype/property-case-ignorable, unictype/property-cased,
61327         unictype/property-changes-when-casefolded,
61328         unictype/property-changes-when-casemapped,
61329         unictype/property-changes-when-lowercased,
61330         unictype/property-changes-when-titlecased,
61331         unictype/property-changes-when-uppercased.
61333         New module 'unictype/property-changes-when-casemapped'.
61334         * modules/unictype/property-changes-when-casemapped: New file.
61335         * lib/unictype/pr_changes_when_casemapped.c: New file.
61336         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
61337         generated by gen-uni-tables.
61338         * modules/unictype/property-changes-when-casemapped-tests: New file.
61339         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
61340         automatically generated by gen-uni-tables.
61342         New module 'unictype/property-changes-when-casefolded'.
61343         * modules/unictype/property-changes-when-casefolded: New file.
61344         * lib/unictype/pr_changes_when_casefolded.c: New file.
61345         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
61346         generated by gen-uni-tables.
61347         * modules/unictype/property-changes-when-casefolded-tests: New file.
61348         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
61349         automatically generated by gen-uni-tables.
61351         New module 'unictype/property-changes-when-titlecased'.
61352         * modules/unictype/property-changes-when-titlecased: New file.
61353         * lib/unictype/pr_changes_when_titlecased.c: New file.
61354         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
61355         generated by gen-uni-tables.
61356         * modules/unictype/property-changes-when-titlecased-tests: New file.
61357         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
61358         automatically generated by gen-uni-tables.
61360         New module 'unictype/property-changes-when-uppercased'.
61361         * modules/unictype/property-changes-when-uppercased: New file.
61362         * lib/unictype/pr_changes_when_uppercased.c: New file.
61363         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
61364         generated by gen-uni-tables.
61365         * modules/unictype/property-changes-when-uppercased-tests: New file.
61366         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
61367         automatically generated by gen-uni-tables.
61369         New module 'unictype/property-changes-when-lowercased'.
61370         * modules/unictype/property-changes-when-lowercased: New file.
61371         * lib/unictype/pr_changes_when_lowercased.c: New file.
61372         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
61373         generated by gen-uni-tables.
61374         * modules/unictype/property-changes-when-lowercased-tests: New file.
61375         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
61376         automatically generated by gen-uni-tables.
61378         New module 'unictype/property-case-ignorable'.
61379         * modules/unictype/property-case-ignorable: New file.
61380         * lib/unictype/pr_case_ignorable.c: New file.
61381         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
61382         by gen-uni-tables.
61383         * modules/unictype/property-case-ignorable-tests: New file.
61384         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
61385         generated by gen-uni-tables.
61387         New module 'unictype/property-cased'.
61388         * modules/unictype/property-cased: New file.
61389         * lib/unictype/pr_cased.c: New file.
61390         * lib/unictype/pr_cased.h: New file, automatically generated by
61391         gen-uni-tables.
61392         * modules/unictype/property-cased-tests: New file.
61393         * tests/unictype/test-pr_cased.c: New file, automatically generated by
61394         gen-uni-tables.
61396 2011-01-09  Bruno Haible  <bruno@clisp.org>
61398         Update to Unicode 5.2.0.
61399         * lib/gen-uni-tables.c (output_predicate, output_category,
61400         output_combclass, output_bidi_category, output_decimal_digit_test,
61401         output_decimal_digit, output_digit_test, output_digit,
61402         output_numeric_test, output_numeric, output_mirror, output_scripts,
61403         output_scripts_byname, output_blocks, output_ident_category): Fix
61404         comment header.
61405         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
61406         get_wbp.
61407         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
61408         items.
61409         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
61410         Changes_When_Lowercased, Changes_When_Uppercased,
61411         Changes_When_Titlecased, Changes_When_Casefolded,
61412         Changes_When_Casemapped.
61413         (is_property_alphabetic, is_property_default_ignorable_code_point):
61414         Update for Unicode 5.2.0.
61415         (is_property_cased, is_property_case_ignorable,
61416         is_property_changes_when_lowercased,
61417         is_property_changes_when_uppercased,
61418         is_property_changes_when_titlecased,
61419         is_property_changes_when_casefolded,
61420         is_property_changes_when_casemapped): New functions.
61421         (output_properties): Output also the properties cased, case_ignorable,
61422         changes_when_lowercased, changes_when_uppercased,
61423         changes_when_titlecased, changes_when_casefolded,
61424         changes_when_casemapped.
61425         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
61426         Unicode TR#11 revision 17 -> 19.
61427         (LBP_CP): New enumeration value.
61428         (LBP_*): Adjust values accordingly.
61429         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
61430         TR#14 revision 22 -> 24.
61431         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
61432         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
61433         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
61434         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
61435         is_WBP_MIDLETTER.
61436         (output_composition_tables): Allow for 24 bits instead of 16 bits in
61437         the code1 and code2 of each composition rule.
61438         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
61439         * lib/unicase/ignorable.h: Likewise.
61440         * lib/unicase/tocasefold.h: Likewise.
61441         * lib/unicase/tolower.h: Likewise.
61442         * lib/unicase/totitle.h: Likewise.
61443         * lib/unicase/toupper.h: Likewise.
61444         * lib/unictype/bidi_of.h: Likewise.
61445         * lib/unictype/blocks.h: Likewise.
61446         * lib/unictype/categ_C.h: Likewise.
61447         * lib/unictype/categ_Cf.h: Likewise.
61448         * lib/unictype/categ_Cn.h: Likewise.
61449         * lib/unictype/categ_L.h: Likewise.
61450         * lib/unictype/categ_Ll.h: Likewise.
61451         * lib/unictype/categ_Lm.h: Likewise.
61452         * lib/unictype/categ_Lo.h: Likewise.
61453         * lib/unictype/categ_Lu.h: Likewise.
61454         * lib/unictype/categ_M.h: Likewise.
61455         * lib/unictype/categ_Mc.h: Likewise.
61456         * lib/unictype/categ_Mn.h: Likewise.
61457         * lib/unictype/categ_N.h: Likewise.
61458         * lib/unictype/categ_Nd.h: Likewise.
61459         * lib/unictype/categ_Nl.h: Likewise.
61460         * lib/unictype/categ_No.h: Likewise.
61461         * lib/unictype/categ_P.h: Likewise.
61462         * lib/unictype/categ_Pd.h: Likewise.
61463         * lib/unictype/categ_Po.h: Likewise.
61464         * lib/unictype/categ_S.h: Likewise.
61465         * lib/unictype/categ_Sc.h: Likewise.
61466         * lib/unictype/categ_So.h: Likewise.
61467         * lib/unictype/categ_of.h: Likewise.
61468         * lib/unictype/combining.h: Likewise.
61469         * lib/unictype/ctype_alnum.h: Likewise.
61470         * lib/unictype/ctype_alpha.h: Likewise.
61471         * lib/unictype/ctype_graph.h: Likewise.
61472         * lib/unictype/ctype_lower.h: Likewise.
61473         * lib/unictype/ctype_print.h: Likewise.
61474         * lib/unictype/ctype_punct.h: Likewise.
61475         * lib/unictype/ctype_upper.h: Likewise.
61476         * lib/unictype/decdigit.h: Likewise.
61477         * lib/unictype/digit.h: Likewise.
61478         * lib/unictype/numeric.h: Likewise.
61479         * lib/unictype/pr_alphabetic.h: Likewise.
61480         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
61481         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
61482         * lib/unictype/pr_bidi_european_digit.h: Likewise.
61483         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
61484         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
61485         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
61486         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
61487         * lib/unictype/pr_combining.h: Likewise.
61488         * lib/unictype/pr_composite.h: Likewise.
61489         * lib/unictype/pr_currency_symbol.h: Likewise.
61490         * lib/unictype/pr_dash.h: Likewise.
61491         * lib/unictype/pr_decimal_digit.h: Likewise.
61492         * lib/unictype/pr_deprecated.h: Likewise.
61493         * lib/unictype/pr_diacritic.h: Likewise.
61494         * lib/unictype/pr_extender.h: Likewise.
61495         * lib/unictype/pr_grapheme_base.h: Likewise.
61496         * lib/unictype/pr_grapheme_extend.h: Likewise.
61497         * lib/unictype/pr_grapheme_link.h: Likewise.
61498         * lib/unictype/pr_id_continue.h: Likewise.
61499         * lib/unictype/pr_id_start.h: Likewise.
61500         * lib/unictype/pr_ideographic.h: Likewise.
61501         * lib/unictype/pr_ignorable_control.h: Likewise.
61502         * lib/unictype/pr_logical_order_exception.h: Likewise.
61503         * lib/unictype/pr_lowercase.h: Likewise.
61504         * lib/unictype/pr_numeric.h: Likewise.
61505         * lib/unictype/pr_other_alphabetic.h: Likewise.
61506         * lib/unictype/pr_punctuation.h: Likewise.
61507         * lib/unictype/pr_sentence_terminal.h: Likewise.
61508         * lib/unictype/pr_terminal_punctuation.h: Likewise.
61509         * lib/unictype/pr_unassigned_code_value.h: Likewise.
61510         * lib/unictype/pr_unified_ideograph.h: Likewise.
61511         * lib/unictype/pr_uppercase.h: Likewise.
61512         * lib/unictype/pr_xid_continue.h: Likewise.
61513         * lib/unictype/pr_xid_start.h: Likewise.
61514         * lib/unictype/pr_zero_width.h: Likewise.
61515         * lib/unictype/scripts.h: Likewise.
61516         * lib/unictype/scripts_byname.gperf: Likewise.
61517         * lib/unictype/sy_java_ident.h: Likewise.
61518         * lib/unigbrk/gbrkprop.h: Likewise.
61519         * lib/unilbrk/lbrkprop1.h: Likewise.
61520         * lib/unilbrk/lbrkprop2.h: Likewise.
61521         * lib/unilbrk/lbrktables.h: Likewise.
61522         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
61523         LBP_CP. Implement rule LB30.
61524         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
61525         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
61526         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
61527         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
61528         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
61529         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
61530         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
61531         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
61532         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
61533         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
61534         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
61535         bits instead of 16 bits in the code1 and code2 of each composition
61536         rule.
61537         (uc_composition): Update for Unicode 5.2.0.
61538         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
61539         * lib/uninorm/decomposition-table2.h: Likewise.
61540         * lib/uniwbrk/wbrkprop.h: Likewise.
61541         * tests/unicase/test-cased.c: Likewise.
61542         * tests/unicase/test-ignorable.c: Likewise.
61543         * tests/unicase/test-uc_tolower.c: Likewise.
61544         * tests/unicase/test-uc_totitle.c: Likewise.
61545         * tests/unicase/test-uc_toupper.c: Likewise.
61546         * tests/unictype/test-categ_C.c: Likewise.
61547         * tests/unictype/test-categ_Cf.c: Likewise.
61548         * tests/unictype/test-categ_Cn.c: Likewise.
61549         * tests/unictype/test-categ_L.c: Likewise.
61550         * tests/unictype/test-categ_Ll.c: Likewise.
61551         * tests/unictype/test-categ_Lm.c: Likewise.
61552         * tests/unictype/test-categ_Lo.c: Likewise.
61553         * tests/unictype/test-categ_Lu.c: Likewise.
61554         * tests/unictype/test-categ_M.c: Likewise.
61555         * tests/unictype/test-categ_Mc.c: Likewise.
61556         * tests/unictype/test-categ_Mn.c: Likewise.
61557         * tests/unictype/test-categ_N.c: Likewise.
61558         * tests/unictype/test-categ_Nd.c: Likewise.
61559         * tests/unictype/test-categ_Nl.c: Likewise.
61560         * tests/unictype/test-categ_No.c: Likewise.
61561         * tests/unictype/test-categ_P.c: Likewise.
61562         * tests/unictype/test-categ_Pd.c: Likewise.
61563         * tests/unictype/test-categ_Po.c: Likewise.
61564         * tests/unictype/test-categ_S.c: Likewise.
61565         * tests/unictype/test-categ_Sc.c: Likewise.
61566         * tests/unictype/test-categ_So.c: Likewise.
61567         * tests/unictype/test-ctype_alnum.c: Likewise.
61568         * tests/unictype/test-ctype_alpha.c: Likewise.
61569         * tests/unictype/test-ctype_graph.c: Likewise.
61570         * tests/unictype/test-ctype_lower.c: Likewise.
61571         * tests/unictype/test-ctype_print.c: Likewise.
61572         * tests/unictype/test-ctype_punct.c: Likewise.
61573         * tests/unictype/test-ctype_upper.c: Likewise.
61574         * tests/unictype/test-decdigit.h: Likewise.
61575         * tests/unictype/test-digit.h: Likewise.
61576         * tests/unictype/test-numeric.h: Likewise.
61577         * tests/unictype/test-pr_alphabetic.c: Likewise.
61578         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
61579         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
61580         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
61581         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
61582         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
61583         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
61584         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
61585         * tests/unictype/test-pr_combining.c: Likewise.
61586         * tests/unictype/test-pr_composite.c: Likewise.
61587         * tests/unictype/test-pr_currency_symbol.c: Likewise.
61588         * tests/unictype/test-pr_dash.c: Likewise.
61589         * tests/unictype/test-pr_decimal_digit.c: Likewise.
61590         * tests/unictype/test-pr_deprecated.c: Likewise.
61591         * tests/unictype/test-pr_diacritic.c: Likewise.
61592         * tests/unictype/test-pr_extender.c: Likewise.
61593         * tests/unictype/test-pr_grapheme_base.c: Likewise.
61594         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
61595         * tests/unictype/test-pr_grapheme_link.c: Likewise.
61596         * tests/unictype/test-pr_id_continue.c: Likewise.
61597         * tests/unictype/test-pr_id_start.c: Likewise.
61598         * tests/unictype/test-pr_ideographic.c: Likewise.
61599         * tests/unictype/test-pr_ignorable_control.c: Likewise.
61600         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
61601         * tests/unictype/test-pr_lowercase.c: Likewise.
61602         * tests/unictype/test-pr_numeric.c: Likewise.
61603         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
61604         * tests/unictype/test-pr_punctuation.c: Likewise.
61605         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
61606         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
61607         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
61608         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
61609         * tests/unictype/test-pr_uppercase.c: Likewise.
61610         * tests/unictype/test-pr_xid_continue.c: Likewise.
61611         * tests/unictype/test-pr_xid_start.c: Likewise.
61612         * tests/unictype/test-pr_zero_width.c: Likewise.
61613         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
61614         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
61615         changed behaviour: line breaking is now disallowed between a letter
61616         or '=' and '('.
61617         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
61618         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
61619         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
61620         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
61621         * tests/uniwidth/test-uc_width2.sh: Same updates as in
61622         lib/uniwidth/width.c.
61623         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
61624         without comments, but with the original copyright notice.
61625         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
61626         changes.
61627         * lib/unictype/categ_Cc.h: Likewise.
61628         * lib/unictype/categ_Co.h: Likewise.
61629         * lib/unictype/categ_Cs.h: Likewise.
61630         * lib/unictype/categ_Lt.h: Likewise.
61631         * lib/unictype/categ_Me.h: Likewise.
61632         * lib/unictype/categ_Pc.h: Likewise.
61633         * lib/unictype/categ_Pe.h: Likewise.
61634         * lib/unictype/categ_Pf.h: Likewise.
61635         * lib/unictype/categ_Pi.h: Likewise.
61636         * lib/unictype/categ_Ps.h: Likewise.
61637         * lib/unictype/categ_Sk.h: Likewise.
61638         * lib/unictype/categ_Sm.h: Likewise.
61639         * lib/unictype/categ_Z.h: Likewise.
61640         * lib/unictype/categ_Zl.h: Likewise.
61641         * lib/unictype/categ_Zp.h: Likewise.
61642         * lib/unictype/categ_Zs.h: Likewise.
61643         * lib/unictype/ctype_blank.h: Likewise.
61644         * lib/unictype/ctype_cntrl.h: Likewise.
61645         * lib/unictype/ctype_digit.h: Likewise.
61646         * lib/unictype/ctype_space.h: Likewise.
61647         * lib/unictype/ctype_xdigit.h: Likewise.
61648         * lib/unictype/mirror.h: Likewise.
61649         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
61650         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
61651         * lib/unictype/pr_bidi_block_separator.h: Likewise.
61652         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
61653         * lib/unictype/pr_bidi_common_separator.h: Likewise.
61654         * lib/unictype/pr_bidi_control.h: Likewise.
61655         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
61656         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
61657         * lib/unictype/pr_bidi_pdf.h: Likewise.
61658         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
61659         * lib/unictype/pr_bidi_whitespace.h: Likewise.
61660         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
61661         * lib/unictype/pr_format_control.h: Likewise.
61662         * lib/unictype/pr_hex_digit.h: Likewise.
61663         * lib/unictype/pr_hyphen.h: Likewise.
61664         * lib/unictype/pr_ids_binary_operator.h: Likewise.
61665         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
61666         * lib/unictype/pr_iso_control.h: Likewise.
61667         * lib/unictype/pr_join_control.h: Likewise.
61668         * lib/unictype/pr_left_of_pair.h: Likewise.
61669         * lib/unictype/pr_line_separator.h: Likewise.
61670         * lib/unictype/pr_math.h: Likewise.
61671         * lib/unictype/pr_non_break.h: Likewise.
61672         * lib/unictype/pr_not_a_character.h: Likewise.
61673         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
61674         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
61675         * lib/unictype/pr_other_id_continue.h: Likewise.
61676         * lib/unictype/pr_other_id_start.h: Likewise.
61677         * lib/unictype/pr_other_lowercase.h: Likewise.
61678         * lib/unictype/pr_other_math.h: Likewise.
61679         * lib/unictype/pr_other_uppercase.h: Likewise.
61680         * lib/unictype/pr_paired_punctuation.h: Likewise.
61681         * lib/unictype/pr_paragraph_separator.h: Likewise.
61682         * lib/unictype/pr_pattern_syntax.h: Likewise.
61683         * lib/unictype/pr_pattern_white_space.h: Likewise.
61684         * lib/unictype/pr_private_use.h: Likewise.
61685         * lib/unictype/pr_quotation_mark.h: Likewise.
61686         * lib/unictype/pr_radical.h: Likewise.
61687         * lib/unictype/pr_soft_dotted.h: Likewise.
61688         * lib/unictype/pr_space.h: Likewise.
61689         * lib/unictype/pr_titlecase.h: Likewise.
61690         * lib/unictype/pr_variation_selector.h: Likewise.
61691         * lib/unictype/pr_white_space.h: Likewise.
61692         * lib/unictype/sy_c_ident.h: Likewise.
61693         * lib/unictype/sy_c_whitespace.h: Likewise.
61694         * lib/unictype/sy_java_whitespace.h: Likewise.
61695         * modules/uni*/*: Bump version number of expected libunistring version.
61696         Reported by Simon Josefsson.
61698 2011-01-09  Karl Heuer  <kwzh@gnu.org>
61700         useless-if-before-free: fix typo in --help and make the internal,
61701         automatic version date update process work once again.
61702         --help output contained a NUL character instead of the
61703         backslash-zero that was intended.  Also, the "must lie within
61704         the first 8 lines" line is on line 9, and hence not getting
61705         automatically updated.
61706         * build-aux/useless-if-before-free: Fix the former by adding a
61707         backslash, and the latter by condensing the three lines of what-it-does
61708         to a single line, leaving one line of slack for the future.
61710 2011-01-09  Bruno Haible  <bruno@clisp.org>
61712         uniwidth/width: Fix width of U+1D173..U+1D17A.
61713         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
61714         symbolic_width, output_width_property_test): New functions.
61715         (main): Invoke output_nonspacing_property, output_width_property_test.
61716         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
61717         U+1D173..U+1D17A.
61718         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
61719         1.
61720         * modules/uniwidth/*: Bump version number of expected libunistring
61721         version.
61722         * modules/unilbrk/*: Likewise.
61724 2011-01-08  Bruno Haible  <bruno@clisp.org>
61726         uninorm tests: Preserve copyright of Unicode data file.
61727         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
61728         Mention modifications.
61730 2011-01-08  Bruno Haible  <bruno@clisp.org>
61732         gen-uni-tables: Prepare for Unicode 5.2.0.
61733         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
61734         (debug_output_lbp, output_lbp): Update.
61736 2011-01-08  Bruno Haible  <bruno@clisp.org>
61738         unilbrk: Clarify gen-uni-tables.c code.
61739         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
61740         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
61741         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
61743 2011-01-07  Bruno Haible  <bruno@clisp.org>
61745         strtod: Restore errno when successfully parsing Infinity or NaN.
61746         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
61747         restore the original errno.
61749 2011-01-07  Bruno Haible  <bruno@clisp.org>
61751         remove test: Avoid failure on HP-UX 11.
61752         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
61754 2011-01-07  Bruno Haible  <bruno@clisp.org>
61756         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
61757         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
61758         error code.
61760 2011-01-07  Pádraig Brady  <P@draigBrady.com>
61762         ignore-value: fixup comments, and add Eric Blake
61763         as an author since he rewrote the macros.
61764         * lib/ignore-value.h (ignore_value):  State that
61765         we now support aggregates.  Also specify exactly
61766         when the GCC warn_unused_result feature was added.
61768 2011-01-06  Eric Blake  <eblake@redhat.com>
61770         ignore-value: support aggregate types
61771         * lib/ignore-value.h (ignore_value): Provide separate gcc
61772         definition.
61773         * modules/ignore-value-tests: New test module.
61774         * tests/test-ignore-value.c: New test.
61776         maint.mk: improve sc_prohibit_strcmp regex
61777         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
61778         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
61779         definition of STRNEQ.
61781         signal: work around Haiku issue with SIGBUS
61782         * lib/siglist.h: Add comment.
61783         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
61784         strsignal's favoring of SIGSEGV.
61785         * tests/test-signal.c (main): Avoid test failure.
61786         * doc/posix-headers/signal.texi (signal.h): Document the issue.
61787         Reported by Scott McCreary.
61789         maint.mk: add pre-release check to ensure submodule commits are public
61790         * top/maint.mk (public-submodule-commit): New rule.
61791         (submodule-checks): New variable.
61792         (alpha beta stable): Depend on the variable.
61794 2011-01-05  Pádraig Brady  <P@draigBrady.com>
61795         and Jim Meyering  <meyering@redhat.com>
61797         ignore-value: make ignore_value more generic; deprecate ignore_ptr
61798         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
61799         (ATTRIBUTE_DEPRECATED): Define.
61800         (_ignore_case): New function.
61801         (ignore_value): New macro, to replace the old function.
61802         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
61803         * modules/ignore-value (Depends-on): Add stdint.
61805 2011-01-04  Eric Blake  <eblake@redhat.com>
61807         doc: regenerate INSTALL
61808         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
61809         @firstparagraphindent support, now that autoconf dropped it.
61810         (INSTALL_PRELUDE): Reinstate old macro.
61811         * doc/install.texi: Resync from autoconf.
61812         * doc/INSTALL: Reflect recent autoconf update.
61813         * doc/INSTALL.ISO: Likewise.
61814         * doc/INSTALL.UTF-8: Likewise.
61815         Reported by Karl Berry.
61817 2011-01-04  Bruce Korb  <address@hidden>
61819         git-version-gen: avoid a sub-shell
61820         * build-aux/git-version-gen: Redirect stderr in `...` via
61821         "exec 2>...", rather than via an added sub-shell.
61823 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
61825         git-version-gen: use (...) rather than sh -c '...'
61826         * build-aux/git-version-gen: Rather than hard-coding a shell's name
61827         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
61829 2011-01-03  Jim Meyering  <meyering@redhat.com>
61831         git-version-gen: convert leading TABs to spaces
61832         * build-aux/git-version-gen: Expand leading TABs.
61834         git-version-gen: handle failed "git rev-list"
61835         * build-aux/git-version-gen: Rather than leaking a "fatal" error
61836         from git and proceeding as if it had succeeded but printed no SHA1
61837         checksums, suppress the diagnostic and handle the failure.
61838         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
61840         git-version-gen: include command name in one more diagnostic
61841         * build-aux/git-version-gen: When the required .tarball-version file
61842         was missing or unreadable, you might see the diagnostic from "cat",
61843         but no trace of the name of the invoking script.  Now, you still see
61844         the diagnostic from cat, but also get one from "git-version-gen: ".
61845         Inspired by a patch from Bruce Korb.
61847         update-copyright: adjust test to match changed code
61848         * tests/test-update-copyright.sh: Change test's expected output
61849         to match new actual output.
61851 2011-01-02  Bruno Haible  <bruno@clisp.org>
61853         getlogin_r: Avoid test failure on HP-UX 11.
61854         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
61855         ERANGE when the second argument is zero.
61856         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
61857         portability problem.
61859 2011-01-02  Bruce Korb  <bkorb@gnu.org>
61861         * build-aux/update-copyright: doc Simon's changes
61863 2011-01-02  Simon Josefsson  <simon@josefsson.org>
61865         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
61866         environment variable.
61868 2011-01-02  Bruno Haible  <bruno@clisp.org>
61870         unigbrk: Avoid gcc warnings.
61871         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
61872         unused variable.
61873         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
61874         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
61875         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
61876         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
61877         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
61878         Change type of first argument to 'const char *'.
61879         (main): Remove unused variable.
61880         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
61881         type of first argument to 'const char *'.
61882         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
61883         Likewise.
61884         (main): Change type of variable 's'.
61885         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
61886         to 'int'.
61888 2011-01-02  Bruno Haible  <bruno@clisp.org>
61890         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
61891         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
61892         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
61893         bug.
61894         * lib/pwrite.c: Undo 2010-12-31 patch.
61895         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
61897 2011-01-02  Bruno Haible  <bruno@clisp.org>
61899         pread: Fix test whether it works.
61900         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
61902 2011-01-02  Bruno Haible  <bruno@clisp.org>
61904         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
61905         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
61906         ends in "6". Don't require a specific month name. Try also the locale
61907         names found on HP-UX 11 and Solaris 7.
61909 2011-01-02  Bruno Haible  <bruno@clisp.org>
61911         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
61912         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
61913         C linkage.
61914         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
61916 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
61918         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
61919         for consistency, since the "cluster" term is not used elsewhere.
61920         * lib/unigbrk.in.h: Update name.
61921         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
61922         * lib/unigbrk/u16-grapheme-next.c: Update name.
61923         * lib/unigbrk/u16-grapheme-prev.c: Update name.
61924         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
61925         * lib/unigbrk/u32-grapheme-next.c: Update name.
61926         * lib/unigbrk/u32-grapheme-prev.c: Update name.
61927         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
61928         * lib/unigbrk/u8-grapheme-next.c: Update name.
61929         * lib/unigbrk/u8-grapheme-prev.c: Update name.
61930         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
61931         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
61932         Suggested by Bruno Haible.
61934 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
61936         Remove module 'u8-grapheme-len' as too redundant with
61937         'u8-grapheme-next'.
61938         * modules/unigbrk/u8-grapheme-len: Delete file.
61939         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
61940         * lib/unigbrk.in.h: Remove prototype for deleted function.
61941         * lib/unigbrk/u8-grapheme-len.c: Delete file.
61942         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
61944         Remove module 'u16-grapheme-len' as too redundant with
61945         'u16-grapheme-next'.
61946         * modules/unigbrk/u16-grapheme-len: Delete file.
61947         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
61948         * lib/unigbrk.in.h: Remove prototype for deleted function.
61949         * lib/unigbrk/u16-grapheme-len.c: Delete file.
61950         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
61952         Remove module 'u32-grapheme-len' as too redundant with
61953         'u32-grapheme-next'.
61954         * modules/unigbrk/u32-grapheme-len: Delete file.
61955         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
61956         * lib/unigbrk.in.h: Remove prototype for deleted function.
61957         * lib/unigbrk/u32-grapheme-len.c: Delete file.
61958         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
61960         Suggested by Bruno Haible.
61962 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
61964         * unigbrk.in.h: Fix typo: "ben" => "been".
61965         Reported by Bruno Haible.
61967 2011-01-01  Jim Meyering  <meyering@redhat.com>
61969         maint: update almost all copyright ranges to include 2011
61970         Run the new "make update-copyright" rule.
61972 2011-01-01  Jim Meyering  <meyering@redhat.com>
61974         maint: update-copyright: exempt doc/INSTALL*
61975         * Makefile (update-copyright): Also exclude doc/INSTALL*,
61976         since they are generated.  Suggested by Bruno Haible.
61978 2011-01-01  Jim Meyering  <meyering@redhat.com>
61980         maint: refine the update-copyright rule
61981         * Makefile (update-copyright): Also exclude any file that includes
61982         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
61983         code that merely generates the comment.
61985 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
61987         New module 'u8-grapheme-len'.
61988         * modules/unigbrk/u8-grapheme-len: New file.
61989         * modules/unigbrk/u8-grapheme-len-tests: New file.
61990         * lib/unigbrk.in.h: Add prototype for new function.
61991         * lib/unigbrk/u8-grapheme-len.c: New file.
61992         * tests/unigbrk/test-u8-grapheme-len.c: New file.
61994         New module 'u16-grapheme-len'.
61995         * modules/unigbrk/u16-grapheme-len: New file.
61996         * modules/unigbrk/u16-grapheme-len-tests: New file.
61997         * lib/unigbrk.in.h: Add prototype for new function.
61998         * lib/unigbrk/u16-grapheme-len.c: New file.
61999         * tests/unigbrk/test-u16-grapheme-len.c: New file.
62001         New module 'u32-grapheme-len'.
62002         * modules/unigbrk/u32-grapheme-len: New file.
62003         * modules/unigbrk/u32-grapheme-len-tests: New file.
62004         * lib/unigbrk.in.h: Add prototype for new function.
62005         * lib/unigbrk/u32-grapheme-len.c: New file.
62006         * tests/unigbrk/test-u32-grapheme-len.c: New file.
62008         New module 'u8-grapheme-next'.
62009         * modules/unigbrk/u8-grapheme-next: New file.
62010         * modules/unigbrk/u8-grapheme-next-tests: New file.
62011         * lib/unigbrk.in.h: Add prototype for new function.
62012         * lib/unigbrk/u8-grapheme-next.c: New file.
62013         * tests/unigbrk/test-u8-grapheme-next.c: New file.
62015         New module 'u16-grapheme-next'.
62016         * modules/unigbrk/u16-grapheme-next: New file.
62017         * modules/unigbrk/u16-grapheme-next-tests: New file.
62018         * lib/unigbrk.in.h: Add prototype for new function.
62019         * lib/unigbrk/u16-grapheme-next.c: New file.
62020         * tests/unigbrk/test-u16-grapheme-next.c: New file.
62022         New module 'u32-grapheme-next'.
62023         * modules/unigbrk/u32-grapheme-next: New file.
62024         * modules/unigbrk/u32-grapheme-next-tests: New file.
62025         * lib/unigbrk.in.h: Add prototype for new function.
62026         * lib/unigbrk/u32-grapheme-next.c: New file.
62027         * tests/unigbrk/test-u32-grapheme-next.c: New file.
62029         New module 'u8-grapheme-prev'.
62030         * modules/unigbrk/u8-grapheme-prev: New file.
62031         * modules/unigbrk/u8-grapheme-prev-tests: New file.
62032         * lib/unigbrk.in.h: Add prototype for new function.
62033         * lib/unigbrk/u8-grapheme-prev.c: New file.
62034         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
62036         New module 'u16-grapheme-prev'.
62037         * modules/unigbrk/u16-grapheme-prev: New file.
62038         * modules/unigbrk/u16-grapheme-prev-tests: New file.
62039         * lib/unigbrk.in.h: Add prototype for new function.
62040         * lib/unigbrk/u16-grapheme-prev.c: New file.
62041         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
62043         New module 'u32-grapheme-prev'.
62044         * modules/unigbrk/u32-grapheme-prev: New file.
62045         * modules/unigbrk/u32-grapheme-prev-tests: New file.
62046         * lib/unigbrk.in.h: Add prototype for new function.
62047         * lib/unigbrk/u32-grapheme-prev.c: New file.
62048         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
62050         New module 'u8-grapheme-breaks'.
62051         * modules/unigbrk/u8-grapheme-breaks: New file.
62052         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
62053         * lib/unigbrk.in.h: Add prototype for new function.
62054         * lib/unigbrk/u8-grapheme-breaks.c: New file.
62055         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
62057         New module 'u16-grapheme-breaks'.
62058         * modules/unigbrk/u16-grapheme-breaks: New file.
62059         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
62060         * lib/unigbrk.in.h: Add prototype for new function.
62061         * lib/unigbrk/u16-grapheme-breaks.c: New file.
62062         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
62064         New module 'u32-grapheme-breaks'.
62065         * modules/unigbrk/u32-grapheme-breaks: New file.
62066         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
62067         * lib/unigbrk.in.h: Add prototype for new function.
62068         * lib/unigbrk/u32-grapheme-breaks.c: New file.
62069         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
62071         New module 'ulc-grapheme-breaks'.
62072         * modules/unigbrk/ulc-grapheme-breaks: New file.
62073         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
62074         * m4/locale-ar.m4: New file.
62075         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
62076         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
62077         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
62079 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
62081         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
62082         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
62083         modified how this file was generated before I initially submitted
62084         the module, but failed to regenerate it.  This meant that several
62085         of the level2 entries were wrong.
62086         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
62087         Remove the division-by-2 that is folded into the table now that
62088         gbrkprop.h has been regenerated properly.  Now -1 entries are
62089         handled correctly.
62091         New module 'unigbrk/uc-gbrk-prop-tests'.
62092         * modules/unigbrk/uc-gbrk-prop-tests: New file.
62093         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
62094         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
62095         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
62097 2011-01-01  Bruno Haible  <bruno@clisp.org>
62099         Avoid use of hexadecimal escapes.
62100         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
62101         instead of hexadecimal escapes.
62103 2011-01-01  Jim Meyering  <meyering@redhat.com>
62105         maint: new rule to update copyright year ranges
62106         * Makefile (update-copyright): New rule.
62108         maint: indent with TABs in Makefile
62109         * Makefile: Expand leading sequences of spaces to TABs
62111         version-etc: update the copyright year it reports
62112         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
62114 2010-12-31  Bruno Haible  <bruno@clisp.org>
62116         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
62117         * lib/isfinite.c (zerof, zerod, zerol): New variables.
62118         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
62119         zero.
62121 2010-12-31  Bruno Haible  <bruno@clisp.org>
62123         pwrite: Work around HP-UX 11.11 bug.
62124         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
62125         works and set REPLACE_PWRITE if not.
62126         * lib/pwrite.c (pwrite): Add an implementation that uses the system
62127         function.
62128         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
62130 2010-12-31  Bruno Haible  <bruno@clisp.org>
62132         pread: Work around HP-UX 11 bugs.
62133         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
62134         and set REPLACE_PREAD if not.
62135         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
62137 2010-12-31  Eric Blake  <eblake@redhat.com>
62139         nl_langinfo: fix YESEXPR on Irix 6.5
62140         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
62141         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
62142         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
62143         it.
62145 2010-12-31  Bruno Haible  <bruno@clisp.org>
62147         iconv: Document HP-UX 11 bug.
62148         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
62150 2010-12-31  Bruno Haible  <bruno@clisp.org>
62152         ldexpl: Fix link error on HP-UX 11.
62153         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
62154         LDEXPL_LIBM, using $ISNANL_LIBM.
62156 2010-12-31  Eric Blake  <eblake@redhat.com>
62158         ftello: avoid compilation failure with SunStudio c89
62159         * lib/ftello.c (ftello): Use lseek, not llseek.
62161         tests: avoid failing coreutils tests on cygwin
62162         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
62163         (create_exe_shims_): Return 0 when skipping.
62165 2010-12-31  Bruno Haible  <bruno@clisp.org>
62167         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
62168         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
62170 2010-12-31  Bruno Haible  <bruno@clisp.org>
62172         waitpid: Fix link error in C++ mode.
62173         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
62175 2010-12-31  Bruno Haible  <bruno@clisp.org>
62177         isnan: Use GCC built-ins when possible.
62178         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
62179         __builtin_isnan.
62180         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
62181         (isnan): Define using GCC built-ins for GCC >= 4.0.
62183 2010-12-31  Bruno Haible  <bruno@clisp.org>
62185         isnand: Fix mistake.
62186         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
62187         __builtin_isnand.
62189 2010-12-31  Bruno Haible  <bruno@clisp.org>
62191         open: Avoid C++ error on HP-UX 11.
62192         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
62194 2010-12-31  Bruno Haible  <bruno@clisp.org>
62196         time_r: Add missing declarations on HP-UX 11.
62197         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
62198         instead of HAVE_LOCALTIME_R.
62199         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
62200         HAVE_LOCALTIME_R always.
62201         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
62202         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
62203         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
62204         HAVE_LOCALTIME_R.
62205         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
62206         * doc/posix-functions/localtime_r.texi: Likewise.
62208 2010-12-29  Eric Blake  <eblake@redhat.com>
62210         mountlist: tweak previous commit
62211         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
62212         Reported by Paul Eggert.
62214         mountlist: fix local drive detection on cygwin
62215         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
62216         that works for cygwin.
62218 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
62220         ftoastr, snprintf: ftoastr + snprintf module
62221         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
62222         since the snprintf module now should be good enough here.
62223         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
62224         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
62225         and gl_MODULE_INDICATOR([snprintf]), but the former enables
62226         GNULIB_SNPRINTF only for the test directory, and the latter
62227         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
62228         seems to suffice by itself.
62230 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
62232         alloca: one step towards thread-safety
62233         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
62234         need for a static variable.  All callers changed.  This does not
62235         make the alloca replacement thread-safe, but it's one step.
62237         tests: minor indenting change
62238         * tests/init.sh: Sync from coreutils housekeeping patch
62239         <http://lists.gnu.org/r/coreutils/2010-12/msg00116.html>
62240         to keep lines within 80 columns.
62242 2010-12-28  Jim Meyering  <meyering@redhat.com>
62244         regex: don't infloop on persistent failing calloc
62245         * lib/regexec.c (build_trtable): Return failure indication upon
62246         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
62247         In glibc, this was fixed for version 2.13:
62248         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
62250 2010-12-28  Bruno Haible  <bruno@clisp.org>
62251             Paul Eggert <eggert@cs.ucla.edu>
62253         linkat: Make implementation robust against system behaviour variations.
62254         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
62255         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
62256         way, and to -2 if it needs a generic runtime test.
62257         * lib/linkat.c (solaris_optimized_link_immediate,
62258         solaris_optimized_link_follow): New functions.
62259         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
62260         (check_same_link): Use it.
62262 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
62264         New module 'unigbrk/base'.
62265         * modules/unigbrk/base: New file.
62266         * lib/unigbrk.in.h: New file.
62268         New module 'unigbrk/uc-gbrk-prop'.
62269         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
62270         * modules/unigbrk/uc-gbrk-prop: New file.
62271         * lib/unigbrk/gbrkprop.h: New file.
62272         * lib/unigbrk/uc-gbrk-prop.c: New file.
62274         New module 'unigbrk/uc-is-grapheme-break'.
62275         * modules/unigbrk/uc-is-grapheme-break: New file.
62276         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
62277         * lib/unigbrk/uc-is-grapheme-break.c: New file.
62278         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
62279         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
62280         * tests/unigbrk/GraphemeBreakTest.txt: New file.
62282         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
62284 2010-12-27  Bruno Haible  <bruno@clisp.org>
62286         linkat test: Avoid failure on Solaris 11 2010-11.
62287         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
62289 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
62291         utimens: work around glibc rounding bug on more platforms
62292         * lib/utimens.c (fdutimens): Work around rounding bug even if
62293         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
62294         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00298.html>.
62296 2010-12-27  Bruno Haible  <bruno@clisp.org>
62298         select tests: Improve comments.
62299         * tests/test-select.c (do_select): Add comments.
62301 2010-12-27  Bruno Haible  <bruno@clisp.org>
62303         select tests: Safer way of handling timeout.
62304         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
62305         at every invocation.
62307 2010-12-27  Bruno Haible  <bruno@clisp.org>
62309         select tests: Use 'bool' where appropriate.
62310         * tests/test-select.c (connect_to_socket): Change argument type to
62311         'bool'.
62313 2010-12-27  Bruno Haible  <bruno@clisp.org>
62315         select tests: Use existing modules.
62316         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
62317         (configure.ac): Don't test for unistd.h.
62318         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
62319         declared in <unistd.h>.
62321 2010-12-27  Bruno Haible  <bruno@clisp.org>
62323         mbrtowc: Work around a Solaris 7 bug.
62324         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
62325         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
62326         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
62327         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
62328         MBRTOWC_NULL_ARG1_BUG.
62329         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
62330         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
62331         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
62332         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
62334 2010-12-27  Jim Meyering  <meyering@redhat.com>
62336         read-file.c: tweak syntax
62337         * lib/read-file.c (fread_file): Remove space after "*" in function
62338         definitions.
62340 2010-12-27  Bruno Haible  <bruno@clisp.org>
62342         times test: Avoid gcc warnings on OSF/1.
62343         * tests/test-times.c (main): Cast printf arguments from clock_t to
62344         'long int'.
62346 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
62348         utimens: work around glibc rounding bug on older Linux kernels
62349         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
62350         on Linux with a glibc whose utimes might not work, then work
62351         around a longstanding glibc bug involving rounding rather than
62352         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
62353         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
62355 2010-12-26  Bruno Haible  <bruno@clisp.org>
62357         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
62358         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
62359         _GL_CXXALIAS_SYS.
62360         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
62362 2010-12-26  Bruno Haible  <bruno@clisp.org>
62364         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
62365         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
62366         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
62367         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
62368         looking for the declaration.
62369         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
62370         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
62371         problem.
62372         * doc/posix-functions/inet_pton.texi: Likewise.
62374 2010-12-26  Bruno Haible  <bruno@clisp.org>
62376         arpa_inet: Use the common idioms with C++ support.
62377         * lib/arpa_inet.in.h: Include c++defs.h.
62378         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
62379         support.
62380         * modules/arpa_inet (Depends-on): Add c++defs.
62381         (Makefile.am): Substitute the contents of c++defs.h.
62382         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
62383         * modules/arpa_inet-c++-tests: New file.
62384         * tests/test-arpa_inet-c++.cc: New file.
62386 2010-12-25  Bruno Haible  <bruno@clisp.org>
62388         Fix more C++ link errors on Solaris 8.
62389         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
62390         $(LIB_EACCESS).
62391         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
62392         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
62393         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
62394         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
62395         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
62397 2010-12-25  Bruno Haible  <bruno@clisp.org>
62399         printf-posix: Fix link error when a non-GCC compiler is used.
62400         * lib/stdio.in.h (printf): When not using GCC, override printf
62401         correctly.
62402         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
62404 2010-12-25  Bruno Haible  <bruno@clisp.org>
62406         strerror_r-posix: Update doc.
62407         * doc/posix-functions/strerror_r.texi: Update doc about the return
62408         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
62410 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
62412         utimens: simplify the logic of the previous change
62413         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
62414         This should not affect whether the test succeeds or fails.
62416         utimens: configure better on hosts with NFS clock skew
62417         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
62418         uses the clock of the local host.  It might use the clock of the
62419         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
62420         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
62422 2010-12-25  Bruno Haible  <bruno@clisp.org>
62424         ptsname test: Avoid failure on Solaris.
62425         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
62426         open a pseudo-terminal; don't use BSD-style ptys.
62427         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
62429 2010-12-25  Bruno Haible  <bruno@clisp.org>
62431         ptsname: Avoid ERANGE failure on some systems.
62432         * lib/ptsname.c (buffer): Increase size.
62434 2010-12-25  Bruno Haible  <bruno@clisp.org>
62436         rename, renameat: Avoid test failures at NFS mounted locations.
62437         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
62438         so that subsequent mkdir calls succeed.
62440 2010-12-25  Bruno Haible  <bruno@clisp.org>
62442         iswblank: Fix C++ link error on Solaris 8.
62443         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
62444         _GL_FUNCDECL_SYS.
62446 2010-12-25  Bruno Haible  <bruno@clisp.org>
62448         unistd: Fix C++ link error on Solaris 8.
62449         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
62451 2010-12-25  Bruno Haible  <bruno@clisp.org>
62453         readlink doc: Mention an old glibc bug.
62454         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
62456 2010-12-25  Bruno Haible  <bruno@clisp.org>
62458         fcntl-h: Fix for use of C++ on glibc systems.
62459         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
62460         also on glibc systems in C++ mode.
62461         Reported by Gary V. Vaughan <gary@gnu.org>.
62463 2010-12-25  Bruno Haible  <bruno@clisp.org>
62465         roundl-ieee: Make it work on OSF/1 5.1 with cc.
62466         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
62468 2010-12-25  Bruno Haible  <bruno@clisp.org>
62470         truncl-ieee: Make it work on OSF/1 5.1 with cc.
62471         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
62472         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
62473         test whether truncl works according to ISO C 99 with IEC 60559.
62474         * m4/truncl-ieee.m4: New file.
62475         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
62476         m4/signbit.m4.
62477         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
62479 2010-12-25  Bruno Haible  <bruno@clisp.org>
62481         ceill-ieee: Make it work on OSF/1 5.1 with cc.
62482         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
62483         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
62484         test whether ceill works according to ISO C 99 with IEC 60559.
62485         * m4/ceill-ieee.m4: New file.
62486         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
62487         m4/signbit.m4.
62488         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
62490 2010-12-25  Bruno Haible  <bruno@clisp.org>
62492         Ensure all prerequisites of <wchar.h> are included.
62493         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
62494         before <wchar.h>.
62495         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
62496         gl_MBRLEN_NUL_RETVAL): Likewise.
62497         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
62498         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
62499         AC_FUNC_MBRTOWC): Likewise.
62500         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
62501         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
62502         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
62503         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
62504         Likewise.
62505         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
62506         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
62507         (gl_WCHAR_H): Improve comments.
62508         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
62510 2010-12-25  Bruno Haible  <bruno@clisp.org>
62512         strtok_r: Fix C syntax error in autoconf macro.
62513         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
62514         characters in test program.
62516 2010-12-24  Bruno Haible  <bruno@clisp.org>
62518         ceil, trunc, round: Fix gcc warnings.
62519         * lib/ceil.c (MIN): Undefine before redefining.
62520         * lib/trunc.c (MIN): Likewise.
62521         * lib/round.c (MIN): Likewise.
62522         Include <math.h> first.
62524 2010-12-24  Bruno Haible  <bruno@clisp.org>
62526         select tests: Avoid failures on OSF/1 5.1.
62527         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
62528         failure of closing the last socket; it may fail with ECONNRESET.
62530 2010-12-24  Eric Blake  <eblake@redhat.com>
62532         stdint: avoid HP-UX 10.20 preprocessor bug
62533         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
62534         than #if.
62535         * tests/test-floor2.c (main): Likewise.
62536         Reported by Peter O'Gorman.
62538         pipe: make obsoletion transition easier
62539         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
62540         * modules/pipe (Files): Include revived file.
62541         (Include): Drop reference, to mirror getdate's behavior.
62543 2010-12-24  Bruno Haible  <bruno@clisp.org>
62545         sys_socket: Hide mismatch of declarations on NonStop Kernel.
62546         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
62547         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
62548         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
62550 2010-12-24  Bruno Haible  <bruno@clisp.org>
62552         gethostname: Ensure declaration on NonStop Kernel.
62553         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
62554         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
62556 2010-12-24  Bruno Haible  <bruno@clisp.org>
62558         sys_select: Ensure all necessary types on NonStop Kernel.
62559         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
62560         include <sys/time.h>.
62561         * doc/posix-headers/sys_select.texi: Mention that it's missing on
62562         NonStop Kernel.
62563         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
62565 2010-12-24  Bruno Haible  <bruno@clisp.org>
62567         sys_select: Remove unneeded include.
62568         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
62569         have <sys/select.h>.
62571 2010-12-24  Bruno Haible  <bruno@clisp.org>
62573         gethostname: Provide a fallback for HOST_NAME_MAX.
62574         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
62575         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
62576         instead.
62577         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
62579 2010-12-24  Bruno Haible  <bruno@clisp.org>
62581         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
62582         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
62583         (SA_RESTART): Likewise.
62584         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
62586 2010-12-24  Bruno Haible  <bruno@clisp.org>
62588         signal: Define NSIG.
62589         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
62590         * tests/test-signal.c (nsig): New variable.
62591         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
62593 2010-12-24  Bruno Haible  <bruno@clisp.org>
62595         rename, renameat: Avoid test failures on OSF/1 5.1.
62596         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
62597         alternative error codes.
62598         * tests/test-renameat.c (main): Likewise.
62600 2010-12-24  Bruno Haible  <bruno@clisp.org>
62602         *printf: Detect large precisions bug on Solaris 10/SPARC.
62603         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
62604         by Paul Eggert.
62605         * tests/test-snprintf-posix.h (test_function): Add this test code here
62606         too.
62607         * tests/test-sprintf-posix.h (test_function): Likewise.
62608         * tests/test-vasnprintf-posix.c (test_function): Likewise.
62609         * tests/test-vasprintf-posix.c (test_function): Likewise.
62610         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
62611         around by gnulib.
62612         * doc/posix-functions/printf.texi: Likewise.
62613         * doc/posix-functions/snprintf.texi: Likewise.
62614         * doc/posix-functions/sprintf.texi: Likewise.
62615         * doc/posix-functions/vfprintf.texi: Likewise.
62616         * doc/posix-functions/vprintf.texi: Likewise.
62617         * doc/posix-functions/vsnprintf.texi: Likewise.
62618         * doc/posix-functions/vsprintf.texi: Likewise.
62619         * doc/posix-functions/dprintf.texi: Undo last commit.
62620         * doc/posix-functions/vdprintf.texi: Likewise.
62622 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
62624         tests: port test-fdutimensat.c to Solaris 8
62625         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
62626         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
62627         On Solaris 8, it fails with errno == ENOSYS, because there is no
62628         futimens (so it can't use the fd), and there is no lutimens (so it
62629         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
62631         vsnprintf: make more consistent with snprintf; doc fixes
62633         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
62634         the byte count return problem was promoted from the snprintf-posix
62635         to the snprintf module.
62636         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
62637         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
62638         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
62639         * tests/test-snprintf.c (main): Check the byte count returned.
62640         * tests/test-vsnprintf.c (main): Likewise.
62642 2010-12-23  Eric Blake  <eblake@redhat.com>
62644         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
62645         * modules/sigpipe (License): Relax license.
62647 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
62649         doc: document Solaris printf bug with large float precisions
62650         * doc/posix-functions/dprintf.texi (dprintf):
62651         * doc/posix-functions/fprintf.texi (fprintf):
62652         * doc/posix-functions/printf.texi (printf):
62653         * doc/posix-functions/snprintf.texi (snprintf):
62654         * doc/posix-functions/sprintf.texi (sprintf):
62655         * doc/posix-functions/vdprintf.texi (vdprintf):
62656         * doc/posix-functions/vfprintf.texi (vfprintf):
62657         * doc/posix-functions/vprintf.texi (vprintf):
62658         * doc/posix-functions/vsnprintf.texi (vsnprintf):
62659         * doc/posix-functions/vsprintf.texi (vsprintf):
62660         Mention that these functions mishandle large floating point
62661         precisions on Solaris 10.  The same bug is also present in Solaris
62662         8, and I assume earlier.  This causes "cd gnulib-tests; make
62663         check" to fail on Solaris 8 (and I assume, later) when building
62664         the latest coreutils, in test-vasprintf-posix's call to
62665         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
62666         the wide flavors (e.g., wprintf) so this patch just updates the
62667         documentation for the narrow ones.
62669         test-posixtm.c: add two tests
62670         * tests/test-posixtm.c: Add two tests, to highlight the
62671         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
62672         around this bug; this is merely to document it.
62674 2010-12-22  Bruno Haible  <bruno@clisp.org>
62676         getlogin_r: Work around portability problem on OSF/1.
62677         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
62678         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
62679         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
62680         test for a truncated result.
62681         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
62682         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
62683         * modules/getlogin_r (Depends-on): Add memchr.
62684         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
62686 2010-12-22  Bruno Haible  <bruno@clisp.org>
62688         ptsname: Avoid test failure on OSF/1 5.1.
62689         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
62690         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
62691         (same_slave): New function.
62692         (main): Use it to compare ptsname's result with the expected file name.
62694 2010-12-22  Bruno Haible  <bruno@clisp.org>
62696         Port extended stdio modules to HP NonStop Kernel.
62697         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
62698         macros.
62699         * lib/fbufmode.c: Update comments.
62700         * lib/fflush.c: Likewise.
62701         * lib/fpurge.c: Likewise.
62702         * lib/freadable.c: Likewise.
62703         * lib/freadahead.c: Likewise.
62704         * lib/freading.c: Likewise.
62705         * lib/freadptr.c: Likewise.
62706         * lib/freadseek.c: Likewise.
62707         * lib/fseeko.c: Likewise.
62708         * lib/fseterr.c: Likewise.
62709         * lib/fwritable.c: Likewise.
62710         * lib/fwriting.c: Likewise.
62711         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
62713 2010-12-22  Bruno Haible  <bruno@clisp.org>
62715         ttyname_r: Work around bug on OSF/1 5.1.
62716         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
62717         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
62718         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
62719         present.
62720         * lib/ttyname_r.c (ttyname_r): Update comments.
62722 2010-12-22  Bruno Haible  <bruno@clisp.org>
62724         round: Implement result sign according to IEEE 754.
62725         * lib/round.c (MIN, MINUS_ZERO): New macros.
62726         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
62727         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
62728         * tests/test-round-ieee.c (main): Likewise.
62729         * tests/test-roundl-ieee.c (main): Likewise.
62731         trunc: Implement result sign according to IEEE 754.
62732         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
62733         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
62734         * tests/test-trunc2.c: Include minus-zero.h.
62735         (MINUS_ZERO): New macro.
62736         (trunc_reference): Keep in sync with lib/trunc.c.
62737         * tests/test-truncf2.c: Include minus-zero.h.
62738         (MINUS_ZERO): New macro.
62739         (truncf_reference): Keep in sync with lib/trunc.c.
62740         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
62741         * tests/test-trunc-ieee.c (main): Likewise.
62742         * tests/test-truncl-ieee.c (main): Likewise.
62744         ceil: Implement result sign according to IEEE 754.
62745         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
62746         (FUNC): Return -0.0 for -1 < x < 0.
62747         * tests/test-ceil2.c: Include minus-zero.h.
62748         (MINUS_ZERO): New macro.
62749         (ceil_reference): Keep in sync with lib/ceil.c.
62750         * tests/test-ceilf2.c: Include minus-zero.h.
62751         (MINUS_ZERO): New macro.
62752         (ceilf_reference): Keep in sync with lib/ceil.c.
62753         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
62754         * tests/test-ceil-ieee.c (main): Likewise.
62755         * tests/test-ceill-ieee.c (main): Likewise.
62757         floor: Implement result sign according to IEEE 754.
62758         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
62759         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
62760         * tests/test-floorf2.c (floorf_reference): Likewise.
62761         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
62762         * tests/test-floor-ieee.c (main): Likewise.
62763         * tests/test-floorl-ieee.c (main): Likewise.
62765 2010-12-22  Bruno Haible  <bruno@clisp.org>
62767         getaddrinfo: Update doc.
62768         * doc/posix-functions/gai_strerror.texi: Return type is also different
62769         on AIX and HP-UX.
62771 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
62773         getaddrinfo, inet_ntop: Update doc for Solaris.
62774         * doc/posix-functions/gai_strerror.texi: Return type is also an
62775         issue on Solaris 9 and earlier.
62776         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
62777         on Solaris 10 and earlier.
62779 2010-12-21  Bruno Haible  <bruno@clisp.org>
62781         New module 'roundl-ieee'.
62782         * modules/roundl-ieee: New file.
62783         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
62784         test whether roundl works according to ISO C 99 with IEC 60559.
62785         * m4/roundl-ieee.m4: New file.
62786         * modules/roundl-ieee-tests: New file.
62787         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
62788         * tests/test-roundl.c (main): Remove signbit tests.
62789         * modules/roundl-tests (Depends-on): Remove signbit.
62790         * doc/posix-functions/roundl.texi: Mention the new module.
62792 2010-12-21  Bruno Haible  <bruno@clisp.org>
62794         New module 'truncl-ieee'.
62795         * modules/truncl-ieee: New file.
62796         * modules/truncl-ieee-tests: New file.
62797         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
62798         * tests/test-truncl.c (main): Remove signbit tests.
62799         * modules/truncl-tests (Depends-on): Remove signbit.
62800         * doc/posix-functions/truncl.texi: Mention the new module.
62802 2010-12-21  Bruno Haible  <bruno@clisp.org>
62804         New module 'ceill-ieee'.
62805         * modules/ceill-ieee: New file.
62806         * modules/ceill-ieee-tests: New file.
62807         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
62808         * tests/test-ceill.c (main): Remove signbit tests.
62809         * modules/ceill-tests (Depends-on): Remove signbit.
62810         * doc/posix-functions/ceill.texi: Mention the new module.
62812 2010-12-21  Bruno Haible  <bruno@clisp.org>
62814         New module 'floorl-ieee'.
62815         * modules/floorl-ieee: New file.
62816         * modules/floorl-ieee-tests: New file.
62817         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
62818         * tests/test-floorl.c (main): Remove signbit tests.
62819         * modules/floorl-tests (Depends-on): Remove signbit.
62820         * doc/posix-functions/floorl.texi: Mention the new module.
62822 2010-12-21  Bruno Haible  <bruno@clisp.org>
62824         New module 'round-ieee'.
62825         * modules/round-ieee: New file.
62826         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
62827         whether round works according to ISO C 99 with IEC 60559.
62828         * m4/round-ieee.m4: New file.
62829         * modules/round-ieee-tests: New file.
62830         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
62831         * tests/test-round1.c (main): Remove signbit tests.
62832         * modules/round-tests (Depends-on): Remove 'signbit'.
62833         * doc/posix-functions/round.texi: Mention the new module.
62835 2010-12-21  Bruno Haible  <bruno@clisp.org>
62837         New module 'trunc-ieee'.
62838         * modules/trunc-ieee: New file.
62839         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
62840         whether trunc works according to ISO C 99 with IEC 60559.
62841         * m4/trunc-ieee.m4: New file.
62842         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
62843         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
62844         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
62845         * modules/trunc-ieee-tests: New file.
62846         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
62847         * tests/test-trunc1.c (main): Remove signbit tests.
62848         * modules/trunc-tests (Depends-on): Remove 'signbit'.
62849         * doc/posix-functions/trunc.texi: Mention the new module.
62851 2010-12-21  Bruno Haible  <bruno@clisp.org>
62853         New module 'ceil-ieee'.
62854         * modules/ceil-ieee: New file.
62855         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
62856         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
62857         ISO C 99 with IEC 60559.
62858         * m4/ceil-ieee.m4: New file.
62859         * modules/ceil (Files): Add lib/ceil.c.
62860         (Depends-on): Add 'float'.
62861         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
62862         * lib/math.in.h (ceil): New declaration.
62863         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
62864         REPLACE_CEIL.
62865         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
62866         * modules/ceil-ieee-tests: New file.
62867         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
62868         * tests/test-math-c++.cc: Check the signature of 'ceil'.
62869         * doc/posix-functions/ceil.texi: Mention the new module.
62871 2010-12-21  Bruno Haible  <bruno@clisp.org>
62873         New module 'floor-ieee'.
62874         * modules/floor-ieee: New file.
62875         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
62876         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
62877         ISO C 99 with IEC 60559.
62878         * m4/floor-ieee.m4: New file.
62879         * modules/floor (Files): Add lib/floor.c.
62880         (Depends-on): Add 'float'.
62881         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
62882         * lib/math.in.h (floor): New declaration.
62883         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
62884         REPLACE_FLOOR.
62885         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
62886         * modules/floor-ieee-tests: New file.
62887         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
62888         * tests/test-math-c++.cc: Check the signature of 'floor'.
62889         * doc/posix-functions/floor.texi: Mention the new module.
62891 2010-12-21  Bruno Haible  <bruno@clisp.org>
62893         New module 'roundf-ieee'.
62894         * modules/roundf-ieee: New file.
62895         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
62896         test whether roundf works according to ISO C 99 with IEC 60559.
62897         * m4/roundf-ieee.m4: New file.
62898         * modules/roundf-ieee-tests: New file.
62899         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
62900         * tests/test-roundf1.c (main): Remove signbit tests.
62901         * modules/roundf-tests (Depends-on): Remove 'signbit'.
62902         * doc/posix-functions/roundf.texi: Mention the new module.
62904 2010-12-21  Bruno Haible  <bruno@clisp.org>
62906         New module 'truncf-ieee'.
62907         * modules/truncf-ieee: New file.
62908         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
62909         test whether truncf works according to ISO C 99 with IEC 60559.
62910         * m4/truncf-ieee.m4: New file.
62911         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
62912         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
62913         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
62914         * modules/truncf-ieee-tests: New file.
62915         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
62916         * tests/test-truncf1.c (main): Remove signbit tests.
62917         * modules/truncf-tests (Depends-on): Remove 'signbit'.
62918         * doc/posix-functions/truncf.texi: Mention the new module.
62920 2010-12-21  Bruno Haible  <bruno@clisp.org>
62922         New module 'ceilf-ieee'.
62923         * modules/ceilf-ieee: New file.
62924         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
62925         test whether ceilf works according to ISO C 99 with IEC 60559.
62926         * m4/ceilf-ieee.m4: New file.
62927         * modules/ceilf-ieee-tests: New file.
62928         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
62929         * tests/test-ceilf1.c (main): Remove signbit tests.
62930         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
62931         * doc/posix-functions/ceilf.texi: Mention the new module.
62933 2010-12-21  Bruno Haible  <bruno@clisp.org>
62935         New module 'floorf-ieee'.
62936         * modules/floorf-ieee: New file.
62937         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
62938         test whether floorf works according to ISO C 99 with IEC 60559.
62939         * m4/floorf-ieee.m4: New file.
62940         * modules/floorf-ieee-tests: New file.
62941         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
62942         * tests/test-floorf1.c (main): Remove signbit tests.
62943         * modules/floorf-tests (Depends-on): Remove 'signbit'.
62944         * doc/posix-functions/floorf.texi: Mention the new module.
62946 2010-12-21  Bruno Haible  <bruno@clisp.org>
62948         Support for minus zero in autoconf macros.
62949         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
62950         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
62951         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
62952         * tests/minus-zero.h: Update comments.
62954 2010-12-21  Bruno Haible  <bruno@clisp.org>
62956         Tests for module 'ceil'.
62957         * modules/ceil-tests: New file.
62958         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
62959         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
62961 2010-12-21  Bruno Haible  <bruno@clisp.org>
62963         Tests for module 'floor'.
62964         * modules/floor-tests: New file.
62965         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
62966         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
62968 2010-12-21  Bruno Haible  <bruno@clisp.org>
62970         math: Fix indentation.
62971         * lib/math.in.h (floorf): Fix indentation.
62973 2010-12-21  Bruno Haible  <bruno@clisp.org>
62975         Fix cross-compilation guesses on Solaris.
62976         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
62977         not match "solaris2.10".
62978         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
62979         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
62980         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
62982 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
62984         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
62985         This fixes a problem observed with the latest coreutils snapshot
62986         that caused a test to fail on Solaris 8.  src/csplit.c's call
62987         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
62988         earlier, instead of returning the number of bytes that would have
62989         been generated; this causes csplit to incorrectly report memory
62990         exhaustion.
62991         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
62992         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
62993         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
62994         comments to match.
62995         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
62996         Fix typo in matching older versions of Solaris: "solaris2.10"
62997         is matched by the shell pattern "solaris2.[0-9]*".  This matters
62998         only for guessing while cross-compiling.
62999         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
63001 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
63003         ftoastr: fix comment again
63004         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
63005         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00149.html>.
63006         Also, simplify example a bit by using flags = 0.
63008 2010-12-20  Bruno Haible  <bruno@clisp.org>
63010         round*, trunc*: Update documentation regarding glibc.
63011         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
63012         * doc/posix-functions/round.texi: Likewise.
63013         * doc/posix-functions/roundl.texi: Likewise.
63014         * doc/posix-functions/truncf.texi: Likewise.
63015         * doc/posix-functions/trunc.texi: Likewise.
63016         * doc/posix-functions/truncl.texi: Likewise.
63018 2010-12-20  Bruno Haible  <bruno@clisp.org>
63020         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
63021         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
63022         * doc/posix-functions/round.texi: Likewise.
63023         * doc/posix-functions/roundl.texi: Likewise.
63025 2010-12-20  Bruno Haible  <bruno@clisp.org>
63027         ttyname_r: Add missing declaration on HP-UX 11.
63028         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
63029         HAVE_TTYNAME_R.
63030         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
63031         declared. Set HAVE_TTYNAME_R always.
63032         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
63033         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
63034         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
63035         HAVE_TTYNAME_R.
63036         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
63038 2010-12-20  Bruno Haible  <bruno@clisp.org>
63040         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
63041         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
63042         * doc/posix-functions/getlogin_r.texi: Likewise.
63043         * tests/test-getlogin.c: Include <errno.h>.
63044         (main): Avoid test failure on HP-UX 11.11.
63045         * tests/test-getlogin_r.c (main): Likewise.
63047 2010-12-20  Bruno Haible  <bruno@clisp.org>
63049         getlogin_r: Add missing declaration on HP-UX 11.
63050         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
63051         declared also when it exists as a function.
63052         * doc/posix-functions/getlogin_r.texi: Document this workaround.
63054 2010-12-20  Bruno Haible  <bruno@clisp.org>
63056         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
63057         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
63058         through wcrtomb.
63060 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
63062         ftoastr: fix comment
63063         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
63064         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00130.html>.
63066 2010-12-19  Bruno Haible  <bruno@clisp.org>
63068         isnan: Ensure it is a macro.
63069         * lib/math.in.h (isnan): Define as a macro if not already a macro.
63070         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
63071         Solaris.
63073 2010-12-19  Bruno Haible  <bruno@clisp.org>
63075         ldexpl test: Fix link error on OSF/1 5.1.
63076         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
63078 2010-12-19  Bruno Haible  <bruno@clisp.org>
63080         wctype: Make it work in C++ mode on OSF/1 5.1.
63081         * lib/wctype.in.h (iswblank): Declare but not define here.
63082         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
63083         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
63084         * modules/wctype (Files): Add lib/iswblank.c.
63086 2010-12-19  Bruno Haible  <bruno@clisp.org>
63088         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
63089         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
63090         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
63092 2010-12-19  Bruno Haible  <bruno@clisp.org>
63094         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
63095         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
63096         _POSIX_PII_SOCKET.
63097         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
63098         * doc/posix-functions/recvfrom.texi: Likewise.
63099         * doc/posix-functions/send.texi: Likewise.
63100         * doc/posix-functions/sendto.texi: Likewise.
63102 2010-12-19  Bruno Haible  <bruno@clisp.org>
63104         tcgetsid: Add missing declaration on OSF/1 5.1.
63105         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
63106         HAVE_TCGETSID.
63107         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
63108         Don't set HAVE_TCGETSID.
63109         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
63110         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
63111         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
63112         HAVE_TCGETSID.
63113         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
63115 2010-12-19  Bruno Haible  <bruno@clisp.org>
63117         stdio: Fix problem with popen() declaration on OSF/1 5.1.
63118         * lib/stdio.in.h: During the include_next statement, let recursive
63119         includes of this file include only the system header file.
63121 2010-12-19  Bruno Haible  <bruno@clisp.org>
63123         iconv_open: Fix regression from 2010-12-04.
63124         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
63125         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
63127 2010-12-19  Bruno Haible  <bruno@clisp.org>
63129         stdbool test: Avoid a gcc warning.
63130         * tests/test-stdbool.c (main): Fail if e1 is false.
63131         Reported by Jim Meyering.
63133 2010-12-19  Jim Meyering  <meyering@redhat.com>
63135         setenv: restore to working order
63136         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
63137         mistakenly removed.
63138         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
63139         HAVE_SETENV.
63140         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
63141         HAVE_SETENV.
63143 2010-12-19  Bruno Haible  <bruno@clisp.org>
63145         Document some different function declarations on OSF/1 5.1.
63146         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
63147         * doc/posix-functions/inet_ntop.texi: Likewise.
63148         * doc/posix-functions/gethostname.texi: Likewise.
63149         * lib/unistd.in.h (gethostname): Update comment.
63151 2010-12-19  Bruno Haible  <bruno@clisp.org>
63153         doc: Mention vasprintf-posix module.
63154         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
63155         the 'vasprintf-posix' module.
63156         * doc/glibc-functions/vasprintf.texi: Likewise.
63158 2010-12-19  Bruno Haible  <bruno@clisp.org>
63160         unsetenv: Add missing declaration on OSF/1 5.1.
63161         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
63162         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
63163         Don't set HAVE_UNSETENV. In the test program, set _BSD.
63164         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
63165         not HAVE_UNSETENV.
63166         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
63167         HAVE_UNSETENV.
63168         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
63170 2010-12-19  Bruno Haible  <bruno@clisp.org>
63172         setenv: Add missing declaration on OSF/1 5.1.
63173         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
63174         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
63175         declared. Don't set HAVE_SETENV.
63176         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
63177         not HAVE_SETENV.
63178         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
63179         HAVE_SETENV.
63180         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
63182 2010-12-19  Bruno Haible  <bruno@clisp.org>
63184         nl_langinfo tests: Avoid gcc warning.
63185         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
63187 2010-12-19  Bruno Haible  <bruno@clisp.org>
63189         mknod: Avoid error in C++ mode on OSF/1 with GCC.
63190         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
63191         _GL_CXXALIAS_SYS.
63193 2010-12-19  Bruno Haible  <bruno@clisp.org>
63195         stdbool: Relax test.
63196         * tests/test-stdbool.c (e): Don't require that casts from a variable's
63197         address to 'bool' work in static initializer, for compilers other than
63198         GCC.
63200 2010-12-19  Bruno Haible  <bruno@clisp.org>
63202         ftello: Add missing declaration on OSF/1 5.1.
63203         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
63204         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
63205         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
63206         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
63207         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
63209 2010-12-19  Bruno Haible  <bruno@clisp.org>
63211         fseeko: Add missing declaration on OSF/1 5.1.
63212         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
63213         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
63214         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
63215         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
63216         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
63218 2010-12-19  Bruno Haible  <bruno@clisp.org>
63220         fchdir: Add missing declaration on OSF/1 5.1.
63221         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
63222         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
63223         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
63224         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
63225         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
63227 2010-12-19  Bruno Haible  <bruno@clisp.org>
63229         relocatable-prog-wrapper: Separate from relocatable-prog.
63230         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
63231         uninstall-relocwrapper rule here.
63232         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
63233         Reported by Ian Beckwith <ianb@erislabs.net>.
63235 2010-12-19  Bruno Haible  <bruno@clisp.org>
63237         unistr/u8-mbsnlen: Add missing dependency.
63238         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
63239         Reported by Ian Beckwith <ianb@erislabs.net>.
63241 2010-12-19  Bruno Haible  <bruno@clisp.org>
63243         iconv: Make it possible again to use this module without 'iconv-h'.
63244         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
63245         if it is not defined.
63246         Reported by Ian Beckwith <ianb@erislabs.net>.
63248 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
63250         acl: port to Solaris 8 when copying from tmpfs to ufs
63251         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
63252         error number.  Problem observed on Solaris 8 with latest
63253         coreutils, with "mv A B", where A is on a tmpfs file system and B
63254         is on a ufs file system.  This caused coreutils' mv/part-symlink
63255         test to fail.
63257         tests: set fail=0 at start
63258         * tests/init.sh (setup_): Move fail=0 initialization here ...
63259         (mktempd_): ... from here, so that tests can rely on fail being
63260         set to 0 initially.  This fixes a problem in coreutils; see:
63261         http://lists.gnu.org/r/coreutils/2010-12/msg00083.html
63263 2010-12-18  Bruno Haible  <bruno@clisp.org>
63265         memmem-simple: Stylistic changes.
63266         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
63267         Fix preprocessor directive indentation.
63269 2010-12-15  Pádraig Brady  <P@draigBrady.com>
63271         memmem, memmem-simple: reorganize and expand empty needle check
63272         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
63273         functional checks to memmem-simple so that one has a fully functional
63274         memmem by using just this module.
63275         Restrict the performance only check to the memmem module.
63276         Also expand the empty needle check to ensure the correct
63277         pointer is returned, not just a non NULL pointer.
63278         * doc/glibc-functions/memmem.texi: Rearrange the portability
63279         documentation to correlate with the rearranged checks.
63280         Clarify exactly how the memmem and memmem-simple modules
63281         relate to each other.
63283 2010-12-15  Pádraig Brady  <P@draigBrady.com>
63284             Bruno Haible  <bruno@clisp.org>
63286         Improve cross-compilation guesses for uClibc.
63287         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
63288         that uClibc does not have the glibc bug.
63289         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
63290         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
63292 2010-12-14  Eric Blake  <eblake@redhat.com>
63294         configmake: provide fallbacks for oldest supported autotools
63295         * m4/configmake.m4: New file.
63296         * modules/configmake (Files): Ship it.
63297         (configure.ac): Use it to guarantee fallbacks.
63299 2010-12-13  Pádraig Brady  <P@draigBrady.com>
63301         read-file: Improve handling of large files
63302         * lib/read-file.c (fread_file): Minimize realloc()s
63303         for regular files, and better manage sizes around SIZE_MAX.
63305 2010-12-13  Eric Blake  <eblake@redhat.com>
63307         cloexec, fcntl: relax license
63308         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
63309         consent from all contributors.
63310         * modules/fcntl (License): Likewise.
63312 2010-12-10  Bruno Haible  <bruno@clisp.org>
63314         Tests for module 'pipe-posix'.
63315         * modules/pipe-posix-tests: New file.
63316         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
63318 2010-12-10  Bruno Haible  <bruno@clisp.org>
63320         pipe-posix: Make it work in C++ mode.
63321         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
63322         (pipe): Use common idiom, not a macro definition.
63323         * lib/pipe.c: New file.
63324         * m4/pipe.m4: New file.
63325         * modules/pipe-posix (Description): Enhance.
63326         (Files): Add lib/pipe.c, m4/pipe.m4.
63327         (configure.ac): Invoke gl_FUNC_PIPE.
63328         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
63329         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
63330         * tests/test-unistd-c++.cc: Check the signature of pipe.
63332 2010-12-10  Bruno Haible  <bruno@clisp.org>
63334         Rename module 'pipe' to 'spawn-pipe'.
63335         * modules/spawn-pipe: New file, renamed from modules/pipe.
63336         (Files, configure.ac, Makefile.am): Update.
63337         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
63338         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
63339         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
63340         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
63341         "spawn-pipe.h" instead of "pipe.h".
63342         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
63343         to gl_SPAWN_PIPE.
63344         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
63345         (Files, Makefile.am): Update.
63346         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
63347         Update.
63348         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
63349         Include "spawn-pipe.h" instead of "pipe.h".
63350         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
63351         * lib/javacomp.c: Likewise.
63352         * lib/javaversion.c: Likewise.
63353         * lib/pipe-filter-gi.c: Likewise.
63354         * lib/pipe-filter-ii.c: Likewise.
63355         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
63356         * modules/javacomp (Depends-on): Likewise.
63357         * modules/javaversion (Depends-on): Likewise.
63358         * modules/pipe-filter-gi (Depends-on): Likewise.
63359         * modules/pipe-filter-ii (Depends-on): Likewise.
63360         * MODULES.html.sh (Executing programs): Update.
63361         * NEWS: Mention the change.
63363 2010-12-10  Eric Blake  <eblake@redhat.com>
63365         pipe-posix: new module
63366         * modules/pipe-posix: New file.
63367         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
63368         (gl_UNISTD_H): Check for declaration.
63369         * modules/unistd (Makefile.am): Substitute it.
63370         * lib/unistd.in.h (pipe): Provide it for mingw.
63371         * doc/posix-functions/pipe.texi (pipe): Update documentation.
63372         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
63374 2010-12-07  Bruno Haible  <bruno@clisp.org>
63376         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
63377         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
63378         u8_strcmp_gnu.
63379         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
63381 2010-12-06  Bruno Haible  <bruno@clisp.org>
63383         Update internal documentation.
63384         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
63386 2010-12-04  Bruno Haible  <bruno@clisp.org>
63388         Put more information about failed tests into the test return codes.
63389         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
63390         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
63391         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
63392         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
63393         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
63394         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
63395         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
63396         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
63397         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
63398         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
63399         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
63400         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
63401         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
63402         * m4/stdint.m4 (gl_STDINT_H): Likewise.
63403         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
63404         returns a bit mask.
63405         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
63406         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
63407         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
63408         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
63409         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
63410         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
63411         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
63412         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
63413         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
63414         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
63415         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
63416         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
63417         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
63418         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
63419         * m4/link.m4 (gl_FUNC_LINK): Likewise.
63420         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
63421         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
63422         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
63423         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
63424         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
63425         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
63426         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
63427         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
63428         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
63429         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
63430         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
63431         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
63432         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
63433         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
63434         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
63435         gl_PRINTF_PRECISION): Likewise.
63436         * m4/regex.m4 (gl_REGEX): Likewise.
63437         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
63438         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
63439         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
63440         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
63441         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
63442         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
63443         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
63444         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
63445         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
63446         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
63447         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
63448         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
63449         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
63450         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
63451         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
63452         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
63453         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
63454         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
63455         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
63456         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
63457         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
63458         enumerated value.
63459         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
63461 2010-12-04  Bruno Haible  <bruno@clisp.org>
63463         Update for Solaris 11 2010-11.
63464         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
63465         Express, released in November 2010.
63467 2010-12-04  Bruno Haible  <bruno@clisp.org>
63469         nproc: Relax license.
63470         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
63471         and Paul Eggert.
63472         Requested by Ludovic Courtès <ludo@gnu.org>.
63474 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
63476         utimecmp: fine-grained src to nearby coarse-grained dest
63478         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
63479         and the source is on a file system with higher-resolution time
63480         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
63481         not work, and the time stamps are close together, the algorithm to
63482         determine the exact resolution from the read-back mtime was buggy:
63483         it had a "!=" where it should have had an "==".  This bug has been
63484         in the code ever since it was introduced to gnulib.
63485         Problem reported by Dan Jacobson in
63486         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
63488 2010-11-30  Bruno Haible  <bruno@clisp.org>
63490         strerror_r-posix: Fix autoconf test.
63491         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
63493 2010-11-28  Bruno Haible  <bruno@clisp.org>
63494             Paul Eggert  <eggert@cs.ucla.edu>
63496         Tests for module 'getdomainname'.
63497         * modules/getdomainname-tests: New file.
63498         * tests/test-getdomainname.c: New file, based on
63499         tests/test-gethostname.c.
63501 2010-11-28  Bruno Haible  <bruno@clisp.org>
63502             Paul Eggert  <eggert@cs.ucla.edu>
63504         getdomainname: Use the system function when possible.
63505         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
63506         (getdomainname): Replace if needed. Provide the declaration if it is
63507         missing. Don't use _GL_CXXALIAS_SYS_CAST.
63508         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
63509         (getdomainname): When the system has getdomainname, call the system
63510         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
63511         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
63512         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
63513         found in libnsl. Look for the declaration also in <netdb.h>. Replace
63514         the function if its second argument is of type 'int' or if it is found
63515         in libnsl.
63516         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
63517         <sys/systeminfo.h> and sysinfo().
63518         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
63519         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
63520         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
63521         HAVE_GETDOMAINNAME.
63522         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
63523         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
63524         * doc/glibc-functions/getdomainname.texi: Document the problems with
63525         the getdomainname declaration.
63527 2010-11-28  Bruno Haible  <bruno@clisp.org>
63529         sys_socket: Ensure ss_family field on AIX.
63530         * lib/sys_socket.in.h (ss_family): New macro definition.
63531         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
63532         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
63533         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
63534         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
63535         * modules/sys_socket (Makefile.am): Substitute
63536         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
63537         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
63539 2010-11-27  Bruno Haible  <bruno@clisp.org>
63541         readline: Improve configure output.
63542         * m4/readline.m4 (gl_FUNC_READLINE): Make the
63543         "checking for readline..." result understandable.
63545 2010-11-27  Bruno Haible  <bruno@clisp.org>
63547         *printf-posix: Detect a bug on Solaris 10/x86.
63548         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
63549         for floating-point output.
63550         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
63551         directive.
63552         * tests/test-snprintf-posix.h (test_function): Likewise.
63553         * tests/test-sprintf-posix.h (test_function): Likewise.
63554         * tests/test-vasprintf-posix.c (test_function): Likewise.
63555         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
63556         * doc/posix-functions/printf.texi: Likewise.
63557         * doc/posix-functions/snprintf.texi: Likewise.
63558         * doc/posix-functions/sprintf.texi: Likewise.
63559         * doc/posix-functions/vfprintf.texi: Likewise.
63560         * doc/posix-functions/vprintf.texi: Likewise.
63561         * doc/posix-functions/vsnprintf.texi: Likewise.
63562         * doc/posix-functions/vsprintf.texi: Likewise.
63563         * doc/glibc-functions/obstack_printf.texi: Likewise.
63564         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
63566 2010-11-27  Bruno Haible  <bruno@clisp.org>
63568         Fix link error when module libunistring-optional is in use.
63569         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
63570         * modules/striconveha-tests (Makefile.am): Likewise.
63572 2010-11-27  Bruno Haible  <bruno@clisp.org>
63574         regex: Mention link dependencies.
63575         * modules/regex (Link): New section.
63576         * modules/rpmatch (Link): Likewise.
63577         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
63579 2010-11-27  Bruno Haible  <bruno@clisp.org>
63581         ftoastr: Fix compilation error on Solaris.
63582         * lib/ftoastr.c: Include <config.h>.
63584 2010-11-27  Bruno Haible  <bruno@clisp.org>
63586         getloadavg: Update documentation.
63587         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
63589 2010-11-27  Bruno Haible  <bruno@clisp.org>
63591         sys_socket: Fix test whether the functions are declared.
63592         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
63593         not <sys/select.h>.
63595 2010-11-27  Bruno Haible  <bruno@clisp.org>
63597         getpass: Make sure to get system declaration on some platforms.
63598         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
63599         gl_USE_SYSTEM_EXTENSIONS.
63600         * modules/getpass (Depends-on): Add extensions.
63602 2010-11-26  Bruno Haible  <bruno@clisp.org>
63604         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
63605         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
63606         'iconv' module is present.
63607         (ICONV_CONST): New macro.
63608         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
63609         ICONV_CONST.
63610         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
63611         set ICONV_CONST.
63612         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
63613         here.
63614         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
63615         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
63616         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
63617         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
63618         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
63619         present.
63621 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
63623         ftoastr: comment fix
63624         * lib/ftoastr.c: "little" -> "little or no" in comment
63626 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
63628         stdint: port to GCC 4.3 + OSX + Octave
63629         On this platform, stdint.h is buggy and defines int64_t to long
63630         long int.  The replacement defined it to long int, causing
63631         problems with C++ style name mangling.  Instead, trust the system
63632         definition if INT64_MAX is defined, and likewise for the unsigned
63633         variant.   Problem reported by Jarno Rajahalme in
63634         <http://lists.gnu.org/r/bug-gnulib/2010-04/msg00143.html>.
63635         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
63636         and don't mess with int64_t and INT64_MAX in this case.
63637         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
63639 2010-11-24  Bruno Haible  <bruno@clisp.org>
63641         doc: Corrections regarding MacOS X 10.4 and 10.5.
63642         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
63643         MacOS X.
63644         Reported by Simon Josefsson.
63646 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
63648         Uninstall ".bin" files installed by relocwrapper.
63649         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
63650         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
63651         unless it is already there.
63653 2010-11-21  Bruno Haible  <bruno@clisp.org>
63655         Update for NetBSD 5.0.
63656         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
63657         NetBSD; the test fails on NetBSD 5.0.
63658         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
63659         about NetBSD.
63661 2010-11-21  Bruno Haible  <bruno@clisp.org>
63663         Update for HP-UX 11.23 and HP-UX 11.31.
63664         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
63665         HP-UX.
63667 2010-11-21  Bruno Haible  <bruno@clisp.org>
63669         Update for MacOS X 10.5.
63670         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
63671         MacOS X; the test fails on MacOS X 10.5.8.
63672         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
63673         about MacOS X.
63675 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
63677         bootstrap: add bootstrap_sync option.
63678         See discussion at
63679         <http://lists.gnu.org/r/bug-gnulib/2010-10/msg00369.html>,
63680         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00200.html>.
63681         * build-aux/bootstrap: Accept --bootstrap-sync to update
63682         bootstrap if it is not identical to the local gnulib's
63683         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
63684         enable this by default.  Accept --no-bootstrap-sync to disable
63685         it.
63687 2010-11-20  Bruno Haible  <bruno@clisp.org>
63689         Ensure that <features.h> is included before __GLIBC__ is tested.
63690         * lib/printf-parse.h: Include <features.h>.
63691         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
63692         Reported by Mike Frysinger <vapier@gentoo.org>.
63694         Ensure that <features.h> is included before __GLIBC__ is tested.
63695         * lib/wchar.in.h: Include <features.h>.
63696         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
63697         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
63698         Reported by Mike Frysinger <vapier@gentoo.org>.
63700         Ensure that <features.h> is included before __GLIBC__ is tested.
63701         * lib/arpa_inet.in.h: Include <features.h>.
63702         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
63703         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
63704         Reported by Mike Frysinger <vapier@gentoo.org>.
63706         Ensure that <features.h> is included before __GLIBC__ is tested.
63707         * build-aux/link-warning.h: Include <features.h>.
63708         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
63709         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
63710         Reported by Mike Frysinger <vapier@gentoo.org>.
63712         Ensure that <features.h> is included before __GLIBC__ is tested.
63713         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
63714         Reported by Mike Frysinger <vapier@gentoo.org>.
63716 2010-11-20  Bruno Haible  <bruno@clisp.org>
63718         memmem: Fix autoconf test.
63719         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
63721 2010-11-20  Bruno Haible  <bruno@clisp.org>
63723         Port to uClibc.
63724         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
63725         * lib/fcntl.in.h: Likewise.
63726         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
63727         * lib/mbrtowc.c (mbrtowc): Likewise.
63728         * lib/relocatable.c (find_shared_library_fullname): Likewise.
63729         * lib/strerror_r.c: Likewise.
63730         * lib/unistr/u8-strnlen.c: Likewise.
63731         * lib/vasnprintf.c (decimal_point_char): Likewise.
63732         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
63733         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
63734         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
63735         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
63736         * tests/test-sigaction.c (handler, main): Likewise.
63737         * lib/freading.h: Treat uClibc like a non-glibc platform.
63738         * lib/freading.c: Likewise.
63739         * lib/gettext.h: Likewise.
63740         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
63741         Likewise.
63742         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
63743         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
63744         * lib/propername.c (proper_name_utf8): Likewise.
63745         * lib/spawn.in.h: Likewise.
63746         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
63747         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
63748         mem_cd_iconveh_internal): Likewise.
63749         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
63750         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
63751         strstr, strcasestr): Likewise.
63752         * lib/unicodeio.c (unicode_to_mb): Likewise.
63753         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
63754         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
63755         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
63756         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
63757         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
63758         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
63759         * lib/unistr/u8-stpncpy.c: Likewise.
63760         * lib/vasnprintf.c (VASNPRINTF): Likewise.
63761         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
63762         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
63763         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
63764         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
63765         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
63766         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
63767         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
63768         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
63769         Likewise.
63770         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
63771         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
63772         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
63773         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
63774         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
63775         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
63776         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
63777         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
63778         * tests/test-getopt.h (OPTIND_MIN): Likewise.
63779         * tests/test-striconveha.c (main): Likewise.
63780         * tests/test-vasnprintf-posix.c (test_function): Likewise.
63781         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
63782         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
63783         * doc/posix-functions/getline.texi: Likewise.
63784         Reported by Mike Frysinger <vapier@gentoo.org>.
63786 2010-11-20  Bruno Haible  <bruno@clisp.org>
63788         nproc: Fix condition.
63789         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
63790         HAVE_PTHREAD_AFFINITY_NP.
63792 2010-11-20  Bruno Haible  <bruno@clisp.org>
63794         Fix a comment.
63795         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
63797 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
63799         ftoastr: don't assume snprintf
63800         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
63801         Implement a subset of snprintf here, by using sprintf safely.
63802         * modules/ftoastr (Depends-on): Remove snprintf.
63804 2010-11-19  Jim Meyering  <meyering@redhat.com>
63806         test-rename.h: fix compilation failure
63807         * tests/test-rename.h (test_rename): Add omitted "}".
63809 2010-11-17  Jim Meyering  <meyering@redhat.com>
63811         maint.mk: add a URL discussing the no-@acronym policy
63812         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
63814 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
63816         ftoastr: depend on snprintf, improve comments
63817         * lib/ftoastr.c: Also mention Loitsch's draft.
63818         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
63819         needed in the current implementation, but it might simplify
63820         speeding up the code later.
63821         * modules/ftoastr: Depend on snprintf; this improves portability.
63822         Suggested by Bruno Haible in the same email.
63824         ftoastr: port to hosts lacking strtof and strtold
63825         Problem reported by Bruno Haible in
63826         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00242.html>.
63827         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
63828         environment and strtold (and presumably strtof) are not available.
63829         * modules/ftoastr (Files): Add m4/c-strtod.m4.
63830         (configure.ac): Require gl_C99_STRTOLD.
63832 2010-11-18  Bruno Haible  <bruno@clisp.org>
63834         c-strtold: Avoid link error on AIX 7.
63835         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
63836         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
63837         (gl_C_STRTOLD): Test whether strtold_l exists.
63838         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
63840 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
63842         intprops: new macro INT_BITS_STRLEN_BOUND
63843         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
63844         ftoastr.h.  This exposes an internal of intprops.h that was formerly
63845         not exposed.  Also, it uses a slightly tighter bound than before;
63846         though this makes no practical difference, we might as well be as
63847         tight as we easily can.
63849         ftoastr: new module, for lossless conversion of floats to short strings
63850         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
63851         * modules/ftoastr: New files.
63853 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
63855         bootstrap: port to Solaris sed
63856         * build-aux/bootstrap (get_version): Port to Solaris sed.
63857         See Ralf Wildenhues's note in
63858         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00156.html>.
63860 2010-11-14  Jim Meyering  <meyering@redhat.com>
63862         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
63863         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
63864         and move definition closer to sole use.
63866 2010-11-13  Jim Meyering  <meyering@redhat.com>
63868         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
63869         Now we require at least autoconf-2.59, which means the work-around
63870         is no longer needed.
63871         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
63872         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
63873         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
63874         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
63875         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
63877 2010-11-13  Bruno Haible  <bruno@clisp.org>
63879         rename, renameat: Avoid test failures at NFS mounted locations.
63880         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
63881         functions.
63882         (test_rename): Use assert_nonexistent.
63883         * tests/test-rename.c: Include <dirent.h>.
63884         * tests/test-renameat.c: Likewise.
63885         Reported by Gary V. Vaughan <gary@gnu.org>.
63887         rename, renameat: Document Linux bug with NFS
63888         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00154.html>.
63889         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
63890         * doc/posix-functions/renameat.texi: Likewise.
63891         Suggested by Eric Blake.
63893 2010-11-13  Bruno Haible  <bruno@clisp.org>
63895         rename test: Add comments.
63896         * tests/test-rename.h (test_rename): Add structure and comments.
63898 2010-11-13  Eric Blake  <eblake@redhat.com>
63900         maintainer-makefile: cover a few more files
63901         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
63902         scripts generated within C files, for libvirt.
63904 2010-11-13  Bruno Haible  <bruno@clisp.org>
63906         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
63907         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
63908         character, return the number of bytes that belong together, not always
63909         1.
63910         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
63911         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
63912         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
63913         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
63914         number of bytes of an invalid character.
63915         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
63916         (main): Invoke it.
63917         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
63918         results.
63919         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
63920         malformed byte sequences.
63921         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
63922         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
63923         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
63924         Reported by Ben Pfaff and Paolo Bonzini.
63926 2010-11-13  Bruno Haible  <bruno@clisp.org>
63928         openat: Work around glibc bug with fchownat() and empty file names.
63929         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
63930         (gl_FUNC_FCHOWNAT): Invoke it.
63931         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
63932         * doc/posix-functions/fchownat.texi: Document the glibc bug.
63933         Reported by Gary V. Vaughan <gary@gnu.org>.
63935 2010-11-13  Bruno Haible  <bruno@clisp.org>
63937         openat: Ensure autoconf macro ordering.
63938         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
63939         gl_USE_SYSTEM_EXTENSIONS.
63940         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
63942 2010-11-13  Bruno Haible  <bruno@clisp.org>
63944         Update comments.
63945         * lib/unistr/u8-check.c: Update file name in comments.
63946         * lib/unistr/u8-mblen.c: Likewise.
63947         * lib/unistr/u8-prev.c: Likewise.
63948         * lib/unistr/u8-strmblen.c: Likewise.
63949         * lib/unistr/u8-strmbtouc.c: Likewise.
63951 2010-11-13  Jim Meyering  <meyering@redhat.com>
63953         tests: avoid test failure on Solaris 10 due to lack of PATH export
63954         * tests/test-update-copyright.sh: Don't forget to export PATH.
63956         init.sh: ensure that IFS is defined, just in case...
63957         * tests/init.sh (setup_): Ensure that IFS is defined,
63958         so that saving and restoring it works as expected.  This
63959         appears to be useful at least for an old version of dash
63960         from a long time ago (RH 6).  See here for details:
63961         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
63963         maint.mk: tighten "test a == b" check
63964         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
63965         test to files that contain something like #!/bin/sh.
63966         Without this, coreutils would get two false positives in
63967         the comments of C source files.
63969 2010-11-12  Eric Blake  <eblake@redhat.com>
63971         bootstrap: fix typo in previous attempt
63972         * build-aux/bootstrap (buildreq): Correct the grouping.
63973         Reported by Paul Eggert.
63975         maintainer-makefile: prohibit test x == x
63976         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
63977         Based on a report by Matthias Bolte.
63979         bootstrap: allow FreeBSD gzip
63980         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
63981         which has no '.' and goes to stderr.
63982         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
63983         Reported by Matthias Bolte.
63985         maintainer-makefile: check for i18n setup
63986         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
63987         will likely work.
63989 2010-11-12  Bruno Haible  <bruno@clisp.org>
63991         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
63992         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
63993         * lib/nanosleep.c (nanosleep): Likewise.
63995 2010-11-11  Bruno Haible  <bruno@clisp.org>
63997         fcntl-h: Fix for use of C++ on glibc systems.
63998         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
63999         also on glibc systems in C++ mode.
64000         Reported by Gary V. Vaughan <gary@gnu.org>.
64002 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
64004         mknod: avoid false failure with dash
64005         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
64007 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
64009         unlink: Fix "is it should" typo in diagnostic.
64010         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
64011         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00106.html>.
64013 2010-11-11  Bruno Haible  <bruno@clisp.org>
64015         Tests for module 'strerror_r-posix'.
64016         * modules/strerror_r-posix-tests: New file.
64017         * tests/test-strerror_r.c: New file.
64018         * tests/test-string-c++.cc: Check the signature of strerror_r.
64020         New module 'strerror_r-posix'.
64021         * lib/string.in.h (strerror_r): New declaration.
64022         * lib/strerror_r.c: New file.
64023         * m4/strerror_r.m4: New file.
64024         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
64025         of strerror_r.
64026         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
64027         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
64028         * modules/strerror_r-posix: New file.
64029         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
64030         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
64031         * doc/posix-functions/strerror_r.texi: Mention the new module and the
64032         portability problems.
64034 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
64036         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
64037         line is also considered for output. Quoted function name in shell
64038         command, so temporary files for functions like MyClass::operator()
64039         are removed correctly without errors.
64041 2010-11-09  Bruno Haible  <bruno@clisp.org>
64043         * doc/posix-functions/strerror.texi: List more failing platforms.
64045         * doc/posix-functions/strerror.texi: Add a comment.
64047 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
64049         fdopendir: fix bug on MacOS X when low on file descriptors
64051         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
64052         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
64053         All callers changed.
64054         (fdopendir): Invoke save_cwd at the top level, not after using
64055         multiple dup() calls to use up file descriptors.  Then retry
64056         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
64057         less than the maximum number of open file descriptors, because
64058         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
64059         on Mac OS X 10.6.4 for tar 1.24
64060         <http://lists.gnu.org/r/bug-tar/2010-10/msg00084.html>
64061         <http://lists.gnu.org/r/bug-tar/2010-11/msg00000.html>
64062         and for tar 1.25
64063         <http://lists.gnu.org/r/bug-tar/2010-11/msg00038.html>.
64065 2010-11-07  Bruno Haible  <bruno@clisp.org>
64067         vasnprintf: Support I flag on glibc systems.
64068         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
64069         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
64070         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
64071         snprintf function.
64072         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
64073         glibc systems.
64074         * tests/test-vasnprintf-posix3.c: New file.
64075         * modules/vasnprintf-posix-tests (Files): Add it.
64076         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
64078 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
64080         [html] Fix copy/paste bug: Use unique name for compiler warnings.
64081         * MODULES.html.sh: For compiler warnings, use name
64082         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
64084 2010-11-05  Eric Blake  <eblake@redhat.com>
64086         ceil, floor: avoid spurious failure with icc
64087         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
64088         [denormals-as-zero] when optimizing without -mieee-fp option.
64089         * tests/test-floorf2.c (floorf_reference): Likewise.
64090         * tests/test-ceilf1.c (dummy): New function.
64091         (main): Use it to outsmart icc's optimization.
64092         * tests/test-floorf1.c (dummy, main): Likewise.
64094         tests: require working signbit
64095         * modules/ceilf-tests (Depends-on): Add signbit.
64096         * modules/ceill-tests (Depends-on): Likewise.
64097         * modules/floorf-tests (Depends-on): Likewise.
64098         * modules/floorl-tests (Depends-on): Likewise.
64099         * modules/round-tests (Depends-on): Likewise.
64100         * modules/roundf-tests (Depends-on): Likewise.
64101         * modules/roundl-tests (Depends-on): Likewise.
64102         * modules/trunc-tests (Depends-on): Likewise.
64103         * modules/truncf-tests (Depends-on): Likewise.
64104         * modules/truncl-tests (Depends-on): Likewise.
64106         strtod: work around icc bug
64107         * lib/strtod.c (minus_zero): Define to working value.
64108         (strtod): Use it to avoid icc bug.
64110         copysign: enhance tests
64111         * modules/copysign-tests (Files): Add minus-zero.h.
64112         * tests/test-copysign.c (main): Also test zeros.
64114 2010-11-04  Eric Blake  <eblake@redhat.com>
64116         ceil, floor, round, trunc: enhance tests of -0
64117         * tests/test-ceilf1.c (main): Ensure correct sign of result.
64118         * tests/test-ceill.c (main): Likewise.
64119         * tests/test-floorf1.c (main): Likewise.
64120         * tests/test-floorl.c (main): Likewise.
64121         * tests/test-round1.c (main): Likewise.
64122         * tests/test-roundf1.c (main): Likewise.
64123         * tests/test-roundl.c (main): Likewise.
64124         * tests/test-trunc1.c (main): Likewise.
64125         * tests/test-truncf1.c (main): Likewise.
64126         * tests/test-truncl.c (main): Likewise.
64128 2010-11-04  Eric Blake  <eblake@redhat.com>
64130         frexp, tests: work around ICC bug with -zero
64131         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
64132         works with more compilers.
64133         * tests/minus-zero.h: New file.
64134         * modules/ceilf-tests (Files): Include it.
64135         * modules/ceill-tests (Files): Likewise.
64136         * modules/floorf-tests (Files): Likewise.
64137         * modules/floorl-tests (Files): Likewise.
64138         * modules/frexp-nolibm-tests (Files): Likewise.
64139         * modules/frexp-tests (Files): Likewise.
64140         * modules/frexpl-nolibm-tests (Files): Likewise.
64141         * modules/frexpl-tests (Files): Likewise.
64142         * modules/isnan-tests (Files): Likewise.
64143         * modules/isnand-nolibm-tests (Files): Likewise.
64144         * modules/isnand-tests (Files): Likewise.
64145         * modules/isnanf-nolibm-tests (Files): Likewise.
64146         * modules/isnanf-tests (Files): Likewise.
64147         * modules/isnanl-nolibm-tests (Files): Likewise.
64148         * modules/isnanl-tests (Files): Likewise.
64149         * modules/round-tests (Files): Likewise.
64150         * modules/roundf-tests (Files): Likewise.
64151         * modules/roundl-tests (Files): Likewise.
64152         * modules/ldexpl-tests (Files): Likewise.
64153         * modules/signbit-tests (Files): Likewise.
64154         * modules/snprintf-posix-tests (Files): Likewise.
64155         * modules/sprintf-posix-tests (Files): Likewise.
64156         * modules/strtod-tests (Files): Likewise.
64157         * modules/trunc-tests (Files): Likewise.
64158         * modules/truncf-tests (Files): Likewise.
64159         * modules/truncl-tests (Files): Likewise.
64160         * modules/vsnprintf-posix-tests (Files): Likewise.
64161         * modules/vsprintf-posix-tests (Files): Likewise.
64162         * modules/vasnprintf-posix-tests (Files): Likewise.
64163         * modules/vasprintf-posix-tests (Files): Likewise.
64164         * tests/test-ceilf1.c (main): Use it.
64165         * tests/test-ceill.c (main): Likewise.
64166         * tests/test-floorf1.c (main): Likewise.
64167         * tests/test-floorl.c (main): Likewise.
64168         * tests/test-frexp.c (main): Likewise.
64169         * tests/test-frexpl.c (main): Likewise.
64170         * tests/test-isnan.c (main): Likewise.
64171         * tests/test-isnand.h (main): Likewise.
64172         * tests/test-isnanf.h (main): Likewise.
64173         * tests/test-isnanl.h (main): Likewise.
64174         * tests/test-ldexpl.c (main): Likewise.
64175         * tests/test-round.c (main): Likewise.
64176         * tests/test-roundf.c (main): Likewise.
64177         * tests/test-roundl.c (main): Likewise.
64178         * tests/test-signbit.c (test_signbitf, test_signbitd)
64179         (test_signbitl): Likewise.
64180         * tests/test-snprintf-posix.h (test_function): Likewise.
64181         * tests/test-sprintf-posix.h (test_function): Likewise.
64182         * tests/test-strtod.c (main): Likewise.
64183         * tests/test-trunc1.c (main): Likewise.
64184         * tests/test-truncf1.c (main): Likewise.
64185         * tests/test-truncl.c (main): Likewise.
64187         isnanl: work around icc bug
64188         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
64190 2010-11-03  Eric Blake  <eblake@redhat.com>
64192         tests: fix compiler warnings
64193         * tests/test-getopt.h (test_getopt): Fix condition.
64194         * tests/test-getopt_long.h (test_getopt_long): Likewise.
64195         * tests/test-pipe2.c (main): Likewise.
64196         * tests/test-quotearg-simple.c (main): Avoid icc warning.
64198         utimens: fix broken m4 test
64199         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
64201 2010-10-28  Bruno Haible  <bruno@clisp.org>
64203         posix_spawn*, getdtablesize: Relax license.
64204         * modules/posix_spawn (License): Change to LGPLv2+.
64205         * modules/posix_spawnp (License): Likewise.
64206         * modules/posix_spawn-internal (License): Likewise.
64207         * modules/posix_spawnattr_init (License): Likewise.
64208         * modules/posix_spawnattr_getflags (License): Likewise.
64209         * modules/posix_spawnattr_setflags (License): Likewise.
64210         * modules/posix_spawnattr_getpgroup (License): Likewise.
64211         * modules/posix_spawnattr_setpgroup (License): Likewise.
64212         * modules/posix_spawnattr_getschedparam (License): Likewise.
64213         * modules/posix_spawnattr_setschedparam (License): Likewise.
64214         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
64215         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
64216         * modules/posix_spawnattr_getsigdefault (License): Likewise.
64217         * modules/posix_spawnattr_setsigdefault (License): Likewise.
64218         * modules/posix_spawnattr_getsigmask (License): Likewise.
64219         * modules/posix_spawnattr_setsigmask (License): Likewise.
64220         * modules/posix_spawnattr_destroy (License): Likewise.
64221         * modules/posix_spawn_file_actions_init (License): Likewise.
64222         * modules/posix_spawn_file_actions_addclose (License): Likewise.
64223         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
64224         * modules/posix_spawn_file_actions_addopen (License): Likewise.
64225         * modules/posix_spawn_file_actions_destroy (License): Likewise.
64226         * modules/getdtablesize (License): Likewise.
64227         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
64229 2010-10-26  Bruno Haible  <bruno@clisp.org>
64231         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
64232         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
64233         Cygwin and mingw.
64234         Suggested by Eric Blake.
64236 2010-10-26  Bruno Haible  <bruno@clisp.org>
64238         stdio: Work around compilation error due to renameat() on Solaris 10.
64239         * lib/stdio.in.h: Include <unistd.h> on Solaris.
64240         * lib/renameat.c: Don't include <unistd.h> here.
64241         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
64242         Reported by Paul Eggert and Eric Blake.
64244 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
64246         renameat: port to Solaris 10, which declares renameat in unistd.h
64248         * lib/renameat.c: Include unistd.h before stdio.h, because
64249         Solaris 10 declares renameat in unistd.h.  Problem encountered
64250         when building GNU tar 1.24 on Solaris 10.
64252 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
64254         fdopendir: fix C89 compilation
64255         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
64256         compilers.
64258 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
64260         inttostr: simplify by removing unnecessary redundancy
64261         * lib/anytostr.c: Don't include verify.h.
64262         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
64263         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
64264         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
64265         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
64266         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
64267         Likewise.
64268         * modules/inttostr (Depends-on): Remove 'verify'.
64270 2010-10-23  Bruno Haible  <bruno@clisp.org>
64272         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
64273         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
64274         Reported by Eric Blake.
64276 2010-10-23  Bruno Haible  <bruno@clisp.org>
64278         Tests: Fix LOCALE_JA on MirBSD 10.
64279         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
64280         to an UTF-8 locale.
64281         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
64282         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
64283         Reported by Eric Blake.
64285 2010-10-21  Bruno Haible  <bruno@clisp.org>
64287         nl_langinfo test: Avoid test failure on NetBSD 5.
64288         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
64289         Reported by Eric Blake.
64291 2010-10-21  Eric Blake  <eblake@redhat.com>
64293         c-stack: work around libsigsegv 2.8 bug
64294         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
64295         overflow on at least PowerPC64.
64297 2010-10-17  Bruno Haible  <bruno@clisp.org>
64299         userspec: Drop redundant file.
64300         * modules/userspec (Files): Remove lib/inttostr.h.
64302 2010-10-17  Bruno Haible  <bruno@clisp.org>
64304         nl_langinfo tests: Silence some warnings.
64305         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
64306         Reported by Jim Meyering.
64308 2010-10-17  Bruno Haible  <bruno@clisp.org>
64310         Make use of GCC's attribute __alloc_size__.
64311         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
64312         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
64313         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
64314         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
64315         __alloc_size__.
64316         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
64317         Suggested by Jim Meyering.
64319 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
64321         bootstrap: anchor .gitignore entries.
64322         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
64323         with...
64324         (insert_vc_ignore): ... this new function, which prepends `/' to
64325         all .gitignore entries before passing them to
64326         insert_sorted_if_absent.
64328 2010-10-16  Bruno Haible  <bruno@clisp.org>
64330         nextafter: Fix configure check.
64331         * modules/nextafter (configure.ac): Correct expected prototype.
64333 2010-10-16  Bruno Haible  <bruno@clisp.org>
64335         termios: Update documentation.
64336         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
64338 2010-10-16  Bruno Haible  <bruno@clisp.org>
64340         tests: Make them compile with TinyCC.
64341         * tests/test-strstr.c (main): Remove parentheses around array
64342         initializer.
64344 2010-10-15  Eric Blake  <eblake@redhat.com>
64346         ignore-value: make header idempotent
64347         * lib/ignore-value.h: Add double-inclusion guards.
64348         Reported by Stefan Berger.
64350 2010-10-15  Jim Meyering  <meyering@redhat.com>
64352         GNUmakefile: handle "stable" target, not "major"
64353         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
64354         lists in maint.mk and announce-gen.  Without this, "make stable"
64355         would fail to ensure that $(VERSION) is up to date.
64357 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
64359         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
64360         & co.
64362 2010-10-14  Bruno Haible  <bruno@clisp.org>
64364         vasnprintf: Don't set errno to 0.
64365         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
64366         block that sets it to 0.
64367         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
64369 2010-10-14  Bruno Haible  <bruno@clisp.org>
64371         socketlib: Fix.
64372         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
64373         gl_PREREQ_SYS_H_WINSOCK2.
64374         Reported by Ian Beckwith <ianb@erislabs.net>.
64376 2010-10-13  Jim Meyering  <meyering@redhat.com>
64378         test-select-stdin.c: avoid warn_unused_result warnings
64379         * tests/test-select-stdin.c: Include "macros.h".
64380         ASSERT that read and fflush succeed.
64382 2010-10-13  Jim Meyering  <meyering@redhat.com>
64384         git-version-gen: do require git-VC'd files in cwd
64385         * build-aux/git-version-gen: Reject a git version string
64386         if there are no commits associated with the current directory.
64387         This avoids an unlikely false-positive (unrelated dir whose parent
64388         repository also contains a tag matching v*), as pointed out
64389         by Giuseppe Scrivano in
64390         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
64392 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
64394         argv-iter: omit nonconforming declaration
64395         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
64396         enum arg_iter_err declaration, which doesn't conform to C99.
64397         Solaris 10 cc warns about this.
64399 2010-10-13  Eric Blake  <eblake@redhat.com>
64401         termios: fix compilation on mingw
64402         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
64403         (gl_TERMIOS_H): Adjust it on mingw.
64404         * modules/termios (Makefile.am): Substitute new key.
64405         * lib/termios.in.h (includes): Make include_next conditional.
64406         * doc/posix-headers/termios.texi (termios.h): Update
64407         documentation.
64408         Reported by Daniel P. Berrange.
64410 2010-10-13  Jim Meyering  <meyering@redhat.com>
64412         git-version-gen: don't require that .git/ be in the current dir
64413         * build-aux/git-version-gen: Adjust this script so that it works
64414         when run from any working directory beneath the top-level .git/-
64415         containing directory.  Inspired by a patch from Giuseppe Scrivano,
64416         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
64418         test-select: avoid warn_unused_result warnings
64419         * tests/test-select.c: Include "macros.h".
64420         ASSERT that each call to read, write, and pipe succeeds.
64421         While not technically required, also check each "close".
64422         * modules/select-tests (Files): Add tests/macros.h.
64424         test-symlinkat: remove declaration of unused local
64425         * tests/test-symlinkat.c (main): Remove unused local, "buf".
64427         test-inttostr: avoid shadowing warnings
64428         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
64429         and use malloc rather than the stack for the same reason as
64430         mentioned in the comment justifying the other allocation.
64432 2010-10-11  Bruno Haible  <bruno@clisp.org>
64434         stdlib: Allow multiple gnulib generated replacements to coexist.
64435         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
64436         Reported by Sam Steingold <sds@gnu.org>.
64438 2010-10-11  Jim Meyering  <meyering@redhat.com>
64440         fix a documentation typo
64441         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
64443 2010-10-11  Eric Blake  <eblake@redhat.com>
64445         futimens: work around Solaris 11 bug
64446         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
64447         * tests/test-futimens.h (test_futimens): Enhance, rather than
64448         weaken test.
64449         * doc/posix-functions/futimens.texi (futimens): Document the bug.
64451 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
64453         Indentation.
64454         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
64455         higher-level operators more to the left.
64457 2010-10-11  Jim Meyering  <meyering@redhat.com>
64459         test-futimens: avoid unwarranted test failure on Solaris 5.11
64460         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
64461         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
64462         because it tries to dereference the NULL name argument.
64464 2010-10-11  Bruno Haible  <bruno@clisp.org>
64466         Indentation.
64467         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
64468         indentation.
64470 2010-10-11  Jim Meyering  <meyering@redhat.com>
64472         spawn.in.h: make indentation consistent with parentheses
64473         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
64474         Make indentation consistent with parentheses.
64476 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
64478         Fix mismatched parens in previous commit
64479         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
64480         parens.
64482 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
64484         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
64486         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
64487         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
64488         * lib/malloca.c: Include "verify.h".
64489         (verify1): Remove, replacing with a verify call.
64490         * lib/relocwrapper.c (verify1): Likewise.
64491         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
64492         Likewise.
64493         * modules/malloca (Depends-on): Add 'verify'.
64494         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
64495         * modules/vasnprintf (Depends-on): Add 'verify'.
64496         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
64497         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
64498         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
64499         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
64500         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
64501         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
64502         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
64504         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
64506         Formerly the style was sometimes 2*X - 1, because the C standard
64507         was wrongly thought to disallow ?: in integral constant expressions.
64508         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
64509         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
64510         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
64511         * lib/stdint.in.h (_verify_intmax_size): Likewise.
64512         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
64513         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
64514         verify that time_t cannot be floating.
64516 2010-10-08  Eric Blake  <eblake@redhat.com>
64518         time: enforce recent POSIX ruling that time_t is integral
64519         * lib/time.in.h (__time_t_must_be_integral): Detect any
64520         problematic systems, allowing the rest of gnulib to assume POSIX.
64522 2010-10-08  Jim Meyering  <meyering@redhat.com>
64524         fdopendir: fix a bug on systems lacking openat and /proc support
64525         OpenBSD 4.7 is one such system.  The most noticeable effect was
64526         failure of any application making nontrivial use of fts: rm, du,
64527         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
64528           ./rm: traversal failed: `a': Bad file descriptor
64529         Debugging that, you see that even though FD 6 was closed just
64530         prior to the opendir call in fd_clone_opendir, its resulting
64531         dir->dd_fd was 8, rather than the expected value of 6:
64533         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
64534         93                close (fd);
64535         (gdb) n
64536         94                dir = fd_clone_opendir (dupfd);
64537         (gdb) n
64538         95                saved_errno = errno;
64539         (gdb) p dir->dd_fd
64540         $11 = 8
64542         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
64543         The problem is that on OpenBSD, fd_clone_opendir has to resort
64544         to using the old-style save/restore CWD mechanism, due to its
64545         lack of openat/proc support, and *that* would steal the FD (6)
64546         that opendir was supposed to use.
64548         The fix is to squirrel away the desired FD so that save_cwd uses a
64549         different one, and then free the dest FD right before calling opendir.
64550         That guarantees opendir will use the required file descriptor.
64552         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
64554 2010-10-08  Bruno Haible  <bruno@clisp.org>
64556         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
64557         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
64559 2010-10-08  Bruno Haible  <bruno@clisp.org>
64561         nanosleep: Make replacement POSIX compliant.
64562         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
64563         is out of range.
64564         Reported by Jim Meyering.
64566 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
64568         bootstrap: add hook for altering gnulib.mk, for Bison
64569         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
64570         the Bison bootstrapping process can rewrite file names and variables
64571         in this file before later parts of 'bootstrap' use the file.
64572         Bison wants to include lib/gnulib.mk from the top-level makefile,
64573         so it needs the file names in this file to be relative to the top
64574         level, not relative to lib; plus it needs variable names to be
64575         rewritten.
64576         (slurp): Use the new function.
64578         bootstrap: reformat for readability
64579         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
64581 2010-10-08  Eric Blake  <eblake@redhat.com>
64583         docs: update cygwin progress
64584         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
64585         1.7.7.
64586         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
64587         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
64588         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
64589         * doc/posix-functions/carg.texi (carg): Likewise.
64590         * doc/posix-functions/cargf.texi (cargf): Likewise.
64591         * doc/posix-functions/casin.texi (casin): Likewise.
64592         * doc/posix-functions/casinf.texi (casinf): Likewise.
64593         * doc/posix-functions/casinh.texi (casinh): Likewise.
64594         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
64595         * doc/posix-functions/catan.texi (catan): Likewise.
64596         * doc/posix-functions/catanf.texi (catanf): Likewise.
64597         * doc/posix-functions/catanh.texi (catanh): Likewise.
64598         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
64599         * doc/posix-functions/ccos.texi (ccos): Likewise.
64600         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
64601         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
64602         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
64603         * doc/posix-functions/cexp.texi (cexp): Likewise.
64604         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
64605         * doc/posix-functions/cimag.texi (cimag): Likewise.
64606         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
64607         * doc/posix-functions/clog.texi (clog): Likewise.
64608         * doc/posix-functions/clogf.texi (clogf): Likewise.
64609         * doc/posix-functions/conj.texi (conj): Likewise.
64610         * doc/posix-functions/conjf.texi (conjf): Likewise.
64611         * doc/posix-functions/cpow.texi (cpow): Likewise.
64612         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
64613         * doc/posix-functions/cproj.texi (cproj): Likewise.
64614         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
64615         * doc/posix-functions/creal.texi (creal): Likewise.
64616         * doc/posix-functions/crealf.texi (crealf): Likewise.
64617         * doc/posix-functions/csin.texi (csin): Likewise.
64618         * doc/posix-functions/csinf.texi (csinf): Likewise.
64619         * doc/posix-functions/csinh.texi (csinh): Likewise.
64620         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
64621         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
64622         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
64623         * doc/posix-functions/ctan.texi (ctan): Likewise.
64624         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
64625         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
64626         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
64627         * doc/posix-headers/complex.texi (complex.h): Likewise.
64629 2010-10-07  Jim Meyering  <meyering@redhat.com>
64631         parse-datetime: avoid compilation failure on OpenBSD 4.7
64632         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
64633         This works around a compilation failure on OpenBSD 4.7:
64634         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
64636 2010-10-07  Eric Blake  <eblake@redhat.com>
64638         docs: update cygwin progress
64639         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
64640         1.7.6.
64641         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
64642         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
64643         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
64644         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
64645         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
64646         Likewise.
64647         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
64648         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
64649         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
64650         Likewise.
64651         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
64652         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
64653         Likewise.
64654         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
64655         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
64656         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
64657         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
64658         Likewise.
64659         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
64660         Likewise.
64661         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
64663         docs: update parse-datetime history
64664         * doc/parse-datetime.texi (Authors of parse_datetime): Better
64665         documentation of this function's history and alternatives.
64667         cygwin: use more robust version check
64668         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
64669         exclude an eventual cygwin 1.9.1.
64670         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
64671         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
64672         (gl_FUNC_STRCASESTR): Likewise.
64673         Reported by Bruno Haible.
64675 2010-10-06  Bruno Haible  <bruno@clisp.org>
64677         string, sys_select: Avoid #including large headers unless necessary.
64678         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
64679         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
64680         OSF/1, BeOS, Haiku.
64681         Reported by Jim Meyering.
64683 2010-10-05  Eric Blake  <eblake@redhat.com>
64685         memmem, strstr, strcasestr: fix bug with long periodic needle
64686         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
64687         periodic needle having false positive.
64688         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
64689         and cygwin 1.7.7.
64690         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
64691         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
64692         (gl_FUNC_STRCASESTR): Likewise.
64693         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
64694         * tests/test-memmem.c (main): Expose the bug.
64695         * tests/test-strcasestr.c (main): Likewise.
64696         * tests/test-strstr.c (main): Likewise.
64697         * tests/test-c-strcasestr.c (main): Likewise.
64698         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
64699         * doc/posix-functions/strstr.texi (strstr): Likewise.
64700         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
64701         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
64703 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
64705         parse-datetime: do some more renaming
64706         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
64707         parse_datetime, not get_date.  Mention the renaming.
64708         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
64709         in comments.
64710         * m4/bison.m4: Likewise.
64712 2010-10-05  Eric Blake  <eblake@redhat.com>
64714         parse-datetime: better name than get_date
64715         * NEWS: Reword the deprecation notice.
64716         * modules/get_date: Rename to modules/parse-datetime.
64717         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
64718         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
64719         * lib/get_date.y: Rename to lib/parse-datetime.y.
64720         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
64721         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
64722         * doc/getdate.texi: Provide fallback wrapper.
64723         * lib/getdate.h: Move guts, and wrap...
64724         * lib/parse-datetime.h: ...new file.
64725         * lib/parse-datetime.y (get_date): Rename...
64726         (parse_datetime): ...to this.
64727         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
64728         (gl_PARSE_DATETIME): ...to this.
64729         * doc/posix-functions/getdate.texi (get_date): Provide fallback
64730         documentation.
64731         * modules/getdate (Files): Provide fallback docs and header.
64732         (Notice, Depends-on): Update references.
64733         * tests/test-parse-datetime.c: Likewise.
64734         * DEPENDENCIES: Likewise.
64735         * MODULES.html.sh (Date and time <time.h>): Likewise.
64736         * doc/parse-datetime.texi (Date input formats)
64737         (Authors of parse_datetime): Likewise.
64738         * modules/parse-datetime (Files, configure.ac, Makefile.am)
64739         (Include): Likewise.
64740         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
64741         * gnulib-tool: Likewise.
64742         * m4/bison.m4 (gl_BISON): Likewise.
64743         Suggested by Bruno Haible.
64745 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
64747         more ports to Solaris tr, which needs [] around ranges
64748         * gnulib-tool: Solaris tr needs [] around ranges.
64749         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
64750         * tests/test-pipe-filter-gi1.c (main): Likewise.
64751         * tests/test-pipe-filter-ii1.c (main): Likewise.
64753 2010-10-05  Eric Blake  <eblake@redhat.com>
64755         bootstrap: fix Solaris regression
64756         * build-aux/bootstrap (check_versions): Solaris tr still needs []
64757         around ranges.
64758         Reported by Pádraig Brady.
64760         bootstrap: work with pkg-config
64761         * build-aux/bootstrap (check_versions): Also transliterate - in
64762         prerequisite name.
64763         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
64764         prerequisites that were already found, to avoid confusion.
64765         Reported by Justin Clift.
64767         faccessat: remove unused wrappers
64768         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
64769         presence of these wrappers dragged in -lgen on Solaris.
64770         Reported by Clemens Brogi; fix suggested by Paul Eggert.
64772 2010-10-05  Jim Meyering  <meyering@redhat.com>
64774         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
64775         * Makefile (sc_pragma_columns): New syntax-check rule.
64777 2010-10-04  Bruno Haible  <bruno@clisp.org>
64779         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
64780         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
64781         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
64782         Reported by Bruce Korb and Eric Blake.
64784 2010-10-04  Bruno Haible  <bruno@clisp.org>
64786         threadlib: Make option --with-libpth-prefix work.
64787         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
64788         use $LIBPTH, not just -lpth.
64790 2010-10-04  Bruno Haible  <bruno@clisp.org>
64792         Avoid line length limitation from HP NonStop system header files.
64793         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
64794         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
64795         * lib/ctype.in.h: Likewise.
64796         * lib/dirent.in.h: Likewise.
64797         * lib/errno.in.h: Likewise.
64798         * lib/fcntl.in.h: Likewise.
64799         * lib/float.in.h: Likewise.
64800         * lib/getopt.in.h: Likewise.
64801         * lib/iconv.in.h: Likewise.
64802         * lib/inttypes.in.h: Likewise.
64803         * lib/langinfo.in.h: Likewise.
64804         * lib/locale.in.h: Likewise.
64805         * lib/math.in.h: Likewise.
64806         * lib/netdb.in.h: Likewise.
64807         * lib/netinet_in.in.h: Likewise.
64808         * lib/poll.in.h: Likewise.
64809         * lib/pthread.in.h: Likewise.
64810         * lib/pty.in.h: Likewise.
64811         * lib/sched.in.h: Likewise.
64812         * lib/se-selinux.in.h: Likewise.
64813         * lib/search.in.h: Likewise.
64814         * lib/signal.in.h: Likewise.
64815         * lib/spawn.in.h: Likewise.
64816         * lib/stdarg.in.h: Likewise.
64817         * lib/stddef.in.h: Likewise.
64818         * lib/stdint.in.h: Likewise.
64819         * lib/stdio.in.h: Likewise.
64820         * lib/stdlib.in.h: Likewise.
64821         * lib/string.in.h: Likewise.
64822         * lib/strings.in.h: Likewise.
64823         * lib/sys_file.in.h: Likewise.
64824         * lib/sys_ioctl.in.h: Likewise.
64825         * lib/sys_select.in.h: Likewise.
64826         * lib/sys_socket.in.h: Likewise.
64827         * lib/sys_stat.in.h: Likewise.
64828         * lib/sys_time.in.h: Likewise.
64829         * lib/sys_times.in.h: Likewise.
64830         * lib/sys_utsname.in.h: Likewise.
64831         * lib/sys_wait.in.h: Likewise.
64832         * lib/sysexits.in.h: Likewise.
64833         * lib/termios.in.h: Likewise.
64834         * lib/time.in.h: Likewise.
64835         * lib/unistd.in.h: Likewise.
64836         * lib/wchar.in.h: Likewise.
64837         * lib/wctype.in.h: Likewise.
64838         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
64839         * modules/ctype (Makefile.am): Likewise.
64840         * modules/dirent (Makefile.am): Likewise.
64841         * modules/errno (Makefile.am): Likewise.
64842         * modules/fcntl-h (Makefile.am): Likewise.
64843         * modules/float (Makefile.am): Likewise.
64844         * modules/getopt-posix (Makefile.am): Likewise.
64845         * modules/iconv-h (Makefile.am): Likewise.
64846         * modules/inttypes (Makefile.am): Likewise.
64847         * modules/langinfo (Makefile.am): Likewise.
64848         * modules/locale (Makefile.am): Likewise.
64849         * modules/math (Makefile.am): Likewise.
64850         * modules/netdb (Makefile.am): Likewise.
64851         * modules/netinet_in (Makefile.am): Likewise.
64852         * modules/poll-h (Makefile.am): Likewise.
64853         * modules/pthread (Makefile.am): Likewise.
64854         * modules/pty (Makefile.am): Likewise.
64855         * modules/sched (Makefile.am): Likewise.
64856         * modules/search (Makefile.am): Likewise.
64857         * modules/selinux-h (Makefile.am): Likewise.
64858         * modules/signal (Makefile.am): Likewise.
64859         * modules/spawn (Makefile.am): Likewise.
64860         * modules/stdarg (Makefile.am): Likewise.
64861         * modules/stddef (Makefile.am): Likewise.
64862         * modules/stdint (Makefile.am): Likewise.
64863         * modules/stdio (Makefile.am): Likewise.
64864         * modules/stdlib (Makefile.am): Likewise.
64865         * modules/string (Makefile.am): Likewise.
64866         * modules/strings (Makefile.am): Likewise.
64867         * modules/sys_file (Makefile.am): Likewise.
64868         * modules/sys_ioctl (Makefile.am): Likewise.
64869         * modules/sys_select (Makefile.am): Likewise.
64870         * modules/sys_socket (Makefile.am): Likewise.
64871         * modules/sys_stat (Makefile.am): Likewise.
64872         * modules/sys_time (Makefile.am): Likewise.
64873         * modules/sys_times (Makefile.am): Likewise.
64874         * modules/sys_utsname (Makefile.am): Likewise.
64875         * modules/sys_wait (Makefile.am): Likewise.
64876         * modules/sysexits (Makefile.am): Likewise.
64877         * modules/termios (Makefile.am): Likewise.
64878         * modules/time (Makefile.am): Likewise.
64879         * modules/unistd (Makefile.am): Likewise.
64880         * modules/wchar (Makefile.am): Likewise.
64881         * modules/wctype (Makefile.am): Likewise.
64883 2010-10-04  Bruno Haible  <bruno@clisp.org>
64885         read-file tests: Avoid a test failure on NonStop Kernel.
64886         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
64887         a regular file.
64888         Reported by Joachim Schmitz <schmitz@hp.com>.
64890 2010-10-03  Bruno Haible  <bruno@clisp.org>
64892         gnulib-tool: Fixes for --create-testdir with --libtool.
64893         * gnulib-tool (func_get_automake_snippet): Don't augment
64894         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
64895         an executable.
64896         (func_create_testdir): Handle module 'alloca' like func_import.
64897         Reported by Bruce Korb <bruce.korb@gmail.com>.
64899 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
64901         Avoid some lines longer than 80 characters.
64902         * lib/stdint.in.h: Break long comment lines.
64903         * lib/math.in.h: Likewise.
64904         (_GL_NUM_UINT_WORDS): New macro, for readability.
64905         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
64906         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
64907         * lib/stdlib.in.h: Likewise.
64908         * lib/spawn.in.h: Likewise.
64909         * lib/sys_socket.in.h: Update an URL.
64910         * lib/sys_stat.in.h: Break long line.
64912 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
64914         Improve pmccabe2html.
64915         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
64916         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
64917         when the sources change. Remove the line in the HTML about "Used
64918         ranges" (which implied that there might be other unused ranges),
64919         rename "Resume" to "Summary" (easier to understand for more users).
64920         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
64921         styles, and some unnecessary blank lines.
64923 2010-10-03  Bruno Haible  <bruno@clisp.org>
64924             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
64926         acl: Add support for ACLs on NonStop Kernel.
64927         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
64928         Check whether the function aclsort() exists.
64929         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
64930         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
64931         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
64932         (acl_nontrivial [HAVE_ACLSORT]: New function.
64933         (file_has_acl): Implement for NonStop Kernel.
64934         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
64935         (qset_acl): Implement for NonStop Kernel.
64936         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
64937         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
64938         (main): Implement for NonStop Kernel.
64939         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
64940         Kernel. Handle this flavor.
64941         * tests/test-set-mode-acl.sh: Likewise.
64942         * tests/test-copy-acl.sh: Likewise.
64943         * tests/test-copy-file.sh: Likewise.
64945 2010-10-03  Bruno Haible  <bruno@clisp.org>
64947         Info about ACLs on NonStop Kernel.
64948         * doc/acl-resources.txt: Add info about NonStop Kernel.
64949         References by Joachim Schmitz <schmitz@hp.com>.
64951 2010-10-02  Bruno Haible  <bruno@clisp.org>
64953         Define missing EDQUOT on NonStop Kernel.
64954         * lib/errno.in.h (EDQUOT): Assign a value if missing.
64955         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
64956         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
64957         missing.
64958         * doc/posix-headers/errno.texi: Mention the NSK bug.
64959         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
64960         Reported by Joachim Schmitz <schmitz@hp.com>.
64962 2010-10-02  Bruno Haible  <bruno@clisp.org>
64964         Update doc for POSIX:2008.
64965         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
64966         Update URL of POSIX specification.
64968 2010-10-02  Bruno Haible  <bruno@clisp.org>
64970         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
64971         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
64972         from gnulib, not from Automake.
64974 2010-10-02  Bruno Haible  <bruno@clisp.org>
64976         New module 'system-posix'.
64977         * modules/system-posix: New file.
64978         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
64979         module is present.
64980         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
64981         GNULIB_SYSTEM_POSIX.
64982         * modules/stdlib (Depends-on): Remove sys_wait.
64983         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
64984         * doc/posix-functions/system.texi: Mention the new module.
64985         * doc/posix-headers/stdlib.texi: Likewise.
64986         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
64987         define test_sys_wait_macros to a no-op.
64988         Reported by Sam Steingold <sds@gnu.org>.
64990 2010-09-30  Bruno Haible  <bruno@clisp.org>
64992         More renaming from 'getdate' to 'get_date'.
64993         * doc/get_date.texi: Renamed from doc/getdate.texi.
64994         * modules/get_date (Files): Update.
64995         * MODULES.html.sh (Date and time <time.h>): Update.
64996         * DEPENDENCIES: Update.
64997         * gnulib-tool: Update comment.
64998         * m4/bison.m4 (gl_BISON): Likewise.
64999         * m4/get_date.m4 (gl_GET_DATE): Likewise.
65001 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
65003         bootstrap: support ACLOCAL_FLAGS during aclocal
65004         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
65005         can add additional -I dir for third-party .m4 files.
65007 2010-09-30  Eric Blake  <eblake@redhat.com>
65009         bootstrap: use glibtoolize on MacOS
65010         * build-aux/bootstrap (check_versions): Convert libtool into
65011         libtoolize.
65012         (tool search): Move libtool check earlier, and look for
65013         glibtoolize for MacOS.
65014         (gnulib_tool_options): Auto-add --libtool when appropriate.
65015         Reported by Justin Clift.
65017         poll: fix typo that broke test on MacOS
65018         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
65019         Reported by Justin Clift.
65021         getdate: rename to get_date
65022         Note: getdate.h is not renamed, to minimize client impact.
65023         * modules/getdate: Mark obsolete.  Move old contents...
65024         * modules/get_date: ...to new module name.
65025         * modules/getdate-tests: Move...
65026         * modules/get_date-tests: ...here.
65027         * m4/getdate.m4: Move...
65028         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
65029         * lib/getdate.y: Move...
65030         * lib/get_date.y: ...here.
65031         * tests/test-getdate.c: Move...
65032         * tests/test-get_date.c: ...here.
65033         * doc/posix-functions/getdate.texi (getdate): Update name.
65034         * NEWS: Mention the change.
65036 2010-09-29  Bruno Haible  <bruno@clisp.org>
65038         Separate the module 'waitpid' from the module 'sys_wait'.
65039         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
65040         present.
65041         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
65042         gl_MODULE_INDICATOR_FOR_TESTS.
65043         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
65044         * modules/sys_wait (Depends-on): Remove waitpid.
65045         (Makefile.am): Substitute GNULIB_WAITPID.
65046         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
65047         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
65048         signature only if the 'waitpid' module is present.
65049         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
65050         * NEWS: Mention the change.
65051         * modules/grantpt (Depends-on): Add waitpid.
65052         * modules/wait-process (Depends-on): Likewise.
65054 2010-09-29  Bruno Haible  <bruno@clisp.org>
65056         More tests for module 'sys_wait'.
65057         * modules/sys_wait-c++-tests: New file.
65058         * tests/test-sys_wait-c++.cc: New file.
65059         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
65060         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
65062 2010-09-29  Bruno Haible  <bruno@clisp.org>
65064         New module 'waitpid'.
65065         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
65066         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
65067         Don't include <process.h>.
65068         (waitpid): Declare only, using modern idiom.
65069         * m4/waitpid.m4: New file.
65070         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
65071         * modules/waitpid: New file.
65072         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
65073         (Makefile.am): Update.
65074         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
65076 2010-09-28  Bruno Haible  <bruno@clisp.org>
65078         poll: Assume ANSI C.
65079         * lib/poll.c (poll): Use an ANSI C declaration.
65081 2010-09-28  Bruno Haible  <bruno@clisp.org>
65083         poll-h: Create poll.h on all platforms.
65084         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
65085         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
65086         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
65087         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
65088         (gl_REPLACE_POLL_H): Don't set POLL_H.
65089         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
65090         * modules/poll-h (Depends-on): Add include_next.
65091         (Makefile.am): Create poll.h unconditionally. Substitute also
65092         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
65094 2010-09-28  Bruno Haible  <bruno@clisp.org>
65096         Tests for module 'poll-h'.
65097         * modules/poll-h-c++-tests: New file.
65098         * tests/test-poll-h-c++.cc: New file.
65100         Tests for module 'poll-h'.
65101         * modules/poll-h-tests: New file.
65102         * tests/test-poll-h.c: New file.
65104 2010-09-28  Bruno Haible  <bruno@clisp.org>
65106         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
65107         * modules/poll-h (Depends-on): Add 'extensions'.
65109 2010-09-28  Bruno Haible  <bruno@clisp.org>
65111         New module 'poll-h'.
65112         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
65113         (poll): Use modern idiom.
65114         * modules/poll-h: New file.
65115         * modules/poll (Files): Remove lib/poll.in.h.
65116         (Depends-on): Add poll-h.
65117         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
65118         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
65119         * m4/poll_h.m4: New file.
65120         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
65121         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
65122         and invoke gl_REPLACE_POLL_H.
65123         * lib/poll.c: Use common idiom.
65124         * tests/test-poll.c: Likewise.
65125         * doc/posix-headers/poll.texi: Mention the poll-h module.
65126         Suggested by Eric Blake.
65128 2010-09-26  Bruno Haible  <bruno@clisp.org>
65130         sys_wait: Implement WSTOPSIG.
65131         * lib/sys_wait.in.h (WSTOPSIG): New macro.
65132         Reported by Simon Josefsson.
65134 2010-09-26  Simon Josefsson  <simon@josefsson.org>
65136         stdlib, sys_wait: Avoid compilation error on mingw.
65137         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
65139 2010-09-26  Bruno Haible  <bruno@clisp.org>
65141         stdlib tests: Avoid code duplication.
65142         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
65143         * modules/sys_wait-tests (Files): Likewise.
65144         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
65145         * tests/test-stdlib.c: Include test-sys_wait.h.
65146         (main): Invoke test_sys_wait_macros.
65147         * tests/test-sys_wait.c: Include test-sys_wait.h.
65148         (main): Invoke test_sys_wait_macros.
65150 2010-09-25  Simon Josefsson  <simon@josefsson.org>
65152         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
65153         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
65154         sure Windows sockets are working before calling getaddrinfo.
65155         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
65156         * doc/gnulib.texi (Windows sockets): Fix typo.
65158 2010-09-25  Bruno Haible  <bruno@clisp.org>
65160         Tests for module 'regex-quote'.
65161         * modules/regex-quote-tests: New file.
65162         * tests/test-regex-quote.c: New file.
65164         New module 'regex-quote'.
65165         * lib/regex-quote.h: New file.
65166         * lib/regex-quote.c: New file.
65167         * modules/regex-quote: New file.
65168         Suggested by Reuben Thomas <rrt@sc3d.org>.
65170 2010-09-24  Bruno Haible  <bruno@clisp.org>
65172         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
65173         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
65175 2010-09-23  Bruno Haible  <bruno@clisp.org>
65177         setenv: Relax license.
65178         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
65179         Blake.
65180         Requested by Eric Blake.
65182 2010-09-22  Bruno Haible  <bruno@clisp.org>
65184         termios: Relax license.
65185         * modules/termios (License): Change to LGPLv2+.
65186         Requested by Eric Blake.
65188 2010-09-22  Bruno Haible  <bruno@clisp.org>
65190         threadlib: Allow the package to change the default to 'no'.
65191         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
65192         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
65193         Reported by Paul Eggert.
65195 2010-09-22  Pádraig Brady  <P@draigbrady.com>
65196             Bruno Haible  <bruno@clisp.org>
65198         Fix endless loop in mbmemcasecoll.
65199         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
65200         byte.
65201         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
65203 2010-09-22  Bruno Haible  <bruno@clisp.org>
65205         Tests for module 'memcoll'.
65206         * modules/memcoll-tests: New file.
65207         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
65209         memcoll, xmemcoll: Clarify size vs. length.
65210         * modules/memcoll.c (memcoll0): Clarify specification.
65211         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
65212         passed to collate_error.
65214 2010-09-22  Bruno Haible  <bruno@clisp.org>
65216         Tests for module 'memcasecmp'.
65217         * modules/memcasecmp-tests: New file.
65218         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
65220 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65222         * lib/pthread.in.h: Add split double-inclusion guard, and include
65223         system <pthread.h> if there is one.  Use @@-style as in other
65224         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
65225         pthread.h doesn't.
65226         (pthread_mutexattr_destroy, pthread_mutexattr_init):
65227         (pthread_mutexattr_settype, pthread_mutex_trylock):
65228         New static inline functions, if there's no system <pthread.h>.
65229         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
65230         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
65231         Approximate with mutexes if the system lacks spinlocks, as in
65232         MacOS.
65233         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
65234         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
65235         @@-style.  Check for spinlocks separately.
65236         (gl_PTHREAD_DEFAULTS): New macro.
65237         * modules/pthread: Redo to use a more typical style for in.h files.
65239 2010-09-21  Eric Blake  <eblake@redhat.com>
65241         net_if: enhance tests
65242         * tests/test-net_if.c (main): Move signature checks earlier.
65243         Print failures to stderr.
65244         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
65245         Document the bug that we do not yet fix.
65247 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
65249         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
65250         about gnulib, not GSS.
65252 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
65254         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
65255         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
65256         for Emacs.
65257         * build-aux/pmccabe2html: Make Makefile.am example code more
65258         cut-and-paste friendly.
65260 2010-09-21  Simon Josefsson  <simon@josefsson.org>
65262         * tests/test-net_if.c: New file.
65263         * modules/net_if-tests: New file.
65265 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
65267         pthread: add pthread_spin_destroy
65268         * lib/pthread.in.h (pthread_spin_destroy): New function.
65270 2010-09-19  Bruno Haible  <bruno@clisp.org>
65272         gnulib-tool: Fix --help output.
65273         * gnulib-tool (func_usage): Fix help message.
65274         Reported by Reuben Thomas <rrt@sc3d.org>.
65276 2010-09-18  Jim Meyering  <meyering@redhat.com>
65278         maint.mk: avoid unexpanded \n in two diagnostics
65279         * top/maint.mk (sc_prohibit_always_true_header_tests):
65280         Don't use a literal \n in a halt=... assignment.  It would not be
65281         expanded, and the two \n bytes would appear in the diagnostic output
65282         rather than the desired newline.  Use halt=$$(printf ... instead.
65283         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
65285 2010-09-18  Bruno Haible  <bruno@clisp.org>
65287         netinet_in: Doc tweak.
65288         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
65289         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
65291 2010-09-18  Jim Meyering  <meyering@redhat.com>
65293         init.sh: correct an outdated comment
65294         * tests/init.sh (create_exe_shims_):  s/function/alias/
65296         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
65297         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
65298         a file named "*.exe" is removed between the glob expansion and the
65299         processing of that oddly named file.
65301 2010-09-17  Eric Blake  <eblake@redhat.com>
65303         mirbsd: add some more support
65304         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
65305         in BSD family.
65306         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
65307         devices as OpenBSD.
65308         * m4/host-os.m4 (mirbsd): Add MirBSD.
65310         tests: fix unportable assumption on sys/wait.h
65311         * tests/test-sys_wait.c (main): Relax test.
65312         * tests/test-stdlib.c (main): Likewise.
65314         init.sh: accommodate directory with no .exes
65315         * tests/init.sh: Accomodate directory containing only scripts.
65317         tests: avoid compiler warning
65318         * tests/test-stdlib.c (main): Use the variable.
65320         fdutimens, fdutimensat: update signature, again
65321         * lib/utimens.h (gl_futimens): Delete, and move signature...
65322         (fdutimens): ...here.
65323         (fdutimensat): Rearrange signature.
65324         (lutimensat): Rename variable for clarity.
65325         * lib/fdutimensat.c (fdutimensat): Update signature.
65326         * lib/utimens.c (fdutimens): Likewise.
65327         (gl_futimens): Delete.
65328         (utimens, lutimens): Update callers.
65329         * lib/futimens.c (futimens): Likewise.
65330         * tests/test-fdutimensat.c: Likewise.
65331         * tests/test-utimens.c: Likewise.
65332         * tests/test-futimens.h: Update comment.
65333         * NEWS: Mention this.
65334         Suggested by Paul Eggert.
65336 2010-09-17  Bruno Haible  <bruno@clisp.org>
65338         Take over the maintenance of some older macros from Autoconf.
65339         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
65340         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
65341         GNU Autoconf.
65342         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
65343         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
65345 2010-09-17  Eric Blake  <eblake@redhat.com>
65347         fdutimensat: drop atflag validation
65348         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
65349         with valid fd, to close a race scenario where futimens is
65350         unsupported and FILE was replaced by a symlink.
65351         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
65352         accordingly.
65353         Suggested by Paul Eggert.
65355 2010-09-16  Bruno Haible  <bruno@clisp.org>
65357         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
65358         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
65360 2010-09-16  Bruno Haible  <bruno@clisp.org>
65362         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
65363         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
65364         login_tty exists.
65365         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
65367 2010-09-16  Bruno Haible  <bruno@clisp.org>
65369         login_tty: Make the replacement code work on BSD systems.
65370         * lib/login_tty.c: Include <sys/ioctl.h>.
65371         (login_tty): Use ioctl TIOCSCTTY when available.
65372         * modules/login_tty (Depends-on): Add sys_ioctl.
65373         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
65375 2010-09-16  Bruno Haible  <bruno@clisp.org>
65377         login_tty: Stricter unit test.
65378         * modules/login_tty-tests (Depends-on): Add tcgetsid.
65379         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
65380         and tcgetsid() after login_tty.
65381         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
65383 2010-09-16  Bruno Haible  <bruno@clisp.org>
65385         New module 'tcgetsid'.
65386         * lib/tcgetsid.c: New file.
65387         * m4/tcgetsid.m4: New file.
65388         * modules/tcgetsid: New file.
65389         * modules/termios (Depends-on): Add c++defs, warn-on-use.
65390         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
65391         GNULIB_TCGETSID, HAVE_TCGETSID.
65392         * lib/termios.in.h: Include <sys/types.h>.
65393         (tcgetsid): New declaration.
65394         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
65395         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
65396         * doc/posix-functions/tcgetsid.texi: Mention the new module.
65397         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
65399 2010-09-16  Bruno Haible  <bruno@clisp.org>
65401         Tests for module 'termios'.
65402         * modules/termios-c++-tests: New file.
65403         * modules/termios-tests: New file.
65404         * tests/test-termios-c++.cc: New file.
65405         * tests/test-termios.c: New file.
65407         New module 'termios'.
65408         * modules/termios: New file.
65409         * lib/termios.in.h: New file.
65410         * m4/termios_h.m4: New file.
65411         * doc/posix-headers/termios.texi: Mention the new module.
65413 2010-09-16  Eric Blake  <eblake@redhat.com>
65415         fdutimensat: add an atflag parameter
65416         * lib/fdutimensat.c (fdutimensat): Add new parameter.
65417         * lib/utimens.h (fdutimensat): Update prototype.
65418         * tests/test-fdutimensat.c: Adjust test to match.
65419         * NEWS: Document the change.
65420         Suggested by Paul Eggert.
65422 2010-09-16  Bruno Haible  <bruno@clisp.org>
65424         Fix typos in comments.
65425         * lib/striconveh.h: Fix typo in comment.
65426         * lib/login_tty.c (login_tty): Likewise.
65428 2010-09-15  Bruno Haible  <bruno@clisp.org>
65430         stdlib: clarify MirBSD WEXITSTATUS bug
65431         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
65432         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
65434 2010-09-15  Eric Blake  <eblake@redhat.com>
65436         stdlib: work around MirBSD WEXITSTATUS bug
65437         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
65438         * modules/stdlib (Depends-on): Add sys_wait.
65439         * tests/test-sys_wait.c (main): Enhance test.
65440         * tests/test-stdlib.c (main): Likewise.
65441         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
65443         docs: mention MacOS issue with WEXITSTATUS(constant)
65444         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
65445         issue.
65446         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
65448         strnlen: add tests
65449         * modules/strnlen-tests: New file.
65450         * tests/test-strnlen.c: Likewise.
65452 2010-09-14  Bruno Haible  <bruno@clisp.org>
65454         unistr/base: Avoid link errors when module 'libunistring' is also used.
65455         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
65456         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
65457         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
65458         Declare also when HAVE_LIBUNISTRING is set.
65459         Reported by Pádraig Brady <P@draigbrady.com>.
65461 2010-09-14  Eric Blake  <eblake@redhat.com>
65463         test-rawmemchr: make more robust
65464         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
65465         (Depends-on, configure.ac): Add needed prerequisites to use it.
65466         * modules/memchr-tests (Files, Depends-on, configure.ac):
65467         Likewise, to avoid implicit reliance on memchr module prereqs.
65468         * tests/test-memchr.c (main): Ensure proper masking.
65469         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
65470         reads.
65472         memchr: detect glibc Alpha bug
65473         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
65474         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
65475         Alpha.
65476         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
65477         * tests/test-memchr.c (main): Enhance test.
65478         Reported by Nelson H. F. Beebe.
65480 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
65482         fts, getcwd, glob: audit for dirfd returning -1
65483         * lib/fts.c (opendir): Remove #define; no longer used.
65484         (opendirat): New arg PDIR_FD.  All callers changed.
65485         (fts_build, _opendir2): Use new opendirat to avoid the need for
65486         dirfd, or for checking whether dirfd returns a negative value.
65487         Don't use opendir; always use openat followed by fdopendir.
65488         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
65489         it.
65490         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
65491         returns -1 here.
65492         * modules/fts (Depends-on): Remove dirfd.
65493         * modules/getcwd (Depends-on): Likewise.
65495 2010-09-13  Eric Blake  <eblake@redhat.com>
65497         float: fix broken MirBSD header
65498         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
65499         * doc/posix-headers/float.texi (float.h): Document it.
65501 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
65503         fts: use O_NOFOLLOW to avoid race condition when opening a directory
65504         * lib/fts.c (opendirat): New arg extra_flags.
65505         (__opendir2): Use it to avoid following symlinks when opening
65506         a directory, if symlinks are not supposed to be followed.  See
65507         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00213.html>.
65509         fdopendir: preserve argument fd before returning
65510         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
65511         (fdopendir_with_dup, fd_clone_opendir): New static functions.
65512         (fdopendir): Use them, arranging for FD to be open to the same
65513         directory that it was when it started.  (It might be temporarily
65514         closed while fdopendir is running, so this not thread- or
65515         signal-safe.)  Be careful to do the right thing even when file
65516         descriptors are scarce and dup fails with errno == EMFILE.  See
65517         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00208.html>.
65519 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
65521         regex: Pass the system regex if its only problem is 32-bit regoff_t.
65522         * NEWS: Document change.
65523         * m4/regex.m4: Disable test for regoff_t size.
65525 2010-09-13  Jim Meyering  <meyering@redhat.com>
65527         fts: don't operate on an invalid file descriptor after failed dup
65528         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
65529         negative file descriptor.
65531 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
65533         savedir: add streamsavedir, deprecate fdsavedir
65534         * NEWS: Mention deprecation of fdsavedir.
65535         * lib/savedir.c (streamsavedir): New extern function, whose name
65536         ends in "savedir" to be consistent with the others.  This differs
65537         from savedirstream in that it doesn't close its argument.  The
65538         next version of GNU tar will use this instead of fdsavedir, to
65539         avoid some race conditions and conserve file descriptors.
65540         (savedirstream): Reimplement as a wrapper around streamsavedir.
65541         (fdsavedir): Add a comment deprecating this function.  As far as
65542         I know, only GNU tar used it, and GNU tar doesn't need it any more.
65543         * lib/savedir.h (streamsavedir): New decl.
65544         (fdsavedir): Add a comment deprecating this.
65546 2010-09-10  Bruno Haible  <bruno@clisp.org>
65548         langinfo: Fix last commit.
65549         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
65550         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
65551         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
65553 2010-09-10  Bruno Haible  <bruno@clisp.org>
65555         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
65556         * lib/progreloc.c (O_EXEC): Define fallback.
65558 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
65560         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
65561         * NEWS: Document recent changes to fcntl-h.
65562         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
65563         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
65564         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
65565         Similarly for O_SEARCH; this last was already true, but not documented.
65566         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
65567         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
65568         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
65569         Likewise.
65570         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
65571         is zero, not whether it is defined.
65572         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
65573         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
65574         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
65576 2010-09-10  Bruno Haible  <bruno@clisp.org>
65578         langinfo, nl_langinfo: Fix for IRIX 5.3.
65579         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
65580         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
65581         HAVE_LANGINFO_YESEXPR.
65582         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
65583         HAVE_LANGINFO_YESEXPR.
65584         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
65585         HAVE_LANGINFO_T_FMT_AMPM is 0.
65586         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
65587         HAVE_LANGINFO_YESEXPR is 0.
65588         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
65589         NOEXPR.
65590         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
65591         * doc/posix-functions/nl_langinfo.texi: Likewise.
65592         Reported by Eric Blake.
65594 2010-09-10  Bruno Haible  <bruno@clisp.org>
65596         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
65597         * doc/glibc-functions/login_tty.texi: Mention the include file problem
65598         on FreeBSD 8.0 and OpenBSD 4.6.
65599         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
65600         * m4/pty_h.m4 (gl_PTY_H): Likewise.
65601         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
65602         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
65603         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
65604         ac_includes_default.
65605         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
65607 2010-09-09  Eric Blake  <eblake@redhat.com>
65609         strsignal: work around NetBSD bug
65610         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
65611         * lib/string.in.h (includes): Likewise.
65612         * doc/posix-functions/strsignal.texi (strsignal): Document the
65613         bug.
65614         Reported by Nelson H. F. Beebe.
65616         gnulib-tool: work with NetBSD /bin/sh
65617         * gnulib-tool (func_cache_var, func_cache_lookup_module)
65618         (func_get_description, func_get_comment, func_get_status)
65619         (func_get_notice, func_get_applicability, func_get_filelist)
65620         (func_get_dependencies, func_get_autoconf_early_snippet)
65621         (func_get_autoconf_snippet, func_get_automake_snippet)
65622         (func_get_include_directive, func_get_link_directive)
65623         (func_get_license, func_get_maintainer, func_import): Avoid
65624         shell syntax errors from parsing syntax extensions.
65626 2010-09-09  Bruno Haible  <bruno@clisp.org>
65628         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
65629         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
65630         a reliable way to determine whether the 'alias' command works.
65632 2010-09-08  Jim Meyering  <meyering@redhat.com>
65634         init.sh: penalize a set-x-impaired shell; don't disqualify it
65635         * tests/init.sh: Too many shells corrupt application stderr when
65636         you set -x, so we can't afford to disqualify them, since at least
65637         on Irix-6.5, that would disqualify all bourne shells.
65638         Instead, use a two-pass approach.
65639         On the first pass, try to find a shell that meets the stricter
65640         condition that set -x does not corrupt stderr.
65641         If no shell meets the stricter condition, retest each candidate
65642         shell, but without that extra condition.  Finally, when
65643         VERBOSE=yes is requested and set -x might cause trouble, simply
65644         issue a warning and refrain from enabling debug output.
65646 2010-09-08  Eric Blake  <eblake@redhat.com>
65648         unsetenv: fix OpenBSD bug
65649         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
65650         * doc/posix-functions/unsetenv.texi (unsetenv): Update
65651         documentation.
65652         Reported by Jim Meyering.
65654         strtod: work around IRIX 6.5 bug
65655         * lib/strtod.c (strtod): Reparse number on shorter string if
65656         exponent parse was invalid.
65657         * tests/test-strtod.c (main): Add check for "0x1p 2".
65658         Reported by Tom G. Christensen.
65660         getopt: optimize previous patch
65661         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
65662         empty variable.  Speed up awk script.
65663         Reported by Paolo Bonzini.
65665 2010-09-08  Jim Meyering  <meyering@redhat.com>
65667         test.sh: disqualify shells for which set -x corrupts stderr
65668         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
65669         and OpenBSD 4.7.  They make it so with "set -x", environment settings
65670         appear in stderr output.  For example, this command:
65671             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
65672         prints "P=1" on those two systems:
65674 2010-09-08  Bruno Haible  <bruno@clisp.org>
65676         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
65677         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
65678         commands, because some shells ignore redirections when there is an
65679         error in the command lookup.
65680         Reported by Eric Blake.
65682 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
65684         * lib/regex.h: Fix a mention of `regex_compile' (should be
65685         `re_compile_pattern').
65686         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
65687         (re_set_registers): Correct name of parameter in comment.
65689         * doc/regex.texi: Add documentation for missing syntax flags.
65690         Remove commented-out documentation of defunct syntax option
65691         RE_NO_EMPTY_ALTS.
65692         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
65693         Add documentation of re_set_registers.
65694         Document trick to re-use a pattern buffer by setting fastmap manually.
65695         Update documentation of struct re_pattern_buffer per public members.
65696         Uncomment documentation of equivalence class operators and
65697         collating symbol operators, since they are now implemented,
65698         Explain leftmost-longest matching in relation to alternatives.
65699         Tidy documentation of substring matching.
65700         Remove POSIX documentation, which is done better in
65701         glibc, and refer the reader there. Keep BSD API documentation, as
65702         that is not readily available elsewhere.
65704 2010-09-07  Eric Blake  <eblake@redhat.com>
65706         getopt: handle POSIXLY_CORRECT set but not exported
65707         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
65708         export state of POSIXLY_CORRECT, due to bash set -o posix.
65709         Reported by Dustin J. Mitchell.
65711 2010-09-05  Bruno Haible  <bruno@clisp.org>
65713         gnulib-tool: Highlight the changed options.
65714         * gnulib-tool (func_usage): Display the --import, --add-import,
65715         --remove-import explanations in bold font.
65717 2010-09-06  Karl Berry  <karl@gnu.org>
65719         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
65721 2010-09-05  Bruno Haible  <bruno@clisp.org>
65723         uniwidth/width: Update comment.
65724         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
65725         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
65727 2010-09-05  Bruno Haible  <bruno@clisp.org>
65729         isinf, isnan: Relax license.
65730         * modules/isinf (License): Change from GPL to LGPL, with consent from
65731         Ben Pfaff.
65732         * modules/isnan (License): Likewise.
65733         Requested by Ludovic Courtès.
65735 2010-09-04  Bruno Haible  <bruno@clisp.org>
65737         gnulib-tool: Help migration from --import to --add-import or --update.
65738         * gnulib-tool: Emit a verbose error message when --import is used
65739         without any module name.
65741 2010-09-04  Bruno Haible  <bruno@clisp.org>
65743         Update doc about gnulib-tool.
65744         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
65745         'gnulib-tool --update' in more detail.
65746         Reported by Eric Blake.
65748 2010-09-04  Bruno Haible  <bruno@clisp.org>
65750         gnulib-tool: Change --import. New options --add/remove-import.
65751         * gnulib-tool: New options --add-import, --remove-import.
65752         (func_usage): Document them.
65753         (have_associative): Define always.
65754         (func_import): In import mode, don't merge the specified settings with
65755         the cached settings. Implement remove-import mode.
65756         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
65757         Explain when to use them versus --import.
65758         (Simple update): Use --add-import instead of --import.
65759         * NEWS: Mention the change.
65761 2010-09-04  Bruno Haible  <bruno@clisp.org>
65763         * doc/gnulib-tool.texi (Initial import): Update paragraph about
65764         separate gnulib.mk.
65766 2010-09-04  Bruno Haible  <bruno@clisp.org>
65768         gnulib-tool: Don't talk about CVS any more.
65769         * gnulib-tool (func_usage, func_import): Write "version control"
65770         instead of CVS.
65772 2010-09-04  Jim Meyering  <meyering@redhat.com>
65774         maint.mk: avoid obscure sc_copyright_check failure in coreutils
65775         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
65776         false positives (whose names may be ill-chosen) when searching
65777         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
65778         would cause a false-positive.
65780         avoid coreutils "make distcheck" failure
65781         Coreutils tests with an absolute build directory name that contains
65782         a space.  Not quoting this directory name caused a failure.
65783         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
65784         * tests/test-vc-list-files-cvs.sh: Likewise.
65786 2010-09-04  Bruno Haible  <bruno@clisp.org>
65788         gnulib-tool: Avoid error when run in a package without Makefile.am.
65789         * gnulib-tool: When collecting the m4dirs in a package that does not
65790         have a Makefile.am, eliminate those directories that contain no
65791         gnulib-cache.m4. Fix expression that counts these directories.
65793 2010-09-04  Bruno Haible  <bruno@clisp.org>
65795         update-copyright test: Improve output when perl is missing or too old.
65796         * tests/test-update-copyright.sh: Move test of Perl version down after
65797         the test whether Perl exists. Provide an explanation relating Perl's
65798         error message to Automake's SKIP: message.
65800 2010-09-04  Bruno Haible  <bruno@clisp.org>
65802         Don't augment PATH in TESTS_ENVIRONMENT.
65803         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
65804         set abs_aux_dir instead of augmenting PATH.
65805         * modules/vc-list-files-tests (Makefile.am): Likewise.
65806         * tests/test-update-copyright.sh: Augment PATH here.
65807         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
65808         path_prepend_.
65809         * tests/test-vc-list-files-git.sh: Likewise.
65811 2010-09-04  Jim Meyering  <meyering@redhat.com>
65813         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
65814         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
65816 2010-09-04  Bruno Haible  <bruno@clisp.org>
65818         strdup: Fix compilation error in C++ mode.
65819         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
65820         the macro.
65822 2010-09-04  Bruno Haible  <bruno@clisp.org>
65824         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
65825         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
65826         macro into a function.
65827         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
65829 2010-09-04  Bruno Haible  <bruno@clisp.org>
65831         Set PATH_SEPARATOR the same way autoconf does.
65832         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
65833         the value of PATH_SEPARATOR the same way autoconf-generated configure
65834         scripts do.
65835         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
65836         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
65838 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
65840         Set PATH_SEPARATOR the same way autoconf does.
65841         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
65842         the same way autoconf-generated configure scripts do.
65843         * posix-modules: Likewise.
65845 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
65847         hash: fix safe_hasher const typo
65848         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
65849         const; otherwise, there is a type error later.
65851 2010-09-02  Jim Meyering  <meyering@redhat.com>
65853         test-update-copyright.sh: require perl 5.8.0
65854         * tests/test-update-copyright.sh: Require 5.8.0,
65855         which Tom G. Christensen has confirmed is adequate,
65856         while 5.6.1 is not.
65858 2010-09-02  Eric Blake  <eblake@redhat.com>
65860         tests: init.sh improvements for re-exec'ing with zsh
65861         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
65862         -vx through shell re-exec.
65863         Reported by Tom G. Christensen.
65865         wctype: fix typo in previous commit
65866         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
65867         Reported by Ludovic Courtès.
65869 2010-09-02  Jim Meyering  <meyering@redhat.com>
65871         test-update-copyright.sh: skip test if Perl is too old
65872         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
65873         Reported by Tom G. Christensen.
65875 2010-09-02  Bruno Haible  <bruno@clisp.org>
65877         wctype: Avoid compilation error on IRIX 6.5.30.
65878         * lib/wctype.in.h (iswblank): Declare with a replacement if
65879         REPLACE_ISWBLANK is set.
65880         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
65881         declared. Set REPLACE_ISWBLANK.
65882         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
65883         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
65884         * doc/posix-headers/wctype.texi: Likewise.
65885         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
65887 2010-09-01  Bruno Haible  <bruno@clisp.org>
65889         New module 'socketlib'.
65890         * modules/socketlib: New file.
65891         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
65892         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
65893         * modules/sockets (Depends-on): Add socketlib.
65894         Suggested by Sam Steingold <sds@gnu.org>.
65896 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65898         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
65900         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
65901         when one needs search access to a directory but not read access.
65902         On systems where it is available, it works in some cases where
65903         O_RDONLY does not, namely on directories that are searchable but
65904         not readable, and which need only to be searchable.  If O_SEARCH
65905         is not available, fall back to the traditional method of using
65906         O_RDONLY.
65908         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
65909         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
65910         when opening a directory that needs only to be searchable.
65911         * lib/chdir-safer.c (chdir_no_follow): Likewise.
65912         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
65913         * lib/openat-proc.c (openat_proc_name): Likewise.
65914         * lib/openat.c (openat_needs_fchdir): Likewise.
65915         * lib/save-cwd.c (save_cwd): Likewise.
65916         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
65918 2010-08-28  Bruno Haible  <bruno@clisp.org>
65920         New module 'host-cpu-c-abi'.
65921         * modules/host-cpu-c-abi: New file.
65922         * m4/host-cpu-c-abi.m4: New file, based on part of
65923         clisp/src/m4/general.m4.
65924         Requested by Sam Steingold <sds@gnu.org>.
65926 2010-08-31  Eric Blake  <eblake@redhat.com>
65927         and Jim Meyering  <meyering@redhat.com>
65929         hash: factor, and guard against misbehaving hasher function
65930         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
65931         of table->hasher's return value.  Also protect against a hash value
65932         so large that adding it to table->bucket results in a NULL pointer.
65933         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
65934         Use it in place of open-coded check-and-abort.
65936 2010-08-30  Bruno Haible  <bruno@clisp.org>
65938         hash: silence spurious clang warning
65939         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
65940         Reported by Eric Blake.
65942 2010-08-30  Eric Blake  <eblake@redhat.com>
65944         strstr, memmem, strcasestr: avoid leaked shell message
65945         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
65946         FreeBSD.
65947         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
65948         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
65950         tests: silence clang warning
65951         * tests/test-malloca.c (do_allocation): Avoid dead store.
65953 2010-08-29  Bruno Haible  <bruno@clisp.org>
65955         gettext: Fix recent mistake.
65956         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
65958 2010-08-29  Bruno Haible  <bruno@clisp.org>
65960         selinux-h: Offer a --without-selinux option.
65961         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
65962         --without-selinux was specified, skip all tests and define
65963         HAVE_SELINUX_SELINUX_H to 0.
65964         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
65965         set LIB_SELINUX to empty.
65966         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
65967         gl_LIBSELINUX. If --without-selinux was specified, replace
65968         selinux/context.h.
65969         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
65971 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65972             Bruno Haible  <bruno@clisp.org>
65974         Make the module 'realloc-gnu' work again on AIX and OSF/1.
65975         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
65976         of HAVE_REALLOC.
65977         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
65978         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
65979         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
65980         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
65982 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65983             Bruno Haible  <bruno@clisp.org>
65985         Make the module 'calloc-gnu' work again on AIX and OSF/1.
65986         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
65987         HAVE_CALLOC.
65988         * lib/xmalloc.c: Update accordingly.
65989         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
65990         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
65991         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
65993 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65994             Bruno Haible  <bruno@clisp.org>
65996         Make the module 'malloc-gnu' work again on AIX and OSF/1.
65997         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
65998         HAVE_MALLOC.
65999         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
66000         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
66001         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
66003 2010-08-29  Bruno Haible  <bruno@clisp.org>
66005         Update modules list.
66006         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
66007         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
66008         (String handling <string.h>): Add astrxfrm.
66009         (File system functions): Add readlinkat.
66011 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66013         Tests for module 'realloc-gnu'.
66014         * modules/realloc-gnu-tests: New file.
66015         * tests/test-realloc-gnu.c: New file.
66017         Tests for module 'calloc-gnu'.
66018         * modules/calloc-gnu-tests: New file.
66019         * tests/test-calloc-gnu.c: New file.
66021         Tests for module 'malloc-gnu'.
66022         * modules/malloc-gnu-tests: New file.
66023         * tests/test-malloc-gnu.c: New file.
66025 2010-08-28  Bruno Haible  <bruno@clisp.org>
66027         Rename module 'realloc' -> 'realloc-gnu'.
66028         * modules/realloc-gnu: New file, copied from modules/realloc.
66029         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
66030         obsolete.
66031         * modules/mgetgroups (Depends-on): Update.
66032         * doc/posix-functions/realloc.texi: Update.
66033         * NEWS: Mention the change.
66035         Rename module 'calloc' -> 'calloc-gnu'.
66036         * modules/calloc-gnu: New file, copied from modules/calloc.
66037         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
66038         obsolete.
66039         * doc/posix-functions/calloc.texi: Update.
66040         * NEWS: Mention the change.
66042         Rename module 'malloc' -> 'malloc-gnu'.
66043         * modules/malloc-gnu: New file, copied from modules/malloc.
66044         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
66045         obsolete.
66046         * modules/argp (Depends-on): Update.
66047         * modules/regex (Depends-on): Update.
66048         * doc/posix-functions/malloc.texi: Update.
66049         * NEWS: Mention the change.
66051 2010-08-28  Eric Blake  <eblake@redhat.com>
66053         pread, pwrite: add missing dependency
66054         * modules/pread (Depends-on): Add extensions.
66055         * modules/pwrite (Depends-on): Likewise.
66057 2010-08-28  Bruno Haible  <bruno@clisp.org>
66059         unistr/u*-strchr: Fix tests dependencies.
66060         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
66061         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
66062         Reported by Ian Beckwith <ianb@erislabs.net>.
66064 2010-08-28  Bruno Haible  <bruno@clisp.org>
66066         read-file: Don't occupy too much unused memory.
66067         * lib/read-file.c (fread_file): Shrink the buffer at the end.
66069 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
66070             Eric Blake  <eblake@redhat.com>
66071             Bruno Haible  <bruno@clisp.org>
66073         read-file: Avoid memory reallocations with regular files.
66074         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
66075         (fread_file): With regular files, use the remaining length as the
66076         initial buffer size.  Check against overflow.
66077         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
66078         sys_stat.
66080 2010-08-28  Bruno Haible  <bruno@clisp.org>
66082         ftello: Relax license.
66083         * modules/ftello (License): Relax to LGPLv2+.
66084         Reported by Eric Blake.
66086 2010-08-28  Bruno Haible  <bruno@clisp.org>
66088         Avoid relocwrapper link errors due to gnulib replacement functions.
66089         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
66090         function.
66091         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66093 2010-08-28  Bruno Haible  <bruno@clisp.org>
66095         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
66096         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
66097         defined.
66098         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
66099         Suggested by Eric Blake.
66101 2010-08-28  Bruno Haible  <bruno@clisp.org>
66103         sys_socket, netdb: Ensure socklen_t gets defined.
66104         * modules/sys_socket (Depends-on): Add socklen.
66105         * modules/netdb (Depends-on): Likewise.
66106         * modules/getaddrinfo (Depends-on): Remove socklen.
66107         * modules/getsockopt (Depends-on): Likewise.
66108         * modules/setsockopt (Depends-on): Likewise.
66109         * tests/test-sys_socket.c: Check that socklen_t is defined.
66110         * tests/test-netdb.c: Likewise.
66111         * m4/socklen.m4: Update comments.
66112         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66114 2010-08-27  Eric Blake  <eblake@redhat.com>
66116         login_tty: add missing dependency
66117         * modules/login_tty (Depends-on): Add pty.
66119 2010-08-26  Eric Blake  <eblake@redhat.com>
66121         lib-symbol-versions: fix m4 quoting
66122         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
66123         format for AC_LINK_IFELSE.
66125         glob: fix compile test
66126         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
66128         btowc: fix missing file
66129         * modules/btowc (Files): Also ship locale-fr.m4.
66131         lseek: fix link test
66132         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
66133         AC_LINK_IFELSE.
66135         include_next: silence autoconf 2.68 warning
66136         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
66137         AC_COMPILE_IFELSE as special.
66138         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
66139         autoconf < 2.68.
66141         acl: fix compilation test
66142         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
66143         AC_COMPILE_IFELSE.
66145 2010-08-26  Bruno Haible  <bruno@clisp.org>
66147         Modernize AC_TRY_RUN invocations.
66148         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
66149         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
66150         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
66151         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
66152         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
66153         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
66154         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
66155         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
66156         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
66157         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
66158         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
66159         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
66160         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
66161         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
66162         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
66163         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
66164         gl_MBRLEN_NUL_RETVAL): Likewise.
66165         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
66166         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
66167         Likewise.
66168         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
66169         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
66170         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
66171         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
66172         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
66173         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
66174         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
66175         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
66176         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
66177         Likewise.
66178         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
66179         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
66180         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
66181         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
66182         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
66183         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
66184         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
66185         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
66186         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
66187         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
66189 2010-08-26  Bruno Haible  <bruno@clisp.org>
66191         Modernize AC_TRY_LINK invocations.
66192         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
66193         AC_TRY_LINK.
66194         * m4/argp.m4 (gl_ARGP): Likewise.
66195         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
66196         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
66197         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
66198         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
66199         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
66200         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
66201         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
66202         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
66203         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
66204         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
66205         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
66206         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
66207         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
66208         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
66209         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
66210         * m4/hostent.m4 (gl_HOSTENT): Likewise.
66211         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
66212         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
66213         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
66214         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
66215         Likewise.
66216         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
66217         Likewise.
66218         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
66219         Likewise.
66220         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
66221         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
66222         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
66223         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
66224         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
66225         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
66226         * m4/servent.m4 (gl_SERVENT): Likewise.
66227         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
66228         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
66229         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
66230         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
66231         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
66232         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
66233         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
66234         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
66235         * modules/tsearch-tests (configure.ac): Likewise.
66237 2010-08-26  Bruno Haible  <bruno@clisp.org>
66239         Modernize AC_TRY_COMPILE invocations.
66240         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
66241         AC_TRY_COMPILE.
66242         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
66243         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
66244         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
66245         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
66246         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
66247         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
66248         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
66249         * m4/lock.m4 (gl_LOCK): Likewise.
66250         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
66251         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
66252         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
66253         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
66254         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
66255         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
66256         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
66257         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
66258         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
66259         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
66260         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
66261         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
66262         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
66263         extraneous semicolon.
66265 2010-08-26  Jim Meyering  <meyering@redhat.com>
66267         stat-time: relax license LGPL
66268         * modules/stat-time (License): Change from GPL to LGPL,
66269         with consent from all contributors, for use in libguile.
66270         Requested by Ludovic Courtès.
66272 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
66274         poll: return immediately on POLLHUP.
66275         * lib/poll.c (poll): Always set timeout before wait_timeout is
66276         computed.
66278 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66280         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
66281         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
66282         rmdir ("dir/.//"), unlinkat.
66284 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
66286         stdbool: avoid spurious failure with modern xlc
66287         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
66289 2010-08-24  Bruno Haible  <bruno@clisp.org>
66291         getloadavg: simplify code
66292         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
66293         gl_have_func. Update comments.
66295 2010-08-24  Eric Blake  <eblake@redhat.com>
66297         getloadavg: don't define SVR4 on cygwin
66298         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
66299         only define SVR4 when -lkvm is required.
66300         Reported by Yaakov Selkowitz.
66302 2010-08-24  Bruno Haible  <bruno@clisp.org>
66304         priv-set: fix comment
66305         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
66307 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
66309         priv-set: fix comments
66310         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
66311         to match code, as suggested by David Bartley in:
66312         http://lists.gnu.org/r/bug-tar/2010-08/msg00018.html
66314 2010-08-23  Eric Blake  <eblake@redhat.com>
66316         stdbool: avoid rejecting clang
66317         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
66318         * tests/test-stdbool.c: Enable more tests if using the system
66319         <stdbool.h> instead of the gnulib replacement.
66320         (main): Move xlc bug test to a runtime test for all compilers.
66321         Reported by Anders Kaseorg.
66323         argz: fix shell quoting issue
66324         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
66325         Reported by Charles Wilson.
66327 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
66328             Erik Faye-Lund <kusmabite@gmail.com>
66330         poll, select: handle ERROR_BROKEN_PIPE.
66331         * lib/poll.c (win32_compute_revents): Return POLLHUP when
66332         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
66333         * lib/select.c (win32_compute_revents): Do not mark a pipe
66334         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
66336 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
66338         fts: allow compilation with C++
66339         * lib/fts_.h: Specify extern "C" linkage with C++.
66341 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66343         Fix gnulib-tool sed script de-commentation for AIX sed.
66344         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
66345         sed.
66347 2010-08-17  Eric Blake  <eblake@redhat.com>
66349         test-stddef: test for (some) offsetof bugs
66350         * tests/test-stddef.c: Enhance test to ensure correct type of
66351         offsetof.
66352         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
66353         that we are not fixing at this time.
66355 2010-08-15  Bruno Haible  <bruno@clisp.org>
66357         stpncpy: Allow stpncpy to be defined as a macro.
66358         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
66359         if it's already correctly declared.
66360         * lib/string.in.h (stpncpy): Undefine before redefining.
66361         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
66363 2010-08-14  Bruno Haible  <bruno@clisp.org>
66365         Rename module 'memxfrm' to 'amemxfrm'.
66366         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
66367         (amemxfrm): Renamed from memxfrm.
66368         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
66369         (amemxfrm): Renamed from memxfrm.
66370         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
66371         * NEWS: Mention the change.
66372         * MODULES.html.sh (String handling <string.h>): Update.
66373         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
66374         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
66375         * lib/unicase/u16-casexfrm.c: Likewise.
66376         * lib/unicase/u32-casexfrm.c: Likewise.
66377         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
66378         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
66379         * lib/uninorm/u16-normxfrm.c: Likewise.
66380         * lib/uninorm/u32-normxfrm.c: Likewise.
66381         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
66382         memxfrm.
66383         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
66384         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
66385         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
66386         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
66387         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
66388         Suggested by Paul Eggert.
66390 2010-08-14  Bruno Haible  <bruno@clisp.org>
66392         Tests for module 'astrxfrm'.
66393         * modules/astrxfrm-tests: New file.
66394         * tests/test-astrxfrm.c: New file.
66396         New module 'astrxfrm'.
66397         * lib/astrxfrm.h: New file.
66398         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
66399         * modules/astrxfrm: New file.
66401 2010-08-14  Reuben Thomas  <rrt@sc3d.org>
66403         regex: Tweak doc.
66404         * doc/regex.texi (Overview): Don't mention regex.c.
66405         (GNU Regular Expression Compiling): Likewise.
66406         (Match-end-of-line Operator): Mention 'not_eol'.
66408 2010-08-14  Brian Gough  <bjg@gnu.org>
66409             Bruno Haible  <bruno@clisp.org>
66411         git-merge-changelog: add doc relating to use with bzr and hg.
66412         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
66414 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
66416         pthread: fix pthread.h creation for srcdir != builddir
66417         * modules/pthread (Makefile.am): Fix the rule to work also in a
66418         non-srcdir build.
66420 2010-08-13  Karl Berry  <karl@gnu.org>
66422         * doc/regex.texi (Predefined Syntaxes): @smallexample.
66423         * doc/posix-*/*: force line break before @url of POSIX
66424         specifications.
66425         Suggested by Werner Lemberg.
66427 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
66429         strtod: fix const diagnostic
66430         * lib/strtod.c (strtod): Don't assign const char * to char *,
66431         as this elicits a warning from GCC when warnings are enabled.
66433 2010-08-10  Pádraig Brady  <P@draigbrady.com>
66434         and Eric Blake  <eblake@redhat.com>
66436         copy-acl: ignore ENOTSUP on HP-UX
66437         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
66438         so that it is available for HP-UX.
66439         * lib/copy-acl.c (qcopy_acl): Use it.
66440         Reported by Patrick M. Callahan.
66442 2010-08-10  Eric Blake  <eblake@redhat.com>
66444         open, chown: relax license
66445         * modules/open (License): Change to LGPLv2+, with consent by all
66446         authors, for use in augeas.
66447         * modules/chown (License): Likewise.
66448         * modules/lchown (Likewise): Likewise.
66449         Requested by Adam Stokes.
66451 2010-08-09  Karl Berry  <karl@gnu.org>
66453         * build-aux/ar-lib: new file, import from Automake.
66454         * config/srclist.txt: autocheck for updates.
66456 2010-08-09  Eric Blake  <eblake@redhat.com>
66458         readlinkat: adjust client modules
66459         * modules/areadlinkat (Depends-on): Use readlinkat, not
66460         symlinkat.
66461         * modules/areadlinkat-with-size (Depends-on): Likewise.
66463         mknod: be more vocal about danger of running tests as root
66464         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
66465         root, since that is just asking for problems.
66466         Suggested by Bruno Haible, based on a report by Rainer Tammer.
66468         readlinkat: split into its own module
66469         * modules/symlinkat: Split readlinkat...
66470         * modules/readlinkat: ...into separate module.
66471         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
66472         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
66473         * lib/symlinkat.c (readlinkat): Move...
66474         * lib/readlinkat.c: ...into new file.
66475         * modules/symlinkat-tests: Split readlinkat test...
66476         * modules/readlinkat-tests: ...into separate module.
66477         * tests/test-symlinkat.c: Split...
66478         * tests/test-readlinkat.c: ...into new file.
66479         * NEWS: Document the split.
66480         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
66481         * lib/unistd.in.h (readlinkat): Likewise.
66482         Suggested by Bruno Haible.
66484 2010-08-08  Bruno Haible  <bruno@clisp.org>
66486         memxfrm: Speed up.
66487         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
66488         that usually only one call to strxfrm is necessary for each string
66489         part.
66490         Reported by Paul Eggert <eggert@cs.ucla.edu>.
66492 2010-08-07  Karl Berry  <karl@gnu.org>
66494         * doc/posix-headers/limits.texi,
66495         * doc/posix-functions/malloc.texi,
66496         * doc/posix-functions/strsignal.texi: missing @item.
66497         * doc/ld-version-script.texi: spurious leading i.
66498         * doc/regex.texi (Interval Operators): no commas inside @var.
66500 2010-08-01  Bruno Haible  <bruno@clisp.org>
66502         Integrate the regex documentation.
66503         * doc/gnulib.texi: Define 'cn' index.
66504         (Regular expressions): New a chapter that includes regex.texi and
66505         regexprops-generic.texi.
66506         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
66507         syntax.
66509         Whitespace cleanup.
66510         * doc/regex.texi: Remove trailing spaces.
66512         Add regex documentation.
66513         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
66514         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
66515         Written by Kathy A. Hargreaves and Karl Berry.
66517 2010-08-01  Bruno Haible  <bruno@clisp.org>
66519         link: Update documentation.
66520         * doc/posix-functions/link.texi: Update regarding Solaris.
66522 2010-07-31  Bruno Haible  <bruno@clisp.org>
66524         Update modules list.
66525         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
66526         (String handling <string.h>): Add memcmp2, memxfrm.
66527         (Container data structures): Add xlist, xsublist, xoset.
66528         (Core language properties): Add alignof, unused-parameter.
66529         (Process control, Numeric conversion functions <stdlib.h>): Renamed
66530         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
66531         (Unibyte characters <ctype.h>): New section.
66532         (String handling <string.h>): New section.
66533         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
66534         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
66535         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
66536         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
66537         tan, tanh, tanl, y0, y1, yn.
66538         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
66539         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
66540         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
66541         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
66542         unlockpt, vdprintf, vdprintf-posix.
66543         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
66544         (File system functions): Add concat-filename, sys_file, sys_ioctl,
66545         xconcat-filename.
66546         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
66547         getdtablesize, pipe2, pipe2-safer.
66548         (Security): New section.
66549         (Networking functions): Add accept4.
66550         (Signal handling): Add sigpipe.
66551         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
66552         mbmemcasecoll.
66553         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
66554         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
66555         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
66556         pipe-filter-ii.
66557         (Misc): Add argp-version-etc, login_tty, parse-duration.
66559 2010-07-31  Bruno Haible  <bruno@clisp.org>
66561         Improve doc in MODULES.html.
66562         * modules/linkat (Description): Add the word "function".
66563         * modules/mkfifo (Description): Likewise.
66564         * modules/mknod (Description): Likewise.
66565         * modules/remove (Description): Likewise.
66566         * modules/renameat (Description): Likewise.
66567         * modules/stat (Description): Likewise.
66568         * modules/symlink (Description): Likewise.
66569         * modules/unlink (Description): Likewise.
66571 2010-07-31  Bruno Haible  <bruno@clisp.org>
66573         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
66574         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
66575         option --enable/disable-c++ instead of --enable/disable-cxx.
66576         * NEWS: Mention the change.
66578 2010-07-31  Bruno Haible  <bruno@clisp.org>
66580         readlink, areadlink: Relax test a bit.
66581         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
66582         alternative to ENOTDIR.
66583         * tests/test-areadlink.h (test_areadlink): Likewise.
66584         Reported by Rainer Tammer.
66586 2010-07-31  Bruno Haible  <bruno@clisp.org>
66588         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
66589         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
66590         character, perform the search using U_STRCHR.
66591         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
66592         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
66593         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
66594         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
66595         Suggested by Paolo Bonzini.
66597 2010-07-31  Bruno Haible  <bruno@clisp.org>
66599         unistr/u*-strstr: Fix dependencies.
66600         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
66601         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
66602         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
66604 2010-07-31  Bruno Haible  <bruno@clisp.org>
66606         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
66607         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
66608         the beginning of the loop.
66609         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
66610         cases in 'switch' statement.
66612         unistr/u8-strchr: Fix several bugs.
66613         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
66614         the string. When not found, return NULL, not a pointer near the end.
66616         More tests for unistr/u8-strchr.
66617         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
66618         that the function does not read past the first occurrence of the byte
66619         being searched.
66620         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
66621         * tests/unistr/test-u16-strchr.c (main): New function.
66622         * tests/unistr/test-u32-strchr.c (main): New function.
66624 2010-07-31  Bruno Haible  <bruno@clisp.org>
66626         posix-modules: Ignore backup files of documentation files.
66627         * posix-modules: grep only through files named *.texi.
66629 2010-07-31  Bruno Haible  <bruno@clisp.org>
66631         symlinkat: Fix documentation.
66632         * doc/posix-functions/readlinkat.texi: Fix module name.
66634 2010-07-31  Bruno Haible  <bruno@clisp.org>
66636         fchownat: Replace also when chown has the trailing slash bug.
66637         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
66638         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
66639         introduced on 2010-04-10.
66640         Reported by Rainer Tammer.
66642 2010-07-31  Bruno Haible  <bruno@clisp.org>
66644         linkat: Work around AIX 7.1 bug.
66645         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
66646         whether linkat handles trailing slash correctly. If not, replace linkat
66647         and define LINKAT_TRAILING_SLASH_BUG.
66648         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
66649         check whether (fd1,file1) points to a directory if file1 or file2 ends
66650         in a slash. Code taken from lib/link.c.
66651         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
66652         Reported by Rainer Tammer.
66654 2010-07-31  Bruno Haible  <bruno@clisp.org>
66656         Correctly determine whether pow is available in libc on AIX 7 with xlc.
66657         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
66658         This disables an xlc optimization that was causing wrong test results.
66659         Reported by Rainer Tammer.
66661 2010-07-31  Bruno Haible  <bruno@clisp.org>
66663         iconv: Work around AIX 6.1..7.1 bug.
66664         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
66665         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
66666         cross-compiling, guess no on all versions of AIX.
66667         Reported by Rainer Tammer.
66669 2010-07-31  Bruno Haible  <bruno@clisp.org>
66671         readlink: Relax test a bit.
66672         * tests/test-readlink.h (test_readlink): Allow different errno value
66673         when readlink is called with a file name that ends in / and refers to
66674         a file.
66675         Suggested by Eric Blake.
66676         Reported by Rainer Tammer.
66678 2010-07-31  Bruno Haible  <bruno@clisp.org>
66680         copysign: Does not require -lm on glibc systems.
66681         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
66682         gl_COMMON_DOUBLE_MATHFUNC.
66683         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
66685 2010-07-31  Bruno Haible  <bruno@clisp.org>
66687         duplocale: Work around AIX 7.1 bug.
66688         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
66689         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
66690         * lib/duplocale.c (rpl_duplocale): Update comment.
66691         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
66692         Reported by Rainer Tammer.
66694 2010-07-30  Bruno Haible  <bruno@clisp.org>
66696         dirfd: Avoid link error on AIX 7.1.
66697         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
66698         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
66699         exist, set REPLACE_DIRFD.
66700         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
66701         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
66702         * doc/posix-functions/dirfd.texi: Update.
66703         Reported by Rainer Tammer.
66705 2010-07-30  Eric Blake  <eblake@redhat.com>
66707         strtod: next round of AIX fixes
66708         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
66709         exponent.
66710         * tests/test-strtod.c (main): Enhance tests.
66711         * doc/posix-functions/strtod.texi (strtod): Document next bug.
66712         Reported by Rainer Tammer.
66714         futimens: fix configure check
66715         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
66716         Reported by Bruno Haible.
66718 2010-07-30  Bruno Haible  <bruno@clisp.org>
66720         getline: Update regarding AIX.
66721         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
66722         Reported by Rainer Tammer.
66724 2010-07-30  Bruno Haible  <bruno@clisp.org>
66726         wcwidth: Drop replacement on AIX 7.
66727         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
66728         AIX 7.
66729         Reported by Rainer Tammer.
66731 2010-07-30  Bruno Haible  <bruno@clisp.org>
66733         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
66734         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
66735         a 'char *'.
66736         Reported by Rainer Tammer.
66738 2010-07-30  Bruno Haible  <bruno@clisp.org>
66740         unlink: Update regarding AIX.
66741         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
66742         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
66743         Reported by Rainer Tammer.
66745 2010-07-30  Bruno Haible  <bruno@clisp.org>
66747         symlink: Update regarding AIX.
66748         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
66749         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
66750         Reported by Rainer Tammer.
66752 2010-07-30  Bruno Haible  <bruno@clisp.org>
66754         strndup: Update regarding AIX.
66755         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
66756         AIX 7.
66757         Reported by Rainer Tammer.
66759 2010-07-30  Bruno Haible  <bruno@clisp.org>
66761         stat: Update regarding AIX.
66762         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
66763         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
66764         Reported by Rainer Tammer.
66766 2010-07-30  Bruno Haible  <bruno@clisp.org>
66768         truncl: Fix autoconf test.
66769         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
66770         whether truncl works.
66771         Reported by Rainer Tammer.
66773 2010-07-30  Bruno Haible  <bruno@clisp.org>
66775         round: Update regarding AIX.
66776         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
66777         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
66778         Reported by Rainer Tammer.
66780 2010-07-30  Bruno Haible  <bruno@clisp.org>
66782         rename: Update regarding AIX.
66783         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
66784         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
66785         Reported by Rainer Tammer.
66787 2010-07-30  Bruno Haible  <bruno@clisp.org>
66789         printf.m4: Update regarding AIX.
66790         * m4/printf.m4: Update comments regarding AIX.
66791         Reported by Rainer Tammer.
66793 2010-07-30  Bruno Haible  <bruno@clisp.org>
66795         iconv: Update regarding AIX.
66796         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
66797         AIX 7.
66798         Reported by Rainer Tammer.
66800 2010-07-30  Bruno Haible  <bruno@clisp.org>
66802         getopt: Update regarding AIX.
66803         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
66804         no on AIX.
66805         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
66806         Reported by Rainer Tammer.
66808 2010-07-30  Bruno Haible  <bruno@clisp.org>
66810         ldexpl; Update regarding AIX.
66811         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
66812         on AIX 7.
66813         Reported by Rainer Tammer.
66815 2010-07-30  Bruno Haible  <bruno@clisp.org>
66817         frexpl: Update regarding AIX.
66818         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
66819         on AIX 7.
66820         Reported by Rainer Tammer.
66822 2010-07-30  Bruno Haible  <bruno@clisp.org>
66824         open, fopen: Update regarding AIX.
66825         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
66826         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
66827         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
66828         * doc/posix-functions/fopen.texi: Likewise.
66829         Reported by Rainer Tammer.
66831 2010-07-30  Bruno Haible  <bruno@clisp.org>
66833         chown: Update doc regarding AIX.
66834         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
66835         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
66836         Reported by Rainer Tammer.
66838 2010-07-30  Eric Blake  <eblake@redhat.com>
66840         strtod: fix bug in replacement function on AIX
66841         * lib/strtod.c (strtod): Special case broken "0x" parse in
66842         underlying strtod.
66843         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
66844         * doc/posix-functions/strtod.texi (strtod): Likewise.
66845         Reported by Rainer Tammer.
66847 2010-07-30  Bruno Haible  <bruno@clisp.org>
66849         mbrlen: Fix cross-compilation guess for AIX.
66850         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
66851         guess. Leftover from 2008-12-22.
66853 2010-07-30  Bruno Haible  <bruno@clisp.org>
66855         mbrtowc: Fix cross-compilation guess for AIX.
66856         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
66857         guess. Leftover from 2008-12-21.
66859 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
66861         init.sh: work around trap limitation of some shells
66862         * tests/init.sh (setup_): Move exit trap outside of shell function.
66864 2010-07-29  Eric Blake  <eblake@redhat.com>
66866         strtod: aid debugging
66867         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
66868         understanding why strtod is rejected.
66870 2010-07-28  Bruno Haible  <bruno@clisp.org>
66872         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
66873         * lib/unistr/u8-chr.c: Include <string.h>.
66874         * tests/unistr/test-u8-chr.c: Likewise.
66875         * tests/unistr/test-u16-chr.c: Likewise.
66876         * tests/unistr/test-u32-chr.c: Likewise.
66877         * tests/unistr/test-u8-strchr.c: Likewise.
66878         * tests/unistr/test-u16-strchr.c: Likewise.
66879         * tests/unistr/test-u32-strchr.c: Likewise.
66880         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
66881         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
66882         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
66883         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
66885 2010-07-28  Bruno Haible  <bruno@clisp.org>
66887         Use spaces for indentation, not tabs.
66888         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
66890 2010-07-27  Bruno Haible  <bruno@clisp.org>
66892         mbspcasecmp: Fix function specification.
66893         * lib/string.in.h (mbspcasecmp): Fix specification comment.
66894         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
66895         Reported by Eric Blake <eblake@redhat.com>.
66897 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
66899         timespec: use cast and not conditional, as truncation isn't possible
66900         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
66901         instead of a conditional.  Comment about the situation in more detail.
66902         This undoes most of the 2009-10-29 patch.
66904 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
66906         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
66907         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
66908         * lib/unistr/u8-strchr.c: Likewise.
66909         * modules/unistr/u8-chr: Depend on memchr.
66911         unistr/u*-strchr: add tests
66912         * modules/unistr/u8-strchr-tests: New file.
66913         * modules/unistr/u16-strchr-tests: New file.
66914         * modules/unistr/u32-strchr-tests: New file.
66915         * tests/unistr/test-strchr.h: New file.
66916         * tests/unistr/test-u8-strchr.c: New file.
66917         * tests/unistr/test-u16-strchr.c: New file.
66918         * tests/unistr/test-u32-strchr.c: New file.
66920         unistr/u*-chr: test multibyte sequences more
66921         * tests/unistr/test-chr.h: Do complete testing of the characters in the
66922         test vector.
66923         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
66924         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
66925         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
66927         unistr/u*-chr: test multibyte sequences
66928         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
66930         unistr/u*-chr: prepare for multibyte tests
66931         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
66932         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
66933         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
66934         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
66935         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
66936         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
66938 2010-07-18  Bruno Haible  <bruno@clisp.org>
66940         unistr/u8-strchr: Optimize non-ASCII argument case.
66941         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
66942         because the first byte often matches anyway.
66943         Reported by Pádraig Brady <P@draigbrady.com>.
66945 2010-07-15  Karl Berry  <karl@gnu.org>
66947         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
66949 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
66951         getcwd: on Solaris, work better if ancestors are inaccessible
66952         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
66953         buffer and size, try again with a large buffer.  This works better
66954         on Solaris, since its getcwd succeeds even if the path to the root
66955         is inaccessible, and this is helpful in common cases such as .zfs
66956         hidden directories.  Problem reported by J Chapman Flack in
66957         http://lists.gnu.org/r/bug-tar/2010-06/msg00000.html
66958         Use system getcwd if it's declared, not merely if it's partly
66959         working; use the partly-working test only to avoid needless effort
66960         if the system getcwd fails.
66961         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
66962         comment that was already obsolete and is now even more obsolete.
66963         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
66964         now might call strdup.
66966 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
66968         pthread: Add enough so that coreutils/src/sort.c compiles.
66969         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
66970         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
66971         gnulib. Include <sched.h> and <time.h>, as per POSIX.
66972         Include <sys/types.h>, in case it defines pthread_t.
66973         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
66974         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
66975         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
66976         (pthread_rwlockattr_t, pthread_spinlock_t):
66977         New typedefs, if HAVE_PTHREAD_T is not defined.
66978         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
66979         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
66980         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
66981         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
66982         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
66983         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
66984         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
66985         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
66986         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
66987         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
66988         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
66989         New macros.
66990         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
66991         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
66992         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
66993         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
66994         (pthread_spin_unlock): New dummy functions.
66995         (pthread_create): Return EAGAIN; don't set errno.
66996         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
66997         require AC_C_INLINE.
66998         * modules/pthread (Depends-on): Add sched, time.
66999         (pthread.h): Use AM_V_GEN.
67001 2010-07-13  Bruno Haible  <bruno@clisp.org>
67003         striconveh: Don't malloc memory if the result buffer is sufficient.
67004         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
67005         buffer if its size is sufficient.
67006         Reported by Ludovic Courtès <ludo@gnu.org>.
67008 2010-07-13  Bruno Haible  <bruno@clisp.org>
67010         strtod: Add safety check.
67011         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
67013 2010-07-12  Bruno Haible  <bruno@clisp.org>
67015         Unify tests that set gl_cv_func_ldexpl_no_libm.
67016         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
67017         gl_FUNC_LDEXPL.
67018         (gl_FUNC_LDEXPL): Invoke it.
67019         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
67021 2010-07-12  Bruno Haible  <bruno@clisp.org>
67023         Unify tests that set gl_cv_func_ldexp_no_libm.
67024         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
67025         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
67026         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
67027         (configure.ac): Simply invoke gl_FUNC_LDEXP.
67028         * modules/strtod (Files): Add m4/ldexp.m4.
67030 2010-07-12  Bruno Haible  <bruno@clisp.org>
67032         Unify tests that set gl_cv_func_frexpl_no_libm.
67033         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
67034         gl_FUNC_FREXPL_NO_LIBM.
67035         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
67036         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
67038 2010-07-12  Bruno Haible  <bruno@clisp.org>
67040         Unify tests that set gl_cv_func_frexp_no_libm.
67041         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
67042         gl_FUNC_FREXP_NO_LIBM.
67043         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
67044         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
67046 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
67048         memcoll: clarify sizes versus lengths, document better, and tweak perf
67049         * lib/memcoll.c (strcoll_loop, memcoll0):
67050         Improve quality of descriptive comments.  Name variables
67051         consistently as to whether they are lengths (which do not include
67052         terminating null) versus sizes (which do).
67053         * lib/xmemcoll.c (xmemcoll0): Likewise.
67054         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
67055         returned when s1size == 0; this is easier to compile and saves
67056         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
67058 2010-07-12  Bruno Haible  <bruno@clisp.org>
67060         Tests for module '_Exit'.
67061         * modules/_Exit-tests: New file.
67062         * tests/test-_Exit.sh: New file.
67063         * tests/test-_Exit.c: New file.
67065         New module '_Exit'.
67066         * lib/stdlib.in.h (__attribute__): New macro.
67067         (_Exit): New declaration.
67068         * lib/_Exit.c: New file.
67069         * m4/_Exit.m4: New file.
67070         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
67071         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
67072         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
67073         * modules/_Exit: New file.
67074         * tests/test-stdlib-c++.cc (_Exit): Check signature.
67075         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
67077 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
67079         strtod: make it more-accurate typically, and don't require libm
67080         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
67081         Include limits.h.  Don't include string.h.
67082         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
67083         (locale_isspace): New function, so that no casts are needed to
67084         check whether *s is a space.
67085         (ldexp): Provide an unused dummy if not available.
67086         (scale_radix_exp, parse_number, underlying_strtod): New functions.
67087         (strtod): Use them.  This implementation prefers to use the
67088         underlying strtod if available, falling back on our own code
67089         only to fix known bugs.  This is more likely to produce an
67090         accurate result.  Also, it avoids the use of libm functions.
67091         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
67092         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
67093         was absent, but it caused a test failure with coreutils.
67094         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
67095         with libm.
67096         * modules/strtod (Makefile.am, Link): libm is no longer needed.
67097         * modules/strtod-tests (Makefile.am): Likewise.
67099 2010-07-11  Pádraig Brady  <P@draigBrady.com>
67100             Bruno Haible  <bruno@clisp.org>
67102         unistr/u8-strchr: Optimize ASCII argument case.
67103         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
67105 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
67107         (x)memcoll: minor tweaks
67108         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
67109         is after the type that it qualifies.
67110         (memcoll0): Likewise.
67111         * lib/memcoll.h (memcoll0): Likewise.
67112         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
67113         * lib/xmemcoll.h (xmemcoll0): Likewise.
67114         * lib/memcoll.c (memcoll0): Correct the comment.  This function
67115         differs from memcoll in that the NUL byte is part of the argument.
67116         Omit the abort-checks, as performance is a real issue here.  Plus,
67117         the checks were wrong anyway (an off-by-one error).  Omit local
67118         variable 'diff', as it's a bit clearer that way.
67119         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
67120         no longer needed.
67122 2010-07-08  Chen Guo  <chenguo4@yahoo.com>
67124         (x)memcoll: speedup when input is known to be NUL delimited
67125         * lib/memcoll.c: Include stdlib.
67126         (memcoll0): New function.
67127         (strcoll_loop): New function, refactored for use in both memcoll
67128         and memcoll0.
67129         * lib/memcoll.h (memcoll0): Add prototype.
67130         * lib/xmemcoll.c (xmemcoll0): New function.
67131         (collate_error): New function, refactored for use in both xmemcoll
67132         and xmemcoll0.
67133         * lib/xmemcoll.h (xmemcoll0): Add prototype.
67134         * m4/memcoll.m4: add inline invocation.
67136 2010-07-06  Pádraig Brady  <P@draigBrady.com>
67138         * build-aux/bootstrap: Remove any local translations
67139         from the translation project synchronization directory,
67140         so that local only translations are not distributed.
67142 2010-07-04  Bruno Haible  <bruno@clisp.org>
67144         fsusage: Clarify which code applies to which platforms.
67145         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
67146         platform.
67147         * lib/fsusage.c (get_fs_usage): Likewise.
67149 2010-07-04  Bruno Haible  <bruno@clisp.org>
67151         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
67152         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
67153         Reported by Martin Lambers <marlam@marlam.de>.
67155 2010-07-04  Jim Meyering  <meyering@redhat.com>
67157         hash: once again explicitly disallow insertion of NULL
67158         * lib/hash.c (hash_insert0): Reinstate just-removed test:
67159         inserting a NULL pointer cannot work with these functions.
67160         Add a comment with details.
67161         This reverts part of the 2010-07-01 commit, 5bef1a35
67162         "hash: extend module to deal with non-pointer keys".
67164 2010-07-01  Bruno Haible  <bruno@clisp.org>
67166         stdbool: Update doc.
67167         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
67168         Info from Christian Weisgerber <naddy@mips.inka.de>.
67170 2010-07-01  Jim Meyering  <meyering@redhat.com>
67172         hash: extend module to deal with non-pointer keys
67173         * lib/hash.c (hash_insert0): New interface, much like hash_insert
67174         but that allows insertion of non-pointer entries.
67175         Do not disallow an ENTRY value of NULL.
67176         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
67177         * lib/hash.h (hash_insert0): Declare.
67179 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
67181         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
67182         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
67183         not present (i.e. with autoconf 2.59 and when using gettextize, not
67184         gnulib), require AC_GNU_SOURCE instead.
67186 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
67188         idpriv-drop: Fix tests.
67189         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
67190         not to the test-idpriv-droptemp program.
67192 2010-06-29  Bruno Haible  <bruno@clisp.org>
67194         string: Fix syntax error with g++ 2.96.
67195         * lib/string.in.h (__pure__): Remove definition.
67196         (_GL_ATTRIBUTE_PURE): New macro.
67197         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
67198         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
67199         Reported by Christian Weisgerber <naddy@mips.inka.de>.
67201 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
67203         unitypes: Fix bug introduced on 2010-05-18.
67204         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
67206 2010-06-22  Eric Blake  <eblake@redhat.com>
67208         memmem: slight optimization
67209         * lib/str-two-way.h (critical_factorization): Update comments.
67210         Reduce work during factorization phase.
67211         Reported by Carlos Bueno <carlos@bueno.org>.
67213 2010-06-21  Bruno Haible  <bruno@clisp.org>
67215         Fix HAVE_CALLOC_POSIX misnomer.
67216         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
67217         !HAVE_CALLOC_POSIX.
67218         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
67219         HAVE_CALLOC_POSIX.
67220         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
67221         instead of HAVE_CALLOC_POSIX.
67222         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
67223         HAVE_CALLOC_POSIX.
67225         Use modern idiom for calloc() replacement.
67226         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
67227         AC_FUNC_CALLOC.
67228         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
67229         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
67230         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
67231         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
67232         (gl_REPLACE_CALLOC): New macro.
67234 2010-06-21  Bruno Haible  <bruno@clisp.org>
67236         Fix HAVE_REALLOC_POSIX misnomer.
67237         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
67238         !HAVE_REALLOC_POSIX.
67239         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
67240         HAVE_REALLOC_POSIX.
67241         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
67242         instead of HAVE_REALLOC_POSIX.
67243         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
67244         HAVE_REALLOC_POSIX.
67246         Use modern idiom for realloc() replacement.
67247         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
67248         AC_FUNC_REALLOC.
67249         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
67250         Autoconf's AC_FUNC_REALLOC.
67251         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
67252         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
67253         (gl_REPLACE_REALLOC): New macro.
67254         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
67256 2010-06-21  Bruno Haible  <bruno@clisp.org>
67258         Fix HAVE_MALLOC_POSIX misnomer.
67259         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
67260         !HAVE_MALLOC_POSIX.
67261         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
67262         HAVE_MALLOC_POSIX.
67263         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
67264         instead of HAVE_MALLOC_POSIX.
67265         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
67266         HAVE_MALLOC_POSIX.
67268         Use modern idiom for malloc() replacement.
67269         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
67270         AC_FUNC_MALLOC.
67271         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
67272         Autoconf's AC_FUNC_MALLOC.
67273         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
67274         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
67275         (gl_REPLACE_MALLOC): New macro.
67276         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
67278 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
67280         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
67281         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
67282         This macro takes 3 arguments, not 4.
67284 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
67286         ipv6: fix detection under mingw
67287         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
67288         in6_addr.
67290 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
67292         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
67293         that strtod() works when cross-compiling to a glibc version known
67294         to work.
67296 2010-06-15  Bruno Haible  <bruno@clisp.org>
67298         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
67300 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
67302         select: Correct timeout.
67303         * lib/select.c (rpl_select): Compute wait_timeout correctly.
67305 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
67307         git-version-gen: init shell var to avoid env var influence
67308         * build-aux/git-version-gen (v): Init shell var to empty.
67310 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
67312         priv-set: Don't assume that priv.h exists merely because getppriv does.
67313         See Jan Andersen's bug report about AIX 5L in
67314         http://lists.gnu.org/r/bug-tar/2010-06/msg00019.html
67315         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
67316         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
67317         * lib/priv-set.h: Likewise.
67318         * tests/test-priv-set.c: Likewise.
67320 2010-06-13  Bruno Haible  <bruno@clisp.org>
67322         relocatable: Make it easier to test whether to install wrappers.
67323         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
67324         RELOCATABLE_VIA_WRAPPER.
67326 2010-06-13  Bruno Haible  <bruno@clisp.org>
67328         gnulib-tool: Display specified modules and dependencies differently.
67329         * gnulib-tool (func_show_module_list): New function.
67330         (func_import, func_create_testdir): Invoke it.
67331         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
67333 2010-06-13  Bruno Haible  <bruno@clisp.org>
67335         gnulib-tool: Align code of func_import and func_create_testdir.
67336         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
67337         specified_modules.
67339 2010-06-12  Jim Meyering  <meyering@redhat.com>
67341         test-inttostr: avoid spurious failure on Solaris 9
67342         * tests/test-inttostr.c (main): Skip the test when snprintf fails
67343         to accept "%ju".  Reported by Bruno Haible.
67345 2010-06-11  Jim Meyering  <meyering@redhat.com>
67347         test-sys_socket: mark variables as used more readably
67348         * tests/test-sys_socket.c (main): Mark otherwise unused variables
67349         as "used" explicitly via (void) statement casts.  This is more
67350         readable than using them in an artificial return expression.
67351         Suggestion from Bruno Haible.
67353 2010-06-11  Bruno Haible  <bruno@clisp.org>
67355         Avoid some more warnings from "gcc -Wwrite-strings".
67356         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
67357         to 'const char *'.
67358         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
67359         * tests/test-c-strcasestr.c (main): Likewise.
67360         * tests/test-mbscasestr1.c (main): Likewise.
67361         * tests/test-mbscasestr2.c (main): Likewise.
67362         * tests/test-memmem.c (main): Likewise.
67363         * tests/test-strstr.c (main): Likewise.
67364         * tests/test-strcasestr.c (main): Likewise.
67366 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67368         init.sh: change framework_failure_ to fail with status 99, not 1
67369         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
67370         automake's parallel-tests rule that this is an unexpected failure,
67371         even if the test is listed in XFAIL_TESTS.
67373 2010-06-11  Jim Meyering  <meyering@redhat.com>
67375         test-inttostr: avoid warnings about 4-6KB literal strings
67376         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
67377         Include "macros.h", for its definition of ASSERT.
67378         (CK): s/assert/ASSERT/
67379         * modules/inttostr-tests (Files): Add macros.h.
67381         init.sh: don't use $ME_ or skip_ before they are defined
67382         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
67383         their first uses.  Also hoist their companions: warn_, fail_,
67384         framework_failure_, $stderr_fileno.  Prompted by a patch from
67385         Stefano Lattarini.
67387         test-sys_socket: avoid set-but-not-used warnings from gcc
67388         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
67389         avoid warning about set-but-not-used variables.
67391         test-xvasprintf: avoid 'const' discard warnings
67392         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
67393         "const" when assigning from literal strings.
67394         (test_xasprintf): Add "void" in function argument list to placate
67395         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
67397         tests: avoid compilation warnings in argmatch and exclude tests...
67398         in packages that define ARGMATCH_DIE_DECL, like coreutils.
67399         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
67400         Since it always exits, declare with the "noreturn" attribute.
67401         * tests/test-argmatch.c: Likewise.
67403         tests: avoid 'const' discard warnings in mbsstr tests
67404         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
67405         * tests/test-mbsstr2.c (main): Likewise.
67407         test-verify: avoid warning from gcc's -Wmissing-declarations
67408         * tests/test-verify.c (function): Declare to be static.
67410         test-inttostr.c: include <string.h> for use of strcmp
67411         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
67413         test-linkat: avoid failed assertion on "other" architectures
67414         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
67415         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
67416         sparc: https://bugs.launchpad.net/bugs/591968
67418 2010-06-11  Jim Meyering  <meyering@redhat.com>
67420         printf.m4: avoid autoconf's "Expanded Before Required" warning
67421         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
67422         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
67423         autoconf warning.
67425 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
67427         Replacement header templates are now named with ".in", not "_".
67428         * doc/gnulib-intro.texi: Correct.
67430 2010-06-10  Jim Meyering  <meyering@redhat.com>
67432         inttostr-tests: depend on snprintf, not snprintf-posix
67433         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
67434         snprintf-posix, to avoid this aclocal failure:
67435           missing file gnulib-tests/vasnprintf.c
67436           configure.ac:45: error: expected source file, required through \
67437           AC_LIBSOURCES, not found
67439 2010-06-10  Jim Meyering  <meyering@redhat.com>
67441         inttostr: add a new function, inttostr, and tests
67442         The namesake function was not available.  The existence of the
67443         template file, inttostr.c makes its addition nontrivial.
67444         * lib/anytostr.c: Rename from inttostr.c.
67445         (anytostr): Rename from inttostr.
67446         * lib/inttostr.c: New file.
67447         * modules/inttostr (Files): Add anytostr.c.
67448         (Makefile.am): Set lib_SOURCES instead of ...
67449         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
67450         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
67451         * lib/offtostr.c: Likewise.
67452         * lib/uinttostr.c: Likewise.
67453         * lib/umaxtostr.c: Likewise.
67454         * modules/inttostr-tests: New file.
67455         * tests/test-inttostr.c: New file.  Test these functions.
67457 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
67458             Bruno Haible  <bruno@clisp.org>
67460         Add "Extending Gnulib" chapter to manual.
67461         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
67462         chapter.
67463         (Extending Gnulib): New chapter.
67464         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
67465         chapter.
67467 2010-06-09  Bruno Haible  <bruno@clisp.org>
67469         Avoid relocwrapper link errors due to gnulib replacement functions.
67470         * lib/areadlink.c: Use the system's malloc, realloc functions.
67471         (areadlink): Set errno to ENOMEM explicitly.
67472         * modules/areadlink (Depends-on): Remove malloc-posix.
67473         Reported by Ben Pfaff <blp@cs.stanford.edu>.
67475 2010-06-09  Bruno Haible  <bruno@clisp.org>
67477         Avoid relocwrapper link errors due to gnulib replacement functions.
67478         * lib/canonicalize-lgpl.c: Use the system's malloc function.
67479         * lib/malloca.c: Likewise.
67480         * lib/relocatable.c: Likewise.
67481         * lib/progreloc.c: Use the system's malloc, sprintf functions.
67482         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
67483         * lib/setenv.c: Use the system's malloc, realloc functions.
67484         * lib/strerror.c: Use the system's sprintf function.
67485         Reported by Ben Pfaff <blp@cs.stanford.edu>.
67487 2010-06-04  Bruno Haible  <bruno@clisp.org>
67489         Prefer documented low-level autoconf macro names.
67490         * m4/lib-link.m4: Use m4_translit instead of translit.
67491         * m4/environ.m4: Likewise.
67492         * m4/mathfunc.m4: Likewise.
67493         * m4/onceonly.m4: Likewise.
67494         * m4/stdint.m4: Likewise.
67495         Suggested by Eric Blake.
67497 2010-06-04  Martin Lambers  <marlam@marlam.de>
67498             Bruno Haible  <bruno@clisp.org>
67500         havelib: Allow library names with '+' characters.
67501         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
67502         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
67504 2010-06-09  Bruno Haible  <bruno@clisp.org>
67506         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
67507         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
67508         realloc failed.
67510 2010-06-08  Peter Simons  <simons@cryp.to>
67512         maint.mk: make the news-check rule more configurable
67513         * top/maint.mk (news-check-lines-spec): New variable.
67514         (news-check): Use "sed -n 1,10p" in place of "head".
67516 2010-06-07  Jim Meyering  <meyering@redhat.com>
67518         do-release-commit-and-tag: fix typo in --help
67519         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
67521         regex: avoid new dead-code warning with gcc-4.6.0
67522         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
67523         if-block containing a while-loop.  It's been unused for at least
67524         5 years.
67526 2010-06-05  Bruno Haible  <bruno@clisp.org>
67528         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
67529         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
67531 2010-06-04  Bruno Haible  <bruno@clisp.org>
67533         Update to GNU gettext 0.18.1.
67534         * modules/gettext (configure.ac): Require gettext infrastructure from
67535         version 0.18.1.
67537 2010-06-03  Bruno Haible  <bruno@clisp.org>
67539         Don't use AC_LIBOBJ with file names in subdirectories.
67540         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
67541         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
67542         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
67543         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
67544         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
67545         gl_LIBUNISTRING_LIBSOURCE.
67546         (Makefile.am): Augment lib_SOURCES here, conditionally.
67547         * NEWS: Drop requirement for Automake option 'subdir-objects'.
67549 2010-06-03  Bruno Haible  <bruno@clisp.org>
67551         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
67552         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
67553         expansion does not end with a newline.
67554         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
67555         unnecessary newline.
67557 2010-06-03  Bruno Haible  <bruno@clisp.org>
67559         Reduce dependencies.
67560         * tests/test-quotearg.h: New file, extracted from
67561         tests/test-quotearg.c.
67562         * tests/test-quotearg-simple.c: New file, extracted from
67563         tests/test-quotearg.c.
67564         * tests/test-quotearg.c: Don't include <ctype.h>.
67565         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
67566         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
67567         use_quote_double_quotes, use_quotearg_colon): Moved to
67568         tests/test-quotearg.h.
67569         (results_g, flag_results, custom_quotes, custom_results): Moved
67570         to tests/test-quotearg-simple.c.
67571         (main): Moved the part that does not depend on gettext to
67572         tests/test-quotearg-simple.c. Return 77 if the test cannot be
67573         performed.
67574         * modules/quotearg-simple: New file.
67575         * modules/quotearg-simple-tests: New file.
67576         * modules/quotearg (Depends-on): Add quotearg-simple.
67577         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
67578         (Files): Add tests/test-quotearg.h.
67579         Reported by Paolo Bonzini.
67581 2010-06-03  Bruno Haible  <bruno@clisp.org>
67583         Reduce dependencies.
67584         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
67586 2010-06-03  Bruno Haible  <bruno@clisp.org>
67588         time: Undefine more broken macros.
67589         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
67590         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
67591         Reported by Eric Blake.
67593 2010-06-03  Bruno Haible  <bruno@clisp.org>
67595         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
67596         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
67597         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
67598         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
67599         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
67600         Reported by Ludovic Courtès <ludo@gnu.org>.
67602 2010-06-02  Eric Blake  <eblake@redhat.com>
67604         time: work with mingw + pthreads-win32 library
67605         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
67606         if timespec is defined only in pthread.h.
67607         * modules/time (Makefile.am): Substitute it.
67608         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
67609         <pthread.h>, when needed.
67610         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
67611         from the library.
67613 2010-05-31  Bruno Haible  <bruno@clisp.org>
67615         Avoid expanding two macros in the wrong order.
67616         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
67617         gl_LIBUNISTRING if it is defined.
67618         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
67619         autoconf >= 2.64.
67620         Reported by Ludovic Courtès <ludo@gnu.org>.
67622 2010-05-27  Jim Meyering  <meyering@redhat.com>
67624         maint.mk: also prohibit "#undef" of always-defined symbols
67625         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
67626         Allow more than one space before the symbol name.
67627         (sc_prohibit_always-defined_macros): Use grep's -E, now that
67628         the regexp uses alternation.
67630 2010-05-26  Eric Blake  <eblake@redhat.com>
67632         maint.mk: avoid echo -e
67633         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
67634         Convert all uses of echo -* to printf.
67635         Reported by Matthias Bolte.
67637 2010-05-25  Bruno Haible  <bruno@clisp.org>
67639         Update to GNU gettext 0.18, part 2.
67640         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
67641         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
67643 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67645         Add missing include in test-pwrite.c.
67646         * tests/test-pwrite.c: Include string.h, for strcmp.
67648 2010-05-24  Bruno Haible  <bruno@clisp.org>
67650         * NEWS: Mention requirement for Automake option 'subdir-objects'.
67652 2010-05-24  Bruno Haible  <bruno@clisp.org>
67654         Don't use conversion with transliteration in u{8,16,32}_strcoll.
67655         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
67656         iconveh_error argument.
67657         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
67658         U_STRCONV_TO_LOCALE.
67659         * lib/unistr/u16-strcoll.c: Likewise.
67660         * lib/unistr/u32-strcoll.c: Likewise.
67661         * modules/unistr/u8-strcoll (Depends-on): Add
67662         uniconv/u8-strconv-to-enc, localcharset. Remove
67663         uniconv/u8-strconv-to-locale.
67664         (configure.ac): Bump version number.
67665         * modules/unistr/u16-strcoll (Depends-on): Add
67666         uniconv/u16-strconv-to-enc, localcharset. Remove
67667         uniconv/u16-strconv-to-locale.
67668         (configure.ac): Bump version number.
67669         * modules/unistr/u32-strcoll (Depends-on): Add
67670         uniconv/u32-strconv-to-enc, localcharset. Remove
67671         uniconv/u32-strconv-to-locale.
67672         (configure.ac): Bump version number.
67674 2010-05-24  Bruno Haible  <bruno@clisp.org>
67676         Avoid a test failure on NetBSD 5.0.
67677         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
67678         an iconv() bug.
67680 2010-05-24  Bruno Haible  <bruno@clisp.org>
67682         Adjust #include directive style.
67683         * modules/regex (Includes): Recommend to write <regex.h>.
67685 2010-05-24  Bruno Haible  <bruno@clisp.org>
67687         regex: Don't require alloca.
67688         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
67689         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
67690         only inside if (0).
67692 2010-05-23  Jim Meyering  <meyering@redhat.com>
67694         test-renameat.c: include <sys/stat.h>
67695         * tests/test-renameat.c: Include <sys/stat.h>; required for
67696         definition of S_IS* macros.
67698 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
67700         Update maintainer documentation for 'relocatable-prog' module.
67701         * doc/relocatable-maint.texi: Update.
67702         Comments by Bruno Haible.
67704 2010-05-23  Bruno Haible  <bruno@clisp.org>
67706         git-merge-changelog: Enable --split-merged-entry by default.
67707         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
67708         (usage): Don't mention this option any more.
67709         Reported by Ralf Wildenhues.
67711 2010-05-23  Jim Meyering  <meyering@redhat.com>
67713         test-pwrite: do not leave behind a test file named "out"
67714         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
67715         The trivial-looking use of init.sh is really necessary.
67716         It ensures that the temporary file, "out", is created in
67717         a temporary directory, and removed upon termination.
67718         * tests/test-pwrite.sh: Re-add file.
67719         * modules/pwrite-tests: Reference it.
67721 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67723         Fix output redirection buglet in init.sh.
67724         * tests/init.sh: Fix redirection of stderr.
67726 2010-05-20  Simon Josefsson  <simon@josefsson.org>
67728         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
67730 2010-05-17  Simon Josefsson  <simon@josefsson.org>
67732         * modules/valgrind-tests: New file.
67733         * m4/valgrind-tests.m4: New file.
67734         * doc/valgrind-tests.texi: New file.
67735         * doc/gnulib.texi (Running self-tests under valgrind): New
67736         section.
67738 2010-05-19  Bruno Haible  <bruno@clisp.org>
67740         Clean up dead code in recent commit.
67741         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
67742         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
67743         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
67744         Suggested by Paolo Bonzini.
67746 2010-05-19  Bruno Haible  <bruno@clisp.org>
67748         Avoid valgrind error reports from libunistring.
67749         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
67750         * modules/libunistring (Files): Add it.
67751         * modules/libunistring-optional (Files): Likewise.
67753 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
67754             Bruno Haible  <bruno@clisp.org>
67756         New module 'libunistring-optional'.
67757         * modules/libunistring-optional: New file.
67758         * m4/libunistring-base.m4: New file.
67759         * m4/libunistring-optional.m4: New file.
67760         * lib/unicase.in.h: Renamed from lib/unicase.h.
67761         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
67762         * lib/unictype.in.h: Renamed from lib/unictype.h.
67763         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
67764         * lib/uniname.in.h: Renamed from lib/uniname.h.
67765         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
67766         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
67767         * lib/unistr.in.h: Renamed from lib/unistr.h.
67768         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
67769         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
67770         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
67771         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
67772         gl_LIBUNISTRING. If the library was found, determine the installed
67773         version and set LIBUNISTRING_VERSION.
67774         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
67775         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
67776         handle a configuration option --with-included-libunistring.
67777         * modules/libunistring (Files): Add m4/absolute-header.m4.
67778         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
67779         Add m4/libunistring-base.m4.
67780         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
67781         (Makefile.am): Build unicase.h from unicase.in.h.
67782         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
67783         Add m4/libunistring-base.m4.
67784         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
67785         (Makefile.am): Build uniconv.h from uniconv.in.h.
67786         * modules/unictype/base (Files): Use unictype.in.h instead of
67787         unictype.h. Add m4/libunistring-base.m4.
67788         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
67789         (Makefile.am): Build unictype.h from unictype.in.h.
67790         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
67791         Add m4/libunistring-base.m4.
67792         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
67793         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
67794         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
67795         Add m4/libunistring-base.m4.
67796         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
67797         (Makefile.am): Build uniname.h from uniname.in.h.
67798         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
67799         Add m4/libunistring-base.m4.
67800         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
67801         (Makefile.am): Build uninorm.h from uninorm.in.h.
67802         * modules/unistdio/base (Files): Use unistdio.in.h instead of
67803         unistdio.h. Add m4/libunistring-base.m4.
67804         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
67805         (Makefile.am): Build unistdio.h from unistdio.in.h.
67806         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
67807         Add m4/libunistring-base.m4.
67808         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
67809         (Makefile.am): Build unistr.h from unistr.in.h.
67810         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
67811         Add m4/libunistring-base.m4.
67812         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
67813         (Makefile.am): Build unitypes.h from unitypes.in.h.
67814         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
67815         Add m4/libunistring-base.m4.
67816         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
67817         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
67818         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
67819         uniwidth.h. Add m4/libunistring-base.m4.
67820         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
67821         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
67822         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
67823         instead of augmenting lib_SOURCES.
67824         * modules/unicase/empty-suffix-context: Likewise.
67825         * modules/unicase/locale-language: Likewise.
67826         * modules/unicase/tolower: Likewise.
67827         * modules/unicase/totitle: Likewise.
67828         * modules/unicase/toupper: Likewise.
67829         * modules/unicase/u8-casecmp: Likewise.
67830         * modules/unicase/u8-casecoll: Likewise.
67831         * modules/unicase/u8-casefold: Likewise.
67832         * modules/unicase/u8-casexfrm: Likewise.
67833         * modules/unicase/u8-ct-casefold: Likewise.
67834         * modules/unicase/u8-ct-tolower: Likewise.
67835         * modules/unicase/u8-ct-totitle: Likewise.
67836         * modules/unicase/u8-ct-toupper: Likewise.
67837         * modules/unicase/u8-is-cased: Likewise.
67838         * modules/unicase/u8-is-casefolded: Likewise.
67839         * modules/unicase/u8-is-lowercase: Likewise.
67840         * modules/unicase/u8-is-titlecase: Likewise.
67841         * modules/unicase/u8-is-uppercase: Likewise.
67842         * modules/unicase/u8-prefix-context: Likewise.
67843         * modules/unicase/u8-suffix-context: Likewise.
67844         * modules/unicase/u8-tolower: Likewise.
67845         * modules/unicase/u8-totitle: Likewise.
67846         * modules/unicase/u8-toupper: Likewise.
67847         * modules/unicase/u16-casecmp: Likewise.
67848         * modules/unicase/u16-casecoll: Likewise.
67849         * modules/unicase/u16-casefold: Likewise.
67850         * modules/unicase/u16-casexfrm: Likewise.
67851         * modules/unicase/u16-ct-casefold: Likewise.
67852         * modules/unicase/u16-ct-tolower: Likewise.
67853         * modules/unicase/u16-ct-totitle: Likewise.
67854         * modules/unicase/u16-ct-toupper: Likewise.
67855         * modules/unicase/u16-is-cased: Likewise.
67856         * modules/unicase/u16-is-casefolded: Likewise.
67857         * modules/unicase/u16-is-lowercase: Likewise.
67858         * modules/unicase/u16-is-titlecase: Likewise.
67859         * modules/unicase/u16-is-uppercase: Likewise.
67860         * modules/unicase/u16-prefix-context: Likewise.
67861         * modules/unicase/u16-suffix-context: Likewise.
67862         * modules/unicase/u16-tolower: Likewise.
67863         * modules/unicase/u16-totitle: Likewise.
67864         * modules/unicase/u16-toupper: Likewise.
67865         * modules/unicase/u32-casecmp: Likewise.
67866         * modules/unicase/u32-casecoll: Likewise.
67867         * modules/unicase/u32-casefold: Likewise.
67868         * modules/unicase/u32-casexfrm: Likewise.
67869         * modules/unicase/u32-ct-casefold: Likewise.
67870         * modules/unicase/u32-ct-tolower: Likewise.
67871         * modules/unicase/u32-ct-totitle: Likewise.
67872         * modules/unicase/u32-ct-toupper: Likewise.
67873         * modules/unicase/u32-is-cased: Likewise.
67874         * modules/unicase/u32-is-casefolded: Likewise.
67875         * modules/unicase/u32-is-lowercase: Likewise.
67876         * modules/unicase/u32-is-titlecase: Likewise.
67877         * modules/unicase/u32-is-uppercase: Likewise.
67878         * modules/unicase/u32-prefix-context: Likewise.
67879         * modules/unicase/u32-suffix-context: Likewise.
67880         * modules/unicase/u32-tolower: Likewise.
67881         * modules/unicase/u32-totitle: Likewise.
67882         * modules/unicase/u32-toupper: Likewise.
67883         * modules/unicase/ulc-casecmp: Likewise.
67884         * modules/unicase/ulc-casecoll: Likewise.
67885         * modules/unicase/ulc-casexfrm: Likewise.
67886         * modules/uniconv/u8-conv-from-enc: Likewise.
67887         * modules/uniconv/u8-conv-to-enc: Likewise.
67888         * modules/uniconv/u8-strconv-from-enc: Likewise.
67889         * modules/uniconv/u8-strconv-from-locale: Likewise.
67890         * modules/uniconv/u8-strconv-to-enc: Likewise.
67891         * modules/uniconv/u8-strconv-to-locale: Likewise.
67892         * modules/uniconv/u16-conv-from-enc: Likewise.
67893         * modules/uniconv/u16-conv-to-enc: Likewise.
67894         * modules/uniconv/u16-strconv-from-enc: Likewise.
67895         * modules/uniconv/u16-strconv-from-locale: Likewise.
67896         * modules/uniconv/u16-strconv-to-enc: Likewise.
67897         * modules/uniconv/u16-strconv-to-locale: Likewise.
67898         * modules/uniconv/u32-conv-from-enc: Likewise.
67899         * modules/uniconv/u32-conv-to-enc: Likewise.
67900         * modules/uniconv/u32-strconv-from-enc: Likewise.
67901         * modules/uniconv/u32-strconv-from-locale: Likewise.
67902         * modules/uniconv/u32-strconv-to-enc: Likewise.
67903         * modules/uniconv/u32-strconv-to-locale: Likewise.
67904         * modules/unictype/bidicategory-byname: Likewise.
67905         * modules/unictype/bidicategory-name: Likewise.
67906         * modules/unictype/bidicategory-of: Likewise.
67907         * modules/unictype/bidicategory-test: Likewise.
67908         * modules/unictype/block-list: Likewise.
67909         * modules/unictype/block-test: Likewise.
67910         * modules/unictype/category-C: Likewise.
67911         * modules/unictype/category-Cc: Likewise.
67912         * modules/unictype/category-Cf: Likewise.
67913         * modules/unictype/category-Cn: Likewise.
67914         * modules/unictype/category-Co: Likewise.
67915         * modules/unictype/category-Cs: Likewise.
67916         * modules/unictype/category-L: Likewise.
67917         * modules/unictype/category-Ll: Likewise.
67918         * modules/unictype/category-Lm: Likewise.
67919         * modules/unictype/category-Lo: Likewise.
67920         * modules/unictype/category-Lt: Likewise.
67921         * modules/unictype/category-Lu: Likewise.
67922         * modules/unictype/category-M: Likewise.
67923         * modules/unictype/category-Mc: Likewise.
67924         * modules/unictype/category-Me: Likewise.
67925         * modules/unictype/category-Mn: Likewise.
67926         * modules/unictype/category-N: Likewise.
67927         * modules/unictype/category-Nd: Likewise.
67928         * modules/unictype/category-Nl: Likewise.
67929         * modules/unictype/category-No: Likewise.
67930         * modules/unictype/category-P: Likewise.
67931         * modules/unictype/category-Pc: Likewise.
67932         * modules/unictype/category-Pd: Likewise.
67933         * modules/unictype/category-Pe: Likewise.
67934         * modules/unictype/category-Pf: Likewise.
67935         * modules/unictype/category-Pi: Likewise.
67936         * modules/unictype/category-Po: Likewise.
67937         * modules/unictype/category-Ps: Likewise.
67938         * modules/unictype/category-S: Likewise.
67939         * modules/unictype/category-Sc: Likewise.
67940         * modules/unictype/category-Sk: Likewise.
67941         * modules/unictype/category-Sm: Likewise.
67942         * modules/unictype/category-So: Likewise.
67943         * modules/unictype/category-Z: Likewise.
67944         * modules/unictype/category-Zl: Likewise.
67945         * modules/unictype/category-Zp: Likewise.
67946         * modules/unictype/category-Zs: Likewise.
67947         * modules/unictype/category-and: Likewise.
67948         * modules/unictype/category-and-not: Likewise.
67949         * modules/unictype/category-byname: Likewise.
67950         * modules/unictype/category-name: Likewise.
67951         * modules/unictype/category-none: Likewise.
67952         * modules/unictype/category-of: Likewise.
67953         * modules/unictype/category-or: Likewise.
67954         * modules/unictype/category-test: Likewise.
67955         * modules/unictype/combining-class: Likewise.
67956         * modules/unictype/ctype-alnum: Likewise.
67957         * modules/unictype/ctype-alpha: Likewise.
67958         * modules/unictype/ctype-blank: Likewise.
67959         * modules/unictype/ctype-cntrl: Likewise.
67960         * modules/unictype/ctype-digit: Likewise.
67961         * modules/unictype/ctype-graph: Likewise.
67962         * modules/unictype/ctype-lower: Likewise.
67963         * modules/unictype/ctype-print: Likewise.
67964         * modules/unictype/ctype-punct: Likewise.
67965         * modules/unictype/ctype-space: Likewise.
67966         * modules/unictype/ctype-upper: Likewise.
67967         * modules/unictype/ctype-xdigit: Likewise.
67968         * modules/unictype/decimal-digit: Likewise.
67969         * modules/unictype/digit: Likewise.
67970         * modules/unictype/mirror: Likewise.
67971         * modules/unictype/numeric: Likewise.
67972         * modules/unictype/property-alphabetic: Likewise.
67973         * modules/unictype/property-ascii-hex-digit: Likewise.
67974         * modules/unictype/property-bidi-arabic-digit: Likewise.
67975         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
67976         * modules/unictype/property-bidi-block-separator: Likewise.
67977         * modules/unictype/property-bidi-boundary-neutral: Likewise.
67978         * modules/unictype/property-bidi-common-separator: Likewise.
67979         * modules/unictype/property-bidi-control: Likewise.
67980         * modules/unictype/property-bidi-embedding-or-override: Likewise.
67981         * modules/unictype/property-bidi-eur-num-separator: Likewise.
67982         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
67983         * modules/unictype/property-bidi-european-digit: Likewise.
67984         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
67985         * modules/unictype/property-bidi-left-to-right: Likewise.
67986         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
67987         * modules/unictype/property-bidi-other-neutral: Likewise.
67988         * modules/unictype/property-bidi-pdf: Likewise.
67989         * modules/unictype/property-bidi-segment-separator: Likewise.
67990         * modules/unictype/property-bidi-whitespace: Likewise.
67991         * modules/unictype/property-byname: Likewise.
67992         * modules/unictype/property-combining: Likewise.
67993         * modules/unictype/property-composite: Likewise.
67994         * modules/unictype/property-currency-symbol: Likewise.
67995         * modules/unictype/property-dash: Likewise.
67996         * modules/unictype/property-decimal-digit: Likewise.
67997         * modules/unictype/property-default-ignorable-code-point: Likewise.
67998         * modules/unictype/property-deprecated: Likewise.
67999         * modules/unictype/property-diacritic: Likewise.
68000         * modules/unictype/property-extender: Likewise.
68001         * modules/unictype/property-format-control: Likewise.
68002         * modules/unictype/property-grapheme-base: Likewise.
68003         * modules/unictype/property-grapheme-extend: Likewise.
68004         * modules/unictype/property-grapheme-link: Likewise.
68005         * modules/unictype/property-hex-digit: Likewise.
68006         * modules/unictype/property-hyphen: Likewise.
68007         * modules/unictype/property-id-continue: Likewise.
68008         * modules/unictype/property-id-start: Likewise.
68009         * modules/unictype/property-ideographic: Likewise.
68010         * modules/unictype/property-ids-binary-operator: Likewise.
68011         * modules/unictype/property-ids-trinary-operator: Likewise.
68012         * modules/unictype/property-ignorable-control: Likewise.
68013         * modules/unictype/property-iso-control: Likewise.
68014         * modules/unictype/property-join-control: Likewise.
68015         * modules/unictype/property-left-of-pair: Likewise.
68016         * modules/unictype/property-line-separator: Likewise.
68017         * modules/unictype/property-logical-order-exception: Likewise.
68018         * modules/unictype/property-lowercase: Likewise.
68019         * modules/unictype/property-math: Likewise.
68020         * modules/unictype/property-non-break: Likewise.
68021         * modules/unictype/property-not-a-character: Likewise.
68022         * modules/unictype/property-numeric: Likewise.
68023         * modules/unictype/property-other-alphabetic: Likewise.
68024         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
68025         * modules/unictype/property-other-grapheme-extend: Likewise.
68026         * modules/unictype/property-other-id-continue: Likewise.
68027         * modules/unictype/property-other-id-start: Likewise.
68028         * modules/unictype/property-other-lowercase: Likewise.
68029         * modules/unictype/property-other-math: Likewise.
68030         * modules/unictype/property-other-uppercase: Likewise.
68031         * modules/unictype/property-paired-punctuation: Likewise.
68032         * modules/unictype/property-paragraph-separator: Likewise.
68033         * modules/unictype/property-pattern-syntax: Likewise.
68034         * modules/unictype/property-pattern-white-space: Likewise.
68035         * modules/unictype/property-private-use: Likewise.
68036         * modules/unictype/property-punctuation: Likewise.
68037         * modules/unictype/property-quotation-mark: Likewise.
68038         * modules/unictype/property-radical: Likewise.
68039         * modules/unictype/property-sentence-terminal: Likewise.
68040         * modules/unictype/property-soft-dotted: Likewise.
68041         * modules/unictype/property-space: Likewise.
68042         * modules/unictype/property-terminal-punctuation: Likewise.
68043         * modules/unictype/property-test: Likewise.
68044         * modules/unictype/property-titlecase: Likewise.
68045         * modules/unictype/property-unassigned-code-value: Likewise.
68046         * modules/unictype/property-unified-ideograph: Likewise.
68047         * modules/unictype/property-uppercase: Likewise.
68048         * modules/unictype/property-variation-selector: Likewise.
68049         * modules/unictype/property-white-space: Likewise.
68050         * modules/unictype/property-xid-continue: Likewise.
68051         * modules/unictype/property-xid-start: Likewise.
68052         * modules/unictype/property-zero-width: Likewise.
68053         * modules/unictype/scripts: Likewise.
68054         * modules/unictype/syntax-c-ident: Likewise.
68055         * modules/unictype/syntax-c-whitespace: Likewise.
68056         * modules/unictype/syntax-java-ident: Likewise.
68057         * modules/unictype/syntax-java-whitespace: Likewise.
68058         * modules/unilbrk/u8-possible-linebreaks: Likewise.
68059         * modules/unilbrk/u8-width-linebreaks: Likewise.
68060         * modules/unilbrk/u16-possible-linebreaks: Likewise.
68061         * modules/unilbrk/u16-width-linebreaks: Likewise.
68062         * modules/unilbrk/u32-possible-linebreaks: Likewise.
68063         * modules/unilbrk/u32-width-linebreaks: Likewise.
68064         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
68065         * modules/unilbrk/ulc-width-linebreaks: Likewise.
68066         * modules/uniname/uniname: Likewise.
68067         * modules/uninorm/canonical-decomposition: Likewise.
68068         * modules/uninorm/composition: Likewise.
68069         * modules/uninorm/decomposing-form: Likewise.
68070         * modules/uninorm/decomposition: Likewise.
68071         * modules/uninorm/filter: Likewise.
68072         * modules/uninorm/nfc: Likewise.
68073         * modules/uninorm/nfd: Likewise.
68074         * modules/uninorm/nfkc: Likewise.
68075         * modules/uninorm/nfkd: Likewise.
68076         * modules/uninorm/u8-normalize: Likewise.
68077         * modules/uninorm/u8-normcmp: Likewise.
68078         * modules/uninorm/u8-normcoll: Likewise.
68079         * modules/uninorm/u8-normxfrm: Likewise.
68080         * modules/uninorm/u16-normalize: Likewise.
68081         * modules/uninorm/u16-normcmp: Likewise.
68082         * modules/uninorm/u16-normcoll: Likewise.
68083         * modules/uninorm/u16-normxfrm: Likewise.
68084         * modules/uninorm/u32-normalize: Likewise.
68085         * modules/uninorm/u32-normcmp: Likewise.
68086         * modules/uninorm/u32-normcoll: Likewise.
68087         * modules/uninorm/u32-normxfrm: Likewise.
68088         * modules/unistdio/u8-asnprintf: Likewise.
68089         * modules/unistdio/u8-asprintf: Likewise.
68090         * modules/unistdio/u8-snprintf: Likewise.
68091         * modules/unistdio/u8-sprintf: Likewise.
68092         * modules/unistdio/u8-u8-asnprintf: Likewise.
68093         * modules/unistdio/u8-u8-asprintf: Likewise.
68094         * modules/unistdio/u8-u8-snprintf: Likewise.
68095         * modules/unistdio/u8-u8-sprintf: Likewise.
68096         * modules/unistdio/u8-u8-vasnprintf: Likewise.
68097         * modules/unistdio/u8-u8-vasprintf: Likewise.
68098         * modules/unistdio/u8-u8-vsnprintf: Likewise.
68099         * modules/unistdio/u8-u8-vsprintf: Likewise.
68100         * modules/unistdio/u8-vasnprintf: Likewise.
68101         * modules/unistdio/u8-vasprintf: Likewise.
68102         * modules/unistdio/u8-vsnprintf: Likewise.
68103         * modules/unistdio/u8-vsprintf: Likewise.
68104         * modules/unistdio/u16-asnprintf: Likewise.
68105         * modules/unistdio/u16-asprintf: Likewise.
68106         * modules/unistdio/u16-snprintf: Likewise.
68107         * modules/unistdio/u16-sprintf: Likewise.
68108         * modules/unistdio/u16-u16-asnprintf: Likewise.
68109         * modules/unistdio/u16-u16-asprintf: Likewise.
68110         * modules/unistdio/u16-u16-snprintf: Likewise.
68111         * modules/unistdio/u16-u16-sprintf: Likewise.
68112         * modules/unistdio/u16-u16-vasnprintf: Likewise.
68113         * modules/unistdio/u16-u16-vasprintf: Likewise.
68114         * modules/unistdio/u16-u16-vsnprintf: Likewise.
68115         * modules/unistdio/u16-u16-vsprintf: Likewise.
68116         * modules/unistdio/u16-vasnprintf: Likewise.
68117         * modules/unistdio/u16-vasprintf: Likewise.
68118         * modules/unistdio/u16-vsnprintf: Likewise.
68119         * modules/unistdio/u16-vsprintf: Likewise.
68120         * modules/unistdio/u32-asnprintf: Likewise.
68121         * modules/unistdio/u32-asprintf: Likewise.
68122         * modules/unistdio/u32-snprintf: Likewise.
68123         * modules/unistdio/u32-sprintf: Likewise.
68124         * modules/unistdio/u32-u32-asnprintf: Likewise.
68125         * modules/unistdio/u32-u32-asprintf: Likewise.
68126         * modules/unistdio/u32-u32-snprintf: Likewise.
68127         * modules/unistdio/u32-u32-sprintf: Likewise.
68128         * modules/unistdio/u32-u32-vasnprintf: Likewise.
68129         * modules/unistdio/u32-u32-vasprintf: Likewise.
68130         * modules/unistdio/u32-u32-vsnprintf: Likewise.
68131         * modules/unistdio/u32-u32-vsprintf: Likewise.
68132         * modules/unistdio/u32-vasnprintf: Likewise.
68133         * modules/unistdio/u32-vasprintf: Likewise.
68134         * modules/unistdio/u32-vsnprintf: Likewise.
68135         * modules/unistdio/u32-vsprintf: Likewise.
68136         * modules/unistdio/ulc-asnprintf: Likewise.
68137         * modules/unistdio/ulc-asprintf: Likewise.
68138         * modules/unistdio/ulc-fprintf: Likewise.
68139         * modules/unistdio/ulc-snprintf: Likewise.
68140         * modules/unistdio/ulc-sprintf: Likewise.
68141         * modules/unistdio/ulc-vasnprintf: Likewise.
68142         * modules/unistdio/ulc-vasprintf: Likewise.
68143         * modules/unistdio/ulc-vfprintf: Likewise.
68144         * modules/unistdio/ulc-vsnprintf: Likewise.
68145         * modules/unistdio/ulc-vsprintf: Likewise.
68146         * modules/unistr/u8-check: Likewise.
68147         * modules/unistr/u8-chr: Likewise.
68148         * modules/unistr/u8-cmp: Likewise.
68149         * modules/unistr/u8-cmp2: Likewise.
68150         * modules/unistr/u8-cpy: Likewise.
68151         * modules/unistr/u8-cpy-alloc: Likewise.
68152         * modules/unistr/u8-endswith: Likewise.
68153         * modules/unistr/u8-mblen: Likewise.
68154         * modules/unistr/u8-mbsnlen: Likewise.
68155         * modules/unistr/u8-mbtouc: Likewise.
68156         * modules/unistr/u8-mbtouc-unsafe: Likewise.
68157         * modules/unistr/u8-mbtoucr: Likewise.
68158         * modules/unistr/u8-move: Likewise.
68159         * modules/unistr/u8-next: Likewise.
68160         * modules/unistr/u8-prev: Likewise.
68161         * modules/unistr/u8-set: Likewise.
68162         * modules/unistr/u8-startswith: Likewise.
68163         * modules/unistr/u8-stpcpy: Likewise.
68164         * modules/unistr/u8-stpncpy: Likewise.
68165         * modules/unistr/u8-strcat: Likewise.
68166         * modules/unistr/u8-strchr: Likewise.
68167         * modules/unistr/u8-strcmp: Likewise.
68168         * modules/unistr/u8-strcoll: Likewise.
68169         * modules/unistr/u8-strcpy: Likewise.
68170         * modules/unistr/u8-strcspn: Likewise.
68171         * modules/unistr/u8-strdup: Likewise.
68172         * modules/unistr/u8-strlen: Likewise.
68173         * modules/unistr/u8-strmblen: Likewise.
68174         * modules/unistr/u8-strmbtouc: Likewise.
68175         * modules/unistr/u8-strncat: Likewise.
68176         * modules/unistr/u8-strncmp: Likewise.
68177         * modules/unistr/u8-strncpy: Likewise.
68178         * modules/unistr/u8-strnlen: Likewise.
68179         * modules/unistr/u8-strpbrk: Likewise.
68180         * modules/unistr/u8-strrchr: Likewise.
68181         * modules/unistr/u8-strspn: Likewise.
68182         * modules/unistr/u8-strstr: Likewise.
68183         * modules/unistr/u8-strtok: Likewise.
68184         * modules/unistr/u8-to-u16: Likewise.
68185         * modules/unistr/u8-to-u32: Likewise.
68186         * modules/unistr/u8-uctomb: Likewise.
68187         * modules/unistr/u16-check: Likewise.
68188         * modules/unistr/u16-chr: Likewise.
68189         * modules/unistr/u16-cmp: Likewise.
68190         * modules/unistr/u16-cmp2: Likewise.
68191         * modules/unistr/u16-cpy: Likewise.
68192         * modules/unistr/u16-cpy-alloc: Likewise.
68193         * modules/unistr/u16-endswith: Likewise.
68194         * modules/unistr/u16-mblen: Likewise.
68195         * modules/unistr/u16-mbsnlen: Likewise.
68196         * modules/unistr/u16-mbtouc: Likewise.
68197         * modules/unistr/u16-mbtouc-unsafe: Likewise.
68198         * modules/unistr/u16-mbtoucr: Likewise.
68199         * modules/unistr/u16-move: Likewise.
68200         * modules/unistr/u16-next: Likewise.
68201         * modules/unistr/u16-prev: Likewise.
68202         * modules/unistr/u16-set: Likewise.
68203         * modules/unistr/u16-startswith: Likewise.
68204         * modules/unistr/u16-stpcpy: Likewise.
68205         * modules/unistr/u16-stpncpy: Likewise.
68206         * modules/unistr/u16-strcat: Likewise.
68207         * modules/unistr/u16-strchr: Likewise.
68208         * modules/unistr/u16-strcmp: Likewise.
68209         * modules/unistr/u16-strcoll: Likewise.
68210         * modules/unistr/u16-strcpy: Likewise.
68211         * modules/unistr/u16-strcspn: Likewise.
68212         * modules/unistr/u16-strdup: Likewise.
68213         * modules/unistr/u16-strlen: Likewise.
68214         * modules/unistr/u16-strmblen: Likewise.
68215         * modules/unistr/u16-strmbtouc: Likewise.
68216         * modules/unistr/u16-strncat: Likewise.
68217         * modules/unistr/u16-strncmp: Likewise.
68218         * modules/unistr/u16-strncpy: Likewise.
68219         * modules/unistr/u16-strnlen: Likewise.
68220         * modules/unistr/u16-strpbrk: Likewise.
68221         * modules/unistr/u16-strrchr: Likewise.
68222         * modules/unistr/u16-strspn: Likewise.
68223         * modules/unistr/u16-strstr: Likewise.
68224         * modules/unistr/u16-strtok: Likewise.
68225         * modules/unistr/u16-to-u32: Likewise.
68226         * modules/unistr/u16-to-u8: Likewise.
68227         * modules/unistr/u16-uctomb: Likewise.
68228         * modules/unistr/u32-check: Likewise.
68229         * modules/unistr/u32-chr: Likewise.
68230         * modules/unistr/u32-cmp: Likewise.
68231         * modules/unistr/u32-cmp2: Likewise.
68232         * modules/unistr/u32-cpy: Likewise.
68233         * modules/unistr/u32-cpy-alloc: Likewise.
68234         * modules/unistr/u32-endswith: Likewise.
68235         * modules/unistr/u32-mblen: Likewise.
68236         * modules/unistr/u32-mbsnlen: Likewise.
68237         * modules/unistr/u32-mbtouc: Likewise.
68238         * modules/unistr/u32-mbtouc-unsafe: Likewise.
68239         * modules/unistr/u32-mbtoucr: Likewise.
68240         * modules/unistr/u32-move: Likewise.
68241         * modules/unistr/u32-next: Likewise.
68242         * modules/unistr/u32-prev: Likewise.
68243         * modules/unistr/u32-set: Likewise.
68244         * modules/unistr/u32-startswith: Likewise.
68245         * modules/unistr/u32-stpcpy: Likewise.
68246         * modules/unistr/u32-stpncpy: Likewise.
68247         * modules/unistr/u32-strcat: Likewise.
68248         * modules/unistr/u32-strchr: Likewise.
68249         * modules/unistr/u32-strcmp: Likewise.
68250         * modules/unistr/u32-strcoll: Likewise.
68251         * modules/unistr/u32-strcpy: Likewise.
68252         * modules/unistr/u32-strcspn: Likewise.
68253         * modules/unistr/u32-strdup: Likewise.
68254         * modules/unistr/u32-strlen: Likewise.
68255         * modules/unistr/u32-strmblen: Likewise.
68256         * modules/unistr/u32-strmbtouc: Likewise.
68257         * modules/unistr/u32-strncat: Likewise.
68258         * modules/unistr/u32-strncmp: Likewise.
68259         * modules/unistr/u32-strncpy: Likewise.
68260         * modules/unistr/u32-strnlen: Likewise.
68261         * modules/unistr/u32-strpbrk: Likewise.
68262         * modules/unistr/u32-strrchr: Likewise.
68263         * modules/unistr/u32-strspn: Likewise.
68264         * modules/unistr/u32-strstr: Likewise.
68265         * modules/unistr/u32-strtok: Likewise.
68266         * modules/unistr/u32-to-u16: Likewise.
68267         * modules/unistr/u32-to-u8: Likewise.
68268         * modules/unistr/u32-uctomb: Likewise.
68269         * modules/uniwbrk/u8-wordbreaks: Likewise.
68270         * modules/uniwbrk/u16-wordbreaks: Likewise.
68271         * modules/uniwbrk/u32-wordbreaks: Likewise.
68272         * modules/uniwbrk/ulc-wordbreaks: Likewise.
68273         * modules/uniwbrk/wordbreak-property: Likewise.
68274         * modules/uniwidth/u8-strwidth: Likewise.
68275         * modules/uniwidth/u8-width: Likewise.
68276         * modules/uniwidth/u16-strwidth: Likewise.
68277         * modules/uniwidth/u16-width: Likewise.
68278         * modules/uniwidth/u32-strwidth: Likewise.
68279         * modules/uniwidth/u32-width: Likewise.
68280         * modules/uniwidth/width: Likewise.
68281         * modules/unicase/cased-tests (Makefile.am): Link all test programs
68282         with $(LIBUNISTRING).
68283         * modules/unicase/ignorable-tests: Likewise.
68284         * modules/unicase/locale-language-tests: Likewise.
68285         * modules/unicase/tolower-tests: Likewise.
68286         * modules/unicase/totitle-tests: Likewise.
68287         * modules/unicase/toupper-tests: Likewise.
68288         * modules/unicase/u8-casecmp-tests: Likewise.
68289         * modules/unicase/u8-casecoll-tests: Likewise.
68290         * modules/unicase/u8-casefold-tests: Likewise.
68291         * modules/unicase/u8-is-cased-tests: Likewise.
68292         * modules/unicase/u8-is-casefolded-tests: Likewise.
68293         * modules/unicase/u8-is-lowercase-tests: Likewise.
68294         * modules/unicase/u8-is-titlecase-tests: Likewise.
68295         * modules/unicase/u8-is-uppercase-tests: Likewise.
68296         * modules/unicase/u8-tolower-tests: Likewise.
68297         * modules/unicase/u8-totitle-tests: Likewise.
68298         * modules/unicase/u8-toupper-tests: Likewise.
68299         * modules/unicase/u16-casecmp-tests: Likewise.
68300         * modules/unicase/u16-casecoll-tests: Likewise.
68301         * modules/unicase/u16-casefold-tests: Likewise.
68302         * modules/unicase/u16-is-cased-tests: Likewise.
68303         * modules/unicase/u16-is-casefolded-tests: Likewise.
68304         * modules/unicase/u16-is-lowercase-tests: Likewise.
68305         * modules/unicase/u16-is-titlecase-tests: Likewise.
68306         * modules/unicase/u16-is-uppercase-tests: Likewise.
68307         * modules/unicase/u16-tolower-tests: Likewise.
68308         * modules/unicase/u16-totitle-tests: Likewise.
68309         * modules/unicase/u16-toupper-tests: Likewise.
68310         * modules/unicase/u32-casecmp-tests: Likewise.
68311         * modules/unicase/u32-casecoll-tests: Likewise.
68312         * modules/unicase/u32-casefold-tests: Likewise.
68313         * modules/unicase/u32-is-cased-tests: Likewise.
68314         * modules/unicase/u32-is-casefolded-tests: Likewise.
68315         * modules/unicase/u32-is-lowercase-tests: Likewise.
68316         * modules/unicase/u32-is-titlecase-tests: Likewise.
68317         * modules/unicase/u32-is-uppercase-tests: Likewise.
68318         * modules/unicase/u32-tolower-tests: Likewise.
68319         * modules/unicase/u32-totitle-tests: Likewise.
68320         * modules/unicase/u32-toupper-tests: Likewise.
68321         * modules/unicase/ulc-casecmp-tests: Likewise.
68322         * modules/unicase/ulc-casecoll-tests: Likewise.
68323         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
68324         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
68325         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
68326         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
68327         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
68328         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
68329         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
68330         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
68331         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
68332         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
68333         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
68334         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
68335         * modules/unictype/bidicategory-byname-tests: Likewise.
68336         * modules/unictype/bidicategory-name-tests: Likewise.
68337         * modules/unictype/bidicategory-of-tests: Likewise.
68338         * modules/unictype/bidicategory-test-tests: Likewise.
68339         * modules/unictype/block-list-tests: Likewise.
68340         * modules/unictype/block-of-tests: Likewise.
68341         * modules/unictype/block-test-tests: Likewise.
68342         * modules/unictype/category-C-tests: Likewise.
68343         * modules/unictype/category-Cc-tests: Likewise.
68344         * modules/unictype/category-Cf-tests: Likewise.
68345         * modules/unictype/category-Cn-tests: Likewise.
68346         * modules/unictype/category-Co-tests: Likewise.
68347         * modules/unictype/category-Cs-tests: Likewise.
68348         * modules/unictype/category-L-tests: Likewise.
68349         * modules/unictype/category-Ll-tests: Likewise.
68350         * modules/unictype/category-Lm-tests: Likewise.
68351         * modules/unictype/category-Lo-tests: Likewise.
68352         * modules/unictype/category-Lt-tests: Likewise.
68353         * modules/unictype/category-Lu-tests: Likewise.
68354         * modules/unictype/category-M-tests: Likewise.
68355         * modules/unictype/category-Mc-tests: Likewise.
68356         * modules/unictype/category-Me-tests: Likewise.
68357         * modules/unictype/category-Mn-tests: Likewise.
68358         * modules/unictype/category-N-tests: Likewise.
68359         * modules/unictype/category-Nd-tests: Likewise.
68360         * modules/unictype/category-Nl-tests: Likewise.
68361         * modules/unictype/category-No-tests: Likewise.
68362         * modules/unictype/category-P-tests: Likewise.
68363         * modules/unictype/category-Pc-tests: Likewise.
68364         * modules/unictype/category-Pd-tests: Likewise.
68365         * modules/unictype/category-Pe-tests: Likewise.
68366         * modules/unictype/category-Pf-tests: Likewise.
68367         * modules/unictype/category-Pi-tests: Likewise.
68368         * modules/unictype/category-Po-tests: Likewise.
68369         * modules/unictype/category-Ps-tests: Likewise.
68370         * modules/unictype/category-S-tests: Likewise.
68371         * modules/unictype/category-Sc-tests: Likewise.
68372         * modules/unictype/category-Sk-tests: Likewise.
68373         * modules/unictype/category-Sm-tests: Likewise.
68374         * modules/unictype/category-So-tests: Likewise.
68375         * modules/unictype/category-Z-tests: Likewise.
68376         * modules/unictype/category-Zl-tests: Likewise.
68377         * modules/unictype/category-Zp-tests: Likewise.
68378         * modules/unictype/category-Zs-tests: Likewise.
68379         * modules/unictype/category-and-not-tests: Likewise.
68380         * modules/unictype/category-and-tests: Likewise.
68381         * modules/unictype/category-byname-tests: Likewise.
68382         * modules/unictype/category-name-tests: Likewise.
68383         * modules/unictype/category-none-tests: Likewise.
68384         * modules/unictype/category-of-tests: Likewise.
68385         * modules/unictype/category-or-tests: Likewise.
68386         * modules/unictype/category-test-withtable-tests: Likewise.
68387         * modules/unictype/combining-class-tests: Likewise.
68388         * modules/unictype/ctype-alnum-tests: Likewise.
68389         * modules/unictype/ctype-alpha-tests: Likewise.
68390         * modules/unictype/ctype-blank-tests: Likewise.
68391         * modules/unictype/ctype-cntrl-tests: Likewise.
68392         * modules/unictype/ctype-digit-tests: Likewise.
68393         * modules/unictype/ctype-graph-tests: Likewise.
68394         * modules/unictype/ctype-lower-tests: Likewise.
68395         * modules/unictype/ctype-print-tests: Likewise.
68396         * modules/unictype/ctype-punct-tests: Likewise.
68397         * modules/unictype/ctype-space-tests: Likewise.
68398         * modules/unictype/ctype-upper-tests: Likewise.
68399         * modules/unictype/ctype-xdigit-tests: Likewise.
68400         * modules/unictype/decimal-digit-tests: Likewise.
68401         * modules/unictype/digit-tests: Likewise.
68402         * modules/unictype/mirror-tests: Likewise.
68403         * modules/unictype/numeric-tests: Likewise.
68404         * modules/unictype/property-alphabetic-tests: Likewise.
68405         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
68406         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
68407         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
68408         * modules/unictype/property-bidi-block-separator-tests: Likewise.
68409         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
68410         * modules/unictype/property-bidi-common-separator-tests: Likewise.
68411         * modules/unictype/property-bidi-control-tests: Likewise.
68412         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
68413         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
68414         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
68415         * modules/unictype/property-bidi-european-digit-tests: Likewise.
68416         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
68417         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
68418         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
68419         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
68420         * modules/unictype/property-bidi-pdf-tests: Likewise.
68421         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
68422         * modules/unictype/property-bidi-whitespace-tests: Likewise.
68423         * modules/unictype/property-byname-tests: Likewise.
68424         * modules/unictype/property-combining-tests: Likewise.
68425         * modules/unictype/property-composite-tests: Likewise.
68426         * modules/unictype/property-currency-symbol-tests: Likewise.
68427         * modules/unictype/property-dash-tests: Likewise.
68428         * modules/unictype/property-decimal-digit-tests: Likewise.
68429         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
68430         * modules/unictype/property-deprecated-tests: Likewise.
68431         * modules/unictype/property-diacritic-tests: Likewise.
68432         * modules/unictype/property-extender-tests: Likewise.
68433         * modules/unictype/property-format-control-tests: Likewise.
68434         * modules/unictype/property-grapheme-base-tests: Likewise.
68435         * modules/unictype/property-grapheme-extend-tests: Likewise.
68436         * modules/unictype/property-grapheme-link-tests: Likewise.
68437         * modules/unictype/property-hex-digit-tests: Likewise.
68438         * modules/unictype/property-hyphen-tests: Likewise.
68439         * modules/unictype/property-id-continue-tests: Likewise.
68440         * modules/unictype/property-id-start-tests: Likewise.
68441         * modules/unictype/property-ideographic-tests: Likewise.
68442         * modules/unictype/property-ids-binary-operator-tests: Likewise.
68443         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
68444         * modules/unictype/property-ignorable-control-tests: Likewise.
68445         * modules/unictype/property-iso-control-tests: Likewise.
68446         * modules/unictype/property-join-control-tests: Likewise.
68447         * modules/unictype/property-left-of-pair-tests: Likewise.
68448         * modules/unictype/property-line-separator-tests: Likewise.
68449         * modules/unictype/property-logical-order-exception-tests: Likewise.
68450         * modules/unictype/property-lowercase-tests: Likewise.
68451         * modules/unictype/property-math-tests: Likewise.
68452         * modules/unictype/property-non-break-tests: Likewise.
68453         * modules/unictype/property-not-a-character-tests: Likewise.
68454         * modules/unictype/property-numeric-tests: Likewise.
68455         * modules/unictype/property-other-alphabetic-tests: Likewise.
68456         * modules/unictype/property-other-default-ignorable-code-point-tests:
68457         Likewise.
68458         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
68459         * modules/unictype/property-other-id-continue-tests: Likewise.
68460         * modules/unictype/property-other-id-start-tests: Likewise.
68461         * modules/unictype/property-other-lowercase-tests: Likewise.
68462         * modules/unictype/property-other-math-tests: Likewise.
68463         * modules/unictype/property-other-uppercase-tests: Likewise.
68464         * modules/unictype/property-paired-punctuation-tests: Likewise.
68465         * modules/unictype/property-paragraph-separator-tests: Likewise.
68466         * modules/unictype/property-pattern-syntax-tests: Likewise.
68467         * modules/unictype/property-pattern-white-space-tests: Likewise.
68468         * modules/unictype/property-private-use-tests: Likewise.
68469         * modules/unictype/property-punctuation-tests: Likewise.
68470         * modules/unictype/property-quotation-mark-tests: Likewise.
68471         * modules/unictype/property-radical-tests: Likewise.
68472         * modules/unictype/property-sentence-terminal-tests: Likewise.
68473         * modules/unictype/property-soft-dotted-tests: Likewise.
68474         * modules/unictype/property-space-tests: Likewise.
68475         * modules/unictype/property-terminal-punctuation-tests: Likewise.
68476         * modules/unictype/property-test-tests: Likewise.
68477         * modules/unictype/property-titlecase-tests: Likewise.
68478         * modules/unictype/property-unassigned-code-value-tests: Likewise.
68479         * modules/unictype/property-unified-ideograph-tests: Likewise.
68480         * modules/unictype/property-uppercase-tests: Likewise.
68481         * modules/unictype/property-variation-selector-tests: Likewise.
68482         * modules/unictype/property-white-space-tests: Likewise.
68483         * modules/unictype/property-xid-continue-tests: Likewise.
68484         * modules/unictype/property-xid-start-tests: Likewise.
68485         * modules/unictype/property-zero-width-tests: Likewise.
68486         * modules/unictype/scripts-tests: Likewise.
68487         * modules/unictype/syntax-c-ident-tests: Likewise.
68488         * modules/unictype/syntax-c-whitespace-tests: Likewise.
68489         * modules/unictype/syntax-java-ident-tests: Likewise.
68490         * modules/unictype/syntax-java-whitespace-tests: Likewise.
68491         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
68492         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
68493         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
68494         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
68495         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
68496         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
68497         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
68498         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
68499         * modules/uniname/uniname-tests: Likewise.
68500         * modules/uninorm/canonical-decomposition-tests: Likewise.
68501         * modules/uninorm/compat-decomposition-tests: Likewise.
68502         * modules/uninorm/composition-tests: Likewise.
68503         * modules/uninorm/decomposing-form-tests: Likewise.
68504         * modules/uninorm/decomposition-tests: Likewise.
68505         * modules/uninorm/filter-tests: Likewise.
68506         * modules/uninorm/nfc-tests: Likewise.
68507         * modules/uninorm/nfd-tests: Likewise.
68508         * modules/uninorm/nfkc-tests: Likewise.
68509         * modules/uninorm/nfkd-tests: Likewise.
68510         * modules/uninorm/u8-normcmp-tests: Likewise.
68511         * modules/uninorm/u8-normcoll-tests: Likewise.
68512         * modules/uninorm/u16-normcmp-tests: Likewise.
68513         * modules/uninorm/u16-normcoll-tests: Likewise.
68514         * modules/uninorm/u32-normcmp-tests: Likewise.
68515         * modules/uninorm/u32-normcoll-tests: Likewise.
68516         * modules/unistdio/u8-asnprintf-tests: Likewise.
68517         * modules/unistdio/u8-vasnprintf-tests: Likewise.
68518         * modules/unistdio/u8-vasprintf-tests: Likewise.
68519         * modules/unistdio/u8-vsnprintf-tests: Likewise.
68520         * modules/unistdio/u8-vsprintf-tests: Likewise.
68521         * modules/unistdio/u16-asnprintf-tests: Likewise.
68522         * modules/unistdio/u16-vasnprintf-tests: Likewise.
68523         * modules/unistdio/u16-vasprintf-tests: Likewise.
68524         * modules/unistdio/u16-vsnprintf-tests: Likewise.
68525         * modules/unistdio/u16-vsprintf-tests: Likewise.
68526         * modules/unistdio/u32-asnprintf-tests: Likewise.
68527         * modules/unistdio/u32-vasnprintf-tests: Likewise.
68528         * modules/unistdio/u32-vasprintf-tests: Likewise.
68529         * modules/unistdio/u32-vsnprintf-tests: Likewise.
68530         * modules/unistdio/u32-vsprintf-tests: Likewise.
68531         * modules/unistdio/ulc-asnprintf-tests: Likewise.
68532         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
68533         * modules/unistdio/ulc-vasprintf-tests: Likewise.
68534         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
68535         * modules/unistdio/ulc-vsprintf-tests: Likewise.
68536         * modules/unistr/u8-check-tests: Likewise.
68537         * modules/unistr/u8-chr-tests: Likewise.
68538         * modules/unistr/u8-cmp-tests: Likewise.
68539         * modules/unistr/u8-cmp2-tests: Likewise.
68540         * modules/unistr/u8-cpy-alloc-tests: Likewise.
68541         * modules/unistr/u8-cpy-tests: Likewise.
68542         * modules/unistr/u8-mblen-tests: Likewise.
68543         * modules/unistr/u8-mbsnlen-tests: Likewise.
68544         * modules/unistr/u8-mbtouc-tests: Likewise.
68545         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
68546         * modules/unistr/u8-mbtoucr-tests: Likewise.
68547         * modules/unistr/u8-move-tests: Likewise.
68548         * modules/unistr/u8-next-tests: Likewise.
68549         * modules/unistr/u8-prev-tests: Likewise.
68550         * modules/unistr/u8-set-tests: Likewise.
68551         * modules/unistr/u8-stpcpy-tests: Likewise.
68552         * modules/unistr/u8-stpncpy-tests: Likewise.
68553         * modules/unistr/u8-strcat-tests: Likewise.
68554         * modules/unistr/u8-strcmp-tests: Likewise.
68555         * modules/unistr/u8-strcoll-tests: Likewise.
68556         * modules/unistr/u8-strcpy-tests: Likewise.
68557         * modules/unistr/u8-strdup-tests: Likewise.
68558         * modules/unistr/u8-strlen-tests: Likewise.
68559         * modules/unistr/u8-strmblen-tests: Likewise.
68560         * modules/unistr/u8-strmbtouc-tests: Likewise.
68561         * modules/unistr/u8-strncat-tests: Likewise.
68562         * modules/unistr/u8-strncmp-tests: Likewise.
68563         * modules/unistr/u8-strncpy-tests: Likewise.
68564         * modules/unistr/u8-strnlen-tests: Likewise.
68565         * modules/unistr/u8-to-u16-tests: Likewise.
68566         * modules/unistr/u8-to-u32-tests: Likewise.
68567         * modules/unistr/u8-uctomb-tests: Likewise.
68568         * modules/unistr/u16-check-tests: Likewise.
68569         * modules/unistr/u16-chr-tests: Likewise.
68570         * modules/unistr/u16-cmp-tests: Likewise.
68571         * modules/unistr/u16-cmp2-tests: Likewise.
68572         * modules/unistr/u16-cpy-alloc-tests: Likewise.
68573         * modules/unistr/u16-cpy-tests: Likewise.
68574         * modules/unistr/u16-mblen-tests: Likewise.
68575         * modules/unistr/u16-mbsnlen-tests: Likewise.
68576         * modules/unistr/u16-mbtouc-tests: Likewise.
68577         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
68578         * modules/unistr/u16-mbtoucr-tests: Likewise.
68579         * modules/unistr/u16-move-tests: Likewise.
68580         * modules/unistr/u16-next-tests: Likewise.
68581         * modules/unistr/u16-prev-tests: Likewise.
68582         * modules/unistr/u16-set-tests: Likewise.
68583         * modules/unistr/u16-stpcpy-tests: Likewise.
68584         * modules/unistr/u16-stpncpy-tests: Likewise.
68585         * modules/unistr/u16-strcat-tests: Likewise.
68586         * modules/unistr/u16-strcmp-tests: Likewise.
68587         * modules/unistr/u16-strcoll-tests: Likewise.
68588         * modules/unistr/u16-strcpy-tests: Likewise.
68589         * modules/unistr/u16-strdup-tests: Likewise.
68590         * modules/unistr/u16-strlen-tests: Likewise.
68591         * modules/unistr/u16-strmblen-tests: Likewise.
68592         * modules/unistr/u16-strmbtouc-tests: Likewise.
68593         * modules/unistr/u16-strncat-tests: Likewise.
68594         * modules/unistr/u16-strncmp-tests: Likewise.
68595         * modules/unistr/u16-strncpy-tests: Likewise.
68596         * modules/unistr/u16-strnlen-tests: Likewise.
68597         * modules/unistr/u16-to-u32-tests: Likewise.
68598         * modules/unistr/u16-to-u8-tests: Likewise.
68599         * modules/unistr/u16-uctomb-tests: Likewise.
68600         * modules/unistr/u32-check-tests: Likewise.
68601         * modules/unistr/u32-chr-tests: Likewise.
68602         * modules/unistr/u32-cmp-tests: Likewise.
68603         * modules/unistr/u32-cmp2-tests: Likewise.
68604         * modules/unistr/u32-cpy-alloc-tests: Likewise.
68605         * modules/unistr/u32-cpy-tests: Likewise.
68606         * modules/unistr/u32-mblen-tests: Likewise.
68607         * modules/unistr/u32-mbsnlen-tests: Likewise.
68608         * modules/unistr/u32-mbtouc-tests: Likewise.
68609         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
68610         * modules/unistr/u32-mbtoucr-tests: Likewise.
68611         * modules/unistr/u32-move-tests: Likewise.
68612         * modules/unistr/u32-next-tests: Likewise.
68613         * modules/unistr/u32-prev-tests: Likewise.
68614         * modules/unistr/u32-set-tests: Likewise.
68615         * modules/unistr/u32-stpcpy-tests: Likewise.
68616         * modules/unistr/u32-stpncpy-tests: Likewise.
68617         * modules/unistr/u32-strcat-tests: Likewise.
68618         * modules/unistr/u32-strcmp-tests: Likewise.
68619         * modules/unistr/u32-strcoll-tests: Likewise.
68620         * modules/unistr/u32-strcpy-tests: Likewise.
68621         * modules/unistr/u32-strdup-tests: Likewise.
68622         * modules/unistr/u32-strlen-tests: Likewise.
68623         * modules/unistr/u32-strmblen-tests: Likewise.
68624         * modules/unistr/u32-strmbtouc-tests: Likewise.
68625         * modules/unistr/u32-strncat-tests: Likewise.
68626         * modules/unistr/u32-strncmp-tests: Likewise.
68627         * modules/unistr/u32-strncpy-tests: Likewise.
68628         * modules/unistr/u32-strnlen-tests: Likewise.
68629         * modules/unistr/u32-to-u16-tests: Likewise.
68630         * modules/unistr/u32-to-u8-tests: Likewise.
68631         * modules/unistr/u32-uctomb-tests: Likewise.
68632         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
68633         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
68634         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
68635         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
68636         * modules/uniwidth/u8-strwidth-tests: Likewise.
68637         * modules/uniwidth/u8-width-tests: Likewise.
68638         * modules/uniwidth/u16-strwidth-tests: Likewise.
68639         * modules/uniwidth/u16-width-tests: Likewise.
68640         * modules/uniwidth/u32-strwidth-tests: Likewise.
68641         * modules/uniwidth/u32-width-tests: Likewise.
68642         * modules/uniwidth/width-tests: Likewise.
68644 2010-05-18  Richard Jones  <rjones@redhat.com>
68646         doc: users.txt: list hivex
68647         * users.txt: Add hivex.
68649 2010-05-18  Richard Jones  <rjones@redhat.com>
68651         doc: users.txt: list febootstrap
68652         * users.txt: Add febootstrap.
68654 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
68656         bootstrap: fix an error when gnulib is not used as a git submodule
68657         * build-aux/bootstrap (gnulib_path): If its length is zero then
68658         assign "gnulib" to it.
68659         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
68661 2010-05-16  Bruno Haible  <bruno@clisp.org>
68663         Avoid autoconf warnings about AM_ICONV.
68664         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
68665         2.64.
68667 2010-05-16  Bruno Haible  <bruno@clisp.org>
68669         absolute-header: Make the macro usable in more situations.
68670         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
68671         from gl_ABSOLUTE_HEADER.
68672         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
68674 2010-05-16  James Youngman  <jay@gnu.org>
68676         doc: update users.txt
68677         * users.txt: Add CSSC.
68679 2010-05-16  Jim Meyering  <meyering@redhat.com>
68681         init.sh: fix an error in the previous change; add more comments
68682         * tests/init.sh: Compare exit code in loop against 9, not 2.
68683         Patch by Bruno Haible.
68684         Make the two tests more similar by adding an empty "then" clause.
68685         Add comments.
68687         init.sh: avoid unnecessary shell re-exec
68688         * tests/init.sh: Improve the re-exec-required check to first test the
68689         current shell.  If it passes the test, do not search for a shell that
68690         does pass, and do not re-exec.  This test is particularly contorted to
68691         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
68692         of $(...) evokes a syntax error and causes immediate shell exit with
68693         status 2.  Bruno Haible reported that the re-exec made it impossible
68694         to single-step through any init.sh-using script.
68696 2010-05-16  Bruno Haible  <bruno@clisp.org>
68698         Fix collision between gnulib's and libintl's printf replacements.
68699         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
68700         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
68701         (printf): When using GNU C, map the __printf__ function to rpl_printf
68702         via __asm__. When not using GNU C, define rpl_printf instead of
68703         __printf__.
68704         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
68705         commit.
68706         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
68707         commit.
68708         * m4/asm-underscore.m4: New file.
68709         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
68710         * modules/stdio (Files): Add m4/asm-underscore.m4.
68711         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
68712         Reported by Ben Pfaff.
68714 2010-05-16  Bruno Haible  <bruno@clisp.org>
68716         verify: Avoid skipping the test on openSUSE 11.0.
68717         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
68719 2010-05-13  Bruno Haible  <bruno@clisp.org>
68721         Avoid useless warnings from G++.
68722         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
68723         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
68724         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
68726 2010-05-11  Jim Meyering  <meyering@redhat.com>
68728         maint.mk: tweak preceding change
68729         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
68730         regexps tighter by anchoring at EOL, and make the new group "shy"
68731         for slightly decreased overhead.
68733 2010-05-11  Eric Blake  <eblake@redhat.com>
68735         maint.mk: gnulib doesn't guarantee NSIG
68736         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
68738 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
68740         test-pwrite.c: Remove unused variable declaration.
68741         * tests/test-pwrite.c (main): Remove read_buf declaration.
68743         Remove useless test-pwrite.sh file.
68744         * tests/test-pwrite.sh: Delete file.
68745         * modules/pwrite-tests: Remove references.
68746         Reported by Bruno Haible.
68748 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
68750         init.sh: fix a typo
68751         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
68753 2010-05-10  Jim Meyering  <meyering@redhat.com>
68755         maint.mk: avoid using a temporary file in the always-defined-macros check
68756         * top/maint.mk (.re-defmac): Remove rule.
68757         (gl_trap_): Remove definition.
68758         (sc_prohibit_always-defined_macros): Rewrite not to create and
68759         depend on a temporary file.  Instead, depend on GNU grep's ability
68760         to read a list of regular expressions from stdin when given "-f -".
68762 2010-05-09  Bruno Haible  <bruno@clisp.org>
68764         Update to GNU gettext 0.18, part 1.
68765         * m4/gettext.m4: Update to GNU gettext 0.18.
68766         * m4/intl.m4: Likewise.
68767         * m4/po.m4: Likewise.
68768         * modules/gettext (Files): Add m4/fcntl-o.m4.
68769         (configure.ac): Require gettext infrastructure from version 0.18.
68771 2010-05-09  Jim Meyering  <meyering@redhat.com>
68773         init.sh: enable MALLOC_PERTURB_
68774         * tests/init.sh: Enable glibc's malloc-perturbing option.
68776         maint.mk: improve sc_cross_check_PATH_usage_in_tests
68777         With my recent change in init.sh from the two-line form:
68778             -#   : ${srcdir=.}
68779             -#   . "$srcdir/init.sh"; path_prepend_ .
68780             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
68781         I noticed that using the one-line form would cause this test
68782         to fail with a false-positive, or to stop working altogether,
68783         depending on whether help-version changed or all the tests did.
68784         * top/maint.mk (_hv_regex): Remove this definition.
68785         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
68786         (_hv_regex_strong): Use a stronger regex to check for conformance.
68787         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
68788         Give a separate diagnostic for lack of conforming use.
68790         maint.mk: prohibit definition of symbols defined by gnulib
68791         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
68792         definition of symbols defined by gnulib.
68794 2010-05-09  Bruno Haible  <bruno@clisp.org>
68796         acl: Avoid test failure on Cygwin-hosted mingw.
68797         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
68799 2010-05-09  Bruno Haible  <bruno@clisp.org>
68801         error: Use system's fcntl function.
68802         * lib/error.c (fcntl): Undefine.
68804 2010-05-09  Jim Meyering  <meyering@redhat.com>
68806         verify: adjust formatting to be more consistent
68807         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
68808         argument-list '('s, and after one comma.
68810 2010-05-09  Bruno Haible  <bruno@clisp.org>
68812         error: More reliable output on mingw.
68813         * lib/error.c: Include <windows.h>.
68814         (is_open): New function.
68815         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
68816         defined.
68818 2010-05-09  Bruno Haible  <bruno@clisp.org>
68820         vasnprintf: Fix syntax errors in libintl build on mingw.
68821         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
68822         pad_ourselves and prec_ourselves after use.
68824 2010-05-08  Bruno Haible  <bruno@clisp.org>
68826         * lib/config.charset: Update comments for Cygwin 1.7.
68827         * lib/localcharset.c: Likewise.
68829 2010-05-07  Jim Meyering  <meyering@redhat.com>
68831         init.sh: improve comments
68832         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
68833         . "${srcdir=.}/init.sh"; path_prepend_ .
68834         Add a note about path_prepend_ and the alternative of using
68835         TESTS_ENVIRONMENT.
68837 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
68839         exclude: Unescape hashed patterns in wildcard mode.
68840         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
68841         to the hash list.
68842         * tests/test-exclude8.sh: New test case.
68843         * modules/exclude-tests: Add new test.
68845 2010-05-05  Eric Blake  <eblake@redhat.com>
68847         verify: automate tests
68848         * modules/verify-tests: New module.
68849         * tests/test-verify.sh: New file.
68850         * tests/test-verify.c: Guard each negative test with a unique id.
68851         Also avoid warning about unused left hand of comma expressions.
68853 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
68855         Further improvements to verify.h, suggested by Eric Blake.
68856         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
68857         the GL_* versions, to avoid collision with OpenGL.
68858         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
68859         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
68860         than testing merely whether it's defined.
68862         Modify verify.h to pacify gcc -Wredundant_decls.
68863         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
68864         These use the prefix "GL_" since they're likely to be useful elsewhere.
68865         We may need to break them out into a different .h file.
68866         (__COUNTER__): Define to 0 if the compiler doesn't support it.
68867         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
68868         of verify_function__.
68870 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
68872         Tests for module pwrite.
68873         * modules/pwrite-tests: New file.
68874         * tests/test-pwrite.sh: New file.
68875         * tests/test-pwrite.c: New file.
68877         New module pwrite.
68878         * lib/unistd.in.h (pwrite): New declaration.
68879         * lib/pwrite.c: New file, from glibc with modifications.
68880         * m4/pwrite.m4: New file.
68881         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
68882         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
68883         REPLACE_PWRITE.
68884         * modules/pwrite: New file.
68885         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
68886         REPLACE_PWRITE.
68887         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
68888         * doc/posix-functions/pwrite.texi: Mention the new module.
68890 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
68892         pread: Update documentation.
68893         * doc/posix-functions/pread.texi: Mention the 'pread' module.
68895 2010-05-04  Eric Blake  <eblake@redhat.com>
68897         docs: update cygwin progress
68898         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
68899         this bug.
68900         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
68901         Added in cygwin 1.7.2.
68902         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
68903         Likewise.
68904         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
68905         Likewise.
68906         * doc/glibc-functions/dup3.texi (dup3): Likewise.
68907         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
68908         * doc/glibc-functions/accept4.texi (accept4): Likewise.
68909         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
68910         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
68911         Mention nproc module.
68912         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
68913         bug in cygwin 1.7.5 addition.
68914         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
68915         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
68916         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
68917         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
68918         1.7.5.
68919         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
68920         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
68921         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
68922         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
68923         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
68924         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
68925         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
68926         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
68927         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
68928         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
68929         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
68930         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
68931         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
68932         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
68933         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
68934         Likewise.
68935         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
68936         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
68937         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
68938         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
68939         Likewise.
68940         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
68941         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
68942         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
68943         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
68944         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
68945         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
68946         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
68947         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
68948         Likewise.
68949         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
68950         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
68951         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
68952         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
68953         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
68954         Likewise.
68955         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
68956         Likewise.
68957         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
68958         Likewise.
68959         * doc/glibc-functions/xdrrec_endofrecord.texi
68960         (xdrrec_endofrecord): Likewise.
68961         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
68962         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
68963         Likewise.
68964         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
68965         Likewise.
68967 2010-05-04  Jim Meyering  <meyering@redhat.com>
68969         gendocs.sh: make its "-s FILE" option more useful
68970         * build-aux/gendocs.sh: When honoring the -s FILE option, update
68971         $PACKAGE to reflect the probably-different basename of "FILE".
68973 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
68975         bootstrap: don't ignore download_po_files failure
68976         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
68977         failure.
68979 2010-05-03  Jim Meyering  <meyering@redhat.com>
68981         maint.mk: allow to pass options to gendocs.sh
68982         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
68983         (gendocs_options_): New overridable variable.
68985         gnu-web-doc-update: don't ignore configure or build failure
68986         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
68988         announce-gen: backslash-escape '@'s in --help output
68989         * build-aux/announce-gen: Fix syntax errors.
68991         maint.mk, announce-gen: allow project-specific announcement mail headers
68992         * top/maint.mk (translation_project_): Define default.
68993         (announcement_Cc_, announcement_mail_headers_): Likewise.
68994         (announcement): Invoke announce-gen with new --mail-headers option.
68995         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
68997         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
68998         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
68999         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
69000         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
69001         line in the "err2" output file when running "make check" in verbose
69002         mode (i.e., with set -x enabled).
69004 2010-05-03  Bruno Haible  <bruno@clisp.org>
69006         wctob: Fix for weird platforms.
69007         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
69008         argument value.
69010 2010-05-03  Jim Meyering  <meyering@redhat.com>
69012         maint.mk: prohibit unwarranted use of <strings.h>
69013         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
69014         strings.h in a file that does not also use strcasecmp, strncasecmp,
69015         ffs or ffsll.
69017         maint.mk: remove obsolete comments
69018         * top/maint.mk: Remove stale, commented-out rules.
69020 2010-05-02  Bruno Haible  <bruno@clisp.org>
69022         wcwidth: Declare also when it's aliased.
69023         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
69024         macro.
69026 2010-05-02  Bruno Haible  <bruno@clisp.org>
69028         Fix regression from 2010-04-25.
69029         * gnulib-tool (func_modules_transitive_closure): Check the status of
69030         all modules, not only of the tests that are of the form foo-tests where
69031         foo is a module.
69033 2010-05-02  Bruno Haible  <bruno@clisp.org>
69035         wctob: Work around nasty Cygwin 1.7.2 bug.
69036         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
69037         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
69039 2010-05-01  Bruno Haible  <bruno@clisp.org>
69041         fpurge: Sharper test.
69042         * tests/test-fpurge.c (main): Add one more ftell check.
69043         * modules/fpurge-tests (Depends-on): Add ftell.
69044         Suggested by Eric Blake.
69046 2010-05-01  Bruno Haible  <bruno@clisp.org>
69048         ftello: Another test.
69049         * tests/test-ftello3.c: New file.
69050         * modules/ftello-tests (Files): Add it.
69051         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
69052         MOSTLYCLEANFILES.
69054         ftell: Another test.
69055         * tests/test-ftell3.c: New file.
69056         * modules/ftell-tests (Files): Add it.
69057         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
69058         MOSTLYCLEANFILES.
69060 2010-05-01  Bruno Haible  <bruno@clisp.org>
69062         ftell, ftello: Work around Solaris bug.
69063         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
69064         * lib/ftello.c: Include stdio-impl.h.
69065         (ftello): On Solaris, when _IOWRT is set, compute the result without
69066         looking at _IOREAD.
69067         * modules/ftello (Files): Add lib/stdio-impl.h.
69068         * doc/posix-functions/ftell.texi: Mention Solaris bug.
69069         * doc/posix-functions/ftello.texi: Likewise.
69070         Reported by Eric Blake.
69072 2010-05-01  Bruno Haible  <bruno@clisp.org>
69074         freading: Adapt to special meaning of _IOREAD flag on Solaris.
69075         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
69076         the _IOWRT flag is also set.
69078 2010-05-01  Bruno Haible  <bruno@clisp.org>
69080         Fix doc about a HP-UX stdio bug.
69081         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
69082         * doc/posix-functions/ftello.texi: Likewise.
69084 2010-05-01  Bruno Haible  <bruno@clisp.org>
69086         lseek test: Fix failure on Solaris.
69087         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
69088         output.
69090 2010-04-30  Jim Meyering  <meyering@redhat.com>
69092         bootstrap: don't ignore failure to generate po*/Makevars
69093         * build-aux/bootstrap (with_gettext): Don't ignore failure
69094         to create po/Makevars or runtime-po/Makevars.
69096 2010-04-29  Eric Blake  <eblake@redhat.com>
69098         headers: relax license to LGPLv2+
69099         * modules/fcntl-h (License): Relax license.
69100         * modules/getopt-posix (License): Likewise.
69101         * modules/locale (License): Likewise.
69102         * modules/math (License): Likewise.
69103         * modules/pty (License): Likewise.
69104         * modules/sched (License): Likewise.
69105         * modules/search (License): Likewise.
69106         * modules/spawn (License): Likewise.
69107         * modules/stdarg (License): Likewise.
69108         * modules/sysexits (License): Likewise.
69110 2010-04-29  Jim Meyering  <meyering@redhat.com>
69112         inttypes: relax license to LGPLv2+
69113         * modules/inttypes (License): Relax license.
69115 2010-04-29  Simon Josefsson  <simon@josefsson.org>
69117         * top/maint.mk (indent): Run twice to produce idempotent results.
69119 2010-04-28  Bruno Haible  <bruno@clisp.org>
69121         getdate: Generate getdate.c in the source directory.
69122         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
69123         MOSTLYCLEANFILES.
69124         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
69126 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
69128         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
69129         is not declared as a const *; avoid warnings in that case.
69131 2010-04-28  Eric Blake  <eblake@redhat.com>
69133         canonicalize-lgpl: avoid compiler warning
69134         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
69135         declaration' / 'extraneous semicolon' warning with some compilers.
69136         Reported by Andreas Gruenbacher.
69138 2010-04-28  Jim Meyering  <meyering@redhat.com>
69140         init.sh: ensure a more reliable exit status when exiting via trap
69141         * tests/init.sh (setup_): Don't rely on $? in signal handler.
69142         Inspired by patches from Dmitry V. Levin.
69143         Also trap on signal 3 (SIGQUIT).
69145 2010-04-27  Bruno Haible  <bruno@clisp.org>
69147         Update doc about utimes().
69148         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
69149         'utimens' module.
69150         Reported by Andreas Gruenbacher <agruen@suse.de>.
69152 2010-04-27  Eric Blake  <eblake@redhat.com>
69154         full-read, full-write: relax license
69155         * modules/full-read (License): Drop to LGPLv2+.
69156         * modules/full-write (License): Likewise.
69157         * modules/safe-read (License): Likewise.
69158         * modules/safe-write (License): Likewise.
69160         pthread: mention library for linking
69161         * modules/pthread (Link): Mention $(LIB_PTHREAD).
69163 2010-04-27  Jim Meyering  <meyering@redhat.com>
69165         maint.mk: fix a bug introduced in last change
69166         * top/maint.mk (gl_assured_headers_): Now that all names are on
69167         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
69168         is not anchored to end of word, it should be adequate.
69170         maint.mk: avoid side-effect in latest syntax-check
69171         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
69172         to run commands via $(shell...), and hence to incur cost only when
69173         the new rule is actually run.
69175         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
69176         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
69177         and use that to create a regexp used to detect all #if HAVE_..._H uses.
69178         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
69179         (gl_assured_headers_, az_, AZ_): Define.
69180         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
69182 2010-04-26  Jim Meyering  <jim@meyering.net>
69183             Bruno Haible  <bruno@clisp.org>
69185         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
69186         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
69187         Prompted by an exchange with Gilles Espinasse.
69189 2010-04-26  Jim Meyering  <meyering@redhat.com>
69191         git-version-gen: aesthetic tweak
69192         * build-aux/git-version-gen: Use "$nl" rather than a literal,
69193         so that the command remains on a single line.
69195 2010-04-26  Eric Blake  <eblake@redhat.com>
69197         git-version-gen: allow use on EBCDIC hosts
69198         * build-aux/git-version-gen (dirty): Use literal rather than tying
69199         ourselves to ascii.
69200         Reported by Steve Goetze.
69202 2010-04-25  Bruno Haible  <bruno@clisp.org>
69204         netdb: Add support for GNULIB_POSIXCHECK.
69205         * lib/netdb.in.h: Include warn-on-use.h.
69206         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
69207         functions are used when GNULIB_POSIXCHECK is defined and the
69208         getaddrinfo module is not in use.
69209         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
69210         freeaddrinfo, gai_strerror, getnameinfo are declared.
69211         * modules/netdb (Depends-on): Add warn-on-use.
69212         (Makefile.am): Include warn-on-use.h in netdb.h.
69214 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
69216         build: avoid "make check" failure without .git/ directory
69217         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
69218         there is no .git/ directory.
69220 2010-04-25  Bruno Haible  <bruno@clisp.org>
69222         ptsname: Fix misuse of ttyname_r.
69223         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
69224         of errno.
69226 2010-04-25  Bruno Haible  <bruno@clisp.org>
69228         ttyname_r: Make it work on Solaris 10.
69229         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
69230         if the system function has the POSIX declaration. Test whether the
69231         function fails if the buffer is less than 128 bytes large.
69232         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
69233         system's ttyname_r function. Provide a reasonably large buffer.
69234         * modules/ttyname_r (Depends-on): Add extensions.
69235         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
69237 2010-04-25  Bruno Haible  <bruno@clisp.org>
69239         Use the 'extensions' module for some more functions on Solaris.
69240         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
69241         module.
69242         * doc/posix-functions/ctime_r.texi: Likewise.
69243         * doc/posix-functions/getgrgid_r.texi: Likewise.
69244         * doc/posix-functions/getgrnam_r.texi: Likewise.
69245         * doc/posix-functions/getpwnam_r.texi: Likewise.
69246         * doc/posix-functions/getpwuid_r.texi: Likewise.
69247         * doc/posix-functions/readdir_r.texi: Likewise.
69248         * doc/posix-functions/sigwait.texi: Likewise.
69249         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
69250         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
69252 2010-04-25  Bruno Haible  <bruno@clisp.org>
69254         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
69255         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
69256         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
69257         * lib/ttyname_r.c: Include <limits.h>.
69258         (ttyname_r): Define using the system's ttyname_r function, if it exists
69259         and not on Solaris.
69260         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
69261         set.
69262         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
69263         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
69264         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
69265         Reported by Simon Josefsson.
69267 2010-04-25  Bruno Haible  <bruno@clisp.org>
69269         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
69270         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
69271         * doc/posix-functions/ctime_r.texi: Likewise.
69272         * doc/posix-functions/getgrgid_r.texi: Likewise.
69273         * doc/posix-functions/getgrnam_r.texi: Likewise.
69274         * doc/posix-functions/getlogin_r.texi: Likewise.
69275         * doc/posix-functions/getpwnam_r.texi: Likewise.
69276         * doc/posix-functions/getpwuid_r.texi: Likewise.
69277         * doc/posix-functions/readdir_r.texi: Likewise.
69278         * doc/posix-functions/sigwait.texi: Likewise.
69279         * doc/posix-functions/ttyname_r.texi: Likewise.
69280         Reported by Simon Josefsson.
69282 2010-04-25  Bruno Haible  <bruno@clisp.org>
69284         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
69285         * gnulib-tool (func_usage): Document that --with-*-tests options apply
69286         also to --create-testdir.
69287         (func_acceptable): Don't consider the status of *-tests modules here.
69288         (func_modules_transitive_closure): Consider it here, before including a
69289         test module.
69290         (func_import, func_create_testdir): Set inc_all_direct_tests,
69291         inc_all_indirect_tests.
69292         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
69293         --create-testdir and --create-megatestdir.
69295 2010-04-25  Bruno Haible  <bruno@clisp.org>
69297         gnulib-tool: Add --without-*-tests options.
69298         * gnulib-tool (func_usage): Document the --without-*-tests options.
69299         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
69300         excl_unportable_tests): New variables.
69301         Fail if they are specified with --import or --update.
69302         (func_acceptable): Respect the excl_*_tests variables.
69303         (func_import): Set the excl_*_tests variables to empty.
69305 2010-04-25  Simon Josefsson  <simon@josefsson.org>
69306             Bruno Haible  <bruno@clisp.org>
69308         Work around a MacOS X 10.4 bug with openpty.
69309         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
69310         * tests/test-openpty.c (main): Close the master side explicitly.
69312 2010-04-25  Bruno Haible  <bruno@clisp.org>
69314         strnlen: Fix a C++ test error on MacOS X and Solaris.
69315         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
69316         the function is not declared.
69317         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
69318         Simon Josefsson.
69320 2010-04-24  Bruno Haible  <bruno@clisp.org>
69322         Avoid a gcc warning.
69323         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
69324         of correct type for %08lx directive.
69325         Reported by Eric Blake.
69327 2010-04-24  Bruno Haible  <bruno@clisp.org>
69329         vasnprintf: Correct errno value in case of out-of-memory.
69330         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
69331         or sprintf. Use the errno value from SNPRINTF or sprintf.
69332         Reported by Ian Beckwith <ianb@erislabs.net>.
69334 2010-04-24  Bruno Haible  <bruno@clisp.org>
69336         ansi-c++-opt: Find correct compiler when cross-compiling.
69337         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
69338         AC_CHECK_PROGS.
69339         Reported by Simon Josefsson.
69341 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
69343         vc-list-files: Add support for subversion
69344         * build-aux/vc-list-files: Use "svn list" to generate the list of
69345         files controlled by subversion.
69347 2010-04-23  Jim Meyering  <meyering@redhat.com>
69349         vc-list-files tests: convert to use init.sh
69350         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
69351         path_prepend_.
69352         Use Exit, not exit.
69353         Use skip_ rather than open coding it.
69354         Remove trap set-up and compare definitions.
69355         * tests/test-vc-list-files-git.sh: Likewise.
69356         * modules/vc-list-files-tests (Files): Add tests/init.sh.
69358 2010-04-22  Simon Josefsson  <simon@josefsson.org>
69360         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
69361         backup files.
69363 2010-04-21  Simon Josefsson  <simon@josefsson.org>
69365         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
69367 2010-04-20  Eric Blake  <eblake@redhat.com>
69369         tests: be robust to ignored SIGPIPE
69370         * tests/test-select-in.sh: Consume all output.
69371         * tests/test-lseek.sh: Check correct exit status, while avoiding
69372         EPIPE.
69374 2010-04-20  Simon Josefsson  <simon@josefsson.org>
69375             Bruno Haible  <bruno@clisp.org>
69377         visibility: Don't use -fvisibility if it leads to a warning.
69378         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
69379         yes, don't pretend that visibility works if it leads to a warning.
69380         Reported by Mike Gran <spk121@yahoo.com>.
69382 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
69384         * build-aux/bootstrap: Use "git -h" for testing for supported options
69385         instead of "git --help".  The short-form option only shows a summary,
69386         and doesn't layout the full man page.  Grep for the full option name
69387         in the summary, too.
69389 2010-04-19  Bruno Haible  <bruno@clisp.org>
69391         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
69392         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
69393         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
69394         mention of RELOCATABLE_STRIP.
69395         Reported by Sylvain Beucler <beuc@beuc.net>.
69397 2010-04-19  Bruno Haible  <bruno@clisp.org>
69399         * lib/diffseq.h: Fix typo in comment.
69400         Reported by Eric Blake.
69402 2010-04-19  Bruno Haible  <bruno@clisp.org>
69404         ioctl: Move autoconf macro to a .m4 file.
69405         * m4/ioctl.m4: New file, extracted from modules/ioctl.
69406         * modules/ioctl (Files): Add it.
69407         (configure.ac): Simply invoke gl_FUNC_IOCTL.
69408         Reported by Ian Beckwith <ianb@erislabs.net>.
69410 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
69411             Bruno Haible  <bruno@clisp.org>
69413         diffseq: Accommodate use-case with abstract arrays.
69414         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
69415         is not defined.
69416         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
69417         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
69419 2010-04-18  Bruno Haible  <bruno@clisp.org>
69421         * doc/posix-headers/stdbool.texi: More precise wording.
69423 2010-04-17  Jim Meyering  <meyering@redhat.com>
69425         maint.mk: use gnu-style indentation in an embedded perl script
69426         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
69427         Rename variable: s/two/last_two_bytes/
69429 2010-04-16  Eric Blake  <eblake@redhat.com>
69431         test-stdbool: skip test that fails with Solaris CC
69432         * tests/test-stdbool.c (f): Skip test that causes compilation
69433         error under buggy C++ compiler.
69434         * lib/stdbool.in.h: Document the limitation.
69435         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
69437         setenv: allow compilation with C++
69438         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
69439         register keyword.
69441         stdint: allow test to pass with C++
69442         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
69444         getopt: allow compilation with C++
69445         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
69446         struct.
69447         * lib/getopt.c (_getopt_internal_r): Use correct type.
69448         Reported by Dagobert Michelson, via Joel E. Denny.
69450 2010-04-16  Bruno Haible  <bruno@clisp.org>
69452         Override netdb.h always.
69453         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
69454         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
69455         Reported by Ludovic Courtès <ludo@gnu.org>.
69457 2010-04-15  Bruno Haible  <bruno@clisp.org>
69459         openpty: Fix mistake from 2010-03-21.
69460         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
69461         Reported by Simon Josefsson.
69463 2010-04-15  Eric Blake  <eblake@redhat.com>
69465         test-forkpty: fix expected signature
69466         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
69467         Reported by Simon Josefsson.
69469 2010-04-15  Jim Meyering  <meyering@redhat.com>
69471         maint.mk: texinfo_suffix_re_: correct the default regexp
69472         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
69474         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
69475         make it configurable via texinfo_suffix_re_.
69477 2010-04-14  Eric Blake  <eblake@redhat.com>
69479         strtok_r: relax license to LGPLv2+
69480         * modules/strtok_r (License): Relax license.
69481         Reported by Matthias Bolte.
69483 2010-04-14  Simon Josefsson  <simon@josefsson.org>
69485         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
69486         version 1.4.4 by default instead of requiring the libgcrypt
69487         version used during build.  This makes it possible to use the
69488         application with older but still binary compatible libgcrypt
69489         versions.
69491 2010-04-13  Eric Blake  <eblake@redhat.com>
69493         getopt-gnu: match recent glibc fixes and posix ruling
69494         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
69495         '+' handling, when requesting extensions.
69496         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
69497         'W;' handling.
69498         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
69499         * doc/posix-functions/getopt.texi (getopt): Document this.
69500         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
69501         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
69502         Likewise.
69504         getopt: merge bug fixes from glibc
69505         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
69506         diagnostics.  Honor '+:' correctly.  Reject ';'.
69508         getopt-posix: detect MacOS bug
69509         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
69510         optind when missing a required argument.
69511         * doc/posix-functions/getopt.texi (getopt): Document the bug.
69512         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
69513         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
69514         Likewise.
69516         getopt-posix: avoid spurious failure on Solaris
69517         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
69518         an indicator that setting optind=1 is sufficient for reset.
69520         getopt-posix: avoid spurious failure on FreeBSD
69521         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
69522         in POSIX mode, since the m4 test uses it.
69524         gnulib-tool: silence warning on BSD sh
69525         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
69527 2010-04-13  Jim Meyering  <meyering@redhat.com>
69529         doc: users.txt: GNU patch now uses gnulib
69530         * users.txt: Add patch.
69532 2010-04-12  Jim Meyering  <meyering@redhat.com>
69534         maint.mk: generate more concise timing data for syntax-check rules
69535         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
69536         " done" from each line that reports a syntax-check test duration.
69538 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
69540         git-version-gen: use "git update-index..." rather than "git status"
69541         * build-aux/git-version-gen: Use git update-index --refresh, not
69542         "git status".  With some versions of git, "git status" would fail
69543         to update the index and result in an unwarranted "-dirty" suffix.
69545 2010-04-11  Jim Meyering  <meyering@redhat.com>
69547         openat: correct formatting (no semantic change)
69548         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
69549         Suggested by Bruno Haible.
69551 2010-04-11  Bruno Haible  <bruno@clisp.org>
69553         Stricter declaration checking in testdirs.
69554         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69555         If for_tests is true, augment AM_CPPFLAGS to define
69556         GNULIB_STRICT_CHECKING.
69557         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
69558         GNULIB_STRICT_CHECKING is defined, verify that the function is
69559         declared.
69561 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
69562             Bruno Haible  <bruno@clisp.org>
69564         libunistring: Improve configure output.
69565         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
69566         Don't say "consider installing GNU libunistring" when checking again
69567         with libiconv.
69569 2010-04-11  Bruno Haible  <bruno@clisp.org>
69571         libunistring: Correct value of $LTLIBUNISTRING.
69572         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
69573         correct the value of $LTLIBUNISTRING.
69575 2010-04-11  Bruno Haible  <bruno@clisp.org>
69577         havelib: Add static libraries to LIBS in the right order.
69578         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
69579         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
69581 2010-04-11  Bruno Haible  <bruno@clisp.org>
69583         libunistring: Detect libunistring also when it depends on libiconv.
69584         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
69585         the second AC_LIB_HAVE_LINKFLAGS invocation.
69587 2010-04-11  James Youngman  <jay@gnu.org>
69589         close-stream: declare local scalars to be "const"
69590         * lib/close-stream.c (close_stream): Make boolean variables const
69591         to document the fact that we set but do not change them.
69593 2010-04-11  Bruno Haible  <bruno@clisp.org>
69595         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
69597 2010-04-11  Jim Meyering  <meyering@redhat.com>
69599         maint.mk: don't include dist-check.mk
69600         * top/maint.mk: Remove bogus include directive.
69602         maint.mk: improve empty-line-at-EOF check
69603         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
69604         solution, rather than tail+Perl-based one.  The latter would read
69605         a few kilobytes from the end of each file, and did not handle empty
69606         files properly.
69608         maint.mk: print the elapsed time for each syntax-check rule
69609         * top/maint.mk (sc_m_rules_): Save start time in a file.
69610         (sc_z_rules_): New rules: remove temp file and print elapsed time.
69611         (local-check): Interpose the .z rules
69613 2010-04-11  Jim Meyering  <meyering@redhat.com>
69615         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
69616         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
69617         empty file with one that ends in an empty line.
69619 2010-04-10  Bruno Haible  <bruno@clisp.org>
69621         mkdir: Make it work on mingw64.
69622         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
69623         * lib/mkdir.c: Update comment.
69624         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
69626 2010-04-10  Bruno Haible  <bruno@clisp.org>
69628         Don't override improved macro from newer autoconf.
69629         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
69630         autoconf >= 2.62.
69631         Reported by Joel E. Denny <jdenny@clemson.edu>.
69633 2010-04-10  Jim Meyering  <meyering@redhat.com>
69635         maint.mk: new syntax-check rule: prohibit empty lines at end of file
69636         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
69638         maint.mk: correct a diagnostic
69639         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
69640         in diagnostic; now use $prohibit.
69642 2010-04-10  Bruno Haible  <address@hidden>
69644         fchownat: Fix a C++ test error on Solaris 8.
69645         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
69646         the function does not exist.
69648 2010-04-10  Bruno Haible  <bruno@clisp.org>
69650         vasnprintf: Add more tests.
69651         * tests/test-vasnprintf-posix.c: Include <errno.h>.
69652         (test_function): Test converting an invalid wide string.
69654         vasnprintf: Correct handling of unconvertible wide string arguments.
69655         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
69656         VASNPRINTF.
69657         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
69658         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
69659         smaller than the expected maximum need for the directive. Set errno to
69660         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
69661         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
69662         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
69663         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
69664         * modules/vasnprintf (Files): Add m4/printf.m4.
69665         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
69667 2010-04-10  Bruno Haible  <bruno@clisp.org>
69669         vasnprintf: Fix crash in %ls directive.
69670         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
69671         string is passed as argument to %ls, with no precision and no width.
69672         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
69674 2010-04-10  Bruno Haible  <bruno@clisp.org>
69676         vasnprintf: Fix multiple test failures on mingw.
69677         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
69678         _snprintf, or snwprintf, not _snwprintf.
69680 2010-04-10  Bruno Haible  <bruno@clisp.org>
69682         write: Fix a C++ test error on mingw.
69683         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
69685 2010-04-10  Bruno Haible  <bruno@clisp.org>
69687         vasnprintf test: Reduce code duplication.
69688         * tests/test-vasnprintf.c (test_function): New function, extracted from
69689         test_vasnprintf.
69690         (test_vasnprintf, test_asnprintf): Invoke it.
69692 2010-04-10  Bruno Haible  <bruno@clisp.org>
69694         strnlen: Fix warning in C++ mode on MacOS X.
69695         * lib/string.in.h (strnlen): Use the modern idiom.
69696         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
69697         defining strnlen as a macro already in <config.h>.
69698         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
69699         REPLACE_STRNLEN.
69700         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
69701         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
69703 2010-04-08  James Youngman  <jay@gnu.org>
69705         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
69706         the example.
69708 2010-04-09  Jim Meyering  <meyering@redhat.com>
69710         maint.mk: print better diagnostic when there is no $(_hv_file)
69711         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
69712         announce that when $(_hv_file) (aka help-version) does not exist.
69714         init.sh: run tr in the "C" locale to avoid multibyte interpretation
69715         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
69716         not try to interpret its random input bytes.  Jarno Rajahalme reported
69717         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
69718         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
69719         (mktempd_): Likewise, just in case.
69721         ftruncate: add two years to projected module removal date: 2012
69722         * m4/ftruncate.m4: Adjust comments.
69724         ftruncate: mark module as obsolete; even MinGW provides it, now
69725         * modules/ftruncate (Status): Obsolete.
69726         (Notice): Say that.
69727         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
69728         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
69730 2010-04-08  Bruno Haible  <bruno@clisp.org>
69732         Fix side effects from tests-related modules.
69733         * modules/dprintf-posix (Comment): New section.
69734         * modules/fprintf-posix (Comment): Likewise.
69735         * modules/obstack-printf-posix (Comment): Likewise.
69736         * modules/printf-posix (Comment): Likewise.
69737         * modules/snprintf-posix (Comment): Likewise.
69738         * modules/sprintf-posix (Comment): Likewise.
69739         * modules/vasnprintf-posix (Comment): Likewise.
69740         * modules/vasprintf-posix (Comment): Likewise.
69741         * modules/vdprintf-posix (Comment): Likewise.
69742         * modules/vfprintf-posix (Comment): Likewise.
69743         * modules/vprintf-posix (Comment): Likewise.
69744         * modules/vsnprintf-posix (Comment): Likewise.
69745         * modules/vsprintf-posix (Comment): Likewise.
69746         * modules/xprintf-posix (Comment): Likewise.
69747         * modules/xvasprintf-posix (Comment): Likewise.
69748         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
69749         * modules/floorf-tests (Depends-on): Likewise.
69750         * modules/round-tests (Depends-on): Likewise.
69751         * modules/roundf-tests (Depends-on): Likewise.
69752         * modules/trunc-tests (Depends-on): Likewise.
69753         * modules/truncf-tests (Depends-on): Likewise.
69754         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
69755         'fprintf-posix' module is not present.
69756         * tests/test-floorf2.c (check): Likewise.
69757         * tests/test-trunc2.c (check): Likewise.
69758         * tests/test-truncf2.c (check): Likewise.
69759         * tests/test-round2.c (equal): Likewise.
69760         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
69762 2010-04-07  Karl Berry  <karl@gnu.org>
69764         * config/srclist.txt,
69765         * config/srclistvars.sh,
69766         * config/srclist-update: doc fixes.
69768 2010-04-07  Jim Meyering  <meyering@redhat.com>
69770         maint.mk: add a PATH crosschecking syntax-check rule
69771         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
69772         Useful if you use a test like the one in help-version (coreutils,
69773         diffutils, grep, gzip) that ensures $(VERSION) matches what is
69774         printed by prog --version.
69776 2010-04-06  Bruno Haible  <bruno@clisp.org>
69778         Fix link error on mingw.
69779         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
69780         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
69782 2010-04-06  Bruno Haible  <bruno@clisp.org>
69784         Assume rmdir exists.
69785         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
69787 2010-04-06  Giuseppe Scrivano  <gscrivano@gnu.org>
69789         doc: update users.txt
69790         * users.txt: Add gcal.
69792 2010-04-06  Jim Meyering  <meyering@redhat.com>
69794         init.sh: simply unset TMPDIR rather than risking env -i
69795         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
69796         although it probably works fine on all Unix-based systems, some
69797         systems (Cygwin?) cannot tolerate a totally cleared environment.
69798         Suggestion from Eric Blake.
69800 2010-04-06  Jim Meyering  <meyering@redhat.com>
69802         init.sh: portability fix: use env's POSIX-specified -i option not -u
69803         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
69804         than unportable env -u.  Solaris 5.11's env lacks support for -u.
69806 2010-04-05  Bruno Haible  <bruno@clisp.org>
69808         btowc: Work around Cygwin 1.7.2 bug.
69809         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
69810         does not map NUL to 0.
69811         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
69813 2010-04-05  Bruno Haible  <bruno@clisp.org>
69815         Make the multithread modules work on Cygwin 1.7.2.
69816         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
69817         imported symbols can be declared weak, so that it returns "no" on
69818         Cygwin 1.7.2.
69820 2010-04-05  Bruno Haible  <bruno@clisp.org>
69822         Use the module 'strncat'.
69823         * modules/unistr/u8-strncat (Depends-on): Add strncat.
69825         Tests for module 'strncat'.
69826         * modules/strncat-tests: New file.
69827         * tests/test-strncat.c: New file.
69829         New module 'strncat'.
69830         * lib/string.in.h (strncat): New declaration.
69831         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
69832         * m4/strncat.m4: New file, based on m4/memchr.m4.
69833         * modules/strncat: New file.
69834         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
69835         is declared.
69836         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
69837         REPLACE_STRNCAT.
69838         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
69839         REPLACE_STRNCAT.
69840         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
69841         module.
69842         * tests/test-string-c++.cc: Check signature of strncat.
69844 2010-04-05  Jim Meyering  <meyering@redhat.com>
69846         xstrtoumax-tests: convert to use init.sh
69847         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
69848         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
69849         Use Exit, not exit.
69850         Remove uses of $EXEEXT and "./" to run a program in the current dir.
69852         xstrtoimax-tests: convert to use init.sh
69853         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
69854         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
69855         Use Exit, not exit.
69856         Remove uses of $EXEEXT and "./" to run a program in the current dir.
69858 2010-04-05  Bruno Haible  <bruno@clisp.org>
69860         sys_socket: Avoid #define replacements in C++ mode.
69861         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
69862         warning to the function if possible, rather than #defining the symbol
69863         to a dysfunctional alias.
69865 2010-04-05  Bruno Haible  <bruno@clisp.org>
69867         fseeko: Fix C++ test error on mingw.
69868         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
69869         gl_FUNC_FSEEKO.
69870         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
69871         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
69872         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
69873         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
69875 2010-04-05  Bruno Haible  <bruno@clisp.org>
69877         duplocale: Improve test output.
69878         * tests/test-duplocale.c (main): Print reason for skipped test.
69880 2010-04-05  Bruno Haible  <bruno@clisp.org>
69882         Assume rmdir exists.
69883         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
69884         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
69886 2010-04-05  Bruno Haible  <bruno@clisp.org>
69888         Fix link error on Solaris 8 with cc.
69889         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
69891 2010-04-05  Bruno Haible  <bruno@clisp.org>
69893         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
69894         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
69896 2010-04-05  Bruno Haible  <bruno@clisp.org>
69898         vasprintf: Update documentation.
69899         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
69901 2010-04-05  Bruno Haible  <bruno@clisp.org>
69903         ptsname: Improve test.
69904         * tests/test-ptsname.c (main): Also try the various master names of BSD
69905         systems.
69907 2010-04-05  Bruno Haible  <bruno@clisp.org>
69909         memchr: Avoid a possible C++ test error.
69910         * lib/string.in.h (memchr): Provide declaration if function is missing.
69911         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
69912         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
69913         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
69914         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
69916 2010-04-05  Bruno Haible  <bruno@clisp.org>
69918         strtok_r: Improve idiom.
69919         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
69920         AC_LIBOBJ is used.
69922 2010-04-05  Bruno Haible  <bruno@clisp.org>
69924         strdup: Improve idiom.
69925         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
69926         AC_LIBOBJ is used.
69927         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
69928         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
69929         when AC_LIBOBJ is used.
69931 2010-04-05  Bruno Haible  <bruno@clisp.org>
69933         mbsinit, mbrtowc, wcrtomb: Improve idioms.
69934         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
69935         don't set REPLACE_MBSINIT to 1.
69936         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
69937         don't set REPLACE_MBRTOWC to 1.
69938         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
69939         exist, don't set REPLACE_MBSRTOWCS to 1.
69940         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
69941         exist, don't set REPLACE_MBSNRTOWCS to 1.
69942         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
69943         don't set REPLACE_WCRTOMB to 1.
69944         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
69945         exist, don't set REPLACE_WCSRTOMBS to 1.
69946         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
69947         exist, don't set REPLACE_WCSNRTOMBS to 1.
69949 2010-04-05  Bruno Haible  <bruno@clisp.org>
69951         ldexpl: Improve idiom.
69952         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
69953         make sure to set HAVE_DECL_LDEXPL to 0.
69955 2010-04-05  Jim Meyering  <meyering@redhat.com>
69957         xstrtol-tests: convert to use init.sh
69958         * modules/xstrtol-tests (Files): Add tests/init.sh.
69959         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
69960         Use Exit, not exit.
69961         Remove uses of $EXEEXT and "./" to run a program in the current dir.
69963         atexit-tests: convert to use init.sh
69964         * modules/atexit-tests (Files): Add tests/init.sh.
69965         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
69966         Use Exit, not exit.
69967         Remove uses of $EXEEXT and "./" to run a program in the current dir.
69969         init.sh: fix typo
69970         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
69972         init.sh: make it easier for a test script to write to the tty, ...
69973         when using automake's parallel-tests mode.
69974         * tests/init.sh (stderr_fileno_): Define overridable variable.
69975         (warn_): New function, to use it.
69976         (fail_, skip_, framework_failure_): Use warn_.
69978 2010-04-04  Bruno Haible  <bruno@clisp.org>
69980         btowc: Avoid warning.
69981         * lib/btowc.c: Include <stdlib.h>.
69982         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
69984 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
69985             Bruno Haible  <bruno@clisp.org>
69987         wchar: Port to NetBSD 1.5.
69988         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
69989         * lib/wctype.in.h (WEOF): Likewise.
69991 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
69992             Bruno Haible  <bruno@clisp.org>
69994         Port extended stdio to NetBSD 1.5.
69995         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
69996         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
69997         older.
69999 2010-04-04  Bruno Haible  <bruno@clisp.org>
70001         string: Remove unused substitution.
70002         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
70003         HAVE_DECL_STRERROR.
70004         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
70006 2010-04-04  Bruno Haible  <bruno@clisp.org>
70008         strtod: Avoid a possible C++ test error.
70009         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
70010         set REPLACE_STRTOD.
70012 2010-04-04  Bruno Haible  <bruno@clisp.org>
70014         strerror: Update documentation.
70015         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
70017 2010-04-04  Bruno Haible  <bruno@clisp.org>
70019         stdio: Fix some C++ test errors on Solaris 8 with GCC.
70020         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
70021         _GL_CXXALIAS_SYS_CAST.
70023 2010-04-04  Bruno Haible  <bruno@clisp.org>
70025         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
70026         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
70027         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
70028         REPLACE_FREXPL to 1.
70029         * doc/posix-functions/frexpl.texi: Update documentation.
70031 2010-04-04  Bruno Haible  <bruno@clisp.org>
70033         math: Fix some C++ test errors on Solaris 8 and Cygwin.
70034         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
70036 2010-04-04  Bruno Haible  <bruno@clisp.org>
70038         Implement nanosleep for native Windows.
70039         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
70041 2010-04-04  Bruno Haible  <bruno@clisp.org>
70043         math: Fix some C++ test errors on Solaris 8.
70044         * lib/math.in.h (truncf, trunc): Use simpler idiom.
70046 2010-04-04  Bruno Haible  <bruno@clisp.org>
70048         math: Fix some C++ test errors on Cygwin.
70049         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
70050         truncl): Provide declaration if the system does not have it.
70051         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
70052         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
70053         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
70054         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
70055         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
70056         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
70057         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
70058         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
70059         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
70060         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
70061         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
70062         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
70063         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
70064         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
70065         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
70066         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
70067         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
70068         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
70069         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
70070         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
70071         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
70072         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
70074 2010-04-04  Bruno Haible  <bruno@clisp.org>
70076         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
70077         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
70078         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
70079         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
70080         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
70081         * m4/isinf.m4 (gl_ISINF): Likewise.
70082         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
70084 2010-04-04  Bruno Haible  <bruno@clisp.org>
70086         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
70087         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
70089 2010-04-04  Bruno Haible  <bruno@clisp.org>
70091         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
70092         * modules/tmpfile (configure.ac): Update.
70094         tmpfile: Fix C++ test error on mingw.
70095         * lib/stdio.in.h (tmpfile): New declaration.
70096         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
70097         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
70098         * modules/tmpfile (Depends-on): Add stdio.
70099         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
70100         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
70101         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
70102         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
70103         REPLACE_TMPFILE.
70104         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
70106 2010-04-04  Bruno Haible  <bruno@clisp.org>
70108         ioctl: Fix C++ test error on mingw.
70109         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
70110         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
70111         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
70113 2010-04-03  Bruno Haible  <bruno@clisp.org>
70115         wcwidth: Fix C++ test error on mingw.
70116         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
70117         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
70118         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
70120 2010-04-03  Bruno Haible  <bruno@clisp.org>
70122         nanosleep: Fix C++ test error on mingw.
70123         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
70124         * lib/time.in.h (nanosleep): Use modern idiom.
70125         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
70126         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
70127         REPLACE_NANOSLEEP to 1.
70128         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
70129         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
70131 2010-04-03  Bruno Haible  <bruno@clisp.org>
70133         strptime: Fix C++ test error on mingw.
70134         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
70135         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
70136         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
70137         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
70138         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
70139         not REPLACE_STRPTIME.
70140         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
70141         REPLACE_STRPTIME.
70143 2010-04-03  Bruno Haible  <bruno@clisp.org>
70145         timegm: Fix C++ test error on mingw.
70146         * lib/time.in.h (timegm): Use modern idiom.
70147         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
70148         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
70149         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
70150         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
70152 2010-04-03  Bruno Haible  <bruno@clisp.org>
70154         timegm: Assume declaration if function exists.
70155         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
70156         if it exists. Don't clobber ac_cv_func_timegm.
70158 2010-04-03  Bruno Haible  <bruno@clisp.org>
70160         time_r: Fix C++ test error on mingw.
70161         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
70162         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
70163         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
70164         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
70165         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
70167 2010-04-03  Bruno Haible  <bruno@clisp.org>
70169         time_r: Minor updates.
70170         * modules/time_r (Description): Mention the provided functions.
70171         * lib/time_r.c: Don't include <string.h>.
70172         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
70173         * doc/posix-functions/localtime_r.texi: Likewise.
70175 2010-04-03  Bruno Haible  <bruno@clisp.org>
70177         time: Fix regression introduced on 2010-03-08.
70178         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
70179         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
70181 2010-04-03  Jim Meyering  <meyering@redhat.com>
70183         maint.mk: don't silently disable project-specific syntax-check rules
70184         * top/maint.mk (_prohibit_regexp): Define, to help people realize
70185         that they need to convert their project-specific syntax-check rules
70186         to use the new _sc_search_regexp.
70188 2010-04-03  Bruno Haible  <bruno@clisp.org>
70190         fchdir: Fix regression introduced on 2010-03-08.
70191         * lib/unistd.in.h (fchdir): Fix declaration.
70192         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
70193         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
70194         REPLACE_FCHDIR.
70195         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
70196         REPLACE_FCHDIR.
70198 2010-04-03  Bruno Haible  <bruno@clisp.org>
70200         getpagesize: Fix C++ test error on mingw.
70201         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
70202         system does not declare the function.
70203         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
70204         declared.
70205         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
70206         HAVE_DECL_GETPAGESIZE.
70207         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
70209 2010-04-03  Bruno Haible  <bruno@clisp.org>
70211         stdio: Make C++ tests work on mingw.
70212         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
70213         does not declare the function.
70215 2010-04-03  Bruno Haible  <bruno@clisp.org>
70217         ftello: Fix C++ test error on mingw.
70218         * lib/stdio.in.h (ftello): Use modern idiom.
70219         * lib/ftello.c (ftello): Renamed from rpl_ftello.
70220         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
70221         is missing and that it needs to be replaced.
70222         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
70223         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
70224         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
70226 2010-04-03  Bruno Haible  <bruno@clisp.org>
70228         fseeko: Fix C++ test error on mingw.
70229         * lib/stdio.in.h (fseeko): Use modern idiom.
70230         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
70231         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
70232         is missing and that it needs to be replaced.
70233         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
70234         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
70235         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
70237 2010-04-03  Bruno Haible  <bruno@clisp.org>
70239         mkstemp: Fix C++ test error on mingw.
70240         * lib/stdlib.in.h (mkstemp): Use modern idiom.
70241         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
70242         function is missing and that it needs to be replaced.
70243         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
70244         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
70246 2010-04-03  Bruno Haible  <bruno@clisp.org>
70248         stpncpy: Fix C++ test error on mingw.
70249         * lib/string.in.h (stpncpy): Use modern idiom.
70250         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
70251         function is missing and that it needs to be replaced.
70252         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
70253         REPLACE_STPNCPY.
70254         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
70256 2010-04-03  Bruno Haible  <bruno@clisp.org>
70258         sys_stat: Fix C++ test error on mingw.
70259         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
70260         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
70262 2010-04-03  Bruno Haible  <bruno@clisp.org>
70264         pty: Update doc.
70265         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
70267 2010-04-03  Bruno Haible  <bruno@clisp.org>
70269         unistd: Fix C++ test error on mingw.
70270         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
70272 2010-04-03  Bruno Haible  <bruno@clisp.org>
70274         Update doc regarding mingw.
70275         * doc/glibc-functions/openpty.texi: Update regarding mingw.
70276         * doc/glibc-functions/login_tty.texi: Likewise.
70277         * doc/glibc-functions/forkpty.texi: Likewise.
70279 2010-04-03  Bruno Haible  <bruno@clisp.org>
70281         stdlib: Avoid compilation failure of c-strtold on mingw.
70282         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
70284 2010-04-03  Bruno Haible  <bruno@clisp.org>
70286         locale: Make C++ tests work on Cygwin and mingw.
70287         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
70288         cannot provide the function.
70289         Reported by Simon Josefsson.
70291 2010-04-03  Bruno Haible  <bruno@clisp.org>
70293         localename: Port to MacOS X 10.6.
70294         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
70295         memory layout of the locales in MacOS X 10.6 as well.
70296         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
70298 2010-04-02  Bruno Haible  <bruno@clisp.org>
70300         gnulib-tool: Ensure that long-running tests are executed last.
70301         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
70302         running tests after the one for the other tests.
70304 2010-04-02  Bruno Haible  <bruno@clisp.org>
70306         gnulib-tool: Ensure the tests in the main directory are executed first.
70307         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
70308         start with the current directory.
70310 2010-04-02  Bruno Haible  <bruno@clisp.org>
70312         Tests for module 'havelib', moved here from GNU gettext.
70313         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
70314         modifications.
70315         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
70316         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
70317         with modifications.
70318         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
70319         modifications.
70320         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
70321         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
70322         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
70323         with modifications.
70324         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
70325         with modifications.
70326         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
70327         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
70328         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
70329         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
70330         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
70331         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
70332         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
70333         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
70334         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
70335         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
70336         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
70337         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
70338         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
70339         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
70340         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
70341         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
70342         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
70343         with modifications.
70344         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
70345         with modifications.
70346         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
70347         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
70348         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
70349         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
70350         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
70351         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
70352         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
70353         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
70354         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
70355         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
70356         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
70357         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
70358         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
70359         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
70360         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
70361         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
70362         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
70363         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
70364         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
70365         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
70366         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
70367         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
70368         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
70369         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
70370         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
70371         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
70372         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
70373         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
70374         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
70375         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
70376         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
70377         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
70378         * tests/havelib/rpathx/rpathx.c: New file, from
70379         gettext/autoconf-lib-link.
70380         * tests/havelib/rpathx/Makefile.am: New file, from
70381         gettext/autoconf-lib-link.
70382         * tests/havelib/rpathx/configure.ac: New file, from
70383         gettext/autoconf-lib-link with modifications.
70384         * tests/havelib/rpathy/rpathy.c: New file, from
70385         gettext/autoconf-lib-link.
70386         * tests/havelib/rpathy/Makefile.am: New file, from
70387         gettext/autoconf-lib-link.
70388         * tests/havelib/rpathy/configure.ac: New file, from
70389         gettext/autoconf-lib-link with modifications.
70390         * tests/havelib/rpathz/rpathz.c: New file, from
70391         gettext/autoconf-lib-link.
70392         * tests/havelib/rpathz/Makefile.am: New file, from
70393         gettext/autoconf-lib-link.
70394         * tests/havelib/rpathz/configure.ac: New file, from
70395         gettext/autoconf-lib-link with modifications.
70396         * tests/havelib/rpathlx/usex.c: New file, from
70397         gettext/autoconf-lib-link.
70398         * tests/havelib/rpathlx/Makefile.am: New file, from
70399         gettext/autoconf-lib-link.
70400         * tests/havelib/rpathlx/configure.ac: New file, from
70401         gettext/autoconf-lib-link with modifications.
70402         * tests/havelib/rpathly/usey.c: New file, from
70403         gettext/autoconf-lib-link.
70404         * tests/havelib/rpathly/Makefile.am: New file, from
70405         gettext/autoconf-lib-link.
70406         * tests/havelib/rpathly/configure.ac: New file, from
70407         gettext/autoconf-lib-link with modifications.
70408         * tests/havelib/rpathlz/usez.c: New file, from
70409         gettext/autoconf-lib-link.
70410         * tests/havelib/rpathlz/Makefile.am: New file, from
70411         gettext/autoconf-lib-link.
70412         * tests/havelib/rpathlz/configure.ac: New file, from
70413         gettext/autoconf-lib-link with modifications.
70414         * tests/havelib/rpathlyx/usey.c: New file, from
70415         gettext/autoconf-lib-link.
70416         * tests/havelib/rpathlyx/Makefile.am: New file, from
70417         gettext/autoconf-lib-link.
70418         * tests/havelib/rpathlyx/configure.ac: New file, from
70419         gettext/autoconf-lib-link with modifications.
70420         * tests/havelib/rpathlzyx/usez.c: New file, from
70421         gettext/autoconf-lib-link.
70422         * tests/havelib/rpathlzyx/Makefile.am: New file, from
70423         gettext/autoconf-lib-link.
70424         * tests/havelib/rpathlzyx/configure.ac: New file, from
70425         gettext/autoconf-lib-link with modifications.
70426         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
70427         with modifications.
70429 2010-04-02  Bruno Haible  <bruno@clisp.org>
70431         gnulib-tool: Create distributed built sources also for the tests.
70432         * gnulib-tool (func_create_testdir): Also generate distributed built
70433         sources in the tests directory.
70435 2010-04-02  Bruno Haible  <bruno@clisp.org>
70437         gnulib-tool: Obey user's environment variables.
70438         * gnulib-tool (func_create_testdir): When creating built sources,
70439         respect the environment variables for autoconf, automake, etc. given by
70440         the user.
70442 2010-04-02  Bruno Haible  <bruno@clisp.org>
70444         gnulib-tool: Provide the value of --m4-base to modules.
70445         * gnulib-tool (func_import, func_create_testdir): Emit a definition
70446         of gl_m4_base.
70448 2010-04-02  Eric Blake  <eblake@redhat.com>
70450         maint.mk: fix some fallout
70451         * NEWS: Document the incompatible change, and its effect on cfg.mk.
70452         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
70454 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
70456         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
70457         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
70458         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
70459         (sc_cast_of_x_alloc_return_value): Likewise.
70460         (sc_cast_of_alloca_return_value): Likewise.
70461         (sc_space_tab): Likewise.
70462         (sc_prohibit_atoi_atof): Likewise.
70463         (sc_prohibit_magic_number_exit): Likewise.
70464         (sc_error_exit_success): Likewise.
70465         (sc_file_system): Likewise.
70466         (sc_prohibit_have_config_h): Likewise.
70467         (sc_require_config_h): Likewise.
70468         (sc_prohibit_HAVE_MBRTOWC): Likewise.
70469         (sc_obsolete_symbols): Likewise.
70470         (sc_changelog): Likewise.
70471         (sc_program_name): Likewise.
70472         (sc_the_the): Likewise.
70473         (sc_trailing_blank): Likewise.
70474         (sc_two_space_separator_in_usage): Likewise.
70475         (sc_useless_cpp_parens): Likewise.
70476         (sc_GPL_version): Likewise.
70477         (sc_GFDL_version): Likewise.
70478         (sc_texinfo_acronym): Likewise.
70479         (sc_prohibit_cvs_keyword): Likewise.
70480         (sc_prohibit_stat_st_blocks): Likewise.
70481         (sc_prohibit_S_IS_definition): Likewise.
70482         (sc_redundant_const): Likewise.
70483         (sc_makefile_TAB_only_indentation): Likewise.
70484         (sc_m4_quote_check): Likewise.
70485         (sc_makefile_path_separator_check): Likewise.
70486         (sc_copyright_check): Likewise.
70487         (sc_Wundef_boolean): Likewise.
70488         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
70490         maint.mk: match 0 or more whitespace-before-function-call '('
70491         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
70492         that have zero or two-and-more spaces between the function name
70493         and the open parenthesis.
70494         (sc_error_message_warn_fatal): Likewise.
70495         (sc_error_message_uppercase): Likewise.
70496         (sc_error_message_period): Likewise.
70498 2010-03-31  Eric Blake  <eblake@redhat.com>
70500         maint.mk: check for [ as well as test
70501         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
70502         Based on a libvirt report by Matthias Bolte.
70504         gnumakefile: don't squelch _version output
70505         * top/GNUmakefile (_version): Create one-shot dependency rather
70506         than using $(shell) when version must be regenerated.
70507         (_autoreconf): Run verbosely, by default.
70509         sys_time: avoid compiler warnings
70510         * lib/sys_time.in.h (includes): Ensure gcc pragma is
70511         unconditional, fixing regression from 2010-03-29.
70512         Reported by Simon Josefsson.
70514 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
70516         maint.mk: s/_header_without_use/_sc_header_without_use/
70517         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
70518         (sc_prohibit_assert_without_use): Use the new name.
70519         (sc_prohibit_close_stream_without_use): Likewise.
70520         (sc_prohibit_getopt_without_use): Likewise.
70521         (sc_prohibit_quotearg_without_use): Likewise.
70522         (sc_prohibit_quote_without_use): Likewise.
70523         (sc_prohibit_long_options_without_use): Likewise.
70524         (sc_prohibit_inttostr_without_use): Likewise.
70525         (sc_prohibit_ignore_value_without_use): Likewise.
70526         (sc_prohibit_error_without_use): Likewise.
70527         (sc_prohibit_xalloc_without_use): Likewise.
70528         (sc_prohibit_hash_without_use): Likewise.
70529         (sc_prohibit_hash_pjw_without_use): Likewise.
70530         (sc_prohibit_safe_read_without_use): Likewise.
70531         (sc_prohibit_argmatch_without_use): Likewise.
70532         (sc_prohibit_canonicalize_without_use): Likewise.
70533         (sc_prohibit_root_dev_ino_without_use): Likewise.
70534         (sc_prohibit_openat_without_use): Likewise.
70535         (sc_prohibit_c_ctype_without_use): Likewise.
70536         (sc_prohibit_signal_without_use): Likewise.
70537         (sc_prohibit_intprops_without_use): Likewise.
70539 2010-03-30  Eric Blake  <eblake@redhat.com>
70541         maint: improve module indicators
70542         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
70543         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
70544         columns, and avoid extra macro expansion.
70546         fdopendir: work around FreeBSD bug
70547         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
70548         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
70549         * modules/dirent (Makefile.am): Substitute it.
70550         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
70551         declaration.
70552         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
70553         fix.
70554         Reported by Christian Weisgerber <naddy@mips.inka.de>.
70556 2010-03-29  Bruno Haible  <bruno@clisp.org>
70558         Emit #pragma system_header after the inclusion guard, not before.
70559         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
70560         guard that spans the entire file, not before. This enables an
70561         optimization in GCC's preprocessor.
70562         * lib/ctype.in.h: Likewise.
70563         * lib/dirent.in.h: Likewise.
70564         * lib/errno.in.h: Likewise.
70565         * lib/float.in.h: Likewise.
70566         * lib/getopt.in.h: Likewise.
70567         * lib/iconv.in.h: Likewise.
70568         * lib/langinfo.in.h: Likewise.
70569         * lib/locale.in.h: Likewise.
70570         * lib/math.in.h: Likewise.
70571         * lib/netdb.in.h: Likewise.
70572         * lib/netinet_in.in.h: Likewise.
70573         * lib/pty.in.h: Likewise.
70574         * lib/sched.in.h: Likewise.
70575         * lib/se-selinux.in.h: Likewise.
70576         * lib/search.in.h: Likewise.
70577         * lib/spawn.in.h: Likewise.
70578         * lib/stdarg.in.h: Likewise.
70579         * lib/stdint.in.h: Likewise.
70580         * lib/string.in.h: Likewise.
70581         * lib/strings.in.h: Likewise.
70582         * lib/sys_file.in.h: Likewise.
70583         * lib/sys_ioctl.in.h: Likewise.
70584         * lib/sys_time.in.h: Likewise.
70585         * lib/sys_times.in.h: Likewise.
70586         * lib/sys_utsname.in.h: Likewise.
70587         * lib/sys_wait.in.h: Likewise.
70588         * lib/sysexits.in.h: Likewise.
70589         * lib/wctype.in.h: Likewise.
70591 2010-03-28  James Youngman  <jay@gnu.org>
70593         save-cwd: don't leak a file descriptor when the caller execs.
70594         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
70595         saved file descriptor.
70596         * modules/save-cwd (Depends-on): Depend on cloexec.
70598 2010-03-29  Bruno Haible  <bruno@clisp.org>
70600         Remove vestiges of fts-lgpl module.
70601         * lib/fts_.h: Assume GNULIB_FTS is 1.
70602         * lib/fts.c: Likewise.
70603         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
70605 2010-03-28  Bruno Haible  <bruno@clisp.org>
70607         Fix definition of tests witness macro.
70608         * gnulib-tool (func_import): Fix definition of witness macro.
70610 2010-03-28  Bruno Haible  <bruno@clisp.org>
70612         Fix ioctl's protoype on glibc systems.
70613         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
70614         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
70615         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
70616         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
70617         signature. If not, arrange to replace the ioctl function.
70618         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
70619         REPLACE_IOCTL.
70620         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
70621         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
70622         Reported by Ludovic Courtès <ludo@gnu.org>.
70624 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
70626         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
70627         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
70628         made it so grep -r --include=GLOB* ... did not work.
70630 2010-03-26  Jim Meyering  <meyering@redhat.com>
70631             Eric Blake  <eblake@redhat.com>
70633         maint.mk: prohibit use of test's -o and -a operators
70634         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
70636 2010-03-28  Bruno Haible  <bruno@clisp.org>
70638         Remove unused GNULIB_XYZ macro definitions.
70639         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
70640         invocation.
70642 2010-03-28  Bruno Haible  <bruno@clisp.org>
70644         Mark privileged tests modules.
70645         * modules/idpriv-drop-tests (Status): New section.
70646         * modules/idpriv-droptemp-tests (Status): New section.
70648 2010-03-28  Bruno Haible  <bruno@clisp.org>
70650         Split C++ tests into separate tests modules.
70651         * modules/dirent-c++-tests: New file, extracted from
70652         modules/dirent-tests.
70653         * modules/dirent-tests: Depend on it.
70654         * modules/fcntl-h-c++-tests: New file, extracted from
70655         modules/fcntl-h-tests.
70656         * modules/fcntl-h-tests: Depend on it.
70657         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
70658         * modules/glob-tests: Depend on it.
70659         * modules/iconv-h-c++-tests: New file, extracted from
70660         modules/iconv-h-tests.
70661         * modules/iconv-h-tests: Depend on it.
70662         * modules/langinfo-c++-tests: New file, extracted from
70663         modules/langinfo-tests.
70664         * modules/langinfo-tests: Depend on it.
70665         * modules/locale-c++-tests: New file, extracted from
70666         modules/locale-tests.
70667         * modules/locale-tests: Depend on it.
70668         * modules/math-c++-tests: New file, extracted from modules/math-tests.
70669         * modules/math-tests: Depend on it.
70670         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
70671         * modules/pty-tests: Depend on it.
70672         * modules/search-c++-tests: New file, extracted from
70673         modules/search-tests.
70674         * modules/search-tests: Depend on it.
70675         * modules/signal-c++-tests: New file, extracted from
70676         modules/signal-tests.
70677         * modules/signal-tests: Depend on it.
70678         * modules/spawn-c++-tests: New file, extracted from
70679         modules/spawn-tests.
70680         * modules/spawn-tests: Depend on it.
70681         * modules/stdio-c++-tests: New file, extracted from
70682         modules/stdio-tests.
70683         * modules/stdio-tests: Depend on it.
70684         * modules/stdlib-c++-tests: New file, extracted from
70685         modules/stdlib-tests.
70686         * modules/stdlib-tests: Depend on it.
70687         * modules/string-c++-tests: New file, extracted from
70688         modules/string-tests.
70689         * modules/string-tests: Depend on it.
70690         * modules/sys_ioctl-c++-tests: New file, extracted from
70691         modules/sys_ioctl-tests.
70692         * modules/sys_ioctl-tests: Depend on it.
70693         * modules/sys_select-c++-tests: New file, extracted from
70694         modules/sys_select-tests.
70695         * modules/sys_select-tests: Depend on it.
70696         * modules/sys_socket-c++-tests: New file, extracted from
70697         modules/sys_socket-tests.
70698         * modules/sys_socket-tests: Depend on it.
70699         * modules/sys_stat-c++-tests: New file, extracted from
70700         modules/sys_stat-tests.
70701         * modules/sys_stat-tests: Depend on it.
70702         * modules/sys_time-c++-tests: New file, extracted from
70703         modules/sys_time-tests.
70704         * modules/sys_time-tests: Depend on it.
70705         * modules/time-c++-tests: New file, extracted from modules/time-tests.
70706         * modules/time-tests: Depend on it.
70707         * modules/unistd-c++-tests: New file, extracted from
70708         modules/unistd-tests.
70709         * modules/unistd-tests: Depend on it.
70710         * modules/wchar-c++-tests: New file, extracted from
70711         modules/wchar-tests.
70712         * modules/wchar-tests: Depend on it.
70713         * modules/wctype-c++-tests: New file, extracted from
70714         modules/wctype-tests.
70715         * modules/wctype-tests: Depend on it.
70716         Reported by Simon Josefsson.
70718 2010-03-28  Bruno Haible  <bruno@clisp.org>
70720         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
70721         * gnulib-tool (func_exists_module): New function, extracted from
70722         func_verify_module.
70723         (func_verify_module): Use it.
70724         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
70725         'foo' only if 'foo' exists.
70726         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
70727         module.
70729 2010-03-28  Bruno Haible  <bruno@clisp.org>
70731         gnulib-tool: Add support for special categories of tests.
70732         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
70733         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
70734         (func_usage): Document them.
70735         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
70736         inc_unportable_tests, inc_all_tests): New variables.
70737         (func_acceptable): Consider these variables.
70738         (func_modules_transitive_closure): Make it work when the 'Status' field
70739         consists of multiple words.
70740         (func_import): Store and restore the values of inc_cxx_tests,
70741         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
70742         inc_all_tests in gnulib-comp.m4.
70743         (func_create_testdir): Set inc_all_tests to true.
70744         * doc/gnulib.texi (Extra tests modules): New section.
70745         Suggested by Jim Meyering.
70747 2010-03-28  Bruno Haible  <bruno@clisp.org>
70749         ansi-c++-opt: Allow turning off the C++ build by default.
70750         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
70751         gl_CXX_CHOICE_DEFAULT_NO is defined.
70752         Requested by Eric Blake.
70754 2010-03-28  Bruno Haible  <bruno@clisp.org>
70756         unistd: Avoid #define replacements in C++ mode.
70757         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
70758         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
70759         setsockopt, shutdown, select): In C++, attach a warning to the function
70760         if possible, rather than #defining the symbol to a dysfunctional alias.
70761         Reported by John W. Eaton <jwe@gnu.org>.
70763 2010-03-28  Bruno Haible  <bruno@clisp.org>
70765         Fix link errors on mingw.
70766         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
70767         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
70768         $(LIBSOCKET).
70769         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
70770         $(LIBSOCKET).
70772 2010-03-28  Bruno Haible  <bruno@clisp.org>
70773             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70775         lib-ignore: Determine different options for different compilers.
70776         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
70777         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
70778         Add comments.
70779         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
70780         * NEWS: Mention the change.
70782 2010-03-27  Bruno Haible  <bruno@clisp.org>
70784         Remove unused GNULIB_XYZ macro definitions.
70785         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
70786         * modules/fseek (configure.ac): Likewise.
70787         * modules/ioctl (configure.ac): Likewise.
70788         * modules/open (configure.ac): Likewise.
70789         * modules/stdlib-safer (configure.ac): Likewise.
70791 2010-03-27  Bruno Haible  <bruno@clisp.org>
70793         Add a remark about certain modules.
70794         * modules/malloc (Comment): New section.
70795         * modules/realloc (Comment): Likewise.
70796         * modules/sigpipe (Comment): Likewise.
70798 2010-03-27  Bruno Haible  <bruno@clisp.org>
70800         Resolve conflict between the two kinds of module indicators.
70801         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
70802         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
70803         * modules/canonicalize (configure.ac): Invoke
70804         gl_MODULE_INDICATOR_FOR_TESTS.
70805         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
70806         GNULIB_XYZ.
70807         * tests/test-dirent-c++.cc: Likewise.
70808         * tests/test-dirent-safer.c: Likewise.
70809         * tests/test-dup2.c: Likewise.
70810         * tests/test-fchdir.c: Likewise.
70811         * tests/test-fcntl-h-c++.cc: Likewise.
70812         * tests/test-getopt.c: Likewise.
70813         * tests/test-getopt.h: Likewise.
70814         * tests/test-langinfo-c++.cc: Likewise.
70815         * tests/test-locale-c++.cc: Likewise.
70816         * tests/test-math-c++.cc: Likewise.
70817         * tests/test-pty-c++.cc: Likewise.
70818         * tests/test-search-c++.cc: Likewise.
70819         * tests/test-signal-c++.cc: Likewise.
70820         * tests/test-spawn-c++.cc: Likewise.
70821         * tests/test-stdio-c++.cc: Likewise.
70822         * tests/test-stdlib-c++.cc: Likewise.
70823         * tests/test-string-c++.cc: Likewise.
70824         * tests/test-sys_ioctl-c++.cc: Likewise.
70825         * tests/test-sys_select-c++.cc: Likewise.
70826         * tests/test-sys_socket-c++.cc: Likewise.
70827         * tests/test-sys_stat-c++.cc: Likewise.
70828         * tests/test-sys_time-c++.cc: Likewise.
70829         * tests/test-time-c++.cc: Likewise.
70830         * tests/test-unistd-c++.cc: Likewise.
70831         * tests/test-wchar-c++.cc: Likewise.
70832         * tests/uninorm/test-u8-nfc.c: Likewise.
70833         * tests/uninorm/test-u8-nfd.c: Likewise.
70834         * tests/uninorm/test-u8-nfkc.c: Likewise.
70835         * tests/uninorm/test-u8-nfkd.c: Likewise.
70836         * tests/uninorm/test-u16-nfc.c: Likewise.
70837         * tests/uninorm/test-u16-nfd.c: Likewise.
70838         * tests/uninorm/test-u16-nfkc.c: Likewise.
70839         * tests/uninorm/test-u16-nfkd.c: Likewise.
70840         * tests/uninorm/test-u32-nfc.c: Likewise.
70841         * tests/uninorm/test-u32-nfc-big.c: Likewise.
70842         * tests/uninorm/test-u32-nfd.c: Likewise.
70843         * tests/uninorm/test-u32-nfd-big.c: Likewise.
70844         * tests/uninorm/test-u32-nfkc.c: Likewise.
70845         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
70846         * tests/uninorm/test-u32-nfkd.c: Likewise.
70847         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
70848         * tests/uninorm/test-u32-normalize-big.c: Likewise.
70850 2010-03-27  Bruno Haible  <bruno@clisp.org>
70852         Distinguish two kinds of module indicators.
70853         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
70854         gl_MODULE_INDICATOR.
70855         (gl_MODULE_INDICATOR): New macro.
70856         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
70857         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
70858         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
70859         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
70860         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
70861         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
70862         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
70863         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
70864         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
70865         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
70866         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
70867         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
70868         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
70869         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
70870         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
70871         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
70872         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
70873         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
70874         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
70875         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
70876         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
70877         * modules/cloexec (configure.ac): Likewise.
70878         * modules/getopt-gnu (configure.ac): Likewise.
70879         * modules/uninorm/u8-normalize (configure.ac): Likewise.
70880         * modules/uninorm/u16-normalize (configure.ac): Likewise.
70881         * modules/uninorm/u32-normalize (configure.ac): Likewise.
70882         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
70884 2010-03-27  Bruno Haible  <bruno@clisp.org>
70886         New module description field 'Comment'.
70887         * gnulib-tool: New option --extract-comment.
70888         (func_usage): Document it.
70889         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
70890         (func_get_comment): New function.
70891         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
70893 2010-03-27  Bruno Haible  <bruno@clisp.org>
70895         Addendum to 2010-02-07 commit.
70896         * gnulib-tool (func_usage): Document --extract-applicability option.
70898 2010-03-27  Bruno Haible  <bruno@clisp.org>
70900         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
70901         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
70902         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
70903         rather than link errors.
70905 2010-03-27  Bruno Haible  <bruno@clisp.org>
70907         Avoid side effects from tests-related modules on the compilation of lib.
70908         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
70909         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
70910         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
70911         parameter. Emit into AM_CPPFLAGS a definition of the designated C
70912         macro.
70913         (func_import): Define a witness macro. Assign it a value that depends
70914         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
70915         tests-related modules.
70916         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
70917         Reported by Jim Meyering.
70919 2010-03-27  Bruno Haible  <bruno@clisp.org>
70921         Factorize common .m4 code.
70922         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
70923         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
70924         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
70925         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
70926         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
70927         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
70928         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
70929         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
70930         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
70931         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
70932         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
70933         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
70934         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
70935         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
70936         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
70937         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
70938         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
70939         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
70940         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
70941         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
70942         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
70943         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
70944         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
70945         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
70946         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
70947         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
70948         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
70949         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
70950         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
70951         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
70952         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
70953         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
70955 2010-03-27  Bruno Haible  <bruno@clisp.org>
70957         Fix a compilation error on Cygwin with g++ >= 4.3.
70958         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
70959         if it is undefined or if we alias it to chmod.
70960         (lstat): Don't warn about the use of this function if it is undefined
70961         or if we alias it to stat.
70962         Reported by Simon Josefsson.
70964 2010-03-27  Bruno Haible  <bruno@clisp.org>
70966         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
70967         * modules/getlogin (configure.ac): Update.
70969         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
70970         * modules/getlogin_r (configure.ac): Update.
70972         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
70973         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
70974         * modules/inet_ntop (configure.ac): Update.
70976         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
70977         * modules/inet_pton (configure.ac): Update.
70979         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
70980         * modules/mbslen (configure.ac): Update.
70982         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
70983         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
70984         * modules/forkpty (configure.ac): Update.
70985         * modules/openpty (configure.ac): Update.
70987 2010-03-26  Simon Josefsson  <simon@josefsson.org>
70989         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
70990         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
70992 2010-03-25  Eric Blake  <eblake@redhat.com>
70994         maint: use pragma consistently across replacement headers
70995         * lib/ctype.in.h (system_header): Hoist for consistent placement.
70996         * lib/dirent.in.h (system_header): Likewise.
70997         * lib/errno.in.h (system_header): Likewise.
70998         * lib/float.in.h (system_header): Likewise.
70999         * lib/getopt.in.h (system_header): Likewise.
71000         * lib/iconv.in.h (system_header): Likewise.
71001         * lib/inttypes.in.h (system_header): Likewise.
71002         * lib/langinfo.in.h (system_header): Likewise.
71003         * lib/locale.in.h (system_header): Likewise.
71004         * lib/math.in.h (system_header): Likewise.
71005         * lib/netdb.in.h (system_header): Likewise.
71006         * lib/netinet_in.in.h (system_header): Likewise.
71007         * lib/pty.in.h (system_header): Likewise.
71008         * lib/sched.in.h (system_header): Likewise.
71009         * lib/se-selinux.in.h (system_header): Likewise.
71010         * lib/search.in.h (system_header): Likewise.
71011         * lib/spawn.in.h (system_header): Likewise.
71012         * lib/stdarg.in.h (system_header): Likewise.
71013         * lib/stdint.in.h (system_header): Likewise.
71014         * lib/string.in.h (system_header): Likewise.
71015         * lib/strings.in.h (system_header): Likewise.
71016         * lib/sys_file.in.h (system_header): Likewise.
71017         * lib/sys_ioctl.in.h (system_header): Likewise.
71018         * lib/sys_socket.in.h (system_header): Likewise.
71019         * lib/sys_times.in.h (system_header): Likewise.
71020         * lib/sys_utsname.in.h (system_header): Likewise.
71021         * lib/sys_wait.in.h (system_header): Likewise.
71022         * lib/sysexits.in.h (system_header): Likewise.
71023         * lib/unistd.in.h (system_header): Likewise.
71024         * lib/wctype.in.h (system_header): Likewise.
71026         arpa/inet: fix mingw compilation warning
71027         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
71028         Reported by Matthew Bolte.
71030 2010-03-25  Bruno Haible  <bruno@clisp.org>
71032         Avoid collision between gnulib wrapper and libintl wrapper.
71033         * lib/printf.c (printf): Don't define if a printf wrapper is already
71034         defined in intl/printf.c.
71035         Reported by Michel Boaventura <michel@michelboaventura.com>.
71037 2010-03-25  Bruno Haible  <bruno@clisp.org>
71039         Use ANSI C.
71040         * lib/readutmp.h (getutent): Provide ANSI C prototype.
71042 2010-03-25  Bruno Haible  <bruno@clisp.org>
71044         Minor formatting changes.
71045         * lib/acosl.c: Insert space before function argument list.
71046         * lib/argz.c: Likewise.
71047         * lib/asinl.c: Likewise.
71048         * lib/expl.c: Likewise.
71049         * lib/gen-uni-tables.c: Likewise.
71050         * lib/gettext.h: Likewise.
71051         * lib/glthread/lock.h: Likewise.
71052         * lib/tanl.c: Likewise.
71053         * lib/uniname/uniname.c: Likewise.
71054         * tests/test-idpriv-drop.c: Likewise.
71055         * tests/test-idpriv-droptemp.c: Likewise.
71056         * tests/test-lock.c: Likewise.
71057         * tests/test-tls.c: Likewise.
71058         * lib/argp-help.c: Insert space before function-like macro argument
71059         list.
71060         * lib/memcmp.c: Likewise.
71061         * tests/test-base64.c: Likewise.
71062         * lib/localename.c: Insert space before sizeof's argument list.
71063         * lib/safe-alloc.h: Likewise.
71064         * lib/file-set.h: Insert space before macro argument list.
71065         * tests/test-argp.c: Likewise.
71066         * lib/argp-namefrob.h: Insert space before function parameter list.
71067         * lib/getaddrinfo.c: Likewise.
71068         * lib/netdb.in.h: Likewise.
71069         * lib/parse-duration.h: Likewise.
71070         * lib/parse-duration.c: Likewise.
71071         * lib/poll.c: Likewise.
71072         * lib/select.c: Likewise.
71073         * lib/trim.h: Likewise.
71074         * tests/test-usleep.c: Likewise.
71075         * lib/ldexpl.c: Insert space before function parameter list and before
71076         function argument list.
71077         * lib/logl.c: Likewise.
71078         * lib/sqrtl.c: Likewise.
71079         * lib/trim.c: Likewise.
71080         * lib/cosl.c: Use GNU style indentation. Insert space before function
71081         argument list.
71082         * lib/sinl.c: Likewise.
71083         * lib/tsearch.c: Insert space after 'for'.
71084         Reported by Jim Meyering.
71086 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
71088         * maint.mk (sc_Wundef_boolean): Check for the presence of the
71089         config header before grepping, as it's not present before
71090         autoreconf/configure are run.  Reported by Simon Josefsson.
71092 2010-03-23  Bruno Haible  <bruno@clisp.org>
71094         pt_chown: Make it work with automake < 1.11.
71095         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
71096         Reported by Simon Josefsson.
71098 2010-03-23  Bruno Haible  <bruno@clisp.org>
71100         pt_chown: Don't depend on GPLed modules.
71101         * lib/pt_chown.c: Don't include idpriv.h.
71102         (main): Don't drop privileges.
71103         * modules/pt_chown (Depends-on): Remove idpriv-drop.
71104         Reported by Simon Josefsson.
71106 2010-03-24  Simon Josefsson  <simon@josefsson.org>
71108         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
71109         suggestions from karl@freefriends.org (Karl Berry).
71111 2010-03-22  Eric Blake  <eblake@redhat.com>
71113         gethostname: further tweaks
71114         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
71115         are overriding gethostname.
71116         Suggested by Bruno Haible.
71118 2010-03-21  Bruno Haible  <bruno@clisp.org>
71120         Fix comments.
71121         * lib/forkpty.c (rpl_forkpty): Fix comment.
71122         * lib/openpty.c (rpl_openpty): Likewise.
71123         Reported by Eric Blake.
71125 2010-03-22  Eric Blake  <eblake@redhat.com>
71127         gethostname: fix build on mingw
71128         * lib/unistd.in.h (includes): Work around fact that mingw
71129         <winsock2.h> re-includes <unistd.h>, by avoiding any
71130         redeclarations if we are being included by <winsock2.h>.
71131         Reported by Matthias Bolte.
71133 2010-03-21  Bruno Haible  <bruno@clisp.org>
71135         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
71136         * lib/forkpty.c (forkpty): New replacement function, from glibc with
71137         modifications.
71138         * lib/pty.in.h (forkpty): Update declaration. Add comments.
71139         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
71140         provide the replacement.
71141         * modules/forkpty (Depends-on): Add openpty, login_tty.
71142         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
71143         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
71144         * doc/glibc-functions/forkpty.texi: More supported platforms.
71145         * config/srclist.txt: Add forkpty.c (commented).
71147 2010-03-21  Bruno Haible  <bruno@clisp.org>
71149         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
71150         (Makefile.am): Verify that PTY_LIB is defined.
71152         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
71154 2010-03-21  Bruno Haible  <bruno@clisp.org>
71156         Tests for module 'login_tty'.
71157         * modules/login_tty-tests: New file.
71158         * tests/test-login_tty.c: New file.
71160         New module 'login_tty'.
71161         * lib/login_tty.c: New file.
71162         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
71163         * modules/login_tty: New file.
71164         * doc/glibc-functions/login_tty.texi: Mention the new module.
71166 2010-03-21  Bruno Haible  <bruno@clisp.org>
71168         login_tty: Documentation.
71169         * doc/glibc-functions/login_tty.texi: New file.
71170         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
71172 2010-03-21  Bruno Haible  <bruno@clisp.org>
71174         pty: Consistent macro naming.
71175         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
71176         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
71177         * modules/pty (configure.ac): Update.
71179 2010-03-21  Bruno Haible  <bruno@clisp.org>
71181         Tests for openpty: Make stricter.
71182         * tests/test-openpty.c (main): Add test of canonical processing and
71183         erase.
71184         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
71186         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
71187         * lib/openpty.c (openpty): New replacement function.
71188         * lib/pty.in.h: Include <termios.h>.
71189         (openpty): Update declaration. Add comments.
71190         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
71191         is not declared, arrange to provide the replacement. Check for _getpty
71192         and posix_openpt.
71193         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
71194         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
71195         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
71196         * modules/pty-tests (test_pty_c___LDADD): New variable.
71197         * doc/glibc-functions/openpty.texi: More supported platforms.
71199 2010-03-21  Bruno Haible  <bruno@clisp.org>
71201         setenv: Tweaks.
71202         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
71203         the test program.
71204         * doc/posix-functions/setenv.texi: Update platforms list.
71206 2010-03-21  Bruno Haible  <bruno@clisp.org>
71208         New module 'unlockpt'.
71209         * lib/unlockpt.c: New file, from glibc with modifications.
71210         * m4/unlockpt.m4: New file.
71211         * modules/unlockpt: New file.
71212         * lib/stdlib.in.h (unlockpt): New declaration.
71213         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
71214         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
71215         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
71216         HAVE_UNLOCKPT.
71217         * doc/posix-functions/unlockpt.texi: Mention the new module.
71218         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
71219         * config/srclist.txt: Add unlockpt.c (commented).
71221 2010-03-21  Jim Meyering  <meyering@redhat.com>
71223         maint.mk: prohibit inclusion of "intprops.h" without use
71224         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
71226 2010-03-21  Bruno Haible  <bruno@clisp.org>
71228         New module 'grantpt'.
71229         * lib/grantpt.c: New file, from glibc with modifications.
71230         * m4/grantpt.m4: New file.
71231         * modules/grantpt: New file.
71232         * lib/stdlib.in.h (grantpt): New declaration.
71233         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
71234         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
71235         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
71236         HAVE_GRANTPT.
71237         * doc/posix-functions/grantpt.texi: Mention the new module.
71238         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
71239         * config/srclist.txt: Add grantpt.c (commented).
71241 2010-03-21  Bruno Haible  <bruno@clisp.org>
71243         New module 'pt_chown'.
71244         * lib/pt_chown.c: New file, from glibc with modifications.
71245         * lib/pty-private.h: New file, from glibc with modifications.
71246         * modules/pt_chown: New file.
71247         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
71249 2010-03-21  Bruno Haible  <bruno@clisp.org>
71251         Tests for module 'ptsname'.
71252         * modules/ptsname-tests: New file.
71253         * tests/test-ptsname.c: New file.
71255         New module 'ptsname'.
71256         * lib/ptsname.c: New file, from glibc with modifications.
71257         * m4/ptsname.m4: New file.
71258         * modules/ptsname: New file.
71259         * lib/stdlib.in.h (ptsname): New declaration.
71260         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
71261         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
71262         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
71263         HAVE_PTSNAME.
71264         * doc/posix-functions/ptsname.texi: Mention the new module.
71265         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
71266         * config/srclist.txt: Add ptsname.c (commented).
71268 2010-03-21  Bruno Haible  <bruno@clisp.org>
71270         Tests for module 'ttyname_r'.
71271         * modules/ttyname_r-tests: New file.
71272         * tests/test-ttyname_r.c: New file.
71274         New module 'ttyname_r'.
71275         * lib/ttyname_r.c: New file.
71276         * m4/ttyname_r.m4: New file.
71277         * modules/ttyname_r: New file.
71278         * lib/unistd.in.h (ttyname_r): New declaration.
71279         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
71280         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
71281         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
71282         HAVE_TTYNAME_R.
71283         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
71284         * doc/posix-functions/ttyname_r.texi: Mention the new module.
71286 2010-03-20  Bruno Haible  <bruno@clisp.org>
71288         signal: Undefine macro definitions in C++ mode.
71289         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
71290         sigfillset): Undefine macro definitions from the system header in C++
71291         mode.
71292         Reported by John W. Eaton <jwe@gnu.org>.
71294 2010-03-20  Bruno Haible  <bruno@clisp.org>
71296         Ensure no #include statements inside extern "C" { ... }.
71297         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
71298         contain #include statements.
71299         * lib/time.in.h: Likewise.
71301 2010-03-20  Bruno Haible  <bruno@clisp.org>
71303         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
71304         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
71305         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
71306         Reported by John W. Eaton <jwe@gnu.org>.
71308 2010-03-20  Bruno Haible  <bruno@clisp.org>
71310         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
71311         Reported by Jim Meyering.
71313 2010-03-20  Bruno Haible  <bruno@clisp.org>
71315         pipe: Set errno upon failure.
71316         * lib/pipe.h: Specify that when -1 is returned, errno is set.
71317         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
71318         errno value in error message.
71320 2010-03-20  Bruno Haible  <bruno@clisp.org>
71321             Jim Meyering  <meyering@redhat.com>
71323         lchown: Avoid "unused variable" warning.
71324         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
71326 2010-03-20  Bruno Haible  <bruno@clisp.org>
71328         Work around unlink() bug on MacOS X 10.5.6.
71329         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
71330         attempting to unlink a parent directory.
71331         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
71332         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
71333         activate for the replacement function.
71334         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
71336 2010-03-20  Bruno Haible  <bruno@clisp.org>
71338         Fix link errors on Solaris 8.
71339         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
71340         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
71342 2010-03-19  Jim Meyering  <meyering@redhat.com>
71344         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
71345         The _LIBC implementation of build_range_exp correctly honors the
71346         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
71347         However, the non-_LIBC implementation would ignore that syntax-bit
71348         flag and return REG_ERANGE unconditionally.
71349         This change makes it honor that flag.
71350         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
71351         Make two pointer parameters "const".
71352         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
71353         (parse_bracket_exp): Update caller.
71355         regex.m4: correct the reversed range endpoint ([b-a]) test
71356         * m4/regex.m4: When requiring that [b-a] evoke failure,
71357         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
71358         test pass once again for x86-based systems.
71360 2010-03-19  Bruno Haible  <bruno@clisp.org>
71362         scandir: Fix link error on Solaris 8.
71363         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
71364         macros.
71366 2010-03-19  Bruno Haible  <bruno@clisp.org>
71368         getusershell: Fix documentation.
71369         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
71370         module.
71371         * doc/glibc-functions/setusershell.texi: Likewise.
71373         getusershell: Provide declaration, missing on Solaris 9.
71374         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
71375         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
71376         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
71377         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
71378         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
71379         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
71380         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
71381         HAVE_GETUSERSHELL.
71382         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
71384 2010-03-19  Bruno Haible  <bruno@clisp.org>
71386         wctype: Provide iswblank function.
71387         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
71388         exists and is fine.
71389         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
71390         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
71391         * tests/test-wctype.c (main): Re-enable the iswblank tests.
71392         * doc/posix-functions/iswblank.texi: Update.
71394 2010-03-19  Bruno Haible  <bruno@clisp.org>
71396         Tests of module 'pty' in C++ mode.
71397         * modules/pty-tests: New file.
71398         * tests/test-pty-c++.cc: New file.
71399         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
71401 2010-03-19  Eric Blake  <eblake@redhat.com>
71403         logb: fix documentation
71404         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
71405         1.5 declaration bug.
71407         forkpty, openpty: prefer glibc's const-safe prototype
71408         * lib/forkpty.c (rpl_forkpty): New file.
71409         * lib/openpty.c (rpl_openpty): Likewise.
71410         * modules/forkpty (Files): Distribute it.
71411         * modules/openpty (Files): Likewise.
71412         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
71413         check...
71414         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
71415         replacement for non-const BSD signature.
71416         * modules/pty (Makefile.am): Substitute witnesses.
71417         * lib/pty.in.h (forkpty, openpty): Declare replacements.
71418         * tests/test-forkpty.c: Update signature check.
71419         * tests/test-openpty.c: Likewise.
71420         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
71421         * doc/glibc-functions/openpty.texi (openpty): Likewise.
71423         forkpty, openpty: split functions into new modules
71424         * modules/pty (Makefile.am): Substitute new witnesses.
71425         (Libraries): Move library detection...
71426         * modules/forkpty: ...into new module.
71427         * modules/openpty: Another new module.
71428         * modules/pty-tests: Rename and split...
71429         * modules/forkpty-tests: ...to this...
71430         * modules/openpty-tests: ...and this.
71431         * tests/test-pty.c: Rename and split...
71432         * tests/test-forkpty.c: ...to this...
71433         * tests/test-openpty.c: ...and this.
71434         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
71435         (gl_PTY): Split library searching...
71436         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
71437         (gl_FORKPTY, gl_OPENPTY): New macros.
71438         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
71439         * NEWS: Mention the split.
71440         * MODULES.html.sh (Misc): Document the modules.
71441         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
71442         * doc/glibc-functions/openpty.texi (openpty): Likewise.
71444         pty: improve replacement header
71445         * lib/pty.in.h: New file.
71446         * modules/pty (Files): Ship it.
71447         (Makefile.am): Always build replacement.
71448         * m4/pty.m4: Rename...
71449         * m4/pty_h.m4: ...to this.
71450         (gl_PTY): Modernize setting of witness macros; update check of
71451         forkpty to take proper advantage of cache.
71452         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
71454         getopt: avoid compiler warning
71455         * lib/getopt.c (attribute_hidden): Remove unused macro.
71457 2010-03-18  Bruno Haible  <bruno@clisp.org>
71459         Fix link errors on Solaris 8.
71460         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
71461         * modules/search-tests (test_search_c___LDADD): Likewise.
71462         * modules/signal-tests (test_signal_c___LDADD): Likewise.
71463         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
71464         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
71465         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
71466         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
71467         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
71468         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
71470 2010-03-18  Bruno Haible  <bruno@clisp.org>
71472         Fix bug introduced on 2010-03-14.
71473         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
71474         (gl_SPAWN_H): Require it.
71475         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
71476         Reported by Simon Josefsson.
71478 2010-03-18  Bruno Haible  <bruno@clisp.org>
71480         Fix typo introduced on 2009-12-31.
71481         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
71482         posix_spawn_file_actions_adddup2.
71484 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
71485         and Eric Blake  <eblake@redhat.com>
71487         test-vc-list-files-git: make more robust
71488         * tests/test-vc-list-files-git.sh: Unset problematic environment
71489         variables.  Chain commands together.
71491 2010-03-17  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
71493         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
71494         `AC_CHECK_DECL' invocation.
71496 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
71498         * lib/inttostr.c (inttostr): Make sure the invocation of verify
71499         appears before executable statements. Suggested by Petr Sumbera
71500         <Petr.Sumbera@Sun.COM>.
71502 2010-03-14  Bruno Haible  <bruno@clisp.org>
71504         * tests/test-flock.c (test_exclusive): Comment out a test that causes
71505         portability problems. Instead use a simpler test.
71506         (main): Check that invalid arguments are rejected only on Linux.
71508 2010-03-14  Bruno Haible  <bruno@clisp.org>
71510         Fix bug introduced on 2009-12-31.
71511         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
71512         gl_PREREQ_SYS_H_WINSOCK2 always.
71513         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
71514         SYS_SOCKET_H variable.
71515         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
71516         Update comments.
71517         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
71518         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
71519         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
71520         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
71521         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
71523 2010-03-14  Bruno Haible  <bruno@clisp.org>
71525         Fix values returned by sinl, cosl.
71526         * lib/trigl.h: Add specification comments.
71527         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
71528         that combines the values from the precomputed table with the values of
71529         the Chebyshev polynomials.
71531 2010-03-14  Bruno Haible  <bruno@clisp.org>
71533         Fix compilation error when modules 'posix_spawn[p]' are not used.
71534         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
71535         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
71537 2010-03-14  Bruno Haible  <bruno@clisp.org>
71539         Fix compilation error on mingw when module 'time_r' is not used.
71540         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
71541         is 1.
71542         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
71543         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
71544         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
71545         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
71547 2010-03-14  Bruno Haible  <bruno@clisp.org>
71549         Fix compilation error with Sun C.
71550         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
71551         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
71552         instead of GCC specific ULONG_LONG_MAX.
71553         * lib/xstrtoll.c: Likewise.
71554         * lib/xstrtoull.c: Likewise.
71556 2010-03-13  Bruno Haible  <bruno@clisp.org>
71558         Allow the user to disable C++ code and tests.
71559         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
71560         (gl_PROG_ANSI_CXX): Require it.
71562 2010-03-13  Bruno Haible  <bruno@clisp.org>
71564         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
71565         cases.
71567 2010-03-13  Bruno Haible  <bruno@clisp.org>
71569         Test that gnulib does not break the standard C++ headers.
71570         * tests/test-locale-c++2.cc: New file.
71571         * modules/locale-tests (Files): Add it.
71572         (Makefile.am): Compile it for test-locale-c++.
71573         * tests/test-math-c++2.cc: New file.
71574         * modules/math-tests (Files): Add it.
71575         (Makefile.am): Compile it for test-math-c++.
71576         * tests/test-signal-c++2.cc: New file.
71577         * modules/signal-tests (Files): Add it.
71578         (Makefile.am): Compile it for test-signal-c++.
71579         * tests/test-stdio-c++2.cc: New file.
71580         * modules/stdio-tests (Files): Add it.
71581         (Makefile.am): Compile it for test-stdio-c++.
71582         * tests/test-stdlib-c++2.cc: New file.
71583         * modules/stdlib-tests (Files): Add it.
71584         (Makefile.am): Compile it for test-stdlib-c++.
71585         * tests/test-string-c++2.cc: New file.
71586         * modules/string-tests (Files): Add it.
71587         (Makefile.am): Compile it for test-string-c++.
71588         * tests/test-time-c++2.cc: New file.
71589         * modules/time-tests (Files): Add it.
71590         (Makefile.am): Compile it for test-time-c++.
71591         Reported by John W. Eaton <jwe@gnu.org>.
71593 2010-03-13  Bruno Haible  <bruno@clisp.org>
71595         * gnulib-tool (func_usage): Clarify which options are available for
71596         --create-testdir and --create-megatestdir.
71598 2010-03-13  Bruno Haible  <bruno@clisp.org>
71600         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
71601         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
71602         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
71603         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
71604         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
71605         when appropriate.
71606         Reported by Jim Meyering.
71608 2010-03-12  Simon Josefsson  <simon@josefsson.org>
71610         * gnulib-tool (func_import): Explain origin of code.
71612 2010-03-12  Bruno Haible  <bruno@clisp.org>
71614         Fix problem with automake's definition of CXXLINK.
71615         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
71616         Reported by Simon Josefsson and Ludovic Courtès.
71618 2010-03-12  Bruno Haible  <bruno@clisp.org>
71620         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
71621         stable releases.
71623 2010-03-11  Bruno Haible  <bruno@clisp.org>
71625         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
71626         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
71627         whether the system provides one variant or multiple variants of the
71628         function.
71629         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
71630         C++ compilers.
71631         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
71632         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
71633         Reported by Jim Meyering.
71635 2010-03-09  Simon Josefsson  <simon@josefsson.org>
71637         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
71639 2010-03-08  Bruno Haible  <bruno@clisp.org>
71641         gnulib-tool: Add support for --libtool in --create-testdir.
71642         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
71643         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
71645 2010-03-08  Eric Blake  <eblake@redhat.com>
71647         gnulib-tool.texi: mention possibility of git submodule
71648         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
71649         submodules.
71650         * doc/.gitignore: Ignore another generated file.
71652 2010-03-08  Karl Berry  <karl@gnu.org>
71654         * doc/gnulib-tool.texi (VCS Issues): Mention third option
71655         of committing gnulib files while skipping others.
71657 2010-03-07  Bruno Haible  <bruno@clisp.org>
71659         Tests of module 'wctype' in C++ mode.
71660         * tests/test-wctype-c++.cc: New file.
71661         * modules/wctype-tests (Files): Add it and tests/signature.h.
71662         (Depends-on): Add ansi-c++-opt.
71663         (Makefile.am): Arrange to compile and run test-wctype-c++.
71665         Tests of module 'wchar' in C++ mode.
71666         * tests/test-wchar-c++.cc: New file.
71667         * modules/wchar-tests (Files): Add it and tests/signature.h.
71668         (Depends-on): Add ansi-c++-opt.
71669         (Makefile.am): Arrange to compile and run test-wchar-c++.
71670         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
71671         gl_MODULE_INDICATOR.
71673         Tests of module 'unistd' in C++ mode.
71674         * tests/test-unistd-c++.cc: New file.
71675         * modules/unistd-tests (Files): Add it and tests/signature.h.
71676         (Depends-on): Add ansi-c++-opt.
71677         (Makefile.am): Arrange to compile and run test-unistd-c++.
71678         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
71679         gl_MODULE_INDICATOR.
71681         Tests of module 'time' in C++ mode.
71682         * tests/test-time-c++.cc: New file.
71683         * modules/time-tests (Files): Add it and tests/signature.h.
71684         (Depends-on): Add ansi-c++-opt.
71685         (Makefile.am): Arrange to compile and run test-time-c++.
71686         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
71688         Tests of module 'sys_time' in C++ mode.
71689         * tests/test-sys_time-c++.cc: New file.
71690         * modules/sys_time-tests (Files): Add it and tests/signature.h.
71691         (Depends-on): Add ansi-c++-opt.
71692         (Makefile.am): Arrange to compile and run test-sys_time-c++.
71693         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
71694         gl_MODULE_INDICATOR.
71696         Tests of module 'sys_stat' in C++ mode.
71697         * tests/test-sys_stat-c++.cc: New file.
71698         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
71699         (Depends-on): Add ansi-c++-opt.
71700         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
71701         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
71702         gl_MODULE_INDICATOR.
71704         Tests of module 'sys_socket' in C++ mode.
71705         * tests/test-sys_socket-c++.cc: New file.
71706         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
71707         (Depends-on): Add ansi-c++-opt.
71708         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
71709         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
71710         gl_MODULE_INDICATOR.
71712         Tests of module 'sys_select' in C++ mode.
71713         * tests/test-sys_select-c++.cc: New file.
71714         * modules/sys_select-tests (Files): Add it and tests/signature.h.
71715         (Depends-on): Add ansi-c++-opt.
71716         (Makefile.am): Arrange to compile and run test-sys_select-c++.
71717         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
71718         gl_MODULE_INDICATOR.
71720         Tests of module 'sys_ioctl' in C++ mode.
71721         * tests/test-sys_ioctl-c++.cc: New file.
71722         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
71723         (Depends-on): Add ansi-c++-opt.
71724         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
71725         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
71726         gl_MODULE_INDICATOR.
71728         Tests of module 'string' in C++ mode.
71729         * tests/test-string-c++.cc: New file.
71730         * modules/string-tests (Files): Add it and tests/signature.h.
71731         (Depends-on): Add ansi-c++-opt.
71732         (Makefile.am): Arrange to compile and run test-string-c++.
71733         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
71734         gl_MODULE_INDICATOR.
71736         Tests of module 'stdlib' in C++ mode.
71737         * tests/test-stdlib-c++.cc: New file.
71738         * modules/stdlib-tests (Files): Add it and tests/signature.h.
71739         (Depends-on): Add ansi-c++-opt.
71740         (Makefile.am): Arrange to compile and run test-stdlib-c++.
71741         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
71742         gl_MODULE_INDICATOR.
71744         Tests of module 'stdio' in C++ mode.
71745         * tests/test-stdio-c++.cc: New file.
71746         * modules/stdio-tests (Files): Add it and tests/signature.h.
71747         (Depends-on): Add ansi-c++-opt.
71748         (Makefile.am): Arrange to compile and run test-stdio-c++.
71749         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
71750         gl_MODULE_INDICATOR.
71752         Tests of module 'spawn' in C++ mode.
71753         * tests/test-spawn-c++.cc: New file.
71754         * modules/spawn-tests (Files): Add it and tests/signature.h.
71755         (Depends-on): Add ansi-c++-opt.
71756         (Makefile.am): Arrange to compile and run test-spawn-c++.
71757         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
71758         gl_MODULE_INDICATOR.
71760         Tests of module 'signal' in C++ mode.
71761         * tests/test-signal-c++.cc: New file.
71762         * modules/signal-tests (Files): Add it and tests/signature.h.
71763         (Depends-on): Add ansi-c++-opt.
71764         (Makefile.am): Arrange to compile and run test-signal-c++.
71765         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
71766         gl_MODULE_INDICATOR.
71768         Tests of module 'search' in C++ mode.
71769         * tests/test-search-c++.cc: New file.
71770         * modules/search-tests (Files): Add it and tests/signature.h.
71771         (Depends-on): Add ansi-c++-opt.
71772         (Makefile.am): Arrange to compile and run test-search-c++.
71773         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
71774         gl_MODULE_INDICATOR.
71776         Tests of module 'math' in C++ mode.
71777         * tests/test-math-c++.cc: New file.
71778         * modules/math-tests (Files): Add it and tests/signature.h.
71779         (Depends-on): Add ansi-c++-opt.
71780         (Makefile.am): Arrange to compile and run test-math-c++.
71781         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
71783         Tests of module 'locale' in C++ mode.
71784         * tests/test-locale-c++.cc: New file.
71785         * modules/locale-tests (Files): Add it and tests/signature.h.
71786         (Depends-on): Add ansi-c++-opt.
71787         (Makefile.am): Arrange to compile and run test-locale-c++.
71788         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
71789         gl_MODULE_INDICATOR.
71791         Tests of module 'langinfo' in C++ mode.
71792         * tests/test-langinfo-c++.cc: New file.
71793         * modules/langinfo-tests (Files): Add it and tests/signature.h.
71794         (Depends-on): Add ansi-c++-opt.
71795         (Makefile.am): Arrange to compile and run test-langinfo-c++.
71796         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
71797         gl_MODULE_INDICATOR.
71799         Tests of module 'iconv-h' in C++ mode.
71800         * tests/test-iconv-h-c++.cc: New file.
71801         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
71802         (Depends-on): Add ansi-c++-opt.
71803         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
71805         Tests of module 'glob' in C++ mode.
71806         * tests/test-glob-c++.cc: New file.
71807         * modules/glob-tests (Files): Add it.
71808         (Depends-on): Add ansi-c++-opt.
71809         (Makefile.am): Arrange to compile and run test-glob-c++.
71811         Tests of module 'fcntl-h' in C++ mode.
71812         * tests/test-fcntl-h-c++.cc: New file.
71813         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
71814         (Depends-on): Add ansi-c++-opt.
71815         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
71816         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
71817         gl_MODULE_INDICATOR.
71819         Tests of module 'dirent' in C++ mode.
71820         * tests/test-dirent-c++.cc: New file.
71821         * modules/dirent-tests (Files): Add it and tests/signature.h.
71822         (Depends-on): Add ansi-c++-opt.
71823         (Makefile.am): Arrange to compile and run test-dirent-c++.
71824         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
71825         gl_MODULE_INDICATOR.
71827         New module 'ansi-c++-opt'.
71828         * modules/ansi-c++-opt: New file.
71829         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
71831         Document C++ namespace mode.
71832         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
71834         wctype: Avoid #define replacements in C++ mode.
71835         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
71836         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
71837         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
71838         In C++, define a namespaced alias symbol.
71839         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
71840         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
71841         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
71842         rule.
71844         wchar: Avoid #define replacements in C++ mode.
71845         * lib/wchar.in.h: Include c++defs.h.
71846         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
71847         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
71848         symbol.
71849         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
71850         * modules/wchar (Depends-on): Add c++defs.
71851         (Makefile.am): Update wchar.h rule.
71853         unistd: Avoid #define replacements in C++ mode.
71854         * lib/unistd.in.h: Include c++defs.h.
71855         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
71856         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
71857         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
71858         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
71859         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
71860         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
71861         symbol.
71862         (environ): Update.
71863         * modules/unistd (Depends-on): Add c++defs.
71864         (Makefile.am): Update unistd.h rule.
71866         time: Avoid #define replacements in C++ mode.
71867         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
71868         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
71869         define a namespaced alias symbol.
71870         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
71871         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
71872         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
71873         * modules/time (Depends-on): Add c++defs, warn-on-use.
71874         (Makefile.am): Update time.h rule.
71875         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
71876         * modules/nanosleep (configure.ac): Likewise.
71877         * modules/strptime (configure.ac): Likewise.
71878         * modules/timegm (configure.ac): Likewise.
71880         sys_time: Avoid #define replacements in C++ mode.
71881         * lib/sys_time.in.h: Include c++defs.h.
71882         (gettimeofday): In C++, define a namespaced alias symbol.
71883         * modules/sys_time (Depends-on): Add c++defs.
71884         (Makefile.am): Update sys/time.h rule.
71886         sys_stat: Avoid #define replacements in C++ mode.
71887         * lib/sys_stat.in.h: Include c++defs.h.
71888         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
71889         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
71890         namespaced alias symbol.
71891         In C++, define a namespaced alias symbol.
71892         * modules/sys_stat (Depends-on): Add c++defs.
71893         (Makefile.am): Update sys/stat.h rule.
71895         sys_socket: Avoid #define replacements in C++ mode.
71896         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
71897         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
71898         definitions also when the system has a <sys/socket.h>.
71899         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
71900         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
71901         In C++, define a namespaced alias symbol.
71902         * modules/sys_socket (Depends-on): Add c++defs.
71903         (Makefile.am): Update sys/socket.h rule.
71905         sys_select: Avoid #define replacements in C++ mode.
71906         * lib/sys_select.in.h: Include c++defs.h. Enable the function
71907         definitions also when the system has a <sys/select.h>.
71908         (select): In C++, define a namespaced alias symbol.
71909         * modules/sys_select (Depends-on): Add c++defs.
71910         (Makefile.am): Update sys/select.h rule.
71912         sys_ioctl: Avoid #define replacements in C++ mode.
71913         * lib/sys_ioctl.in.h: Include c++defs.h.
71914         (ioctl): In C++, define a namespaced alias symbol.
71915         * modules/sys_ioctl (Depends-on): Add c++defs.
71916         (Makefile.am): Update sys/ioctl.h rule.
71918         string: Avoid #define replacements in C++ mode.
71919         * lib/string.in.h: Include c++defs.h.
71920         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
71921         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
71922         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
71923         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
71924         strsignal, strverscmp): In C++, define a namespaced alias symbol.
71925         * modules/string (Depends-on): Add c++defs.
71926         (Makefile.am): Update string.h rule.
71928         stdlib: Avoid #define replacements in C++ mode.
71929         * lib/stdlib.in.h: Include c++defs.h.
71930         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
71931         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
71932         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
71933         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
71934         symbol.
71935         * modules/stdlib (Depends-on): Add c++defs.
71936         (Makefile.am): Update stdlib.h rule.
71938         stdio: Avoid #define replacements in C++ mode.
71939         * lib/stdio.in.h: Include c++defs.h.
71940         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
71941         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
71942         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
71943         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
71944         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
71945         namespaced alias symbol.
71946         * modules/stdio (Depends-on): Add c++defs.
71947         (Makefile.am): Update stdio.h rule.
71949         spawn: Avoid #define replacements in C++ mode.
71950         * lib/spawn.in.h: Include c++defs.h.
71951         (posix_spawn, posix_spawnp, posix_spawnattr_init,
71952         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
71953         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
71954         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
71955         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
71956         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
71957         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
71958         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
71959         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
71960         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
71961         In C++, define a namespaced alias symbol.
71962         * modules/spawn (Depends-on): Add c++defs.
71963         (Makefile.am): Update spawn.h rule.
71965         signal: Avoid #define replacements in C++ mode.
71966         * lib/signal.in.h: Include c++defs.h.
71967         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
71968         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
71969         namespaced alias symbol.
71970         * modules/signal (Depends-on): Add c++defs.
71971         (Makefile.am): Update signal.h rule.
71973         search: Avoid #define replacements in C++ mode.
71974         * lib/search.in.h: Include c++defs.h.
71975         (_gl_search_compar_fn, _gl_search_action_fn): New types.
71976         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
71977         symbol.
71978         * modules/search (Depends-on): Add c++defs.
71979         (Makefile.am): Update search.h rule.
71981         math: Avoid #define replacements in C++ mode.
71982         * lib/math.in.h: Include c++defs.h.
71983         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
71984         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
71985         trunc, truncl): In C++, define a namespaced alias symbol.
71986         * modules/math (Depends-on): Add c++defs.
71987         (Makefile.am): Update math.h rule.
71989         locale: Avoid #define replacements in C++ mode.
71990         * lib/locale.in.h: Include c++defs.h.
71991         (duplocale): In C++, define a namespaced alias symbol.
71992         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
71993         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
71994         * modules/locale (Depends-on): Add c++defs.
71995         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
71997         langinfo: Avoid #define replacements in C++ mode.
71998         * lib/langinfo.in.h: Include c++defs.h.
71999         (nl_langinfo): In C++, define a namespaced alias symbol.
72000         * modules/langinfo (Depends-on): Add c++defs.
72001         (Makefile.am): Update langinfo.h rule.
72003         iconv-h: Avoid #define replacements in C++ mode.
72004         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
72005         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
72006         symbol.
72007         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
72008         whenever iconv is present.
72009         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
72010         (Makefile.am): Update iconv.h rule.
72012         glob: Avoid #define replacements in C++ mode.
72013         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
72014         (_gl_glob_errfunc_fn): New type.
72015         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
72016         symbol.
72017         * modules/glob (Depends-on): Add c++defs, warn-on-use.
72018         (Makefile.am): Update glob.h rule.
72020         fcntl-h: Avoid #define replacements in C++ mode.
72021         * lib/fcntl.in.h: Include c++defs.h.
72022         (fcntl, open, openat): In C++, define a namespaced alias symbol.
72023         * modules/fcntl-h (Depends-on): Add c++defs.
72024         (Makefile.am): Update fcntl.h rule.
72026         dirent: Avoid #define replacements in C++ mode.
72027         * lib/dirent.in.h: Include c++defs.h.
72028         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
72029         namespaced alias symbol.
72030         (dirfd): Update declaration.
72031         * modules/dirent (Depends-on): Add c++defs.
72032         (Makefile.am): Update dirent.h rule.
72034         ctype: Make it usable in C++ code.
72035         * lib/ctype.in.h: Include c++defs.h.
72036         (isblank): Declare as extern "C".
72037         * modules/ctype (Depends-on): Add c++defs.
72038         (Makefile.am): Update ctype.h rule.
72040         New module 'c++defs'.
72041         * modules/c++defs: New file.
72042         * build-aux/c++defs.h: New file.
72043         Reported by John W. Eaton <jwe@gnu.org>.
72045 2010-03-07  Bruno Haible  <bruno@clisp.org>
72047         logb: Provide missing declaration for Cygwin.
72048         * lib/math.in.h (logb): New declaration.
72049         * m4/logb.m4: New file.
72050         * modules/logb (Files): Add m4/logb.m4.
72051         (Depends-on): Add math.
72052         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
72053         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
72054         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
72055         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
72056         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
72058 2010-03-07  Bruno Haible  <bruno@clisp.org>
72060         Fix test-cond link error.
72061         * tests/test-cond.c: Include <stdio.h>.
72063 2010-03-07  Bruno Haible  <bruno@clisp.org>
72065         Fix test-dirent-safer link error.
72066         * modules/dirent-safer-tests (Makefile.am): Define
72067         test_dirent_safer_LDADD.
72069 2010-03-07  Bruno Haible  <bruno@clisp.org>
72071         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
72072         among default module list.
72074 2010-03-07  Bruno Haible  <bruno@clisp.org>
72076         Fix link error on platforms with GNU libiconv.
72077         * modules/unistr/u8-strcoll-tests (Makefile): Define
72078         test_u8_strcoll_LDADD.
72079         * modules/unistr/u16-strcoll-tests (Makefile): Define
72080         test_u16_strcoll_LDADD.
72081         * modules/unistr/u32-strcoll-tests (Makefile): Define
72082         test_u32_strcoll_LDADD.
72084 2010-03-07  Bruno Haible  <bruno@clisp.org>
72086         Use POSIX declarations for socket functions.
72087         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
72088         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
72089         rpl_sendto): Change declaration to match POSIX.
72090         * lib/connect.c (rpl_connect): Likewise.
72091         * lib/accept.c (rpl_accept): Likewise.
72092         * lib/bind.c (rpl_bind): Likewise.
72093         * lib/getpeername.c (rpl_getpeername): Likewise.
72094         * lib/getsockname.c (rpl_getsockname): Likewise.
72095         * lib/recv.c (rpl_recv): Likewise.
72096         * lib/send.c (rpl_send): Likewise.
72097         * lib/recvfrom.c (rpl_recvfrom): Likewise.
72098         * lib/sendto.c (rpl_sendto): Likewise.
72100 2010-03-06  Bruno Haible  <bruno@clisp.org>
72102         Clarify access, euidaccess, faccessat.
72103         * doc/posix-functions/faccessat.texi: Mention security problem under
72104         "Other problems", not "Portability problems".
72105         * doc/posix-functions/access.texi: Likewise. Mention a related security
72106         problem.
72107         * doc/glibc-functions/euidaccess.texi: Mention security problems.
72108         * lib/euidaccess.c: Add comments about platforms.
72109         * lib/unistd.in.h (access, euidaccess): Add warnings.
72111 2010-03-07  Bruno Haible  <bruno@clisp.org>
72113         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
72114         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
72115         (POSIX_SPAWN_SETSCHEDULER): Likewise.
72116         (POSIX_SPAWN_USEVFORK): Define in a way that works when
72117         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
72118         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
72119         declare when POSIX_SPAWN_SETSCHEDULER is zero.
72120         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
72121         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
72122         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
72123         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
72124         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
72125         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
72126         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
72127         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
72128         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
72129         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
72130         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
72131         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
72132         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
72133         Likewise.
72134         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
72135         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
72136         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
72137         Likewise.
72138         * tests/test-spawn.c (main): Make it work when
72139         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
72141 2010-03-07  Bruno Haible  <bruno@clisp.org>
72143         Fix incorrect Makefile.am generation in German locale.
72144         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72145         Execute sed command with character range in C locale.
72147 2010-03-06  Bruno Haible  <bruno@clisp.org>
72149         Tests for module 'iconv-h'.
72150         * modules/iconv-h-tests: New file.
72151         * tests/test-iconv-h.c: New file.
72153         New module 'iconv-h'.
72154         * modules/iconv-h: New file.
72155         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
72156         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
72157         (configure.ac): Remove gl_ICONV_H.
72158         (Makefile.am): Remove rule for iconv.h.
72160 2010-03-06  Bruno Haible  <bruno@clisp.org>
72162         More consistent naming of *.m4 files.
72163         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
72164         * modules/wctype (Files): Update.
72166         More consistent naming of *.m4 files.
72167         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
72168         * modules/wchar (Files): Update.
72170 2010-03-06  Jim Meyering  <meyering@redhat.com>
72172         euidaccess: relax license to LGPLv2+
72173         * modules/euidaccess (License): Relax to LGPLv2+.
72175 2010-03-06  Bruno Haible  <bruno@clisp.org>
72177         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
72178         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
72179         (Makefile.am): Augment lib_SOURCES instead.
72181 2010-03-04  Jim Meyering  <meyering@redhat.com>
72183         utime: remove obsolete module
72184         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
72185         unnecessary for years, and has been marked as obsolete for 10 months.
72186         * modules/utime: Remove file.
72187         * lib/utime.c: Remove file.
72188         * m4/utime.m4: Remove file.
72189         * m4/utimes-null.m4: Remove file.
72190         * doc/posix-functions/utime.texi (utime): Remove reference to
72191         the module.  Move the sole "fixed by gnulib" item into the
72192         "problems not fixed by Gnulib" list.
72193         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
72195 2010-03-05  Simon Josefsson  <simon@josefsson.org>
72197         * modules/exit (License): Relax license to LGPLv2+.
72198         (Status): Mark as obsolete.
72199         * NEWS: Mention deprecated 'exit' module.
72200         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
72201         of now obsolete 'exit'.
72203 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72205         fts-lgpl: remove unused module
72206         * modules/fts-lgpl: Remove.
72207         * MODULES.html.sh (func_all_modules): Adjust.
72208         * check-module (find_included_lib_files): Adjust.
72209         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
72211 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
72213         copy-acl: enhance Solaris ACL error handling
72214         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
72215         * lib/set-mode-acl.c (qset_acl): Likewise.
72217 2010-03-02  Bruno Haible  <bruno@clisp.org>
72219         spawn: Don't override the system defined values on FreeBSD 8.
72220         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
72221         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
72222         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
72223         if HAVE_POSIX_SPAWN is 1.
72224         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
72226 2010-03-01  Bruno Haible  <bruno@clisp.org>
72228         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
72229         regarding Automake.
72231 2010-02-25  Bruno Haible  <bruno@clisp.org>
72233         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
72234         * gnulib-tool: Define 'echo' as a function only before the ksh alias
72235         setting, not afterwards.
72236         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
72238 2010-02-24  Eric Blake  <eblake@redhat.com>
72240         bootstrap, git-version-gen: use timestamp
72241         * build-aux/git-version-gen (scriptversion): Force UTC.
72242         * build-aux/bootstrap (scriptversion): New variable.
72244         bootstrap: allow older git
72245         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
72246         older than 1.6.4.  Requested by the libvirt project.
72248 2010-02-23  Eric Blake  <eblake@redhat.com>
72250         warn-on-use: work with old autoconf
72251         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
72252         AS_VAR semantics of autoconf 2.60.
72253         Reported by Bruno Haible.
72255         bootstrap: improve some comments
72256         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
72257         clarification comments.
72259         gettimeofday: provide correct function
72260         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
72261         when replacement is declared, otherwise provide gettimeofday.
72262         Reported by Michael Goffioul.
72264 2010-02-23  Jim Meyering  <meyering@redhat.com>
72266         lib-ignore: relax license to "unlimited", not LGPLv2+
72267         * modules/lib-ignore (License): Relax to "unlimited".
72269 2010-02-23  Jim Meyering  <meyering@redhat.com>
72271         lib-ignore: relax license to LGPLv2+
72272         * modules/lib-ignore (License): Relax to LGPLv2+.
72274 2010-02-22  Eric Blake  <eblake@redhat.com>
72276         lseek: avoid bash 3.2 broken pipe bug
72277         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
72278         warning from bash 3.2.
72279         Reported by Ben Pfaff, with analysis from Bruno Haible.
72281         bootstrap: support non-FSF copyright holder
72282         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
72283         bootstrap.conf override of COPYRIGHT_HOLDER.
72284         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
72286         bootstrap: interoperate with gettext 0.14.1
72287         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
72289         bootstrap: allow for alternate submodule location
72290         * build-aux/bootstrap (gnulib_path): New variable; use instead of
72291         hardcoding submodule location.
72292         (gnulib_mk): Allow direct use of Makefile.am.
72294         bootstrap: use GNULIB_SRCDIR to reduce disk usage
72295         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
72296         rather than reconfiguring where the submodule points.
72298         gettimeofday: restore support for platforms that lack function
72299         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
72300         replacement if function is missing.
72301         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
72302         * modules/sys_time (Makefile.am): Substitute it.
72303         * lib/sys_time.in.h (gettimeofday): Check it.
72304         Reported by Michael Goffioul.
72306 2010-02-21  Bruno Haible  <bruno@clisp.org>
72308         * lib/stdio.in.h (obstack_printf): Fix typo.
72310 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
72312         vc-list-files: use bzr ls's -R option
72313         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
72314         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
72316 2010-02-21  Jim Meyering  <meyering@redhat.com>
72318         init.sh: fix EXEEXT shims to work also for names like test-prog
72319         * tests/init.sh: Re-exec a better shell, when needed.
72320         If the current shell lacks support for posix $(...), an init.sh-using
72321         test will now try to find a shell that supports that.  If EXEEXT is
72322         nonempty, we also require support for hyphen-in-alias-name and shell
72323         substitutions like ${var#glob}.  Failure to find such a shell results
72324         in a skipped test.
72326 2010-02-21  Bruno Haible  <bruno@clisp.org>
72328         Really work around "broken pipe" error message from bash 3.2.
72329         * gnulib-tool (func_reset_sigpipe): Remove function.
72330         (echo): In bash 3.2, define to a function that uses printf.
72331         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
72333 2010-02-20  Bruno Haible  <bruno@clisp.org>
72335         Restore support for automake 1.9.6 with autoconf 2.61.
72336         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
72337         Reported by James Youngman <jay@gnu.org>.
72339 2010-02-20  Bruno Haible  <bruno@clisp.org>
72341         Improve *printf warning condition.
72342         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
72343         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
72344         and the function is overridden due to SIGPIPE emulation.
72346 2010-02-20  Bruno Haible  <bruno@clisp.org>
72348         * lib/stdio.in.h: Tweak comments.
72350 2010-02-19  Bruno Haible  <bruno@clisp.org>
72352         Make it easier to find modules. New gnulib-tool option '--find'.
72353         * gnulib-tool: New option --find.
72354         (func_usage): Document it.
72355         (func_sanitize_modulelist): New function, extracted from
72356         func_all_modules.
72357         (func_all_modules): Invoke it.
72358         * doc/gnulib-tool.texi (Which modules?): New node.
72360 2010-02-18  Markus Duft  <mduft@gentoo.org>  (tiny change)
72362         * lib/sys_select.in.h: Provide select replacement even if
72363         sys/select.h exists on a system, for Interix.
72365 2010-02-18  Jim Meyering  <meyering@redhat.com>
72367         init.sh: don't use $(...) just yet
72368         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
72369         to accommodate e.g., Solaris' /bin/sh.
72371 2010-02-17  Bruno Haible  <bruno@clisp.org>
72373         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
72374         Reported by Ludovic Courtès <ludo@gnu.org>.
72376 2010-02-16  Simon Josefsson  <simon@josefsson.org>
72378         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
72379         linking with -lintl.
72381 2010-02-17  Simon Josefsson  <simon@josefsson.org>
72383         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
72384         if not provided by the system's netdb.h.  Reported by
72385         ludo@gnu.org (Ludovic Courtès).
72387 2010-02-15  Jim Meyering  <meyering@redhat.com>
72389         init.sh: improve portability and efficiency
72390         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
72391         "dummy" in a for loop.
72392         Use '!', not '^' to select the complement of a character set used
72393         in a "case" statement.
72394         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
72395         Suggestions from Eric Blake.
72397         init.sh: automatically accommodate programs with the .exe suffix
72398         Automatically arrange for an invocation of "prog" to execute the
72399         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
72400         may use the simpler "prog", yet still work when built on a system
72401         that requires specifying the added suffix.
72402         Do this by constructing a function named "prog" that invokes
72403         "prog.exe" for each .exe file in selected directories.
72404         * tests/init.sh (find_exe_basenames_): New function.
72405         (create_exe_shim_functions_): New function.
72406         (path_prepend_): Use it.
72408         maint.mk: mark syntax-check sc_*.m rules as .PHONY
72409         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
72410         "make -t syntax-check" doesn't create a ton of sc_*.m files.
72412 2010-02-14  Jim Meyering  <meyering@redhat.com>
72414         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
72415         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
72416         (sc_prohibit_hash_pjw_without_use): New rule.
72418         maint.mk: allow the default upload destination dir to be overridden
72419         * top/maint.mk (upload_dest_dir_): Define with a default that
72420         preserves the status quo.
72421         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
72422         Reported by Peter Simons.
72424         maint.mk: prohibit inclusion of "hash.h" without_use
72425         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
72427 2010-02-10  Jim Meyering  <meyering@redhat.com>
72429         maint.mk: prohibit inclusion of "ignore-value.h" without_use
72430         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
72432 2010-02-09  Eric Blake  <ebb9@byu.net>
72433         and Bruno Haible  <bruno@clisp.org>
72435         obstack-printf-posix: ensure declaration
72436         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
72437         extracted from gl_FUNC_OBSTACK_PRINTF.
72438         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
72439         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
72440         Likewise.
72441         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
72442         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
72443         0.
72445 2010-02-08  Bruno Haible  <bruno@clisp.org>
72447         gnulib-tool: Fix typo in 2010-02-07 commit.
72448         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
72449         Reported by Eric Blake.
72451 2010-02-07  Bruno Haible  <bruno@clisp.org>
72453         gnulib-tool: Fix up caching patches.
72454         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
72455         option --no-cache. Use associative arrays when supported by the shell.
72456         (sed_comments): New variable.
72457         (modcache): Renamed from do_cache.
72458         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
72459         abbreviate unnecessarily.
72460         (have_associative): New variable.
72461         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
72462         way also for ksh and zsh.
72463         (func_init_sed_convert_to_cache_statements): New function, extracted
72464         from func_cache_lookup_module. Add support for associative arrays.
72465         Don't set the c_MODULE_cached variable here. Ignore all lines before
72466         the first field header. Remove only the final newline, not all trailing
72467         newlines. Support empty fields correctly. Limit the use of 'eval' to
72468         assignments.
72469         (func_get_description, func_get_status, func_get_notice,
72470         func_get_applicability, func_get_filelist, func_get_dependencies,
72471         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
72472         func_get_automake_snippet, func_get_include_directive,
72473         func_get_link_directive, func_get_license, func_get_maintainer):
72474         Update documentation. List the unoptimized code first. Add support for
72475         associative arrays. Limit the use of 'eval' to assignments.
72476         (func_get_applicability): Undo stylistic pessimisations.
72477         (func_get_automake_snippet, func_get_include_directive): Reduce code
72478         duplication.
72479         (func_modules_transitive_closure, func_modules_add_dummy,
72480         func_modules_notice, func_modules_to_filelist, func_add_file,
72481         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
72482         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
72483         func_create_testdir, func_create_megatestdir): Update documentation.
72485 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72487         * gnulib-tool (func_cache_lookup_module): Store the module name
72488         belonging to the cache variable; error out if two different
72489         module names map to the same cache variable name.
72491 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72493         gnulib-tool: Make caching optional.
72494         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
72495         Update matching short versions of --no-changelog.
72496         (func_usage): Update.
72497         (sed_extract_cache_prog): Renamed from ...
72498         (sed_extract_prog): ... this; revert to old extraction script.
72499         (func_get_description, func_get_status)
72500         (func_get_notice, func_get_applicability, func_get_filelist)
72501         (func_get_dependencies, func_get_autoconf_early_snippet)
72502         (func_get_autoconf_snippet, func_get_automake_snippet)
72503         (func_get_include_directive, func_get_link_directive)
72504         (func_get_license, func_get_maintainer): If $do_cache is false,
72505         use old, non-caching extraction scripts.
72506         Suggestion by Bruno Haible.
72508 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72510         gnulib-tool: cache module metainformation.
72511         * gnulib-tool (sed_extract_prog): Match newline before each
72512         header, and rewrite header to a shell variable suffix.
72513         (func_cache_var, func_cache_lookup_module): New functions,
72514         to turn a module name into a cache variable prefix, and to
72515         look up and cache module metainformation.
72516         (func_get_description, func_get_status)
72517         (func_get_notice, func_get_applicability, func_get_filelist)
72518         (func_get_dependencies, func_get_autoconf_early_snippet)
72519         (func_get_autoconf_snippet, func_get_automake_snippet)
72520         (func_get_include_directive, func_get_link_directive)
72521         (func_get_license, func_get_maintainer): Use
72522         func_cache_lookup_module.
72524 2010-02-07  Bruno Haible  <bruno@clisp.org>
72526         fnctl: Fix missing dependency.
72527         * modules/fcntl (Depends-on): Add getdtablesize.
72528         Reported by John W. Eaton <jwe@gnu.org>.
72530 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
72532         Argp: fix recognition of short alias options.
72534         * lib/argp-parse.c (convert_options): Fix improper use of
72535         `|' between character values.
72536         * tests/test-argp.c (group1_option): New alias option
72537         --read (-r).
72538         (group1_parser): Special handling for 'r'.
72539         (test15): New test case.
72540         (test_fun): Add test15.
72541         * tests/test-argp-2.sh: Update expected --help and --usage
72542         outputs.
72544 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
72546         * tests/test-argp.c: Fix indentation.
72548 2010-02-04  Eric Blake  <ebb9@byu.net>
72550         gettimeofday: expose type of second argument
72551         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
72552         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
72553         * tests/test-gettimeofday.c: Use it to silence warning.
72554         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
72555         the issue.
72557 2010-02-03  Jim Meyering  <meyering@redhat.com>
72559         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
72560         * lib/regcomp.c (TYPE_SIGNED): Define.
72561         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
72563         regcomp.c: avoid a new -Wshadow warning
72564         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
72566 2010-02-01  Jim Meyering  <meyering@redhat.com>
72568         removing useless parentheses in cpp #define directives
72569         For motivation, see commit c0221df4, "define STREQ(a,b)
72570         consistently, removing useless parentheses"
72571         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
72572         * lib/mountlist.c (MNT_IGNORE): Likewise.
72573         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
72575 2010-02-01  Eric Blake  <ebb9@byu.net>
72577         sys_time: use link-warning
72578         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
72579         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
72580         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
72581         * modules/sys_time (Depends-on): Add warn-on-use.
72582         (Makefile.am): Always build replacement.
72583         (configure.ac): Update substitutions.
72584         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
72585         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
72586         bother with SYS_TIME_H.
72587         * modules/gettimeofday (configure.ac): Declare indicator.
72588         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
72589         in use.
72591         closein-tests: silence compiler warning
72592         * tests/test-closein.c (main): Ignore fread result.
72593         * modules/closein-tests (Depends-on): Add ignore-value.
72595         tests: silence warning about system return
72596         * tests/test-areadlink-with-size.c (main): Ignore system result.
72597         * tests/test-areadlink.c (main): Likewise.
72598         * tests/test-areadlinkat-with-size.c (main): Likewise.
72599         * tests/test-areadlinkat.c (main): Likewise.
72600         * tests/test-canonicalize-lgpl.c (main): Likewise.
72601         * tests/test-canonicalize.c (main): Likewise.
72602         * tests/test-chown.c (main): Likewise.
72603         * tests/test-fchownat.c (main): Likewise.
72604         * tests/test-fdutimensat.c (main): Likewise.
72605         * tests/test-fstatat.c (main): Likewise.
72606         * tests/test-futimens.c (main): Likewise.
72607         * tests/test-lchown.c (main): Likewise.
72608         * tests/test-link.c (main): Likewise.
72609         * tests/test-linkat.c (main): Likewise.
72610         * tests/test-lstat.c (main): Likewise.
72611         * tests/test-mkdir.c (main): Likewise.
72612         * tests/test-mkdirat.c (main): Likewise.
72613         * tests/test-mkfifo.c (main): Likewise.
72614         * tests/test-mkfifoat.c (main): Likewise.
72615         * tests/test-mknod.c (main): Likewise.
72616         * tests/test-readlink.c (main): Likewise.
72617         * tests/test-remove.c (main): Likewise.
72618         * tests/test-rename.c (main): Likewise.
72619         * tests/test-renameat.c (main): Likewise.
72620         * tests/test-rmdir.c (main): Likewise.
72621         * tests/test-symlink.c (main): Likewise.
72622         * tests/test-symlinkat.c (main): Likewise.
72623         * tests/test-unlink.c (main): Likewise.
72624         * tests/test-unlinkat.c (main): Likewise.
72625         * tests/test-utimens.c (main): Likewise.
72626         * tests/test-utimensat.c (main): Likewise.
72627         * modules/areadlink-tests (Depends-on): Add ignore-value.
72628         * modules/areadlink-with-size-tests (Depends-on): Likewise.
72629         * modules/areadlinkat-tests (Depends-on): Likewise.
72630         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
72631         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
72632         * modules/canonicalize-tests (Depends-on): Likewise.
72633         * modules/chown-tests (Depends-on): Likewise.
72634         * modules/fdutimensat-tests (Depends-on): Likewise.
72635         * modules/futimens-tests (Depends-on): Likewise.
72636         * modules/lchown-tests (Depends-on): Likewise.
72637         * modules/link-tests (Depends-on): Likewise.
72638         * modules/linkat-tests (Depends-on): Likewise.
72639         * modules/lstat-tests (Depends-on): Likewise.
72640         * modules/mkdir-tests (Depends-on): Likewise.
72641         * modules/mkfifo-tests (Depends-on): Likewise.
72642         * modules/mkfifoat-tests (Depends-on): Likewise.
72643         * modules/mknod-tests (Depends-on): Likewise.
72644         * modules/openat-tests (Depends-on): Likewise.
72645         * modules/readlink-tests (Depends-on): Likewise.
72646         * modules/remove-tests (Depends-on): Likewise.
72647         * modules/rename-tests (Depends-on): Likewise.
72648         * modules/renameat-tests (Depends-on): Likewise.
72649         * modules/rmdir-tests (Depends-on): Likewise.
72650         * modules/symlink-tests (Depends-on): Likewise.
72651         * modules/symlinkat-tests (Depends-on): Likewise.
72652         * modules/unlink-tests (Depends-on): Likewise.
72653         * modules/utimens-tests (Depends-on): Likewise.
72654         * modules/utimensat-tests (Depends-on): Likewise.
72656 2010-01-31  Bruno Haible  <bruno@clisp.org>
72658         Perform the same test for many <math.h> functions.
72659         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
72660         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
72661         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
72662         of gl_MATHFUNC.
72663         * modules/acos (configure.ac): Likewise.
72664         * modules/asin (configure.ac): Likewise.
72665         * modules/atan (configure.ac): Likewise.
72666         * modules/atan2 (configure.ac): Likewise.
72667         * modules/cbrt (configure.ac): Likewise.
72668         * modules/copysign (configure.ac): Likewise.
72669         * modules/cos (configure.ac): Likewise.
72670         * modules/cosh (configure.ac): Likewise.
72671         * modules/erf (configure.ac): Likewise.
72672         * modules/erfc (configure.ac): Likewise.
72673         * modules/exp (configure.ac): Likewise.
72674         * modules/fmod (configure.ac): Likewise.
72675         * modules/hypot (configure.ac): Likewise.
72676         * modules/j0 (configure.ac): Likewise.
72677         * modules/j1 (configure.ac): Likewise.
72678         * modules/jn (configure.ac): Likewise.
72679         * modules/lgamma (configure.ac): Likewise.
72680         * modules/log (configure.ac): Likewise.
72681         * modules/log10 (configure.ac): Likewise.
72682         * modules/log1p (configure.ac): Likewise.
72683         * modules/pow (configure.ac): Likewise.
72684         * modules/remainder (configure.ac): Likewise.
72685         * modules/sin (configure.ac): Likewise.
72686         * modules/sinh (configure.ac): Likewise.
72687         * modules/tan (configure.ac): Likewise.
72688         * modules/tanh (configure.ac): Likewise.
72689         * modules/y0 (configure.ac): Likewise.
72690         * modules/y1 (configure.ac): Likewise.
72691         * modules/yn (configure.ac): Likewise.
72692         Suggested by Paolo Bonzini.
72694 2010-01-31  Bruno Haible  <bruno@clisp.org>
72696         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
72698 2010-01-31  Bruno Haible  <bruno@clisp.org>
72700         Work around getdelim() bug on FreeBSD 8.0.
72701         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
72702         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
72703         not work.
72704         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
72705         is 1.
72706         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
72707         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
72708         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
72709         a non-zero size.
72710         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
72712 2010-01-31  Bruno Haible  <bruno@clisp.org>
72714         Work around getline() bug on FreeBSD 8.0.
72715         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
72716         and a non-zero size.
72717         * tests/test-getline.c (main): Likewise.
72718         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
72719         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
72721 2010-01-28  Eric Blake  <ebb9@byu.net>
72723         regex: fix build failure
72724         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
72725         platforms.
72727 2010-01-28  Jim Meyering  <meyering@redhat.com>
72729         regex: do not ignore memory allocation failure
72730         * lib/regex_internal.c (create_cd_newstate): Detect
72731         re_node_set_init_copy failure.   Extracted from glibc commit
72732         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
72734         regex: sync more white-space changes from libc
72735         * lib/regex_internal.c: White-space only changes.
72736         * lib/regexec.c: Likewise.
72738         regex: add many uses of __attribute_warn_unused_result__
72739         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
72740         * lib/regexec.c: Likewise.
72741         Extracted from a messy glibc commit.
72743         regcomp.c: spelling and merge-artifact from glibc
72744         * lib/regcomp.c: Merge remainder of glibc's
72745         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
72747         regcomp.c: sync white-space changes from glibc
72748         * lib/regcomp.c: Merge to accommodate white space
72749         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
72751         regcomp.c: do not ignore internal return values
72752         * lib/regcomp.c: Do not ignore internal return values.
72753         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
72754         but without its white-space changes and spelling fixes.
72756         regex_internal.h: define __attribute_warn_unused_result__
72757         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
72759         maint: add a syntax-check rule to check for vulnerable Makefile.in
72760         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
72762 2010-01-27  Jim Meyering  <meyering@redhat.com>
72764         ncftpput-ftp: clean up spaces
72765         * build-aux/ncftpput-ftp: Make Copyright line consistent.
72766         Remove trailing blanks.
72768 2010-01-27  Simon Josefsson  <simon@josefsson.org>
72770         * build-aux/git-version-gen: Fix copyright statement.
72771         * build-aux/gnupload: Likewise.
72772         * tests/test-arcfour.c: Likewise.
72773         * tests/test-arctwo.c: Likewise.
72774         * tests/test-count-one-bits.c: Likewise.
72775         * tests/test-crc.c: Likewise.
72776         * tests/test-des.c: Likewise.
72777         * tests/test-gc-arcfour.c: Likewise.
72778         * tests/test-gc-arctwo.c: Likewise.
72779         * tests/test-gc-des.c: Likewise.
72780         * tests/test-gc-hmac-md5.c: Likewise.
72781         * tests/test-gc-hmac-sha1.c: Likewise.
72782         * tests/test-gc-md2.c: Likewise.
72783         * tests/test-gc-md4.c: Likewise.
72784         * tests/test-gc-md5.c: Likewise.
72785         * tests/test-gc-pbkdf2-sha1.c: Likewise.
72786         * tests/test-gc-rijndael.c: Likewise.
72787         * tests/test-gc-sha1.c: Likewise.
72788         * tests/test-gc.c: Likewise.
72789         * tests/test-gethostname.c: Likewise.
72790         * tests/test-gettimeofday.c: Likewise.
72791         * tests/test-hash.c: Likewise.
72792         * tests/test-hmac-md5.c: Likewise.
72793         * tests/test-hmac-sha1.c: Likewise.
72794         * tests/test-md2.c: Likewise.
72795         * tests/test-md4.c: Likewise.
72796         * tests/test-md5.c: Likewise.
72797         * tests/test-memchr.c: Likewise.
72798         * tests/test-memchr2.c: Likewise.
72799         * tests/test-memcmp.c: Likewise.
72800         * tests/test-memmem.c: Likewise.
72801         * tests/test-memrchr.c: Likewise.
72802         * tests/test-rawmemchr.c: Likewise.
72803         * tests/test-read-file.c: Likewise.
72804         * tests/test-rijndael.c: Likewise.
72805         * tests/test-sockets.c: Likewise.
72806         * tests/test-strchrnul.c: Likewise.
72807         * tests/test-strstr.c: Likewise.
72808         * tests/test-strtod.c: Likewise.
72809         * build-aux/ncftpput-ftp: Likewise.
72811 2010-01-26  Eric Blake  <ebb9@byu.net>
72813         ignore-value: update recommended header name
72814         * modules/ignore-value (Include): Only use <> for headers that
72815         exist in glibc.
72817 2010-01-26  Jim Meyering  <meyering@redhat.com>
72819         test-userspec.c: avoid compiler warnings
72820         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
72821         and "initialization discards qualifiers..." warnings.
72822         Put the first "uid" in its own scope, and make char* members "const".
72824 2010-01-25  Bruno Haible  <bruno@clisp.org>
72826         gnulib-tool: Make warning diagnostics consistent.
72827         * gnulib-tool (func_warning): New function.
72828         Use it everywhere where gnulib-tool produces output to stderr and it is
72829         not a fatal error.
72831 2010-01-25  Bruno Haible  <bruno@clisp.org>
72833         Fix test dependencies.
72834         * modules/xstrtol-tests (Depends-on): Add inttypes.
72835         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
72837 2010-01-25  Pádraig Brady  <P@draigBrady.com>
72839         syntax-check: detect incorrect boolean macro values in config.h
72840         * modules/maintainer-makefile (configure.ac): Parameterize the location
72841         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
72842         The logic is from Eric Blake and the location indicated by Jim Meyering.
72843         Note the more natural CONFIG_HEADER name is prohibited by automake
72844         for backwards compatibility reasons.
72845         * top/maint.mk (sc_Wundef_boolean): New rule.
72847 2010-01-25  Jim Meyering  <meyering@redhat.com>
72849         bootstrap: detect MacOS 10.6's shasum, too
72850         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
72851         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
72853 2010-01-23  Jim Meyering  <meyering@redhat.com>
72855         xstrtoll: new module
72856         * modules/xstrtoll: New file.
72857         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
72858         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
72859         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
72860         ./configure fails if you use this module and lack "long long".
72861         * modules/xstrtoll-tests: New module.
72862         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
72863         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
72864         new init.sh-based test framework.
72866 2010-01-24  Bruno Haible  <bruno@clisp.org>
72868         Tests for module 'yn'.
72869         * modules/yn-tests: New file.
72870         * tests/test-yn.c: New file.
72872         Tests for module 'y1'.
72873         * modules/y1-tests: New file.
72874         * tests/test-y1.c: New file.
72876         Tests for module 'y0'.
72877         * modules/y0-tests: New file.
72878         * tests/test-y0.c: New file.
72880         Tests for module 'tanh'.
72881         * modules/tanh-tests: New file.
72882         * tests/test-tanh.c: New file.
72884         Tests for module 'tan'.
72885         * modules/tan-tests: New file.
72886         * tests/test-tan.c: New file.
72888         Tests for module 'sqrt'.
72889         * modules/sqrt-tests: New file.
72890         * tests/test-sqrt.c: New file.
72892         Tests for module 'sinh'.
72893         * modules/sinh-tests: New file.
72894         * tests/test-sinh.c: New file.
72896         Tests for module 'sin'.
72897         * modules/sin-tests: New file.
72898         * tests/test-sin.c: New file.
72900         Tests for module 'rint'.
72901         * modules/rint-tests: New file.
72902         * tests/test-rint.c: New file.
72904         Tests for module 'remainder'.
72905         * modules/remainder-tests: New file.
72906         * tests/test-remainder.c: New file.
72908         Tests for module 'pow'.
72909         * modules/pow-tests: New file.
72910         * tests/test-pow.c: New file.
72912         Tests for module 'nextafter'.
72913         * modules/nextafter-tests: New file.
72914         * tests/test-nextafter.c: New file.
72916         Tests for module 'modf'.
72917         * modules/modf-tests: New file.
72918         * tests/test-modf.c: New file.
72920         Tests for module 'logb'.
72921         * modules/logb-tests: New file.
72922         * tests/test-logb.c: New file.
72924         Tests for module 'log1p'.
72925         * modules/log1p-tests: New file.
72926         * tests/test-log1p.c: New file.
72928         Tests for module 'log10'.
72929         * modules/log10-tests: New file.
72930         * tests/test-log10.c: New file.
72932         Tests for module 'log'.
72933         * modules/log-tests: New file.
72934         * tests/test-log.c: New file.
72936         Tests for module 'lgamma'.
72937         * modules/lgamma-tests: New file.
72938         * tests/test-lgamma.c: New file.
72940         Tests for module 'ldexp'.
72941         * modules/ldexp-tests: New file.
72942         * tests/test-ldexp.c: New file.
72944         Tests for module 'jn'.
72945         * modules/jn-tests: New file.
72946         * tests/test-jn.c: New file.
72948         Tests for module 'j1'.
72949         * modules/j1-tests: New file.
72950         * tests/test-j1.c: New file.
72952         Tests for module 'j0'.
72953         * modules/j0-tests: New file.
72954         * tests/test-j0.c: New file.
72956         Tests for module 'hypot'.
72957         * modules/hypot-tests: New file.
72958         * tests/test-hypot.c: New file.
72960         Tests for module 'fmod'.
72961         * modules/fmod-tests: New file.
72962         * tests/test-fmod.c: New file.
72964         Tests for module 'fabs'.
72965         * modules/fabs-tests: New file.
72966         * tests/test-fabs.c: New file.
72968         Tests for module 'exp'.
72969         * modules/exp-tests: New file.
72970         * tests/test-exp.c: New file.
72972         Tests for module 'erfc'.
72973         * modules/erfc-tests: New file.
72974         * tests/test-erfc.c: New file.
72976         Tests for module 'erf'.
72977         * modules/erf-tests: New file.
72978         * tests/test-erf.c: New file.
72980         Tests for module 'cosh'.
72981         * modules/cosh-tests: New file.
72982         * tests/test-cosh.c: New file.
72984         Tests for module 'cos'.
72985         * modules/cos-tests: New file.
72986         * tests/test-cos.c: New file.
72988         Tests for module 'copysign'.
72989         * modules/copysign-tests: New file.
72990         * tests/test-copysign.c: New file.
72992         Tests for module 'cbrt'.
72993         * modules/cbrt-tests: New file.
72994         * tests/test-cbrt.c: New file.
72996         Tests for module 'atan2'.
72997         * modules/atan2-tests: New file.
72998         * tests/test-atan2.c: New file.
73000         Tests for module 'atan'.
73001         * modules/atan-tests: New file.
73002         * tests/test-atan.c: New file.
73004         Tests for module 'asin'.
73005         * modules/asin-tests: New file.
73006         * tests/test-asin.c: New file.
73008         Tests for module 'acos'.
73009         * modules/acos-tests: New file.
73010         * tests/test-acos.c: New file.
73012 2010-01-24  Bruno Haible  <bruno@clisp.org>
73014         Fix tests for common <math.h> functions.
73015         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
73016         code snippet that references the function pointer, rather than merely
73017         calling the function. Substitute the FUNC_LIBM variable.
73018         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
73019         * modules/acos (configure.ac): Likewise.
73020         * modules/asin (configure.ac): Likewise.
73021         * modules/atan (configure.ac): Likewise.
73022         * modules/atan2 (configure.ac): Likewise.
73023         * modules/cbrt (configure.ac): Likewise.
73024         * modules/copysign (configure.ac): Likewise.
73025         * modules/cos (configure.ac): Likewise.
73026         * modules/cosh (configure.ac): Likewise.
73027         * modules/erf (configure.ac): Likewise.
73028         * modules/erfc (configure.ac): Likewise.
73029         * modules/exp (configure.ac): Likewise.
73030         * modules/fabs (configure.ac): Likewise.
73031         * modules/fmod (configure.ac): Likewise.
73032         * modules/hypot (configure.ac): Likewise.
73033         * modules/j0 (configure.ac): Likewise.
73034         * modules/j1 (configure.ac): Likewise.
73035         * modules/jn (configure.ac): Likewise.
73036         * modules/ldexp (configure.ac): Likewise.
73037         * modules/lgamma (configure.ac): Likewise.
73038         * modules/log (configure.ac): Likewise.
73039         * modules/log10 (configure.ac): Likewise.
73040         * modules/log1p (configure.ac): Likewise.
73041         * modules/logb (configure.ac): Likewise.
73042         * modules/modf (configure.ac): Likewise.
73043         * modules/nextafter (configure.ac): Likewise.
73044         * modules/pow (configure.ac): Likewise.
73045         * modules/remainder (configure.ac): Likewise.
73046         * modules/rint (configure.ac): Likewise.
73047         * modules/sin (configure.ac): Likewise.
73048         * modules/sinh (configure.ac): Likewise.
73049         * modules/tan (configure.ac): Likewise.
73050         * modules/tanh (configure.ac): Likewise.
73051         * modules/y0 (configure.ac): Likewise.
73052         * modules/y1 (configure.ac): Likewise.
73053         * modules/yn (configure.ac): Likewise.
73055 2010-01-24  Bruno Haible  <bruno@clisp.org>
73057         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
73058         * tests/test-acosl.c (x): New variable.
73059         (main): Store argument in x and fetch it from x.
73060         * tests/test-asinl.c (x): New variable.
73061         (main): Store argument in x and fetch it from x.
73062         * tests/test-atanl.c (x): New variable.
73063         (main): Store argument in x and fetch it from x.
73064         * tests/test-cosl.c (x): New variable.
73065         (main): Store argument in x and fetch it from x.
73066         * tests/test-expl.c (x): New variable.
73067         (main): Store argument in x and fetch it from x.
73068         * tests/test-logl.c (x): New variable.
73069         (main): Store argument in x and fetch it from x.
73070         * tests/test-sinl.c (x): New variable.
73071         (main): Store argument in x and fetch it from x.
73072         * tests/test-sqrtl.c (x): New variable.
73073         (main): Store argument in x and fetch it from x.
73074         * tests/test-tanl.c (x): New variable.
73075         (main): Store argument in x and fetch it from x.
73077 2010-01-24  Bruno Haible  <bruno@clisp.org>
73079         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
73080         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
73081         assignments to the initial TESTS_ENVIRONMENT.
73082         * doc/gnulib.texi (Unit test modules): Document it.
73083         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
73084         TESTS_ENVIRONMENT.
73085         * modules/btowc-tests (Makefile.am): Likewise.
73086         * modules/c-stack-tests (Makefile.am): Likewise.
73087         * modules/c-strcase-tests (Makefile.am): Likewise.
73088         * modules/copy-file-tests (Makefile.am): Likewise.
73089         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
73090         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
73091         * modules/mbrtowc-tests (Makefile.am): Likewise.
73092         * modules/mbscasecmp-tests (Makefile.am): Likewise.
73093         * modules/mbscasestr-tests (Makefile.am): Likewise.
73094         * modules/mbschr-tests (Makefile.am): Likewise.
73095         * modules/mbscspn-tests (Makefile.am): Likewise.
73096         * modules/mbsinit-tests (Makefile.am): Likewise.
73097         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
73098         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
73099         * modules/mbspbrk-tests (Makefile.am): Likewise.
73100         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
73101         * modules/mbsrchr-tests (Makefile.am): Likewise.
73102         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
73103         * modules/mbsspn-tests (Makefile.am): Likewise.
73104         * modules/mbsstr-tests (Makefile.am): Likewise.
73105         * modules/nl_langinfo-tests (Makefile.am): Likewise.
73106         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
73107         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
73108         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
73109         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
73110         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
73111         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
73112         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
73113         * modules/wcrtomb-tests (Makefile.am): Likewise.
73114         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
73115         * modules/wcsrtombs-tests (Makefile.am): Likewise.
73116         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
73117         assignments from TESTS_ENVIRONMENT.
73118         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
73119         augmentation.
73120         * modules/argp-version-etc-tests (Makefile.am): Likewise.
73121         * modules/atexit-tests (Makefile.am): Likewise.
73122         * modules/binary-io-tests (Makefile.am): Likewise.
73123         * modules/closein-tests (Makefile.am): Likewise.
73124         * modules/dprintf-posix-tests (Makefile.am): Likewise.
73125         * modules/exclude-tests (Makefile.am): Likewise.
73126         * modules/fflush-tests (Makefile.am): Likewise.
73127         * modules/fpending-tests (Makefile.am): Likewise.
73128         * modules/fprintf-posix-tests (Makefile.am): Likewise.
73129         * modules/freadahead-tests (Makefile.am): Likewise.
73130         * modules/freadptr-tests (Makefile.am): Likewise.
73131         * modules/freadseek-tests (Makefile.am): Likewise.
73132         * modules/fseek-tests (Makefile.am): Likewise.
73133         * modules/fseeko-tests (Makefile.am): Likewise.
73134         * modules/ftell-tests (Makefile.am): Likewise.
73135         * modules/ftello-tests (Makefile.am): Likewise.
73136         * modules/idpriv-drop-tests (Makefile.am): Likewise.
73137         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
73138         * modules/lseek-tests (Makefile.am): Likewise.
73139         * modules/parse-duration-tests (Makefile.am): Likewise.
73140         * modules/perror-tests (Makefile.am): Likewise.
73141         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
73142         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
73143         * modules/pipe-tests (Makefile.am): Likewise.
73144         * modules/pread-tests (Makefile.am): Likewise.
73145         * modules/printf-posix-tests (Makefile.am): Likewise.
73146         * modules/select-tests (Makefile.am): Likewise.
73147         * modules/sigpipe-tests (Makefile.am): Likewise.
73148         * modules/tsearch-tests (Makefile.am): Likewise.
73149         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
73150         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
73151         * modules/uniname/uniname-tests (Makefile.am): Likewise.
73152         * modules/uniwidth/width-tests (Makefile.am): Likewise.
73153         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
73154         * modules/version-etc-tests (Makefile.am): Likewise.
73155         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
73156         * modules/vprintf-posix-tests (Makefile.am): Likewise.
73157         * modules/xalloc-die-tests (Makefile.am): Likewise.
73158         * modules/xprintf-posix-tests (Makefile.am): Likewise.
73159         * modules/xstrtoimax-tests (Makefile.am): Likewise.
73160         * modules/xstrtol-tests (Makefile.am): Likewise.
73161         * modules/xstrtoumax-tests (Makefile.am): Likewise.
73162         * modules/yesno-tests (Makefile.am): Likewise.
73163         Suggested by Jim Meyering.
73165 2010-01-24  Bruno Haible  <bruno@clisp.org>
73167         More documentation.
73168         * doc/gnulib.texi (Writing modules): New chapter.
73169         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
73170         the new chapter.
73172 2010-01-24  Jim Meyering  <meyering@redhat.com>
73174         maint.mk: do not prepend "./" after filtering
73175         * top/maint.mk (_prepend_srcdir_prefix): New variable
73176         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
73177         "./" when $(srcdir) is ".".
73179         define STREQ(a,b) consistently, removing useless parentheses
73180         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
73181         since the only risk is that "a" or "b" contains an unparenthesized
73182         comma, but if either did that, STREQ would have 3 or more arguments.
73183         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
73184         * lib/fts.c (STREQ): Remove unnecessary parentheses.
73185         * lib/hash-triple.c (STREQ): Likewise.
73186         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
73187         * lib/getugroups.c (STREQ): Likewise.
73189 2010-01-23  Jim Meyering  <meyering@redhat.com>
73191         maint.mk: fix syntax-check in a non-srcdir build directory
73192         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
73193         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
73195 2010-01-22  Jim Meyering  <meyering@redhat.com>
73197         userspec: add unit tests
73198         * tests/test-userspec.c: New file.
73199         * modules/userspec-tests: Likewise.
73201 2010-01-21  Jim Meyering  <meyering@redhat.com>
73203         maint.mk: handle source file names containing "." robustly
73204         * top/maint.mk (_dot_escaped_srcdir): Define.
73205         (VC_LIST): Use it in LHS of sed substitution.
73207 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
73209         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
73210         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
73211         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
73212         from a non-srcdir build.
73214 2010-01-20  Eric Blake  <ebb9@byu.net>
73216         warn-on-use: use instead of link-warning
73217         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
73218         * modules/unistd (Depends-on, Makefile.am): Likewise.
73219         * modules/arpa_inet (Depends-on): Replace link-warning with
73220         warn-on-use.
73221         (Makefile.am): Update rules accordingly.
73222         * modules/ctype (Depends-on, Makefile.am): Likewise.
73223         * modules/dirent (Depends-on, Makefile.am): Likewise.
73224         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
73225         * modules/inttypes (Depends-on, Makefile.am): Likewise.
73226         * modules/langinfo (Depends-on, Makefile.am): Likewise.
73227         * modules/locale (Depends-on, Makefile.am): Likewise.
73228         * modules/math (Depends-on, Makefile.am): Likewise.
73229         * modules/search (Depends-on, Makefile.am): Likewise.
73230         * modules/signal (Depends-on, Makefile.am): Likewise.
73231         * modules/spawn (Depends-on, Makefile.am): Likewise.
73232         * modules/stdlib (Depends-on, Makefile.am): Likewise.
73233         * modules/string (Depends-on, Makefile.am): Likewise.
73234         * modules/strings (Depends-on, Makefile.am): Likewise.
73235         * modules/sys_file (Depends-on, Makefile.am): Likewise.
73236         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
73237         * modules/sys_select (Depends-on, Makefile.am): Likewise.
73238         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
73239         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
73240         * modules/sys_times (Depends-on, Makefile.am): Likewise.
73241         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
73242         * modules/wchar (Depends-on, Makefile.am): Likewise.
73243         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
73244         should be poisoned.
73245         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
73246         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
73247         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
73248         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
73249         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
73250         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
73251         * m4/math_h.m4 (gl_MATH_H): Likewise.
73252         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
73253         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
73254         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
73255         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
73256         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
73257         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
73258         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
73259         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
73260         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
73261         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
73262         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
73263         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
73264         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
73265         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
73266         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
73267         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
73268         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
73269         GL_LINK_WARNING.
73270         * lib/ctype.in.h: Likewise.
73271         * lib/dirent.in.h: Likewise.
73272         * lib/fcntl.in.h: Likewise.
73273         * lib/inttypes.in.h: Likewise.
73274         * lib/langinfo.in.h: Likewise.
73275         * lib/locale.in.h: Likewise.
73276         * lib/math.in.h: Likewise.
73277         * lib/search.in.h: Likewise.
73278         * lib/signal.in.h: Likewise.
73279         * lib/spawn.in.h: Likewise.
73280         * lib/stdio.in.h: Likewise.
73281         * lib/stdlib.in.h: Likewise.
73282         * lib/string.in.h: Likewise.
73283         * lib/strings.in.h: Likewise.
73284         * lib/sys_file.in.h: Likewise.
73285         * lib/sys_ioctl.in.h: Likewise.
73286         * lib/sys_select.in.h: Likewise.
73287         * lib/sys_socket.in.h: Likewise.
73288         * lib/sys_stat.in.h: Likewise.
73289         * lib/sys_times.in.h: Likewise.
73290         * lib/sys_utsname.in.h: Likewise.
73291         * lib/unistd.in.h: Likewise.
73292         * lib/wchar.in.h: Likewise.
73294 2010-01-20  Bruno Haible  <bruno@clisp.org>
73296         Avoid duplicate -lm.
73297         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
73298         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
73299         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
73300         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
73301         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
73302         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
73303         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
73304         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
73305         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
73306         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
73307         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
73308         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
73309         Reported by Paolo Bonzini.
73311 2010-01-19  Bruno Haible  <bruno@clisp.org>
73313         langinfo, nl_langinfo: Relicense under LGPLv2+.
73314         * modules/langinfo (License): Change to LGPLv2+.
73315         * modules/nl_langinfo (License): Likewise.
73316         Patch by David Lutterkort <lutter@redhat.com>.
73318 2010-01-19  Bruno Haible  <bruno@clisp.org>
73320         Avoid compilation error with cc on OSF/1 5.1.
73321         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
73322         statement, not before.
73323         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73325 2010-01-18  Bruno Haible  <bruno@clisp.org>
73327         Avoid a link error due to the __printf__ symbol.
73328         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
73329         and 2.6.x.
73330         (__format__, __printf__): Remove definitions.
73331         * lib/argp-fmtstream.h: Likewise.
73332         * lib/argp.h: Likewise.
73333         * lib/error.h: Likewise.
73334         * lib/vasnprintf.h: Likewise.
73335         * lib/xprintf.h: Likewise.
73336         * lib/xvasprintf.h: Likewise.
73337         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73339 2010-01-18  Bruno Haible  <bruno@clisp.org>
73341         Tests for module 'tanl'.
73342         * modules/tanl-tests: New file.
73343         * tests/test-tanl.c: New file.
73345         Tests for module 'sqrtl'.
73346         * modules/sqrtl-tests: New file.
73347         * tests/test-sqrtl.c: New file.
73349         Tests for module 'sinl'.
73350         * modules/sinl-tests: New file.
73351         * tests/test-sinl.c: New file.
73353         Tests for module 'logl'.
73354         * modules/logl-tests: New file.
73355         * tests/test-logl.c: New file.
73357         Tests for module 'expl'.
73358         * modules/expl-tests: New file.
73359         * tests/test-expl.c: New file.
73361         Tests for module 'cosl'.
73362         * modules/cosl-tests: New file.
73363         * tests/test-cosl.c: New file.
73365         Tests for module 'atanl'.
73366         * modules/atanl-tests: New file.
73367         * tests/test-atanl.c: New file.
73369         Tests for module 'asinl'.
73370         * modules/asinl-tests: New file.
73371         * tests/test-asinl.c: New file.
73373         Tests for module 'acosl'.
73374         * modules/acosl-tests: New file.
73375         * tests/test-acosl.c: New file.
73377         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
73378         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
73379         tanl): Use the standard gnulib idiom.
73380         * lib/cosl.c: Don't include trigl.c and sincosl.c.
73381         * lib/sinl.c: Likewise.
73382         * lib/tanl.c: Don't include trigl.c.
73383         (kernel_tanl): Make static.
73384         * lib/sincosl.c: Include trigl.h first.
73385         * lib/trigl.c: Likewise.
73386         * m4/acosl.m4: New file.
73387         * m4/asinl.m4: New file.
73388         * m4/atanl.m4: New file.
73389         * m4/cosl.m4: New file.
73390         * m4/expl.m4: New file.
73391         * m4/logl.m4: New file.
73392         * m4/sinl.m4: New file.
73393         * m4/sqrtl.m4: New file.
73394         * m4/tanl.m4: New file.
73395         * m4/mathl.m4: Remove file.
73396         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
73397         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
73398         Don't initialize GNULIB_MATHL.
73399         * modules/acosl: New file.
73400         * modules/asinl: New file.
73401         * modules/atanl: New file.
73402         * modules/cosl: New file.
73403         * modules/expl: New file.
73404         * modules/logl: New file.
73405         * modules/sinl: New file.
73406         * modules/sqrtl: New file.
73407         * modules/tanl: New file.
73408         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
73409         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
73410         substitute GNULIB_MATHL.
73411         * modules/mathl: Rewritten.
73412         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
73413         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
73414         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
73415         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
73416         * doc/posix-functions/expl.texi: Mention the 'expl' module.
73417         * doc/posix-functions/logl.texi: Mention the 'logl' module.
73418         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
73419         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
73420         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
73422 2010-01-18  Bruno Haible  <bruno@clisp.org>
73424         sqrt: Make gl_FUNC_SQRT requirable.
73425         * m4/sqrt.m4: New file.
73426         * modules/sqrt (Files): Add it.
73427         (configure.ac): Invoke gl_FUNC_SQRT.
73429 2010-01-18  Bruno Haible  <bruno@clisp.org>
73431         New modules for common <math.h> functions.
73432         * m4/mathfunc.m4: New file.
73433         * modules/acos: New file.
73434         * modules/asin: New file.
73435         * modules/atan: New file.
73436         * modules/atan2: New file.
73437         * modules/cbrt: New file.
73438         * modules/copysign: New file.
73439         * modules/cos: New file.
73440         * modules/cosh: New file.
73441         * modules/erf: New file.
73442         * modules/erfc: New file.
73443         * modules/exp: New file.
73444         * modules/fabs: New file.
73445         * modules/fmod: New file.
73446         * modules/hypot: New file.
73447         * modules/j0: New file.
73448         * modules/j1: New file.
73449         * modules/jn: New file.
73450         * modules/ldexp: New file.
73451         * modules/lgamma: New file.
73452         * modules/log: New file.
73453         * modules/log10: New file.
73454         * modules/log1p: New file.
73455         * modules/logb: New file.
73456         * modules/modf: New file.
73457         * modules/nextafter: New file.
73458         * modules/pow: New file.
73459         * modules/remainder: New file.
73460         * modules/rint: New file.
73461         * modules/sin: New file.
73462         * modules/sinh: New file.
73463         * modules/sqrt: New file.
73464         * modules/tan: New file.
73465         * modules/tanh: New file.
73466         * modules/y0: New file.
73467         * modules/y1: New file.
73468         * modules/yn: New file.
73469         * doc/posix-functions/acos.texi: Mention the 'acos' module.
73470         * doc/posix-functions/asin.texi: Mention the 'asin' module.
73471         * doc/posix-functions/atan.texi: Mention the 'atan' module.
73472         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
73473         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
73474         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
73475         * doc/posix-functions/cos.texi: Mention the 'cos' module.
73476         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
73477         * doc/posix-functions/erf.texi: Mention the 'erf' module.
73478         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
73479         * doc/posix-functions/exp.texi: Mention the 'exp' module.
73480         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
73481         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
73482         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
73483         * doc/posix-functions/j0.texi: Mention the 'j0' module.
73484         * doc/posix-functions/j1.texi: Mention the 'j1' module.
73485         * doc/posix-functions/jn.texi: Mention the 'jn' module.
73486         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
73487         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
73488         * doc/posix-functions/log.texi: Mention the 'log' module.
73489         * doc/posix-functions/log10.texi: Mention the 'log10' module.
73490         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
73491         * doc/posix-functions/logb.texi: Mention the 'logb' module.
73492         * doc/posix-functions/modf.texi: Mention the 'modf' module.
73493         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
73494         * doc/posix-functions/pow.texi: Mention the 'pow' module.
73495         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
73496         * doc/posix-functions/rint.texi: Mention the 'rint' module.
73497         * doc/posix-functions/sin.texi: Mention the 'sin' module.
73498         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
73499         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
73500         * doc/posix-functions/tan.texi: Mention the 'tan' module.
73501         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
73502         * doc/posix-functions/y0.texi: Mention the 'y0' module.
73503         * doc/posix-functions/y1.texi: Mention the 'y1' module.
73504         * doc/posix-functions/yn.texi: Mention the 'yn' module.
73506 2010-01-18  Jim Meyering  <meyering@redhat.com>
73508         ignore-value: relax license to LGPLv2+
73509         * modules/ignore-value (License): Relax to LGPLv2+.
73511         getdate: don't leak when TZ contains two or more '"'s
73512         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
73513         double quote in TZ after the first one.
73515         readtokens: do not leak internal token_lengths buffer
73516         * lib/readtokens.c (readtokens): Free the local, lengths,
73517         when the supplied "token_lengths" parameter is NULL.
73519 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73521         Fix a couple of missing LIBTHREAD link failures on AIX.
73522         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
73523         $(LIBTHREAD).
73524         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
73526         Link test-poll against INET_PTON_LIB.
73527         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
73528         for inet_pton on Solaris 10.
73530 2010-01-17  Bruno Haible  <bruno@clisp.org>
73532         unistdio/*-sprintf: Fix typo in module description.
73533         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
73534         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
73535         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
73536         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
73537         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
73538         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
73539         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
73540         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73542 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73544         gnulib-tool: fix filelist for AIX, HP-UX ksh.
73545         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
73546         variables in shell case patterns, for AIX and HP-UX ksh.
73548         Split large sed scripts, for HP-UX sed.
73549         * modules/stdio: Split sed scripts around 50 sed commands,
73550         to avoid HP-UX limit of 99 commands, in the near future.
73551         * modules/string: Likewise.
73552         * modules/unistd: Likewise.
73554         gnulib-tool: avoid writing in the current directory.
73555         * gnulib-tool (func_emit_lib_Makefile_am)
73556         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
73557         not in the current directory, so concurrent gnulib-tool
73558         instances do not interfere.
73560 2010-01-16  Jim Meyering  <meyering@redhat.com>
73562         doc: update users.txt
73563         * users.txt: Add grep.
73564         (diffutils, gzip): Update URLs.
73566 2010-01-12  Bruno Haible  <bruno@clisp.org>
73568         posix_spawn: Avoid test failure on Cygwin.
73569         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
73570         characters.
73571         Reported by Simon Josefsson.
73573 2010-01-12  Bruno Haible  <bruno@clisp.org>
73575         * tests/test-cond.c (main): When skipping the test, show the reason.
73577 2010-01-12  Simon Josefsson  <simon@josefsson.org>
73579         * lib/striconv.c (str_cd_iconv): Avoid if before free.
73581 2010-01-12  Simon Josefsson  <simon@josefsson.org>
73583         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
73584         VC_LIST_ALWAYS_EXCLUDE_REGEX.
73586 2010-01-12  Eric Blake  <ebb9@byu.net>
73588         build: guarantee AS_VAR_IF
73589         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
73590         (gl_AS_VAR_IF): Move...
73591         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
73592         Reported by Simon Josefsson.
73594 2010-01-12  Simon Josefsson  <simon@josefsson.org>
73596         * lib/stdio.in.h: Fix typo.
73598 2010-01-12  Simon Josefsson  <simon@josefsson.org>
73600         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
73601         libgpg-error.
73603 2010-01-12  Simon Josefsson  <simon@josefsson.org>
73605         * tests/test-xalloc-die.sh: Use $EXEEXT.
73607 2010-01-12  Simon Josefsson  <simon@josefsson.org>
73608             Bruno Haible  <bruno@clisp.org>
73610         getlogin, getlogin_r: Avoid test failure.
73611         * tests/test-getlogin.c: Include <stdio.h>.
73612         (main): Skip the test when the function fails because stdin is not a
73613         tty.
73614         * tests/test-getlogin_r.c: Include <stdio.h>.
73615         (main): Skip the test when the function fails because stdin is not a
73616         tty.
73618 2010-01-11  Eric Blake  <ebb9@byu.net>
73620         tests: avoid more large file warnings
73621         * tests/test-fflush.c: Avoid warning about ftell use.
73622         * tests/test-fseek.c: Avoid warning about fseek use.
73624 2010-01-10  Bruno Haible  <bruno@clisp.org>
73626         nproc: Work better on Linux when /proc and /sys are not mounted.
73627         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
73628         as lower bound when, on glibc/Linux systems,
73629         sysconf (_SC_NPROCESSORS_CONF) returns 1.
73630         Suggested by Pádraig Brady <P@draigbrady.com>.
73631         Reported by Dmitry V. Levin <ldv@altlinux.org>.
73633         nproc: Refactor.
73634         * lib/nproc.c (num_processors_via_affinity_mask): New function,
73635         extracted from num_processors.
73636         (num_processors): Call it.
73638 2010-01-11  Jim Meyering  <meyering@redhat.com>
73640         utimecmp: avoid new warning from upcoming gcc-4.5.0
73641         * lib/utimecmp.c (BILLION): Define using #define rather than an
73642         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
73644 2010-01-11  Eric Blake  <ebb9@byu.net>
73646         math: add portability warnings for classification macros
73647         * modules/math (Depends-on): Add warn-on-use.
73648         (Makefile.am): Provide new substitutions.
73649         * m4/math_h.m4 (gl_MATH_H): Require inline.
73650         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
73651         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
73652         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
73653         implement warnings.
73655         unistd: warn on use of environ without module
73656         * modules/unistd (Depends-on): Add warn-on-use.
73657         (Makefile.am): Provide new substitutions.
73658         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
73659         * lib/unistd.in.h (environ): Wrap with a warning helper function.
73661         stdio: warn on suspicious uses
73662         * modules/stdio (Depends-on): Add warn-on-use.
73663         (Makefile.am): Provide new substitutions.
73664         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
73665         fseeko.
73666         * lib/stdio.in.h (gets): Always warn on use.
73667         (fseek, ftell): Adjust when warnings are issued, and honor
73668         _GL_NO_LARGE_FILES as a way to silence the warning.
73669         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
73670         any warning about large file offsets.
73671         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
73672         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
73673         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
73674         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
73675         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
73676         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
73677         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
73678         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
73680         warn-on-use: new module
73681         * modules/warn-on-use: New file.
73682         * build-aux/warn-on-use.h: Likewise.
73683         * m4/warn-on-use.m4: Likewise.
73684         * MODULES.html.sh (Support for building): Mention it.
73686 2010-01-10  Bruno Haible  <bruno@clisp.org>
73688         Tests for module 'unistr/u32-strdup'.
73689         * modules/unistr/u32-strdup-tests: New file.
73690         * tests/unistr/test-u32-strdup.c: New file.
73692         Tests for module 'unistr/u16-strdup'.
73693         * modules/unistr/u16-strdup-tests: New file.
73694         * tests/unistr/test-u16-strdup.c: New file.
73696         Tests for module 'unistr/u8-strdup'.
73697         * modules/unistr/u8-strdup-tests: New file.
73698         * tests/unistr/test-u8-strdup.c: New file.
73699         * tests/unistr/test-strdup.h: New file.
73701         Tests for module 'unistr/u32-strncmp'.
73702         * modules/unistr/u32-strncmp-tests: New file.
73703         * tests/unistr/test-u32-strncmp.c: New file.
73705         Tests for module 'unistr/u16-strncmp'.
73706         * modules/unistr/u16-strncmp-tests: New file.
73707         * tests/unistr/test-u16-strncmp.c: New file.
73709         Tests for module 'unistr/u8-strncmp'.
73710         * modules/unistr/u8-strncmp-tests: New file.
73711         * tests/unistr/test-u8-strncmp.c: New file.
73712         * tests/unistr/test-strncmp.h: New file.
73714         Tests for module 'unistr/u32-strcoll'.
73715         * modules/unistr/u32-strcoll-tests: New file.
73716         * tests/unistr/test-u32-strcoll.c: New file.
73718         Tests for module 'unistr/u16-strcoll'.
73719         * modules/unistr/u16-strcoll-tests: New file.
73720         * tests/unistr/test-u16-strcoll.c: New file.
73722         Tests for module 'unistr/u8-strcoll'.
73723         * modules/unistr/u8-strcoll-tests: New file.
73724         * tests/unistr/test-u8-strcoll.c: New file.
73726         Tests for module 'unistr/u32-strcmp'.
73727         * modules/unistr/u32-strcmp-tests: New file.
73728         * tests/unistr/test-u32-strcmp.c: New file.
73729         * tests/unistr/test-u32-strcmp.h: New file.
73731         Tests for module 'unistr/u16-strcmp'.
73732         * modules/unistr/u16-strcmp-tests: New file.
73733         * tests/unistr/test-u16-strcmp.c: New file.
73734         * tests/unistr/test-u16-strcmp.h: New file.
73736         Tests for module 'unistr/u8-strcmp'.
73737         * modules/unistr/u8-strcmp-tests: New file.
73738         * tests/unistr/test-u8-strcmp.c: New file.
73739         * tests/unistr/test-u8-strcmp.h: New file.
73740         * tests/unistr/test-strcmp.h: New file.
73742         Tests for module 'unistr/u32-strncat'.
73743         * modules/unistr/u32-strncat-tests: New file.
73744         * tests/unistr/test-u32-strncat.c: New file.
73746         Tests for module 'unistr/u16-strncat'.
73747         * modules/unistr/u16-strncat-tests: New file.
73748         * tests/unistr/test-u16-strncat.c: New file.
73750         Tests for module 'unistr/u8-strncat'.
73751         * modules/unistr/u8-strncat-tests: New file.
73752         * tests/unistr/test-u8-strncat.c: New file.
73753         * tests/unistr/test-strncat.h: New file.
73755         Tests for module 'unistr/u32-strcat'.
73756         * modules/unistr/u32-strcat-tests: New file.
73757         * tests/unistr/test-u32-strcat.c: New file.
73759         Tests for module 'unistr/u16-strcat'.
73760         * modules/unistr/u16-strcat-tests: New file.
73761         * tests/unistr/test-u16-strcat.c: New file.
73763         Tests for module 'unistr/u8-strcat'.
73764         * modules/unistr/u8-strcat-tests: New file.
73765         * tests/unistr/test-u8-strcat.c: New file.
73766         * tests/unistr/test-strcat.h: New file.
73768         Tests for module 'unistr/u32-stpncpy'.
73769         * modules/unistr/u32-stpncpy-tests: New file.
73770         * tests/unistr/test-u32-stpncpy.c: New file.
73772         Tests for module 'unistr/u16-stpncpy'.
73773         * modules/unistr/u16-stpncpy-tests: New file.
73774         * tests/unistr/test-u16-stpncpy.c: New file.
73776         Tests for module 'unistr/u8-stpncpy'.
73777         * modules/unistr/u8-stpncpy-tests: New file.
73778         * tests/unistr/test-u8-stpncpy.c: New file.
73779         * tests/unistr/test-stpncpy.h: New file.
73781         Tests for module 'unistr/u32-strncpy'.
73782         * modules/unistr/u32-strncpy-tests: New file.
73783         * tests/unistr/test-u32-strncpy.c: New file.
73785         Tests for module 'unistr/u16-strncpy'.
73786         * modules/unistr/u16-strncpy-tests: New file.
73787         * tests/unistr/test-u16-strncpy.c: New file.
73789         Tests for module 'unistr/u8-strncpy'.
73790         * modules/unistr/u8-strncpy-tests: New file.
73791         * tests/unistr/test-u8-strncpy.c: New file.
73792         * tests/unistr/test-strncpy.h: New file.
73794         Tests for module 'unistr/u32-stpcpy'.
73795         * modules/unistr/u32-stpcpy-tests: New file.
73796         * tests/unistr/test-u32-stpcpy.c: New file.
73798         Tests for module 'unistr/u16-stpcpy'.
73799         * modules/unistr/u16-stpcpy-tests: New file.
73800         * tests/unistr/test-u16-stpcpy.c: New file.
73802         Tests for module 'unistr/u8-stpcpy'.
73803         * modules/unistr/u8-stpcpy-tests: New file.
73804         * tests/unistr/test-u8-stpcpy.c: New file.
73805         * tests/unistr/test-stpcpy.h: New file.
73807         Tests for module 'unistr/u32-strcpy'.
73808         * modules/unistr/u32-strcpy-tests: New file.
73809         * tests/unistr/test-u32-strcpy.c: New file.
73811         Tests for module 'unistr/u16-strcpy'.
73812         * modules/unistr/u16-strcpy-tests: New file.
73813         * tests/unistr/test-u16-strcpy.c: New file.
73815         Tests for module 'unistr/u8-strcpy'.
73816         * modules/unistr/u8-strcpy-tests: New file.
73817         * tests/unistr/test-u8-strcpy.c: New file.
73818         * tests/unistr/test-strcpy.h: New file.
73820         Tests for module 'unistr/u32-strnlen'.
73821         * modules/unistr/u32-strnlen-tests: New file.
73822         * tests/unistr/test-u32-strnlen.c: New file.
73824         Tests for module 'unistr/u16-strnlen'.
73825         * modules/unistr/u16-strnlen-tests: New file.
73826         * tests/unistr/test-u16-strnlen.c: New file.
73828         Tests for module 'unistr/u8-strnlen'.
73829         * modules/unistr/u8-strnlen-tests: New file.
73830         * tests/unistr/test-u8-strnlen.c: New file.
73831         * tests/unistr/test-strnlen.h: New file.
73833         Tests for module 'unistr/u32-strlen'.
73834         * modules/unistr/u32-strlen-tests: New file.
73835         * tests/unistr/test-u32-strlen.c: New file.
73837         Tests for module 'unistr/u16-strlen'.
73838         * modules/unistr/u16-strlen-tests: New file.
73839         * tests/unistr/test-u16-strlen.c: New file.
73841         Tests for module 'unistr/u8-strlen'.
73842         * modules/unistr/u8-strlen-tests: New file.
73843         * tests/unistr/test-u8-strlen.c: New file.
73845         Tests for module 'unistr/u32-prev'.
73846         * modules/unistr/u32-prev-tests: New file.
73847         * tests/unistr/test-u32-prev.c: New file.
73849         Tests for module 'unistr/u16-prev'.
73850         * modules/unistr/u16-prev-tests: New file.
73851         * tests/unistr/test-u16-prev.c: New file.
73853         Tests for module 'unistr/u8-prev'.
73854         * modules/unistr/u8-prev-tests: New file.
73855         * tests/unistr/test-u8-prev.c: New file.
73857         Tests for module 'unistr/u32-next'.
73858         * modules/unistr/u32-next-tests: New file.
73859         * tests/unistr/test-u32-next.c: New file.
73861         Tests for module 'unistr/u16-next'.
73862         * modules/unistr/u16-next-tests: New file.
73863         * tests/unistr/test-u16-next.c: New file.
73865         Tests for module 'unistr/u8-next'.
73866         * modules/unistr/u8-next-tests: New file.
73867         * tests/unistr/test-u8-next.c: New file.
73869         Tests for module 'unistr/u32-strmbtouc'.
73870         * modules/unistr/u32-strmbtouc-tests: New file.
73871         * tests/unistr/test-u32-strmbtouc.c: New file.
73873         Tests for module 'unistr/u16-strmbtouc'.
73874         * modules/unistr/u16-strmbtouc-tests: New file.
73875         * tests/unistr/test-u16-strmbtouc.c: New file.
73877         Tests for module 'unistr/u8-strmbtouc'.
73878         * modules/unistr/u8-strmbtouc-tests: New file.
73879         * tests/unistr/test-u8-strmbtouc.c: New file.
73881         Tests for module 'unistr/u32-strmblen'.
73882         * modules/unistr/u32-strmblen-tests: New file.
73883         * tests/unistr/test-u32-strmblen.c: New file.
73885         Tests for module 'unistr/u16-strmblen'.
73886         * modules/unistr/u16-strmblen-tests: New file.
73887         * tests/unistr/test-u16-strmblen.c: New file.
73889         Tests for module 'unistr/u8-strmblen'.
73890         * modules/unistr/u8-strmblen-tests: New file.
73891         * tests/unistr/test-u8-strmblen.c: New file.
73893         Tests for module 'unistr/u32-cpy-alloc'.
73894         * modules/unistr/u32-cpy-alloc-tests: New file.
73895         * tests/unistr/test-u32-cpy-alloc.c: New file.
73897         Tests for module 'unistr/u16-cpy-alloc'.
73898         * modules/unistr/u16-cpy-alloc-tests: New file.
73899         * tests/unistr/test-u16-cpy-alloc.c: New file.
73901         Tests for module 'unistr/u8-cpy-alloc'.
73902         * modules/unistr/u8-cpy-alloc-tests: New file.
73903         * tests/unistr/test-u8-cpy-alloc.c: New file.
73904         * tests/unistr/test-cpy-alloc.h: New file.
73906         Tests for module 'unistr/u32-mbsnlen'.
73907         * modules/unistr/u32-mbsnlen-tests: New file.
73908         * tests/unistr/test-u32-mbsnlen.c: New file.
73910         Tests for module 'unistr/u16-mbsnlen'.
73911         * modules/unistr/u16-mbsnlen-tests: New file.
73912         * tests/unistr/test-u16-mbsnlen.c: New file.
73914         Tests for module 'unistr/u8-mbsnlen'.
73915         * modules/unistr/u8-mbsnlen-tests: New file.
73916         * tests/unistr/test-u8-mbsnlen.c: New file.
73918         Tests for module 'unistr/u32-chr'.
73919         * modules/unistr/u32-chr-tests: New file.
73920         * tests/unistr/test-u32-chr.c: New file.
73922         Tests for module 'unistr/u16-chr'.
73923         * modules/unistr/u16-chr-tests: New file.
73924         * tests/unistr/test-u16-chr.c: New file.
73926         Tests for module 'unistr/u8-chr'.
73927         * modules/unistr/u8-chr-tests: New file.
73928         * tests/unistr/test-u8-chr.c: New file.
73929         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
73931         Tests for module 'unistr/u32-cmp2'.
73932         * modules/unistr/u32-cmp2-tests: New file.
73933         * tests/unistr/test-u32-cmp2.c: New file.
73935         Tests for module 'unistr/u16-cmp2'.
73936         * modules/unistr/u16-cmp2-tests: New file.
73937         * tests/unistr/test-u16-cmp2.c: New file.
73939         Tests for module 'unistr/u8-cmp2'.
73940         * modules/unistr/u8-cmp2-tests: New file.
73941         * tests/unistr/test-u8-cmp2.c: New file.
73942         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
73944         Tests for module 'unistr/u32-cmp'.
73945         * modules/unistr/u32-cmp-tests: New file.
73946         * tests/unistr/test-u32-cmp.c: New file.
73948         Tests for module 'unistr/u16-cmp'.
73949         * modules/unistr/u16-cmp-tests: New file.
73950         * tests/unistr/test-u16-cmp.c: New file.
73952         Tests for module 'unistr/u8-cmp'.
73953         * modules/unistr/u8-cmp-tests: New file.
73954         * tests/unistr/test-u8-cmp.c: New file.
73955         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
73957         Tests for module 'unistr/u32-set'.
73958         * modules/unistr/u32-set-tests: New file.
73959         * tests/unistr/test-u32-set.c: New file.
73961         Tests for module 'unistr/u16-set'.
73962         * modules/unistr/u16-set-tests: New file.
73963         * tests/unistr/test-u16-set.c: New file.
73965         Tests for module 'unistr/u8-set'.
73966         * modules/unistr/u8-set-tests: New file.
73967         * tests/unistr/test-u8-set.c: New file.
73968         * tests/unistr/test-set.h: New file.
73970         Tests for module 'unistr/u32-move'.
73971         * modules/unistr/u32-move-tests: New file.
73972         * tests/unistr/test-u32-move.c: New file.
73974         Tests for module 'unistr/u16-move'.
73975         * modules/unistr/u16-move-tests: New file.
73976         * tests/unistr/test-u16-move.c: New file.
73978         Tests for module 'unistr/u8-move'.
73979         * modules/unistr/u8-move-tests: New file.
73980         * tests/unistr/test-u8-move.c: New file.
73981         * tests/unistr/test-move.h: New file.
73983         Tests for module 'unistr/u32-cpy'.
73984         * modules/unistr/u32-cpy-tests: New file.
73985         * tests/unistr/test-u32-cpy.c: New file.
73987         Tests for module 'unistr/u16-cpy'.
73988         * modules/unistr/u16-cpy-tests: New file.
73989         * tests/unistr/test-u16-cpy.c: New file.
73991         Tests for module 'unistr/u8-cpy'.
73992         * modules/unistr/u8-cpy-tests: New file.
73993         * tests/unistr/test-u8-cpy.c: New file.
73994         * tests/unistr/test-cpy.h: New file.
73996 2010-01-09  Bruno Haible  <bruno@clisp.org>
73998         Tests for module 'unistr/u32-uctomb'.
73999         * modules/unistr/u32-uctomb-tests: New file.
74000         * tests/unistr/test-u32-uctomb.c: New file.
74002         Tests for module 'unistr/u16-uctomb'.
74003         * modules/unistr/u16-uctomb-tests: New file.
74004         * tests/unistr/test-u16-uctomb.c: New file.
74006         Tests for module 'unistr/u8-uctomb'.
74007         * modules/unistr/u8-uctomb-tests: New file.
74008         * tests/unistr/test-u8-uctomb.c: New file.
74010         Tests for module 'unistr/u32-mbtoucr'.
74011         * modules/unistr/u32-mbtoucr-tests: New file.
74012         * tests/unistr/test-u32-mbtoucr.c: New file.
74014         Tests for module 'unistr/u16-mbtoucr'.
74015         * modules/unistr/u16-mbtoucr-tests: New file.
74016         * tests/unistr/test-u16-mbtoucr.c: New file.
74018         Tests for module 'unistr/u8-mbtoucr'.
74019         * modules/unistr/u8-mbtoucr-tests: New file.
74020         * tests/unistr/test-u8-mbtoucr.c: New file.
74022         Tests for module 'unistr/u32-mbtouc'.
74023         * modules/unistr/u32-mbtouc-tests: New file.
74024         * tests/unistr/test-u32-mbtouc.c: New file.
74026         Tests for module 'unistr/u16-mbtouc'.
74027         * modules/unistr/u16-mbtouc-tests: New file.
74028         * tests/unistr/test-u16-mbtouc.c: New file.
74030         Tests for module 'unistr/u8-mbtouc'.
74031         * modules/unistr/u8-mbtouc-tests: New file.
74032         * tests/unistr/test-u8-mbtouc.c: New file.
74034         Tests for module 'unistr/u32-mbtouc-unsafe'.
74035         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
74036         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
74037         * tests/unistr/test-u32-mbtouc.h: New file.
74039         Tests for module 'unistr/u16-mbtouc-unsafe'.
74040         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
74041         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
74042         * tests/unistr/test-u16-mbtouc.h: New file.
74044         Tests for module 'unistr/u8-mbtouc-unsafe'.
74045         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
74046         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
74047         * tests/unistr/test-u8-mbtouc.h: New file.
74049         Tests for module 'unistr/u32-mblen'.
74050         * modules/unistr/u32-mblen-tests: New file.
74051         * tests/unistr/test-u32-mblen.c: New file.
74053         Tests for module 'unistr/u16-mblen'.
74054         * modules/unistr/u16-mblen-tests: New file.
74055         * tests/unistr/test-u16-mblen.c: New file.
74057         Tests for module 'unistr/u8-mblen'.
74058         * modules/unistr/u8-mblen-tests: New file.
74059         * tests/unistr/test-u8-mblen.c: New file.
74061         Tests for module 'unistr/u32-to-u16'.
74062         * modules/unistr/u32-to-u16-tests: New file.
74063         * tests/unistr/test-u32-to-u16.c: New file.
74065         Tests for module 'unistr/u32-to-u8'.
74066         * modules/unistr/u32-to-u8-tests: New file.
74067         * tests/unistr/test-u32-to-u8.c: New file.
74069         Tests for module 'unistr/u16-to-u32'.
74070         * modules/unistr/u16-to-u32-tests: New file.
74071         * tests/unistr/test-u16-to-u32.c: New file.
74073         Tests for module 'unistr/u16-to-u8'.
74074         * modules/unistr/u16-to-u8-tests: New file.
74075         * tests/unistr/test-u16-to-u8.c: New file.
74077         Tests for module 'unistr/u8-to-u32'.
74078         * modules/unistr/u8-to-u32-tests: New file.
74079         * tests/unistr/test-u8-to-u32.c: New file.
74081         Tests for module 'unistr/u8-to-u16'.
74082         * modules/unistr/u8-to-u16-tests: New file.
74083         * tests/unistr/test-u8-to-u16.c: New file.
74085         Tests for module 'unistr/u32-check'.
74086         * modules/unistr/u32-check-tests: New file.
74087         * tests/unistr/test-u32-check.c: New file.
74089         Tests for module 'unistr/u16-check'.
74090         * modules/unistr/u16-check-tests: New file.
74091         * tests/unistr/test-u16-check.c: New file.
74093         Tests for module 'unistr/u8-check'.
74094         * modules/unistr/u8-check-tests: New file.
74095         * tests/unistr/test-u8-check.c: New file.
74097         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
74098         (category_equals): New function.
74099         (main): Add more tests.
74100         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
74102         * tests/unictype/test-bidi_byname.c (main): Add more tests.
74104 2010-01-10  Bruno Haible  <bruno@clisp.org>
74106         unistr/u*-strcoll: Try harder to distinguish different strings.
74107         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
74108         compare s1 and s2 to see if they are different.
74110 2010-01-10  Bruno Haible  <bruno@clisp.org>
74112         unistr/u*-stpncpy: Fix the return value.
74113         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
74114         description of the return value consistent with stpncpy in glibc.
74115         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
74116         written non-NUL unit.
74118 2010-01-10  Bruno Haible  <bruno@clisp.org>
74120         unistr/u*-next: Add missing dependencies.
74121         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
74122         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
74123         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
74125 2010-01-10  Bruno Haible  <bruno@clisp.org>
74127         unistr/u8-mbsnlen: Fix return value for incomplete character.
74128         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
74129         u8_mblen.
74130         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
74131         Remove unistr/u8-mblen.
74132         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
74133         u16_mblen.
74134         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
74135         Remove unistr/u16-mblen.
74137 2010-01-10  Bruno Haible  <bruno@clisp.org>
74139         wchar: Fix compilation error when <wchar.h> is used from coreutils.
74140         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
74141         Reported by Brian Gough <bjg@gnu.org> and
74142         Chris Clayton <chris2553@googlemail.com> via
74143         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
74145 2010-01-09  Bruno Haible  <bruno@clisp.org>
74147         unistr/u16-to-u32: Reject invalid input.
74148         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
74149         u16_mbtouc.
74150         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
74151         Remove unistr/u16-mbtouc.
74153         unistr/u16-to-u8: Reject invalid input.
74154         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
74155         u16_mbtouc.
74156         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
74157         Remove unistr/u16-mbtouc.
74159         unistr/u8-to-u32: Reject invalid input.
74160         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
74161         u8_mbtouc.
74162         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
74163         Remove unistr/u8-mbtouc.
74165         unistr/u8-to-u16: Reject invalid input.
74166         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
74167         u8_mbtouc.
74168         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
74169         Remove unistr/u8-mbtouc.
74171 2010-01-09  Bruno Haible  <bruno@clisp.org>
74173         Tests for module 'getlogin'.
74174         * modules/getlogin-tests: New file.
74175         * tests/test-getlogin.c: New file.
74177         New module 'getlogin'.
74178         * lib/unistd.in.h (getlogin): New declaration.
74179         * lib/getlogin.c: New file.
74180         * m4/getlogin.m4: New file.
74181         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
74182         HAVE_GETLOGIN.
74183         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
74184         HAVE_GETLOGIN.
74185         * modules/getlogin: New file.
74186         * doc/posix-functions/getlogin.texi: Mention the new module.
74187         Reported by John W. Eaton <jwe@gnu.org>.
74189 2010-01-09  Bruno Haible  <bruno@clisp.org>
74191         getlogin_r: Support for native Windows.
74192         * lib/getlogin_r.c: Include <windows.h>
74193         (getlogin_r): Implement for native Windows.
74194         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
74195         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
74196         via John W. Eaton <jwe@gnu.org>.
74198 2010-01-09  Bruno Haible  <bruno@clisp.org>
74200         getlogin_r: Small fixes.
74201         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
74202         succeeds.
74203         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
74204         before testing whether getlogin_r is declared. No need to set
74205         HAVE_DECL_GETLOGIN_R to 1.
74206         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
74208 2010-01-09  Bruno Haible  <bruno@clisp.org>
74210         * lib/unistd.in.h (getlogin_r): Add comment.
74212 2010-01-09  Bruno Haible  <bruno@clisp.org>
74214         Tests for module 'getlogin_r'.
74215         * modules/getlogin_r-tests: New file.
74216         * tests/test-getlogin_r.c: New file.
74218 2010-01-09  Jim Meyering  <meyering@redhat.com>
74220         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
74221         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
74222         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
74224 2010-01-08  Simon Josefsson  <simon@josefsson.org>
74226         * lib/dup2.c (rpl_dup2): Improve comment.
74228 2010-01-08  Eric Blake  <ebb9@byu.net>
74230         maint.mk: allow packages to add makefile @@ exceptions
74231         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
74232         (sc_makefile_check): Rename...
74233         (sc_makefile_at_at_check): ...to this, and use hook.
74235         dup2: work around mingw bug
74236         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
74237         Reported by Simon Josefsson.
74239 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
74241         glob: Fix C++ compilation.
74242         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
74243         C++.
74245 2010-01-07  Bruno Haible  <bruno@clisp.org>
74247         Fix indentation of wctype.in.h, broken since 2007-01-06.
74248         * lib/wctype.in.h: Fix indentation of preprocessor directives.
74250 2010-01-07  Bruno Haible  <bruno@clisp.org>
74252         mbslen: Avoid collision with system function.
74253         * lib/string.in.h [MirBSD]: Include <wchar.h>.
74254         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
74255         * m4/mbslen.m4: New file.
74256         * modules/mbslen (Files): Add it.
74257         (configure.ac): Invoke gl_MBSLEN.
74258         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
74259         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
74260         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
74261         via Ian Beckwith <ianb@erislabs.net>.
74263 2010-01-07  Bruno Haible  <bruno@clisp.org>
74265         dirent: Document the last fix.
74266         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
74268 2010-01-07  Bruno Haible  <bruno@clisp.org>
74270         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
74271         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
74272         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
74273         va_list are defined.
74274         * doc/posix-headers/stdio.texi: Document the bug of missing types.
74275         Reported by Eric Blake.
74277 2010-01-07  Bruno Haible  <bruno@clisp.org>
74279         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
74280         * modules/xlist (Depends-on): Add 'list',
74281         * modules/xoset (Depends-on): Add 'oset'.
74282         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74284 2010-01-07  Bruno Haible  <bruno@clisp.org>
74286         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
74287         * doc/posix-functions/strncasecmp.texi: Likewise.
74289 2010-01-07  Bruno Haible  <bruno@clisp.org>
74291         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
74293 2010-01-07  John W. Eaton  <jwe@octave.org>
74295         wctype: allow C++ use
74296         * lib/wctype.in.h: Add extern "C" block for C++.
74298 2010-01-06  Eric Blake  <ebb9@byu.net>
74300         maint.mk: detect incorrect GFDL usage
74301         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
74303 2010-01-06  Jim Meyering  <meyering@redhat.com>
74304         and Eric Blake  <ebb9@byu.net>
74306         maint.mk: ignore multi-line copyright in NEWS
74307         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
74309 2010-01-06  Eric Blake  <ebb9@byu.net>
74311         select: add missing dependency
74312         * modules/select-tests (Depends-on): Move sockets dependency...
74313         * modules/select (Depends-on): ...here.
74314         Reported by Ian Beckwith.
74316         doc: regenerate INSTALL
74317         * doc/INSTALL: Reflect recent autoconf update.
74318         * doc/INSTALL.ISO: Likewise.
74319         * doc/INSTALL.UTF-8: Likewise.
74321         pread: fix compilation on glibc
74322         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
74323         Reported by Ralf Wildenhues.
74325         dirent: fix test failure
74326         * lib/dirent.in.h (includes): Guarantee ino_t.
74327         Reported by Ralf Wildenhues.
74329 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
74331         linkat, renameat: avoid bad free
74332         * lib/at-func2.c (at_func2): Fix typo.
74333         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
74335 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74337         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
74338         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
74339         to avoid failure of symlink test later.
74341 2010-01-06  Eric Blake  <ebb9@byu.net>
74343         stdio, unistd: guarantee ssize_t
74344         * lib/unistd.in.h (includes): Ensure that types required by POSIX
74345         2008 are exposed when needed.
74346         * lib/stdio.in.h (includes): Likewise.
74347         Reported by Ralf Wildenhues.
74349 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
74351         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
74352         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
74353         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
74355 2010-01-06  Jim Meyering  <meyering@redhat.com>
74357         readtokens: this module *does* require xalloc.h
74358         It uses only functions that were omitted by the old syntax-check rule.
74359         * lib/readtokens.c: Include "xalloc.h" once again.
74360         * modules/readtokens (Depends-on): Add xalloc.
74361         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
74363 2010-01-05  Eric Blake  <ebb9@byu.net>
74365         maint: support 'make announcement' from a VPATH build
74366         * top/maint.mk (announcement): Look for correct NEWS file.
74368 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
74370         utimens (fdutimens): ignore a negative FD, per contract
74371         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
74372         when we have a valid file descriptor.  Otherwise, using a brand
74373         new glibc (with just-patched futimens that now fails with EBADF)
74374         would cause this function to fail with ENOSYS.
74375         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
74376         See also http://bugzilla.redhat.com/552320.
74378 2010-01-05  Eric Blake  <ebb9@byu.net>
74380         strcase: document what it provides
74381         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
74382         gnulib module.
74383         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
74384         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
74386 2010-01-05  Jim Meyering  <meyering@redhat.com>
74388         maint: remove useless inclusions of "xalloc.h"
74389         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
74390         * lib/readtokens.c: Likewise.
74391         * lib/same.c: Likewise.
74392         * modules/getloadavg (Depends-on): Remove xalloc.
74393         * modules/readtokens: Likewise.
74394         * modules/same: Likewise.
74396         maint.mk: include 4 more function names in alloca.h-checking regexp
74397         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
74398         regexp.  Before, we would give a false-positive (saying alloca.h
74399         is included unnecessarily) when the only uses involved omitted symbols.
74401         xalloc.h: use consistent formatting
74402         * lib/xalloc.h: Move declarations to start in the first column.
74404 2010-01-05  Eric Blake  <ebb9@byu.net>
74406         mkdir: avoid xalloc
74407         * lib/mkdir.c (includes): Drop unused header.
74408         Reported by John W. Eaton.
74410 2010-01-04  Jim Meyering  <meyering@redhat.com>
74412         nl_langinfo: avoid configure-time syntax error
74413         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
74414         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
74415         the empty string.  Don't let that provoke a shell syntax error.
74417         regcomp, regexec, fnmatch: avoid array bounds read error
74418         * lib/regcomp.c (build_equiv_class): From glibc:
74419         Use only the low 24 bits of a findidx return value as an index
74420         into the weights array.  Patch by Ulrich Drepper:
74421         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
74422         * lib/regexec.c (check_node_accept_bytes): Likewise.
74423         * lib/fnmatch_loop.c (FCT): Likewise.
74425         regcomp: skip collseq lookup when there are no rules
74426         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
74427         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
74429         regcomp: recognize ill-formed { } expressions
74430         * lib/regcomp.c (parse_dup_op): From glibc:
74431         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
74433         regcomp: fix typo in comment
74434         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
74435         s/satisfy/satisfies/.
74437         regcomp: sync from glibc: remove dead store
74438         * lib/regcomp.c (duplicate_node_closure): Remove useless
74439         search_duplicated_node call and dead store.
74441         regcomp: sync from glibc; always use nl_langinfo
74442         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
74443         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
74444         * modules/regex (Depends-on): Add nl_langinfo.
74446 2010-01-04  Eric Blake  <ebb9@byu.net>
74448         fdopendir: fix configure test
74449         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
74451 2010-01-01  Bruno Haible  <bruno@clisp.org>
74453         wchar: Remove unused configure check.
74454         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
74456 2010-01-01  Eric Blake  <ebb9@byu.net>
74458         headers: make check of system header explicit
74459         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
74460         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
74461         ourselves.
74462         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
74463         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
74464         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
74465         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
74466         internals.
74467         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
74468         missing.
74469         Suggested by Bruno Haible.
74471 2010-01-01  Jim Meyering  <meyering@redhat.com>
74473         ChangeLog: tweak to eliminate unnecessary copyright line
74474         * ChangeLog: Remove a copyright line that was mistakenly updated
74475         by today's update-copyright run.  Reported by Eric Blake.
74477         test-update-copyright: don't let envvar setting cause test failure
74478         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
74480 2010-01-01  Bruno Haible  <bruno@clisp.org>
74482         localename: Avoid gcc warning.
74483         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
74484         function if it is not used.
74486 2010-01-01  Jim Meyering  <meyering@redhat.com>
74488         update nearly all FSF copyright year lists to include 2010
74489         Use the same procedure as for 2009, outlined in
74490         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
74492         version-etc: set COPYRIGHT_YEAR to 2010
74493         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
74495 2009-12-31  Eric Blake  <ebb9@byu.net>
74497         doc: correct availability of cygwin 1.5.x getopt
74498         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
74499         variables.
74500         * doc/posix-functions/opterr.texi (opterr): Likewise.
74501         * doc/posix-functions/optind.texi (optind): Likewise.
74502         * doc/posix-functions/optopt.texi (optopt): Likewise.
74503         * doc/posix-functions/tzname.texi (tzname): Likewise.
74505         openat: update maintainer
74506         * modules/openat (Maintainer): Add myself.
74508         utimens: avoid shadowing warning
74509         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
74510         buffers into one, to avoid shadowing, as well as avoiding a
74511         redundant stat.
74512         Reported by Jim Meyering.
74514         test-dup2: avoid compiler warning
74515         * tests/test-dup2.c (is_inheritable): Only define if used.
74517 2010-01-01  Bruno Haible  <bruno@clisp.org>
74519         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
74520         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
74521         defined, use wctomb instead of wcrtomb.
74523 2010-01-01  Bruno Haible  <bruno@clisp.org>
74525         iconv: Reject native Solaris iconv.
74526         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
74527         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
74529 2009-12-31  Bruno Haible  <bruno@clisp.org>
74531         * tests/test-signal.c (main): Remove test of 'SIG'.
74533 2009-12-31  Bruno Haible  <bruno@clisp.org>
74535         spawn: Fix incomplete fix.
74536         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
74537         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
74538         warnings for GNULIB_POSIXCHECK again.
74539         Reported by Eric Blake.
74541 2009-12-31  Bruno Haible  <bruno@clisp.org>
74543         Avoid namespace pollution on glibc systems.
74544         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
74545         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
74546         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
74547         glibc systems.
74549 2009-12-31  Bruno Haible  <bruno@clisp.org>
74551         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
74552         (gl_REPLACE_WCHAR_H): Turn into a no-op.
74553         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
74554         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
74555         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
74556         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
74557         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
74559 2009-12-31  Bruno Haible  <bruno@clisp.org>
74561         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
74562         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
74563         afterwards.
74565 2009-12-31  Bruno Haible  <bruno@clisp.org>
74567         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
74568         SYS_UTSNAME_H.
74570 2009-12-31  Bruno Haible  <bruno@clisp.org>
74572         spawn: Fix misapplied patch.
74573         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
74574         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
74575         warnings for GNULIB_POSIXCHECK.
74577 2009-12-31  Bruno Haible  <bruno@clisp.org>
74579         times: Update after sys_times changed.
74580         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
74581         * modules/times (Files): Add it.
74582         (configure.ac): Invoke gl_FUNC_TIMES.
74584 2009-12-31  Bruno Haible  <bruno@clisp.org>
74586         Use AC_C_INLINE where necessary.
74587         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
74588         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
74589         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
74590         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
74591         * m4/mbfile.m4 (gl_MBFILE): Likewise.
74592         * m4/mbiter.m4 (gl_MBITER): Likewise.
74593         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
74594         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
74595         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
74596         * modules/u64 (configure.ac): Likewise.
74598 2009-12-31  Bruno Haible  <bruno@clisp.org>
74600         Use AC_C_INLINE instead of module 'inline' where possible.
74601         * modules/inline (Description): Clarify purpose.
74602         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
74603         * modules/count-one-bits (Depends-on): Remove inline.
74604         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
74605         * modules/openat (Depends-on): Remove inline.
74606         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
74607         instead of depending on module 'inline'.
74608         * modules/filevercmp (Depends-on, configure.ac): Likewise.
74609         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
74610         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
74611         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
74612         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
74613         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
74614         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
74615         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
74616         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
74617         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
74618         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
74619         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
74620         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
74621         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
74622         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
74623         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
74624         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
74625         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
74626         Likewise.
74627         * modules/unictype/property-ascii-hex-digit (Depends-on,
74628         configure.ac): Likewise.
74629         * modules/unictype/property-bidi-arabic-digit (Depends-on,
74630         configure.ac): Likewise.
74631         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
74632         configure.ac): Likewise.
74633         * modules/unictype/property-bidi-block-separator (Depends-on,
74634         configure.ac): Likewise.
74635         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
74636         configure.ac): Likewise.
74637         * modules/unictype/property-bidi-common-separator (Depends-on,
74638         configure.ac): Likewise.
74639         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
74640         Likewise.
74641         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
74642         configure.ac): Likewise.
74643         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
74644         configure.ac): Likewise.
74645         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
74646         configure.ac): Likewise.
74647         * modules/unictype/property-bidi-european-digit (Depends-on,
74648         configure.ac): Likewise.
74649         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
74650         configure.ac): Likewise.
74651         * modules/unictype/property-bidi-left-to-right (Depends-on,
74652         configure.ac): Likewise.
74653         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
74654         configure.ac): Likewise.
74655         * modules/unictype/property-bidi-other-neutral (Depends-on,
74656         configure.ac): Likewise.
74657         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
74658         Likewise.
74659         * modules/unictype/property-bidi-segment-separator (Depends-on,
74660         configure.ac): Likewise.
74661         * modules/unictype/property-bidi-whitespace (Depends-on,
74662         configure.ac): Likewise.
74663         * modules/unictype/property-combining (Depends-on, configure.ac):
74664         Likewise.
74665         * modules/unictype/property-composite (Depends-on, configure.ac):
74666         Likewise.
74667         * modules/unictype/property-currency-symbol (Depends-on,
74668         configure.ac): Likewise.
74669         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
74670         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
74671         Likewise.
74672         * modules/unictype/property-default-ignorable-code-point (Depends-on,
74673         configure.ac): Likewise.
74674         * modules/unictype/property-deprecated (Depends-on, configure.ac):
74675         Likewise.
74676         * modules/unictype/property-diacritic (Depends-on, configure.ac):
74677         Likewise.
74678         * modules/unictype/property-extender (Depends-on, configure.ac):
74679         Likewise.
74680         * modules/unictype/property-format-control (Depends-on, configure.ac):
74681         Likewise.
74682         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
74683         Likewise.
74684         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
74685         Likewise.
74686         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
74687         Likewise.
74688         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
74689         Likewise.
74690         * modules/unictype/property-hyphen (Depends-on, configure.ac):
74691         Likewise.
74692         * modules/unictype/property-id-continue (Depends-on, configure.ac):
74693         Likewise.
74694         * modules/unictype/property-id-start (Depends-on, configure.ac):
74695         Likewise.
74696         * modules/unictype/property-ideographic (Depends-on, configure.ac):
74697         Likewise.
74698         * modules/unictype/property-ids-binary-operator (Depends-on,
74699         configure.ac): Likewise.
74700         * modules/unictype/property-ids-trinary-operator (Depends-on,
74701         configure.ac): Likewise.
74702         * modules/unictype/property-ignorable-control (Depends-on,
74703         configure.ac): Likewise.
74704         * modules/unictype/property-iso-control (Depends-on, configure.ac):
74705         Likewise.
74706         * modules/unictype/property-join-control (Depends-on, configure.ac):
74707         Likewise.
74708         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
74709         Likewise.
74710         * modules/unictype/property-line-separator (Depends-on, configure.ac):
74711         Likewise.
74712         * modules/unictype/property-logical-order-exception (Depends-on,
74713         configure.ac): Likewise.
74714         * modules/unictype/property-lowercase (Depends-on, configure.ac):
74715         Likewise.
74716         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
74717         * modules/unictype/property-non-break (Depends-on, configure.ac):
74718         Likewise.
74719         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
74720         Likewise.
74721         * modules/unictype/property-numeric (Depends-on, configure.ac):
74722         Likewise.
74723         * modules/unictype/property-other-alphabetic (Depends-on,
74724         configure.ac): Likewise.
74725         * modules/unictype/property-other-default-ignorable-code-point
74726         (Depends-on, configure.ac): Likewise.
74727         * modules/unictype/property-other-grapheme-extend (Depends-on,
74728         configure.ac): Likewise.
74729         * modules/unictype/property-other-id-continue (Depends-on,
74730         configure.ac): Likewise.
74731         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
74732         Likewise.
74733         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
74734         Likewise.
74735         * modules/unictype/property-other-math (Depends-on, configure.ac):
74736         Likewise.
74737         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
74738         Likewise.
74739         * modules/unictype/property-paired-punctuation (Depends-on,
74740         configure.ac): Likewise.
74741         * modules/unictype/property-paragraph-separator (Depends-on,
74742         configure.ac): Likewise.
74743         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
74744         Likewise.
74745         * modules/unictype/property-pattern-white-space (Depends-on,
74746         configure.ac): Likewise.
74747         * modules/unictype/property-private-use (Depends-on, configure.ac):
74748         Likewise.
74749         * modules/unictype/property-punctuation (Depends-on, configure.ac):
74750         Likewise.
74751         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
74752         Likewise.
74753         * modules/unictype/property-radical (Depends-on, configure.ac):
74754         Likewise.
74755         * modules/unictype/property-sentence-terminal (Depends-on,
74756         configure.ac): Likewise.
74757         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
74758         Likewise.
74759         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
74760         * modules/unictype/property-terminal-punctuation (Depends-on,
74761         configure.ac): Likewise.
74762         * modules/unictype/property-titlecase (Depends-on, configure.ac):
74763         Likewise.
74764         * modules/unictype/property-unassigned-code-value (Depends-on,
74765         configure.ac): Likewise.
74766         * modules/unictype/property-unified-ideograph (Depends-on,
74767         configure.ac): Likewise.
74768         * modules/unictype/property-uppercase (Depends-on, configure.ac):
74769         Likewise.
74770         * modules/unictype/property-variation-selector (Depends-on,
74771         configure.ac): Likewise.
74772         * modules/unictype/property-white-space (Depends-on, configure.ac):
74773         Likewise.
74774         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
74775         Likewise.
74776         * modules/unictype/property-xid-start (Depends-on, configure.ac):
74777         Likewise.
74778         * modules/unictype/property-zero-width (Depends-on, configure.ac):
74779         Likewise.
74780         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
74781         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
74782         Likewise.
74784 2009-12-31  Bruno Haible  <bruno@clisp.org>
74786         Remove unnecessary AC_C_INLINE invocation.
74787         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
74788         since 2009-08-21.
74790 2009-12-31  Jim Meyering  <meyering@redhat.com>
74792         maint.mk: don't require explicit gpg_key_ID in cfg.mk
74793         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
74794         With this change, we can all remove the gpg_key_ID = ... definition
74795         from our respective cfg.mk files.
74797         maint.mk: create announcement template in ~/, not in /tmp
74798         * top/maint.mk (emit_upload_commands): Adjust.
74799         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
74800         Remove temporary file, .ci-msg.
74802 2009-12-31  Eric Blake  <ebb9@byu.net>
74804         link-warning: always build headers with link warnings
74805         * modules/arpa_inet (Makefile.am): Always build replacement
74806         header.
74807         * modules/ctype (Makefile.am): Likewise.
74808         * modules/dirent (Makefile.am): Likewise.
74809         * modules/inttypes (Makefile.am): Likewise.
74810         * modules/langinfo (Makefile.am): Likewise.
74811         * modules/locale (Makefile.am): Likewise.
74812         * modules/spawn (Makefile.am): Likewise.
74813         * modules/sys_file (Makefile.am): Likewise.
74814         * modules/sys_ioctl (Makefile.am): Likewise.
74815         * modules/sys_select (Makefile.am): Likewise.
74816         * modules/sys_socket (Makefile.am): Likewise.
74817         * modules/sys_times (Makefile.am): Likewise.
74818         * modules/sys_utsname (Makefile.am): Likewise.
74819         * modules/sys_wait (Makefile.am): Likewise.
74820         * modules/wchar (Makefile.am): Likewise.
74821         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
74822         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
74823         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
74824         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
74825         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
74826         Likewise.
74827         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
74828         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
74829         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
74830         Likewise.
74831         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
74832         Likewise.
74833         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
74834         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
74835         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
74836         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
74837         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
74838         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
74839         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
74840         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
74841         (gl_WCHAR_H_DEFAULTS): Likewise.
74843 2009-12-31  Eric Blake  <ebb9@byu.net>
74845         signal, spawn: use link warnings
74846         * lib/signal.in.h (sigset_t): Make unconditional.
74847         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
74848         (sigpending, sigprocmask, sigaction): Add link warnings.
74849         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
74850         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
74851         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
74852         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
74853         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
74854         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
74855         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
74856         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
74857         (posix_spawn_file_actions_destroy)
74858         (posix_spawn_file_actions_addopen)
74859         (posix_spawn_file_actions_addclose)
74860         (posix_spawn_file_actions_adddup2): Likewise.
74861         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
74862         * tests/test-signal.c (main): Enhance test.
74864         spawn: improve wrapper support
74865         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
74866         (gl_SPAWN_H_DEFAULTS): New defaults.
74867         * modules/spawn (Makefile.am): Substitute them.
74868         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
74869         Only declare if missing or broken.
74871         sys_times, sys_utsname: use include_next
74872         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
74873         header.
74874         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
74875         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
74876         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
74877         * modules/sys_times (Depends-on): Add include_next.
74878         (Makefile.am): Substitute additional values.
74879         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
74880         * lib/sys_times.in.h (includes): Include native header, if
74881         available.
74882         * lib/sys_utsname.in.h (includes): Likewise.
74883         * tests/test-sys_times.c (main): Enhance test.
74885         fdutimensat: revert prior patch
74886         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
74887         utimens.h.
74888         Reported by Bruno Haible.
74890 2009-12-30  Eric Blake  <ebb9@byu.net>
74892         sys_wait: drop link-warning dependency
74893         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
74894         link-warning efforts.
74895         * lib/sys_wait.in.h: Likewise.
74897         fdutimensat: remove bogus dependency
74898         * modules/fdutimensat (Depends-on): Drop inline.
74900         unistd: fix typo
74901         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
74903 2009-12-30  Bruno Haible  <bruno@clisp.org>
74905         Fix compilation error with Solaris cc.
74906         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
74907         * lib/unicase/u16-is-invariant.c: Likewise.
74908         * lib/unicase/u32-is-invariant.c: Likewise.
74909         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
74911 2009-12-30  Bruno Haible  <bruno@clisp.org>
74913         Fix test crash.
74914         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
74915         locales.
74916         Reported by Simon Josefsson <simon@josefsson.org>.
74918 2009-12-30  Bruno Haible  <bruno@clisp.org>
74920         Fix compilation error on most platforms.
74921         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
74922         Reported by Simon Josefsson <simon@josefsson.org>
74923         and Nelson H. F. Beebe <beebe@math.utah.edu>.
74925 2009-12-30  Eric Blake  <ebb9@byu.net>
74927         futimens, utimensat: work around ntfs-3g bug
74928         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
74929         a ctime bug is present, and expand workaround to cover ntfs-3g.
74930         * lib/utimens.c (fdutimens, lutimens): Likewise.
74931         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
74932         (validate_timespec): Adjust return value.
74933         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
74934         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
74935         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
74937 2009-12-29  Eric Blake  <ebb9@byu.net>
74939         link-warning: make usage consistent
74940         * modules/ctype (Depends-on): Add link-warning.
74941         (Makefile.am): Update rules accordingly.
74942         * modules/langinfo (Depends-on, Makefile.am): Likewise.
74943         * modules/locale (Depends-on, Makefile.am): Likewise.
74944         * modules/sys_file (Makefile.am): Likewise.
74945         * modules/getopt-posix (Makefile.am): Delete unused link warning
74946         efforts.
74947         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
74948         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
74949         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
74950         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
74952         stdio: remove unused variables
74953         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
74954         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
74955         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
74957         tests: test more substitute headers
74958         * modules/ctype-tests: New file.
74959         * modules/dirent-tests: Likewise.
74960         * modules/spawn-tests: Likewise.
74961         * modules/sys_file-tests: Likewise.
74962         * modules/sys_ioctl-tests: Likewise.
74963         * modules/sys_wait-tests: Likewise.
74964         * tests/test-ctype.c: Likewise.
74965         * tests/test-dirent.c: Likewise.
74966         * tests/test-spawn.c: Likewise.
74967         * tests/test-sys_file.c: Likewise.
74968         * tests/test-sys_ioctl.c: Likewise.
74969         * tests/test-sys_wait.c: Likewise.
74970         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
74971         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
74972         whether or not flock is in use.
74974         tests: remove License section from module
74975         * modules/arpa_inet-tests: Remove unneeded section.
74976         * modules/byteswap-tests: Likewise.
74977         * modules/ceilf-tests: Likewise.
74978         * modules/ceill-tests: Likewise.
74979         * modules/crypto/des-tests: Likewise.
74980         * modules/crypto/gc-arcfour-tests: Likewise.
74981         * modules/crypto/gc-arctwo-tests: Likewise.
74982         * modules/crypto/gc-des-tests: Likewise.
74983         * modules/crypto/gc-hmac-md5-tests: Likewise.
74984         * modules/crypto/gc-hmac-sha1-tests: Likewise.
74985         * modules/crypto/gc-md2-tests: Likewise.
74986         * modules/crypto/gc-md4-tests: Likewise.
74987         * modules/crypto/gc-md5-tests: Likewise.
74988         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
74989         * modules/crypto/gc-rijndael-tests: Likewise.
74990         * modules/crypto/gc-sha1-tests: Likewise.
74991         * modules/crypto/gc-tests: Likewise.
74992         * modules/crypto/md2-tests: Likewise.
74993         * modules/crypto/md4-tests: Likewise.
74994         * modules/fcntl-h-tests: Likewise.
74995         * modules/floorf-tests: Likewise.
74996         * modules/floorl-tests: Likewise.
74997         * modules/frexp-nolibm-tests: Likewise.
74998         * modules/frexp-tests: Likewise.
74999         * modules/frexpl-nolibm-tests: Likewise.
75000         * modules/frexpl-tests: Likewise.
75001         * modules/getaddrinfo-tests: Likewise.
75002         * modules/inttypes-tests: Likewise.
75003         * modules/isfinite-tests: Likewise.
75004         * modules/isinf-tests: Likewise.
75005         * modules/ldexpl-tests: Likewise.
75006         * modules/locale-tests: Likewise.
75007         * modules/math-tests: Likewise.
75008         * modules/netdb-tests: Likewise.
75009         * modules/netinet_in-tests: Likewise.
75010         * modules/printf-frexp-tests: Likewise.
75011         * modules/printf-frexpl-tests: Likewise.
75012         * modules/priv-set-tests: Likewise.
75013         * modules/random_r-tests: Likewise.
75014         * modules/round-tests: Likewise.
75015         * modules/roundf-tests: Likewise.
75016         * modules/roundl-tests: Likewise.
75017         * modules/search-tests: Likewise.
75018         * modules/select-tests: Likewise.
75019         * modules/signal-tests: Likewise.
75020         * modules/stdbool-tests: Likewise.
75021         * modules/stddef-tests: Likewise.
75022         * modules/stdint-tests: Likewise.
75023         * modules/stdio-tests: Likewise.
75024         * modules/stdlib-tests: Likewise.
75025         * modules/string-tests: Likewise.
75026         * modules/strings-tests: Likewise.
75027         * modules/sys_select-tests: Likewise.
75028         * modules/sys_socket-tests: Likewise.
75029         * modules/sys_stat-tests: Likewise.
75030         * modules/sys_time-tests: Likewise.
75031         * modules/sys_utsname-tests: Likewise.
75032         * modules/sysexits-tests: Likewise.
75033         * modules/time-tests: Likewise.
75034         * modules/trunc-tests: Likewise.
75035         * modules/truncf-tests: Likewise.
75036         * modules/truncl-tests: Likewise.
75037         * modules/tsearch-tests: Likewise.
75038         * modules/unistd-tests: Likewise.
75039         * modules/wchar-tests: Likewise.
75040         * modules/wctype-tests: Likewise.
75042         tests: fix license on several tests
75043         * tests/test-des.c: Update to GPLv3+.
75044         * tests/test-flock.c: Likewise.
75045         * tests/test-fsync.c: Likewise.
75046         * tests/test-futimens.h: Likewise.
75047         * tests/test-gc-arcfour.c: Likewise.
75048         * tests/test-gc-arctwo.c: Likewise.
75049         * tests/test-gc-des.c: Likewise.
75050         * tests/test-gc-hmac-md5.c: Likewise.
75051         * tests/test-gc-hmac-sha1.c: Likewise.
75052         * tests/test-gc-md2.c: Likewise.
75053         * tests/test-gc-md4.c: Likewise.
75054         * tests/test-gc-md5.c: Likewise.
75055         * tests/test-gc-pbkdf2-sha1.c: Likewise.
75056         * tests/test-gc-rijndael.c: Likewise.
75057         * tests/test-gc-sha1.c: Likewise.
75058         * tests/test-gc.c: Likewise.
75059         * tests/test-getcwd.c: Likewise.
75060         * tests/test-link.c: Likewise.
75061         * tests/test-link.h: Likewise.
75062         * tests/test-lutimens.h: Likewise.
75063         * tests/test-md2.c: Likewise.
75064         * tests/test-md4.c: Likewise.
75065         * tests/test-mkdir.h: Likewise.
75066         * tests/test-rename.c: Likewise.
75067         * tests/test-rename.h: Likewise.
75068         * tests/test-safe-alloc.c: Likewise.
75069         * tests/test-utimens-common.h: Likewise.
75070         * tests/test-utimens.h: Likewise.
75072         maint: sync license texts
75073         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
75074         * doc/gpl-3.0.texi: Revert copyright year update.
75075         * doc/lgpl-3.0.texi: Likewise.
75077 2009-12-29  Jim Meyering  <meyering@redhat.com>
75079         update nearly all FSF copyright year lists to include 2009
75080         The files named by the following are exempted:
75081             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
75082               test -f "$dst" && { echo "$dst"; continue; }
75083               test -d "$dst" || continue
75084               echo "$dst"/$(basename "$src")
75085             done > exempt
75086             git ls-files tests/unictype >> exempt
75087         In the remaining files, convert to all-interval notation if
75088         - there is already at least one year interval like 2000-2003
75089         - the file is maintained by me
75090         - the file is in lib/uni*/, where that style already prevails
75091         Otherwise, use update-copyright's default.
75093 2009-12-29  Simon Josefsson  <simon@josefsson.org>
75094         and Eric Blake  <ebb9@byu.net>
75096         tests: don't require debug system() to pass
75097         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
75098         * tests/test-rmdir.h (test_rmdir_func): Likewise.
75099         * tests/test-unlink.h (test_unlink_func): Likewise.
75100         * tests/test-fstatat.c (main): ...into callers.
75101         * tests/test-lstat.c (main): Likewise.
75102         * tests/test-rmdir.c (main): Likewise.
75103         * tests/test-unlink.c (main): Likewise.
75104         * tests/test-unlinkat.c (main): Likewise.
75105         * tests/test-areadlink-with-size.c (main): Don't require a
75106         debug-only system call to pass, aiding cross-testing to mingw.
75107         * tests/test-areadlink.c (main): Likewise.
75108         * tests/test-areadlinkat-with-size.c (main): Likewise.
75109         * tests/test-areadlinkat.c (main): Likewise.
75110         * tests/test-canonicalize-lgpl.c (main): Likewise.
75111         * tests/test-canonicalize.c (main): Likewise.
75112         * tests/test-chown.c (main): Likewise.
75113         * tests/test-fchownat.c (main): Likewise.
75114         * tests/test-lchown.c (main): Likewise.
75115         * tests/test-fdutimensat.c (main): Likewise.
75116         * tests/test-futimens.c (main): Likewise.
75117         * tests/test-link.c (main): Likewise.
75118         * tests/test-linkat.c (main): Likewise.
75119         * tests/test-mkdir.c (main): Likewise.
75120         * tests/test-mkdirat.c (main): Likewise.
75121         * tests/test-mkfifo.c (main): Likewise.
75122         * tests/test-mkfifoat.c (main): Likewise.
75123         * tests/test-mknod.c (main): Likewise.
75124         * tests/test-readlink.c (main): Likewise.
75125         * tests/test-remove.c (main): Likewise.
75126         * tests/test-rename.c (main): Likewise.
75127         * tests/test-renameat.c (main): Likewise.
75128         * tests/test-symlink.c (main): Likewise.
75129         * tests/test-symlinkat.c (main): Likewise.
75130         * tests/test-utimens.c (main): Likewise.
75131         * tests/test-utimensat.c (main): Likewise.
75133 2009-12-29  Simon Josefsson  <simon@josefsson.org>
75135         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
75136         on $(UNUSED_PARAMETER_H) to avoid build failure.
75138 2009-12-28  Jim Meyering  <meyering@redhat.com>
75140         update-copyright: you may specify a max. line length other than 72
75141         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
75143         maint: use consistent FSF copyright line syntax
75144         * lib/posixtm.c: Add missing comma in FSF copyright line.
75145         * lib/posixtm.h: Likewise.
75146         * lib/getugroups.c: Add missing ", Inc.".
75148         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
75149         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
75150         FSF copyright line.  Remove trailing blanks.
75152 2009-12-28  Eric Blake  <ebb9@byu.net>
75154         test-dup2: reduce dependencies
75155         * modules/cloexec (Configure.ac): Set witness.
75156         * modules/dup2-tests (Depends-on): Drop cloexec.
75157         * tests/test-dup2.c (main): Skip portion of test if cloexec module
75158         not present.
75159         Suggested by Bruno Haible.
75161 2009-12-26  Bruno Haible  <bruno@clisp.org>
75163         Remove an unneeded dependency.
75164         * modules/fseterr (Depends-on): Remove dup2.
75166 2009-12-26  Eric Blake  <ebb9@byu.net>
75168         tests: use macros.h in more places
75169         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
75170         (ASSERT_STREAM): Provide default of stderr.
75171         * tests/test-dirent-safer.c: Include macros.h, using alternate
75172         stream for assertions.
75173         * tests/test-dup-safer.c: Likewise.
75174         * tests/test-freopen-safer.c: Likewise.
75175         * tests/test-getopt.c: Likewise.
75176         * tests/test-openat-safer.c: Likewise.
75177         * tests/test-pipe.c: Likewise.
75178         * tests/test-popen-safer.c: Likewise.
75179         * modules/dirent-safer-tests (Files): Include macros.h.
75180         * modules/unistd-safer-tests (Files): Likewise.
75181         * modules/freopen-safer-tests (Files): Likewise.
75182         * modules/getopt-posix-tests (Files): Likewise.
75183         * modules/openat-safer-tests (Files): Likewise.
75184         * modules/pipe-tests (Files): Likewise.
75186 2009-12-26  Bruno Haible  <bruno@clisp.org>
75188         javacomp-script: Portability fix.
75189         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
75190         that it also works on Solaris.
75192 2009-12-26  Bruno Haible  <bruno@clisp.org>
75194         localename: Fix storage allocation of gl_locale_name_thread's result.
75195         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
75196         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
75197         all platforms that have 'uselocale'.
75198         (gl_locale_name_thread_unsafe): New function, extracted from
75199         gl_locale_name_thread.
75200         (gl_locale_name_thread): Call struniq on all platforms that have
75201         'uselocale'.
75202         * tests/test-localename.c (test_locale_name_thread): Check that the
75203         resulting strings are permanently allocated.
75204         * modules/localename-tests (Depends-on): Add strdup.
75206 2009-12-26  Bruno Haible  <bruno@clisp.org>
75208         * tests/test-localename.c (categories): Fill in the strings.
75210 2009-12-26  Jim Meyering  <meyering@redhat.com>
75212         isdir: complete the removal of m4/isdir.m4
75213         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
75215         isdir: clean up, since at least grep still uses it
75216         * lib/isdir.c: Include "isdir.h".
75217         (S_ISDIR): Remove now-unneeded definition.
75218         * modules/isdir (Files): Add lib/isdir.h.
75219         * lib/isdir.h: New file, with declaration.
75220         * m4/isdir.m4: Remove file -- unneeded.
75222 2009-12-25  Bruno Haible  <bruno@clisp.org>
75224         selinux-h: Make generated .h files standalone.
75225         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
75226         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
75227         * lib/se-selinux.in.h: Likewise.
75228         * modules/selinux-h (Depends-on): Add unused-parameter.
75229         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
75230         selinux/selinux.h and selinux/context.h.
75231         Suggested by Eric Blake.
75233 2009-12-25  Bruno Haible  <bruno@clisp.org>
75235         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
75236         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
75237         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
75238         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
75239         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
75241 2009-12-24  Bruno Haible  <bruno@clisp.org>
75243         openat: Fix warning.
75244         * lib/openat-proc.c: Include <unistd.h>.
75246 2009-12-24  Bruno Haible  <bruno@clisp.org>
75248         New module 'unused-parameter'.
75249         * build-aux/unused-parameter.h: New file, extracted from earlier
75250         gnulib-common.m4.
75251         * modules/unused-parameter: New file.
75252         * lib/unistr.h: Include unused-parameter.h.
75253         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
75254         _GL_UNUSED.
75255         * modules/unistr/base (Depends-on): Add unused-parameter.
75257 2009-12-24  Bruno Haible  <bruno@clisp.org>
75259         Add missing dependencies to 'extensions' module.
75260         * m4/extensions.m4: Add comment.
75261         * modules/accept4 (Depends-on): Add extensions.
75262         * modules/dup3 (Depends-on): Likewise.
75263         * modules/fcntl (Depends-on): Likewise.
75264         * modules/futimens (Depends-on): Likewise.
75265         * modules/mknod (Depends-on): Likewise.
75266         * modules/pipe2 (Depends-on): Likewise.
75267         * modules/stat-time (Depends-on): Likewise.
75268         * modules/strcasestr-simple (Depends-on): Likewise.
75269         * modules/strsignal (Depends-on): Likewise.
75270         * modules/utimensat (Depends-on): Likewise.
75271         * modules/localcharset (Depends-on): Likewise. Needed because of
75272         gl_FCNTL_O_FLAGS.
75273         * modules/wcrtomb (Depends-on): Likewise. Needed because of
75274         AC_TYPE_MBSTATE_T.
75275         * modules/wcsnrtombs (Depends-on): Likewise.
75276         * modules/wcsrtombs (Depends-on): Likewise.
75278 2009-12-24  Bruno Haible  <bruno@clisp.org>
75280         binary-io: Avoid gcc warning due to SET_BINARY.
75281         * lib/binary-io.h (SET_BINARY): Cast the result to void.
75282         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
75284 2009-12-24  Bruno Haible  <bruno@clisp.org>
75286         Avoid future namespace pollution on glibc systems.
75287         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
75288         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
75289         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
75290         glibc systems.
75292 2009-12-24  Bruno Haible  <bruno@clisp.org>
75294         Refactor common macros used in tests.
75295         * tests/macros.h: New file.
75296         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
75297         and/or <stdlib.h>, if appropriate.
75298         (ASSERT, SIZEOF): Remove macros.
75299         * tests/test-areadlink-with-size.c: Likewise.
75300         * tests/test-areadlinkat.c: Likewise.
75301         * tests/test-areadlinkat-with-size.c: Likewise.
75302         * tests/test-argmatch.c: Likewise.
75303         * tests/test-argv-iter.c: Likewise.
75304         * tests/test-array-mergesort.c: Likewise.
75305         * tests/test-array_list.c: Likewise.
75306         * tests/test-array_oset.c: Likewise.
75307         * tests/test-avltree_list.c: Likewise.
75308         * tests/test-avltree_oset.c: Likewise.
75309         * tests/test-avltreehash_list.c: Likewise.
75310         * tests/test-base64.c: Likewise.
75311         * tests/test-binary-io.c: Likewise.
75312         * tests/test-bitrotate.c: Likewise.
75313         * tests/test-btowc.c: Likewise.
75314         * tests/test-byteswap.c: Likewise.
75315         * tests/test-c-ctype.c: Likewise.
75316         * tests/test-c-stack.c: Likewise.
75317         * tests/test-c-strcasecmp.c: Likewise.
75318         * tests/test-c-strcasestr.c: Likewise.
75319         * tests/test-c-strncasecmp.c: Likewise.
75320         * tests/test-c-strstr.c: Likewise.
75321         * tests/test-canonicalize-lgpl.c: Likewise.
75322         * tests/test-canonicalize.c: Likewise.
75323         * tests/test-carray_list.c: Likewise.
75324         * tests/test-ceilf1.c: Likewise.
75325         * tests/test-ceilf2.c: Likewise.
75326         * tests/test-ceill.c: Likewise.
75327         * tests/test-chown.c: Likewise.
75328         * tests/test-cloexec.c: Likewise.
75329         * tests/test-copy-acl.c: Likewise.
75330         * tests/test-copy-file.c: Likewise.
75331         * tests/test-count-one-bits.c: Likewise.
75332         * tests/test-dprintf-posix.c: Likewise.
75333         * tests/test-dup2.c: Likewise.
75334         * tests/test-dup3.c: Likewise.
75335         * tests/test-duplocale.c: Likewise.
75336         * tests/test-fbufmode.c: Likewise.
75337         * tests/test-fchdir.c: Likewise.
75338         * tests/test-fchownat.c: Likewise.
75339         * tests/test-fcntl-safer.c: Likewise.
75340         * tests/test-fcntl.c: Likewise.
75341         * tests/test-fdopendir.c: Likewise.
75342         * tests/test-fdutimensat.c: Likewise.
75343         * tests/test-fflush2.c: Likewise.
75344         * tests/test-file-has-acl.c: Likewise.
75345         * tests/test-filevercmp.c: Likewise.
75346         * tests/test-flock.c: Likewise.
75347         * tests/test-floorf1.c: Likewise.
75348         * tests/test-floorf2.c: Likewise.
75349         * tests/test-floorl.c: Likewise.
75350         * tests/test-fnmatch.c: Likewise.
75351         * tests/test-fopen.h: Likewise.
75352         * tests/test-fpending.c: Likewise.
75353         * tests/test-fprintf-posix.c: Likewise.
75354         * tests/test-fpurge.c: Likewise.
75355         * tests/test-freadable.c: Likewise.
75356         * tests/test-freadahead.c: Likewise.
75357         * tests/test-freading.c: Likewise.
75358         * tests/test-freadptr.c: Likewise.
75359         * tests/test-freadptr2.c: Likewise.
75360         * tests/test-freadseek.c: Likewise.
75361         * tests/test-freopen.c: Likewise.
75362         * tests/test-frexp.c: Likewise.
75363         * tests/test-frexpl.c: Likewise.
75364         * tests/test-fseek.c: Likewise.
75365         * tests/test-fseeko.c: Likewise.
75366         * tests/test-fstatat.c: Likewise.
75367         * tests/test-fstrcmp.c: Likewise.
75368         * tests/test-fsync.c: Likewise.
75369         * tests/test-ftell.c: Likewise.
75370         * tests/test-ftello.c: Likewise.
75371         * tests/test-func.c: Likewise.
75372         * tests/test-futimens.c: Likewise.
75373         * tests/test-fwritable.c: Likewise.
75374         * tests/test-fwriting.c: Likewise.
75375         * tests/test-getcwd.c: Likewise.
75376         * tests/test-getdate.c: Likewise.
75377         * tests/test-getdelim.c: Likewise.
75378         * tests/test-getdtablesize.c: Likewise.
75379         * tests/test-getgroups.c: Likewise.
75380         * tests/test-getline.c: Likewise.
75381         * tests/test-getndelim2.c: Likewise.
75382         * tests/test-glob.c: Likewise.
75383         * tests/test-hash.c: Likewise.
75384         * tests/test-i-ring.c: Likewise.
75385         * tests/test-iconv-utf.c: Likewise.
75386         * tests/test-iconv.c: Likewise.
75387         * tests/test-idpriv-drop.c: Likewise.
75388         * tests/test-idpriv-droptemp.c: Likewise.
75389         * tests/test-inet_ntop.c: Likewise.
75390         * tests/test-inet_pton.c: Likewise.
75391         * tests/test-isblank.c: Likewise.
75392         * tests/test-isfinite.c: Likewise.
75393         * tests/test-isinf.c: Likewise.
75394         * tests/test-isnan.c: Likewise.
75395         * tests/test-isnand.h: Likewise.
75396         * tests/test-isnanf.h: Likewise.
75397         * tests/test-isnanl.h: Likewise.
75398         * tests/test-lchown.c: Likewise.
75399         * tests/test-ldexpl.c: Likewise.
75400         * tests/test-link.c: Likewise.
75401         * tests/test-linkat.c: Likewise.
75402         * tests/test-linked_list.c: Likewise.
75403         * tests/test-linkedhash_list.c: Likewise.
75404         * tests/test-localename.c: Likewise.
75405         * tests/test-lseek.c: Likewise.
75406         * tests/test-lstat.c: Likewise.
75407         * tests/test-mbmemcasecmp.c: Likewise.
75408         * tests/test-mbmemcasecoll.c: Likewise.
75409         * tests/test-mbrtowc.c: Likewise.
75410         * tests/test-mbscasecmp.c: Likewise.
75411         * tests/test-mbscasestr1.c: Likewise.
75412         * tests/test-mbscasestr2.c: Likewise.
75413         * tests/test-mbscasestr3.c: Likewise.
75414         * tests/test-mbscasestr4.c: Likewise.
75415         * tests/test-mbschr.c: Likewise.
75416         * tests/test-mbscspn.c: Likewise.
75417         * tests/test-mbsinit.c: Likewise.
75418         * tests/test-mbsncasecmp.c: Likewise.
75419         * tests/test-mbsnrtowcs.c: Likewise.
75420         * tests/test-mbspbrk.c: Likewise.
75421         * tests/test-mbspcasecmp.c: Likewise.
75422         * tests/test-mbsrchr.c: Likewise.
75423         * tests/test-mbsrtowcs.c: Likewise.
75424         * tests/test-mbsspn.c: Likewise.
75425         * tests/test-mbsstr1.c: Likewise.
75426         * tests/test-mbsstr2.c: Likewise.
75427         * tests/test-mbsstr3.c: Likewise.
75428         * tests/test-memchr.c: Likewise.
75429         * tests/test-memchr2.c: Likewise.
75430         * tests/test-memcmp.c: Likewise.
75431         * tests/test-memmem.c: Likewise.
75432         * tests/test-memrchr.c: Likewise.
75433         * tests/test-mkdir.c: Likewise.
75434         * tests/test-mkdirat.c: Likewise.
75435         * tests/test-mkfifo.c: Likewise.
75436         * tests/test-mkfifoat.c: Likewise.
75437         * tests/test-mknod.c: Likewise.
75438         * tests/test-nanosleep.c: Likewise.
75439         * tests/test-nl_langinfo.c: Likewise.
75440         * tests/test-obstack-printf.c: Likewise.
75441         * tests/test-open.c: Likewise.
75442         * tests/test-openat.c: Likewise.
75443         * tests/test-pipe-filter-gi1.c: Likewise.
75444         * tests/test-pipe-filter-gi2-main.c: Likewise.
75445         * tests/test-pipe-filter-ii1.c: Likewise.
75446         * tests/test-pipe-filter-ii2-main.c: Likewise.
75447         * tests/test-pipe2.c: Likewise.
75448         * tests/test-popen.h: Likewise.
75449         * tests/test-posixtm.c: Likewise.
75450         * tests/test-pread.c: Likewise.
75451         * tests/test-printf-frexp.c: Likewise.
75452         * tests/test-printf-frexpl.c: Likewise.
75453         * tests/test-printf-posix.c: Likewise.
75454         * tests/test-priv-set.c: Likewise.
75455         * tests/test-quotearg.c: Likewise.
75456         * tests/test-random_r.c: Likewise.
75457         * tests/test-rawmemchr.c: Likewise.
75458         * tests/test-rbtree_list.c: Likewise.
75459         * tests/test-rbtree_oset.c: Likewise.
75460         * tests/test-rbtreehash_list.c: Likewise.
75461         * tests/test-readlink.c: Likewise.
75462         * tests/test-remove.c: Likewise.
75463         * tests/test-rename.c: Likewise.
75464         * tests/test-renameat.c: Likewise.
75465         * tests/test-rmdir.c: Likewise.
75466         * tests/test-round1.c: Likewise.
75467         * tests/test-roundf1.c: Likewise.
75468         * tests/test-roundl.c: Likewise.
75469         * tests/test-safe-alloc.c: Likewise.
75470         * tests/test-sameacls.c: Likewise.
75471         * tests/test-set-mode-acl.c: Likewise.
75472         * tests/test-setenv.c: Likewise.
75473         * tests/test-sigaction.c: Likewise.
75474         * tests/test-signbit.c: Likewise.
75475         * tests/test-sleep.c: Likewise.
75476         * tests/test-snprintf-posix.c: Likewise.
75477         * tests/test-snprintf.c: Likewise.
75478         * tests/test-sprintf-posix.c: Likewise.
75479         * tests/test-stat-time.c: Likewise.
75480         * tests/test-stat.c: Likewise.
75481         * tests/test-strcasestr.c: Likewise.
75482         * tests/test-strchrnul.c: Likewise.
75483         * tests/test-strerror.c: Likewise.
75484         * tests/test-striconv.c: Likewise.
75485         * tests/test-striconveh.c: Likewise.
75486         * tests/test-striconveha.c: Likewise.
75487         * tests/test-strsignal.c: Likewise.
75488         * tests/test-strstr.c: Likewise.
75489         * tests/test-strtod.c: Likewise.
75490         * tests/test-strverscmp.c: Likewise.
75491         * tests/test-symlink.c: Likewise.
75492         * tests/test-symlinkat.c: Likewise.
75493         * tests/test-trunc1.c: Likewise.
75494         * tests/test-trunc2.c: Likewise.
75495         * tests/test-truncf1.c: Likewise.
75496         * tests/test-truncf2.c: Likewise.
75497         * tests/test-truncl.c: Likewise.
75498         * tests/test-uname.c: Likewise.
75499         * tests/test-unlink.c: Likewise.
75500         * tests/test-unlinkat.c: Likewise.
75501         * tests/test-unsetenv.c: Likewise.
75502         * tests/test-usleep.c: Likewise.
75503         * tests/test-utimens.c: Likewise.
75504         * tests/test-utimensat.c: Likewise.
75505         * tests/test-vasnprintf-posix.c: Likewise.
75506         * tests/test-vasnprintf-posix2.c: Likewise.
75507         * tests/test-vasnprintf.c: Likewise.
75508         * tests/test-vasprintf-posix.c: Likewise.
75509         * tests/test-vasprintf.c: Likewise.
75510         * tests/test-vdprintf-posix.c: Likewise.
75511         * tests/test-vfprintf-posix.c: Likewise.
75512         * tests/test-vprintf-posix.c: Likewise.
75513         * tests/test-vsnprintf-posix.c: Likewise.
75514         * tests/test-vsnprintf.c: Likewise.
75515         * tests/test-vsprintf-posix.c: Likewise.
75516         * tests/test-wcrtomb.c: Likewise.
75517         * tests/test-wcsnrtombs.c: Likewise.
75518         * tests/test-wcsrtombs.c: Likewise.
75519         * tests/test-wctype.c: Likewise.
75520         * tests/test-wcwidth.c: Likewise.
75521         * tests/test-xfprintf-posix.c: Likewise.
75522         * tests/test-xmemdup0.c: Likewise.
75523         * tests/test-xprintf-posix.c: Likewise.
75524         * tests/test-xvasprintf.c: Likewise.
75525         * tests/unicase/test-locale-language.c: Likewise.
75526         * tests/unicase/test-mapping-part1.h: Likewise.
75527         * tests/unicase/test-predicate-part1.h: Likewise.
75528         * tests/unicase/test-u8-casecmp.c: Likewise.
75529         * tests/unicase/test-u8-casecoll.c: Likewise.
75530         * tests/unicase/test-u8-casefold.c: Likewise.
75531         * tests/unicase/test-u8-is-cased.c: Likewise.
75532         * tests/unicase/test-u8-is-casefolded.c: Likewise.
75533         * tests/unicase/test-u8-is-lowercase.c: Likewise.
75534         * tests/unicase/test-u8-is-titlecase.c: Likewise.
75535         * tests/unicase/test-u8-is-uppercase.c: Likewise.
75536         * tests/unicase/test-u8-tolower.c: Likewise.
75537         * tests/unicase/test-u8-totitle.c: Likewise.
75538         * tests/unicase/test-u8-toupper.c: Likewise.
75539         * tests/unicase/test-u16-casecmp.c: Likewise.
75540         * tests/unicase/test-u16-casecoll.c: Likewise.
75541         * tests/unicase/test-u16-casefold.c: Likewise.
75542         * tests/unicase/test-u16-is-cased.c: Likewise.
75543         * tests/unicase/test-u16-is-casefolded.c: Likewise.
75544         * tests/unicase/test-u16-is-lowercase.c: Likewise.
75545         * tests/unicase/test-u16-is-titlecase.c: Likewise.
75546         * tests/unicase/test-u16-is-uppercase.c: Likewise.
75547         * tests/unicase/test-u16-tolower.c: Likewise.
75548         * tests/unicase/test-u16-totitle.c: Likewise.
75549         * tests/unicase/test-u16-toupper.c: Likewise.
75550         * tests/unicase/test-u32-casecmp.c: Likewise.
75551         * tests/unicase/test-u32-casecoll.c: Likewise.
75552         * tests/unicase/test-u32-casefold.c: Likewise.
75553         * tests/unicase/test-u32-is-cased.c: Likewise.
75554         * tests/unicase/test-u32-is-casefolded.c: Likewise.
75555         * tests/unicase/test-u32-is-lowercase.c: Likewise.
75556         * tests/unicase/test-u32-is-titlecase.c: Likewise.
75557         * tests/unicase/test-u32-is-uppercase.c: Likewise.
75558         * tests/unicase/test-u32-tolower.c: Likewise.
75559         * tests/unicase/test-u32-totitle.c: Likewise.
75560         * tests/unicase/test-u32-toupper.c: Likewise.
75561         * tests/unicase/test-ulc-casecmp.c: Likewise.
75562         * tests/unicase/test-ulc-casecoll.c: Likewise.
75563         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
75564         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
75565         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
75566         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
75567         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
75568         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
75569         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
75570         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
75571         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
75572         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
75573         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
75574         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
75575         * tests/unictype/test-bidi_byname.c: Likewise.
75576         * tests/unictype/test-bidi_name.c: Likewise.
75577         * tests/unictype/test-bidi_of.c: Likewise.
75578         * tests/unictype/test-bidi_test.c: Likewise.
75579         * tests/unictype/test-block_list.c: Likewise.
75580         * tests/unictype/test-block_of.c: Likewise.
75581         * tests/unictype/test-block_test.c: Likewise.
75582         * tests/unictype/test-categ_and.c: Likewise.
75583         * tests/unictype/test-categ_and_not.c: Likewise.
75584         * tests/unictype/test-categ_byname.c: Likewise.
75585         * tests/unictype/test-categ_name.c: Likewise.
75586         * tests/unictype/test-categ_none.c: Likewise.
75587         * tests/unictype/test-categ_of.c: Likewise.
75588         * tests/unictype/test-categ_or.c: Likewise.
75589         * tests/unictype/test-categ_test_withtable.c: Likewise.
75590         * tests/unictype/test-combining.c: Likewise.
75591         * tests/unictype/test-decdigit.c: Likewise.
75592         * tests/unictype/test-digit.c: Likewise.
75593         * tests/unictype/test-mirror.c: Likewise.
75594         * tests/unictype/test-numeric.c: Likewise.
75595         * tests/unictype/test-pr_byname.c: Likewise.
75596         * tests/unictype/test-pr_test.c: Likewise.
75597         * tests/unictype/test-predicate-part1.h: Likewise.
75598         * tests/unictype/test-scripts.c: Likewise.
75599         * tests/unictype/test-sy_c_ident.c: Likewise.
75600         * tests/unictype/test-sy_java_ident.c: Likewise.
75601         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
75602         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
75603         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
75604         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
75605         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
75606         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
75607         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
75608         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
75609         * tests/uninorm/test-canonical-decomposition.c: Likewise.
75610         * tests/uninorm/test-compat-decomposition.c: Likewise.
75611         * tests/uninorm/test-composition.c: Likewise.
75612         * tests/uninorm/test-decomposing-form.c: Likewise.
75613         * tests/uninorm/test-decomposition.c: Likewise.
75614         * tests/uninorm/test-u8-nfc.c: Likewise.
75615         * tests/uninorm/test-u8-nfd.c: Likewise.
75616         * tests/uninorm/test-u8-nfkc.c: Likewise.
75617         * tests/uninorm/test-u8-nfkd.c: Likewise.
75618         * tests/uninorm/test-u8-normcmp.c: Likewise.
75619         * tests/uninorm/test-u8-normcoll.c: Likewise.
75620         * tests/uninorm/test-u16-nfc.c: Likewise.
75621         * tests/uninorm/test-u16-nfd.c: Likewise.
75622         * tests/uninorm/test-u16-nfkc.c: Likewise.
75623         * tests/uninorm/test-u16-nfkd.c: Likewise.
75624         * tests/uninorm/test-u16-normcmp.c: Likewise.
75625         * tests/uninorm/test-u16-normcoll.c: Likewise.
75626         * tests/uninorm/test-u32-nfc.c: Likewise.
75627         * tests/uninorm/test-u32-nfd.c: Likewise.
75628         * tests/uninorm/test-u32-nfkc.c: Likewise.
75629         * tests/uninorm/test-u32-nfkd.c: Likewise.
75630         * tests/uninorm/test-u32-normalize-big.c: Likewise.
75631         * tests/uninorm/test-u32-normcmp.c: Likewise.
75632         * tests/uninorm/test-u32-normcoll.c: Likewise.
75633         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
75634         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
75635         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
75636         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
75637         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
75638         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
75639         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
75640         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
75641         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
75642         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
75643         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
75644         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
75645         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
75646         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
75647         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
75648         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
75649         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
75650         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
75651         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
75652         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
75653         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
75654         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
75655         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
75656         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
75657         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
75658         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
75659         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
75660         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
75661         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
75662         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
75663         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
75664         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
75665         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
75666         * tests/uniwidth/test-u8-strwidth.c: Likewise.
75667         * tests/uniwidth/test-u8-width.c: Likewise.
75668         * tests/uniwidth/test-u16-strwidth.c: Likewise.
75669         * tests/uniwidth/test-u16-width.c: Likewise.
75670         * tests/uniwidth/test-u32-strwidth.c: Likewise.
75671         * tests/uniwidth/test-u32-width.c: Likewise.
75672         * tests/uniwidth/test-uc_width.c: Likewise.
75673         * tests/uniwidth/test-uc_width2.c: Likewise.
75674         * modules/acl-tests (Files): Add tests/macros.h.
75675         * modules/areadlink-tests (Files): Likewise.
75676         * modules/areadlink-with-size-tests (Files): Likewise.
75677         * modules/areadlinkat-tests (Files): Likewise.
75678         * modules/areadlinkat-with-size-tests (Files): Likewise.
75679         * modules/argmatch-tests (Files): Likewise.
75680         * modules/argv-iter-tests (Files): Likewise.
75681         * modules/array-list-tests (Files): Likewise.
75682         * modules/array-mergesort-tests (Files): Likewise.
75683         * modules/array-oset-tests (Files): Likewise.
75684         * modules/avltree-list-tests (Files): Likewise.
75685         * modules/avltree-oset-tests (Files): Likewise.
75686         * modules/avltreehash-list-tests (Files): Likewise.
75687         * modules/base64-tests (Files): Likewise.
75688         * modules/binary-io-tests (Files): Likewise.
75689         * modules/bitrotate-tests (Files): Likewise.
75690         * modules/btowc-tests (Files): Likewise.
75691         * modules/byteswap-tests (Files): Likewise.
75692         * modules/c-ctype-tests (Files): Likewise.
75693         * modules/c-stack-tests (Files): Likewise.
75694         * modules/c-strcase-tests (Files): Likewise.
75695         * modules/c-strcasestr-tests (Files): Likewise.
75696         * modules/c-strstr-tests (Files): Likewise.
75697         * modules/canonicalize-lgpl-tests (Files): Likewise.
75698         * modules/canonicalize-tests (Files): Likewise.
75699         * modules/carray-list-tests (Files): Likewise.
75700         * modules/ceilf-tests (Files): Likewise.
75701         * modules/ceill-tests (Files): Likewise.
75702         * modules/chown-tests (Files): Likewise.
75703         * modules/cloexec-tests (Files): Likewise.
75704         * modules/copy-file-tests (Files): Likewise.
75705         * modules/count-one-bits-tests (Files): Likewise.
75706         * modules/dprintf-posix-tests (Files): Likewise.
75707         * modules/dup2-tests (Files): Likewise.
75708         * modules/dup3-tests (Files): Likewise.
75709         * modules/duplocale-tests (Files): Likewise.
75710         * modules/fbufmode-tests (Files): Likewise.
75711         * modules/fchdir-tests (Files): Likewise.
75712         * modules/fcntl-safer-tests (Files): Likewise.
75713         * modules/fcntl-tests (Files): Likewise.
75714         * modules/fdopendir-tests (Files): Likewise.
75715         * modules/fdutimensat-tests (Files): Likewise.
75716         * modules/fflush-tests (Files): Likewise.
75717         * modules/filevercmp-tests (Files): Likewise.
75718         * modules/flock-tests (Files): Likewise.
75719         * modules/floorf-tests (Files): Likewise.
75720         * modules/floorl-tests (Files): Likewise.
75721         * modules/fnmatch-tests (Files): Likewise.
75722         * modules/fopen-safer-tests (Files): Likewise.
75723         * modules/fopen-tests (Files): Likewise.
75724         * modules/fpending-tests (Files): Likewise.
75725         * modules/fprintf-posix-tests (Files): Likewise.
75726         * modules/fpurge-tests (Files): Likewise.
75727         * modules/freadable-tests (Files): Likewise.
75728         * modules/freadahead-tests (Files): Likewise.
75729         * modules/freading-tests (Files): Likewise.
75730         * modules/freadptr-tests (Files): Likewise.
75731         * modules/freadseek-tests (Files): Likewise.
75732         * modules/freopen-tests (Files): Likewise.
75733         * modules/frexp-nolibm-tests (Files): Likewise.
75734         * modules/frexp-tests (Files): Likewise.
75735         * modules/frexpl-nolibm-tests (Files): Likewise.
75736         * modules/frexpl-tests (Files): Likewise.
75737         * modules/fseek-tests (Files): Likewise.
75738         * modules/fseeko-tests (Files): Likewise.
75739         * modules/fstrcmp-tests (Files): Likewise.
75740         * modules/fsync-tests (Files): Likewise.
75741         * modules/ftell-tests (Files): Likewise.
75742         * modules/ftello-tests (Files): Likewise.
75743         * modules/func-tests (Files): Likewise.
75744         * modules/futimens-tests (Files): Likewise.
75745         * modules/fwritable-tests (Files): Likewise.
75746         * modules/fwriting-tests (Files): Likewise.
75747         * modules/getcwd-tests (Files): Likewise.
75748         * modules/getdate-tests (Files): Likewise.
75749         * modules/getdelim-tests (Files): Likewise.
75750         * modules/getdtablesize-tests (Files): Likewise.
75751         * modules/getgroups-tests (Files): Likewise.
75752         * modules/getline-tests (Files): Likewise.
75753         * modules/getndelim2-tests (Files): Likewise.
75754         * modules/glob-tests (Files): Likewise.
75755         * modules/hash-tests (Files): Likewise.
75756         * modules/i-ring-tests (Files): Likewise.
75757         * modules/iconv-tests (Files): Likewise.
75758         * modules/iconv_open-utf-tests (Files): Likewise.
75759         * modules/idpriv-drop-tests (Files): Likewise.
75760         * modules/idpriv-droptemp-tests (Files): Likewise.
75761         * modules/inet_ntop-tests (Files): Likewise.
75762         * modules/inet_pton-tests (Files): Likewise.
75763         * modules/isblank-tests (Files): Likewise.
75764         * modules/isfinite-tests (Files): Likewise.
75765         * modules/isinf-tests (Files): Likewise.
75766         * modules/isnan-tests (Files): Likewise.
75767         * modules/isnand-nolibm-tests (Files): Likewise.
75768         * modules/isnand-tests (Files): Likewise.
75769         * modules/isnanf-nolibm-tests (Files): Likewise.
75770         * modules/isnanf-tests (Files): Likewise.
75771         * modules/isnanl-nolibm-tests (Files): Likewise.
75772         * modules/isnanl-tests (Files): Likewise.
75773         * modules/lchown-tests (Files): Likewise.
75774         * modules/ldexpl-tests (Files): Likewise.
75775         * modules/link-tests (Files): Likewise.
75776         * modules/linkat-tests (Files): Likewise.
75777         * modules/linked-list-tests (Files): Likewise.
75778         * modules/linkedhash-list-tests (Files): Likewise.
75779         * modules/localename-tests (Files): Likewise.
75780         * modules/lseek-tests (Files): Likewise.
75781         * modules/lstat-tests (Files): Likewise.
75782         * modules/mbmemcasecmp-tests (Files): Likewise.
75783         * modules/mbmemcasecoll-tests (Files): Likewise.
75784         * modules/mbrtowc-tests (Files): Likewise.
75785         * modules/mbscasecmp-tests (Files): Likewise.
75786         * modules/mbscasestr-tests (Files): Likewise.
75787         * modules/mbschr-tests (Files): Likewise.
75788         * modules/mbscspn-tests (Files): Likewise.
75789         * modules/mbsinit-tests (Files): Likewise.
75790         * modules/mbsncasecmp-tests (Files): Likewise.
75791         * modules/mbsnrtowcs-tests (Files): Likewise.
75792         * modules/mbspbrk-tests (Files): Likewise.
75793         * modules/mbspcasecmp-tests (Files): Likewise.
75794         * modules/mbsrchr-tests (Files): Likewise.
75795         * modules/mbsrtowcs-tests (Files): Likewise.
75796         * modules/mbsspn-tests (Files): Likewise.
75797         * modules/mbsstr-tests (Files): Likewise.
75798         * modules/memchr-tests (Files): Likewise.
75799         * modules/memchr2-tests (Files): Likewise.
75800         * modules/memcmp-tests (Files): Likewise.
75801         * modules/memmem-tests (Files): Likewise.
75802         * modules/memrchr-tests (Files): Likewise.
75803         * modules/mkdir-tests (Files): Likewise.
75804         * modules/mkfifo-tests (Files): Likewise.
75805         * modules/mkfifoat-tests (Files): Likewise.
75806         * modules/mknod-tests (Files): Likewise.
75807         * modules/nanosleep-tests (Files): Likewise.
75808         * modules/nl_langinfo-tests (Files): Likewise.
75809         * modules/obstack-printf-tests (Files): Likewise.
75810         * modules/open-tests (Files): Likewise.
75811         * modules/openat-tests (Files): Likewise.
75812         * modules/pipe-filter-gi-tests (Files): Likewise.
75813         * modules/pipe-filter-ii-tests (Files): Likewise.
75814         * modules/pipe2-tests (Files): Likewise.
75815         * modules/popen-safer-tests (Files): Likewise.
75816         * modules/popen-tests (Files): Likewise.
75817         * modules/posixtm-tests (Files): Likewise.
75818         * modules/pread-tests (Files): Likewise.
75819         * modules/printf-frexp-tests (Files): Likewise.
75820         * modules/printf-frexpl-tests (Files): Likewise.
75821         * modules/printf-posix-tests (Files): Likewise.
75822         * modules/priv-set-tests (Files): Likewise.
75823         * modules/quotearg-tests (Files): Likewise.
75824         * modules/random_r-tests (Files): Likewise.
75825         * modules/rawmemchr-tests (Files): Likewise.
75826         * modules/rbtree-list-tests (Files): Likewise.
75827         * modules/rbtree-oset-tests (Files): Likewise.
75828         * modules/rbtreehash-list-tests (Files): Likewise.
75829         * modules/readlink-tests (Files): Likewise.
75830         * modules/remove-tests (Files): Likewise.
75831         * modules/rename-tests (Files): Likewise.
75832         * modules/renameat-tests (Files): Likewise.
75833         * modules/rmdir-tests (Files): Likewise.
75834         * modules/round-tests (Files): Likewise.
75835         * modules/roundf-tests (Files): Likewise.
75836         * modules/roundl-tests (Files): Likewise.
75837         * modules/safe-alloc-tests (Files): Likewise.
75838         * modules/setenv-tests (Files): Likewise.
75839         * modules/sigaction-tests (Files): Likewise.
75840         * modules/signbit-tests (Files): Likewise.
75841         * modules/sleep-tests (Files): Likewise.
75842         * modules/snprintf-posix-tests (Files): Likewise.
75843         * modules/snprintf-tests (Files): Likewise.
75844         * modules/sprintf-posix-tests (Files): Likewise.
75845         * modules/stat-tests (Files): Likewise.
75846         * modules/stat-time-tests (Files): Likewise.
75847         * modules/strcasestr-tests (Files): Likewise.
75848         * modules/strchrnul-tests (Files): Likewise.
75849         * modules/strerror-tests (Files): Likewise.
75850         * modules/striconv-tests (Files): Likewise.
75851         * modules/striconveh-tests (Files): Likewise.
75852         * modules/striconveha-tests (Files): Likewise.
75853         * modules/strsignal-tests (Files): Likewise.
75854         * modules/strstr-tests (Files): Likewise.
75855         * modules/strtod-tests (Files): Likewise.
75856         * modules/strverscmp-tests (Files): Likewise.
75857         * modules/symlink-tests (Files): Likewise.
75858         * modules/symlinkat-tests (Files): Likewise.
75859         * modules/trunc-tests (Files): Likewise.
75860         * modules/truncf-tests (Files): Likewise.
75861         * modules/truncl-tests (Files): Likewise.
75862         * modules/uname-tests (Files): Likewise.
75863         * modules/unicase/cased-tests (Files): Likewise.
75864         * modules/unicase/ignorable-tests (Files): Likewise.
75865         * modules/unicase/locale-language-tests (Files): Likewise.
75866         * modules/unicase/tolower-tests (Files): Likewise.
75867         * modules/unicase/totitle-tests (Files): Likewise.
75868         * modules/unicase/toupper-tests (Files): Likewise.
75869         * modules/unicase/u8-casecmp-tests (Files): Likewise.
75870         * modules/unicase/u8-casecoll-tests (Files): Likewise.
75871         * modules/unicase/u8-casefold-tests (Files): Likewise.
75872         * modules/unicase/u8-is-cased-tests (Files): Likewise.
75873         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
75874         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
75875         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
75876         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
75877         * modules/unicase/u8-tolower-tests (Files): Likewise.
75878         * modules/unicase/u8-totitle-tests (Files): Likewise.
75879         * modules/unicase/u8-toupper-tests (Files): Likewise.
75880         * modules/unicase/u16-casecmp-tests (Files): Likewise.
75881         * modules/unicase/u16-casecoll-tests (Files): Likewise.
75882         * modules/unicase/u16-casefold-tests (Files): Likewise.
75883         * modules/unicase/u16-is-cased-tests (Files): Likewise.
75884         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
75885         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
75886         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
75887         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
75888         * modules/unicase/u16-tolower-tests (Files): Likewise.
75889         * modules/unicase/u16-totitle-tests (Files): Likewise.
75890         * modules/unicase/u16-toupper-tests (Files): Likewise.
75891         * modules/unicase/u32-casecmp-tests (Files): Likewise.
75892         * modules/unicase/u32-casecoll-tests (Files): Likewise.
75893         * modules/unicase/u32-casefold-tests (Files): Likewise.
75894         * modules/unicase/u32-is-cased-tests (Files): Likewise.
75895         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
75896         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
75897         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
75898         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
75899         * modules/unicase/u32-tolower-tests (Files): Likewise.
75900         * modules/unicase/u32-totitle-tests (Files): Likewise.
75901         * modules/unicase/u32-toupper-tests (Files): Likewise.
75902         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
75903         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
75904         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
75905         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
75906         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
75907         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
75908         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
75909         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
75910         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
75911         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
75912         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
75913         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
75914         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
75915         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
75916         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
75917         * modules/unictype/bidicategory-name-tests (Files): Likewise.
75918         * modules/unictype/bidicategory-of-tests (Files): Likewise.
75919         * modules/unictype/bidicategory-test-tests (Files): Likewise.
75920         * modules/unictype/block-list-tests (Files): Likewise.
75921         * modules/unictype/block-of-tests (Files): Likewise.
75922         * modules/unictype/block-test-tests (Files): Likewise.
75923         * modules/unictype/category-C-tests (Files): Likewise.
75924         * modules/unictype/category-Cc-tests (Files): Likewise.
75925         * modules/unictype/category-Cf-tests (Files): Likewise.
75926         * modules/unictype/category-Cn-tests (Files): Likewise.
75927         * modules/unictype/category-Co-tests (Files): Likewise.
75928         * modules/unictype/category-Cs-tests (Files): Likewise.
75929         * modules/unictype/category-L-tests (Files): Likewise.
75930         * modules/unictype/category-Ll-tests (Files): Likewise.
75931         * modules/unictype/category-Lm-tests (Files): Likewise.
75932         * modules/unictype/category-Lo-tests (Files): Likewise.
75933         * modules/unictype/category-Lt-tests (Files): Likewise.
75934         * modules/unictype/category-Lu-tests (Files): Likewise.
75935         * modules/unictype/category-M-tests (Files): Likewise.
75936         * modules/unictype/category-Mc-tests (Files): Likewise.
75937         * modules/unictype/category-Me-tests (Files): Likewise.
75938         * modules/unictype/category-Mn-tests (Files): Likewise.
75939         * modules/unictype/category-N-tests (Files): Likewise.
75940         * modules/unictype/category-Nd-tests (Files): Likewise.
75941         * modules/unictype/category-Nl-tests (Files): Likewise.
75942         * modules/unictype/category-No-tests (Files): Likewise.
75943         * modules/unictype/category-P-tests (Files): Likewise.
75944         * modules/unictype/category-Pc-tests (Files): Likewise.
75945         * modules/unictype/category-Pd-tests (Files): Likewise.
75946         * modules/unictype/category-Pe-tests (Files): Likewise.
75947         * modules/unictype/category-Pf-tests (Files): Likewise.
75948         * modules/unictype/category-Pi-tests (Files): Likewise.
75949         * modules/unictype/category-Po-tests (Files): Likewise.
75950         * modules/unictype/category-Ps-tests (Files): Likewise.
75951         * modules/unictype/category-S-tests (Files): Likewise.
75952         * modules/unictype/category-Sc-tests (Files): Likewise.
75953         * modules/unictype/category-Sk-tests (Files): Likewise.
75954         * modules/unictype/category-Sm-tests (Files): Likewise.
75955         * modules/unictype/category-So-tests (Files): Likewise.
75956         * modules/unictype/category-Z-tests (Files): Likewise.
75957         * modules/unictype/category-Zl-tests (Files): Likewise.
75958         * modules/unictype/category-Zp-tests (Files): Likewise.
75959         * modules/unictype/category-Zs-tests (Files): Likewise.
75960         * modules/unictype/category-and-not-tests (Files): Likewise.
75961         * modules/unictype/category-and-tests (Files): Likewise.
75962         * modules/unictype/category-byname-tests (Files): Likewise.
75963         * modules/unictype/category-name-tests (Files): Likewise.
75964         * modules/unictype/category-none-tests (Files): Likewise.
75965         * modules/unictype/category-of-tests (Files): Likewise.
75966         * modules/unictype/category-or-tests (Files): Likewise.
75967         * modules/unictype/category-test-withtable-tests (Files): Likewise.
75968         * modules/unictype/combining-class-tests (Files): Likewise.
75969         * modules/unictype/ctype-alnum-tests (Files): Likewise.
75970         * modules/unictype/ctype-alpha-tests (Files): Likewise.
75971         * modules/unictype/ctype-blank-tests (Files): Likewise.
75972         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
75973         * modules/unictype/ctype-digit-tests (Files): Likewise.
75974         * modules/unictype/ctype-graph-tests (Files): Likewise.
75975         * modules/unictype/ctype-lower-tests (Files): Likewise.
75976         * modules/unictype/ctype-print-tests (Files): Likewise.
75977         * modules/unictype/ctype-punct-tests (Files): Likewise.
75978         * modules/unictype/ctype-space-tests (Files): Likewise.
75979         * modules/unictype/ctype-upper-tests (Files): Likewise.
75980         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
75981         * modules/unictype/decimal-digit-tests (Files): Likewise.
75982         * modules/unictype/digit-tests (Files): Likewise.
75983         * modules/unictype/mirror-tests (Files): Likewise.
75984         * modules/unictype/numeric-tests (Files): Likewise.
75985         * modules/unictype/property-alphabetic-tests (Files): Likewise.
75986         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
75987         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
75988         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
75989         Likewise.
75990         * modules/unictype/property-bidi-block-separator-tests (Files):
75991         Likewise.
75992         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
75993         Likewise.
75994         * modules/unictype/property-bidi-common-separator-tests (Files):
75995         Likewise.
75996         * modules/unictype/property-bidi-control-tests (Files): Likewise.
75997         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
75998         Likewise.
75999         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
76000         Likewise.
76001         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
76002         Likewise.
76003         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
76004         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
76005         Likewise.
76006         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
76007         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
76008         Likewise.
76009         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
76010         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
76011         * modules/unictype/property-bidi-segment-separator-tests (Files):
76012         Likewise.
76013         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
76014         * modules/unictype/property-byname-tests (Files): Likewise.
76015         * modules/unictype/property-combining-tests (Files): Likewise.
76016         * modules/unictype/property-composite-tests (Files): Likewise.
76017         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
76018         * modules/unictype/property-dash-tests (Files): Likewise.
76019         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
76020         * modules/unictype/property-default-ignorable-code-point-tests (Files):
76021         Likewise.
76022         * modules/unictype/property-deprecated-tests (Files): Likewise.
76023         * modules/unictype/property-diacritic-tests (Files): Likewise.
76024         * modules/unictype/property-extender-tests (Files): Likewise.
76025         * modules/unictype/property-format-control-tests (Files): Likewise.
76026         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
76027         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
76028         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
76029         * modules/unictype/property-hex-digit-tests (Files): Likewise.
76030         * modules/unictype/property-hyphen-tests (Files): Likewise.
76031         * modules/unictype/property-id-continue-tests (Files): Likewise.
76032         * modules/unictype/property-id-start-tests (Files): Likewise.
76033         * modules/unictype/property-ideographic-tests (Files): Likewise.
76034         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
76035         * modules/unictype/property-ids-trinary-operator-tests (Files):
76036         Likewise.
76037         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
76038         * modules/unictype/property-iso-control-tests (Files): Likewise.
76039         * modules/unictype/property-join-control-tests (Files): Likewise.
76040         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
76041         * modules/unictype/property-line-separator-tests (Files): Likewise.
76042         * modules/unictype/property-logical-order-exception-tests (Files):
76043         Likewise.
76044         * modules/unictype/property-lowercase-tests (Files): Likewise.
76045         * modules/unictype/property-math-tests (Files): Likewise.
76046         * modules/unictype/property-non-break-tests (Files): Likewise.
76047         * modules/unictype/property-not-a-character-tests (Files): Likewise.
76048         * modules/unictype/property-numeric-tests (Files): Likewise.
76049         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
76050         * modules/unictype/property-other-default-ignorable-code-point-tests
76051         (Files): Likewise.
76052         * modules/unictype/property-other-grapheme-extend-tests (Files):
76053         Likewise.
76054         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
76055         * modules/unictype/property-other-id-start-tests (Files): Likewise.
76056         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
76057         * modules/unictype/property-other-math-tests (Files): Likewise.
76058         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
76059         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
76060         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
76061         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
76062         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
76063         * modules/unictype/property-private-use-tests (Files): Likewise.
76064         * modules/unictype/property-punctuation-tests (Files): Likewise.
76065         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
76066         * modules/unictype/property-radical-tests (Files): Likewise.
76067         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
76068         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
76069         * modules/unictype/property-space-tests (Files): Likewise.
76070         * modules/unictype/property-terminal-punctuation-tests (Files):
76071         Likewise.
76072         * modules/unictype/property-test-tests (Files): Likewise.
76073         * modules/unictype/property-titlecase-tests (Files): Likewise.
76074         * modules/unictype/property-unassigned-code-value-tests (Files):
76075         Likewise.
76076         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
76077         * modules/unictype/property-uppercase-tests (Files): Likewise.
76078         * modules/unictype/property-variation-selector-tests (Files): Likewise.
76079         * modules/unictype/property-white-space-tests (Files): Likewise.
76080         * modules/unictype/property-xid-continue-tests (Files): Likewise.
76081         * modules/unictype/property-xid-start-tests (Files): Likewise.
76082         * modules/unictype/property-zero-width-tests (Files): Likewise.
76083         * modules/unictype/scripts-tests (Files): Likewise.
76084         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
76085         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
76086         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
76087         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
76088         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
76089         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
76090         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
76091         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
76092         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
76093         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
76094         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
76095         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
76096         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
76097         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
76098         * modules/uninorm/composition-tests (Files): Likewise.
76099         * modules/uninorm/decomposing-form-tests (Files): Likewise.
76100         * modules/uninorm/decomposition-tests (Files): Likewise.
76101         * modules/uninorm/filter-tests (Files): Likewise.
76102         * modules/uninorm/nfc-tests (Files): Likewise.
76103         * modules/uninorm/nfd-tests (Files): Likewise.
76104         * modules/uninorm/nfkc-tests (Files): Likewise.
76105         * modules/uninorm/nfkd-tests (Files): Likewise.
76106         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
76107         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
76108         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
76109         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
76110         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
76111         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
76112         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
76113         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
76114         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
76115         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
76116         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
76117         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
76118         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
76119         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
76120         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
76121         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
76122         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
76123         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
76124         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
76125         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
76126         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
76127         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
76128         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
76129         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
76130         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
76131         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
76132         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
76133         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
76134         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
76135         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
76136         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
76137         * modules/uniwidth/u8-width-tests (Files): Likewise.
76138         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
76139         * modules/uniwidth/u16-width-tests (Files): Likewise.
76140         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
76141         * modules/uniwidth/u32-width-tests (Files): Likewise.
76142         * modules/uniwidth/width-tests (Files): Likewise.
76143         * modules/unlink-tests (Files): Likewise.
76144         * modules/unsetenv-tests (Files): Likewise.
76145         * modules/usleep-tests (Files): Likewise.
76146         * modules/utimens-tests (Files): Likewise.
76147         * modules/utimensat-tests (Files): Likewise.
76148         * modules/vasnprintf-posix-tests (Files): Likewise.
76149         * modules/vasnprintf-tests (Files): Likewise.
76150         * modules/vasprintf-posix-tests (Files): Likewise.
76151         * modules/vasprintf-tests (Files): Likewise.
76152         * modules/vdprintf-posix-tests (Files): Likewise.
76153         * modules/vfprintf-posix-tests (Files): Likewise.
76154         * modules/vprintf-posix-tests (Files): Likewise.
76155         * modules/vsnprintf-posix-tests (Files): Likewise.
76156         * modules/vsnprintf-tests (Files): Likewise.
76157         * modules/vsprintf-posix-tests (Files): Likewise.
76158         * modules/wcrtomb-tests (Files): Likewise.
76159         * modules/wcsnrtombs-tests (Files): Likewise.
76160         * modules/wcsrtombs-tests (Files): Likewise.
76161         * modules/wctype-tests (Files): Likewise.
76162         * modules/wcwidth-tests (Files): Likewise.
76163         * modules/xmemdup0-tests (Files): Likewise.
76164         * modules/xprintf-posix-tests (Files): Likewise.
76165         * modules/xvasprintf-tests (Files): Likewise.
76167 2009-12-24  Eric Blake  <ebb9@byu.net>
76169         test-nanosleep: fix typo
76170         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
76171         patch.
76172         Reported by Bruno Haible.
76174 2009-12-24  Bruno Haible  <bruno@clisp.org>
76176         Reduce namespace pollution on glibc systems.
76177         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
76178         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
76179         systems.
76180         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
76181         <getopt.h> on glibc systems.
76182         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
76183         systems.
76184         * lib/fcntl.c: Include <unistd.h> here instead.
76186 2009-12-24  Bruno Haible  <bruno@clisp.org>
76188         * lib/stdlib.in.h (includes): Fix typo in today's commit.
76190 2009-12-24  Eric Blake  <ebb9@byu.net>
76192         tests: add signature checks
76193         * tests/signature.h (SIGNATURE_CHECK): New file.
76194         * modules/atexit-tests (Files): Use it.
76195         * modules/btowc-tests (Files): Likewise.
76196         * modules/canonicalize-lgpl-tests (Files): Likewise.
76197         * modules/ceilf-tests (Files): Likewise.
76198         * modules/ceill-tests (Files): Likewise.
76199         * modules/chown-tests (Files): Likewise.
76200         * modules/dprintf-posix-tests (Files): Likewise.
76201         * modules/dup2-tests (Files): Likewise.
76202         * modules/dup3-tests (Files): Likewise.
76203         * modules/duplocale-tests (Files): Likewise.
76204         * modules/fchdir-tests (Files): Likewise.
76205         * modules/fcntl-tests (Files): Likewise.
76206         * modules/fdopendir-tests (Files): Likewise.
76207         * modules/fflush-tests (Files): Likewise.
76208         * modules/flock-tests (Files): Likewise.
76209         * modules/floorf-tests (Files): Likewise.
76210         * modules/floorl-tests (Files): Likewise.
76211         * modules/fnmatch-tests (Files): Likewise.
76212         * modules/fopen-tests (Files): Likewise.
76213         * modules/fprintf-posix-tests (Files): Likewise.
76214         * modules/freopen-tests (Files): Likewise.
76215         * modules/frexp-nolibm-tests (Files): Likewise.
76216         * modules/frexp-tests (Files): Likewise.
76217         * modules/frexpl-nolibm-tests (Files): Likewise.
76218         * modules/frexpl-tests (Files): Likewise.
76219         * modules/fseek-tests (Files): Likewise.
76220         * modules/fseeko-tests (Files): Likewise.
76221         * modules/fsync-tests (Files): Likewise.
76222         * modules/ftell-tests (Files): Likewise.
76223         * modules/ftello-tests (Files): Likewise.
76224         * modules/futimens-tests (Files): Likewise.
76225         * modules/getaddrinfo-tests (Files): Likewise.
76226         * modules/getcwd-tests (Files): Likewise.
76227         * modules/getdelim-tests (Files): Likewise.
76228         * modules/getdtablesize-tests (Files): Likewise.
76229         * modules/getgroups-tests (Files): Likewise.
76230         * modules/gethostname-tests (Files): Likewise.
76231         * modules/getline-tests (Files): Likewise.
76232         * modules/getopt-posix-tests (Files): Likewise.
76233         * modules/gettimeofday-tests (Files): Likewise.
76234         * modules/glob-tests (Files): Likewise.
76235         * modules/iconv-tests (Files): Likewise.
76236         * modules/inet_ntop-tests (Files): Likewise.
76237         * modules/inet_pton-tests (Files): Likewise.
76238         * modules/isblank-tests (Files): Likewise.
76239         * modules/lchown-tests (Files): Likewise.
76240         * modules/ldexpl-tests (Files): Likewise.
76241         * modules/link-tests (Files): Likewise.
76242         * modules/linkat-tests (Files): Likewise.
76243         * modules/lseek-tests (Files): Likewise.
76244         * modules/lstat-tests (Files): Likewise.
76245         * modules/mbrtowc-tests (Files): Likewise.
76246         * modules/mbsinit-tests (Files): Likewise.
76247         * modules/mbsnrtowcs-tests (Files): Likewise.
76248         * modules/mbsrtowcs-tests (Files): Likewise.
76249         * modules/memchr-tests (Files): Likewise.
76250         * modules/memcmp-tests (Files): Likewise.
76251         * modules/memmem-tests (Files): Likewise.
76252         * modules/memrchr-tests (Files): Likewise.
76253         * modules/mkdir-tests (Files): Likewise.
76254         * modules/mkfifo-tests (Files): Likewise.
76255         * modules/mkfifoat-tests (Files): Likewise.
76256         * modules/mknod-tests (Files): Likewise.
76257         * modules/nanosleep-tests (Files): Likewise.
76258         * modules/nl_langinfo-tests (Files): Likewise.
76259         * modules/obstack-printf-tests (Files): Likewise.
76260         * modules/open-tests (Files): Likewise.
76261         * modules/openat-tests (Files): Likewise.
76262         * modules/perror-tests (Files): Likewise.
76263         * modules/pipe2-tests (Files): Likewise.
76264         * modules/poll-tests (Files): Likewise.
76265         * modules/popen-tests (Files): Likewise.
76266         * modules/posix_spawn-tests (Files): Likewise.
76267         * modules/posix_spawnp-tests (Files): Likewise.
76268         * modules/pread-tests (Files): Likewise.
76269         * modules/printf-posix-tests (Files): Likewise.
76270         * modules/pty-tests (Files): Likewise.
76271         * modules/random_r-tests (Files): Likewise.
76272         * modules/rawmemchr-tests (Files): Likewise.
76273         * modules/readlink-tests (Files): Likewise.
76274         * modules/remove-tests (Files): Likewise.
76275         * modules/rename-tests (Files): Likewise.
76276         * modules/renameat-tests (Files): Likewise.
76277         * modules/rmdir-tests (Files): Likewise.
76278         * modules/round-tests (Files): Likewise.
76279         * modules/roundf-tests (Files): Likewise.
76280         * modules/roundl-tests (Files): Likewise.
76281         * modules/select-tests (Files): Likewise.
76282         * modules/setenv-tests (Files): Likewise.
76283         * modules/sigaction-tests (Files): Likewise.
76284         * modules/sleep-tests (Files): Likewise.
76285         * modules/snprintf-posix-tests (Files): Likewise.
76286         * modules/snprintf-tests (Files): Likewise.
76287         * modules/sprintf-posix-tests (Files): Likewise.
76288         * modules/stat-tests (Files): Likewise.
76289         * modules/strcasestr-tests (Files): Likewise.
76290         * modules/strchrnul-tests (Files): Likewise.
76291         * modules/strerror-tests (Files): Likewise.
76292         * modules/strsignal-tests (Files): Likewise.
76293         * modules/strstr-tests (Files): Likewise.
76294         * modules/strtod-tests (Files): Likewise.
76295         * modules/strverscmp-tests (Files): Likewise.
76296         * modules/symlink-tests (Files): Likewise.
76297         * modules/symlinkat-tests (Files): Likewise.
76298         * modules/times-tests (Files): Likewise.
76299         * modules/trunc-tests (Files): Likewise.
76300         * modules/truncf-tests (Files): Likewise.
76301         * modules/truncl-tests (Files): Likewise.
76302         * modules/tsearch-tests (Files): Likewise.
76303         * modules/uname-tests (Files): Likewise.
76304         * modules/unlink-tests (Files): Likewise.
76305         * modules/unsetenv-tests (Files): Likewise.
76306         * modules/usleep-tests (Files): Likewise.
76307         * modules/utimensat-tests (Files): Likewise.
76308         * modules/vasprintf-tests (Files): Likewise.
76309         * modules/vdprintf-posix-tests (Files): Likewise.
76310         * modules/vfprintf-posix-tests (Files): Likewise.
76311         * modules/vprintf-posix-tests (Files): Likewise.
76312         * modules/vsnprintf-posix-tests (Files): Likewise.
76313         * modules/vsnprintf-tests (Files): Likewise.
76314         * modules/vsprintf-posix-tests (Files): Likewise.
76315         * modules/wcrtomb-tests (Files): Likewise.
76316         * modules/wcsnrtombs-tests (Files): Likewise.
76317         * modules/wcsrtombs-tests (Files): Likewise.
76318         * modules/wcwidth-tests (Files): Likewise.
76319         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
76320         * tests/test-isinf.c (isinf): Likewise.
76321         * tests/test-isnan.c (isnan): Likewise.
76322         * tests/test-signbit.c (signbit): Likewise.
76323         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
76324         declaration, either as macro or with correct signature.
76325         (select): Ensure function under test is declared with correct
76326         signature in correct header.
76327         * tests/test-atexit.c (atexit): Likewise.
76328         * tests/test-btowc.c (btowc): Likewise.
76329         * tests/test-canonicalize-lgpl.c (realpath)
76330         (canonicalize_file_name): Likewise.
76331         * tests/test-ceilf1.c (ceilf): Likewise.
76332         * tests/test-ceill.c (ceill): Likewise.
76333         * tests/test-chown.c (chown): Likewise.
76334         * tests/test-dprintf-posix.c (dprintf): Likewise.
76335         * tests/test-dup2.c (dup2): Likewise.
76336         * tests/test-dup3.c (dup3): Likewise.
76337         * tests/test-duplocale.c (duplocale): Likewise.
76338         * tests/test-fchdir.c (fchdir): Likewise.
76339         * tests/test-fchownat.c (fchownat): Likewise.
76340         * tests/test-fcntl.c (fcntl): Likewise.
76341         * tests/test-fdopendir.c (fdopendir): Likewise.
76342         * tests/test-fflush.c (fflush): Likewise.
76343         * tests/test-flock.c (flock): Likewise.
76344         * tests/test-floorf1.c (floorf): Likewise.
76345         * tests/test-floorl.c (floorl): Likewise.
76346         * tests/test-fnmatch.c (fnmatch): Likewise.
76347         * tests/test-fopen.c (fopen): Likewise.
76348         * tests/test-fprintf-posix.c (fprintf): Likewise.
76349         * tests/test-freopen.c (freopen): Likewise.
76350         * tests/test-frexp.c (frexp): Likewise.
76351         * tests/test-frexpl.c (frexpl): Likewise.
76352         * tests/test-fseek.c (fseek): Likewise.
76353         * tests/test-fseeko.c (fseeko): Likewise.
76354         * tests/test-fstatat.c (fstatat): Likewise.
76355         * tests/test-fsync.c (fsync): Likewise.
76356         * tests/test-ftell.c (ftell): Likewise.
76357         * tests/test-ftello.c (ftello): Likewise.
76358         * tests/test-futimens.c (futimens): Likewise.
76359         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
76360         (gai_strerror): Likewise.
76361         * tests/test-getcwd.c (getcwd): Likewise.
76362         * tests/test-getdelim.c (getdelim): Likewise.
76363         * tests/test-getdtablesize.c (getdtablesize): Likewise.
76364         * tests/test-getgroups.c (getgroups): Likewise.
76365         * tests/test-gethostname.c (gethostname): Likewise.
76366         * tests/test-getline.c (getline): Likewise.
76367         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
76368         Likewise.
76369         * tests/test-gettimeofday.c (gettimeofday): Likewise.
76370         * tests/test-glob.c (glob, globfree): Likewise.
76371         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
76372         * tests/test-inet_ntop.c (inet_ntop): Likewise.
76373         * tests/test-inet_pton.c (inet_pton): Likewise.
76374         * tests/test-isblank.c (isblank): Likewise.
76375         * tests/test-lchown.c (lchown): Likewise.
76376         * tests/test-ldexpl.c (ldexpl): Likewise.
76377         * tests/test-link.c (link): Likewise.
76378         * tests/test-linkat.c (linkat): Likewise.
76379         * tests/test-lseek.c (lseek): Likewise.
76380         * tests/test-lstat.c (lstat): Likewise.
76381         * tests/test-mbrtowc.c (mbrtowc): Likewise.
76382         * tests/test-mbsinit.c (mbsinit): Likewise.
76383         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
76384         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
76385         * tests/test-memchr.c (memchr): Likewise.
76386         * tests/test-memcmp.c (memcmp): Likewise.
76387         * tests/test-memmem.c (memmem): Likewise.
76388         * tests/test-memrchr.c (memrchr): Likewise.
76389         * tests/test-mkdir.c (mkdir): Likewise.
76390         * tests/test-mkdirat.c (mkdirat): Likewise.
76391         * tests/test-mkfifo.c (mkfifo): Likewise.
76392         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
76393         * tests/test-mknod.c (mknod): Likewise.
76394         * tests/test-nanosleep.c (nanosleep): Likewise.
76395         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
76396         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
76397         Likewise.
76398         * tests/test-open.c (open): Likewise.
76399         * tests/test-openat.c (openat): Likewise.
76400         * tests/test-perror.c (perror): Likewise.
76401         * tests/test-pipe2.c (pipe2): Likewise.
76402         * tests/test-poll.c (poll): Likewise.
76403         * tests/test-popen.c (popen, pclose): Likewise.
76404         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
76405         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
76406         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
76407         (posix_spawn_file_actions_destroy)
76408         (posix_spawn_file_actions_addclose)
76409         (posix_spawn_file_actions_addopen)
76410         (posix_spawn_file_actions_adddup2): Likewise.
76411         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
76412         * tests/test-pread.c (pread): Likewise.
76413         * tests/test-printf-posix.c (printf): Likewise.
76414         * tests/test-pty.c (openpty, forkpty): Likewise.
76415         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
76416         (random_r): Likewise.
76417         * tests/test-rawmemchr.c (rawmemchr): Likewise.
76418         * tests/test-readlink.c (readlink): Likewise.
76419         * tests/test-remove.c (remove): Likewise.
76420         * tests/test-rename.c (rename): Likewise.
76421         * tests/test-renameat.c (renameat): Likewise.
76422         * tests/test-rmdir.c (rmdir): Likewise.
76423         * tests/test-round1.c (round): Likewise.
76424         * tests/test-roundf1.c (roundf): Likewise.
76425         * tests/test-roundl.c (roundl): Likewise.
76426         * tests/test-setenv.c (setenv): Likewise.
76427         * tests/test-sigaction.c (sigaction): Likewise.
76428         * tests/test-sleep.c (sleep): Likewise.
76429         * tests/test-snprintf.c (snprintf): Likewise.
76430         * tests/test-sprintf-posix.c (sprintf): Likewise.
76431         * tests/test-stat.c (stat): Likewise.
76432         * tests/test-stpncpy.c (stpncpy): Likewise.
76433         * tests/test-strcasestr.c (strcasestr): Likewise.
76434         * tests/test-strchrnul.c (strchrnul): Likewise.
76435         * tests/test-strerror.c (strerror): Likewise.
76436         * tests/test-strsignal.c (strsignal): Likewise.
76437         * tests/test-strstr.c (strstr): Likewise.
76438         * tests/test-strtod.c (strtod): Likewise.
76439         * tests/test-strverscmp.c (strverscmp): Likewise.
76440         * tests/test-symlink.c (symlink): Likewise.
76441         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
76442         * tests/test-times.c (times): Likewise.
76443         * tests/test-trunc1.c (trunc): Likewise.
76444         * tests/test-truncf1.c (truncf): Likewise.
76445         * tests/test-truncl.c (truncl): Likewise.
76446         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
76447         Likewise.
76448         * tests/test-uname.c (uname): Likewise.
76449         * tests/test-unlink.c (unlink): Likewise.
76450         * tests/test-unlinkat.c (unlinkat): Likewise.
76451         * tests/test-unsetenv.c (unsetenv): Likewise.
76452         * tests/test-usleep.c (usleep): Likewise.
76453         * tests/test-utimensat.c (utimensat): Likewise.
76454         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
76455         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
76456         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
76457         * tests/test-vprintf-posix.c (vprintf): Likewise.
76458         * tests/test-vsnprintf.c (vsnprintf): Likewise.
76459         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
76460         * tests/test-wcrtomb.c (wcrtomb): Likewise.
76461         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
76462         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
76463         * tests/test-wcwidth.c (wcwidth): Likewise.
76465         build: pull in conditional headers during GNULIB_POSIXCHECK
76466         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
76467         definitions from any conditionally-included headers.
76468         * lib/stdlib.in.h (includes): Likewise.
76469         * lib/unistd.in.h (includes): Likewise.
76471 2009-12-24  Bruno Haible  <bruno@clisp.org>
76473         * tests/test-argv-iter.c: Include header file being tested immediately
76474         after config.h.
76475         * tests/test-base64.c: Likewise.
76476         * tests/test-flock.c: Likewise.
76477         * tests/test-fsync.c: Likewise.
76478         * tests/test-getdate.c: Likewise.
76479         * tests/test-getndelim2.c: Likewise.
76480         * tests/test-isfinite.c: Likewise.
76481         * tests/test-isinf.c: Likewise.
76482         * tests/test-strerror.c: Likewise.
76483         * tests/test-strsignal.c: Likewise.
76485 2009-12-23  Eric Blake  <ebb9@byu.net>
76487         unistd: work around cygwin bug
76488         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
76489         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
76490         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
76492 2009-12-23  Bruno Haible  <bruno@clisp.org>
76494         localename: More tests.
76495         * tests/test-localename.c (SIZEOF): New macro.
76496         (categories): New variable.
76497         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
76498         test_locale_name_default): Add test w.r.t. thread locale.
76499         (test_locale_name_thread): New function.
76500         (main): Invoke it.
76502         localename: Make aware of thread locale.
76503         * lib/localename.h (gl_locale_name_thread): New declaration.
76504         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
76505         behaviour with respect to thread locale.
76506         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
76507         <langinfo.h>, glthread/lock.h.
76508         (SIZE_BITS): New macro.
76509         (string_hash): New function.
76510         (struct hash_node): New type.
76511         (HASH_TABLE_SIZE): New macro.
76512         (struniq_hash_table, struniq_lock): New variables.
76513         (struniq): New function.
76514         (gl_locale_name_thread): New function.
76515         (gl_locale_name): Invoke it.
76516         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
76517         * modules/localename (Depends-on): Add lock.
76518         Reported by Mike Gran <spk121@yahoo.com>.
76520 2009-12-23  Eric Blake  <ebb9@byu.net>
76522         va-args: new module
76523         * modules/va-args: New file.
76524         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
76525         * MODULES.html.sh (Core language properties): Mention it.
76527         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
76528         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
76529         named alias for __attribute__((__unused__)).
76530         * lib/chown.c: Update client.
76531         * lib/fchmodat.c: Likewise.
76532         * lib/fts.c: Likewise.
76533         * lib/getdate.y: Likewise.
76534         * lib/getgroups.c: Likewise.
76535         * lib/getopt.c: Likewise.
76536         * lib/getugroups.c: Likewise.
76537         * lib/mkdir.c: Likewise.
76538         * lib/mkfifo.c: Likewise.
76539         * lib/mkfifoat.c: Likewise.
76540         * lib/mknod.c: Likewise.
76541         * lib/mknodat.c: Likewise.
76542         * lib/readlink.c: Likewise.
76543         * lib/se-context.in.h: Likewise.
76544         * lib/se-selinux.in.h: Likewise.
76545         * lib/sockets.c: Likewise.
76546         * lib/symlink.c: Likewise.
76547         * lib/symlinkat.c: Likewise.
76548         * lib/unicodeio.c: Likewise.
76549         * lib/unistr.h: Likewise.
76550         * tests/test-areadlink.c: Likewise.
76551         * tests/test-areadlinkat.c: Likewise.
76552         * tests/test-filenamecat.c: Likewise.
76553         * tests/test-fseeko.c: Likewise.
76554         * tests/test-ftello.c: Likewise.
76555         * tests/test-getdate.c: Likewise.
76556         * tests/test-getgroups.c: Likewise.
76557         * tests/test-gethostname.c: Likewise.
76558         * tests/test-quotearg.c: Likewise.
76559         * tests/test-version-etc.c: Likewise.
76560         * tests/test-xalloc-die.c: Likewise.
76561         * tests/test-xfprintf-posix.c: Likewise.
76562         * tests/test-xprintf-posix.c: Likewise.
76563         * tests/test-xvasprintf.c: Likewise.
76565         tests: avoid compiler warnings
76566         * tests/test-fcntl.c (main): Delete unused parameters.
76567         * tests/test-freopen-safer.c (main): Likewise.
76568         * tests/test-xalloc-die.c (main): Mark unused parameters.
76569         * tests/test-fseeko.c (main): Likewise.
76570         * tests/test-ftello.c (main): Likewise.
76571         * tests/test-nanosleep.c (main): Avoid declaration warning.
76572         * tests/test-sleep.c (main): Likewise.
76573         * tests/test-unsetenv.c (main): Silence warning about string
76574         literal.
76575         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
76577 2009-12-23  Bruno Haible  <bruno@clisp.org>
76579         * tests/test-localename.c (test_locale_name): New function, extracted
76580         from main. Also test mixed situations.
76581         (test_locale_name_posix, test_locale_name_environ,
76582         test_locale_name_default): New functions.
76583         (main): Invoke them all.
76584         * modules/localename-tests (configure.ac): Test for newlocale.
76586 2009-12-23  Bruno Haible  <bruno@clisp.org>
76588         unistd: Ensure getcwd gets declared before being overridden.
76589         * lib/unistd.in.h: Conditionally include <io.h>.
76591 2009-12-22  Bruno Haible  <bruno@clisp.org>
76593         wchar: Diagnose broken combination of glibc and gcc versions and flags.
76594         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
76595         (gl_WCHAR_H): Invoke it.
76596         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
76597         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
76598         Reported by Karl Berry <karl@freefriends.org>.
76600 2009-12-22  Eric Blake  <ebb9@byu.net>
76602         math, unistd: avoid redundant includes
76603         * lib/math.in.h (isnan): No need to re-include <math.h>.
76604         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
76606         getsubopt: work around cygwin bug
76607         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
76608         avoid conflicting with system getsubopt.
76609         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
76610         bug.
76612         getopt: synchronize from glibc
76613         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
76614         parameter order.  Adjust all callers.
76615         (_getopt_internal_r, main): Adjust quoting in error messages.
76616         Drop considerations for outdated POSIX 1003.2 error message.
76617         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
76618         callers.
76619         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
76621         test-getopt: test stderr behavior
76622         * modules/getopt-posix-tests (Depends-on): Add dup2.
76623         * tests/test-getopt.c (ASSERT): Avoid stderr.
76624         (main): Move stderr to a temporary file.
76625         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
76626         Instead, add parameter to inform caller if output occurred.
76627         (test_getopt): Adjust all existing tests to expect silence, and
76628         add new tests of leading ":".
76629         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
76630         glibc shortcomings with leading "-:" or "+:" in optstring.
76631         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
76632         Likewise.
76633         * doc/posix-functions/getopt.texi (getopt): Likewise.
76635         test-getopt: enhance test
76636         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
76637         supports optind=0.
76638         * tests/test-getopt.c (OPTIND_MIN): Move...
76639         * tests/test-getopt.h (OPTIND_MIN): ...here.
76640         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
76641         Require that optind=0 works, since modern BSD supports it in
76642         addition to optreset, and since coreutils expects it.
76643         (test_getopt_long_only): New test.
76644         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
76645         glibc shortcomings with 'W;', and enforcement of optind=0.
76646         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
76647         Likewise.
76649 2009-12-21  Bruno Haible  <bruno@clisp.org>
76651         localename: Improvements for MacOS X and Cygwin.
76652         * lib/localename.h (gl_locale_name_environ): New declaration.
76653         * lib/localename.c (gl_locale_name_environ): New function, extracted from
76654         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
76655         (gl_locale_name_posix): Invoke it.
76656         (gl_locale_name_default): Add comments. Use Windows native API also on
76657         Cygwin.
76659 2009-12-21  Bruno Haible  <bruno@clisp.org>
76661         Update list of Win32 locale ids.
76662         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
76663         (LANG_SAMI): Renamed from LANG_SAAMI.
76664         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
76665         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
76666         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
76667         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
76668         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
76669         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
76670         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
76671         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
76672         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
76673         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
76674         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
76675         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
76676         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
76677         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
76678         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
76679         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
76680         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
76681         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
76682         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
76683         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
76684         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
76685         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
76686         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
76687         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
76688         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
76689         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
76690         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
76691         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
76692         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
76693         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
76694         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
76695         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
76696         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
76697         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
76698         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
76699         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
76700         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
76701         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
76702         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
76703         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
76704         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
76705         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
76706         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
76707         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
76708         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
76709         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
76710         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
76711         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
76712         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
76713         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
76714         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
76715         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
76716         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
76717         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
76718         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
76719         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
76720         Add more languages and countries for Sami, Sorbian. Add more countries
76721         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
76722         for Pashto. Change country for Syriac, Tswana.
76724 2009-12-21  Eric Blake  <ebb9@byu.net>
76726         test-utimens: avoid spurious failure
76727         * tests/test-chown.h (nap): Factor...
76728         * tests/nap.h: ...into new file.
76729         * tests/test-lchown.h (nap): Avoid duplication.
76730         * tests/test-utimens-common.h (nap): Use shared implementation,
76731         necessary on file systems with 1-second resolution.
76732         * modules/chown-tests (Files): Include new file.
76733         * modules/fdutimensat-tests (Files): Likewise.
76734         * modules/futimens-tests (Files): Likewise.
76735         * modules/lchown-tests (Files): Likewise.
76736         * modules/openat-tests (Files): Likewise.
76737         * modules/utimens-tests (Files): Likewise.
76738         * modules/utimensat-tests (Files): Likewise.
76740 2009-12-19  Eric Blake  <ebb9@byu.net>
76742         futimens, utimensat: work around Linux bug
76743         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
76744         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
76745         * lib/utimensat.c (rpl_utimensat): Work around it.
76746         * lib/futimens.c (rpl_futimens): Adjust comment.
76748         utimens: work around Linux ctime bug
76749         * lib/utimens.c (detect_ctime_bug): New helper function.
76750         (update_timespec): Differentiate between workaround needed for
76751         this bug vs. what is needed for systems that lack utimensat.
76752         (fdutimens, lutimens): Work around bug.
76754         utimens: check for ctime update
76755         * tests/test-utimens-common.h (check_ctime): Define.
76756         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
76757         * tests/test-futimens.h (test_futimens): Likewise.
76758         * tests/test-lutimens.h (test_lutimens): Likewise.
76759         * doc/posix-functions/futimens.texi (futimens): Document the bug.
76760         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
76762 2009-12-19  Bruno Haible  <bruno@clisp.org>
76764         dprintf-posix: Check against memory leak fixed on 2009-12-15.
76765         * tests/test-dprintf-posix2.sh: New file.
76766         * tests/test-dprintf-posix2.c: New file.
76767         * modules/dprintf-posix-tests (Files): Add them.
76768         (configure.ac): Check for getrlimit and setrlimit.
76769         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
76771 2009-12-19  Bruno Haible  <bruno@clisp.org>
76773         fprintf-posix: Check against memory leak fixed on 2009-12-15.
76774         * tests/test-fprintf-posix3.sh: New file.
76775         * tests/test-fprintf-posix3.c: New file.
76776         * modules/fprintf-posix-tests (Files): Add them.
76777         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
76779 2009-12-19  Eric Blake  <ebb9@byu.net>
76781         dirfd: fix prototype
76782         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
76783         * lib/dirfd.c (dirfd): Likewise.
76785         canonicalize: reduce memory usage
76786         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
76787         allocation to size.
76788         Reported by Solar Designer <solar@openwall.com>.
76790 2009-12-19  Bruno Haible  <bruno@clisp.org>
76792         New module attribute 'Applicability'.
76793         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
76794         * gnulib-tool: New option --extract-applicability.
76795         (func_usage): Document it.
76796         (sed_extract_prog): Recognize it.
76797         (func_get_applicability): New function.
76798         (func_import): Generalize handling of 'link-warning' module.
76799         * modules/link-warning (Applicability): New section.
76800         * modules/arg-nonnull (Applicability): New section.
76801         Repoted by Simon Josefsson <simon@josefsson.org>.
76803 2009-12-19  Bruno Haible  <bruno@clisp.org>
76805         fflush: tweak
76806         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
76807         * lib/fseeko.c (rpl_fseeko): Likewise.
76809 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
76811         * lib/gl_list.h: Fix typo in comment.
76813 2009-12-16  Eric Blake  <ebb9@byu.net>
76815         fcntl: use to simplify other modules
76816         * modules/cloexec (Depends-on): Add fcntl.
76817         * modules/fchdir (Depends-on): Likewise.
76818         * modules/fd-safer-flag (Depends-on): Likewise.
76819         * modules/unistd-safer (Depends-on): Likewise.
76820         * modules/dup3 (configure.ac): Set module indicator.
76821         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
76822         missing.
76823         * lib/fchdir.c (_gl_register_dup): Fix comment.
76824         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
76825         * lib/dup-safer.c (dup_safer): Likewise.
76826         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
76827         * lib/dup3.c (dup3): Likewise.
76828         * tests/test-fchdir.c (main): Enhance test.
76829         Fixes a dup_cloexec bug reported by Ondřej Vašík.
76831         fcntl: port portions of fcntl to mingw
76832         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
76833         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
76834         replacement for mingw.
76835         * modules/fcntl (Description): Update.
76836         (Depends-on): Add dup2.
76837         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
76838         * modules/fcntl-h (Makefile.am): Substitute it.
76839         * lib/fcntl.in.h (fcntl): Update declaration.
76840         (F_DUPFD, F_GETFD): New macros, when needed.
76841         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
76842         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
76843         * tests/test-fcntl.c (check_flags, main): Enhance test for items
76844         we now guarantee.
76846         fcntl: work around cygwin bug in F_DUPFD
76847         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
76848         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
76849         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
76850         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
76851         * doc/posix-functions/fcntl.texi (fcntl): Document it.
76853         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
76854         * modules/fcntl (Files): List new files.
76855         (configure.ac): Run a test.
76856         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
76857         * lib/fcntl.c (rpl_fcntl): Likewise.
76858         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
76859         (gl_FCNTL_H): Always replace fcntl.h.
76860         * modules/fcntl-h (Makefile.am): Substitute witnesses.
76861         * lib/fcntl.in.h (fcntl): Declare replacement.
76862         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
76863         needed, plus a witness.
76864         * doc/posix-functions/fcntl.texi (fcntl): Document this.
76865         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
76866         * tests/test-fcntl.c: New file.
76867         * modules/fcntl-tests: Likewise.
76869         binary-io: avoid potential compilation warning
76870         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
76871         directives.
76873         fflush: avoid compilation error on NetBSD
76874         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
76875         between off_t and fpos_t, since the latter is sometimes a struct.
76876         * lib/fseeko.c (rpl_fseeko): Likewise.
76877         Reported by Alexander Nasonov <alnsn@yandex.ru>.
76879 2009-12-15  Eric Blake  <ebb9@byu.net>
76881         fcntl-h, stdio, sys_ioctl: fix declarations
76882         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
76883         function must not take arguments.
76884         * lib/sys_ioctl.in.h (ioctl): Likewise.
76885         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
76886         (open): Add a link warning.
76888 2009-12-15  Jim Meyering  <meyering@redhat.com>
76890         areadlink, areadlink-with-size: relax license to LGPLv2+
76891         * modules/areadlink (License): Relax to LGPLv2+.
76892         * modules/areadlink-with-size (License): Likewise.
76894 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
76895             Bruno Haible  <bruno@clisp.org>
76897         *printf: Fix memory leak.
76898         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
76899         * lib/vfprintf.c (vfprintf): Likewise.
76900         * lib/dprintf.c (dprintf): Likewise.
76901         * lib/vdprintf.c (vdprintf): Likewise.
76903 2009-12-14  Eric Blake  <ebb9@byu.net>
76905         accept4: adjust module dependencies
76906         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
76908         utimens: one more try at avoiding compiler warning
76909         * lib/utimens.c (lutimens): Lower scope of result.
76911 2009-12-13  Bruno Haible  <bruno@clisp.org>
76913         Move the malloc checking from module 'list' to new module 'xlist'.
76914         * modules/xlist: New file.
76915         * lib/gl_xlist.h: New file.
76916         * lib/gl_xlist.c: New file.
76917         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
76918         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
76919         gl_list_add_last, gl_list_add_before, gl_list_add_after,
76920         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
76921         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
76922         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
76923         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
76924         gl_sortedlist_nx_add): New declarations.
76925         (struct gl_list_implementation): Rename and change methods accordingly.
76926         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
76927         (gl_list_nx_create): Renamed from gl_list_create.
76928         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
76929         (gl_list_nx_set_at): Renamed from gl_list_set_at.
76930         (gl_list_nx_add_first): Renamed from gl_list_add_first.
76931         (gl_list_nx_add_last): Renamed from gl_list_add_last.
76932         (gl_list_nx_add_before): Renamed from gl_list_add_before.
76933         (gl_list_nx_add_after): Renamed from gl_list_add_after.
76934         (gl_list_nx_add_at): Renamed from gl_list_add_at.
76935         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
76936         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
76937         gl_list_create_empty.
76938         (gl_list_nx_create): Renamed from gl_list_create.
76939         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
76940         (gl_list_nx_set_at): Renamed from gl_list_set_at.
76941         (gl_list_nx_add_first): Renamed from gl_list_add_first.
76942         (gl_list_nx_add_last): Renamed from gl_list_add_last.
76943         (gl_list_nx_add_before): Renamed from gl_list_add_before.
76944         (gl_list_nx_add_after): Renamed from gl_list_add_after.
76945         (gl_list_nx_add_at): Renamed from gl_list_add_at.
76946         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
76947         * lib/gl_array_list.c: Don't include xalloc.h.
76948         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
76949         NULL upon out-of-memory.
76950         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
76951         out-of-memory.
76952         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
76953         Change return type to 'int'.
76954         (gl_array_nx_set_at): Renamed from gl_array_set_at.
76955         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
76956         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
76957         upon out-of-memory.
76958         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
76959         upon out-of-memory.
76960         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
76961         upon out-of-memory.
76962         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
76963         upon out-of-memory.
76964         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
76965         out-of-memory.
76966         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
76967         Update.
76968         (gl_array_list_implementation): Update.
76969         * lib/gl_carray_list.c: Don't include xalloc.h.
76970         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
76971         Return NULL upon out-of-memory.
76972         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
76973         out-of-memory.
76974         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
76975         Change return type to 'int'.
76976         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
76977         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
76978         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
76979         upon out-of-memory.
76980         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
76981         upon out-of-memory.
76982         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
76983         out-of-memory.
76984         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
76985         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
76986         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
76987         Update.
76988         (gl_carray_list_implementation): Update.
76989         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
76990         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
76991         gl_linked_create_empty. Return NULL upon out-of-memory.
76992         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
76993         out-of-memory.
76994         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
76995         Change return type to 'int'. Return -1 upon out-of-memory.
76996         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
76997         out-of-memory.
76998         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
76999         upon out-of-memory.
77000         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
77001         upon out-of-memory.
77002         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
77003         NULL upon out-of-memory.
77004         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
77005         upon out-of-memory.
77006         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
77007         out-of-memory.
77008         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
77009         Update.
77010         * lib/gl_linked_list.c: Don't include xalloc.h.
77011         (gl_linked_list_implementation): Update.
77012         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
77013         (add_to_bucket): Change return type to 'int'.
77014         (gl_linkedhash_list_implementation): Update.
77015         * lib/gl_anytree_list1.h (free_subtree): New function.
77016         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
77017         gl_tree_create_empty. Return NULL upon out-of-memory.
77018         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
77019         Change return type to 'int'. Return -1 upon out-of-memory.
77020         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
77021         out-of-memory.
77022         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
77023         (gl_tree_remove_node): New function, moved here from
77024         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
77025         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
77026         Update.
77027         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
77028         malloc, not xmalloc. Return NULL upon out-of-memory.
77029         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
77030         out-of-memory.
77031         (gl_tree_remove_node_from_tree): New function, extracted from
77032         gl_tree_remove_node.
77033         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
77034         upon out-of-memory.
77035         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
77036         out-of-memory.
77037         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
77038         upon out-of-memory.
77039         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
77040         upon out-of-memory.
77041         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
77042         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
77043         not xmalloc. Return NULL upon out-of-memory.
77044         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
77045         out-of-memory.
77046         (gl_tree_remove_node_from_tree): New function, extracted from
77047         gl_tree_remove_node.
77048         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
77049         upon out-of-memory.
77050         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
77051         out-of-memory.
77052         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
77053         upon out-of-memory.
77054         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
77055         upon out-of-memory.
77056         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
77057         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
77058         gl_anytree_list1.h before gl_anyavltree_list2.h.
77059         (gl_avltree_list_implementation): Update.
77060         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
77061         gl_anytree_list1.h before gl_anyavltree_list2.h.
77062         (gl_rbtree_list_implementation): Update.
77063         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
77064         Change return type to 'int'. Return -1 upon out-of-memory. Use
77065         __builtin_expect.
77066         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
77067         (gl_avltreehash_list_implementation): Update.
77068         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
77069         (gl_rbtreehash_list_implementation): Update.
77070         * modules/array-list (Depends-on): Remove xalloc.
77071         * modules/carray-list (Depends-on): Likewise.
77072         * modules/linked-list (Depends-on): Likewise.
77073         * modules/linkedhash-list (Depends-on): Likewise.
77074         * modules/avltree-list (Depends-on): Likewise.
77075         * modules/rbtree-list (Depends-on): Likewise.
77076         * modules/avltreehash-list (Depends-on): Likewise.
77077         * modules/rbtreehash-list (Depends-on): Likewise.
77079         * modules/xsublist: New file.
77080         * lib/gl_xsublist.h: New file.
77081         * lib/gl_xsublist.c: New file.
77082         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
77083         (gl_sublist_nx_create): New declaration.
77084         * lib/gl_sublist.c: Don't include xalloc.h.
77085         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
77086         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
77087         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
77088         Change return type to 'int'. Return -1 upon out-of-memory.
77089         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
77090         upon out-of-memory.
77091         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
77092         NULL upon out-of-memory.
77093         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
77094         upon out-of-memory.
77095         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
77096         NULL upon out-of-memory.
77097         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
77098         NULL upon out-of-memory.
77099         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
77100         upon out-of-memory.
77101         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
77102         (gl_sublist_list_implementation): Update.
77103         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
77104         upon out-of-memory.
77105         * modules/sublist (Depends-on): Remove xalloc.
77107         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
77108         * tests/test-carray_list.c: Likewise.
77109         * tests/test-linked_list.c: Likewise.
77110         * tests/test-linkedhash_list.c: Likewise.
77111         * tests/test-avltree_list.c: Likewise.
77112         * tests/test-rbtree_list.c: Likewise.
77113         * tests/test-avltreehash_list.c: Likewise.
77114         * tests/test-rbtreehash_list.c: Likewise.
77115         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
77116         * modules/carray-list-tests (Makefile.am): Likewise.
77117         * modules/linked-list-tests (Makefile.am): Likewise.
77118         * modules/linkedhash-list-tests (Makefile.am): Likewise.
77119         * modules/avltree-list-tests (Makefile.am): Likewise.
77120         * modules/rbtree-list-tests (Makefile.am): Likewise.
77121         * modules/avltreehash-list-tests (Makefile.am): Likewise.
77122         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
77124         * NEWS: Mention the changes.
77126         * lib/clean-temp.c: Include gl_xlist.h.
77127         * modules/clean-temp (Depends-on): Add xlist.
77129         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
77130         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
77132         * tests/test-array_oset.c: Include gl_xlist.h.
77133         * modules/array-oset-tests (Depends-on): Add xlist.
77135         Reported by José E. Marchesi <jemarch@gnu.org>.
77137 2009-12-13  Bruno Haible  <bruno@clisp.org>
77139         Move the malloc checking from module 'oset' to new module 'xoset'.
77140         * modules/xoset: New file.
77141         * lib/gl_xoset.h: New file.
77142         * lib/gl_xoset.c: New file.
77143         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
77144         declarations.
77145         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
77146         (struct gl_oset_implementation): Rename and change methods accordingly.
77147         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
77148         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
77149         'int'. Mark as __warn_unused_result__.
77150         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
77151         gl_oset_create_empty.
77152         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
77153         'int'.
77154         * lib/gl_array_oset.c: Don't include xalloc.h.
77155         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
77156         malloc, not xmalloc.
77157         (grow): Change return type to 'int'. Don't call xalloc_die.
77158         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
77159         to 'int'.
77160         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
77161         'int'.
77162         (gl_array_oset_implementation): Update.
77163         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
77164         gl_tree_create_empty.
77165         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
77166         'int'.
77167         * lib/gl_avltree_oset.c: Don't include xalloc.h.
77168         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
77169         xmalloc.
77170         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
77171         not xmalloc.
77172         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
77173         xmalloc.
77174         (gl_avltree_oset_implementation): Update.
77175         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
77176         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
77177         xmalloc.
77178         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
77179         not xmalloc.
77180         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
77181         xmalloc.
77182         (gl_rbtree_oset_implementation): Update.
77183         * modules/array-oset (Depends-on): Remove xalloc.
77184         * modules/avltree-oset (Depends-on): Likewise.
77185         * modules/rbtree-oset (Depends-on): Likewise.
77186         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
77187         * tests/test-avltree_oset.c: Likewise.
77188         * tests/test-rbtree_oset.c: Likewise.
77189         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
77190         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
77191         * modules/rbtree-oset-tests (Makefile.am): Likewise.
77192         * NEWS: Mention the change.
77194 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
77196         maint.mk: allow a project to override release-prep commands
77197         * top/maint.mk (alpha, beta, stable): Move release-preparatory
77198         commands into a new rule.
77199         (release-prep): New rule.
77200         (release-prep-hook): New overridable variable.
77202 2009-12-13  Bruno Haible  <bruno@clisp.org>
77204         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
77206 2009-12-13  Jim Meyering  <meyering@redhat.com>
77208         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
77209         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
77211 2009-12-12  Bruno Haible  <bruno@clisp.org>
77213         duplocale: Tweak.
77214         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
77216 2009-12-12  Karl Berry  <karl@gnu.org>
77218         * config/srclist.txt (strtoll.c): tab changes, no more sync.
77220 2009-12-12  Bruno Haible  <bruno@clisp.org>
77222         * m4/po.m4: Undo incorrect untabification.
77224 2009-12-12  Bruno Haible  <bruno@clisp.org>
77226         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
77227         * modules/c-strtod (Depends-on): Add locale.
77228         * modules/c-strtold (Depends-on): Likewise.
77230 2009-12-12  Bruno Haible  <bruno@clisp.org>
77232         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
77234 2009-12-11  Eric Blake  <ebb9@byu.net>
77236         setenv: relax requirement in light of POSIX ruling
77237         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
77238         not NULL.
77239         * tests/test-setenv.c (main): Relax test.
77240         * tests/test-unsetenv.c (main): Likewise.
77241         * doc/posix-functions/setenv.texi (setenv): Document this.
77242         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
77244 2009-12-11  Bruno Haible  <bruno@clisp.org>
77246         New module 'fd-safer-flag'.
77247         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
77248         * lib/dup-safer.c (dup_safer_flag): Remove function.
77249         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
77250         * lib/fd-safer.c (fd_safer_flag): Remove function.
77251         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
77252         * modules/cloexec (configure.ac): Drop indicator macro.
77253         * modules/fd-safer-flag: New file.
77254         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
77255         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
77256         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
77258 2009-12-11  Bruno Haible  <bruno@clisp.org>
77260         Tests for module 'nl_langinfo'.
77261         * modules/nl_langinfo-tests: New file.
77262         * tests/test-nl_langinfo.sh: New file.
77263         * tests/test-nl_langinfo.c: New file.
77265         New module 'nl_langinfo'.
77266         * lib/nl_langinfo.c: New file.
77267         * m4/nl_langinfo.m4: New file.
77268         * modules/nl_langinfo: New file.
77269         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
77271 2009-12-11  Bruno Haible  <bruno@clisp.org>
77273         Tests for module 'langinfo'.
77274         * modules/langinfo-tests: New file.
77275         * tests/test-langinfo.c: New file.
77277         New module 'langinfo'.
77278         * lib/langinfo.in.h: New file.
77279         * m4/langinfo_h.m4: New file.
77280         * modules/langinfo: New file.
77281         * doc/posix-headers/langinfo.texi: Mention the new module.
77283 2009-12-11  Bruno Haible  <bruno@clisp.org>
77285         * lib/config.charset: Untabify.
77287 2009-12-11  Bruno Haible  <bruno@clisp.org>
77289         * modules/unistd-safer (configure.ac): Drop indicator macro.
77291 2009-12-11  Bruno Haible  <bruno@clisp.org>
77293         Move pipe2-safer code to its own file.
77294         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
77295         * lib/pipe-safer.c (pipe2_safer): Remove function.
77296         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
77297         (Makefile.am): Add it to lib_SOURCES.
77299 2009-12-10  Bruno Haible  <bruno@clisp.org>
77301         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
77303 2009-12-10  Bruno Haible  <bruno@clisp.org>
77305         Declare which arguments expect non-NULL values, for GCC and clang.
77306         * build-aux/arg-nonnull.h: New file.
77307         * modules/arg-nonnull: New file.
77308         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
77309         (inet_ntop, inet_pton): Use it.
77310         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
77311         (closedir, dirfd, opendir, scandir, alphasort): Use it.
77312         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
77313         (open, openat): Use it.
77314         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
77315         (fnmatch): Use it.
77316         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
77317         (getopt, getopt_long, getopt_long_only): Use it.
77318         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
77319         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
77320         Use it.
77321         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
77322         (iconv_open): Use it.
77323         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
77324         (strtoimax, strtoumax): Use it.
77325         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
77326         (duplocale): Use it.
77327         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
77328         (frexp, frexpl): Use it.
77329         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
77330         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
77331         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
77332         (tsearch, tfind, tdelete, twalk): Use it.
77333         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
77334         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
77335         sigpending): Use it.
77336         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
77337         (posix_spawn, posix_spawnp, posix_spawnattr_init,
77338         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
77339         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
77340         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
77341         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
77342         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
77343         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
77344         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
77345         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
77346         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
77347         Use it.
77348         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
77349         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
77350         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
77351         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
77352         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
77353         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
77354         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
77355         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
77356         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
77357         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
77358         strtoull, unsetenv): Use it.
77359         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
77360         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
77361         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
77362         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
77363         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
77364         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
77365         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
77366         (strcasecmp, strncasecmp): Use it.
77367         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
77368         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
77369         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
77370         rpl_setsockopt): Use it.
77371         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
77372         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
77373         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
77374         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
77375         (gettimeofday): Use it.
77376         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
77377         (times): Use it.
77378         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
77379         (uname): Use it.
77380         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
77381         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
77382         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
77383         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
77384         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
77385         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
77386         unlinkat, write): Use it.
77387         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
77388         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
77389         * lib/argv-iter.h: Include arg-nonnull.h.
77390         (_ATTRIBUTE_NONNULL_): Remove macro.
77391         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
77392         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
77393         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
77394         optimization.
77395         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
77396         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
77397         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
77398         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
77399         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
77400         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
77401         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
77402         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
77403         * modules/arpa_inet (Depends-on): Add arg-nonnull.
77404         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
77405         * modules/dirent (Depends-on): Add arg-nonnull.
77406         (Makefile.am): Insert arg-nonnull.h into dirent.h.
77407         * modules/fcntl-h (Depends-on): Add arg-nonnull.
77408         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
77409         * modules/fnmatch (Depends-on): Add arg-nonnull.
77410         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
77411         * modules/getopt-posix (Depends-on): Add arg-nonnull.
77412         (Makefile.am): Insert arg-nonnull.h into getopt.h.
77413         * modules/glob (Depends-on): Add arg-nonnull.
77414         (Makefile.am): Insert arg-nonnull.h into glob.h.
77415         * modules/iconv_open (Depends-on): Add arg-nonnull.
77416         (Makefile.am): Insert arg-nonnull.h into iconv.h.
77417         * modules/inttypes (Depends-on): Add arg-nonnull.
77418         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
77419         * modules/locale (Depends-on): Add arg-nonnull.
77420         (Makefile.am): Insert arg-nonnull.h into locale.h.
77421         * modules/math (Depends-on): Add arg-nonnull.
77422         (Makefile.am): Insert arg-nonnull.h into math.h.
77423         * modules/netdb (Depends-on): Add arg-nonnull.
77424         (Makefile.am): Insert arg-nonnull.h into netdb.h.
77425         * modules/search (Depends-on): Add arg-nonnull.
77426         (Makefile.am): Insert arg-nonnull.h into search.h.
77427         * modules/signal (Depends-on): Add arg-nonnull.
77428         (Makefile.am): Insert arg-nonnull.h into signal.h.
77429         * modules/spawn (Depends-on): Add arg-nonnull.
77430         (Makefile.am): Insert arg-nonnull.h into spawn.h.
77431         * modules/stdio (Depends-on): Add arg-nonnull.
77432         (Makefile.am): Insert arg-nonnull.h into stdio.h.
77433         * modules/stdlib (Depends-on): Add arg-nonnull.
77434         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
77435         * modules/string (Depends-on): Add arg-nonnull.
77436         (Makefile.am): Insert arg-nonnull.h into string.h.
77437         * modules/strings (Depends-on): Add arg-nonnull.
77438         (Makefile.am): Insert arg-nonnull.h into strings.h.
77439         * modules/sys_socket (Depends-on): Add arg-nonnull.
77440         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
77441         * modules/sys_stat (Depends-on): Add arg-nonnull.
77442         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
77443         * modules/sys_time (Depends-on): Add arg-nonnull.
77444         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
77445         * modules/sys_times (Depends-on): Add arg-nonnull.
77446         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
77447         * modules/sys_utsname (Depends-on): Add arg-nonnull.
77448         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
77449         * modules/time (Depends-on): Add arg-nonnull.
77450         (Makefile.am): Insert arg-nonnull.h into time.h.
77451         * modules/unistd (Depends-on): Add arg-nonnull.
77452         (Makefile.am): Insert arg-nonnull.h into unistd.h.
77453         * modules/wchar (Depends-on): Add arg-nonnull.
77454         (Makefile.am): Insert arg-nonnull.h into wchar.h.
77455         * modules/argv-iter (Depends-on): Add arg-nonnull.
77456         * tests/test-canonicalize.c (null_ptr): New function.
77457         (main): Use it.
77458         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
77459         (main): Use it.
77460         * tests/test-memmem.c (null_ptr): New function.
77461         (main): Use it.
77462         Reported by Jim Meyering.
77464 2009-12-10  Bruno Haible  <bruno@clisp.org>
77466         Use spaces for indentation, not tabs.
77467         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
77468         * m4/*.m4: Untabify.
77469         * build-aux/*.h: Untabify.
77470         * tests/**/*.[hc]: Untabify.
77471         * README: New section "Indent with spaces, not TABs", based on
77472         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
77473         * NEWS: Mention the change.
77475 2009-12-10  Bruno Haible  <bruno@clisp.org>
77477         pty test: Fix link error.
77478         * modules/pty-tests (Makefile.am): Add the default LDADD value to
77479         test_pty_LDADD.
77481 2009-12-07  Simon Josefsson  <simon@josefsson.org>
77483         * modules/pty: New file.
77484         * modules/pty-tests: New file.
77485         * m4/pty.m4: New file.
77486         * tests/test-pty.c: New file.
77487         * doc/glibc-headers/pty.texi: Modified.
77488         * doc/glibc-functions/forkpty.texi: Modified.
77489         * doc/glibc-functions/openpty.texi: Modified.
77491 2009-12-10  Bruno Haible  <bruno@clisp.org>
77493         Avoid syntax error in C++ mode.
77494         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
77496 2009-12-10  Bruno Haible  <bruno@clisp.org>
77498         Use sed with option -e.
77499         * gnulib-tool (func_version, func_emit_copyright_notice,
77500         func_emit_initmacro_end, func_import, func_create_testdir): Pass
77501         option -e to sed.
77502         * modules/link-warning (Makefile.am): Likewise.
77504 2009-12-10  Jim Meyering  <meyering@redhat.com>
77506         mgetgroups: do not write bytes beyond end of malloc'd buffer
77507         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
77508         username, we call getgroups with a one-element-shorter buffer,
77509         but still told it the length was original, max_n_groups.
77511 2009-12-09  Eric Blake  <ebb9@byu.net>
77513         cloexec: relax license
77514         * modules/cloexec (Maintainer): Add myself.
77515         (License): Use LGPL, not GPL.
77517         link-warning: optimize generation
77518         * modules/link-warning (Makefile.am): Reduce process usage.
77520 2009-12-09  Bruno Haible  <bruno@clisp.org>
77522         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
77523         workaround was added on 2009-11-17.
77525 2009-12-09  Jim Meyering  <meyering@redhat.com>
77526             Bruno Haible  <bruno@clisp.org>
77528         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
77529         * modules/link-warning (Makefile.am): Make the comment-removing sed
77530         command more robust in the face of bootstrap-prepended comment lines.
77532 2009-12-09  Bruno Haible  <bruno@clisp.org>
77534         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
77535         most one group.
77537 2009-12-09  Simon Josefsson  <simon@josefsson.org>
77538             Bruno Haible  <bruno@clisp.org>
77540         * build-aux/link-warning.h: Add copyright notice.
77541         * modules/link-warning (Makefile.am): Generate link-warning.h from
77542         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
77543         * NEWS: Mention change in link-warning module.
77544         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
77545         * modules/dirent (Makefile.am): Add dependency to dirent.h.
77546         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
77547         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
77548         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
77549         * modules/math (Makefile.am): Add dependency to math.h.
77550         * modules/search (Makefile.am): Add dependency to search.h.
77551         * modules/signal (Makefile.am): Add dependency to signal.h.
77552         * modules/spawn (Makefile.am): Add dependency to spawn.h.
77553         * modules/stdio (Makefile.am): Add dependency to stdio.h.
77554         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
77555         * modules/string (Makefile.am): Add dependency to string.h.
77556         * modules/strings (Makefile.am): Add dependency to strings.h.
77557         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
77558         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
77559         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
77560         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
77561         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
77562         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
77563         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
77564         * modules/unistd (Makefile.am): Add dependency to unistd.h.
77565         * modules/wchar (Makefile.am): Add dependency to wchar.h.
77567 2009-12-09  Bruno Haible  <bruno@clisp.org>
77569         fchdir: Optimize away rpl_fstat when possible.
77570         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
77571         REPLACE_OPEN_DIRECTORY.
77572         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
77574 2009-12-09  Bruno Haible  <bruno@clisp.org>
77576         * lib/fchdir.c: Update comment.
77578 2009-12-09  Bruno Haible  <bruno@clisp.org>
77580         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
77582 2009-12-08  Eric Blake  <ebb9@byu.net>
77584         fchdir: avoid memory leak on re-registration.
77585         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
77587 2009-12-08  Jim Meyering  <meyering@redhat.com>
77589         init.sh: avoid Solaris 10 /bin/sh portability problem
77590         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
77591         sourced script:
77592           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
77593           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
77594           bar
77595         tests/init.sh relied on that, accepting a --set-path=DIR argument,
77596         and two tests used that idiom.
77597         * tests/init.sh: Update suggested usage comments.
77598         (path_prepend_): New function, to be used in place
77599         of the --src-path=DIR option.
77600         (setup_): Move PATH-prepending code into path_prepend_.
77601         * tests/test-pread.sh: Adapt to new usage.
77602         * tests/test-xalloc-die.sh: Likewise.
77604 2009-12-08  Simon Josefsson  <simon@josefsson.org>
77606         * doc/gnulib.texi (Glibc pty.h): Add.
77607         * doc/glibc-functions/forkpty.texi: Add.
77608         * doc/glibc-functions/openpty.texi: Add.
77609         Suggested by Bruno Haible.
77611 2009-12-08  Eric Blake  <ebb9@byu.net>
77613         fchdir: fix logic bugs
77614         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
77615         * tests/test-fchdir.c (main): Enhance test.
77616         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
77617         is in use.
77619         dup2: fix logic bugs
77620         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
77621         REPLACE_DUP2 to decide when rpl_dup2 is needed.
77622         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
77623         exists.
77624         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
77626 2009-12-07  Eric Blake  <ebb9@byu.net>
77628         unlink: fix m4 detection
77629         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
77631         unistd-safer: add unit test
77632         * modules/unistd-safer-tests: New file.
77633         * tests/test-dup-safer.c: Likewise.
77634         * tests/test-cloexec.c (setmode): Avoid compiler warning.
77635         * tests/test-dup2.c (setmode): Likewise.
77636         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
77638         cloexec: preserve text vs. binary across dup_cloexec
77639         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
77640         mode.
77641         * modules/dup2-tests (Depends-on): Add binary-io.
77642         * modules/cloexec-tests (Depends-on): Likewise.
77643         * tests/test-dup2.c (setmode, is_mode): New helpers.
77644         (main): Add tests that translation mode is preserved.
77645         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
77646         Reported by Bruno Haible.
77648         mgetgroups: reduce duplicate listings
77649         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
77650         resulting array.
77651         * tests/test-chown.h (test_chown): Simplify client.
77652         * tests/test-lchown.h (test_lchown): Likewise.
77654 2009-12-06  Bruno Haible  <bruno@clisp.org>
77656         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
77657         value.
77659 2009-12-06  Bruno Haible  <bruno@clisp.org>
77661         * lib/progname.c: Include stdio.h, stdlib.h.
77662         (set_program_name): Reject a NULL argument.
77664 2009-12-05  Eric Blake  <ebb9@byu.net>
77666         pipe2-safer: new module
77667         * modules/pipe2-safer: New file.
77668         * lib/unistd-safer.h (pipe2_safer): New prototype.
77669         * lib/unistd--.h (pipe2): New wrapper.
77670         * lib/pipe-safer.c (pipe2_safer): New function.
77671         * modules/pipe (Depends-on): Add pipe2-safer.
77672         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
77674         stdlib-safer: preserve cloexec flag for mkostemp[s]
77675         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
77676         fd_safer_flag.
77678         unistd-safer: allow preservation of cloexec status via flag
77679         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
77680         prototypes.
77681         * lib/dup-safer.c (dup_safer_flag): New function.
77682         * lib/fd-safer.c (fd_safer_flag): Likewise.
77683         * modules/cloexec (configure.ac): Set witness.
77685         test-dup2: enhance test
77686         * modules/dup2-tests (Depends-on): Add cloexec.
77687         * tests/test-dup2.c (main): Enhance test.
77689         cloexec: add dup_cloexec
77690         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
77691         header and comments.
77692         * lib/cloexec.c (set_cloexec_flag): Add comments.
77693         (dup_cloexec): New function, with mingw implementation borrowed
77694         from...
77695         * lib/w32spawn.h (dup_noinherit): ...here.
77696         * modules/execute (Depends-on): Add cloexec.
77697         * modules/pipe (Depends-on): Likewise.
77698         * modules/cloexec (Depends-on): Add dup2.
77699         * modules/cloexec-tests (Files): New file.
77700         * tests/test-cloexec.c: Likewise.
77702         test-xalloc-die: fix test for mingw
77703         * modules/xalloc-die-tests (Files): Add tests/init.sh.
77704         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
77705         directory and .exe suffix off argv[0] output.
77707         test-fseeko: fix test for mingw
77708         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
77709         than undefining fseek, so test will pass on mingw.
77711 2009-12-05  Bruno Haible  <bruno@clisp.org>
77713         * lib/progname.h (set_program_name): Clarify specification.
77714         * lib/progname.c (set_program_name): Likewise.
77715         Reported by Jim Meyering.
77717 2009-12-05  Jim Meyering  <meyering@redhat.com>
77719         maint.mk: backslash-escape parens in default regexp
77720         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
77721         backslash-escape the literal parentheses.
77723         maint.mk: news-date-check: use grep -E
77724         * top/maint.mk (today): Define a Make variable, not a...
77725         (news-date-check): ...shell variable.
77726         (news-date-regexp): Use the Make variable.
77727         Use grep's -E option.  Change the failing diagnostic to mention
77728         the variable, $(news-date-regexp).
77730 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
77732         maintainer-makefile: allow customization of NEWS entry format
77733         * top/maint.mk (news-date-regexp): New overridable variable.
77734         (news-date-check): Use it.
77736 2009-12-04  Eric Blake  <ebb9@byu.net>
77738         mgetgroups: add xgetgroups, and avoid ENOSYS failures
77739         * lib/mgetgroups.h (xgetgroups): New prototype.
77740         * lib/mgetgroups.c (xgetgroups): New wrapper.
77741         (mgetgroups): Handle ENOSYS.
77742         * modules/mgetgroups (Depends-on): Add realloc.
77743         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
77745         mgetgroups: avoid argument promotion issues with -1
77746         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
77747         for invalid gid_t.
77748         * tests/test-chown.h (getegid, test_chown): Likewise.
77749         * tests/test-lchown.h (getegid, test_lchown): Likewise.
77751 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
77753         exclude: Fix header file problems.
77754         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
77756 2009-12-01  Jim Meyering  <meyering@redhat.com>
77758         fts: fts_open: do not let an empty string cause immediate failure
77759         This is required in support of GNU rm, for which the command
77760         "rm A '' B" must process and remove both A and B, in spite of
77761         the empty string argument.
77762         * lib/fts.c (fts_open): Do not let the presence of an empty string
77763         cause fts_open to fail immediately.  Most fts-using tools must be
77764         able to process all arguments, in order, and can be expected to
77765         diagnose such arguments themselves.
77767 2009-11-30  Eric Blake  <ebb9@byu.net>
77769         utimens: fix compilation error
77770         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
77771         Declare variable at right scope.
77773 2009-11-29  Jim Meyering  <meyering@redhat.com>
77775         bootstrap: handle perl-5.11's changed --version output
77776         * build-aux/bootstrap (get_version): Handle perl separately,
77777         since perl-5.11's --version output is different.
77779 2009-11-28  Jim Meyering  <meyering@redhat.com>
77781         userspec: depend on the inttostr module, too
77782         * modules/userspec (Depends-on): Add inttostr.
77784         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
77785         * lib/userspec.c (parse_with_separator): Do not accept a user ID
77786         number of MAXUID when it evaluates to (uid_t) -1.
77787         Likewise for group ID.  Reported by Matt McCutchen in
77788         <http://savannah.gnu.org/bugs/?28113>
77790         userspec: reformat to use spaces, not TABs
77791         * lib/userspec.c: Expand TABs to spaces.
77792         Add Emacs' "indent-tabs-mode: nil" hint.
77794 2009-11-27  Eric Blake  <ebb9@byu.net>
77796         getopt-gnu: flush out another BSD bug
77797         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
77798         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
77799         flush out BSD bug.
77800         * tests/test-getopt.h (test_getopt): End lists with NULL.
77801         * tests/test-getopt_long.h (test_getopt_long): Likewise.
77802         (test_getopt_long_posix): Enhance test.
77803         * modules/getopt-posix-tests (Depends-on): Add stdbool.
77804         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
77805         getopt-gnu.
77806         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
77807         Likewise.
77809 2009-11-27  Simon Josefsson  <simon@josefsson.org>
77811         * modules/idpriv-droptemp-tests (Notice): Fix text.
77813 2009-11-27  Jim Meyering  <meyering@redhat.com>
77815         test-xalloc-die: avoid spurious failure due to libtool argv difference
77816         In a libtool-enabled project, this test would fail due to a difference
77817         in the emitted program name, e.g.,
77818         -test-xalloc-die: memory exhausted
77819         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
77820         Use program to avoid that.
77821         * modules/xalloc-die-tests (Depends-on): Add progname.
77822         * tests/test-xalloc-die.c: Include progname.h".
77823         (program_name): Remove decl.
77824         (main): Call set_program_name.
77825         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
77827 2009-11-26  Richard Jones  <rjones@redhat.com>
77829         w32sock: leave win32 error in place.
77830         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
77832 2009-11-26  Eric Blake  <ebb9@byu.net>
77834         init.sh: suggest to use skip_ and fail_ functions in comments
77835         * tests/init.sh: Add a sentence.
77837 2009-11-25  Bruno Haible  <bruno@clisp.org>
77839         init.sh: add documentation in comments
77840         * tests/init.sh: Add some developer and user documentation.
77842 2009-11-26  Jim Meyering  <meyering@redhat.com>
77844         init.sh: accommodate even those who specify bogus srcdir manually
77845         * tests/init.sh: Normally, srcdir is guaranteed by automake and
77846         configure-time tests to be sanitized, so that there is no need to
77847         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
77848         (with no double quotes) suffices.  However, since tests may be
77849         invoked manually, and since you may explicitly set srcdir to the
77850         name of a directory containing spaces, do quote its uses here.
77851         * tests/test-pread.sh: Likewise.
77852         Suggested by Bruno Haible.
77854         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
77855         * tests/test-pread.sh: Write no data into the pipe, because
77856         test-pread actually reads none.  This avoids a diagnostic,
77857         "bash: echo: write error: Broken pipe", that arises in the unusual
77858         event something is ignoring SIGPIPE, and might be interpreted
77859         as some sort of failure.  Reported by Bruno Haible.
77861 2009-11-25  Jim Meyering  <meyering@redhat.com>
77863         test-pread: cover failure with ESPIPE and EINVAL
77864         * tests/test-pread.c (main): Test for failure, too.
77865         * tests/test-pread.sh: Invoke with stdin on a pipe.
77866         Suggested by Eric Blake.
77868         pread: improvement and fix
77869         * modules/pread (Depends-on): Depend on lseek, for portability to
77870         e.g., mingw.  Suggested by Eric Blake.
77871         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
77873         unistd.in.h: correct declaration of pread
77874         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
77875         Reported by Richard W.M. Jones.
77877         test-pread.sh: distribute the test script
77878         * modules/pread-tests (Files): Include test-pread.sh.
77880         test-pread.sh: clean up
77881         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
77882         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
77883         That is unnecessary, since it's always ".".
77884         Suggestion from Eric Blake.
77886         test-pread.sh: make executable
77887         * tests/test-pread.sh: Set executable bit.
77888         Reported by Eric Blake.
77890         correct typo in test-pread.sh
77891         * tests/test-pread.sh: Add #! line.
77893         test pread
77894         * tests/test-pread.c: New file.
77895         * tests/test-pread.sh: Likewise.
77896         * modules/pread-tests: Likewise.
77898         pread: new module
77899         * modules/pread: New file.
77900         * lib/unistd.in.h (pread): Define/declare.
77901         * lib/pread.c (pread): New file.
77902         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
77903         * modules/unistd (Makefile.am): Substitute witnesses.
77904         * doc/posix-functions/pread.texi (pread): Update.
77905         * MODULES.html.sh: Add pread.
77907 2009-11-25  Jim Meyering  <meyering@redhat.com>
77909         tests/init.sh: new file to be used via most *.sh tests
77910         * tests/init.sh: New file.
77912 2009-11-25  Eric Blake  <ebb9@byu.net>
77914         utimens: work around older Linux failure with symlinks
77915         * lib/utimens.c (lutimensat_works_really): New variable.
77916         (fdutimens, lutimens): Use it to manage kernels that support
77917         nanosecond times on files, but not on symlinks.
77918         Reported by Ondřej Vašík.
77920         utimes: fix configure grammar
77921         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
77923 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
77925         regex: Fix fastmap for multibyte character ranges.
77926         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
77927         characters when a multibyte character range is included.
77929 2009-11-22  Andy Wingo  <wingo@pobox.com>
77931         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
77932         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
77934 2009-11-24  Bruno Haible  <bruno@clisp.org>
77936         doc: Most *_l functions exist in MacOS X 10.5.
77937         * doc/posix-functions/duplocale.texi: Update platforms list.
77938         * doc/posix-functions/freelocale.texi: Likewise.
77939         * doc/posix-functions/newlocale.texi: Likewise.
77940         * doc/posix-functions/uselocale.texi: Likewise.
77941         * doc/posix-functions/isalnum_l.texi: Likewise.
77942         * doc/posix-functions/isalpha_l.texi: Likewise.
77943         * doc/posix-functions/isblank_l.texi: Likewise.
77944         * doc/posix-functions/iscntrl_l.texi: Likewise.
77945         * doc/posix-functions/isdigit_l.texi: Likewise.
77946         * doc/posix-functions/isgraph_l.texi: Likewise.
77947         * doc/posix-functions/islower_l.texi: Likewise.
77948         * doc/posix-functions/isprint_l.texi: Likewise.
77949         * doc/posix-functions/ispunct_l.texi: Likewise.
77950         * doc/posix-functions/isspace_l.texi: Likewise.
77951         * doc/posix-functions/isupper_l.texi: Likewise.
77952         * doc/posix-functions/iswalnum_l.texi: Likewise.
77953         * doc/posix-functions/iswalpha_l.texi: Likewise.
77954         * doc/posix-functions/iswblank_l.texi: Likewise.
77955         * doc/posix-functions/iswcntrl_l.texi: Likewise.
77956         * doc/posix-functions/iswctype_l.texi: Likewise.
77957         * doc/posix-functions/iswdigit_l.texi: Likewise.
77958         * doc/posix-functions/iswgraph_l.texi: Likewise.
77959         * doc/posix-functions/iswlower_l.texi: Likewise.
77960         * doc/posix-functions/iswprint_l.texi: Likewise.
77961         * doc/posix-functions/iswpunct_l.texi: Likewise.
77962         * doc/posix-functions/iswspace_l.texi: Likewise.
77963         * doc/posix-functions/iswupper_l.texi: Likewise.
77964         * doc/posix-functions/iswxdigit_l.texi: Likewise.
77965         * doc/posix-functions/isxdigit_l.texi: Likewise.
77966         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
77967         * doc/posix-functions/strcasecmp_l.texi: Likewise.
77968         * doc/posix-functions/strcoll_l.texi: Likewise.
77969         * doc/posix-functions/strfmon_l.texi: Likewise.
77970         * doc/posix-functions/strftime_l.texi: Likewise.
77971         * doc/posix-functions/strncasecmp_l.texi: Likewise.
77972         * doc/posix-functions/strxfrm_l.texi: Likewise.
77973         * doc/posix-functions/tolower_l.texi: Likewise.
77974         * doc/posix-functions/toupper_l.texi: Likewise.
77975         * doc/posix-functions/towctrans_l.texi: Likewise.
77976         * doc/posix-functions/towlower_l.texi: Likewise.
77977         * doc/posix-functions/towupper_l.texi: Likewise.
77978         * doc/posix-functions/wcscoll_l.texi: Likewise.
77979         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
77980         * doc/posix-functions/wctrans_l.texi: Likewise.
77981         * doc/posix-functions/wctype_l.texi: Likewise.
77982         * doc/glibc-functions/strptime_l.texi: Likewise.
77983         * doc/glibc-functions/strtod_l.texi: Likewise.
77984         * doc/glibc-functions/strtof_l.texi: Likewise.
77985         * doc/glibc-functions/strtol_l.texi: Likewise.
77986         * doc/glibc-functions/strtold_l.texi: Likewise.
77987         * doc/glibc-functions/strtoll_l.texi: Likewise.
77988         * doc/glibc-functions/strtoul_l.texi: Likewise.
77989         * doc/glibc-functions/strtoull_l.texi: Likewise.
77990         * doc/glibc-functions/wcsftime_l.texi: Likewise.
77991         * doc/glibc-functions/wcstod_l.texi: Likewise.
77992         * doc/glibc-functions/wcstof_l.texi: Likewise.
77993         * doc/glibc-functions/wcstol_l.texi: Likewise.
77994         * doc/glibc-functions/wcstold_l.texi: Likewise.
77995         * doc/glibc-functions/wcstoll_l.texi: Likewise.
77996         * doc/glibc-functions/wcstoul_l.texi: Likewise.
77997         * doc/glibc-functions/wcstoull_l.texi: Likewise.
77999 2009-11-24  Bruno Haible  <bruno@clisp.org>
78001         duplocale: Fix logic bug.
78002         * lib/duplocale.c: Don't include <langinfo.h>.
78003         (_NL_LOCALE_NAME): Remove macro.
78004         (rpl_duplocale): Use setlocale instead of nl_langinfo.
78005         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
78007 2009-11-23  Jim Meyering  <meyering@redhat.com>
78009         test-update-copyright: don't hard-code /usr/bin/perl
78010         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
78011         perl to print the current year.  Gilles Espinasse reported that
78012         the replaced use of perl was hard-coded as /usr/bin/perl.
78014 2009-11-23  Bruno Haible  <bruno@clisp.org>
78016         duplocale: Add support for glibc 2.3.x.
78017         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
78019 2009-11-22  Bruno Haible  <bruno@clisp.org>
78021         vasnprintf: Tiny optimization.
78022         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
78023         MacOS X.
78025 2009-11-22  Bruno Haible  <bruno@clisp.org>
78027         Tests for module 'duplocale'.
78028         * modules/duplocale-tests: New file.
78029         * tests/test-duplocale.c: New file.
78031         New module 'duplocale'.
78032         * m4/duplocale.m4: New file.
78033         * lib/locale.in.h (duplocale): New declaration.
78034         * lib/duplocale.c: New file.
78035         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
78036         gl_LOCALE_H_DEFAULTS): New macros.
78037         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
78038         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
78039         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
78040         REPLACE_DUPLOCALE.
78041         * modules/duplocale: New file.
78042         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
78044 2009-11-22  Bruno Haible  <bruno@clisp.org>
78046         * modules/locale-tests (configure.ac): Test for newlocale function.
78047         * tests/test-locale.c: When the system has extended locale functions,
78048         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
78050         locale: Make locale_t available when possible.
78051         * lib/locale.in.h: Include <xlocale.h> when it exists.
78052         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
78053         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
78054         * modules/locale (Depends-on): Add extensions.
78055         (Makefile.am): Also substitute HAVE_XLOCALE_H.
78056         * doc/posix-headers/locale.texi: Document the problem with locale_t.
78058 2009-11-22  Bruno Haible  <bruno@clisp.org>
78060         Add comments.
78061         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
78062         invocation.
78063         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
78064         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
78065         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
78067 2009-11-22  Bruno Haible  <bruno@clisp.org>
78069         error: account for the possibility of freopen (stdout).
78070         * lib/error.c: Include <unistd.h>.
78071         (flush_stdout): New function, extracted from error and error_at_line.
78072         Determine stdout's fd dynamically.
78073         (error, error_at_line): Invoke flush_stdout.
78074         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
78075         * modules/error (Depends-on): Add unistd.
78077 2009-11-22  Bruno Haible  <bruno@clisp.org>
78079         diffseq: Add comment.
78080         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
78082 2009-11-22  Jim Meyering  <meyering@redhat.com>
78084         c-stack: avoid defining an unused static function
78085         * lib/c-stack.c (find_stack_direction): Do not define this function
78086         when it will not be used.
78088         diffseq: avoid spurious gcc warnings
78089         * lib/diffseq.h (IF_LINT2): Define.
78090         (compareseq): Use it to initialize two members of "part".
78091         This avoids two used-uninitialized warnings.
78093 2009-11-21  Jim Meyering  <meyering@redhat.com>
78095         c-stack: avoid "ignoring return value of `write'" warning
78096         * lib/c-stack.c: Include "ignore-value.h".
78097         (die): Explicitly ignore each write return value.
78098         * modules/c-stack (Depends-on): Add ignore-value.
78100 2009-11-21  Bruno Haible  <bruno@clisp.org>
78102         diffseq: reduce scope of variable 'best'.
78103         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
78104         variable, earlier used for two different purposes.
78106 2009-11-21  Jim Meyering  <meyering@redhat.com>
78108         diffseq: remove useless assignment to "best"
78109         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
78110         assignment.  At that point "best" is already guaranteed to be zero.
78112 2009-11-20  Eric Blake  <ebb9@byu.net>
78114         build: mention ftp redirector in release announcements
78115         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
78116         values that used to come from cfg.mk; mention FTP redirect URL.
78117         * build-aux/announce-gen: Mention the mirror list.
78118         Suggested by Karl Berry.
78120         nanosleep: improve port to mingw
78121         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
78122         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
78123         LIB_NANOSLEEP, but only when needed.
78124         * modules/select (Link): Document LIBSOCKET.
78125         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
78126         enough.
78128         nanosleep: work around cygwin bug
78129         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
78130         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
78131         bug.
78132         (getnow): Delete, not needed.
78133         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
78134         LIB_CLOCK_GETTIME.
78135         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
78136         clock-time, gettime.
78137         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
78138         bug.
78139         * modules/nanosleep-tests: New test.
78140         * tests/test-nanosleep.c: New file.
78142         sleep: work around cygwin bug
78143         * lib/sleep.c (rpl_sleep): Work around the bug.
78144         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
78145         (gl_PREREQ_SLEEP): Delete unused macro.
78146         * modules/sleep (Depends-on): Add verify.
78147         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
78148         * modules/unistd (Makefile.am): Substitute witness.
78149         * lib/unistd.in.h (sleep): Update prototype.
78150         * doc/posix-functions/sleep.texi (sleep): Document the bug.
78151         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
78152         * modules/sleep-tests (Depends-on): Check for alarm.
78154 2009-11-20  Jim Meyering  <meyering@redhat.com>
78156         maint.mk: improve sc_prohibit_magic_number_exit
78157         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
78158         so it does not match uses like System.exit(1).
78159         Add comments showing how to correct all offenders.
78161 2009-11-19  Eric Blake  <ebb9@byu.net>
78163         xalloc-die-tests: add missing library
78164         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
78166         test-xvasprintf: silence compiler warnings
78167         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
78168         empty string from gcc.
78170 2009-11-19  Jim Meyering  <meyering@redhat.com>
78172         xfreopen: new module, from coreutils
78173         * modules/xfreopen: New module.
78174         * lib/xfreopen.c: New file.
78175         * lib/xfreopen.h: New file.
78176         * MODULES.html.sh (File stream based Input/Output"): Add it.
78178 2009-11-19  Eric Blake  <ebb9@byu.net>
78180         manywarnings: depend on warnings
78181         * modules/manywarnings (Depends-on): Add warnings.
78183         build: avoid compiler warnings
78184         * lib/select.c (rpl_select): Delete unused variable.
78185         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
78187 2009-11-18  Eric Blake  <ebb9@byu.net>
78189         tests: avoid false negative with --with-packager
78190         * tests/test-version-etc.sh: Discard packager information.
78191         * tests/test-argp-version-etc-1.sh: Likewise.
78192         Reported by Mike Frysinger.
78194         utimens: fix regression on Solaris
78195         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
78196         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
78197         can only change fd timestamps via futimesat.  Instead, use an
78198         additional witness macro to avoid BSD bug.
78199         Reported by Jim Meyering.
78201 2009-11-17  Eric Blake  <ebb9@byu.net>
78203         usleep: use it to simplify tests
78204         * modules/stat-time-tests (Depends-on): Add usleep.
78205         (configure.ac): Drop usleep check.
78206         * modules/chown-tests (Depends-on, configure.ac): Likewise.
78207         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
78208         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
78209         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
78210         * modules/openat-tests (Depends-on, configure.ac): Likewise.
78211         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
78212         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
78213         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
78214         Likewise.
78215         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
78216         * tests/test-lchown.h (nap): Likewise.
78217         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
78218         * tests/test-stat-time.c (nap): Likewise.
78219         * tests/test-utimens-common.h (nap): Update comments.
78221         usleep: new module
78222         * modules/usleep: New file.
78223         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
78224         * lib/usleep.c (usleep): Likewise.
78225         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
78226         * modules/unistd (Makefile.am): Substitute witnesses.
78227         * lib/unistd.in.h (usleep): Add declaration.
78228         * doc/pastposix-functions/usleep.texi (usleep): Document this.
78229         * MODULES.html.sh (Date and time): Likewise.
78230         * modules/usleep-tests (Depends-on): New test.
78231         * tests/test-usleep.c: New file.
78233         chown: work around OpenBSD bug
78234         * lib/chown.c (rpl_chown): Work around the bug.
78235         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
78236         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
78237         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
78238         * modules/chown (Depends-on): Add stdbool.
78239         * modules/lchown (Depends-on): Likewise.
78240         * doc/posix-functions/chown.texi (chown): Document the bug.
78241         * doc/posix-functions/lchown.texi (lchown): Likewise.
78242         * tests/test-lchown.h (test_chown): Relax test.
78244         mkstemp: avoid conflict with C++ keyword template
78245         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
78246         * lib/mkostemp.c (mkostemp): Likewise.
78247         * lib/mkostemps.c (mkostemps): Likewise.
78248         * lib/mkstemp.c (mkstemp): Likewise.
78249         * lib/mkstemps.c (mkstemps): Likewise.
78251         xalloc-die-tests: optimize
78252         * tests/test-xalloc-die.sh: Reduce number of processes.
78254 2009-11-17  Simon Josefsson  <simon@josefsson.org>
78256         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
78257         patch from ludo@gnu.org (Ludovic Courtès).
78259 2009-11-17  Jim Meyering  <meyering@redhat.com>
78261         version-etc: use proper license string
78262         * modules/version-etc (License): Use LGPL, not LGPLv3+.
78263         * modules/version-etc-fsf: Likewise.
78265 2009-11-17  Simon Josefsson  <simon@josefsson.org>
78267         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
78268         printed to stdout.  Deal with EOL differences.
78270 2009-11-17  Eric Blake  <ebb9@byu.net>
78272         unsetenv: work around Solaris bug
78273         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
78274         * lib/unsetenv.c (rpl_unsetenv): Work around it.
78275         Reported by Jim Meyering.
78277         vasnprintf: avoid compiler warnings
78278         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
78279         variables.
78280         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
78282 2009-11-17  Simon Josefsson  <simon@josefsson.org>
78284         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
78285         settings since xalloc-die is no longer the self test,
78286         xalloc-die.sh is.
78288 2009-11-17  Jim Meyering  <meyering@redhat.com>
78290         test-xalloc-die.sh: make the code agree with the commit log
78291         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
78292         at the end, just in case you happen to have a test-xalloc-die
78293         program in some other PATH directory.
78295         test-xalloc-die.sh: fix a portability bug
78296         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
78297         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
78298         Otherwise, argv[0] (as often seen in diagnostics) would be too
78299         system-dependent, sometimes with, and sometimes without the leading "./".
78301         version-etc-fsf: relax license to LGPLv3+
78302         * modules/version-etc-fsf (License): Relax license.
78304 2009-11-16  Eric Blake  <ebb9@byu.net>
78306         xalloc-die-tests: avoid printing null pointer
78307         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
78308         shell script.
78309         * tests/test-xalloc-die.c (program_name): Declare.
78310         * tests/test-xalloc-die.sh (tmpfiles): New file.
78312         setenv, unsetenv: work around various bugs
78313         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
78314         (setenv) [HAVE_SETENV]: Work around bugs.
78315         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
78316         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
78317         for bugs.
78318         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
78319         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
78320         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
78321         * modules/stdlib (Makefile.am): Update substitutions.
78322         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
78323         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
78324         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
78325         * modules/setenv-tests: New test.
78326         * modules/unsetenv-tests: Likewise.
78327         * tests/test-setenv.c: New file.
78328         * tests/test-unsetenv.c: Likewise.
78330 2009-11-16  Jim Meyering  <meyering@redhat.com>
78332         version-etc: relax license to LGPLv3+
78333         * modules/version-etc (License): Relax license.
78335         better AC_REQUIRE expanded-before-required-warning avoidance
78336         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
78337         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
78338         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
78339         which is no longer needed.
78341 2009-11-16  Eric Blake  <ebb9@byu.net>
78343         test-freading: clean up temporary file
78344         * tests/test-freading.c (main): Remove file on success, and use
78345         ASSERT more liberally.
78346         Reported by Jim Meyering.
78348 2009-11-16  Jim Meyering  <meyering@redhat.com>
78350         avoid new AC_REQUIRE expanded-before-required warnings
78351         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
78352         merely using it.
78353         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
78354         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
78356 2009-11-15  Simon Josefsson  <simon@josefsson.org>
78358         * tests/test-xalloc-die.c: New file.
78359         * modules/xalloc-die-tests: New file.
78360         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
78361         XFAIL_TESTS so it can be appended by modules.
78363 2009-11-15  Simon Josefsson  <simon@josefsson.org>
78365         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
78366         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
78368 2009-11-14  Eric Blake  <ebb9@byu.net>
78370         fnmatch: avoid compiler warning
78371         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
78372         to silence compiler warning about mismatch signedness in ?:.
78373         Reported by Robert Millan.
78375         intprops: add double-inclusion guard
78376         * lib/intprops.h: Allow idempotent includes.
78377         Suggested by Bruce Korb.
78379         openat: detect Solaris fchownat bug
78380         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
78381         penalizing glibc chownat when only lchownat is broken.
78382         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
78383         trailing slash bugs.
78384         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
78385         * modules/openat-tests (Files): Include more files.
78386         (Depends-on): Add mgetgroups, sleep, stat-time.
78387         (configure.ac): Add additional checks.
78388         (Makefile.am): Build new test.
78389         * tests/test-fchownat.c: New file.
78391         lchown: detect Solaris and FreeBSD bug
78392         * lib/lchown.c (rpl_lchown): Work around bug.
78393         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
78394         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
78395         * modules/unistd (Makefile.am): Populate it.
78396         * lib/unistd.in.h (lchown): Update declaration.
78397         * doc/posix-functions/lchown.texi (lchown): Document the bug.
78398         * modules/lchown-tests: New file.
78399         * tests/test-lchown.h (test_lchown): Likewise.
78400         * tests/test-lchown.c (main): Likewise.
78402         chown: detect Solaris and FreeBSD bug
78403         * lib/chown.c (rpl_chown): Work around bug.
78404         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
78405         (gl_PREREQ_CHOWN): Delete.
78406         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
78407         * modules/unistd (Makefile.am): Populate it.
78408         * lib/unistd.in.h (chown): Update declaration.
78409         * lib/lchown.c (chown): Update client.
78410         * modules/lchown (Depends-on): Add lstat.
78411         * doc/posix-functions/chown.texi (chown): Document the bug.
78412         * doc/posix-functions/getgroups.texi (getgroups): Document
78413         getgroups pitfall.
78414         * modules/chown-tests: New file.
78415         * tests/test-chown.h (test_chown): Likewise.
78416         * tests/test-chown.c (main): Likewise.
78418 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
78420         gnulib-tool: correctly detect absence of m4 directories
78421         * gnulib-tool: Avoid extra newline on data passed to wc -l.
78423 2009-11-14  Jim Meyering  <meyering@redhat.com>
78425         maint.mk: Prohibit inclusion of "xalloc.h" without use.
78426         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
78428 2009-11-14  John W. Eaton  <jwe@gnu.org>
78430         strftime.h: wrap function declaration in extern "C" block
78431         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
78433 2009-11-13  Eric Blake  <ebb9@byu.net>
78435         getgroups: avoid compiler warning
78436         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
78438         getgroups: work around FreeBSD bug
78439         * lib/getgroups.c (rpl_getgroups): Work around the bug.
78440         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
78441         * doc/posix-functions/getgroups.texi (getgroups): Document it.
78442         * tests/test-getgroups.c (main): Fix buffer overrun.
78444         getgroups: avoid compilation failure
78445         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
78446         * modules/getgroups (Depends-on): Add stdint.
78448 2009-11-13  Jim Meyering  <meyering@redhat.com>
78450         test-getgroups: avoid compilation failure
78451         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
78453 2009-11-13  Eric Blake  <ebb9@byu.net>
78455         mgetgroups: new module, taken from coreutils
78456         * modules/mgetgroups: New file.
78457         * lib/mgetgroups.h: Likewise.
78458         * lib/mgetgroups.c (mgetgroups): Likewise.
78459         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
78460         * MODULES.html.sh (Users and groups): Mention it.
78462         getgroups: don't expose GETGROUPS_T to user
78463         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
78464         an element at a time if GETGROUPS_T is wrong size.
78465         * lib/getugroups.h (getugroups): Change signature.
78466         * lib/unistd.in.h (getgroups): Likewise.
78467         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
78468         signature needs fixing.
78469         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
78470         AC_TYPE_GETGROUPS.
78471         * modules/group-member (Depends-on): Add getgroups.
78472         * lib/group-member.c (group_info, get_group_info): Use gid_t.
78473         (group_member): Rely on getgroups replacement.
78474         * lib/getugroups.c (getugroups): Use gid_t.
78475         * tests/test-getgroups.c (main): Likewise.
78476         * NEWS: Mention the signature change.
78477         * doc/posix-functions/getgroups.texi (getgroups): Mention the
78478         problem with signature.
78479         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
78480         GETGROUPS_T is still useful for setgroups.
78482         getgroups, getugroups: provide stubs for mingw
78483         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
78484         * lib/getugroups.c (getugroups): Likewise.
78485         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
78486         function.  Modernize replacement scheme.
78487         (gl_PREREQ_GETGROUPS): Delete.
78488         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
78489         * modules/getgroups (configure.ac): Declare witness.
78490         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
78491         * modules/unistd (Depends-on): Substitute witness.
78492         * lib/unistd.in.h (getgroups): Declare replacement.
78494         getgroups: avoid calling exit
78495         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
78496         drop xalloc.
78497         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
78498         dependencies.
78499         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
78500         exiting, in the rare case of malloc failure.
78502         getgroups: fix logic error
78503         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
78504         has more than 20 groups.
78505         * modules/getgroups-tests: New test.
78506         * tests/test-getgroups.c: New file.
78508 2009-11-13  Simon Josefsson  <simon@josefsson.org>
78510         * tests/test-base64.c: Improve.
78512 2009-11-13  Simon Josefsson  <simon@josefsson.org>
78514         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
78515         Blake <ebb9@byu.net>.
78517 2009-11-13  Simon Josefsson  <simon@josefsson.org>
78519         * tests/test-xvasprintf.c: Add %s%s related checks.
78521 2009-11-12  Eric Blake  <ebb9@byu.net>
78523         version-etc: match standards.texi style
78524         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
78525         and use <> only for URLs.
78527 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
78529         fts: do not fail on a submount during traversal
78530         * lib/fts.c (fts_build): Read the stat info again after opening
78531         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
78532         Original report at http://bugzilla.redhat.com/501848.
78534 2009-11-12  Jim Meyering  <meyering@redhat.com>
78536         bootstrap: sync from coreutils
78537         * build-aux/bootstrap (bootstrap_epilogue): New function.
78538         Use git_modules_config in one more place.  This make bootstrap's
78539         --gnulib-srcdir option more useful for testing.
78541         bootstrap: generalize autoheader check
78542         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
78543         AC_CONFIG_HEADERS.
78545 2009-11-11  Eric Blake  <ebb9@byu.net>
78547         mkfifoat: use new modules for Solaris and BSD bugs
78548         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
78549         * lib/mkfifoat.c (mknodat): Split...
78550         * lib/mknodat.c (mknodat): ...into new file.
78551         * modules/mkfifoat (Files): Ship new file.
78552         (Depends-on): Add mkfifo, mknod.
78553         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
78554         (Depends-on): Add symlink.
78555         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
78556         redundant with test_mkfifo.h.
78557         (do_mkfifoat, do_mknodat): New helpers.
78559         mknod: new module
78560         * modules/mknod: New file.
78561         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
78562         * lib/mknod.c (mknod): Likewise.
78563         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
78564         defaults.
78565         * modules/sys_stat (Makefile.am): Substitute them.
78566         * lib/sys_stat.in.h (mknod): Declare replacement.
78567         * MODULES.html.sh (Support for systems lacking POSIX:2008):
78568         Document it.
78569         * doc/posix-functions/mknod.texi (mknod): Likewise.
78570         * modules/mknod-tests: New test.
78571         * tests/test-mknod.c: Likewise.
78573         mkfifo: new module
78574         * modules/mkfifo: New file.
78575         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
78576         * lib/mkfifo.c (mkfifo): Likewise.
78577         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
78578         defaults.
78579         * modules/sys_stat (Makefile.am): Substitute them.
78580         * lib/sys_stat.in.h (mkfifo): Declare replacement.
78581         * MODULES.html.sh (Support for systems lacking POSIX:2008):
78582         Document it.
78583         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
78584         * modules/mkfifo-tests: New test.
78585         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
78586         from test-mkfifoat.c.
78587         * tests/test-mkfifo.c: New file.
78589         readlink: detect FreeBSD bug
78590         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
78591         slash on symlink.
78592         * doc/posix-functions/readlink.texi (readlink): Document the bug.
78593         * tests/test-readlink.h (test_readlink): Enhance test.
78595         symlink: detect FreeBSD bug
78596         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
78597         slash on symlink.
78598         * doc/posix-functions/symlink.texi (symlink): Document the bug.
78599         * tests/test-symlink.h (test_symlink): Enhance test.
78601 2009-11-10  Eric Blake  <ebb9@byu.net>
78603         link: detect FreeBSD bug
78604         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
78605         symlink.
78606         * doc/posix-functions/link.texi (link): Document the bug.
78607         * tests/test-link.h (test_link): Enhance test.
78608         * tests/test-linkat.c (main): Update caller.
78610         unlink, remove: detect FreeBSD bug
78611         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
78612         slash on symlink.
78613         * doc/posix-functions/unlink.texi (unlink): Document the bug.
78614         * doc/posix-functions/remove.texi (remove): Likewise.
78615         * tests/test-unlink.h (test_unlink): Enhance test.
78616         * tests/test-remove.c (main): Likewise.
78618 2009-11-09  Eric Blake  <ebb9@byu.net>
78620         rename: detect FreeBSD bug
78621         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
78622         slash on symlink.
78623         * modules/renameat-tests (Depends-on): Add filenamecat.
78624         * tests/test-rename.h (test_rename): Allow one more errno.
78625         * tests/test-renameat.c (main): Likewise.
78626         * doc/posix-functions/rename.texi (rename): Document the bug.
78628         open: detect FreeBSD bug
78629         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
78630         symlink.
78631         * doc/posix-functions/open.texi (open): Document the bug.
78632         * doc/posix-functions/utimes.texi (utimes): Likewise.
78633         * tests/test-open.h (test_open): Add parameters, and test symlink
78634         handling.
78635         * tests/test-open.c (main): Adjust caller.
78636         * tests/test-fcntl-safer.c (main): Likewise.
78637         * modules/open-tests (Depends-on): Add stdbool, symlink.
78638         * modules/fcntl-safer-tests (Depends-on): Likewise.
78639         * tests/test-openat.c (main): Add test-open tests.
78641         stat: detect FreeBSD bug
78642         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
78643         symlink.
78644         * doc/posix-functions/stat.texi (stat): Document the bug.
78645         * tests/test-stat.h (test_stat_func): Add argument.
78646         * tests/test-stat.c (main): Adjust caller.
78647         * tests/test-fstatat.c (main): Likewise.
78648         * modules/stat-tests (Depends-on): Add stdbool, symlink.
78649         Reported by Jim Meyering.
78651 2009-11-09  James Youngman  <jay@gnu.org>
78653         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
78654         * lib/strftime.c: Correct placement of #include "ignore-value.h".
78656 2009-11-08  Jim Meyering  <meyering@redhat.com>
78658         utimens: remove invalid futimesat call
78659         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
78660         It used the file descriptor of the target file as the DIR_FD
78661         parameter and NULL as the file name.  That caused failure with
78662         errno == EFAULT on FreeBSD-8.0-rc2
78664 2009-11-07  Eric Blake  <ebb9@byu.net>
78666         fflush, freadseek: use fseeko, not fseek
78667         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
78668         (clear_ungetc_buffer): Avoid potential problems on large files.
78669         * lib/freadseek.c (freadseek): Likewise.
78670         * modules/freadseek (Depends-on): Add fseeko.
78671         * modules/fseek (configure.ac): Set a witness.
78672         * tests/test-fflush.c (main): Use fseeko.
78673         * tests/test-fpurge.c (fseek): Disable link warning.
78674         * tests/test-freadable.c (fseek): Likewise.
78675         * tests/test-freading.c (fseek): Likewise.
78676         * tests/test-fseeko.c (fseek): Likewise.
78677         * tests/test-ftell.c (fseek): Likewise.
78678         * tests/test-ftello.c (fseek): Likewise.
78679         * tests/test-fwritable.c (fseek): Likewise.
78680         * tests/test-fwriting.c (fseek): Likewise.
78682 2009-11-06  Simon Josefsson  <simon@josefsson.org>
78684         * modules/memchr (Depends-on): Drop getpagesize dependency.
78686 2009-11-06  Simon Josefsson  <simon@josefsson.org>
78688         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
78689         Reported by Ludovic Courtès.
78690         * build-aux/pmccabe2html: Improve example usage.
78691         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
78693 2009-11-06  Jim Meyering  <meyering@redhat.com>
78695         do-release-commit-and-tag: New module.
78696         Automate the release-commit and tag process.
78697         * build-aux/do-release-commit-and-tag: New script, from coreutils.
78698         * modules/do-release-commit-and-tag: New file.
78699         * MODULES.html.sh (Support for maintaining and releasing): Add it.
78701 2009-11-06  Simon Josefsson  <simon@josefsson.org>
78703         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
78704         because test-select.c uses inet_pton.
78706 2009-11-06  Simon Josefsson  <simon@josefsson.org>
78708         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
78709         GETADDRINFO_LIB.  Bump serial number.
78710         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
78711         Suggested by Eric Blake <ebb9@byu.net>.
78713 2009-11-05  Eric Blake  <ebb9@byu.net>
78715         strtod: detect darwin bug
78716         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
78717         Reported by Leo Davis.
78719         freopen-safer: new module
78720         * modules/freopen-safer: New module.
78721         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
78722         * lib/freopen-safer.c (freopen_safer): New file.
78723         * lib/stdio-safer.h (freopen_safer): New declaration.
78724         * lib/stdio--.h (freopen): New override.
78725         * MODULES.html.sh (File stream based Input/Output): Mention it.
78726         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
78727         freopen-safer module.
78728         * doc/posix-functions/stderr.texi (stderr): Likewise.
78729         * doc/posix-functions/stdin.texi (stdin): Likewise.
78730         * doc/posix-functions/stdout.texi (stdout): Likewise.
78731         * modules/freopen-safer-tests: New test.
78732         * tests/test-reopen-safer.c: New file.
78734 2009-11-05  Jim Meyering  <meyering@redhat.com>
78736         maint.mk: Prohibit inclusion of "close-stream.h" without use.
78737         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
78739 2009-11-05  Simon Josefsson  <simon@josefsson.org>
78741         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
78743 2009-11-05  Simon Josefsson  <simon@josefsson.org>
78745         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
78747 2009-11-05  Simon Josefsson  <simon@josefsson.org>
78749         Fix link error.
78750         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
78751         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
78753 2009-11-05  Simon Josefsson  <simon@josefsson.org>
78755         * tests/test-func.c: Also test value of __func__.
78757 2009-11-05  Simon Josefsson  <simon@josefsson.org>
78759         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
78760         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
78762 2009-11-05  Bruno Haible  <bruno@clisp.org>
78764         Fix link error.
78765         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
78766         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
78767         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
78769 2009-11-05  Bruno Haible  <bruno@clisp.org>
78771         Tests for module 'inet_pton'.
78772         * modules/inet_pton-tests: New file.
78773         * tests/test-inet_pton.c: New file.
78775 2009-11-05  Bruno Haible  <bruno@clisp.org>
78777         Tests for module 'inet_ntop'.
78778         * modules/inet_ntop-tests: New file.
78779         * tests/test-inet_ntop.c: New file.
78781 2009-11-04  Eric Blake  <ebb9@byu.net>
78783         stdlib-safer: wrap all mkstemp variants
78784         * modules/mkostemp (configure.ac): Set witness.
78785         * modules/mkostemps (configure.ac): Likewise.
78786         * modules/mkstemps (configure.ac): Likewise.
78787         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
78788         (mkstemps_safer): Wrap more functions.
78789         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
78790         wrapping.
78791         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
78792         (mkstemps_safer): Implement the wrappers.
78794         mkstemps, mkostemps: new modules
78795         * modules/mkostemps: New module.
78796         * modules/mkstemps: Likewise.
78797         * lib/mkostemps.c (mkostemps): New file.
78798         * lib/mkstemps.c (mkstemps): Likewise.
78799         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
78800         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
78801         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
78802         * modules/stdlib (Makefile.am): Substitute them.
78803         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
78804         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
78805         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
78806         * doc/gnulib.texi (Glibc stdlib.h): Include them.
78807         * MODULES.html.sh (File system functions): Mention them.
78809         tempname: resync from glibc
78810         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
78811         same values for __GT_FILE as glibc.  Abort even when assertions
78812         are disabled.
78813         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
78814         match its value otherwise.  Allow idempotent inclusion.
78815         * lib/mkdtemp.c (mkdtemp): Adjust caller.
78816         * lib/mkostemp.c (mkostemp): Likewise.
78817         * lib/mkstemp.c (mkstemp): Likewise.
78818         * lib/tmpfile.c (tmpfile): Likewise.
78819         * NEWS: Document this.
78821         utimens: fix use of futimens on older Linux
78822         * lib/utimens.c (fdutimens): Use updated, rather than original,
78823         timespec to avoid bug in older Linux kernel.
78824         Reported by Simon Josefsson.
78826 2009-11-04  Bruno Haible  <bruno@clisp.org>
78828         Make num_processors more flexible and consistent.
78829         * lib/nproc.h (enum nproc_query): New type.
78830         (num_processors): Add a 'query' argument.
78831         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
78832         (num_processors): Add a 'query' argument. Test the value of the
78833         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
78834         mingw, count the number of CPUs available for the current process.
78835         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
78836         Check for sched_getaffinity and sched_getaffinity_np.
78837         * modules/nproc (Depends-on): Add c-ctype, extensions.
78838         * NEWS: Mention the change.
78840 2009-11-03  Bruno Haible  <bruno@clisp.org>
78842         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
78844 2009-11-03  Jim Meyering  <meyering@redhat.com>
78846         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
78847         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
78848         if it is defined.
78850 2009-11-02  Eric Blake  <ebb9@byu.net>
78852         mktime, timegm: share common declaration
78853         * lib/mktime-internal.h: New file.
78854         * lib/mktime.c: Use it rather than open-coding a declaration.
78855         * lib/timegm.c: Likewise.
78856         * modules/mktime (Files): Ship it.
78857         * modules/timegm (Files): Likewise.
78858         Suggested by Bruno Haible.
78860         test-update-copyright: update test to match script changes
78861         * tests/test-update-copyright.sh: Avoid hard-coding perl
78862         location.  Don't update *.bak created by earlier runs.
78864 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
78865             Simon Josefsson  <simon@josefsson.org>
78866             Bruno Haible  <bruno@clisp.org>
78868         Fix link error on Solaris 8.
78869         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
78870         also in libnsl. Define also INET_PTON_LIB.
78871         * modules/inet_pton (Link): New section.
78873 2009-11-02  Simon Josefsson  <simon@josefsson.org>
78874             Bruno Haible  <bruno@clisp.org>
78876         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
78877         * modules/inet_ntop (Link): New section.
78878         Reported by Boyan Kasarov <bkasarov@gmail.com>.
78880 2009-11-02  Eric Blake  <ebb9@byu.net>
78882         maint: avoid compiler warnings in m4 macros
78883         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
78884         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
78886 2009-11-02  Simon Josefsson  <simon@josefsson.org>
78888         * m4/pmccabe2html.m4: Remove file.
78889         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
78890         function.  Change maintainer.
78891         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
78892         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
78893         Courtès).
78895 2009-10-31  Eric Blake  <ebb9@byu.net>
78897         fseeko: fix m4 regression
78898         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
78899         regression from 2009-10-27.
78900         Reported by Ralf Wildenhues.
78902 2009-10-31  Jim Meyering  <meyering@redhat.com>
78904         inttostr: aesthetics and improved (compile-time) safety
78905         Define inttype_is_signed rather than inttype_is_unsigned,
78906         since the sole use is via "#if inttype_is_signed".
78907         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
78908         inttype_is_unsigned.
78909         * lib/offtostr.c (inttype_is_signed): Likewise.
78910         * lib/uinttostr.c (inttype_is_signed): Likewise.
78911         * lib/umaxtostr.c (inttype_is_signed): Likewise.
78912         * lib/inttostr.c (inttostr): Use verify to cross-check the
78913         inttype_is_signed value and the signedness of the actual type.
78914         * modules/inttostr (Depends-on): Add verify.
78916 2009-10-30  Eric Blake  <ebb9@byu.net>
78918         build: avoid compiler warnings
78919         * lib/fchmodat.c (lchmod): Mark unused variables.
78920         * lib/getopt.c (_getopt_initialize): Likewise.
78921         * lib/mktime.c (__mktime_internal): Provide prototype.
78922         * lib/inttostr.c (inttostr): Avoid compiler warning even with
78923         older gcc that do not understand #pragma GCC diagnostic.
78924         * lib/uinttostr.c (inttype_is_unsigned): Define.
78925         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
78927 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
78929         stat: fix compilation on AIX
78930         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
78931         only see struct stat64.
78933 2009-10-30  Eric Blake  <ebb9@byu.net>
78935         exclude: make more robust
78936         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
78937         rather than masking a coding bug.
78938         Suggested by Bruno Haible.
78940 2009-10-30  Jim Meyering  <meyering@redhat.com>
78942         perl scripts: remove #!/usr/bin/perl in favor of more portable...
78943         Rather than putting #!/usr/bin/perl on the first line,
78944         start with a variant of what's recommended by "man perlrun" that
78945         invokes the first "perl" program from your shell's search path.
78946         * build-aux/gitlog-to-changelog: Replace #!... as above.
78947         Add a "Local Variables" perl mode setting.
78948         Prompted by a patch from Ludovic Courtès.
78949         Improved by Eric Blake.
78950         * build-aux/useless-if-before-free: Likewise.
78951         * build-aux/announce-gen: Likewise.
78952         * build-aux/update-copyright: Likewise.
78954 2009-10-29  Eric Blake  <ebb9@byu.net>
78956         filenamecat-lgpl: adjust clients
78957         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
78958         filenamecat.
78959         * modules/renameat (Depends-on): Likewise.
78961         filenamecat: split into filenamecat-lgpl
78962         * modules/filenamecat-lgpl: New module.
78963         * modules/filenamecat (Files): Move library-safe files into
78964         filenamecat-lgpl.
78965         (Depends-on): Add filenamecat-lgpl.
78966         (configure.ac): Declare witness.
78967         * lib/filenamecat.h (file_name_concat): Only declare when using
78968         GPL module.
78969         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
78970         Move...
78971         * lib/filenamecat-lgpl.c: ...into new file.
78972         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
78973         (gl_FILE_NAME_CONCAT): Use it.
78974         * MODULES.html.sh (File system functions): Mention new module.
78976         argp: avoid memory leak
78977         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
78978         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
78979         base_name, since the latter malloc()s and can call exit().
78980         Leak introduced 2006-07-03.
78982         dirname-lgpl: adjust clients that don't need full dirname
78983         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
78984         * modules/filenamecat (Depends-on): Likewise.
78985         * modules/linkat (Depends-on): Likewise.
78986         * modules/mkancesdirs (Depends-on): Likewise.
78987         * modules/mkdir (Depends-on): Likewise.
78988         * modules/openat (Depends-on): Likewise.
78989         * modules/savewd (Depends-on): Likewise.
78990         * modules/rename (Depends-on): Likewise.
78991         (License): Relax license.
78992         * modules/mkdir-tests (Depends-on): Drop progname.
78993         (Makefile.am): Delete unneeded LDADD.
78994         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
78996         dirname: split into dirname-lgpl
78997         * modules/dirname-lgpl: New module.
78998         * modules/dirname (Files): Move library-safe files into
78999         dirname-lgpl.
79000         (Depends-on): Add dirname-lgpl.
79001         (configure.ac): Declare witness.
79002         * modules/double-slash-root (License): Relax license.
79003         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
79004         module.
79005         * lib/dirname.c (dir_len, mdir_name): Move...
79006         * lib/dirname-lgpl.c: ...into new file.
79007         * lib/basename.c (last_component, base_len): Move...
79008         * lib/basename-lgpl.c: ...into new file.
79009         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
79010         (gl_DIRNAME): Use it.
79011         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
79012         Mention new module.
79013         * modules/dirname-tests (Depends-on): Add progname.
79014         * tests/test-dirname.c (program_name): Delete.
79016         mkdir: make safe for libraries
79017         * modules/mkdir (Depends-on): Drop xalloc.
79018         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
79019         exit.
79021         tests: avoid some compiler warnings
79022         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
79023         literals.
79024         * tests/test-memchr.c (main): Avoid type mismatch.
79025         * tests/test-arpa_inet.c (main): Avoid unused parameters.
79026         * tests/test-base64.c (main): Likewise.
79027         * tests/test-getdelim.c (main): Likewise.
79028         * tests/test-gethostname.c (main): Likewise.
79029         * tests/test-getline.c (main): Likewise.
79030         * tests/test-netinet_in.c (main): Likewise.
79031         * tests/test-select.c (open_server_socket, main): Likewise.
79032         * tests/test-select-stdin.c (main): Likewise.
79033         * tests/test-sockets.c (main): Likewise.
79034         * tests/test-strsignal.c (main): Likewise.
79035         * tests/test-sys_select.c (main): Likewise.
79036         * tests/test-sys_socket.c (main): Likewise.
79037         * tests/test-u64.c (main): Likewise.
79038         * tests/test-xfprintf-posix.c (main): Likewise.
79039         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
79041         sockets: avoid compiler warning
79042         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
79044         maint: detect usage(1) and other suspicious exits
79045         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
79047 2009-10-29  Jim Meyering  <meyering@redhat.com>
79049         timespec: long-to-int truncation could make timespec_cmp malfunction
79050         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
79051         a multiple of 2^32 nanoseconds as no difference.
79053 2009-10-28  Jim Meyering  <meyering@redhat.com>
79055         fprintftime: wrap macro code argument in "do {...} while(0)"
79056         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
79057         cpy macro must be a statement that can be followed by a semicolon.
79058         Now that the else clause contains a comment and is hence longer
79059         than one line, I require curly braces.  That in turn requires
79060         that we wrap this code block in the standard do...while(0).
79062         fprintftime: remove stray semicolon from previous change
79063         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
79065         fprintftime: avoid a warning about ignored fwrite return value
79066         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
79067         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
79068         that is unsafe.
79069         * modules/fprintftime (Depends-on): Add ignore-value.
79071         exclude: avoid an unwarranted warning
79072         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
79074 2009-10-27  Eric Blake  <ebb9@byu.net>
79076         fseek: avoid compilation failure when fflush is replaced
79077         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
79078         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
79079         module is in use.
79080         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
79081         module is not in use; since REPLACE_FSEEK worked otherwise.
79082         (GNULIB_FTELLO): Likewise for ftell.
79083         Reported by Ian Beckwith and others.
79085 2009-10-27  Bruno Haible  <bruno@clisp.org>
79087         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
79088         Reported by Jim Meyering.
79090 2009-10-27  Jim Meyering  <jim@meyering.net>
79091             Bruno Haible  <bruno@clisp.org>
79093         Avoid warning despite dropping the return value of fwrite.
79094         * lib/unicodeio.c: Include ignore-value.h.
79095         (fwrite_success_callback): Explicitly ignore fwrite's return value.
79096         * modules/unicodeio (Depends-on): Add ignore-value.
79098 2009-10-26  Eric Blake  <ebb9@byu.net>
79100         areadlinkat: fix fallback path
79101         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
79102         pointer and zero.
79104 2009-10-22  Pádraig Brady  <P@draigBrady.com>
79106         Use a better IO block size for modern systems
79107         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
79108         * lib/md2.c: Likewise.
79109         * lib/md4.c: Likewise.
79110         * lib/md5.c: Likewise.
79111         * lib/sha1.c: Likewise.
79112         * lib/sha256.c: Likewise.
79113         * lib/sha512.c: Likewise.
79115 2009-10-22  Eric Blake  <ebb9@byu.net>
79117         tests: avoid several compiler warnings
79118         * tests/test-getcwd.c (main): Avoid buffer underflow.
79119         * tests/test-getdate.c (main): String literals are not safe with
79120         putenv, so use setenv.  Declare unused argument.
79121         * modules/getdate-tests (Depends-on): Add setenv.
79122         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
79123         problems with string literals in char *.
79124         * tests/test-hash.c (main): Avoid shadowing declaration.
79125         (insert_new): Treat string literals as char const *.
79126         * tests/test-getopt.h (test_getopt): Likewise.
79127         (getopt_loop): Alter types to minimize casting elsewhere.
79128         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
79129         (test_getopt_long_posix): Likewise.
79130         (do_getopt_long): Add wrapper to minimize casting.
79131         * tests/test-atexit.c (clear_temp_file): Use void.
79132         * tests/test-areadlink-with-size.c (main): Declare unused
79133         arguments.
79134         * tests/test-areadlink.c (main): Likewise.
79135         * tests/test-areadlinkat-with-size.c (main): Likewise.
79136         * tests/test-areadlinkat.c (main): Likewise.
79137         * tests/test-canonicalize-lgpl.c (main): Likewise.
79138         * tests/test-canonicalize.c (main): Likewise.
79139         * tests/test-dirent-safer.c (main): Likewise.
79140         * tests/test-dirname.c (main): Likewise.
79141         * tests/test-dup2.c (main): Likewise.
79142         * tests/test-fchdir.c (main): Likewise.
79143         * tests/test-fcntl-h.c (main): Likewise.
79144         * tests/test-fcntl-safer.c (main): Likewise.
79145         * tests/test-fdopendir.c (main): Likewise.
79146         * tests/test-fdutimensat.c (main): Likewise.
79147         * tests/test-fflush.c (main): Likewise.
79148         * tests/test-filenamecat.c (main): Likewise.
79149         * tests/test-filevercmp.c (main): Likewise.
79150         * tests/test-fopen-safer.c (main): Likewise.
79151         * tests/test-fopen.c (main): Likewise.
79152         * tests/test-fpending.c (main): Likewise.
79153         * tests/test-fpurge.c (main): Likewise.
79154         * tests/test-freading.c (main): Likewise.
79155         * tests/test-fstatat.c (main): Likewise.
79156         * tests/test-fsync.c (main): Likewise.
79157         * tests/test-futimens.c (main): Likewise.
79158         * tests/test-getndelim2.c (main): Likewise.
79159         * tests/test-gettimeofday.c (main): Likewise.
79160         * tests/test-getopt.c (main): Likewise.
79161         * tests/test-i-ring.c (main): Likewise.
79162         * tests/test-inttypes.c (main): Likewise.
79163         * tests/test-link.c (main): Likewise.
79164         * tests/test-lstat.c (main): Likewise.
79165         * tests/test-math.c (main): Likewise.
79166         * tests/test-md5.c (main): Likewise.
79167         * tests/test-memchr2.c (main): Likewise.
79168         * tests/test-memrchr.c (main): Likewise.
79169         * tests/test-mkdir.c (main): Likewise.
79170         * tests/test-mkdirat.c (main): Likewise.
79171         * tests/test-mkfifoat.c (main): Likewise.
79172         * tests/test-open.c (main): Likewise.
79173         * tests/test-openat-safer.c (main): Likewise.
79174         * tests/test-openat.c (main): Likewise.
79175         * tests/test-quotearg.c (main): Likewise.
79176         * tests/test-rawmemchr.c (main): Likewise.
79177         * tests/test-readlink.c (main): Likewise.
79178         * tests/test-remove.c (main): Likewise.
79179         * tests/test-rename.c (main): Likewise.
79180         * tests/test-renameat.c (main): Likewise.
79181         * tests/test-rmdir.c (main): Likewise.
79182         * tests/test-sha1.c (main): Likewise.
79183         * tests/test-signal.c (main): Likewise.
79184         * tests/test-sigaction.c (main): Likewise.
79185         * tests/test-stat.c (main): Likewise.
79186         * tests/test-stat-time.c (main): Likewise.
79187         * tests/test-stddef.c (main): Likewise.
79188         * tests/test-stdint.c (main): Likewise.
79189         * tests/test-stdio.c (main): Likewise.
79190         * tests/test-stdlib.c (main): Likewise.
79191         * tests/test-strchrnul.c (main): Likewise.
79192         * tests/test-strerror.c (main): Likewise.
79193         * tests/test-string.c (main): Likewise.
79194         * tests/test-strtod.c (main): Likewise.
79195         * tests/test-strverscmp.c (main): Likewise.
79196         * tests/test-symlink.c (main): Likewise.
79197         * tests/test-symlinkat.c (main): Likewise.
79198         * tests/test-sys_stat.c (main): Likewise.
79199         * tests/test-sys_time.c (main): Likewise.
79200         * tests/test-time.c (main): Likewise.
79201         * tests/test-unistd.c (main): Likewise.
79202         * tests/test-unlink.c (main): Likewise.
79203         * tests/test-unlinkat.c (main): Likewise.
79204         * tests/test-utimens.c (main): Likewise.
79205         * tests/test-utimensat.c (main): Likewise.
79206         * tests/test-version-etc.c (main): Likewise.
79207         * tests/test-wchar.c (main): Likewise.
79208         * tests/test-wctype.c (main): Likewise.
79209         * tests/test-xprintf-posix.c (main): Likewise.
79210         * tests/test-posixtm.c (main): Likewise.
79211         (STREQ): Delete unused macro.
79212         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
79213         shadowed variables.
79214         * tests/test-memchr.c (main): Likewise.
79216 2009-10-21  Eric Blake  <ebb9@byu.net>
79218         areadlinkat: avoid failure on older glibc
79219         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
79220         rather than mis-comparing 0 against FUNC_RESULT of char*.
79222 2009-10-21  Bruno Haible  <bruno@clisp.org>
79224         * modules/stpncpy (License): Relicense under LGPLv2+.
79225         Reported by David Lutterkort <lutter@redhat.com>.
79227 2009-10-20  Eric Blake  <ebb9@byu.net>
79229         utimensat: work around Solaris 9 bug
79230         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
79231         has trailing slash bugs.
79232         * tests/test-lutimens.h (test_lutimens): Enhance test.
79233         * tests/test-utimens.h (test_utimens): Likewise.
79234         * doc/posix-functions/utime.texi (utime): Enhance documentation.
79235         * doc/posix-functions/utimes.texi (utimes): Likewise.
79236         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
79237         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
79238         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
79239         * doc/posix-functions/futimens.texi (futimens): Likewise.
79241         fdutimensat: new module
79242         * modules/fdutimensat: New file.
79243         * lib/fdutimensat.c (fdutimensat): Likewise.
79244         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
79245         * MODULES.html.sh (File system functions): Mention module.
79246         * modules/fdutimensat-tests: New test.
79247         * tests/test-fdutimensat.c: Likewise.
79249         doc: regenerate INSTALL
79250         * doc/INSTALL: Reflect recent autoconf update.
79251         * doc/INSTALL.ISO: Likewise.
79252         * doc/INSTALL.UTF-8: Likewise.
79254 2009-10-20  Pádraig Brady  <P@draigBrady.com>
79256         acl: warn if ACL support is not detected
79257         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
79259 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
79261         * lib/nproc.h: Add extern "C" block for C++.
79263 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
79264             Bruno Haible  <bruno@clisp.org>
79266         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
79267         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
79268         * doc/posix-functions/isalpha.texi: Likewise.
79269         * doc/posix-functions/isblank.texi: Likewise.
79270         * doc/posix-functions/iscntrl.texi: Likewise.
79271         * doc/posix-functions/isdigit.texi: Likewise.
79272         * doc/posix-functions/isgraph.texi: Likewise.
79273         * doc/posix-functions/islower.texi: Likewise.
79274         * doc/posix-functions/isprint.texi: Likewise.
79275         * doc/posix-functions/ispunct.texi: Likewise.
79276         * doc/posix-functions/isspace.texi: Likewise.
79277         * doc/posix-functions/isupper.texi: Likewise.
79278         * doc/posix-functions/isxdigit.texi: Likewise.
79280 2009-10-18  Bruno Haible  <bruno@clisp.org>
79282         Tests for module 'isblank'.
79283         * modules/isblank-tests: New file.
79284         * tests/test-isblank.c: New file.
79286         New module 'isblank'.
79287         * lib/isblank.c: New file.
79288         * m4/isblank.m4: New file.
79289         * modules/isblank: New file.
79290         * doc/posix-functions/isblank.texi: Mention the new module.
79292 2009-10-18  Bruno Haible  <bruno@clisp.org>
79294         New module 'ctype'.
79295         * lib/ctype.in.h: New file.
79296         * m4/ctype.m4: New file.
79297         * modules/ctype: New file.
79298         * doc/posix-headers/ctype.texi: Mention the new module.
79300 2009-10-18  Jim Meyering  <meyering@redhat.com>
79302         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
79303         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
79304         right after its initialization, rather than farther down.
79305         Keeping these in close proximity makes it easier to ensure
79306         that each such variable is initialized.  E.g.,
79308             LIB_CLOCK_GETTIME=
79309             AC_SUBST([LIB_CLOCK_GETTIME])
79311         This change also increments these serial numbers.
79312         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
79313         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
79314         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
79316 2009-10-18  Bruno Haible  <bruno@clisp.org>
79318         Don't let environment variables perturb build.
79319         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
79320         (gl_PREREQ_GETHRXTIME): ... not here.
79322 2009-10-18  Bruno Haible  <bruno@clisp.org>
79324         Avoid symlink attack in localcharset module.
79325         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
79326         (O_NOFOLLOW): Define fallback.
79327         (get_charset_aliases): Don't open the file if it is a symbolic link.
79328         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
79329         gl_FCNTL_H.
79330         (gl_FCNTL_H): Require it.
79331         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
79332         * modules/localcharset (Files): Add m4/fcntl_h.m4.
79333         Reported by Fergal Glynn <fglynn@veracode.com>.
79335 2009-10-18  Bruno Haible  <bruno@clisp.org>
79337         Implement nproc for mingw.
79338         * lib/nproc.c: Include <windows.h>
79339         (num_processors): On native Windows platforms, try GetSystemInfo.
79341 2009-10-18  Bruno Haible  <bruno@clisp.org>
79343         Implement nproc for IRIX.
79344         * lib/nproc.c: Include <sys/sysmp.h>.
79345         (num_processors): On IRIX systems, try sysmp.
79346         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
79348 2009-10-18  Bruno Haible  <bruno@clisp.org>
79350         Implement nproc for HP-UX.
79351         * lib/nproc.c: Include <sys/pstat.h>
79352         (num_processors): On HP-UX systems, try pstat_getdynamic.
79353         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
79354         pstat_getdynamic.
79356 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
79357             Bruno Haible  <bruno@clisp.org>
79359         Implement nproc for NetBSD, OpenBSD.
79360         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
79361         (ARRAY_SIZE): New macro.
79362         (num_processors): On BSD systems, try sysctl of HW_NCPU.
79363         * m4/nproc.m4: New file.
79364         * modules/nproc (Files): Add m4/nproc.m4.
79365         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
79366         (Makefile.am): Instead, augment lib_SOURCES.
79368 2009-10-18  Bruno Haible  <bruno@clisp.org>
79370         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
79371         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
79372         sys/param.h.
79374 2009-10-16  Eric Blake  <ebb9@byu.net>
79376         utimensat: new module
79377         * modules/utimensat: New file.
79378         * lib/utimensat.c (utimensat): Likewise.
79379         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
79380         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
79381         so we can work around Linux bugs.
79382         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
79383         * modules/sys_stat (Makefile.am): Substitute them.
79384         * lib/sys_stat.in.h (utimensat): Declare it.
79385         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
79386         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
79387         * modules/utimensat-tests: New test.
79388         * tests/test-utimensat.c: Likewise.
79390         utimens: let lutimens work on non-symlinks
79391         * lib/utimens.c (lutimens): Fall back to utimens rather than
79392         failing with ENOSYS, when file is not a symlink.
79393         (utimens): Reduce redirection.
79394         * tests/test-lutimens.h (test_lutimens): Update test to cover
79395         non-symlinks.
79396         * tests/test-utimens.h (test_utimens): Update test to cover
79397         symlinks.
79398         * tests/test-utimens.c (main): Update caller.
79400         utimens: cache whether utimensat syscall works
79401         * lib/utimens.c (utimensat_works_really): New cache variable.
79402         (fdutimens, lutimens): Use it to avoid failing syscall.
79404         test-stat-time, test-utimens: improve portability
79405         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
79406         ext4 on alpha, and for cygwin.
79407         * tests/test-utimens-common.h: New file.
79408         (nap): Factor delays into single function.
79409         * tests/test-lutimens.h (test_lutimens): Use new header.
79410         * tests/test-futimens.h (test_futimens): Likewise.
79411         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
79412         timestamps to occur from same machine, as was done previously for
79413         test_utimens.
79414         * modules/utimens-tests (Files): Ship new file.
79415         * modules/futimens-tests (Files): Likewise.
79416         Reported in part by Jim Meyering.
79418         sys_stat: sort replacement declarations
79419         * lib/sys_stat.in.h: Sort declarations.
79420         * lib/futimens.c (futimens): Fix typo.
79422 2009-10-15  Jim Meyering  <meyering@redhat.com>
79424         don't let environment settings perturb build
79425         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
79426         could cause a configure-time and/or build-time malfunction.
79427         Typically, a configure-time function-in-library test is performed
79428         via code like this:
79430           LIB_VAR=
79431           AC_SUBST([LIB_VAR])
79432           prefix_saved_LIBS=$LIBS
79433             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
79434                        [test "$ac_cv_search_FUNC" = "none required" ||
79435                         LIB_VAR=$ac_cv_search_FUNC])
79436           LIBS=$prefix_saved_LIBS
79438         However, in each of the files affected by this change, the LIB_VAR=
79439         initialization was omitted.  Thus, when set in the environment, its
79440         value would propagate into generated Makefiles when FUNC is not found
79441         in LIB_NAME.
79442         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
79443         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
79444         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
79446 2009-10-14  Eric Blake  <ebb9@byu.net>
79448         fchdir: avoid infinite recursion in mingw
79449         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
79450         recursing.
79452         test-stat-time: port to mingw
79453         * tests/test-stat-time.c (force_unlink): Return a value.
79454         (test_ctime) [W32]: Fix compilation error.
79455         (nap): Don't call usleep with too large an argument.  Use
79456         force_unlink.
79457         * doc/pastposix-functions/usleep.texi (usleep): Document the
79458         portability issue.
79460 2009-10-13  Jim Meyering  <meyering@redhat.com>
79462         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
79463         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
79464         * modules/pipe-filter-ii: Likewise.
79465         * modules/sys_socket-tests: Likewise.
79466         * modules/tsearch-tests: Likewise.
79467         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
79468         (check): Depend on it.
79470 2009-10-12  Eric Blake  <ebb9@byu.net>
79472         utimens-tests: port to NFS file systems
79473         * tests/test-utimens.h (test_utimens): Refactor utimecmp
79474         comparisons to avoid spurious failures from timestamp drift
79475         between NFS machines.
79477 2009-10-12  Eric Blake  <ebb9@byu.net>
79479         stat-time-tests: minor cleanups
79480         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
79481         * tests/test-stat-time.c (nap): Separate assignment from call.
79482         Suggested by Paolo Bonzini and Bruno Haible.
79484         sys_stat: guarantee struct timespec
79485         * lib/sys_stat.in.h (includes): Always include <time.h>
79486         * modules/sys_stat (Depends-on): Add time.
79487         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
79488         mode_t permission values.
79489         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
79490         get at subsecond timestamps.
79492 2009-10-10  Eric Blake  <ebb9@byu.net>
79494         futimens: new module
79495         * modules/futimens: New file.
79496         * lib/futimens.c (futimens): Likewise.
79497         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
79498         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
79499         we can work around Linux bugs.
79500         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
79501         * modules/sys_stat (Makefile.am): Substitute them.
79502         * lib/sys_stat.in.h (futimens): Declare it.
79503         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
79504         * doc/posix-functions/futimens.texi (futimens): Likewise.
79505         * modules/futimens-tests: New test.
79506         * tests/test-futimens.c: Likewise.
79508         utimens: introduce fdutimens
79509         * lib/utimens.h (fdutimens): New prototype.
79510         * lib/utimens.c (gl_futimens): Move guts...
79511         (fdutimens): ...to new interface.
79512         * tests/test-utimens.c (do_fdutimens): Use it.
79514         utimens: add UTIME_NOW and UTIME_OMIT support
79515         * lib/utimens.c (validate_timespec, update_timespec): New helper
79516         functions.
79517         (gl_futimens, lutimens): Use them.
79518         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
79519         stdbool, sys_stat.
79520         (Link): Mention resulting library dependency.
79521         * modules/utimecmp (Link): Likewise.
79522         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
79523         (Makefile.am): Pick up library dependency.
79524         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
79525         definition.
79526         * tests/test-sys_stat.c: Test the definitions.
79527         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
79528         * NEWS: Document library dependency.
79530         utimecmp: support symlink timestamps
79531         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
79532         hashing when possible.  Use pathconf when available.
79533         (SYSCALL_RESOLUTION): Recognize tighter resolution.
79534         * modules/utimecmp (Depends-on): Add lstat.
79536         utimens: add lutimens interface
79537         * lib/utimens.c (lutimens): New function.
79538         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
79539         * lib/utimens.h (lutimens): Declare new interface.
79540         * tests/test-utimens.c (main): Enhance test.
79541         * tests/test-lutimens.h (test_lutimens): New file.
79542         * modules/utimens-tests (Files): Distribute it.
79543         (Depends-on): Add symlink.
79544         (configure.ac): Check for usleep.
79546         utimens: validate futimens usage
79547         * lib/utimens.c (gl_futimens): Require valid fd up front, using
79548         fewer syscalls on failure later on.  Avoid compiler warning on
79549         mingw.
79550         * modules/utimens (Depends-on): Add dup2.
79552         utimens: add test
79553         * modules/utimens-tests: New test.
79554         * tests/test-utimens.h: New file.
79555         * tests/test-futimens.h: Likewise.
79556         * tests/test-utimens.c: Likewise.
79558         doc: mention timestamp portability issues
79559         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
79560         instead.
79561         * doc/posix-functions/utime.texi (utime): Likewise.
79562         * doc/posix-functions/utimes.texi (utimes): Likewise.
79563         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
79564         instead.
79565         * doc/posix-functions/futimens.texi (futimens): Mention utimens
79566         module.
79567         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
79568         Mention weakness with symlink timestamps.
79569         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
79570         to utimensat/futimens instead.
79571         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
79573         test-dup2: enhance test
79574         * tests/test-dup2.c (main): Also check AT_FDCWD.
79576         test-stat-time: avoid more spurious failures
79577         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
79578         xfs; and avoid race if the two timestamps cross quantization edge.
79580         relocatable: prefer 'file system' over 'filesystem'
79581         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
79582         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
79583         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
79584         * doc/relocatable.texi (Enabling Relocatability): Likewise.
79585         * lib/relocatable.c (compute_curr_prefix): Likewise.
79587 2009-10-10  Jim Meyering  <meyering@redhat.com>
79589         stat-time-tests: check for the usleep function
79590         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
79592 2009-10-10  Bruno Haible  <bruno@clisp.org>
79594         * modules/xnanosleep: Put the Link section after the Include section.
79596 2009-10-09  Eric Blake  <ebb9@byu.net>
79598         dup2: work around FreeBSD 6.1 bug
79599         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
79600         * doc/posix-functions/dup2.texi (dup2): Document it.
79601         Reported by Nelson H. F. Beebe and Jim Meyering.
79603         test-stat-time: port to buggy NFS clients
79604         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
79605         (test_ctime): Also skip test if mtime and ctime are skewed.
79607         maint: prefer 'file system' over 'filesystem'
79608         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
79609         * doc/posix-functions/lstat.texi (lstat): Likewise.
79610         * lib/file-has-acl.c (file_has_acl): Likewise.
79611         * lib/fwriteerror.c [TEST]: Likewise.
79612         * tests/test-areadlink.h (test_areadlink): Likewise.
79613         * tests/test-areadlinkat-with-size.c (main): Likewise.
79614         * tests/test-areadlinkat.c (main): Likewise.
79615         * tests/test-canonicalize-lgpl.c (main): Likewise.
79616         * tests/test-canonicalize.c (main): Likewise.
79617         * tests/test-fstatat.c (main): Likewise.
79618         * tests/test-linkat.c (main): Likewise.
79619         * tests/test-lstat.h (test_lstat_func): Likewise.
79620         * tests/test-mkdir.h (test_mkdir): Likewise.
79621         * tests/test-readlink.h (test_readlink): Likewise.
79622         * tests/test-remove.c (main): Likewise.
79623         * tests/test-rename.h (test_rename): Likewise.
79624         * tests/test-renameat.c (main): Likewise.
79625         * tests/test-rmdir.h (test_rmdir_func): Likewise.
79626         * tests/test-symlink.h (test_symlink): Likewise.
79627         * tests/test-symlinkat.c (main): Likewise.
79628         * tests/test-unlink.h (test_unlink_func): Likewise.
79629         * tests/test-unlinkat.c (main): Likewise.
79631         maint: make realtime library usage explicit
79632         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
79633         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
79634         * modules/settime (Link): Likewise.
79635         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
79637         test-stat-time: speed up execution
79638         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
79639         warning on mingw.
79640         (nap): New helper function.
79641         (prepare_test): Use it to reduce sleep time.
79642         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
79643         execution.
79644         * modules/stat-time-tests (configure.ac): Check for usleep.
79646 2009-10-09  Jim Meyering  <meyering@redhat.com>
79648         selinux-h: always use getfilecon wrappers
79649         * lib/getfilecon.c: New file.
79650         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
79651         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
79652         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
79653         (fgetfilecon): Provide a stub.
79654         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
79655         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
79656         file unconditionally.
79657         When <selinux/selinux.h> is found, arrange to use wrappers.
79658         * modules/selinux-h (Files): Add getfilecon.c.
79659         (Makefile.am): Substitute include-next-related bits
79660         into the now-always-generated selinux/selinux.h file.
79661         * doc/glibc-functions/lgetfilecon.texi: New file.
79662         * doc/glibc-functions/fgetfilecon.texi: New file.
79663         * doc/glibc-functions/getfilecon.texi: New file.
79664         * doc/glibc-functions/getfilecon-desc.texi: New file.
79665         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
79666         which to pull in the new files.
79667         * MODULES.html.sh (Misc): Add selinux-h.
79669 2009-10-08  Jim Meyering  <meyering@redhat.com>
79671         unistd: fix comment typo
79672         * lib/unistd.in.h (euidaccess): Fix a comment typo.
79674 2009-10-08  Eric Blake  <ebb9@byu.net>
79676         areadlink: use SIZE_MAX consistently
79677         * modules/areadlink (Depends-on): Add stdint.
79678         * modules/areadlink-with-size (Depends-on): Likewise.
79679         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
79680         gives NULL; drop sys/types, since unistd gives size_t; and add
79681         stdint for SIZE_MAX.
79682         (SIZE_MAX): Rely on headers.
79683         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
79684         and add stdint.
79685         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
79686         (SIZE_MAX): Likewise.
79687         (INITIAL_BUF_SIZE): Turn into enum.
79688         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
79690 2009-10-08  Jim Meyering  <meyering@redhat.com>
79692         areadlinkat: avoid compilation failure
79693         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
79694         Fix typo in comment.
79696 2009-10-07  Eric Blake  <ebb9@byu.net>
79698         areadlinkat-with-size: new module
79699         * modules/areadlinkat-with-size: New module.
79700         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
79701         * lib/areadlink.h (areadlinkat): Declare it.
79702         * MODULES.html.sh (File system functions): Mention it.
79703         * modules/areadlinkat-with-size-tests: New test.
79704         * tests/test-areadlinkat-with-size.c: New file.
79706         xreadlinkat: new module
79707         * modules/xreadlinkat: New module.
79708         * lib/xreadlinkat.c (xreadlinkat): New file.
79709         * lib/xreadlink.h (xreadlinkat): Declare it.
79710         * MODULES.html.sh (File system functions): Mention it.
79712         areadlinkat: new module
79713         * lib/at-func.c (FUNC_FAIL): New define.
79714         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
79715         * modules/areadlinkat: New module.
79716         * lib/linkat.c (areadlinkat): Move...
79717         * lib/areadlinkat.c (areadlinkat): ...to new file.
79718         * lib/areadlink.h (areadlinkat): Declare it.
79719         * modules/linkat (Depends-on): Add areadlinkat.
79720         * MODULES.html.sh (File system functions): Mention it.
79721         * modules/areadlinkat-tests: New test.
79722         * tests/test-areadlinkat.c: New file.
79724         areadlink, areadlink-with-size: add tests
79725         * modules/areadlink-tests: New test.
79726         * modules/areadlink-with-size-tests: Likewise.
79727         * tests/test-areadlink.h: New file.
79728         * tests/test-areadlink.c: Likewise.
79729         * tests/test-areadlink-with-size.c: Likewise.
79731         maint: minor cleanups
79732         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
79733         _UNUSED_PARAMETER_ instead.
79734         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
79735         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
79736         * modules/linkat-tests (Files): Distribute test-link.h.
79738         openat, utimens: whitespace cleanup
79739         * lib/openat.c: Prefer space throughout, rather than mix of 8
79740         spaces vs. tabs.
79741         * lib/at-func.c: Likewise.
79742         * lib/utimens.c: Likewise.
79744         openat: avoid using wrong fd
79745         * lib/openat.c (openat_permissive): Reject user's fd if saving the
79746         working directory chooses same fd.
79747         * lib/at-func.c (AT_FUNC_NAME): Likewise.
79749         mkdir, mkdirat: fix cygwin 1.5.x bug
79750         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
79751         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
79752         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
79753         bug.
79754         (gl_PREREQ_MKDIR): Delete unused macro.
79755         * modules/mkdir (Files): Track file rename.
79756         (configure.ac): Update macro name.
79757         * modules/openat (Depends-on): Add mkdir.
79758         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
79760         mkdir, mkdirat: add tests
79761         * modules/mkdir-tests: New test.
79762         * tests/test-mkdir.h: New file.
79763         * tests/test-mkdir.c: Likewise.
79764         * tests/test-mkdirat.c: Likewise.
79765         * modules/openat-tests (Files): Add new files.
79766         (Makefile.am): Run new test.
79768 2009-10-06  Eric Blake  <ebb9@byu.net>
79770         doc: tweak *at function documentation
79771         * doc/posix-functions/faccessat.texi (faccessat): Mention
79772         known issue with replacement.
79773         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
79774         * doc/posix-functions/linkat.texi (linkat): Likewise.
79775         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
79776         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
79777         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
79778         * doc/posix-functions/renameat.texi (renameat): Likewise.
79779         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
79781         openat: fix GNU/Hurd bug in unlinkat
79782         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
79783         broken.
79784         * doc/posix-functions/unlink.texi (unlink): Document this.
79785         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
79787         fdopendir: fix GNU/Hurd bug
79788         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
79789         allowing non-directory fds.
79790         * lib/fdopendir.c (rpl_fdopendir): Work around it.
79791         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
79792         * modules/dirent (Makefile.am): Substitute it.
79793         * lib/dirent.in.h (fdopendir): Declare replacement.
79794         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
79795         * tests/test-fdopendir.c (main): Test something other than
79796         /dev/null, since on Hurd that behaves like a directory.
79798         test-symlink: port to GNU/Hurd
79799         * tests/test-symlink.h (test_symlink): Relax expected errno.
79801         doc: tweak more cygwin information
79802         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
79803         now compatible with glibc.
79804         * doc/posix-functions/getopt.texi (getopt): Likewise.
79806         getopt-gnu: add another test
79807         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
79808         guarantee behavior relied on by m4.
79809         * tests/test-getopt.c (main): Use it.
79810         * modules/getopt-posix-tests (Depends-on): Add setenv.
79811         See http://lists.gnu.org/r/bug-m4/2006-09/msg00028.html.
79813         getopt: fix compilation on darwin
79814         * lib/getopt.in.h (includes): Leave breadcrumbs during system
79815         include.
79816         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
79817         Reported by Ludovic Courtès.
79819 2009-10-06  Bruno Haible  <bruno@clisp.org>
79821         * modules/size_max (Description): Discourage its use.
79822         Reported by Simon Josefsson.
79824 2009-10-06  Jim Meyering  <meyering@redhat.com>
79826         linkat: avoid compilation failure
79827         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
79829 2009-10-05  Eric Blake  <ebb9@byu.net>
79831         linkat: support Linux 2.6.17
79832         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
79833         linkat on Linux, but allow cache variable override.
79834         * lib/linkat.c (rpl_linkat): Define override.
79835         * modules/linkat (Depends-on): Add symlinkat.
79836         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
79837         * modules/unistd (Makefile.am): Substitute it.
79838         * lib/unistd.in.h (linkat): Declare replacement.
79839         Reported by Pádraig Brady.
79841         quotearg: port test to systems with C.UTF-8 locale
79842         * tests/test-quotearg.c (struct result_strings): Add another
79843         member, differentiating between C.ASCII and C.UTF-8 handling.
79844         (compare_strings): Add parameter.
79845         (main): Adjust all callers.
79847         getopt: avoid clash with FreeBSD _getopt_internal
79848         * lib/getopt.in.h (_getopt_internal): Override the name.
79849         * lib/getopt_int.h (includes): Pick up any overrides.
79850         Reported by Reuben Thomas.
79852         hash: allow C89 compilation
79853         * lib/hash.c (check_tuning): Move declaration before statement.
79854         Reported by Reuben Thomas.
79856 2009-10-05  Karl Berry  <karl@gnu.org>
79858         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
79860 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
79861             Bruno Haible  <bruno@clisp.org>
79863         * lib/uname.c (uname): Use a table-driven algorithm to compute
79864         Windows NT versions.
79866 2009-10-04  Bruno Haible  <bruno@clisp.org>
79868         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
79869         program_invocation_short_name.
79870         * modules/progname (configure.ac): Test for presence of
79871         program_invocation_short_name.
79872         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
79874 2009-10-04  Bruno Haible  <bruno@clisp.org>
79876         * lib/progname.c (set_program_name): Fix comment.
79877         Reported by Jim Meyering.
79879 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
79880             Bruno Haible  <bruno@clisp.org>
79882         * lib/uname.c: Include <string.h>.
79883         (uname): Do only one call to GetVersionEx in the common case.
79885 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
79886             Bruno Haible  <bruno@clisp.org>
79888         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
79889         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
79890         (uname): Add support for Windows CE and various non-x86 CPU types.
79892 2009-10-03  Bruno Haible  <bruno@clisp.org>
79894         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
79895         invocation to tests/configure.ac.
79896         Reported by Ian Beckwith <ianb@erislabs.net>.
79898 2009-10-02  Eric Blake  <ebb9@byu.net>
79900         fchdir: avoid compiler warning
79901         * lib/fchdir.c (canonicalize_file_name)
79902         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
79904         test-open: support mingw errno values
79905         * tests/test-open.h (test_open): Relax test.
79906         * tests/test-fopen.h (test_fopen): Likewise.
79907         * tests/test-openat-safer.c (main): Likewise.
79909         open: fix opening directory on mingw
79910         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
79912         test-open: on GNU/Hurd, /dev/null is a directory
79913         * tests/test-fopen.h (main): Rename...
79914         (test_fopen): ...to this.  Use a guaranteed non-directory when
79915         confirming open behavior on trailing slash.
79916         * tests/test-openat-safer.c (main): Likewise.
79917         * tests/test-open.h (main): Likewise....
79918         (test_open): ...to this.
79919         * tests/test-fopen.c (main): Adjust caller.
79920         * tests/test-fopen-safer.c (main): Likewise.
79921         * tests/test-open.c (main): Likewise.
79922         * tests/test-fcntl-safer.c (main): Likewise.
79923         Reported by Samuel Thibault.
79925         rename, fchdir: don't ignore chdir failure
79926         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
79927         * lib/rename.c (rpl_rename) [W32]: Likewise.
79928         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
79929         an empty destination directory if source cannot be renamed,
79930         although there is still possibility for failure.
79931         * doc/posix-functions/rename.texi (rename): Document the race.
79932         Reported by Jim Meyering.
79934         maint: cleanup whitespace in recent commits
79935         * lib/rename.c (rpl_rename): Remove tabs.
79936         * tests/test-link.h (test_link): Likewise.
79937         * lib/fchdir.c (get_name): Likewise.
79938         Reported by Jim Meyering.
79940 2009-10-02  Ben Pfaff  <blp@gnu.org>
79942         relocatable-prog-wrapper: Add missing dependency on
79943         double-slash-root.
79944         * modules/relocatable-prog-wrapper: Add dependency.
79945         Reported by Ian Beckwith <ianb@erislabs.net>.
79947 2009-10-02  Eric Blake  <ebb9@byu.net>
79949         renameat: fix Solaris bugs
79950         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
79951         needed fixing.
79952         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
79953         * modules/stdio (Makefile.am): Substitute it.
79954         * lib/stdio.in.h (renameat): Declare replacement.
79955         * lib/renameat.c (rpl_renameat): Implement fix.
79957         renameat: new module
79958         * modules/renameat: New file.
79959         * lib/renameat.c (renameat): Likewise.
79960         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
79961         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
79962         * modules/stdio (Makefile.am): Substitute them.
79963         * lib/stdio.in.h (renameat): Declare it.
79964         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
79965         * doc/posix-functions/renameat.texi (renameat): Likewise.
79966         * modules/renameat-tests: New test.
79967         * tests/test-renameat.c: Likewise.
79969         rename: fix mingw bugs
79970         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
79971         directory overwrite bugs.
79973         rename: fix another cygwin 1.5 bug
79974         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
79975         checks.
79976         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
79977         unnecessary cygwin workarounds.  Also work around bug with moving
79978         full directory onto an empty one.
79979         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
79981         rename-dest-slash: merge into rename module
79982         * modules/rename-dest-slash (Status): Mark obsolete.
79983         (Depends-on): Add rename.
79984         (Files): Let rename do it all.
79985         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
79986         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
79987         * m4/rename-dest-slash.m4: ...so this file can be deleted.
79988         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
79989         * lib/rename.c (rpl_rename): Update comments.
79991         rename: fix cygwin 1.5.x bugs
79992         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
79993         * lib/rename.c (rpl_rename): Work around them.
79994         * modules/rename (Depends-on): Add same-inode.
79996         rename: fix Solaris 10 bug
79997         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
79998         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
79999         was the only bug.
80001         rename: fix Solaris 9 bug
80002         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
80003         on non-directory.  Avoid calling exit.
80004         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
80005         strdup.
80006         * modules/rename-tests (Depends-on): Drop lstat.
80007         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
80008         (gl_PREREQ_RENAME): Delete unused macro.
80010         rename-dest-slash: fix NetBSD bug
80011         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
80012         links.
80013         * modules/rename-dest-slash (Depends-on): Add same-inode.
80015         rename-tests: new test, exposes several platform bugs
80016         * modules/rename-tests: New file.
80017         * tests/test-rename.h: Likewise.
80018         * tests/test-rename.c: Likewise.
80019         * doc/posix-functions/rename.texi (rename): Improve documentation,
80020         including bugs that will eventually be fixed in gnulib.
80022 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
80024         * lib/uname.c: Include <stdlib.h>
80025         (uname): Assume version info is available.
80027 2009-10-02  Jim Meyering  <meyering@redhat.com>
80029         gnu-web-doc-update: correct --help output
80030         * build-aux/gnu-web-doc-update: Make --help output relevant.
80032         gnu-web-doc-update: add standard options
80033         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
80035         gnu-web-doc-update: New module.
80036         Use this script to automatically update the on-line web documentation
80037         for your GNU project at http://www.gnu.org/software/$pkg/manual/
80038         * modules/gnu-web-doc-update: New file, from coreutils.
80039         * build-aux/gnu-web-doc-update: New script.
80041 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
80043         link: LoadLibrary is not needed.
80044         * lib/link.c: Use GetModuleHandle.
80046 2009-10-01  Eric Blake  <ebb9@byu.net>
80048         getopt: bump serial number
80049         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
80050         change.
80052         tests: tighten link, rmdir, and remove tests
80053         * tests/test-link.h (includes): No need to use <config.h> here.
80054         Clean up if directory hard link was created, otherwise test for
80055         trailing '.'.
80056         * tests/test-linkat.c (main): Simplify.
80057         * tests/test-remove.c (main): Enhance test for trailing '.'.
80058         * tests/test-rmdir.h (test_rmdir_func): Likewise.
80060 2009-10-01  Jim Meyering  <meyering@redhat.com>
80062         maint.mk: requiring "make major" was annoying, for a "minor" release.
80063         What is intended is "stable", to contrast with alpha and beta,
80064         so require "make stable", not "make major".
80065         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
80066         (get_tool_versions): Likewise.
80067         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
80069 2009-09-30  Ben Pfaff  <blp@gnu.org>
80071         Fix broken build of replacement for Windows tmpfile().
80072         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
80073         flags argument added along with the 'mkostemp' module.
80075 2009-09-28  Bruno Haible  <bruno@clisp.org>
80077         Avoid identifier clash with POSIX function 'remove' defined as a macro.
80078         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
80079         to 'remove_elt'.
80080         (gl_list_remove): Update.
80081         * lib/gl_list.c (gl_list_remove): Update.
80082         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
80083         to 'remove_elt'.
80084         (gl_oset_remove): Update.
80085         * lib/gl_list.c (gl_oset_remove): Update.
80086         Reported by Eric Blake.
80088 2009-09-28  Eric Blake  <ebb9@byu.net>
80090         doc: mention yet more cygwin 1.7 status
80091         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
80092         cygwin.
80093         * doc/glibc-functions/execvpe.texi (execvpe): New file.
80094         * doc/gnulib.texi (Glibc unistd.h): Mention it.
80096         argp: fix test failure
80097         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
80098         that are not upper-case.  Pass correct range to tolower.
80100 2009-09-27  Jim Meyering  <meyering@redhat.com>
80102         test-yesno: work around sparc-dash here-document infelicity
80103         Without this change, the literal \177 byte in a here document
80104         would make dash 0.5.5.1-3 access uninitialized memory.
80105         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
80106         Instead, use a marker, "@", and filter through tr to create the desired
80107         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
80109 2009-09-27  Bruno Haible  <bruno@clisp.org>
80111         Disable untested support for new flavours of ACLs on AIX.
80112         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
80113         progress.
80114         * lib/set-mode-acl.c (qset_acl): Likewise.
80116 2008-12-07  Bruno Haible  <bruno@clisp.org>
80118         Add support for new flavours of ACLs on AIX. (Untested.)
80119         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
80120         (file_has_acl): Add support for newer AIX.
80121         * lib/set-mode-acl.c (qset_acl): Likewise.
80122         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
80123         Rainer Tammer <tammer@tammer.net>.
80125 2009-09-26  Eric Blake  <ebb9@byu.net>
80127         argp: fix compilation of getopt
80128         * lib/getopt.in.h (includes): Use different guard than glibc.
80129         Reported by Sergey Poznyakoff.
80131         doc: mention more cygwin 1.7 status
80132         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
80133         bug.
80134         * doc/posix-functions/execl.texi (execl): Likewise.
80135         * doc/posix-functions/execle.texi (execle): Likewise.
80136         * doc/posix-functions/execlp.texi (execlp): Likewise.
80137         * doc/posix-functions/execv.texi (execv): Likewise.
80138         * doc/posix-functions/execve.texi (execve): Likewise.
80139         * doc/posix-functions/execvp.texi (execvp): Likewise.
80140         * doc/glibc-functions/canonicalize_file_name.texi
80141         (canonicalize_file_name): Cygwin 1.7 now provides this.
80142         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
80143         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
80144         on AT_SYMLINK_NOFOLLOW.
80146 2009-09-24  Eric Blake  <ebb9@byu.net>
80148         test-linkat: make test more robust
80149         * tests/test-linkat.c (main): Avoid collision with EEXIST.
80151         getopt: fix inclusion guards for cygwin
80152         * modules/getopt-posix (Depends-on): Add include-next.
80153         (Makefile.am): Substitute more items in replacement header.
80154         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
80155         <getopt.h>.
80156         * lib/getopt.in.h (includes): Use split inclusion guard, and
80157         prefer <getopt.h> over include <unistd.h> when one is present.
80158         (option): Also override name of 'struct option'.
80160         same-inode: revert prior change; it is not yet ready
80161         * NEWS: Undo mention of this change.
80162         * lib/same-inode.h (same-inode.h): Undo tri-state change.
80163         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
80164         * lib/cycle-check.c (cycle_check): Likewise.
80165         * lib/same.c (same_name): Likewise.
80166         * lib/at-func2.c (at_func2): Likewise.
80168 2009-09-23  Eric Blake  <ebb9@byu.net>
80170         linkat: new module
80171         * modules/linkat: New file.
80172         * lib/at-func2.c (at_func2): Likewise.
80173         * lib/linkat.c (linkat): Likewise.
80174         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
80175         * lib/openat-priv.h (at_func2): Add declaration.
80176         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
80177         * modules/unistd (Makefile.am): Substitute them.
80178         * lib/unistd.in.h (linkat): Declare it.
80179         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
80180         * doc/posix-functions/linkat.texi (linkat): Likewise.
80181         * doc/posix-functions/link.texi (link): Tweak wording.
80182         * tests/test-link.c (main): Move guts...
80183         * tests/test-link.h (test_link): ...into new file.
80184         * modules/linkat-tests: New test.
80185         * tests/test-linkat.c: Likewise.
80186         * modules/link-tests (Files): Ship new file.
80187         (Depends-on): Add stdbool.
80189         dirname: add library-safe mdir_name
80190         * lib/dirname.h (mdir_name): New prototype.
80191         * lib/dirname.c (dir_name): Move guts...
80192         (mdir_name): ...to new function that avoids xalloc_die.
80194         fchdir: another mingw fix
80195         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
80196         * lib/fchdir.c (get_name): New helper method; skips canonicalize
80197         on mingw (where it has not yet been ported), and make it optional
80198         elsewhere.
80199         (_gl_register_fd): Use it.
80201         same-inode: make SAME_INODE tri-state, to port to mingw
80202         * NEWS: Mention this change.
80203         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
80204         st_ino always being 0.
80205         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
80206         * lib/cycle-check.c (cycle_check): Likewise.
80207         * lib/same.c (same_name): Likewise.
80209         lstat: avoid mingw compilation error
80210         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
80211         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
80212         lstat ourselves.
80213         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
80214         was adequate.
80215         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
80216         the checks for lstat.
80217         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
80219         link: fix test failure on Solaris 9
80220         * lib/link.c (rpl_link): Don't assume link will catch bogus
80221         trailing slash on source.
80223         test-symlinkat: enhance test
80224         * tests/test-readlink.c (main): Move guts...
80225         * tests/test-readlink.h (test_readlink): ...into new file.
80226         * tests/test-symlink.c (main): Move guts...
80227         * tests/test-symlink.h (test_symlink): ...into new file.
80228         * tests/test-symlinkat.c (main): Use new files for further
80229         coverage.
80230         (do_symlink, do_readlink): New helper functions.
80231         * modules/symlink-tests (Files): Ship new file.
80232         (Depends-on): Add stdbool.
80233         * modules/readlink-tests (Files): Ship new file.
80234         (Depends-on): Add stdbool.
80235         * modules/symlinkat-tests (Files): Use new files.
80237 2009-09-23  Eric Blake  <ebb9@byu.net>
80239         readlink: document portability issue with symlink length
80240         * doc/posix-functions/lstat.texi (lstat): Mention that some file
80241         systems have bogus st_size on symlinks, and mention the
80242         areadlink-with-size module.
80243         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
80244         * doc/posix-functions/readlink.texi (readlink): Mention the
80245         areadlink module, and ERANGE failure.
80246         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
80247         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
80249         readlink: fix Solaris 9 bug with trailing slash
80250         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
80251         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
80252         * doc/posix-functions/readlink.texi (readlink): Document this.
80253         * modules/readlink-tests: New test.
80254         * tests/test-readlink.c: Likewise.
80256         readlink: fix cygwin 1.5.x bug with return type
80257         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
80258         * lib/unistd.in.h (readlink): Use ssize_t.
80259         * lib/readlink.c (readlink): Likewise.
80260         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
80261         * modules/unistd (Makefile.am): Substitute it.
80262         * lib/unistd.in.h (readlink): Declare replacement.
80263         * doc/posix-functions/readlink.texi (readlink): Document this.
80265         symlink: use throughout gnulib
80266         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
80267         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
80268         symlink is not used.
80269         * modules/symlinkat (Depends-on): Add symlink.
80270         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
80271         * modules/canonicalize-tests (Depends-on): Likewise.
80272         * modules/lstat-tests (Depends-on): Likewise.
80273         * modules/openat-tests (Depends-on): Likewise.
80274         * modules/remove-tests (Depends-on): Likewise.
80275         * modules/rmdir-tests (Depends-on): Likewise.
80276         * modules/unlink-tests (Depends-on): Likewise.
80277         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
80278         * tests/test-canonicalize.c (symlink): Likewise.
80279         * tests/test-fstatat.c (symlink): Likewise.
80280         * tests/test-lstat.c (symlink): Likewise.
80281         * tests/test-remove.c (symlink): Likewise.
80282         * tests/test-rmdir.c (symlink): Likewise.
80283         * tests/test-unlink.c (symlink): Likewise.
80284         * tests/test-unlinkat.c (symlink): Likewise.
80286         symlink: new module, for Solaris 9 bug
80287         * modules/symlink: New file.
80288         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
80289         * lib/symlink.c: Likewise.
80290         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
80291         * modules/unistd (Makefile.am): Substitute them.
80292         * lib/unistd.in.h (symlink): Declare replacement.
80293         * MODULES.html.sh (File system functions): Mention it.
80294         * doc/posix-functions/symlink.texi (symlink): Likewise.
80295         * modules/symlink-tests: New test.
80296         * tests/test-symlink.c: Likewise.
80298 2009-09-23  Bruno Haible  <bruno@clisp.org>
80300         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
80301         when needed.
80302         Test case: gnulib-tool --import --with-tests atexit inttypes.
80303         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
80305 2009-09-23  Bruno Haible  <bruno@clisp.org>
80307         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
80308         subcommand, not in a subshell.
80310 2009-09-22  Eric Blake  <ebb9@byu.net>
80312         unistd: sort replacement declarations
80313         * lib/unistd.in.h: Sort declarations.
80315         open, openat: minor optimization
80316         * lib/open.c (open): If open succeeded, len is non-zero.
80317         * lib/openat.c (rpl_openat): Likewise.
80319         link-follow: ensure correct result
80320         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
80321         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
80322         distinguish between possible failures.
80324 2009-09-21  Eric Blake  <ebb9@byu.net>
80326         fts: avoid compiler warning
80327         * lib/fts.c (dirent_inode_sort_may_be_useful)
80328         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
80330 2009-09-19  Bruno Haible  <bruno@clisp.org>
80332         * lib/progreloc.c (canonicalize_file_name): New declaration.
80334 2009-09-19  Eric Blake  <ebb9@byu.net>
80336         link: fix quoting
80337         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
80339         openat: fix openat bugs on Solaris 9
80340         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
80341         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
80342         * modules/openat (Depends-on): Add open.
80343         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
80344         * modules/fcntl-h (Makefile.am): Substitute it.
80345         * lib/fcntl.in.h (openat): Declare replacement.
80346         * doc/posix-functions/openat.texi (openat): Document this.
80348         openat: move fstatat and unlinkat into correct files
80349         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
80350         compiled.
80351         * lib/openat.c (fstatat, unlinkat): Move...
80352         * lib/fstatat.c (fstatat): ...into correct files.
80353         * lib/unlinkat.c (unlinkat): Likewise.
80355         openat: fix unlinkat bugs on Solaris 9
80356         * lib/unlinkat.c (unlinkat): New file.
80357         * modules/openat (Depends-on): Add unlink.
80358         (Files): Distribute it.
80359         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
80360         trailing slash behavior is broken.
80361         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
80362         * modules/unistd (Makefile.am): Substitute it.
80363         * lib/unistd.in.h (unlinkat): Declare replacement.
80364         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
80366         openat: fix fstatat bugs on Solaris 9
80367         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
80368         stat.
80369         * doc/posix-functions/fstatat.texi (fstatat): Document this.
80371         test-unlinkat: enhance test, to expose Solaris 9 bug
80372         * tests/test-unlink.c (main): Factor guts...
80373         * tests/test-unlink.h (test_rmdir_func): ...into new file.
80374         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
80375         * tests/test-rmdir.c (main): Adjust caller.
80376         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
80377         (unlinker): New helper function.
80378         (rmdirat): Enhance check.
80379         * modules/rmdir-tests (Depends-on): Add stdbool.
80380         * modules/unlink-tests (Depends-on): Likewise.
80381         (Files): Add test-unlink.h.
80382         * modules/openat-tests (Files): Likewise.
80383         (Depends-on): Add unlinkdir.
80385         test-fstatat: new test, to expose Solaris 9 bugs
80386         * tests/test-stat.c (main): Factor guts...
80387         * tests/test-stat.h (test_stat_func): ...into new file.
80388         * tests/test-lstat.c (main): Factor guts...
80389         * tests/test-lstat.h (test_lstat_func): ...into new file.
80390         * tests/test-fstatat.c: New file.
80391         * modules/stat-tests (Files): Add test-stat.h.
80392         * modules/lstat-tests (Files): Add test-lstat.h.
80393         (Depends-on): Add stdbool.
80394         * modules/openat-tests (Depends-on): Add pathmax.
80395         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
80396         (Makefile.am): Run new test.
80398         remove: new module, for mingw and Solaris 9 bugs
80399         * modules/remove: New file.
80400         * lib/remove.c: Likewise.
80401         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
80402         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
80403         * modules/stdio (Makefile.am): Use them.
80404         * lib/stdio.in.h (remove): Declare replacement.
80405         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
80406         * doc/posix-functions/remove.texi (remove): Likewise.
80407         * modules/remove-tests: New test.
80408         * tests/test-remove.c: Likewise.
80410         unlink: new module, for Solaris 9 bug
80411         * modules/unlink: New file.
80412         * lib/unlink.c: Likewise.
80413         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
80414         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
80415         * modules/unistd (Makefile.am): Use them.
80416         * lib/unistd.in.h (stat): Declare replacement.
80417         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
80418         * doc/posix-functions/unlink.texi (unlink): Likewise.
80419         * modules/unlink-tests: New test.
80420         * tests/test-unlink.c: Likewise.
80422         lstat: fix Solaris 9 bug
80423         * lib/lstat.c (lstat): Also check for trailing slash on
80424         non-symlink, non-directories.  Use stat module to simplify logic.
80425         * doc/posix-functions/lstat.texi (lstat): Document it.
80426         * modules/lstat-tests (Depends-on): Add errno, same-inode.
80427         (configure.ac): Check for symlink.
80428         * tests/test-lstat.c (main): Add more tests.
80430         stat: add as dependency to other modules
80431         * modules/chown (Depends-on): Add stat.
80432         * modules/euidaccess (Depends-on): Likewise.
80433         * modules/fchdir (Depends-on): Likewise.
80434         * modules/isdir (Depends-on): Likewise.
80435         * modules/link (Depends-on): Likewise.
80436         * modules/lstat (Depends-on): Likewise.
80437         * modules/mkdir-p (Depends-on): Likewise.
80438         * modules/modechange (Depends-on): Likewise.
80439         * modules/open (Depends-on): Likewise.
80440         * modules/readlink (Depends-on): Likewise.
80441         * modules/same (Depends-on): Likewise.
80443         stat: fix Solaris 9 bug
80444         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
80445         slash.
80446         * lib/stat.c (rpl_stat): Work around it.
80447         * doc/posix-functions/stat.texi (stat): Update documentation.
80449         stat: new module, for mingw bug
80450         * modules/stat: New file.
80451         * lib/stat.c: Likewise.
80452         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
80453         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
80454         * modules/sys_stat (Makefile.am): Use them.
80455         * lib/sys_stat.in.h (stat): Declare replacement.
80456         * lib/openat.c (fstatat): Deal with lstat and stat being function
80457         macros.
80458         * modules/openat (Depends-on): Add inline.
80459         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
80460         * doc/posix-functions/stat.texi (stat): Likewise.
80461         * modules/stat-tests: New test.
80462         * tests/test-stat.c: Likewise.
80464 2009-09-19  Jim Meyering  <meyering@redhat.com>
80466         syntax-check: detect unnecessary inclusion of canonicalize.h
80467         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
80469 2009-09-19  Eric Blake  <ebb9@byu.net>
80471         canonicalize-lgpl: adjust clients to use correct header
80472         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
80473         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
80474         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
80475         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
80476         * lib/progreloc.c (includes): Likewise.
80478 2009-09-19  Jim Meyering  <meyering@redhat.com>
80480         test-posixtm.c: correct a comment
80481         * tests/test-posixtm.c: Correct first-line comment.
80482         Spotted by Eric Blake.
80484 2009-09-16  Jim Meyering  <meyering@redhat.com>
80486         posixtm-tests: make T const-correct; add a test case
80487         * tests/test-posixtm.c (T): Declare const.
80488         Add a test for -(2^31+1).
80489         Remove useless can-succeed-only-in-2002 test.
80491         posixtm-tests: adjust the sole failing test
80492         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
80493         expected output matches what mktime now produces.  Cross-checked via
80494         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
80496         posixtm: move #ifdef'd tests into a new module
80497         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
80498         * tests/test-posixtm.c: ... this new file.
80499         * modules/posixtm-tests: New module.
80501 2009-09-19  Eric Blake  <ebb9@byu.net>
80503         openat: simplify use of at-func.c
80504         * lib/at-func.c (includes): Include prerequisites here, to
80505         simplify requirements on client files.
80506         * lib/openat-priv.h: Add double-inclusion guard.
80507         * lib/faccessat.c (includes): Simplify.
80508         * lib/fchmodat.c (includes): Likewise.
80509         * lib/fchownat.c (includes): Likewise.
80510         * lib/mkdirat.c (includes): Likewise.
80511         * lib/mkfifoat.c (includes): Likewise.
80512         * lib/symlinkat.c (includes): Likewise.
80514         openat: allow return of fd 0
80515         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
80516         * modules/save-cwd (Depends-on): Replace fcntl-safer with
80517         unistd-safer.
80518         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
80519         <fcntl.h>; this module does not leak fds.
80520         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
80521         must be allowed to return 0, leaving openat_safer to add the
80522         safety.
80523         (openat_permissive): Avoid writing to just-opened fd 2 if
80524         restoring the current directory fails.
80525         * lib/openat-die.c (openat_restore_fail): Add comment.
80526         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
80527         (save_cwd): Guarantee safe fd, but without use of open_safer.
80528         * tests/test-openat.c: New test.
80529         * modules/openat-tests (Files, Makefile.am): Distribute and build
80530         new file.
80532         relocatable-prog-wrapper: fix build
80533         * modules/relocatable-prog-wrapper (Files): Update name of
80534         canonicalize m4 file, broken on 2009-09-17.
80535         Reported by emad hajjar <aleppos@hotmail.com>.
80537 2009-09-19  Bruno Haible  <bruno@clisp.org>
80539         * lib/safe-alloc.h: Use the standard header with GPL copyright.
80540         * lib/safe-alloc.c: Likewise.
80541         Reported by Ian Beckwith <ianb@erislabs.net>.
80543 2009-09-18  Bruno Haible  <bruno@clisp.org>
80545         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
80546         Reported by <erobles@sensacd.com.mx>.
80548 2009-09-17  Eric Blake  <ebb9@byu.net>
80550         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
80551         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
80552         slashes when checking if last component is missing.
80553         * tests/test-canonicalize.c (main): Test this.
80555         canonicalize, canonicalize-lgpl: honor // if distinct from /
80556         * modules/canonicalize (Files): Add double-slash-root.m4.
80557         * modules/canonicalize-lgpl (Files): Likewise.
80558         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
80559         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
80560         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
80561         fallback definition.
80562         (canonicalize_filename_mode): Use it to protect //.
80563         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
80564         (__realpath): Likewise.
80565         * tests/test-canonicalize.c (main): Test this.
80566         * tests/test-canonicalize-lgpl.c (main): Likewise.
80567         * modules/canonicalize-tests (Depends-on): Add same-inode.
80568         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
80570         canonicalize-lgpl: fix glibc bug with trailing slash
80571         * m4/canonicalize-lgpl.m4: Move contents...
80572         * m4/canonicalize.m4: ...here.
80573         (gl_CANONICALIZE_LGPL): Factor realpath check...
80574         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
80575         glibc 2.3.5 bug, fixed 2005-04-27.
80576         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
80577         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
80578         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
80579         * modules/canonicalize-lgpl (Files): Manage file rename.
80580         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
80581         * modules/stdlib (Makefile.am): Substitute witness.
80582         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
80583         is needed.
80584         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
80585         replacement is required.
80586         * lib/canonicalize.c (canonicalize_file_name): Likewise.
80587         * doc/glibc-functions/canonicalize_file_name.texi
80588         (canonicalize_file_name): Document this.
80589         * doc/posix-functions/realpath.texi (realpath): Likewise.
80591         canonicalize-lgpl: reject non-directory with trailing slash
80592         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
80593         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
80594         catches failures in glibc 2.3.5.
80595         * tests/test-canonicalize.c (main): Likewise.
80597         canonicalize-lgpl: use native realpath if it works
80598         * lib/canonicalize-lgpl.c (realpath): Guard with
80599         FUNC_REALPATH_WORKS.
80600         * lib/stdlib.in.h (realpath): Make declaration optional based on
80601         HAVE_REALPATH.
80602         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
80603         native realpath works.
80604         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
80605         * modules/stdlib (Makefile.am): Substitute witness.
80607         canonicalize, canonicalize-lgpl: use <stdlib.h>
80608         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
80609         (Include): Mention <stdlib.h>.
80610         (configure.ac): Mention functions we provide.
80611         * modules/canonicalize (configure.ac): Likewise.
80612         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
80613         realpath if canonicalize_file_name is missing.
80614         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
80615         * modules/stdlib (Makefile.am): Substitute witnesses.
80616         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
80617         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
80618         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
80619         * NEWS: Document this.
80620         * doc/glibc-functions/canonicalize_file_name.texi
80621         (canonicalize_file_name): Likewise.
80622         * doc/posix-functions/realpath.texi (realpath): Likewise.
80623         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
80625         test-canonicalize: consolidate into single C program
80626         * tests/test-canonicalize.sh: Delete; move setup into...
80627         * tests/test-canonicalize.c (main): ...the program, making it
80628         easier to run in debugger.  Add some tests.
80629         * modules/canonicalize-tests (Files): Remove unused file.
80630         (Depends-on): Add progname.
80631         (configure.ac, Makefile.am): Simplify.
80633         test-canonicalize-lgpl: consolidate into single C program
80634         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
80635         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
80636         easier to run in debugger.  Add some tests.
80637         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
80638         (configure.ac, Makefile.am): Simplify.
80640         canonicalize: avoid resolvepath
80641         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
80642         unnecessary checks.
80643         * lib/canonicalize.c (includes): Simplify.
80644         (canonicalize_file_name): Drop resolvepath implementation.
80645         * modules/canonicalize (Depends-on): Drop filenamecat.
80647         canonicalize: don't lose errno
80648         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
80649         over calls to free.
80651         canonicalize: simplify errno handling
80652         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
80653         assignment.
80655         canonicalize, canonicalize-lgpl: update module dependencies
80656         * modules/canonicalize (Depends-on): Add extensions, lstat,
80657         pathmax, stdlib.
80658         (Files): Drop pathmax.h.
80659         (configure.ac): Adjust macro name.
80660         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
80661         lstat, stdlib, sys_stat.
80662         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
80663         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
80664         extensions.
80665         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
80666         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
80667         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
80668         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
80669         declaration, if available.
80670         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
80671         we can rely on the readlink module.
80672         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
80673         (includes): Use <unistd.h> unconditionally.
80675 2009-09-17  Eric Blake  <ebb9@byu.net>
80677         maint: make Include sections of modules consistent
80678         * modules/alloca: Use only header name; no need to list #include.
80679         * modules/alloca-opt: Likewise.
80680         * modules/arpa_inet: Likewise.
80681         * modules/canon-host: Likewise.
80682         * modules/configmake: Likewise.
80683         * modules/dirent: Likewise.
80684         * modules/eealloc: Likewise.
80685         * modules/environ: Likewise.
80686         * modules/fchdir: Likewise.
80687         * modules/fcntl: Likewise.
80688         * modules/fcntl-h: Likewise.
80689         * modules/gethrxtime: Likewise.
80690         * modules/gettime: Likewise.
80691         * modules/ignore-value: Likewise.
80692         * modules/inet_ntop: Likewise.
80693         * modules/inet_pton: Likewise.
80694         * modules/inttypes: Likewise.
80695         * modules/isnand-nolibm: Likewise.
80696         * modules/isnanf-nolibm: Likewise.
80697         * modules/mbchar: Likewise.
80698         * modules/mbfile: Likewise.
80699         * modules/mbiter: Likewise.
80700         * modules/mbuiter: Likewise.
80701         * modules/netdb: Likewise.
80702         * modules/netinet_in: Likewise.
80703         * modules/nproc: Likewise.
80704         * modules/pagealign_alloc: Likewise.
80705         * modules/poll: Likewise.
80706         * modules/printf-frexp: Likewise.
80707         * modules/pthread: Likewise.
80708         * modules/putenv: Likewise.
80709         * modules/random_r: Likewise.
80710         * modules/relocatable-prog: Likewise.
80711         * modules/search: Likewise.
80712         * modules/select: Likewise.
80713         * modules/selinux-h: Likewise.
80714         * modules/settime: Likewise.
80715         * modules/signal: Likewise.
80716         * modules/size_max: Likewise.
80717         * modules/socklen: Likewise.
80718         * modules/ssize_t: Likewise.
80719         * modules/stdarg: Likewise.
80720         * modules/stdbool: Likewise.
80721         * modules/stddef: Likewise.
80722         * modules/stdint: Likewise.
80723         * modules/stdio: Likewise.
80724         * modules/stdlib: Likewise.
80725         * modules/string: Likewise.
80726         * modules/strings: Likewise.
80727         * modules/sys_file: Likewise.
80728         * modules/sys_ioctl: Likewise.
80729         * modules/sys_select: Likewise.
80730         * modules/sys_socket: Likewise.
80731         * modules/sys_stat: Likewise.
80732         * modules/sys_time: Likewise.
80733         * modules/sys_times: Likewise.
80734         * modules/sys_utsname: Likewise.
80735         * modules/sys_wait: Likewise.
80736         * modules/sysexits: Likewise.
80737         * modules/time: Likewise.
80738         * modules/times: Likewise.
80739         * modules/tmpfile: Likewise.
80740         * modules/trim: Likewise.
80741         * modules/unistd: Likewise.
80742         * modules/wchar: Likewise.
80743         * modules/wctype: Likewise.
80745 2009-09-17  Bruno Haible  <bruno@clisp.org>
80747         Make getdate.y compile on QNX and NetBSD 5 / i386.
80748         * m4/getdate.m4 (gl_GETDATE): Conditionally define
80749         TIME_T_FITS_IN_LONG_INT.
80750         * lib/getdate.y (long_time_t): New type.
80751         (relative_time): Change type of 'seconds' field to long_time_t.
80752         (get_date): Update types of local variables. Check against overflow
80753         during conversion from long_time_t to time_t.
80754         Reported by Matt Kraai <kraai@ftbfs.org>
80755         and Hasso Tepper <hasso@netbsd.org>.
80757 2009-09-17  Bruno Haible  <bruno@clisp.org>
80759         * modules/COPYING: Update copyright years.
80760         * modules/README: Likeiwse.
80761         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
80762         Reported by Ian Beckwith <ianb@erislabs.net>.
80764 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
80766         * users.txt: Update references for gnuit package.
80768 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
80770         * m4/getdelim.m4: Fix typo in copyright line.
80772 2009-09-17  Bruno Haible  <bruno@clisp.org>
80774         * lib/atoll.c: Use the standard header with GPL copyright.
80775         * lib/argz.in.h: Likewise.
80776         * lib/glob.c: Likewise.
80777         * lib/glob-libc.h: Likewise.
80778         * lib/random_r.c: Likewise.
80779         * lib/siglist.h: Likewise.
80780         * lib/strsignal.c: Likewise.
80781         Reported by Ian Beckwith <ianb@erislabs.net>.
80783 2009-09-17  Eric Blake  <ebb9@byu.net>
80785         rmdir: ensure correct dependency order
80786         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
80788 2009-09-17  Bruno Haible  <bruno@clisp.org>
80790         Disable assertion that fails on NetBSD 5 / i386.
80791         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
80792         Reported by Sam Steingold <sds@gnu.org>
80793         and Hasso Tepper <hasso@netbsd.org>.
80795 2009-09-16  Eric Blake  <ebb9@byu.net>
80797         unlinkdir: port to mingw
80798         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
80799         on which no one can unlink a directory.
80801         stdlib: sort witness names
80802         * modules/stdlib (Makefile.am): Sort replacements.
80803         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
80804         * lib/stdlib.in.h: Likewise.
80806         parse-duration-tests: avoid link failure
80807         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
80808         LIBINTL.
80809         Reported by Tom G. Christensen.
80811         openat-tests: ensure unlinkat behaves like rmdir
80812         * tests/test-rmdir.c (main): Factor guts...
80813         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
80814         * modules/rmdir-tests (Files): Ship new file.
80815         * modules/openat-tests: New test.
80816         * tests/test-unlinkat.c: Likewise.
80818         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
80819         * modules/rmdir-errno (Status, Notice): Now obsolete.
80821         rmdir: work around cygwin 1.5.x and mingw bugs
80822         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
80823         * lib/rmdir.c (rmdir): Work around it.
80824         * modules/rmdir (Status, Notice): No longer obsolete.
80825         (Files): Add dos.m4.
80826         (Depends-on): Add unistd.
80827         (configure.ac): Set witnesses.
80828         (License): Relax to LGPLv2+.
80829         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
80830         * modules/unistd (Makefile.am): Substitute witnesses.
80831         * lib/unistd.in.h (rmdir): Declare replacement.
80832         * doc/posix-functions/rmdir.texi (rmdir): Document this.
80833         * modules/rmdir-tests: New tests.
80834         * tests/test-rmdir.c: Likewise.
80836 2009-09-15  Eric Blake  <ebb9@byu.net>
80838         fchdir: improve use of replacement functions
80839         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
80840         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
80841         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
80842         REPLACE_CLOSEDIR.
80843         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
80844         * modules/sys_stat (Makefile.am): Substitute correct witness.
80845         * modules/dirent (Makefile.am): Likewise.
80846         * modules/unistd (Makefile.am): Likewise.
80847         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
80848         * lib/unistd.in.h (dup): Likewise.
80849         * lib/sys_stat.in.h (fstat): Likewise.
80851         maint: ignore gnulib-tool temp files
80852         * .gitignore: Ignore files created during gnulib-tool --test.
80854 2009-09-13  Jim Meyering  <meyering@redhat.com>
80856         posixtm: don't reject a time that specify "60" as the number of seconds
80857         * lib/posixtm.c (posixtime): The code to reject invalid dates
80858         would also reject a time specified with the .60 suffix.
80859         But POSIX allows that, in order to accommodate leap seconds.
80860         So don't reject it.
80861         (main): Adjust tests accordingly.
80862         * modules/posixtm (Depends-on): Add stpcpy.
80864 2009-09-11  Jim Meyering  <meyering@redhat.com>
80866         announce-gen: include [$release_type] in emitted Subject:
80867         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
80868         e.g., [stable] in the emitted Subject: line.
80870 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80872         Remove obsolete macros from several modules.
80873         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
80874         obsolete Autoconf macros with their modern counterparts.
80875         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
80876         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
80877         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
80878         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
80879         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
80880         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
80881         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
80882         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
80883         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
80884         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
80885         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
80886         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
80887         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
80888         * m4/sockets.m4 (gl_SOCKETS): Likewise.
80889         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
80890         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
80891         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
80892         * m4/time_r.m4 (gl_TIME_R): Likewise.
80893         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
80894         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
80895         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
80897         Fix copyright header in build-aux scripts.
80898         * build-aux/git-version-gen: Fix copyright header to match GPLv3
80899         recommendation.
80900         * build-aux/ncftpput-ftp: Likewise.
80901         * build-aux/update-copyright: Likewise.
80903 2009-09-09  Eric Blake  <ebb9@byu.net>
80905         test-link: allow Linux choice of errno
80906         * tests/test-link.c (main): Relax test for alternate error.
80908         strndup: fix improper m4 caching
80909         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
80910         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
80911         (gl_PREREQ_STRNDUP): Delete.
80912         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
80913         * modules/string (Makefile.am): Substitute it.
80914         * lib/string.in.h (strndup): Modernize prototype.
80916         getcwd: port to mingw
80917         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
80918         different from the POSIX assumptions made throughout the getcwd
80919         module; fortunately, the mingw getcwd does not need replacement.
80920         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
80921         * modules/getcwd-tests: New test.
80922         * tests/test-getcwd.c: Likewise.
80924         link: fix platform bugs
80925         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
80926         * lib/link.c (link): Work around them.  Fix related mingw bug.
80927         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
80928         * modules/unistd (Makefile.am): Substitute it.
80929         * lib/unistd.in.h (link): Declare replacement.
80930         * doc/posix-functions/link.texi (link): Document this.
80931         * modules/link (Depends-on): Add strdup-posix, sys_stat.
80933         test-link: consolidate into single C program, test more cases
80934         * tests/test-link.sh: Delete.
80935         * tests/test-link.c: Test more error conditions.  Exposes bugs on
80936         at least Cygwin and Solaris.
80937         * modules/link-tests (Files): Remove unused file.
80938         (Depends-on): Add errno, sys_stat.
80939         (Makefile.am): Simplify.
80941 2009-09-08  Bruno Haible  <bruno@clisp.org>
80943         Work around towlower, towupper bug on mingw.
80944         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
80945         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
80946         * doc/posix-functions/towlower.texi: Mention the mingw bug.
80947         * doc/posix-functions/towupper.texi: Likewise.
80948         Reported by Eric Blake.
80950 2009-09-08  Jim Meyering  <meyering@redhat.com>
80952         build: don't try to run autoheader if we don't use it
80953         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
80954         is not used in configure.ac.
80956 2009-09-08  Eric Blake  <ebb9@byu.net>
80958         euidaccess: fix compilation error
80959         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
80961         rawmemchr: relax license
80962         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
80963         okay.
80964         Reported by Jim Meyering.
80966         mkfifoat: new module
80967         * modules/mkfifoat: New file.
80968         * lib/mkfifoat.c: Likewise.
80969         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
80970         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
80971         * modules/sys_stat (Makefile.am): Use them.
80972         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
80973         * MODULES.html.sh (File system functions): Mention module.
80974         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
80975         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
80976         * modules/mkfifoat-tests: New test.
80977         * tests/test-mkfifoat.c: Likewise.
80979         strchrnul: relax license
80980         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
80981         okay.
80982         Reported by Jim Meyering.
80984 2009-09-08  Eric Blake  <ebb9@byu.net>
80986         fstatat: fix compilation on Solaris
80987         * lib/fstatat.c (includes): Add fcntl.h.
80988         Reported by Pádraig Brady.
80990 2009-09-07  Eric Blake  <ebb9@byu.net>
80992         rename: modernize replacement
80993         * modules/rename (Depends-on): Add stdio.
80994         (configure.ac): Declare witness.
80995         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
80996         stdio take care of replacement.
80997         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
80998         * modules/stdio (Makefile.am): Substitute them.
80999         * lib/stdio.in.h (rename): Declare replacement.
81000         * lib/rename.c (includes): Allow cross-compilation to non-windows
81001         machines.
81002         * doc/posix-functions/rename.texi (rename): Improve
81003         documentation.
81005         stdio: sort witness names
81006         * modules/stdio (Makefile.am): Sort replacements.
81007         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
81008         * lib/stdio.in.h: Likewise.
81010         getcwd: minor cleanups
81011         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
81012         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
81014         openat: provide more convenience names
81015         * modules/faccessat (configure.ac): Add C witness.
81016         * lib/unistd.in.h (readlinkat): Fix typo.
81017         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
81018         convenience wrappers.
81019         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
81020         wrappers in syntax checks.
81022 2009-09-06  Eric Blake  <ebb9@byu.net>
81024         doc: fix comments in recent patches
81025         * lib/faccessat.c: Mention correct function.
81026         * lib/fchmodat.c: Likewise.
81027         * lib/fchownat.c: Likewise.
81028         * lib/symlinkat.c: Likewise.
81029         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
81030         constants.
81032         faccessat, symlinkat: continue cleanup of previous patch
81033         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
81034         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
81035         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
81036         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
81037         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
81038         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
81039         set.
81041 2009-09-06  Bruno Haible  <bruno@clisp.org>
81043         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
81044         (fstatat): Declare if GNULIB_FSTATAT is set.
81045         (mkdirat): Declare if GNULIB_MKDIRAT is set.
81046         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
81047         (unlinkat): Declare if GNULIB_UNLINKAT is set.
81048         * modules/fcntl-h (Files): Remove m4/openat.m4.
81049         * modules/sys_stat (Files): Remove m4/openat.m4.
81050         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
81051         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
81052         * modules/unistd (Files): Remove m4/openat.m4.
81053         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
81054         GNULIB_OPENAT.
81055         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
81056         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
81057         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
81058         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
81059         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
81060         gl_OPENAT_DEFAULTS.
81061         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
81062         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
81063         Don't require gl_OPENAT_DEFAULTS.
81064         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
81065         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
81066         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
81067         (gl_OPENAT_DEFAULTS): Remove macro.
81069 2009-09-06  Bruno Haible  <bruno@clisp.org>
81071         * modules/openat (configure.ac): Remove unneeded witness.
81073 2009-09-06  Bruno Haible  <bruno@clisp.org>
81075         Set errno to ENOSYS when a function is entirely unsupported.
81076         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
81077         EOPNOTSUPP.
81078         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
81079         * modules/chown (Depends-on): Remove errno.
81081 2009-09-06  Bruno Haible  <bruno@clisp.org>
81083         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
81085 2009-09-06  Bruno Haible  <bruno@clisp.org>
81087         * lib/sys_stat.in.h: Fix preprocessor command indentation.
81089 2009-09-06  Ben Pfaff  <blp@gnu.org>
81090             Bruno Haible  <bruno@clisp.org>
81092         Work around a glibc bug in strtok_r.
81093         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
81094         Undefine if UNDEFINE_STRTOK_R is set.
81095         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
81096         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
81097         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
81098         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
81099         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
81100         UNDEFINE_STRTOK_R.
81101         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
81103 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
81105         exclude: minor fix
81106         * lib/exclude.c: Include wctype.h
81108 2009-09-06  Akim Demaille  <demaille@gostai.com>
81110         bootstrap: improve error message
81111         * build-aux/bootstrap (find_tool): Upon failure, report the list
81112         of candidates.
81113         Honor the initial value of the envvar.
81115 2009-09-05  Eric Blake  <ebb9@byu.net>
81117         symlinkat: new module
81118         * modules/symlinkat: New file.
81119         * lib/symlinkat.c: Likewise.
81120         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
81121         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
81122         * modules/unistd (Makefile.am): Use them.
81123         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
81124         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
81125         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
81126         * MODULES.html.sh (File system functions): Mention module.
81127         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
81128         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
81129         * modules/symlinkat-tests: New test.
81130         * tests/test-symlinkat.c: Likewise.
81132         test-openat-safer: add more checks
81133         * tests/test-openat-safer.c (main): Check more code paths.
81135 2009-09-05  Jim Meyering  <meyering@redhat.com>
81137         syntax-check: detect unnecessary inclusion of openat.h
81138         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
81140 2009-09-05  Bruno Haible  <bruno@clisp.org>
81142         Support towlower, towupper.
81143         * doc/posix-functions/towlower.texi: Mention module wctype.
81144         * doc/posix-functions/towupper.texi: Likewise.
81145         * lib/wctype.in.h (towlower, towupper): New functions.
81146         * tests/test-wctype.c: Include stdio.h, stdlib.h.
81147         (ASSERT): New macro.
81148         (e): New variable.
81149         (main): Test also towlower, towupper. Test WEOF argument.
81150         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
81152 2009-09-05  Bruno Haible  <bruno@clisp.org>
81154         Fix conversion behaviour when the input is invalid.
81155         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
81156         mark occurring in first pass of indirect conversion.
81157         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
81158         input.
81159         Found by clang's static analyzer.
81161 2009-09-05  Bruno Haible  <bruno@clisp.org>
81163         * tests/test-striconveh.c (main): Test indirect conversion on platforms
81164         where direct conversion is possible.
81166 2009-09-04  Eric Blake  <ebb9@byu.net>
81168         openat: fail with ENOENT on empty name
81169         * lib/openat-proc.c (openat_proc_name): Special-case the empty
81170         buffer.
81172         link-follow: fix logic bug in prior patch
81173         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
81174         reversed sense of yes and no in prior patch.  Avoid confusing
81175         compilation failure with desired semantics.
81177         link-follow: accommodate mingw and cross-compilation
81178         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
81179         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
81180         cross-compilation results to -1, to make linkat easier to
81181         implement when cross-compiling.  Trivially support mingw.
81182         * modules/link-follow (configure.ac): Call new name.
81183         * NEWS: Mention this.
81185 2009-09-03  Eric Blake  <ebb9@byu.net>
81187         faccessat: compile replacement
81188         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
81189         needed.
81191         fts: fix compilation error
81192         * lib/fts.c (includes): Re-add "openat.h", for
81193         openat_needs_fchdir.
81195         faccessat: new module
81196         * modules/faccessat: New file.
81197         * lib/faccessat.c: Likewise.
81198         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
81199         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
81200         * modules/unistd (Makefile.am): Use it.
81201         * lib/unistd.in.h (faccessat): Declare it.
81202         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
81203         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
81204         * MODULES.html.sh (File system functions): Mention it.
81205         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
81206         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
81208         euidaccess: prefer POSIX over non-standard implementation
81209         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
81210         * lib/euidaccess.c (euidaccess): Use it if available.
81212         openat: make template easier to use
81213         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
81214         AT_FUNC_F2 to be undefined.
81215         (VALIDATE_FLAG): New macro; use it to reject bad flags.
81216         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
81217         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
81218         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
81219         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
81220         Likewise.
81221         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
81222         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
81223         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
81224         Likewise.
81226         openat: declare in POSIX headers
81227         * NEWS: Mention this.
81228         * modules/openat (configure.ac): Declare witnesses.
81229         (Depends-on): Add fcntl-h, sys_stat, unistd.
81230         (Include): Mention correct headers.
81231         * modules/fcntl-h (Depends-on): Add link-warning.
81232         (Files): Add openat.m4.
81233         (Makefile.am): Substitute witnesses.
81234         * modules/sys_stat (Files, Makefile.am): Likewise.
81235         * modules/unistd (Files, Makefile.am): Likewise.
81236         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
81237         (gl_OPENAT_DEFAULTS): New macro.
81238         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
81239         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
81240         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
81241         (SYS_STAT_H): Remove unused variable.
81242         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
81243         * lib/fcntl--.h (includes): Remove unneeded header.
81244         * lib/openat-safer.c (includes): Likewise.
81245         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
81246         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
81247         appropriate headers.
81248         (__OPENAT_PREFIX): Delete.
81249         * lib/fcntl.in.h (openat): Provide declaration.
81250         (AT_FDCWD): Fix Solaris bug.
81251         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
81252         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
81253         * lib/fchmodat.c (includes):  Adjust to find declaration.
81254         * lib/fchownat.c (includes): Likewise.
81255         * lib/mkdirat.c (includes): Likewise.
81256         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
81257         still visible.
81259 2009-09-02  Eric Blake  <ebb9@byu.net>
81261         errno: use consistently
81262         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
81263         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
81264         * lib/canonicalize.c (ELOOP): Likewise.
81265         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
81266         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
81267         * lib/lchown.c (EOPNOTSUPP): Likewise.
81268         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
81269         * lib/savewd.c (ESTALE): Likewise.
81270         * lib/settime.c (ENOSYS): Likewise.
81271         * lib/utimens.c (ENOSYS): Likewise.
81272         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
81273         * lib/chdir-safer.c (ELOOP): Likewise.
81274         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
81275         * modules/c-stack (Depends-on): Add errno.
81276         * modules/canonicalize (Depends-on): Likewise.
81277         * modules/chdir-safer (Depends-on): Likewise.
81278         * modules/fdopendir (Depends-on): Likewise.
81279         * modules/inet_ntop (Depends-on): Likewise.
81280         * modules/inet_pton (Depends-on): Likewise.
81281         * modules/lchown (Depends-on): Likewise.
81282         * modules/openat (Depends-on): Likewise.
81283         * modules/savewd (Depends-on): Likewise.
81284         * modules/settime (Depends-on): Likewise.
81285         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
81287         fts: avoid leaking fds
81288         * modules/fts (Depends-on): Add cloexec.
81289         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
81290         flag.
81292         fts: make directory fds more robust
81293         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
81294         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
81296         backupfile, chdir-long, fts, savedir: make safer
81297         * lib/backupfile.c (includes): Use "dirent--.h", since
81298         numbered_backup can write to stderr during readdir.
81299         * lib/savedir.c (includes): Likewise.
81300         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
81301         emulation can write to stderr on failure.
81302         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
81303         * lib/getcwd.c: Document why opendir_safer is unused.
81304         * lib/glob.c: Likewise.
81305         * lib/scandir.c: Likewise.
81306         * lib/openat-proc.c: Likewise, for open_safer.
81307         * modules/backupfile (Depends-on): Add dirent-safer.
81308         * modules/savedir (Depends-on): Likewise.
81309         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
81310         * modules/chdir-long (Depends-on): Add openat-safer.
81312         openat-safer: new module
81313         * modules/openat-safer: New file.
81314         * lib/openat-safer.c: Likewise.
81315         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
81316         * lib/fcntl-safer.h (openat_safer): Declare.
81317         * lib/fcntl--.h (openat): Override.
81318         * MODULES.html.sh (File descriptor based I/O): Mention it.
81319         * lib/openat.h: Add double-inclusion guards.
81320         * lib/openat.c (includes): Only include "fcntl-safer.h", not
81321         "fcntl--.h", so we can implement openat.
81322         * modules/openat-safer-tests: New test.
81323         * tests/test-openat-safer.c: New file.
81325         dirent-safer: new module
81326         * modules/dirent-safer: New file.
81327         * lib/dirent--.h: Likewise.
81328         * lib/dirent-safer.h: Likewise.
81329         * lib/opendir-safer.c: Likewise.
81330         * m4/dirent-safer.m4: Likewise.
81331         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
81332         * modules/dirent-safer-tests: New test.
81333         * tests/test-dirent-safer.c: New file.
81334         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
81336         fdopendir: optimize on mingw
81337         * lib/unistd.in.h (_gl_directory_name): New prototype.
81338         * lib/fchdir.c (_gl_directory_name): Implement it.
81339         (fchdir): Use it to simplify implementation.
81340         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
81341         fchdir, when available, to avoid calling [f]chdir().
81343         fdopendir: split into its own module
81344         * lib/openat.c (fdopendir): Move...
81345         * lib/fdopendir.c: ...into new file.
81346         * modules/fdopendir: New module.
81347         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
81348         * modules/openat (Depends-on): Add fdopendir.
81349         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
81350         fdopendir here.
81351         * modules/savedir (Depends-on): Only need fdopendir, not full
81352         openat.
81353         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
81354         * lib/openat.h (fdopendir): Drop prototype.
81355         * lib/dirent.in.h (fdopendir): Provide prototype.
81356         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
81357         * modules/dirent (Makefile.am): Substitute them.
81358         * MODULES.html.sh (File system functions): Mention it.
81359         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
81360         * modules/fdopendir-tests: New file.
81361         * tests/test-fdopendir.c: Likewise.
81363         fchdir: use more consistent macro convention
81364         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
81365         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
81366         REPLACE_FCHDIR, rather than relying on config.h macros.
81367         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
81368         inside a single make-time REPLACE_FCHDIR block, rather than using
81369         the config.h FCHDIR_REPLACEMENT.
81370         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
81371         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
81372         Manage fstat replacement.
81373         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
81374         REPLACE_FCHDIR.
81375         * modules/sys_stat (Files): Add m4/unistd_h.m4.
81376         (Makefile.am): Substitute REPLACE_FCHDIR.
81377         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
81378         FCHDIR_REPLACEMENT.
81379         * lib/dup-safer.c (dup_safer): Likewise.
81380         * lib/dup2.c (rpl_dup2): Likewise.
81381         * lib/dup3.c (rpl_dup3): Likewise.
81382         * lib/open.c (rpl_open): Likewise.
81384         fchdir: simplify error handling, and support dup3
81385         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
81386         stdbool, malloc-posix, realloc-posix.
81387         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
81388         (ensure_dirs_slot): Return false on allocation failure.
81389         (rpl_dup2): Delete.
81390         (_gl_register_dup): New function.
81391         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
81392         (_gl_register_fd): Close fd on allocation failure.
81393         * lib/fcntl.in.h (_gl_register_fd): Update signature.
81394         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
81395         prototype.
81396         (rpl_dup2_fchdir): Delete prototype.
81397         * lib/open.c (open): Update caller.
81398         * lib/dup2.c (dup2): Track fchdir metadata.
81399         * lib/dup3.c (dup3): Likewise.
81400         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
81401         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
81403 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81405         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
81406         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
81407         don't pass arguments to AC_OUTPUT.
81409 2009-09-02  Bruno Haible  <bruno@clisp.org>
81411         * modules/mkdtemp (License): Relicense under LGPLv2+.
81412         Reported by Paolo Bonzini.
81414 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81416         Replace uses of obsolete autoconf macros in Jim's modules.
81417         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
81418         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
81419         can evoke a warning from autoconf when run with -Wobsolete
81420         enabled.  They were declared obsolete for good reasons (see
81421         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
81422         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
81423         should not continue using the deprecated macros.
81424         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
81425         obsolete Autoconf macros with modern counterparts.
81426         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
81427         * m4/dos.m4 (gl_AC_DOS): Likewise.
81428         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
81429         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
81430         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
81431         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
81432         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
81433         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
81434         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
81435         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
81436         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
81437         Likewise.
81438         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
81439         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
81440         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
81441         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
81442         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
81443         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
81445 2009-09-01  Eric Blake  <ebb9@byu.net>
81447         fchdir: fix off-by-one bug in previous patch
81448         * lib/fchdir.c (rpl_fstat): Use correct bounds.
81449         (_gl_unregister_fd): Delete useless if.
81451 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
81453         maint.mk: sort the list of syntax-check rules
81454         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
81455         easier to get a sense of progress when the rules are run sequentially
81456         and take a long time.
81458 2009-09-01  Simon Josefsson  <simon@josefsson.org>
81460         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
81461         * modules/netinet_in: Likewise.
81462         * modules/sys_file: Likewise.
81463         * modules/sys_ioctl: Likewise.
81464         * modules/sys_select: Likewise.
81465         * modules/sys_socket: Likewise.
81466         * modules/sys_stat: Likewise.
81467         * modules/sys_time: Likewise.
81468         * modules/sys_times: Likewise.
81469         * modules/sys_utsname: Likewise.
81470         * modules/sys_wait: Likewise.
81472 2009-09-01  Jim Meyering  <meyering@redhat.com>
81474         fts: help ensure that return values are not ignored
81475         * lib/fts_.h (__GNUC_PREREQ): Define.
81476         (__attribute_warn_unused_result__): Define.
81477         (fts_children, fts_close, fts_open, fts_read): Declare with
81478         __attribute_warn_unused_result__.
81480         fts: fts_close now fails also when closing a dir file descriptor fails
81481         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
81482         and propagate to caller, along with errno.
81484         announce-gen: correct formatting in --help output
81485         * build-aux/announce-gen (usage): Move the one-line description in
81486         --help output "up", to where it belongs, just after Usage:.
81488 2009-08-31  Eric Blake  <ebb9@byu.net>
81490         fchdir: port to mingw
81491         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
81492         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
81493         opened, then use a substitute.
81494         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
81495         replacement.
81496         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
81497         (_gl_register_fd): No need to check stat if open already filters
81498         all directories.
81499         (fchdir): Fix error condition to match POSIX.
81500         * modules/fchdir (Depends-on): Add sys_stat.
81501         * doc/posix-functions/open.texi (open): Document the limitation.
81502         * modules/fchdir-tests: New file.
81503         * tests/test-fchdir.c: Likewise.
81505         canonicalize: allow cross-testing from cygwin to mingw
81506         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
81507         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
81508         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
81509         Likewise.
81510         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
81511         target does not support symlinks.
81512         * tests/test-canonicalize-lgpl.sh: Likewise.
81514         chown: avoid compilation warning on mingw
81515         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
81516         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
81517         mingw.
81518         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
81519         * modules/chown (Depends-on): Add errno.
81521 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
81523         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
81524         command.
81526 2009-08-31  Jim Meyering  <meyering@redhat.com>
81528         canonicalize: remove useless initialization
81529         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
81530         initialization of local, "end".
81532 2009-08-30  Bruno Haible  <bruno@clisp.org>
81534         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
81535         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
81536         ENOSYS.
81538 2009-08-30  Bruno Haible  <bruno@clisp.org>
81540         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
81541         /usr/xpg4/bin/tr when it exists.
81542         * tests/test-pipe-filter-gi1.sh: Likewise.
81544 2009-08-30  Bruno Haible  <bruno@clisp.org>
81546         Work around deficient /usr/bin/id program on Solaris.
81547         * tests/test-file-has-acl.sh (ID): New variable.
81548         * tests/test-set-mode-acl.sh (ID): Likewise.
81549         * tests/test-copy-acl.sh (ID): Likewise.
81550         * tests/test-copy-file.sh (ID): Likewise.
81552 2009-08-30  Bruno Haible  <bruno@clisp.org>
81554         New module 'xstriconveh'.
81555         * lib/xstriconveh.h: New file.
81556         * lib/xstriconveh.c: New file.
81557         * modules/xstriconveh: New file.
81559 2009-08-30  Bruno Haible  <bruno@clisp.org>
81561         Make it easier to use mem_cd_iconveh.
81562         * lib/striconveh.h (iconveh_t): New type.
81563         (iconveh_open, iconveh_close): New declarations.
81564         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
81565         with a single 'const iconveh_t *' argument.
81566         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
81567         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
81568         with a single 'const iconveh_t *' argument.
81569         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
81570         * tests/test-striconveh.c (main): Update.
81571         * NEWS: Mention the change.
81573 2009-08-30  Bruno Haible  <bruno@clisp.org>
81575         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
81576         problem.
81578 2009-08-30  Bruno Haible  <bruno@clisp.org>
81580         Work around iconv_open problem on Solaris.
81581         * lib/iconv_open-solaris.gperf: New file.
81582         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
81583         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
81584         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
81585         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
81586         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
81587         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
81589 2009-08-29  Jim Meyering  <meyering@redhat.com>
81591         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
81592         * top/maint.mk (cvs-check): Remove target; it was just an alias
81593         to the better-named vc-diff-check.
81594         (maintainer-distcheck): Remove rule.  It was used only from
81595         the (alpha/beta/major) target, and all of its commands but one
81596         were coreutils-specific.
81597         (vc-dist): Remove rule.
81598         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
81599         Run vc-diff-check, not vc-dist.
81600         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
81602 2009-08-27  Bruno Haible  <bruno@clisp.org>
81604         * tests/test-bitrotate.c (main): Remove test that uses a shift count
81605         of 0.
81607 2009-08-27  Bruno Haible  <bruno@clisp.org>
81609         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
81610         compilers.
81611         * doc/func.texi: Document the SunPRO C bug.
81613 2009-08-27  Bruno Haible  <bruno@clisp.org>
81615         Fix link error on Solaris.
81616         * tests/test-parse-duration.c (xstrdup): Remove function.
81618 2009-08-26  Pádraig Brady  <P@draigbrady.com>
81620         ignore-value: handle pointer types, too
81621         * lib/ignore-value.h (__attribute__): Remove definition.
81622         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
81623         of a more concise and more-often effective "(void) i" statement.
81624         (ignore_ptr): New function to suppress warnings from functions that
81625         return pointers, and to make it explicit that one function doesn't
81626         handle all cases.
81628 2009-08-25  Bruno Haible  <bruno@clisp.org>
81630         dup2: work around a Linux bug.
81631         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
81632         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
81633         * doc/posix-functions/dup2.texi: Mention the Linux bug.
81634         Reported by Simon Josefsson.
81636 2009-08-25  Jim Meyering  <meyering@redhat.com>
81638         libguestfs uses gnulib
81639         * users.txt: Add libguestfs.
81641 2009-08-24  Eric Blake  <ebb9@byu.net>
81643         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
81644         * lib/pipe2.c (includes): Add binary-io.h.
81645         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
81647 2009-08-24  Bruno Haible  <bruno@clisp.org>
81649         Tolerate declared but missing accept4 syscall.
81650         * lib/accept4.c (accept4): Invoke original accept4 function first, if
81651         available.
81652         * lib/sys_socket.in.h (accept4): If the function is already present,
81653         override it.
81654         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
81655         * modules/accept4 (Makefile.am): Compile accept4.c always.
81656         Reported by Paolo Bonzini and Eric Blake.
81658 2009-08-23  Bruno Haible  <bruno@clisp.org>
81660         New module 'accept4'.
81661         * lib/sys_socket.in.h (accept4): New declaration.
81662         * lib/accept4.c: New file.
81663         * m4/accept4.m4: New file.
81664         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
81665         GNULIB_ACCEPT4, HAVE_ACCEPT4.
81666         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
81667         HAVE_ACCEPT4.
81668         * modules/accept4: New file.
81669         * doc/glibc-functions/accept4.texi: Mention the new module.
81671 2009-08-24  Jim Meyering  <meyering@redhat.com>
81673         progname: also set global program_invocation_name, when possible
81674         Before this change, a libtool-enabled program that calls glibc's
81675         error function would report the program name as
81676         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
81677         * modules/progname (configure.ac): Check for a declaration of
81678         program_invocation_name.
81679         * lib/progname.c:  Include <errno.h>.
81680         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
81681         Set program_invocation_name.
81683 2009-08-23  Bruno Haible  <bruno@clisp.org>
81685         * lib/dup3.c: Include <string.h>.
81687 2009-08-23  Bruno Haible  <bruno@clisp.org>
81689         * lib/dup3.c (dup3): Test only once whether the system actually exists.
81690         * lib/pipe2.c (pipe2): Likewise.
81691         Suggested by Eric Blake.
81693 2009-08-23  Bruno Haible  <bruno@clisp.org>
81695         Tolerate declared but missing dup3 syscall.
81696         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
81697         * lib/unistd.in.h (dup3): If the function is already present,
81698         override it.
81699         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
81700         * modules/dup3 (Makefile.am): Compile dup3.c always.
81701         Reported by Paolo Bonzini.
81703 2009-08-23  Bruno Haible  <bruno@clisp.org>
81705         Tolerate declared but missing pipe2 syscall.
81706         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
81707         available.
81708         * lib/unistd.in.h (pipe2): If the function is already present,
81709         override it.
81710         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
81711         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
81712         Reported by Paolo Bonzini.
81714 2009-08-23  Bruno Haible  <bruno@clisp.org>
81716         * lib/pipe2.c (pipe2): Move #ifs inside function.
81718 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
81720         quotearg: document limitations of quote_these_too
81721         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
81722         those limitations are created.
81723         * lib/quotearg.h (set_char_quoting): Document that digits and
81724         letters that are special after backslash are not permitted.
81725         (quotearg_char): Cross-reference set_char_quoting documentation.
81727 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
81729         quotearg: implement custom_quoting_style
81730         * lib/quotearg.c: (struct quoting_options): Add left_quote and
81731         right_quote fields.
81732         (set_custom_quoting): New public function.
81733         (quotearg_buffer_restyled): Add left_quote and right_quote
81734         arguments, handle them very much like locale quoting, and update
81735         all uses.
81736         (quotearg_n_custom): New public function.
81737         (quotearg_n_custom_mem): New public function.
81738         (quotearg_custom): New public function.
81739         (quotearg_custom_mem): New public function.
81740         * lib/quotearg.h: Prototype and document new public functions.
81741         (enum quoting_style): For escape_quoting_style and
81742         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
81743         ignored even though they're otherwise like c_quoting_style.
81744         Add custom_quoting_style member and document with comparison to
81745         clocale_quoting_style.
81746         * tests/test-quotearg.c (custom_quotes): New array.
81747         (custom_results): New array.
81748         (main): Extend to test custom quoting.
81750 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
81752         quotearg: fix right quote escaping when it's in quote_these_too
81753         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
81754         quote, be sure to prepend only one backslash.
81755         * tests/test-quotearg.c (use_quote_double_quotes): New function.
81756         (main): Test it.
81758 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
81760         quotearg-tests: test escaping of embedded locale quotes
81761         * tests/test-quotearg.c (struct result_strings): Add member for
81762         new input.
81763         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
81764         (inputs): Add new input.
81765         (results_g): Add expected results.
81766         (flag_results): Likewise.
81767         (locale_results): Likewise.
81768         (compare_strings): Check those.
81770 2009-08-23  Bruno Haible  <bruno@clisp.org>
81772         Tests for module 'dup3'.
81773         * modules/dup3-tests: New file.
81774         * tests/test-dup3.c: New file.
81776         New module 'dup3'.
81777         * lib/unistd.in.h (dup3): New declaration.
81778         * lib/dup3.c: New file.
81779         * m4/dup3.m4: New file.
81780         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
81781         HAVE_DUP3.
81782         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
81783         * modules/dup3: New file.
81784         * doc/glibc-functions/dup3.texi: Mention the new module.
81786 2009-08-23  Bruno Haible  <bruno@clisp.org>
81788         Tweak the dup2 test.
81789         * tests/test-dup2.c (main): Create the test file empty. Verify that an
81790         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
81791         the test file is still empty. Fix argument order of lseek.
81793 2009-08-23  Bruno Haible  <bruno@clisp.org>
81795         Avoid test link errors when the modules getopt-gnu, gettext are used.
81796         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
81797         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
81799 2009-08-23  Bruno Haible  <bruno@clisp.org>
81801         Fix getdtablesize() on mingw.
81802         * lib/getdtablesize.c (getdtablesize): Implement differently.
81803         * lib/unistd.in.h (getdtablesize): Improve comment.
81805 2009-08-23  Bruno Haible  <bruno@clisp.org>
81807         New module 'mkostemp'.
81808         Based on Ulrich Drepper's 2007-08-10 change in glibc.
81809         * lib/stdlib.in.h (mksotemp): New declaration.
81810         * lib/mkostemp.c: New file, from glibc with modifications.
81811         * lib/tempname.h (GT_FILE): Remove outdated comment.
81812         (gen_tempname): Add flags argument.
81813         * lib/tempname.c (__GT_BIGFILE): Remove macro.
81814         (__GT_FILE): Map to 1.
81815         (small_open, large_open): Remove macros.
81816         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
81817         * lib/mkstemp.c (mkstemp): Update.
81818         * lib/mkdtemp.c (mkdtemp): Likewise.
81819         * m4/mkostemp.m4: New file.
81820         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
81821         HAVE_MKOSTEMP.
81822         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
81823         HAVE_MKOSTEMP.
81824         * modules/mkostemp: New file, based on modules/mkstemp.
81825         * doc/glibc-functions/mkostemp.texi: Mention the new module.
81826         * NEWS: Mention the change.
81828 2009-08-23  Bruno Haible  <bruno@clisp.org>
81830         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
81831         Reported by Eric Blake.
81833 2009-08-23  Bruno Haible  <bruno@clisp.org>
81835         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
81836         Reported by Eric Blake.
81838 2009-08-23  Bruno Haible  <bruno@clisp.org>
81840         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
81841         * modules/pipe2 (Depends-on): Likewise.
81843 2009-08-23  Eric Blake  <ebb9@byu.net>
81845         fcntl-h: add O_TTY_INIT support
81846         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
81847         * tests/test-fcntl-h.c (o): Test it.
81848         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
81850         fcntl-h: rename from fcntl, in preparation for fcntl(2)
81851         * modules/fcntl: Move <fcntl.h> header replacement...
81852         * modules/fcntl-h: ...to new name, so as not to collide with
81853         like-named function.
81854         * tests/test-fcntl.c: Rename...
81855         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
81856         * modules/fcntl-tests: Rename...
81857         * modules/fcntl-h-tests: ...to this.  Update test file name.
81858         * modules/chdir-long (Depends-on): Update clients.
81859         * modules/chdir-safer (Depends-on): Likewise.
81860         * modules/fcntl-safer (Depends-on): Likewise.
81861         * modules/fts (Depends-on): Likewise.
81862         * modules/mkancesdirs (Depends-on): Likewise.
81863         * modules/mkdir-p (Depends-on): Likewise.
81864         * modules/open (Depends-on): Likewise.
81865         * modules/savewd (Depends-on): Likewise.
81866         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
81867         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
81869 2009-08-22  Bruno Haible  <bruno@clisp.org>
81871         * modules/binary-io (License): Relicense under LGPL.
81872         * modules/pipe2 (License): Likewise.
81874 2009-08-22  Bruno Haible  <bruno@clisp.org>
81876         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
81877         return value.
81878         * lib/pipe-filter-gi.c (filter_init): Likewise.
81879         Reported by Eric Blake.
81881 2009-08-22  Bruno Haible  <bruno@clisp.org>
81883         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
81884         * modules/pipe (Depends-on): Add pipe2.
81886 2009-08-22  Bruno Haible  <bruno@clisp.org>
81888         Tests for module 'pipe2'.
81889         * modules/pipe2-tests: New file.
81890         * tests/test-pipe2.c: New file.
81892         New module 'pipe2'.
81893         * lib/unistd.in.h (pipe2): New declaration.
81894         * lib/pipe2.c: New file.
81895         * m4/pipe2.m4: New file.
81896         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
81897         HAVE_PIPE2.
81898         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
81899         * modules/pipe2: New file.
81900         * doc/glibc-functions/pipe2.texi: Mention the new module.
81902 2009-08-22  Bruno Haible  <bruno@clisp.org>
81904         Reference some new glibc functions.
81905         * doc/glibc-functions/accept4.texi: New file.
81906         * doc/glibc-functions/dup3.texi: New file.
81907         * doc/glibc-functions/mkostemp.texi: New file.
81908         * doc/glibc-functions/pipe2.texi: New file.
81909         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
81910         (Glibc sys/socket.h): Refer to accept4.
81911         (Glibc unistd.h): Refer to dup3, pipe2.
81912         Reported by Eric Blake.
81914 2009-08-22  Jim Meyering  <meyering@redhat.com>
81915             Bruno Haible  <bruno@clisp.org>
81917         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
81918         This makes it so packages using automake-1.11's silent-rules option
81919         can print e.g., a single "GEN    configmake.h" line, rather than
81920         the 30+ statements that perform the job.  If you want to see the
81921         actual commands, you can still run "make V=1".
81922         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
81923         so that make output is abbreviated when those variables are defined
81924         appropriately.
81925         * modules/argz: Likewise.
81926         * modules/arpa_inet: Likewise.
81927         * modules/byteswap: Likewise.
81928         * modules/configmake: Likewise.
81929         * modules/dirent: Likewise.
81930         * modules/errno: Likewise.
81931         * modules/fcntl: Likewise.
81932         * modules/float: Likewise.
81933         * modules/fnmatch: Likewise.
81934         * modules/getopt-posix: Likewise.
81935         * modules/glob: Likewise.
81936         * modules/iconv_open: Likewise.
81937         * modules/inttypes: Likewise.
81938         * modules/localcharset: Likewise.
81939         * modules/locale: Likewise.
81940         * modules/math: Likewise.
81941         * modules/netdb: Likewise.
81942         * modules/netinet_in: Likewise.
81943         * modules/poll: Likewise.
81944         * modules/posix_spawnp-tests: Likewise.
81945         * modules/sched: Likewise.
81946         * modules/search: Likewise.
81947         * modules/selinux-h: Likewise.
81948         * modules/signal: Likewise.
81949         * modules/spawn: Likewise.
81950         * modules/stdarg: Likewise.
81951         * modules/stdbool: Likewise.
81952         * modules/stddef: Likewise.
81953         * modules/stdint: Likewise.
81954         * modules/stdio: Likewise.
81955         * modules/stdlib: Likewise.
81956         * modules/string: Likewise.
81957         * modules/strings: Likewise.
81958         * modules/sys_file: Likewise.
81959         * modules/sys_ioctl: Likewise.
81960         * modules/sys_select: Likewise.
81961         * modules/sys_socket: Likewise.
81962         * modules/sys_stat: Likewise.
81963         * modules/sys_time: Likewise.
81964         * modules/sys_times: Likewise.
81965         * modules/sys_utsname: Likewise.
81966         * modules/sys_wait: Likewise.
81967         * modules/sysexits: Likewise.
81968         * modules/time: Likewise.
81969         * modules/unistd: Likewise.
81970         * modules/wchar: Likewise.
81971         * modules/wctype: Likewise.
81973 2009-08-22  Jim Meyering  <meyering@redhat.com>
81975         announce-gen: detect write failure
81976         * build-aux/announce-gen: Add Coda at end.
81977         Remove equivalent-but-more-verbose block at top.
81979 2009-08-19  Akim Demaille  <demaille@gostai.com>
81981         bootstrap: --help to stdout.
81982         * bootstrap (usage): Don't send --help to stderr.
81983         Use a here doc instead of a long string.
81985 2009-08-21  Eric Blake  <ebb9@byu.net>
81987         test-popen-safer: split from test-popen
81988         * tests/test-popen.c (main): Move...
81989         * tests/test-popen.h: ...into new file.
81990         * tests/test-popen-safer2.c: New file.
81991         * modules/popen-tests (Files): Add test-popen.h.
81992         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
81993         Suggested by Bruno Haible.
81995         test-fcntl-safer: split from test-open
81996         * tests/test-open.c (main): Move...
81997         * tests/test-open.h: ...into new file.
81998         * tests/test-fcntl-safer.c: New file.
81999         * modules/open-tests (Files): Add test-open.h.
82000         * modules/fcntl-safer-tests: New file.
82001         Suggested by Bruno Haible.
82003         test-fopen-safer: split from test-fopen
82004         * tests/test-fopen.c (main): Move...
82005         * tests/test-fopen.h: ...into new file.
82006         * tests/test-fopen-safer.c: New file.
82007         * modules/fopen-tests (Files): Add test-fopen.h.
82008         * modules/fopen-safer-tests: New file.
82009         Suggested by Bruno Haible.
82011 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
82013         popen-safer: test O_CLOEXEC at run-time.
82014         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
82016 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
82018         fcntl: move more flags to the header
82019         * lib/cloexec.c: Do not define FD_CLOEXEC here.
82020         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
82021         * lib/fcntl.in.h: Do both things here.
82023 2009-08-21  Jim Meyering  <meyering@redhat.com>
82025         consistently remove $@-t before redirecting to it
82026         * modules/argz: Remove $@-t and $@ before redirecting to the former.
82027         * modules/alloca-opt: Likewise.
82028         * modules/byteswap: Likewise.
82029         * modules/fnmatch: Likewise.
82030         * modules/getopt-posix: Likewise.
82031         * modules/glob: Likewise.
82032         * modules/poll: Likewise.
82033         * modules/posix_spawnp-tests: Likewise.
82034         * modules/sys_socket: Likewise.
82035         * modules/sysexits: Likewise.
82037 2009-08-21  Eric Blake  <ebb9@byu.net>
82039         popen: simplify access to original popen
82040         * lib/popen.c (rpl_popen): No need to worry about popen being a
82041         macro.
82042         Reported by Bruno Haible.
82044 2009-08-20  Eric Blake  <ebb9@byu.net>
82046         build: avoid some compiler warnings
82047         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
82048         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
82049         type.
82050         (new_exclude_segment, excluded_file_pattern_p)
82051         (excluded_file_name_p): Reduce scope.
82052         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
82053         old-style declaration.
82055 2009-08-20  Simon Josefsson  <simon@josefsson.org>
82057         * tests/test-exclude1.sh: Handle Windows EOL.
82058         * tests/test-exclude2.sh: Likewise.
82059         * tests/test-exclude3.sh: Likewise.
82060         * tests/test-exclude4.sh: Likewise.
82061         * tests/test-exclude5.sh: Likewise.
82062         * tests/test-exclude6.sh: Likewise.
82063         * tests/test-exclude7.sh: Likewise.
82065 2009-08-19  Akim Demaille  <demaille@gostai.com>
82067         bootstrap: find sha1sum when named gsha1sum.
82068         * bootstrap (find_tool): New.
82069         ($SHA1SUM): New.
82070         Use it.
82072 2009-08-20  Jim Meyering  <meyering@redhat.com>
82074         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
82075         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
82076         expression that converts "." in a file name to "\." in the resulting
82077         regexp.  Start with a dummy statement, so that prior shell variable
82078         definitions are expanded portably.  Reported by Simon Josefsson.
82080 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
82082         Fix polling for writeability of a screen buffer.
82083         * lib/poll.c: Distinguish input and screen buffers for the
82084         Win32 implementation.
82085         * lib/select.c: Likewise.
82087 2009-08-19  Eric Blake  <ebb9@byu.net>
82089         popen-safer: prevent popen from clobbering std descriptors
82090         * modules/popen-safer: New file.
82091         * lib/popen-safer.c: Likewise.
82092         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
82093         * lib/stdio--.h (popen): Provide override.
82094         * lib/stdio-safer.h (popen_safer): Provide declaration.
82095         * tests/test-popen.c (includes): Partially test this.
82096         * modules/popen-safer-tests: New file, for more tests.
82097         * tests/test-popen-safer.c: Likewise.
82098         * MODULES.html.sh (file stream based Input/Output): Mention it.
82100         tests: test some of the *-safer modules
82101         * modules/fopen-safer (Depends-on): Add fopen.
82102         * modules/fcntl-safer (Depends-on): Add fcntl.
82103         * modules/stdlib-safer (Depends-on): Add stdlib.
82104         (configure.ac): Set indicator.
82105         * modules/unistd-safer (configure.ac): Likewise.
82106         * modules/tmpfile-safer (configure.ac): Likewise.
82107         (Depends-on): Add tmpfile.
82108         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
82109         active.
82110         * tests/test-fopen.c (includes): Test safer versions when they are
82111         in use.
82112         * tests/test-open.c (includes): Likewise.
82114         popen: fix cygwin 1.5 bug when stdin closed
82115         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
82116         * modules/popen: New file.
82117         * modules/popen-tests: Likewise.
82118         * tests/test-popen.c: Likewise.
82119         * m4/popen.m4: Likewise.
82120         * lib/popen.c: Likewise.
82121         * lib/stdio.in.h (popen): New declaration.
82122         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
82123         * modules/stdio (Makefile.am): Likewise.
82124         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
82126 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
82128         maint.mk: give full control over update-copyright exclusions
82129         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
82130         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
82131         (update-copyright): Don't force inclusion of top-level
82132         ChangeLog.  Don't force exclusion of all COPYING files, but make
82133         them the default exclusion instead.
82135 2009-08-16  Bruno Haible  <bruno@clisp.org>
82137         Fix test failures on Solaris 10.
82138         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
82139         tests when Solaris iconv() is used.
82140         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
82141         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
82142         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
82143         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
82144         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
82146 2009-08-16  Bruno Haible  <bruno@clisp.org>
82148         Fix test failures on Solaris 10.
82149         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
82150         'tr' program and pass it as first argument.
82151         * tests/test-pipe-filter-gi1.sh: Likewise.
82152         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
82153         program as first argument.
82154         * tests/test-pipe-filter-gi1.c (main): Likewise.
82156 2009-08-16  Eric Blake  <ebb9@byu.net>
82158         fpurge: fix previous commits
82159         * modules/fpurge (Makefile.am): Make replacement conditional,
82160         partially reverting 2007-04-29 change; missed in previous
82161         attempt.
82162         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
82163         is missing.
82165 2009-08-16  Bruno Haible  <bruno@clisp.org>
82167         Clarify fpurge's effect on the file position.
82168         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
82169         * tests/test-fpurge.c (main): Make a second pass for checking the file
82170         position.
82172 2009-08-16  Bruno Haible  <bruno@clisp.org>
82174         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
82175         declaration of fpurge is missing.
82176         * tests/test-fpurge.c (main): Check that the file has not more contents
82177         than expected. Close the file before removing it.
82179 2009-08-15  Eric Blake  <ebb9@byu.net>
82181         fpurge: don't wrap working cygwin implementation
82182         * lib/fpurge.c (fpurge): Fix comment typo.
82183         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
82184         1.7 to avoid replacement.
82185         * tests/test-fpurge.c (main): Enhance test.
82187 2009-08-15  Eric Blake  <ebb9@byu.net>
82188         and Jim Meyering  <meyering@redhat.com>
82190         test-update-copyright: skip if perl is insufficient
82191         * tests/test-update-copyright.sh: Failure to run maintainer tool
82192         should not cause testsuite failure on cygwin 1.5.
82194 2009-08-14  Eric Blake  <ebb9@byu.net>
82196         doc: mention more functions added in cygwin 1.7.0
82197         * doc/posix-headers/limits.texi (limits.h): Update for recent
82198         cygwin additions.
82199         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
82200         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
82201         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
82202         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
82203         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
82205 2009-08-14  Eric Blake  <ebb9@byu.net>
82207         maint.mk: simplify update-copyright rule
82208         * top/maint.mk (update-copyright-local): Delete, and document how
82209         to do it in cfg.mk instead.
82210         (update-copyright-exclude-regexp): Delete, and document how to do
82211         it in .x-update-copyright instead.
82212         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
82213         exclude ChangeLog.
82215 2009-08-14  Bruno Haible  <bruno@clisp.org>
82217         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
82219 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
82221         maint.mk: support update-copyright-env
82222         * top/maint.mk (update-copyright-env): Define place-holder.
82223         (update-copyright): Expand $(update-copyright-env) before
82224         invoking update-copyright.
82226 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
82228         update-copyright: implement forced reformatting
82229         * build-aux/update-copyright: Implement and document
82230         UPDATE_COPYRIGHT_FORCE.
82231         * tests/test-update-copyright.sh: Test it.
82233 2009-08-14  Eric Blake  <ebb9@byu.net>
82234         and Bruno Haible  <bruno@clisp.org>
82236         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
82237         * tests/test-locale.c: Revert previous patch related to NULL.
82238         * tests/test-stdio.c: Likewise.
82239         * tests/test-stdlib.c: Likewise.
82240         * tests/test-string.c: Likewise.
82241         * tests/test-unistd.c: Likewise.
82242         * modules/time-tests (Depends-on): Add verify.
82243         * modules/wchar-tests (Depends-on): Likewise.
82244         * tests/test-time.c: Test for NULL compliance.
82245         * tests/test-wchar.c: Likewise.
82246         * modules/locale (Depends-on): Add stddef.
82247         * modules/stdio (Depends-on): Likewise.
82248         * modules/stdlib (Depends-on): Likewise.
82249         * modules/string (Depends-on): Likewise.
82250         * modules/time (Depends-on): Likewise.
82251         * modules/unistd (Depends-on): Likewise.
82252         * modules/wchar (Depends-on): Likewise.
82253         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
82254         * lib/stdlib.in.h (includes): Likewise.
82255         * lib/string.in.h (includes): Likewise.
82256         * lib/time.in.h (includes): Likewise.
82257         * lib/unistd.in.h (includes): Likewise.
82258         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
82259         replaced.
82260         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
82261         * m4/stddef_h.m4: New file.
82262         * modules/stddef: Likewise.
82263         * lib/stddef.in.h: Likewise.
82264         * modules/stddef-tests: Likewise.
82265         * tests/test-stddef.c: Likewise.
82266         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
82267         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
82268         * doc/posix-headers/locale.texi (locale.h): Likewise.
82269         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
82270         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
82271         * doc/posix-headers/string.texi (string.h): Likewise.
82272         * doc/posix-headers/time.texi (time.h): Likewise.
82273         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
82274         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
82276 2009-08-14  Eric Blake  <ebb9@byu.net>
82278         doc: improve git diff of texinfo files
82279         * .gitattributes: Add rule for *.texi files, with hint on how to
82280         use it.
82281         Copied from m4, and based on a report by Bruno Haible.
82283 2009-08-14  Bruno Haible  <bruno@clisp.org>
82285         Disable multithread support by default on Cygwin 1.5.x for real.
82286         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
82288 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
82290         update-copyright: much ado about intervals
82291         * build-aux/update-copyright: Implement and document
82292         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
82293         of copyright year intervals.
82294         Also, document UPDATE_COPYRIGHT_YEAR.
82295         * tests/test-update-copyright.sh: Test it.
82297         update-copyright: convert 2-digit to 4-digit years
82298         * build-aux/update-copyright: Implement and document.
82299         * tests/test-update-copyright.sh: Update.
82301 2009-08-14  Jim Meyering  <meyering@redhat.com>
82303         test-exclude: avoid coreutils "make check" failure
82304         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
82305         just as in test-argmatch.c.
82307 2009-08-13  Eric Blake  <ebb9@byu.net>
82309         test-dup2: fix bad assumption
82310         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
82311         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
82313         test-version-etc: fix CRLF portability issue
82314         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
82315         recognize \r.
82316         * tests/test-argp-version-etc-1.sh: Likewise.
82318         getopt: update client modules
82319         * modules/argp (Depends-on): Use getopt-gnu.
82320         * modules/git-merge-changelog (Depends-on): Likewise.
82321         * modules/long-options (Depends-on): Likewise.
82322         * modules/xstrtol (Depends-on): Likewise.
82324 2009-08-13  Simon Josefsson  <simon@josefsson.org>
82326         * tests/test-version-etc.sh: Don't fail on different
82327         project/version.  Don't fail on CRLF differences.  Rewrite to use
82328         multiple -e instead of multiple sed forks, suggested by Eric Blake
82329         <ebb9@byu.net>.
82330         * tests/test-argp-version-etc-1.sh: Likewise.
82332 2009-08-13  Simon Josefsson  <simon@josefsson.org>
82334         * tests/test-version-etc.sh: Don't fail on different
82335         project/version.
82337 2009-08-12  Bruno Haible  <bruno@clisp.org>
82339         Tests for modules 'getopt-posix', 'getopt-gnu'.
82340         * modules/getopt-posix-tests: New file.
82341         * tests/test-getopt.c: New file.
82342         * tests/test-getopt.h: New file.
82343         * tests/test-getopt_long.h: New file.
82345         New modules 'getopt-posix', 'getopt-gnu'.
82346         * modules/getopt-gnu: New file, renamed from modules/getopt.
82347         * modules/getopt-posix: New file.
82348         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
82349         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
82350         (gl_GETOPT): Remove macro.
82351         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
82352         Disable the test against BSD systems that declare optreset. Test
82353         against mingw bug. Test against lack of support of optional arguments
82354         on many platforms.
82355         * doc/glibc-headers/getopt.texi: Update module name and list of
82356         relevant platforms.
82357         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
82358         'getopt-gnu' and more portability problems.
82359         * NEWS: Mention the changes.
82361 2009-08-12  Bruno Haible  <bruno@clisp.org>
82363         Ensure that optarg etc. get declared by <unistd.h>.
82364         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
82365         AC_USE_SYSTEM_EXTENSIONS.
82366         * modules/getopt (Depends-on): Add 'extensions'.
82368 2009-08-12  Bruno Haible  <bruno@clisp.org>
82370         Avoid test link errors.
82371         * modules/pipe-filter-ii-tests (Makefile.am): Define
82372         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
82373         * modules/pipe-filter-gi-tests (Makefile.am): Define
82374         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
82375         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
82377 2009-08-12  Bruno Haible  <bruno@clisp.org>
82379         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
82380         gl_GETOPT_SUBSTITUTE before.
82381         (gl_GETOPT): Use it.
82382         * m4/argp.m4 (gl_ARGP): Update.
82383         Reported by Sergey Poznyakoff.
82385         * m4/getopt.m4: Reorder macros.
82386         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
82387         (gl_GETOPT_SUBSTITUTE): Remove macro.
82389 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
82391         Minor improvement in gitlog-to-changelog
82393         * build-aux/gitlog-to-changelog: New option `--format' makes
82394         output format string configurable.
82396 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
82398         Optimize exclude: use hash tables for non-wildcard patterns.
82400         * lib/exclude.c: Include hash.h and mbuiter.h
82401         (struct exclude_pattern, exclude_segment): New data types.
82402         (struct exclude): Rewrite.
82403         (fnmatch_pattern_has_wildcards): New function.
82404         (new_exclude_segment, free_exclude_segment): New functions.
82405         (excluded_file_pattern_p, excluded_file_name_p): New functions.
82406         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
82407         * lib/exclude.h (is_fnmatch_pattern): New prototype.
82408         * modules/exclude: Depend on hash and mbuiter.
82410         * modules/exclude-tests: New file.
82411         * tests/test-exclude.c: New file.
82412         * tests/test-exclude1.sh: New file.
82413         * tests/test-exclude2.sh: New file.
82414         * tests/test-exclude3.sh: New file.
82415         * tests/test-exclude4.sh: New file.
82416         * tests/test-exclude5.sh: New file.
82417         * tests/test-exclude6.sh: New file.
82418         * tests/test-exclude7.sh: New file.
82420 2009-08-12  Bruno Haible  <bruno@clisp.org>
82422         Ensure that getopt() gets declared by <unistd.h>.
82423         * lib/unistd.in.h: Conditionally include getopt.h.
82424         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
82425         Set GNULIB_UNISTD_H_GETOPT.
82426         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
82427         GNULIB_UNISTD_H_GETOPT.
82428         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
82430 2009-08-12  Bruno Haible  <bruno@clisp.org>
82432         Clarify logic.
82433         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
82434         gl_replace_getopt instead of GETOPT_H.
82436 2009-08-12  Bruno Haible  <bruno@clisp.org>
82438         * m4/getopt.m4: Add comments.
82440 2009-08-12  Bruno Haible  <bruno@clisp.org>
82442         Disable multithread support by default on Cygwin 1.5.x.
82443         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
82444         set gl_use_threads=no if not specified otherwise.
82446 2009-08-11  Bruno Haible  <bruno@clisp.org>
82448         Avoid compilation error on NetBSD 5.0.
82449         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
82450         * tests/test-stdio.c: Likewise.
82451         * tests/test-stdlib.c: Likewise.
82452         * tests/test-string.c: Likewise.
82453         * tests/test-unistd.c: Likewise.
82454         Reported by Greg Troxel <gdt@ir.bbn.com>
82455         at <https://savannah.gnu.org/support/?106973>.
82457 2009-08-11  Bruno Haible  <bruno@clisp.org>
82459         * modules/dup2-tests (Depends-on): Remove close.
82461         Undo 2009-07-19 commit.
82462         * modules/acl-tests (Depends-on): Remove close.
82463         * modules/binary-io-tests (Depends-on): Likewise.
82464         * modules/closein-tests (Depends-on): Likewise.
82465         * modules/flock-tests (Depends-on): Likewise.
82466         * modules/fsync-tests (Depends-on): Likewise.
82467         * modules/lseek-tests (Depends-on): Likewise.
82468         * modules/pipe-tests (Depends-on): Likewise.
82469         * modules/posix_spawn-tests (Depends-on): Likewise.
82470         * modules/posix_spawnp-tests (Depends-on): Likewise.
82471         * modules/stat-time-tests (Depends-on): Likewise.
82472         * modules/yesno-tests (Depends-on): Likewise.
82474 2009-08-10  Bruno Haible  <bruno@clisp.org>
82476         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
82478 2009-08-10  Bruno Haible  <bruno@clisp.org>
82480         Fix a gcc warning.
82481         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
82483 2009-08-10  Bruno Haible  <bruno@clisp.org>
82485         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
82486         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
82487         not only the first time.
82488         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
82489         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
82490         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
82491         is 1, not only the first time.
82493 2009-08-10  Bruno Haible  <bruno@clisp.org>
82495         Make it possible to use module 'gethostname' without module 'close'.
82496         * lib/unistd.in.h (close): Evoke a link error only if
82497         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
82498         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
82499         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
82500         * modules/unistd (Makefile.am): Substitute
82501         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
82502         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
82503         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
82504         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
82505         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
82506         * modules/sys_ioctl (Makefile.am): Substitute
82507         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
82508         * modules/socket (configure.ac): On native Windows, set
82509         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
82510         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
82511         Reported by Sam Steingold <sds@gnu.org>.
82513 2009-08-10  Bruno Haible  <bruno@clisp.org>
82515         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
82516         * modules/ioctl (configure.ac): Likewise.
82518 2009-08-10  Bruno Haible  <bruno@clisp.org>
82520         Avoid collision between gnulib wrapper and libintl wrapper.
82521         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
82522         already defined in intl/printf.c.
82523         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
82524         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
82526 2009-08-09  Bruno Haible  <bruno@clisp.org>
82528         Make <sys/select.h> really self-contained, also on Solaris 10.
82529         * lib/sys_select.in.h: Include <string.h>.
82530         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
82531         Solaris 10 problem.
82532         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
82533         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
82534         Reported by Jim Meyering.
82536 2009-08-09  Bruno Haible  <bruno@clisp.org>
82538         Avoid warnings from 'aclocal' that are due to a use of macro name
82539         AM_XGETTEXT_OPTION that is not defined in automake.
82540         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
82541         automake.
82542         * modules/error (configure.ac): Likewise.
82543         * modules/propername (configure.ac): Likewise.
82544         * modules/vasprintf (configure.ac): Likewise.
82545         * modules/verror (configure.ac): Likewise.
82546         * modules/xprintf (configure.ac): Likewise.
82547         * modules/xvasprintf (configure.ac): Likewise.
82549 2009-08-08  Bruno Haible  <bruno@clisp.org>
82551         Avoid compilation error in C++ mode.
82552         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
82553         Reported by Sam Steingold <sds@gnu.org>.
82555 2009-08-08  Bruno Haible  <bruno@clisp.org>
82557         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
82558         for the various Unix platforms.
82559         * doc/posix-headers/limits.texi: Update platforms list regarding
82560         HOST_NAME_MAX.
82561         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
82563 2009-08-07  Jim Meyering  <meyering@redhat.com>
82565         selinux-at: fix typo in a comment
82566         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
82567         Spotted by Paolo Bonzini.
82569         selinux-at: remove redundant m4 code, add documentation
82570         * modules/selinux-at (configure.ac): Remove redundant code.
82571         LIB_SELINUX is already set via the dependent module, selinux-h.
82572         (Include): Add quotes around selinux-at.h.
82573         * lib/selinux-at.h: Add documentation.
82574         Reported by Bruno Haible in
82575         http://marc.info/?l=gnulib-bug&m=124958988300749
82577 2009-08-07  Bruno Haible  <bruno@clisp.org>
82579         Avoid link error on MacOS X 10.3 and 10.4.
82580         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
82581         on non-ELF systems.
82582         * lib/argp-pv.c (argp_program_version): Likewise.
82583         Reported by Simon Josefsson.
82585 2009-08-07  Simon Josefsson  <simon@josefsson.org>
82587         * tests/test-version-etc.sh: Use $EXEEXT.
82589 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
82591         update-copyright: update documentation to point to maint.mk
82592         * build-aux/update-copyright: Here.
82594 2009-08-06  Jim Meyering  <meyering@redhat.com>
82596         maint.mk: support update-copyright-local
82597         * top/maint.mk (update-copyright-local): Define place-holder.
82598         (update-copyright): Depend on $(update-copyright-local).
82600 2009-08-06  Jim Meyering  <meyering@redhat.com>
82602         selinux-at: new module
82603         Initially written for coreutils, this module will soon be
82604         used by findutils, too.
82605         * MODULES.html.sh [Misc]: Add selinux-at.
82606         * lib/selinux-at.h: New file, from coreutils.
82607         * lib/selinux-at.c: Likewise.
82608         * modules/selinux-at: Likewise.
82609         (License): Change from LGPL to GPL, since it depends
82610         on the GPL'd openat module.
82612         doc: update README
82613         * README: Remove references to cogito.
82614         Remove cvs-repo-updating instructions from 2007.
82615         Don't imply that CVS is better if you have limited disk space.
82617 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
82619         update-copyright: support C-style comments
82620         * build-aux/update-copyright: Implement and document.
82621         * tests/test-update-copyright.sh: Test.
82623 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
82625         update-copyright: support omitted "(C)"
82626         * build-aux/update-copyright: Implement and document.  Also,
82627         allow variable whitespace before "(C)".
82628         * tests/test-update-copyright.sh: Test.
82630 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
82632         update-copyright: don't trip on non-FSF copyright statements
82633         * build-aux/update-copyright: Fix so that the first correctly
82634         formatted FSF copyright statement is recognized no matter what
82635         appears before it.  Update documentation.
82636         * tests/test-update-copyright.sh: Test that.
82638 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
82640         update-copyright: clean up code a little
82641         * build-aux/update-copyright: Append "_re" to the name of any
82642         variable holding a regular expression.
82643         Replace "old" and "new" with "stmt" in variable names.
82644         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
82645         handled correctly.
82646         Format code more consistently.
82648 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
82650         update-copyright-tests: improve portability
82651         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
82652         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
82654 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
82656         update-copyright: support @copyright{} and &copy;
82657         * build-aux/update-copyright: Implement and document.
82658         * tests/test-update-copyright.sh: Test.
82660 2009-08-04  Jim Meyering  <meyering@redhat.com>
82662         update-copyright-tests: correctly test EOL=\r\n handling
82663         * tests/test-update-copyright.sh: Put \r at the end of some lines
82664         for the dos-eol tests.  Based on a patch by Joel E. Denny.
82666         maint.mk: make update-copyright exclusion list more configurable
82667         * top/maint.mk (update-copyright): Default to excluding COPYING,
82668         but allow an override, in case someone does want to update that file.
82670         maint.mk: don't update copyright date in COPYING
82671         * top/maint.mk (update-copyright): Exclude COPYING.
82673         maint.mk: add a copyright-updating rule
82674         * top/maint.mk (update-copyright): New rule.
82675         Derived from coreutils/Makefile.am.
82677         update-copyright: rename some variables
82678         * build-aux/update-copyright: Rename a few variables for clarity.
82679         Tweak syntax.  List Joel E. Denny as coauthor.
82681 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
82683         update-copyright: fix bug for 2-digit last year and add tests
82684         * build-aux/update-copyright: Fix bug.
82685         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
82686         specified.
82687         * modules/update-copyright-tests: New
82688         * tests/test-update-copyright.sh: New.
82690 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
82692         update-copyright: handle leading tabs in line prefix
82693         * build-aux/update-copyright: Count leading tabs as 8 spaces
82694         when computing margin.  This helps with the formatting of
82695         ChangeLogs, for example.
82696         Fix documentation a little.
82698 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
82700         update-copyright: support EOL=\r\n
82701         * build-aux/update-copyright: Implement that.
82703 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
82705         update-copyright: automatically format copyright statements
82706         * build-aux/update-copyright: Implement that.
82707         Also, be a little more predictable and safer by always failing
82708         when the full copyright format is not perfectly recognized as an
82709         unbroken whole.  Discussed at
82710         <http://lists.gnu.org/r/bug-gnulib/2009-07/msg00131.html>.
82711         Rewrite documentation.
82713 2009-08-03  Bruno Haible  <bruno@clisp.org>
82715         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
82717 2009-08-02  Bruno Haible  <bruno@clisp.org>
82719         Tests for module 'uname'.
82720         * modules/uname-tests: New file.
82721         * tests/test-uname.c: New file.
82723         New module 'uname'.
82724         * lib/uname.c: New file.
82725         * m4/uname.m4: New file.
82726         * modules/uname: New file.
82727         * doc/posix-functions/uname.texi: Mention the new module.
82729 2009-08-02  Bruno Haible  <bruno@clisp.org>
82731         Tests for module 'sys_utsname'.
82732         * modules/sys_utsname-tests: New file.
82733         * tests/test-sys_utsname.c: New file.
82735         New module 'sys_utsname'.
82736         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
82737         * m4/sys_utsname_h.m4: New file.
82738         * modules/sys_utsname: New file.
82739         * doc/posix-headers/sys_utsname.texi: Mention the new module.
82741 2009-08-02  Bruno Haible  <bruno@clisp.org>
82743         Implicitly initialize the sockets library.
82744         * lib/gethostname.c: Include sockets.h.
82745         (rpl_gethostname): Invoke gl_sockets_startup.
82746         * lib/socket.c: Include sockets.h.
82747         (rpl_socket): Invoke gl_sockets_startup.
82748         * modules/gethostname (Depends-on): Add sockets.
82749         * modules/socket (Depends-on): Likewise.
82750         * tests/test-poll.c: Don't include sockets.h.
82751         (main): Don't invoke gl_sockets_startup.
82752         * tests/test-select.c: Don't include sockets.h.
82753         (main): Don't invoke gl_sockets_startup.
82755 2009-08-02  Bruno Haible  <bruno@clisp.org>
82757         Allow multiple calls to gl_sockets_startup.
82758         * lib/sockets.c (initialized_sockets_version): New variable.
82759         (gl_sockets_startup): Do nothing if already called for this or a higher
82760         version.
82761         (gl_sockets_cleanup): Reset initialized_sockets_version.
82763 2009-08-03  Simon Josefsson  <simon@josefsson.org>
82765         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
82766         different project/version.
82768 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
82769             Bruno Haible  <bruno@clisp.org>
82771         Tests for module 'pipe-filter-gi'.
82772         * modules/pipe-filter-gi-tests: New file.
82773         * tests/test-pipe-filter-gi1.sh: New file.
82774         * tests/test-pipe-filter-gi1.c: New file.
82775         * tests/test-pipe-filter-gi2.sh: New file.
82776         * tests/test-pipe-filter-gi2-main.c: New file.
82777         * tests/test-pipe-filter-gi2-child.c: New file.
82779         New module 'pipe-filter-gi'.
82780         * lib/pipe-filter-gi.c: New file.
82781         * modules/pipe-filter-gi: New file.
82783 2009-08-02  Bruno Haible  <bruno@clisp.org>
82784             Paolo Bonzini  <bonzini@gnu.org>
82786         Tests for module 'pipe-filter-ii'.
82787         * modules/pipe-filter-ii-tests: New file.
82788         * tests/test-pipe-filter-ii1.sh: New file.
82789         * tests/test-pipe-filter-ii1.c: New file.
82790         * tests/test-pipe-filter-ii2.sh: New file.
82791         * tests/test-pipe-filter-ii2-main.c: New file.
82792         * tests/test-pipe-filter-ii2-child.c: New file.
82794         New module 'pipe-filter-ii'.
82795         * lib/pipe-filter.h: New file.
82796         * lib/pipe-filter-ii.c: New file.
82797         * lib/pipe-filter-aux.h: New file.
82798         * modules/pipe-filter-ii: New file.
82800 2009-08-02  Simon Josefsson  <simon@josefsson.org>
82802         * lib/gc-libgcrypt.c: Change copyright to FSF.
82803         * lib/gc-gnulib.c: Likewise.
82805 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
82807         * lib/gethostname.c: Include limits.h.
82809 2009-08-02  Simon Josefsson  <simon@josefsson.org>
82810             Bruno Haible  <bruno@clisp.org>
82812         Ensure HOST_NAME_MAX as part of the gethostname module.
82813         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
82814         define also HOST_NAME_MAX.
82815         * tests/test-gethostname.c: Include <limits.h>.
82816         (main): Check also HOST_NAME_MAX.
82817         * doc/posix-headers/limits.texi: Document the mingw problem.
82819 2009-08-02  Bruno Haible  <bruno@clisp.org>
82821         * lib/gethostname.c (gethostname): Fix handling of large len argument.
82822         Add comments.
82824 2009-03-31  Simon Josefsson  <simon@josefsson.org>
82826         * lib/gethostname.c: Add Windows wrapper.
82827         * m4/gethostname.m4: Look for gethostname in -lws2_32.
82828         * modules/gethostname: Depend on sys_socket & errno, for also
82829         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
82830         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
82832 2009-07-31  Jim Meyering  <meyering@redhat.com>
82834         getloadavg: fix symbol name in comment
82835         * lib/getloadavg.c: Correct a typo I introduced when adding
82836         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
82837         Matt Kraai spotted the problem.
82839 2009-07-29  Matt Kraai  <mkraai@beckman.com>
82841         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
82842         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
82843         code also if ! defined N_NAME_POINTER.
82844         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
82845         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
82846         but the n_name member is a 12-byte array.
82848 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
82850         update-copyright: generalize comment handling
82851         * build-aux/update-copyright: Handle copyright statements
82852         within more comment styles.
82853         Document usage.
82854         Report any file with an external copyright holder or parse failure.
82856 2009-07-29  Jim Meyering  <meyering@redhat.com>
82858         mktime: correct setting of REPLACE_MKTIME
82859         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
82861         update-copyright: new module
82862         * modules/update-copyright: New file.
82863         * build-aux/update-copyright: New file.
82864         * MODULES.html.sh (maint+release support): Add update-copyright.
82866 2009-07-27  Bruno Haible  <bruno@clisp.org>
82868         Fix compilation error when <ctime> is used and mktime is replaced.
82869         * lib/time.in.h (mktime): New declaration.
82870         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
82871         REPLACE_MKTIME instead of defining mktime in config.h.
82872         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
82873         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
82874         Reported by Ross McFarland <rwmcfa1@neces.com>.
82876 2009-07-27  Bruno Haible  <bruno@clisp.org>
82878         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
82879         Reported by Matt Kraai <mkraai@beckman.com>.
82881 2009-07-25  Jim Meyering  <meyering@redhat.com>
82883         maint.mk: avoid warnings about missing files
82884         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
82885         diagnostic when .prev-version does not exist.
82886         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
82887         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
82888         nonexistent cfg.mk.
82889         Suggestions from Simon Josefsson.
82891 2009-07-25  Bruno Haible  <bruno@clisp.org>
82893         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
82894         defined as macros. Needed on QNX 6.4.1.
82895         Reported by Matt Kraai <mkraai@beckman.com>.
82897 2009-07-23  Jim Meyering  <meyering@redhat.com>
82899         maint.mk: invoke "make dist" with a working value of XZ_OPT
82900         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
82902 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
82904         Make fseeko.c compile on QNX.
82905         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
82907 2009-07-22  Peter Simons  <simons@cryp.to>
82909         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
82910         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
82911         * lib/md4.h: Likewise.
82912         * lib/md5.h: Likewise.
82913         * lib/sha1.h: Likewise.
82914         * lib/sha256.h: Likewise.
82915         * lib/sha512.h: Likewise.
82917         tests-sha1: don't assign literal string to 'char *' variable
82918         * tests/test-sha1.c (main): Declare locals with "const" to match
82919         attributes of the right hand side.
82921 2009-07-21  Eric Blake  <ebb9@byu.net>
82923         dup2: fix more mingw problems
82924         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
82925         fd to itself.
82926         * doc/posix-functions/dup2.texi (dup2): Document the bug.
82927         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
82928         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
82929         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
82930         care of mingw bugs.
82932 2009-07-21  Jim Meyering  <meyering@redhat.com>
82934         vc-list-files: avoid failure when /bin/sh is dash
82935         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
82936         On some Debian based systems, /bin/sh is a symlink to dash, and running
82937         this command would omit the "/" following each 'tests' prefix:
82938           dash -x build-aux/vc-list-files -C . tests
82939         That is because bash and dash work differently:
82940           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
82941           bash ok
82942           dash odd
82944 2009-07-21  Eric Blake  <ebb9@byu.net>
82946         dup2-tests: test previous patch
82947         * modules/dup2-tests: New file.
82948         * tests/test-dup2.c: Likewise.
82949         * tests/test-open.c (main): Avoid unspecified behavior.
82950         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
82951         test.
82953         dup2: work around mingw and cygwin 1.5 bug
82954         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
82955         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
82956         * modules/unistd (Makefile.am): Substitute it.
82957         * lib/unistd.in.h (dup2): Declare the replacement.
82958         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
82959         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
82960         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
82961         * modules/execute (Depends-on): Add dup2.
82962         * modules/fseterr (Depends-on): Likewise.
82963         * modules/pipe (Depends-on): Likewise.
82964         * modules/posix_spawn-internal (Depends-on): Likewise.
82966 2009-07-21  Bruno Haible  <bruno@clisp.org>
82968         * modules/.gitattributes: New file.
82970 2009-07-20  Bruno Haible  <bruno@clisp.org>
82972         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
82973         (main): Use it.
82975 2009-07-20  Eric Blake  <ebb9@byu.net>
82977         test-pipe: make a bit more robust.
82978         * tests/test-pipe.c (myerr): Allow error messages regardless of
82979         what we do to stderr.
82980         (test_pipe): Rearrange to avoid deadlock.
82981         (child_main): Try a larger read, to ensure we avoided deadlock.
82982         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
82983         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
82984         if misused.
82986 2009-07-19  Jim Meyering  <meyering@redhat.com>
82988         fts: avoid false-positive cycle-detection
82989         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
82990         for each new command line argument.
82992 2009-07-19  Bruno Haible  <bruno@clisp.org>
82994         Fix build error on mingw with the modules sys_select and unistd.
82995         * modules/acl-tests (Depends-on): Add close.
82996         * modules/binary-io-tests (Depends-on): Likewise.
82997         * modules/closein-tests (Depends-on): Likewise.
82998         * modules/flock-tests (Depends-on): Likewise.
82999         * modules/fsync-tests (Depends-on): Likewise.
83000         * modules/lseek-tests (Depends-on): Likewise.
83001         * modules/pipe-tests (Depends-on): Likewise.
83002         * modules/posix_spawn-tests (Depends-on): Likewise.
83003         * modules/posix_spawnp-tests (Depends-on): Likewise.
83004         * modules/stat-time-tests (Depends-on): Likewise.
83005         * modules/yesno-tests (Depends-on): Likewise.
83007 2009-07-19  Bruno Haible  <bruno@clisp.org>
83009         Unify conditionals.
83010         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
83011         macros, not at the compiler macros.
83012         * lib/pipe.c: Likewise.
83013         * lib/execute.c: Likewise.
83014         * lib/spawni.c: Likewise.
83016 2009-07-19  Bruno Haible  <bruno@clisp.org>
83018         Fix handling of closed stdin/stdout/stderr on mingw.
83019         * lib/w32spawn.h: Include unistd.h.
83020         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
83021         file descriptor with O_NOINHERIT flag.
83022         (fd_safer_noinherit): New function, based on fd-safer.c.
83023         (dup_safer_noinherit): New function, based on dup-safer.c.
83024         (undup_safer_noinherit): New function.
83025         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
83026         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
83027         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
83028         instead of fd_safer.
83029         * tests/test-pipe.c: Include <windows.h>.
83030         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
83031         result.
83033         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
83034         from main.
83035         (test_pipe): Pass an extra argument for disambiguation.
83036         (main): Invoke parent_main or child_main.
83038         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
83039         consistently.
83041 2009-07-18  Eric Blake  <ebb9@byu.net>
83043         test-pipe: fix mingw build
83044         * tests/test-pipe.c (main): Avoid fcntl on mingw.
83046 2009-07-18  Bruno Haible  <bruno@clisp.org>
83048         * modules/pipe-tests (Makefile.am): Fix typo.
83050 2009-07-18  Eric Blake  <ebb9@byu.net>
83052         error: fix mingw build
83053         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
83054         Reported by Bruno Haible.
83056         error: avoid undefined use of stdout
83057         * lib/error.c (error, error_at_line): Check that fd 1 is open
83058         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
83059         is handling faults and the close_stdout module wants to report the
83060         detection of closed stdout as an error.
83062 2009-07-17  Eric Blake  <ebb9@byu.net>
83064         pipe: be robust in face of closed fds
83065         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
83066         should cause child to misbehave.
83067         * modules/pipe-tests: New module.
83068         * tests/test-pipe.c: New file.
83069         * tests/test-pipe.sh: New file.
83070         Reported by Akim Demaille.
83072 2009-07-14  Bruno Haible  <bruno@clisp.org>
83074         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
83075         Reported by anonymous kc.
83077 2009-07-07  Jim Meyering  <meyering@redhat.com>
83079         maint.mk: don't look for translatable strings in *.m4 or *.mk
83080         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
83081         when searching for translatable strings.
83083 2009-07-05  Jim Meyering  <meyering@redhat.com>
83085         remove superfluous parentheses in STREQ definition
83086         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
83087         * lib/getugroups.c (STREQ): Likewise.
83088         * lib/fnmatch.c (STREQ): Likewise.
83089         Spotted by Bruno Haible.
83091 2009-07-04  Jim Meyering  <meyering@redhat.com>
83093         argv-iter: new module
83094         * MODULES.html.sh: Add argv-iter.
83095         * lib/argv-iter.c, lib/argv-iter.h: New files.
83096         * modules/argv-iter: New file.
83097         * modules/argv-iter-tests: New file.
83098         * tests/test-argv-iter.c: Test it.
83100 2009-07-04  Bruno Haible  <bruno@clisp.org>
83102         Fix assertion.
83103         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
83104         contains more exact copies of a given entry than file2, leave the extra
83105         copies unpaired rather than aborting.
83106         Reported by Eric Blake.
83108 2009-07-02  Bruno Haible  <bruno@clisp.org>
83110         Speedup git-merge-changelog for git cherry-pick.
83111         * lib/git-merge-changelog.c (struct entries_mapping): New type.
83112         (entries_mapping_get): New function, extracted from compute_mapping.
83113         (entries_mapping_reverse_get): New function.
83114         (compute_mapping): Add a 'full' argument. Return the result in a
83115         'struct entries_mapping'.
83116         (main): Update. Access the mappings through entries_mapping_get.
83117         Reported by Eric Blake.
83119 2009-07-02  Bruno Haible  <bruno@clisp.org>
83121         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
83122         best_i.
83124 2009-07-02  Bruno Haible  <bruno@clisp.org>
83126         Speed up approximate search for matching ChangeLog entries.
83127         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
83128         argument. Call fstrcmp_bounded instead of fstrcmp.
83129         (compute_mapping, try_split_merged_entry, main): Update callers.
83131 2009-07-02  Bruno Haible  <bruno@clisp.org>
83133         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
83135 2009-06-30  Bruno Haible  <bruno@clisp.org>
83137         Reduce the number of uc_is_cased calls.
83138         * lib/unicase.h (casing_suffix_context_t): Add
83139         'first_char_except_ignorable' field.
83140         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
83141         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
83142         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
83143         Update initializer.
83144         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
83145         case-ignorable characters.
83146         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
83147         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
83148         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
83149         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
83150         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
83152 2009-06-30  Bruno Haible  <bruno@clisp.org>
83154         Tests for module 'unicase/ignorable'.
83155         * modules/unicase/ignorable-tests: New file.
83156         * tests/unicase/test-ignorable.c: New file, generated by
83157         gen-uni-tables.
83159         Tests for module 'unicase/cased'.
83160         * modules/unicase/cased-tests: New file.
83161         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
83162         * tests/unicase/test-predicate-part1.h: New file, derived from
83163         tests/unictype/test-predicate-part1.h.
83164         * tests/unicase/test-predicate-part2.h: New file, same as
83165         tests/unictype/test-predicate-part2.h.
83167         Fix evaluation of "Before C" condition of FINAL_SIGMA.
83168         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
83169         (output_casing_properties): New function.
83170         (main): Call it.
83171         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
83172         * lib/unicase/cased.c: Include unictype/bitmap.h.
83173         (uc_is_cased): Define through a bitmap lookup.
83174         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
83175         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
83176         (uc_is_case_ignorable): Define through a bitmap lookup.
83177         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
83178         lib/unictype/bitmap.h.
83179         (Depends-on): Add inline. Clean up.
83180         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
83181         lib/unictype/bitmap.h.
83182         (Depends-on): Add inline. Clean up.
83183         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
83184         recognition.
83185         * tests/unicase/test-u16-tolower.c (main): Likewise.
83186         * tests/unicase/test-u32-tolower.c (main): Likewise.
83188 2009-06-30  Bruno Haible  <bruno@clisp.org>
83190         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
83191         * lib/unicase/u16-casemap.c: Likewise.
83192         * lib/unicase/u32-casemap.c: Likewise.
83194 2009-06-29  Bruno Haible  <bruno@clisp.org>
83196         Define u32_casefold as a wrapper around u32_ct_casefold.
83197         * lib/unicase/u32-casefold.c: Update.
83198         * modules/unicase/u32-casefold (Depends-on): Add
83199         unicase/u32-ct-casefold, unicase/empty-prefix-context,
83200         unicase/empty-suffix-context. Clean up.
83202         Define u16_casefold as a wrapper around u16_ct_casefold.
83203         * lib/unicase/u16-casefold.c: Update.
83204         * modules/unicase/u16-casefold (Depends-on): Add
83205         unicase/u16-ct-casefold, unicase/empty-prefix-context,
83206         unicase/empty-suffix-context. Clean up.
83208         Define u8_casefold as a wrapper around u8_ct_casefold.
83209         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
83210         * lib/unicase/u8-casefold.c: Update.
83211         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
83212         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
83214         Define u32_totitle as a wrapper around u32_ct_totitle.
83215         * lib/unicase/u32-totitle.c: Update.
83216         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
83217         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
83219         Define u16_totitle as a wrapper around u16_ct_totitle.
83220         * lib/unicase/u16-totitle.c: Update.
83221         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
83222         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
83224         Define u8_totitle as a wrapper around u8_ct_totitle.
83225         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
83226         functions.
83227         (FUNC): Delegate to U_CT_TOTITLE.
83228         * lib/unicase/u8-totitle.c: Update.
83229         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
83230         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
83232         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
83233         invocation.
83234         * modules/unicase/u32-tolower (Depends-on): Add
83235         unicase/empty-prefix-context, unicase/empty-suffix-context.
83237         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
83238         invocation.
83239         * modules/unicase/u16-tolower (Depends-on): Add
83240         unicase/empty-prefix-context, unicase/empty-suffix-context.
83242         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
83243         * modules/unicase/u8-tolower (Depends-on): Add
83244         unicase/empty-prefix-context, unicase/empty-suffix-context.
83246         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
83247         invocation.
83248         * modules/unicase/u32-toupper (Depends-on): Add
83249         unicase/empty-prefix-context, unicase/empty-suffix-context.
83251         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
83252         invocation.
83253         * modules/unicase/u16-toupper (Depends-on): Add
83254         unicase/empty-prefix-context, unicase/empty-suffix-context.
83256         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
83257         * modules/unicase/u8-toupper (Depends-on): Add
83258         unicase/empty-prefix-context, unicase/empty-suffix-context.
83260         New module 'unicase/u32-ct-casefold'.
83261         * lib/unicase/u32-ct-casefold.c: New file.
83262         * modules/unicase/u32-ct-casefold: New file.
83264         New module 'unicase/u16-ct-casefold'.
83265         * lib/unicase/u16-ct-casefold.c: New file.
83266         * modules/unicase/u16-ct-casefold: New file.
83268         New module 'unicase/u8-ct-casefold'.
83269         * lib/unicase/u8-ct-casefold.c: New file.
83270         * lib/unicase/u-ct-casefold.h: New file, derived from
83271         lib/unicase/u-casefold.h.
83272         * modules/unicase/u8-ct-casefold: New file.
83274         New module 'unicase/u32-ct-totitle'.
83275         * lib/unicase/u32-ct-totitle.c: New file.
83276         * modules/unicase/u32-ct-totitle: New file.
83278         New module 'unicase/u16-ct-totitle'.
83279         * lib/unicase/u16-ct-totitle.c: New file.
83280         * modules/unicase/u16-ct-totitle: New file.
83282         New module 'unicase/u8-ct-totitle'.
83283         * lib/unicase/u8-ct-totitle.c: New file.
83284         * lib/unicase/u-ct-totitle.h: New file, derived from
83285         lib/unicase/u-totitle.h.
83286         * modules/unicase/u8-ct-totitle: New file.
83288         New module 'unicase/u32-ct-tolower'.
83289         * lib/unicase/u32-ct-tolower.c: New file.
83290         * modules/unicase/u32-ct-tolower: New file.
83292         New module 'unicase/u16-ct-tolower'.
83293         * lib/unicase/u16-ct-tolower.c: New file.
83294         * modules/unicase/u16-ct-tolower: New file.
83296         New module 'unicase/u8-ct-tolower'.
83297         * lib/unicase/u8-ct-tolower.c: New file.
83298         * modules/unicase/u8-ct-tolower: New file.
83300         New module 'unicase/u32-ct-toupper'.
83301         * lib/unicase/u32-ct-toupper.c: New file.
83302         * modules/unicase/u32-ct-toupper: New file.
83304         New module 'unicase/u16-ct-toupper'.
83305         * lib/unicase/u16-ct-toupper.c: New file.
83306         * modules/unicase/u16-ct-toupper: New file.
83308         New module 'unicase/u8-ct-toupper'.
83309         * lib/unicase/u8-ct-toupper.c: New file.
83310         * modules/unicase/u8-ct-toupper: New file.
83312         Add context arguments to u*_casemap functions.
83313         * lib/unicase/unicasemap.h: Include unicase.h.
83314         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
83315         suffix_context arguments.
83316         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
83317         functions.
83318         (FUNC): Add prefix_context and suffix_context arguments. Use
83319         uc_is_cased and uc_is_case_ignorable.
83320         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
83321         * lib/unicase/u16-casemap.c: Likewise.
83322         * lib/unicase/u32-casemap.c: Likewise.
83323         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
83324         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
83325         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
83326         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
83327         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
83328         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
83330         New module 'unicase/u32-suffix-context'.
83331         * lib/unicase/u32-suffix-context.c: New file.
83332         * modules/unicase/u32-suffix-context: New file.
83334         New module 'unicase/u16-suffix-context'.
83335         * lib/unicase/u16-suffix-context.c: New file.
83336         * modules/unicase/u16-suffix-context: New file.
83338         New module 'unicase/u8-suffix-context'.
83339         * lib/unicase/u8-suffix-context.c: New file.
83340         * lib/unicase/u-suffix-context.h: New file.
83341         * modules/unicase/u8-suffix-context: New file.
83343         New module 'unicase/empty-suffix-context'.
83344         * lib/unicase/empty-suffix-context.c: New file.
83345         * modules/unicase/empty-suffix-context: New file.
83347         New module 'unicase/u32-prefix-context'.
83348         * lib/unicase/u32-prefix-context.c: New file.
83349         * modules/unicase/u32-prefix-context: New file.
83351         New module 'unicase/u16-prefix-context'.
83352         * lib/unicase/u16-prefix-context.c: New file.
83353         * modules/unicase/u16-prefix-context: New file.
83355         New module 'unicase/u8-prefix-context'.
83356         * lib/unicase/u8-prefix-context.c: New file.
83357         * lib/unicase/u-prefix-context.h: New file.
83358         * lib/unicase/context.h: New file.
83359         * modules/unicase/u8-prefix-context: New file.
83361         New module 'unicase/empty-prefix-context'.
83362         * lib/unicase/empty-prefix-context.c: New file.
83363         * modules/unicase/empty-prefix-context: New file.
83365         New module 'unicase/ignorable'.
83366         * lib/unicase/ignorable.c: New file.
83367         * modules/unicase/ignorable: New file.
83369         New module 'unicase/cased'.
83370         * lib/unicase/caseprop.h: New file.
83371         * lib/unicase/cased.c: New file.
83372         * modules/unicase/cased: New file.
83374         New functions for case mapping of substrings.
83375         * lib/unicase.h (casing_prefix_context_t): New type.
83376         (unicase_empty_prefix_context): New variable.
83377         (u8_casing_prefix_context, u16_casing_prefix_context,
83378         u32_casing_prefix_context, u8_casing_prefixes_context,
83379         u16_casing_prefixes_context, u32_casing_prefixes_context): New
83380         declarations.
83381         (casing_suffix_context_t): New type.
83382         (unicase_empty_suffix_context): New variable.
83383         (u8_casing_suffix_context, u16_casing_suffix_context,
83384         u32_casing_suffix_context, u8_casing_suffixes_context,
83385         u16_casing_suffixes_context, u32_casing_suffixes_context,
83386         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
83387         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
83388         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
83389         declarations.
83391 2009-06-28  Jim Meyering  <meyering@redhat.com>
83393         boostrap: indent only with spaces
83394         * build-aux/bootstrap: Indent only with spaces, never TABs.
83396         bootstrap: split long lines
83397         * build-aux/bootstrap: Keep line length < 80.
83399         bootstrap: sync from coreutils
83400         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
83401         just as autoreconf does.  Verify a list of prerequisite
83402         package-name,version-number pairs if defined in bootstrap.conf.
83403         Refer to README-prereq, if prerequisites are not satisfied.
83405 2009-06-27  Eric Blake  <ebb9@byu.net>
83407         tests: add test for bogus NULL definition
83408         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
83409         * tests/test-stdlib.c: Likewise.
83410         * tests/test-string.c: Likewise.
83411         * tests/test-locale.c: Likewise.
83412         * tests/test-unistd.c: Likewise.
83413         * modules/stdio-tests (Depends-on): Add verify.
83414         * modules/stdlib-tests (Depends-on): Likewise.
83415         * modules/string-tests (Depends-on): Likewise.
83416         * modules/locale-tests (Depends-on): Likewise.
83417         * modules/unistd-tests (Depends-on): Likewise.
83419 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
83421         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
83422         self-explaining comment.
83423         * m4/selinux-selinux-h: Update serial.
83424         (gl_LIBSELINUX): New macro, adding a warning for missing development
83425         packages to code extracted from...
83426         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
83427         Add warning for missing development packages here, too.
83429 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
83431         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
83433 2009-06-25  Eric Blake  <ebb9@byu.net>
83435         version-etc: fix regression
83436         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
83437         gcc.
83438         (version_etc): Use it, to catch bugs with trailing NULL.
83439         * lib/version-etc.c (version_etc_arn): Delete unused argument.
83440         (version_etc_va): Fix logic bug.
83441         * modules/version-etc-tests: Add test.
83442         * tests/test-version-etc.c: New file.
83443         * tests/test-version-etc.sh: Likewise.
83445 2009-06-25  Sam Steingold  <sds@gnu.org>
83447         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
83448         mbtowc declaration.
83450 2009-06-25  Eric Blake  <ebb9@byu.net>
83452         fpurge: migrate into <stdio.h>
83453         * lib/fpurge.h: Delete...
83454         * lib/stdio.in.h (fpurge): ...and declare here, instead.
83455         * lib/fpurge.c (fpurge): Change declaring header.
83456         * modules/fpurge (Files): Drop deleted file.
83457         (Depends-on): Add stdio.
83458         (configure.ac): Set witness.
83459         * modules/stdio (Makefile.am): Support fpurge macros.
83460         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
83461         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
83462         * lib/fflush.c: Update client.
83463         * tests/test-fpurge.c: Likewise.
83464         * NEWS: Mention the change.
83466 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
83468         * lib/argp-version-etc.c (program_authors): Add const
83469         qualifier.
83470         * lib/version-etc.c: Fix typos in the comments.
83471         * modules/argp-version-etc: Depends on version-etc.
83473 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
83475         argp-version-etc: new module.
83477         * lib/argp-version-etc.c: New file.
83478         * lib/argp-version-etc.h: New file.
83479         * modules/argp-version-etc: New file.
83480         * modules/argp-version-etc-tests: New file.
83481         * tests/test-argp-version-etc.c: New test.
83482         * tests/test-argp-version-etc-1.sh: New test.
83484 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
83486         Provide additional interfaces and documentation for version-etc
83487         module.
83489         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
83490         interfaces.
83491         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
83492         prototypes.
83494 2009-06-24  Bruno Haible  <bruno@clisp.org>
83496         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
83497         HAVE_LIB${NAME} macro.
83498         Reported by Sam Steingold <sds@gnu.org>.
83500 2009-06-23  Simon Josefsson  <simon@josefsson.org>
83502         * modules/hash-tests (test_hash_LDADD): Link to libintl when
83503         needed.
83505 2009-06-21  Bruno Haible  <bruno@clisp.org>
83507         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
83508         work.
83509         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
83510         together with LIB${NAME}, LTLIB${NAME}.
83511         Reported by Sam Steingold <sds@gnu.org>.
83513 2009-06-20  Jim Meyering  <meyering@redhat.com>
83515         tests: make sc_require_test_exit_idiom more generic
83516         * top/maint.mk (Exit_witness_file): New overridable variable.
83517         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
83518         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
83520 2009-06-19  Jim Meyering  <meyering@redhat.com>
83522         hash: reverse order of src/dst parameters in an internal interface
83523         * lib/hash.c (transfer_entries): Reverse order of parameters to
83524         put DST before SRC.  Adjust callers.
83526         tests: test-hash: avoid wholesale duplication
83527         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
83528         Instead, use a loop and add a single conditional.
83530         tests: test-hash: allow seed selection via a command line argument
83531         * tests/test-hash.c (get_seed): New function.
83532         (main): Use it.
83534 2009-06-19  Eric Blake  <ebb9@byu.net>
83536         hash: avoid memory leak on allocation failure
83537         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
83538         failure.  Factor repeated algorithm...
83539         (transfer_entries): ...into new helper routine.
83540         (hash_delete): React to hash_rehash return value.
83542         hash: reduce memory pressure in hash_rehash no-op case
83543         * lib/hash.c (next_prime): Avoid overflow.
83544         (hash_initialize): Factor bucket size computation...
83545         (compute_bucket_size): ...into new helper function.
83546         (hash_rehash): Use new function and open coding to reduce memory
83547         pressure, and avoid a memory leak in USE_OBSTACK code.
83548         Reported by Jim Meyering.
83550 2009-06-18  Eric Blake  <ebb9@byu.net>
83552         hash: make rotation more obvious
83553         * modules/hash (Depends-on): Add bitrotate and stdint.
83554         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
83555         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
83556         (SIZE_MAX): Rely on headers for definition.
83557         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
83558         (raw_hasher): Use rotr_sz.
83559         Suggested by Jim Meyering.
83561         hash: fix memory leak in last patch
83562         * lib/hash.c (hash_rehash): Avoid memory leak.
83564         hash: avoid no-op rehashing
83565         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
83567         hash: provide default callback functions
83568         * lib/hash.c (raw_hasher, raw_comparator): New functions.
83569         (hash_initialize): Use them as defaults.
83570         * tests/test-hash.c (main): Test this.
83572         hash: minor optimization
83573         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
83574         when possible.
83575         (hash_initialize): Document this promise.
83576         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
83577         * tests/test-hash.c (hash_compare_strings): Test this.
83579 2009-06-18  Bruno Haible  <bruno@clisp.org>
83581         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
83582         going to be replaced anyway.
83584 2009-06-18  Bruno Haible  <bruno@clisp.org>
83586         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
83587         in one place.
83588         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
83589         be replaced anyway.
83591 2009-06-18  Eric Blake  <ebb9@byu.net>
83593         hash: check for resize before insertion
83594         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
83595         threshold before insertion, so that a pathological hash_rehash
83596         that fills every bucket can still trigger another rehash.
83598 2009-06-18  Jim Meyering  <meyering@redhat.com>
83600         hash-tests: add a loop around the small tests
83601         * tests/test-hash.c (main): Repeat small tests with selected
83602         small initial table sizes.
83604 2009-06-17  Eric Blake  <ebb9@byu.net>
83606         hash: minor cleanups
83607         * lib/hash.h (hash_entry): Make opaque, by moving...
83608         * lib/hash.c (hash_entry): ...here.
83609         (hash_insert): Clarify restrictions on what can be inserted.
83610         (hash_get_next): Clarify when it is safe to remove an element
83611         during traversal.
83612         (check_tuning): Skip verification when tuning is known safe.
83613         (hash_initialize): Clarify restrictions on tuning.
83615 2009-06-17  Jim Meyering  <jim@meyering.net>
83616         and Eric Blake  <ebb9@byu.net>
83618         hash-tests: new module
83619         * modules/hash-tests: New file.
83620         * tests/test-hash.c: New file.
83622 2009-06-17  Eric Blake  <ebb9@byu.net>
83624         strstr-simple: document new module
83625         * MODULES.html.sh: Document new module.
83627         strstr, strcasestr: replace on platforms with broken memchr
83628         * modules/strstr: Split into...
83629         * modules/strstr-simple: ...new module that does not care about
83630         performance, but does care about glibc bug.
83631         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
83632         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
83633         if platform memchr is broken, per Debian bug 521737.
83634         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
83635         memchr.
83636         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
83637         * doc/posix-functions/strstr.texi (strstr): Document the fix.
83638         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
83639         * modules/mountlist (Depends-on): Add strstr-simple.
83640         * modules/gen-uni-tables (Depends-on): Likewise.
83641         * modules/argz (Depends-on): Add strstr.
83643 2009-06-17  Bruno Haible  <bruno@clisp.org>
83645         * modules/posix_spawn-internal (Depends-on): Add errno.
83647 2009-06-17  Bruno Haible  <bruno@clisp.org>
83649         Define missing ESTALE on Interix 3.5.
83650         * lib/errno.in.h (ESTALE): Assign a value if missing.
83651         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
83652         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
83653         missing.
83654         * doc/posix-headers/errno.texi: Mention the Interix bug.
83655         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
83657 2009-06-15  Eric Blake  <ebb9@byu.net>
83659         memchr, memchr2: add valgrind exception
83660         * lib/memchr.valgrind: New file.
83661         * lib/memchr2.valgrind: New file.
83662         * modules/memchr (Files): Distribute valgrind file.
83663         * modules/memchr2 (Files): Likewise.
83665         docs: memchr is no longer obsolete
83666         * MODULES.html.sh: Move memchr from obsolete to string.h section.
83667         * lib/string.in.h (memchr): Simplify logic.
83669 2009-06-14  Jim Meyering  <meyering@redhat.com>
83671         link-follow: fix the "checking..." message to not mention trailing slash
83672         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
83673         never considered trailing slashes.
83675 2009-06-14  Bruno Haible  <bruno@clisp.org>
83677         * m4/memchr.m4: Mention also the bug on IA-64.
83678         * doc/posix-functions/memchr.texi: Likewise.
83680 2009-06-12  Eric Blake  <ebb9@byu.net>
83682         memchr: detect broken x86_64 and alpha implementations
83683         * modules/memchr-tests (Depends-on): Move mmap detection...
83684         * modules/memchr (Depends-on): ...here.
83685         (configure.ac): Set indicator.
83686         * lib/string.in.h (memchr): Declare replacement.
83687         * modules/string (Makefile.am): Trigger replacement.
83688         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
83689         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
83690         bugs.
83691         * doc/posix-functions/memchr.texi (memchr): Document the bug.
83692         * modules/getpagesize (License): Relax license.
83694 2009-06-11  Bruno Haible  <bruno@clisp.org>
83696         * lib/idpriv.h: Add more references.
83698 2009-06-08  Bruno Haible  <bruno@clisp.org>
83700         Tests for module 'idpriv-droptemp'.
83701         * modules/idpriv-droptemp-tests: New file.
83702         * tests/test-idpriv-droptemp.sh: New file.
83703         * tests/test-idpriv-droptemp.su.sh: New file.
83704         * tests/test-idpriv-droptemp.c: New file.
83706         New module 'idpriv-droptemp'.
83707         * lib/idpriv-droptemp.c: New file.
83708         * modules/idpriv-droptemp: New file.
83710 2009-06-08  Bruno Haible  <bruno@clisp.org>
83712         Tests for module 'idpriv-drop'.
83713         * modules/idpriv-drop-tests: New file.
83714         * tests/test-idpriv-drop.sh: New file.
83715         * tests/test-idpriv-drop.su.sh: New file.
83716         * tests/test-idpriv-drop.c: New file.
83718         New module 'idpriv-drop'.
83719         * lib/idpriv.h: New file.
83720         * lib-idpriv-drop.c: New file.
83721         * m4/idpriv.m4: New file.
83722         * modules/idpriv-drop: New file.
83724 2009-06-08  Bruno Haible  <bruno@clisp.org>
83726         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
83727         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
83728         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
83729         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
83730         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
83731         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
83732         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
83734 2009-06-08  Eric Blake  <ebb9@byu.net>
83736         test-strstr: use memory fence, when possible
83737         * tests/test-strstr.c (main): Use memory fence, in order to be
83738         more likely to trigger Debian bug 521737.
83739         * modules/strstr-tests (Files): Pull in additional files.
83741         memchr: no longer obsolete, for wider field testing
83742         * modules/memchr (Status, Notice): Delete, this module is no
83743         longer obsolete.
83744         * modules/vasnprintf (Depends-on): Add memchr.
83746 2009-06-07  Jim Meyering  <meyering@redhat.com>
83748         hash: declare some functions with the warn_unused_result attribute
83749         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
83751 2009-06-07  Bruno Haible  <bruno@clisp.org>
83753         * tests/test-alignof.c: Don't test int64_t if it does not exist.
83754         Reported by Eric Blake.
83756 2009-06-06  Eric Blake  <ebb9@byu.net>
83758         test-alignof: fix typo with long double
83759         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
83760         compiler error.
83762 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
83764         Escape non-texinfo { and }s.
83765         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
83766         markup error.
83768 2009-06-04  Jim Meyering  <meyering@redhat.com>
83770         gitlog-to-changelog: don't infloop on an empty commit log
83771         * build-aux/gitlog-to-changelog: Warn about an empty log message.
83772         Reported by Boris Petersen <transacid@centerim.org>.
83774 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
83776         version-etc: extend for packagers
83777         Add three new configure options, intended for packagers:
83778           --with-packager="packager name"
83779           --with-packager-version="packager-specific version"
83780           --with-packager-bug-reports="packager bug reporting"
83781         An example with coreutils:
83782           $ ./configure \
83783             --with-packager=Gentoo \
83784             --with-packager-bug-report=http://bugs.gentoo.org/ \
83785             --with-packager-version="patchset 1.6"
83786           $ ./src/ls --version | head -n2
83787           ls (GNU coreutils) 7.1-dirty
83788           Packaged by Gentoo (patchset 1.6)
83789         Note that the bug reporting info via --help doesn't show up because
83790         coreutils uses its own custom emit_bug_reporting_address() implementation
83791         in src/system.h.  If it didn't, it'd look like:
83792           $ ./src/ls --help | tail -n4
83793           Report bugs to <bug-coreutils@gnu.org>.
83794           Report Gentoo bugs to <http://bugs.gentoo.org/>.
83795           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
83796           General help using GNU software: <http://www.gnu.org/gethelp/>.
83797         * lib/version-etc.c: Print new information, if provided.
83798         * m4/version-etc.m4: New file.
83799         * modules/version-etc (Files): Add m4/version-etc.m4.
83800         (configure.ac): Add gl_VERSION_ETC.
83802 2009-05-31  Bruno Haible  <bruno@clisp.org>
83804         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
83805         and 'int64_t'.
83806         * modules/alignof-tests (Dependencies): Add stdint.
83807         Reported by Eric Blake.
83809 2009-05-31  Bruno Haible  <bruno@clisp.org>
83811         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
83812         restriction due to compiler bugs.
83813         Reported by Eric Blake.
83815 2009-05-31  Simon Josefsson  <simon@josefsson.org>
83816             Bruno Haible  <bruno@clisp.org>
83818         Fix test-alignof failure.
83819         * lib/alignof.h (alignof_slot): New macro.
83820         (alignof_type): New macro, with the same semantics as the previous
83821         'alignof'.
83822         (alignof): Alias to alignof_slot.
83823         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
83824         check that the results are usable as constant expressions.
83826 2009-05-31  Bruno Haible  <bruno@clisp.org>
83828         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
83829         * tests/test-memchr.c (main): Check that memchr does not read past the
83830         first occurrence of the byte.
83831         * tests/test-strstr.c (main): Update comment.
83832         Suggested by Eric Blake.
83834 2009-05-30  Bruno Haible  <bruno@clisp.org>
83836         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
83837         detail how to use dumpbin.
83838         Reported by David Byron <dbyron@dbyron.com>.
83840 2009-06-02  Simon Josefsson  <simon@josefsson.org>
83842         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
83844 2009-06-02  Simon Josefsson  <simon@josefsson.org>
83846         * m4/manywarnings.m4: Add GCC 4.4 warnings.
83848 2009-05-28  Bruno Haible  <bruno@clisp.org>
83850         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
83851         build-aux/ files.
83853 2009-05-28  Simon Josefsson  <simon@josefsson.org>
83855         * gnulib-tool (func_import): Transform license on build-aux/ files too.
83857 2009-05-27  Simon Josefsson  <simon@josefsson.org>
83859         * gnulib-tool (sed_transform_main_lib_file)
83860         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
83861         regexps.
83863 2009-05-26  Simon Josefsson  <simon@josefsson.org>
83865         * tests/test-strstr.c: Add another self-test.
83866         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
83867         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
83869 2009-05-23  Bruno Haible  <bruno@clisp.org>
83871         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
83872         change.
83874 2009-05-21  Bruno Haible  <bruno@clisp.org>
83876         Simplify use of mode_t varargs.
83877         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
83878         uses 'mode_t' or 'int'.
83879         * lib/openat.c (openat): Likewise.
83880         * lib/open-safer.c (open_safer): Likewise.
83881         * m4/mode_t.m4: New file.
83882         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
83883         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
83884         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
83885         * modules/open (Files): Add m4/mode_t.m4.
83886         * modules/openat (Files): Likewise.
83887         * modules/fcntl-safer (Files): Likewise.
83888         Suggested by Eric Blake.
83890 2009-05-21  Pádraig Brady  <P@draigbrady.com>
83892         * doc/glibc-functions/fallocate.texi: New file.
83893         * doc/gnulib.texi: Include it.
83895 2009-05-21  Eric Blake  <ebb9@byu.net>
83896             Bruno Haible  <bruno@clisp.org>
83898         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
83899         invocations.
83900         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
83902 2009-05-21  Eric Blake  <ebb9@byu.net>
83903             Bruno Haible  <bruno@clisp.org>
83905         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
83906         include_next. Fix of 2008-11-20 commit.
83907         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
83908         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
83909         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
83910         NEXT_MATH_H.
83911         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
83912         instead of NEXT_MATH_H.
83914 2009-05-21  Bruno Haible  <bruno@clisp.org>
83916         Avoid redefinition warnings for SIZE_MAX.
83917         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
83918         Reported by Simon Josefsson.
83920 2009-05-21  Bruno Haible  <bruno@clisp.org>
83922         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
83923         AC_CACHE_VAL.
83925 2009-05-20  Bruno Haible  <bruno@clisp.org>
83927         Make zeroptr.h work on mingw.
83928         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
83929         mprotect.
83930         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
83931         * modules/memchr2-tests (configure.ac): Likewise.
83932         * modules/memcmp-tests (configure.ac): Likewise.
83933         * modules/memmem-tests (configure.ac): Likewise.
83934         * modules/memrchr-tests (configure.ac): Likewise.
83935         Reported by Simon Josefsson.
83937 2009-05-20  Simon Josefsson  <simon@josefsson.org>
83939         * tests/test-glob.c: Include string.h for strcmp prototype.
83941 2009-05-20  Simon Josefsson  <simon@josefsson.org>
83943         * modules/getdelim (Depends-on): Add explicit stdint, although it
83944         was implicitly already pulled in via realloc-posix.
83945         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
83947 2009-05-20  Simon Josefsson  <simon@josefsson.org>
83949         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
83950         G. Christensen" <tgc@jupiterrise.com>.
83951         * m4/sys_socket_h.m4: Check for sa_family_t.
83952         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
83953         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
83954         * tests/test-sys_socket.c: Check that sa_family_t works.
83956 2009-05-18  Eric Blake  <ebb9@byu.net>
83958         maint.mk: allow gnulib_dir in VPATH build
83959         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
83961 2009-05-15  Jim Meyering  <meyering@redhat.com>
83963         maint.mk: Give gnulib_dir a default definition.
83964         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
83965         Thus, most packages no longer need to specify this variable in cfg.mk
83967 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
83969         rename.m4: fix typos that would make non-mingw cross-configure fail
83970         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
83972 2009-05-13  Eric Blake  <ebb9@byu.net>
83974         mmap-anon: avoid out-of-order autoconf expansion
83975         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
83976         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
83977         * modules/memchr-tests (Depends-on): Add extensions.
83978         * modules/memchr2-tests (Depends-on): Add extensions.
83979         * modules/memcmp-tests (Depends-on): Add extensions.
83980         * modules/memmem-tests (Depends-on): Add extensions.
83981         * modules/memrchr-tests (Depends-on): Add extensions.
83983 2009-05-13  Bruno Haible  <bruno@clisp.org>
83985         Make some tests ISO C 99 compliant.
83986         * tests/zerosize-ptr.h: New file.
83987         * tests/test-memchr.c: Include zerosize-ptr.h.
83988         (main): Use a zero-size object pointer instead of NULL.
83989         * tests/test-memchr2.c: Include zerosize-ptr.h.
83990         (main): Use a zero-size object pointer instead of NULL.
83991         * tests/test-memcmp.c: Include zerosize-ptr.h.
83992         (main): Use a zero-size object pointer instead of NULL.
83993         * tests/test-memmem.c: Include zerosize-ptr.h.
83994         (main): Use a zero-size object pointer instead of NULL.
83995         * tests/test-memrchr.c: Include zerosize-ptr.h.
83996         (main): Use a zero-size object pointer instead of NULL.
83997         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
83998         m4/mmap-anon.m4.
83999         (Depends-on): Add getpagesize.
84000         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
84001         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
84002         m4/mmap-anon.m4.
84003         (Depends-on): Add getpagesize.
84004         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
84005         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
84006         m4/mmap-anon.m4.
84007         (Depends-on): Add getpagesize.
84008         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
84009         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
84010         m4/mmap-anon.m4.
84011         (Depends-on): Add getpagesize.
84012         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
84013         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
84014         m4/mmap-anon.m4.
84015         (Depends-on): Add getpagesize.
84016         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
84018 2009-05-12  Bruno Haible  <bruno@clisp.org>
84020         Tests for module 'alignof'.
84021         * modules/alignof-tests: New file.
84022         * tests/test-alignof.c: New file.
84024 2009-05-12  Bruno Haible  <bruno@clisp.org>
84026         Fix alignof macro.
84027         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
84028         vendor compilers that are always correct.
84030 2009-05-12  Bruno Haible  <bruno@clisp.org>
84032         Make the MAP_ANONYMOUS detection work on HP-UX 11.
84033         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
84034         not whether its fully works.
84036 2009-05-12  Bruno Haible  <bruno@clisp.org>
84038         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
84040 2009-05-12  Jim Meyering  <meyering@redhat.com>
84042         * top/maint.mk: Adjust backslash alignment.
84044 2009-05-11  Simon Josefsson  <simon@josefsson.org>
84046         * top/maint.mk: Make $(srcdir)/build-aux configurable.
84048 2009-05-11  Eric Blake  <ebb9@byu.net>
84050         argp: avoid undefined behavior
84051         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
84052         macros.
84054 2009-05-08  Simon Josefsson  <simon@josefsson.org>
84056         * tests/test-vc-list-files-git.sh: Do git config of user.email and
84057         user.name to prevent git commit from complaining.
84059 2009-05-10  Bruno Haible  <bruno@clisp.org>
84061         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
84062         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
84063         it rewrites every file name only once.
84064         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
84066 2009-05-08  Bruno Haible  <bruno@clisp.org>
84068         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
84069         instead of 'max'.
84071 2009-05-08  Simon Josefsson  <simon@josefsson.org>
84073         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
84074         sockaddr_storage test.
84076 2009-05-07  Simon Josefsson  <simon@josefsson.org>
84078         * modules/sys_socket (Makefile.am): Substitute
84079         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
84080         * m4/sys_socket_h.m4: Check for sockaddr_storage.
84081         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
84082         * tests/test-sys_socket.c: Check sockaddr_storage.
84084 2009-05-08  Bruno Haible  <bruno@clisp.org>
84086         New module 'alignof'.
84087         * lib/alignof.h: New file.
84088         * modules/alignof: New file.
84090 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
84091             Bruno Haible  <bruno@clisp.org>
84093         Fix test-file-has-acl on FreeBSD.
84094         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
84095         mask is implicitly added.
84096         * tests/test-file-has-acl.c: Include <signal.h>.
84097         (main): Terminate the test after 5 seconds.
84098         * modules/acl-tests (configure.ac): Check for alarm function.
84100 2009-05-04  Bruno Haible  <bruno@clisp.org>
84102         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
84103         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
84104         * modules/errno (configure.ac): Drop AC_REQUIRE.
84105         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
84106         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
84108 2009-05-04  Simon Josefsson  <simon@josefsson.org>
84110         * modules/glob-tests: New module.
84111         * tests/test-glob.c: Add.
84113 2009-05-04  Simon Josefsson  <simon@josefsson.org>
84115         * modules/fnmatch-tests: New module.
84116         * tests/test-fnmatch.c: Add.
84118 2009-05-04  Eric Blake  <ebb9@byu.net>
84120         maint: make the new no-submodule-changes rule VPATH-safe
84121         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
84123 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
84124             Bruno Haible  <bruno@clisp.org>
84126         acl: Fix infinite loop on FreeBSD.
84127         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
84128         of return value from acl_get_entry.
84129         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
84130         Likewise.
84132 2009-05-03  Bruno Haible  <bruno@clisp.org>
84134         * lib/acl-internal.h (acl_entries): Clarify return value.
84135         * lib/acl_entries.c (acl_entries): Likewise.
84137 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
84139         Bug fix in acl module.
84140         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
84142 2009-05-03  Bruno Haible  <bruno@clisp.org>
84144         Create gperf-generated file in the source dir, not in the build dir.
84145         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
84146         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
84147         * modules/unicase/locale-language (unicase/locale-languages.h):
84148         Likewise.
84149         * modules/unicase/special-casing (unicase/special-casing-table.h):
84150         Likewise.
84151         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
84152         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
84153         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
84154         Reported by Ralf Wildenhues.
84156 2009-05-03  Bruno Haible  <bruno@clisp.org>
84158         * modules/fnmatch (Description, configure.ac): Taken from
84159         fnmatch-posix.
84160         * modules/fnmatch-posix: Turn into a symbolic reference to the
84161         'fnmatch' module, and deprecate.
84162         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
84164 2009-05-03  Bruno Haible  <bruno@clisp.org>
84166         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
84167         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
84168         Reported by Ralf Wildenhues.
84170 2009-05-04  Simon Josefsson  <simon@josefsson.org>
84172         * m4/fnmatch.m4: Fix fnmatch re-define.
84174 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
84176         priv-set: new module and tests; adapt write-any-file
84177         * lib/priv-set.c: New file.
84178         * lib/priv-set.h: New file.
84179         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
84180         * lib/write-any-file.c: Simplify by using priv-set module.
84181         * m4/priv-set.m4: New file.
84182         * modules/priv-set: New file.
84183         * modules/unlinkdir: Add dependency on priv-set module.
84184         * modules/write-any-file: Likewise.
84186         Tests for module 'priv-set'.
84187         * modules/priv-set-tests: New file.
84188         * tests/test-priv-set.c: New file.
84190 2009-05-03  Jim Meyering  <meyering@redhat.com>
84191             Bruno Haible  <bruno@clisp.org>
84193         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
84194         use the converted UTF-8 variant of the name instead.
84196 2009-05-03  Jim Meyering  <meyering@redhat.com>
84198         tests: tighten some getdate tests
84199         * tests/test-getdate.c (main): Tighten tests: require equality,
84200         not just greater than.  Set TZ envvar to UTC0.
84202 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
84204         getdate: correctly interpret "next monday" when run on a Monday
84205         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
84206         that e.g., "next tues" (when run on a tuesday) results in a date
84207         that is one week in the future, and not today's date.
84208         I.e., add a week when the wday is the same as the current one.
84209         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
84210         and earlier by Martin Bernreuther and Jan Minář.
84211         * tests/test-getdate.c (main): Check that "next DAY" is always in
84212         the future and that "last DAY" is always in the past.
84214 2009-05-02  Jim Meyering  <meyering@redhat.com>
84216         build: ensure that a release build fails when a submodule is unclean
84217         * top/maint.mk (no-submodule-changes): New rule.
84218         (alpha beta major): Depend on it.
84220 2009-05-02  Bruno Haible  <bruno@clisp.org>
84222         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
84223         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
84224         shell variable gl_fnmatch_required to detect which variant is
84225         requested.
84226         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
84227         gl_FUNC_FNMATCH_POSIX.
84228         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
84229         exclude fnmatch-posix.
84231 2009-05-02  Bruno Haible  <bruno@clisp.org>
84233         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
84234         * modules/mbsrtowcs (License): Change to LGPLv2+.
84235         * modules/strnlen1 (License): Likewise.
84236         Reported by Simon Josefsson.
84238 2009-05-02  Bruno Haible  <bruno@clisp.org>
84240         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
84241         "cross".
84242         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
84243         gnulib-tool was called with option --source-base=lib.
84245 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84247         Use automake *-local hooks without commands, for extensibility.
84248         * modules/localcharset (Makefile.am): Rename install-exec-local
84249         rule to install-exec-localcharset, and make it a prerequisite of
84250         install-exec-local.  Likewise, rename the uninstall-local rule to
84251         uninstall-localcharset, and make it a prerequisite of the former.
84253 2009-05-01  Bruno Haible  <bruno@clisp.org>
84255         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
84256         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
84257         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
84258         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
84259         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
84260         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
84261         m4/locale-zh.m4, m4/codeset.m4.
84263         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
84264         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
84265         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
84266         m4/locale-zh.m4.
84268         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
84269         REPLACE_WCRTOMB if mbstate_t must be replaced.
84270         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
84271         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
84273 2009-05-01  Bruno Haible  <bruno@clisp.org>
84275         Avoid compiler warnings when redefining macros defined by <libintl.h>.
84276         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
84277         dngettext, dcngettext, textdomain, bindtextdomain,
84278         bind_textdomain_codeset): Undefine before redefining.
84280 2009-04-30  Bruno Haible  <bruno@clisp.org>
84282         Fix bug introduced on 2009-04-25.
84283         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
84284         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
84285         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
84286         is defined.
84287         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
84288         is defined.
84289         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
84290         is defined.
84291         Reported by Elbert_Pol <elbert.pol@gmail.com>.
84293 2009-04-28  Bruno Haible  <bruno@clisp.org>
84295         Comment tweaks.
84296         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
84297         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
84298         * lib/unicase.h (u*_casexfrm): Likewise.
84299         Reported by Paolo Bonzini.
84301 2009-04-28  Bruno Haible  <bruno@clisp.org>
84303         Fix a compilation error.
84304         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
84305         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
84306         Reported by Jim Meyering.
84308 2009-04-27  Bruno Haible  <bruno@clisp.org>
84310         New module 'libunistring'.
84311         * modules/libunistring: New file.
84312         * m4/libunistring.m4: New file.
84313         * MODULES.html.sh (Unicode string functions): Add it.
84315 2009-04-27  Eric Blake  <ebb9@byu.net>
84317         maint.mk: allow package-specific header to provide <config.h>
84318         * top/maint.mk (sc_require_config_h): New variable.
84319         (sc_require_config_h, sc_require_config_h_first): Use it.
84321 2009-04-27  Simon Josefsson  <simon@josefsson.org>
84323         * top/maint.mk (sc_avoid_if_before_free): Except
84324         useless-if-before-free script.
84326 2009-04-27  Eric Blake  <ebb9@byu.net>
84328         maintainer-makefile: depend on all required helper scripts
84329         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
84330         useless-if-before-free.
84331         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
84332         version, rather than assuming gnulib checkout is available.
84333         Reported by Simen Josefsson.
84335 2009-04-26  Bruno Haible  <bruno@clisp.org>
84337         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
84338         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
84339         "../" or "..".
84341 2009-04-26  Bruno Haible  <bruno@clisp.org>
84343         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
84344         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
84345         AC_LIB_HAVE_LINKFLAGS.
84347 2009-04-26  Bruno Haible  <bruno@clisp.org>
84349         Simplify calling convention of u*_conv_from_encoding.
84350         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
84351         u32_conv_from_encoding): Expect a resultbuf argument and return the
84352         result directly as a pointer.
84353         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
84354         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
84355         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
84356         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
84357         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
84358         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
84359         Update.
84360         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
84361         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
84362         * lib/vasnprintf.c (VASNPRINTF): Update.
84363         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
84364         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
84365         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
84366         * NEWS: Mention the change.
84368 2009-04-26  Bruno Haible  <bruno@clisp.org>
84370         Simplify calling convention of u*_conv_to_encoding.
84371         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
84372         u32_conv_to_encoding): Expect a resultbuf argument and return the
84373         result directly as a pointer.
84374         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
84375         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
84376         freeing scaled_offsets if mem_iconveha failed.
84377         * lib/unicase/u-casexfrm.h (FUNC): Update.
84378         * lib/uninorm/u-normxfrm.h (FUNC): Update.
84379         * lib/vasnprintf.c (VASNPRINTF): Update.
84380         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
84381         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
84382         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
84383         * NEWS: Mention the change.
84385 2009-04-26  Bruno Haible  <bruno@clisp.org>
84387         Avoid test failures on AIX and OSF/1.
84388         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
84389         malloc(0).
84390         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
84391         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
84392         Likewise.
84393         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
84394         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
84395         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
84396         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
84397         * doc/posix-functions/malloc.texi: Document the portability problem
84398         related to malloc(0).
84400 2009-04-26  Bruno Haible  <bruno@clisp.org>
84402         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
84403         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
84404         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
84406 2009-04-25  Bruno Haible  <bruno@clisp.org>
84408         Avoid link error when creating a namespace clean library.
84409         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
84410         as macro with arguments if already defined as an alias.
84411         * lib/signbitf.c (gl_signbitf): Don't undefine.
84412         * lib/signbitd.c (gl_signbitd): Don't undefine.
84413         * lib/signbitl.c (gl_signbitl): Don't undefine.
84415 2009-04-25  Jim Meyering  <meyering@redhat.com>
84417         vc-list-files: fix another quoting bug
84418         * build-aux/vc-list-files: Avoid sed backslash expansion
84419         of pathological directory names.
84421 2009-04-25  Eric Blake  <ebb9@byu.net>
84423         vc-list-files: fix shell quoting error
84424         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
84425         timestamp.
84427 2009-04-25  Jim Meyering  <meyering@redhat.com>
84429         vc-list-files: restore lost functionality with subdir argument
84430         * build-aux/vc-list-files: When given a non-"." sub-directory
84431         argument, substitute the $dir/ prefix back onto each resulting name.
84432         Otherwise, coreutils' root_tests check would fail.
84434 2009-04-24  Eric Blake  <ebb9@byu.net>
84436         vc-list-files: ignore git symlinks
84437         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
84438         than ls-files, to ignore git symlinks.
84440         maint.mk: import improvements from m4
84441         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
84442         (move_if_change): Delete unused macro.
84443         (news-date-check, vc-diff-check): Support VPATH builds.
84444         (announcement): Likewise.  Split --bootstrap-tools list...
84445         (boostrap-tools): ...into separate list, which can be overridden
84446         in cfg.mk.
84447         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
84448         requiring dependency on useless-if-before-free module.
84449         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
84450         Support VPATH builds.
84452 2009-04-24  Jim Meyering  <meyering@redhat.com>
84454         maint.mk: remove coreutils-specific rules and variables
84455         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
84456         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
84457         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
84459         maint.mk: remove obsolete rule
84460         * top/maint.mk (rel-check): Remove rule.
84461         (WGET, WGETFLAGS): Remove now-unused variables.
84463 2009-04-24  Simon Josefsson  <simon@josefsson.org>
84465         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
84466         consistency.
84468         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
84469         '$(PATH_SEPARATOR)' instead of ':'.
84471 2009-04-24  Simon Josefsson  <simon@josefsson.org>
84473         * lib/getopt1.c (main): Use 'const' for static array.
84475 2009-04-24  Simon Josefsson  <simon@josefsson.org>
84477         * top/maint.mk: Sync with coreutils.
84478         * NEWS: Explain incompatibilities.
84480 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84481             Bruno Haible  <bruno@clisp.org>
84483         Fix cross-compilation results.
84484         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
84485         statement, as third argument of AC_TRY_RUN.
84486         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
84487         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
84488         Likewise.
84489         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
84490         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
84491         Likewise.
84492         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
84493         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
84494         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
84496 2009-04-20  Bruno Haible  <bruno@clisp.org>
84498         Avoid test failure on mingw.
84499         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
84501 2009-04-20  Bruno Haible  <bruno@clisp.org>
84503         Avoid compilation error on mingw.
84504         * modules/localename-tests (Depends-on): Add locale.
84506 2009-04-19  Bruno Haible  <bruno@clisp.org>
84508         Support for building a shared library on Windows platforms.
84509         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
84510         (main): Test the presence of UNINORM_NFC here.
84511         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
84512         (main): Test the presence of UNINORM_NFD here.
84513         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
84514         (main): Test the presence of UNINORM_NFKC here.
84515         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
84516         (main): Test the presence of UNINORM_NFKD here.
84518 2009-04-19  Bruno Haible  <bruno@clisp.org>
84520         Avoid a compiler warning.
84521         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
84522         Change type of variable 'sequence'.
84524 2009-04-19  Bruno Haible  <bruno@clisp.org>
84526         * modules/configmake (Makefile.am): When the contents of configmake.h
84527         does not change, arrange to preserve its modification time.
84529 2009-04-17  Simon Josefsson  <simon@josefsson.org>
84531         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
84532         gettext domain.
84534 2009-04-16  Jim Meyering  <meyering@redhat.com>
84536         useless-if-before-free: improve conversion code
84537         * build-aux/useless-if-before-free: Adjust code-in-comment to match
84538         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
84540 2009-04-14  Bruno Haible  <bruno@clisp.org>
84542         * modules/fcntl (Depends-on): Add extensions.
84543         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
84545 2009-04-12  Ben Pfaff  <blp@gnu.org>
84547         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
84548         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
84550 2009-03-20  Ben Pfaff  <blp@gnu.org>
84552         Make rename replace existing destinations on Windows.
84553         * m4/rename.m4: Add test for Mingw.
84554         * lib/rename.c: Add rename replacement that uses MoveFileEx with
84555         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
84556         * doc/posix-functions/rename.texi: Document.
84558 2009-04-10  Bruno Haible  <bruno@clisp.org>
84560         New include file "iconveh.h".
84561         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
84562         * lib/striconveh.h: Include it.
84563         (enum iconv_ilseq_handler): Remove definition.
84564         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
84565         striconveh.h.
84566         * lib/striconveha.c: Include striconveh.h.
84567         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
84568         * modules/striconveh (Files): Add lib/iconveh.h.
84569         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
84570         lib/striconveh.h.
84572 2009-04-10  Bruno Haible  <bruno@clisp.org>
84574         * lib/uniconv.h: Update comment.
84576 2009-04-10  Bruno Haible  <bruno@clisp.org>
84578         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
84579         always.
84580         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
84581         * lib/unistr/u16-mbtouc-aux.c: Likewise.
84582         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
84583         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
84584         "unistring-notinline.h", so that the function gets defined always.
84585         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
84586         * lib/unistr/u8-uctomb.c: Likewise.
84587         * lib/unistr/u16-mbtouc.c: Likewise.
84588         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
84589         * lib/unistr/u16-uctomb.c: Likewise.
84590         * lib/unistr/u32-mbtouc.c: Likewise.
84591         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
84592         * lib/unistr/u32-uctomb.c: Likewise.
84594 2009-04-10  Bruno Haible  <bruno@clisp.org>
84596         Mark 'utime' obsolete.
84597         * modules/utime (Status, Notice): New sections.
84598         Suggested by Jim Meyering.
84600         Fix cross-compile guess for utime test.
84601         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
84602         autoconf.
84603         * doc/posix-functions/utime.texi: Give more precisions.
84604         Reported by Jan <ipif@ymail.com>.
84606 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
84608         filevercmp: correct today's change
84609         * lib/filevercmp.c: Also handle coreutils' test inputs.
84610         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
84612         Fix regression in 'filevercmp' module. Thanks Sven Joachim
84613         for reporting it.
84614         * lib/filevercmp.c: Special handle for "", "." and "..".
84615         * tests/test-filevercmp.c: Enlarge the set suite.
84617 2009-04-07  Jim Meyering  <meyering@redhat.com>
84619         useless-if-before-free: show how to remove braced useless free, too
84620         * build-aux/useless-if-before-free: still only in a comment, though.
84622 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
84624         maint.mk: import changes to syntax-check macros from coreutils
84625         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
84626         Use them in the relevant macros.
84628 2009-04-06  Bruno Haible  <bruno@clisp.org>
84630         Fix unportable use of bit-fields.
84631         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
84632         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
84633         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
84635 2009-04-06  Bruno Haible  <bruno@clisp.org>
84637         Avoid test failures on AIX and OSF/1.
84638         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
84639         that malloc(0) = NULL.
84640         * tests/unicase/test-u8-tolower.c (check): Likewise.
84641         * tests/unicase/test-u8-totitle.c (check): Likewise.
84642         * tests/unicase/test-u8-toupper.c (check): Likewise.
84643         * tests/unicase/test-u16-casefold.c (check): Likewise.
84644         * tests/unicase/test-u16-tolower.c (check): Likewise.
84645         * tests/unicase/test-u16-totitle.c (check): Likewise.
84646         * tests/unicase/test-u16-toupper.c (check): Likewise.
84647         * tests/unicase/test-u32-casefold.c (check): Likewise.
84648         * tests/unicase/test-u32-tolower.c (check): Likewise.
84649         * tests/unicase/test-u32-totitle.c (check): Likewise.
84650         * tests/unicase/test-u32-toupper.c (check): Likewise.
84651         * tests/uninorm/test-u8-nfc.c (check): Likewise.
84652         * tests/uninorm/test-u8-nfd.c (check): Likewise.
84653         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
84654         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
84655         * tests/uninorm/test-u16-nfc.c (check): Likewise.
84656         * tests/uninorm/test-u16-nfd.c (check): Likewise.
84657         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
84658         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
84659         * tests/uninorm/test-u32-nfc.c (check): Likewise.
84660         * tests/uninorm/test-u32-nfd.c (check): Likewise.
84661         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
84662         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
84664 2009-04-05  Bruno Haible  <bruno@clisp.org>
84666         Work around an autoconf limitation.
84667         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
84668         comment line if it would be longer than 3 KB.
84670 2009-04-05  Bruno Haible  <bruno@clisp.org>
84672         Avoid test failure with libiconv-1.13.
84673         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
84674         of the expected test results.
84676 2009-04-05  Bruno Haible  <bruno@clisp.org>
84678         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
84679         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
84680         that it should be installed.
84682 2009-04-05  Bruno Haible  <bruno@clisp.org>
84684         * gnulib-tool: New option --copy-file.
84685         (func_usage): Document it.
84686         (func_dest_tmpfilename): Moved out of func_import.
84687         (func_add_file, func_update_file): New functions, extracted from
84688         func_import.
84689         (func_import): Update.
84691 2009-04-05  Karl Berry  <karl@gnu.org>
84693         * README: prominently mention gnulib-tool.
84694         Rearrange sections so getting the code is near the top.
84696 2009-04-05  Bruno Haible  <bruno@clisp.org>
84698         * lib/unicase.h: Mention u*_cmp2.
84699         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
84700         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
84701         * lib/unicase/ulc-casecmp.c: Likewise.
84702         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
84703         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
84704         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
84705         unistr/u8-cmp.
84706         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
84707         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
84708         unistr/u16-cmp.
84709         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
84710         unistr/u32-cmp.
84712         * lib/uninorm.h: Mention u*_cmp2.
84713         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
84714         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
84715         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
84716         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
84717         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
84718         unistr/u8-cmp.
84719         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
84720         unistr/u16-cmp.
84721         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
84722         unistr/u32-cmp.
84724         New module 'unistr/u32-cmp2'.
84725         * lib/unistr/u32-cmp2.c: New file.
84726         * modules/unistr/u32-cmp2: New file.
84728         New module 'unistr/u16-cmp2'.
84729         * lib/unistr/u16-cmp2.c: New file.
84730         * modules/unistr/u16-cmp2: New file.
84732         New module 'unistr/u8-cmp2'.
84733         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
84734         * lib/unistr/u8-cmp2.c: New file.
84735         * lib/unistr/u-cmp2.h: New file.
84736         * modules/unistr/u8-cmp2: New file.
84738 2009-04-05  Bruno Haible  <bruno@clisp.org>
84740         * lib/unictype.h (uc_property_is_valid): New macro.
84741         * tests/unictype/test-pr_byname.c (main): Use it.
84743         * lib/unistr.h: Doc fixes.
84744         * lib/uniconv.h: Doc fixes.
84745         * lib/unictype.h: Doc fixes.
84747 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
84749         Port coreutils 7.2 to Solaris 8.
84751         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
84752         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
84753         for Solaris 8.  This is a bit of a hack, as it means it's the
84754         caller's responsibility to add -lnsl if needed, but most likely it
84755         won't be needed since only getaddrinfo uses this and getaddrinfo
84756         isn't needed on Solaris 8.
84758         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
84759         problem to Solaris 8 encountered with coreutils 7.2, which
84760         resulted in a message "fnmatch.c:292: warning: passing argument 4
84761         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
84762         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
84764 2009-04-03  Simon Josefsson  <simon@josefsson.org>
84766         * m4/ld-version-script.m4: Add FIXME comment.
84768 2009-04-02  Simon Josefsson  <simon@josefsson.org>
84770         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
84771         SOVERSION variable.
84773 2009-04-02  Bruno Haible  <bruno@clisp.org>
84775         * Makefile (info, html, dvi, pdf): Combine the rules.
84776         Suggested by Jim Meyering.
84778 2009-04-01  Bruno Haible  <bruno@clisp.org>
84780         * Makefile (info, html, dvi, pdf): New targets.
84781         Reported by Reuben Thomas <rrt@sc3d.org>.
84783 2009-04-01  Bruno Haible  <bruno@clisp.org>
84785         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
84786         can be put into PATH.
84787         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
84789 2009-04-01  Bruno Haible  <bruno@clisp.org>
84791         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
84793 2009-04-01  Bruno Haible  <bruno@clisp.org>
84795         Rename module 'visibility'.
84796         * modules/lib-symbol-visibility: Renamed from modules/visibility.
84797         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
84798         * doc/gnulib.texi: Update.
84799         * MODULES.html.sh (Misc): Update.
84800         * NEWS: Mention the change.
84802 2009-04-01  Simon Josefsson  <simon@josefsson.org>
84804         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
84805         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
84806         Eric Blake <ebb9@byu.net> for review.
84807         * MODULES.html.sh: Add lib-msvc-compat.
84808         * doc/gnulib.texi: Link to new section.
84809         * m4/ld-output-def.m4: New file.
84810         * doc/ld-output-def.texi: New file.
84812 2009-04-01  Simon Josefsson  <simon@josefsson.org>
84814         Rename ld-version-script to lib-symbol-versions.  Suggested by
84815         Bruno Haible <bruno@clisp.org>.
84816         * modules/ld-version-script: Renamed to lib-symbol-versions.
84817         * doc/ld-version-script.texi: Fix module name.
84818         * MODULES.html.sh: Add lib-symbol-versions.
84820 2009-03-31  Simon Josefsson  <simon@josefsson.org>
84822         * modules/u64-tests: New file.
84823         * tests/test-u64.c: New file.
84825 2009-03-04  Simon Josefsson  <simon@josefsson.org>
84827         * MODULES.html.sh: Mention u64.
84828         * modules/u64: New module.
84829         * modules/crypto/sha512: Depend on u64 module instead of providing
84830         u64.h.
84832 2009-03-27  Eric Blake  <ebb9@byu.net>
84834         test-strerror: make debugging EAI_SYSTEM easier
84835         * modules/getaddrinfo-tests (Depends-on): Add strerror.
84836         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
84837         failure was EAI_SYSTEM.
84839 2009-03-25  Bruno Haible  <bruno@clisp.org>
84841         Fix a problem with --enable-relocatable on Solaris 7.
84842         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
84843         since 2008-02-24.
84845 2009-03-25  Eric Blake  <ebb9@byu.net>
84847         test-sockets: avoid gcc warning
84848         * tests/test-sockets.c (main): Silence compiler warning.
84850 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
84852         New modules nproc, pthread, contributed by Glen Lenker.
84854         * MODULES.html.sh: Add pthread, nproc.
84855         * lib/nproc.c: New file.
84856         * lib/nproc.h: New file.
84857         * lib/pthread.in.h: New file.
84858         * m4/pthread.m4: New file.
84859         * modules/nproc: New file.
84860         * modules/pthread: New file.
84862 2009-03-24  Simon Josefsson  <simon@josefsson.org>
84864         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
84865         New variable.
84867 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
84869         filevercmp: handle simple~ and numbered.~3~ backup suffixes
84870         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
84871         * tests/test-filevercmp.c: Add tests for backup suffixes.
84873 2009-03-24  Simon Josefsson  <simon@josefsson.org>
84875         * modules/stdlib (Depends-on): Add stdint, needed when defining
84876         struct random_data on, for example, HP-UX 10.20.  Reported by
84877         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
84879 2009-03-24  Simon Josefsson  <simon@josefsson.org>
84881         * lib/readline.c (readline): Call fflush on stdout after printing
84882         prompt.
84884 2009-03-20  Bruno Haible  <bruno@clisp.org>
84886         Remove dependency from 'close' module to -lws2_32 on native Windows.
84887         * lib/close-hook.h: New file.
84888         * lib/close-hook.c: New file.
84889         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
84890         w32sock.h.
84891         (_gl_close_fd_maybe_socket): Remove function.
84892         (rpl_close): Invoke execute_all_close_hooks instead of
84893         _gl_close_fd_maybe_socket.
84894         * lib/sockets.c: Include close-hook.h, w32sock.h.
84895         (close_fd_maybe_socket): New function, essentially from lib/close.c.
84896         (close_sockets_hook): New variable.
84897         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
84898         (gl_sockets_cleanup): Unregister it.
84899         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
84900         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
84901         * modules/close-hook: New file.
84902         * modules/close (Files): Remove lib/w32sock.h.
84903         (Depends-on): Add close-hook.
84904         (Link): Remove section.
84905         * modules/sockets (Files): Add lib/w32sock.h.
84906         (Depends-on): Add close-hook.
84907         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
84908         invocation.
84909         * NEWS: Mention that LIB_CLOSE is gone.
84911 2009-03-23  Eric Blake  <ebb9@byu.net>
84913         signal-tests: test previous patch
84914         * tests/test-signal.c: New file.
84915         * modules/signal-tests: Likewise.
84917         signal.h: always support 'volatile sig_atomic_t'
84918         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
84919         (gl_SIGNAL_H_DEFAULTS): Add a default.
84920         * modules/signal (Makefile.am): Substitute if needed.
84921         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
84922         users can blindly add volatile.
84923         * doc/posix-headers/signal.texi (signal.h): Document it.
84924         Reported by Matthew Woehlke.
84926 2009-03-23  Jim Meyering  <meyering@redhat.com>
84928         pathmax: PATH_MAX: use pathconf only when available
84929         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
84930         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
84931         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
84932         This avoids a link failure in a PSP cross-compilation environment
84933         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
84935         * lib/vasnprintf.c (divide): Fix typo in comment.
84937 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84939         * gnulib-tool (func_filter_filelist): Fix comment.
84941 2009-03-20  Bruno Haible  <bruno@clisp.org>
84943         Make sockets.h self-contained.
84944         * lib/sockets.c: Include sockets.h first.
84945         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
84947 2009-03-19  Eric Blake  <ebb9@byu.net>
84949         doc: mention more functions added in cygwin 1.7.0
84950         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
84951         addition.
84952         * doc/posix-functions/log2f.texi: Likewise.
84954 2009-03-19  Jim Meyering  <meyering@redhat.com>
84956         fsusage: avoid syntax error due to statement-before-declaration
84957         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
84958         after all declarations.  Reported by Matthew Woehlke in
84959         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
84961 2009-03-18  Eric Blake  <ebb9@byu.net>
84963         build-aux/compile: sync from automake
84964         * build-aux/compile: New file, from automake.
84965         * config/srclist.txt: Mention build-aux/compile.
84967 2009-03-17  Bruno Haible  <bruno@clisp.org>
84969         * lib/git-merge-changelog.c: Fix typo in comment.
84970         Reported by Reuben Thomas <rrt@sc3d.org>.
84972 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
84974         * m4/regex.m4: update and improve help for
84975         --without-included-regex.
84977 2009-03-17  Simon Josefsson  <simon@josefsson.org>
84979         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
84980         failure on missing include files.
84982 2009-03-17  Eric Blake  <ebb9@byu.net>
84984         doc: mention more functions added in cygwin 1.7.0
84985         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
84986         addition.
84987         * doc/posix-functions/fwscanf.texi: Likewise.
84988         * doc/posix-functions/swprintf.texi: Likewise.
84989         * doc/posix-functions/swscanf.texi: Likewise.
84990         * doc/posix-functions/vfwprintf.texi: Likewise.
84991         * doc/posix-functions/vfwscanf.texi: Likewise.
84992         * doc/posix-functions/vswprintf.texi: Likewise.
84993         * doc/posix-functions/vswscanf.texi: Likewise.
84994         * doc/posix-functions/vwprintf.texi: Likewise.
84995         * doc/posix-functions/vwscanf.texi: Likewise.
84996         * doc/posix-functions/wcscasecmp.texi: Likewise.
84997         * doc/posix-functions/wcsdup.texi: Likewise.
84998         * doc/posix-functions/wcsftime.texi: Likewise.
84999         * doc/posix-functions/wcsncasecmp.texi: Likewise.
85000         * doc/posix-functions/wprintf.texi: Likewise.
85001         * doc/posix-functions/wscanf.texi: Likewise.
85002         * doc/glibc-functions/gethostbyname2.texi: Likewise.
85004 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85006         maint.mk: really add $(AM_MAKEFLAGS)
85007         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
85008         was inadvertently omitted in the last commit.
85009         Spotted by Bruno Haible.
85011         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
85012         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
85013         $(AM_MAKEFLAGS)' rather than plain `make'.
85015         gnulib-tool: execute $MAKE not make
85016         * gnulib-tool: Default $MAKE to 'make'.
85017         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
85018         than make.  Initialize $MAKE in the do-autobuild script.
85020         gnulib-tool: use $MAKE not make in generated files
85021         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
85022         make, in generated files.  Initialize $MAKE in the do-autobuild
85023         script.
85025         * top/GNUmakefile (_have-git-version-gen): Fix typo.
85027         GNUmakefile: disable parallelism only for multiple, recursive targets
85028         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
85029         additions in the Makefile.
85030         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
85031         by Automake.
85032         (.NOTPARALLEL): Only disable parallel builds if multiple targets
85033         are listed on the command line and at least one of them is
85034         listed in $(ALL_RECURSIVE_TARGETS).
85036 2009-03-14  Bruno Haible  <bruno@clisp.org>
85038         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
85039         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
85040         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
85041         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
85042         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
85043         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
85044         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
85045         unistr/u8-uctomb.
85046         * modules/unistr/u8-strchr (Depends-on): Likewise.
85047         * modules/unistr/u8-strrchr (Depends-on): Likewise.
85048         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
85049         unistr/u16-uctomb.
85050         * modules/unistr/u16-strchr (Depends-on): Likewise.
85051         * modules/unistr/u16-strrchr (Depends-on): Likewise.
85053 2009-03-12  Bruno Haible  <bruno@clisp.org>
85055         Work around select() bug on Interix 3.5.
85056         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
85057         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
85058         * m4/select.m4: New file.
85059         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
85060         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
85061         * modules/select (Files): Add m4/select.m4.
85062         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
85063         * modules/nanosleep (Depends-on): Add select.
85064         * modules/poll (Depends-on): Likewise.
85065         * doc/posix-functions/select.texi: Mention the Interix bug.
85066         Reported by Markus Duft <mduft@gentoo.org>.
85068         * lib/select.c: Renamed from lib/winsock-select.c.
85069         * modules/select (Files): Add lib/select.c, remove
85070         lib/winsock-select.c.
85071         (configure.ac): Update.
85073 2009-03-12  Jim Meyering  <meyering@redhat.com>
85075         avoid gcc warnings about unused macro definitions
85076         * lib/readtokens.c (STREQ): Remove unused definition.
85077         * lib/xmalloc.c (SIZE_MAX): Likewise.
85078         * lib/openat-die.c (N_): Likewise.
85079         * lib/mountlist.c (SIZE_MAX): Remove definition.
85080         Instead, include <stdint.h>.
85081         * lib/readutmp.c: Likewise.
85082         * modules/readutmp (Depends-on): Add stdint.
85083         * modules/mountlist (Depends-on): Add stdint.
85084         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
85086 2009-03-10  Bruno Haible  <bruno@clisp.org>
85088         Tests for module 'mbmemcasecoll'.
85089         * modules/mbmemcasecoll-tests: New file.
85090         * tests/test-mbmemcasecoll1.sh: New file.
85091         * tests/test-mbmemcasecoll2.sh: New file.
85092         * tests/test-mbmemcasecoll3.sh: New file.
85093         * tests/test-mbmemcasecoll.c: New file.
85095         New module 'mbmemcasecoll'.
85096         * lib/mbmemcasecoll.h: New file.
85097         * lib/mbmemcasecoll.c: New file.
85098         * modules/mbmemcasecoll: New file.
85100         * tests/test-mbmemcasecmp.h: New file, extracted from
85101         tests/test-mbmemcasecmp.c.
85102         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
85103         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
85104         (main): Update.
85105         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
85107 2009-03-09  Bruno Haible  <bruno@clisp.org>
85109         Tests for module 'mbmemcasecmp'.
85110         * modules/mbmemcasecmp-tests: New file.
85111         * tests/test-mbmemcasecmp1.sh: New file.
85112         * tests/test-mbmemcasecmp2.sh: New file.
85113         * tests/test-mbmemcasecmp3.sh: New file.
85114         * tests/test-mbmemcasecmp.c: New file.
85116         New module 'mbmemcasecmp'.
85117         * lib/mbmemcasecmp.h: New file.
85118         * lib/mbmemcasecmp.c: New file.
85119         * modules/mbmemcasecmp: New file.
85121 2009-03-09  Bruno Haible  <bruno@clisp.org>
85123         Tests for module 'unicase/ulc-casecoll'.
85124         * modules/unicase/ulc-casecoll-tests: New file.
85125         * tests/unicase/test-ulc-casecoll1.sh: New file.
85126         * tests/unicase/test-ulc-casecoll2.sh: New file.
85127         * tests/unicase/test-ulc-casecoll.c: New file.
85129         New module 'unicase/ulc-casecoll'.
85130         * lib/unicase.h (ulc_casecoll): New declaration.
85131         * lib/unicase/ulc-casecoll.c: New file.
85132         * modules/unicase/ulc-casecoll: New file.
85134         New module 'unicase/ulc-casexfrm'.
85135         * lib/unicase.h (ulc_casexfrm): New declaration.
85136         * lib/unicase/ulc-casexfrm.c: New file.
85137         * modules/unicase/ulc-casexfrm: New file.
85139 2009-03-09  Bruno Haible  <bruno@clisp.org>
85141         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
85142         invocations.
85144         * m4/mbscasecmp.m4: Remove file.
85145         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
85146         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
85148         * m4/mbscasestr.m4: Remove file.
85149         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
85150         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
85152         * m4/mbschr.m4: Remove file.
85153         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
85154         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
85156         * m4/mbscspn.m4: Remove file.
85157         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
85158         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
85160         * m4/mbslen.m4: Remove file.
85161         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
85162         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
85164         * m4/mbsncasecmp.m4: Remove file.
85165         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
85166         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
85168         * m4/mbsnlen.m4: Remove file.
85169         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
85170         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
85172         * m4/mbspbrk.m4: Remove file.
85173         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
85174         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
85176         * m4/mbspcasecmp.m4: Remove file.
85177         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
85178         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
85180         * m4/mbsrchr.m4: Remove file.
85181         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
85182         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
85184         * m4/mbssep.m4: Remove file.
85185         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
85186         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
85188         * m4/mbsspn.m4: Remove file.
85189         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
85190         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
85192         * m4/mbsstr.m4: Remove file.
85193         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
85194         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
85196         * m4/mbstok_r.m4: Remove file.
85197         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
85198         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
85200         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
85202         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
85203         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
85205         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
85207 2009-03-08  Bruno Haible  <bruno@clisp.org>
85209         Tests for module 'unicase/ulc-casecmp'.
85210         * modules/unicase/ulc-casecmp-tests: New file.
85211         * tests/unicase/test-ulc-casecmp1.sh: New file.
85212         * tests/unicase/test-ulc-casecmp2.sh: New file.
85213         * tests/unicase/test-ulc-casecmp.c: New file.
85215         New module 'unicase/ulc-casecmp'.
85216         * lib/unicase.h (ulc_casecmp): New declaration.
85217         * lib/unicase/ulc-casecmp.c: New file.
85218         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
85219         'const SRC_UNIT *'.
85220         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
85221         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
85222         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
85223         * modules/unicase/ulc-casecmp: New file.
85225         Tests for module 'unicase/u32-is-cased'.
85226         * modules/unicase/u32-is-cased-tests: New file.
85227         * tests/unicase/test-u32-is-cased.c: New file.
85229         Tests for module 'unicase/u16-is-cased'.
85230         * modules/unicase/u16-is-cased-tests: New file.
85231         * tests/unicase/test-u16-is-cased.c: New file.
85233         Tests for module 'unicase/u8-is-cased'.
85234         * modules/unicase/u8-is-cased-tests: New file.
85235         * tests/unicase/test-u8-is-cased.c: New file.
85236         * tests/unicase/test-is-cased.h: New file.
85238         New module 'unicase/u32-is-cased'.
85239         * lib/unicase/u32-is-cased.c: New file.
85240         * modules/unicase/u32-is-cased: New file.
85242         New module 'unicase/u16-is-cased'.
85243         * lib/unicase/u16-is-cased.c: New file.
85244         * modules/unicase/u16-is-cased: New file.
85246         New module 'unicase/u8-is-cased'.
85247         * lib/unicase/u8-is-cased.c: New file.
85248         * lib/unicase/u-is-cased.h: New file.
85249         * modules/unicase/u8-is-cased: New file.
85251         Tests for module 'unicase/u32-is-casefolded'.
85252         * modules/unicase/u32-is-casefolded-tests: New file.
85253         * tests/unicase/test-u32-is-casefolded.c: New file.
85255         Tests for module 'unicase/u16-is-casefolded'.
85256         * modules/unicase/u16-is-casefolded-tests: New file.
85257         * tests/unicase/test-u16-is-casefolded.c: New file.
85259         Tests for module 'unicase/u8-is-casefolded'.
85260         * modules/unicase/u8-is-casefolded-tests: New file.
85261         * tests/unicase/test-u8-is-casefolded.c: New file.
85262         * tests/unicase/test-is-casefolded.h: New file.
85264         New module 'unicase/u32-is-casefolded'.
85265         * lib/unicase/u32-is-casefolded.c: New file.
85266         * modules/unicase/u32-is-casefolded: New file.
85268         New module 'unicase/u16-is-casefolded'.
85269         * lib/unicase/u16-is-casefolded.c: New file.
85270         * modules/unicase/u16-is-casefolded: New file.
85272         New module 'unicase/u8-is-casefolded'.
85273         * lib/unicase/u8-is-casefolded.c: New file.
85274         * modules/unicase/u8-is-casefolded: New file.
85276         Tests for module 'unicase/u32-is-titlecase'.
85277         * modules/unicase/u32-is-titlecase-tests: New file.
85278         * tests/unicase/test-u32-is-titlecase.c: New file.
85280         Tests for module 'unicase/u16-is-titlecase'.
85281         * modules/unicase/u16-is-titlecase-tests: New file.
85282         * tests/unicase/test-u16-is-titlecase.c: New file.
85284         Tests for module 'unicase/u8-is-titlecase'.
85285         * modules/unicase/u8-is-titlecase-tests: New file.
85286         * tests/unicase/test-u8-is-titlecase.c: New file.
85287         * tests/unicase/test-is-titlecase.h: New file.
85289         New module 'unicase/u32-is-titlecase'.
85290         * lib/unicase/u32-is-titlecase.c: New file.
85291         * modules/unicase/u32-is-titlecase: New file.
85293         New module 'unicase/u16-is-titlecase'.
85294         * lib/unicase/u16-is-titlecase.c: New file.
85295         * modules/unicase/u16-is-titlecase: New file.
85297         New module 'unicase/u8-is-titlecase'.
85298         * lib/unicase/u8-is-titlecase.c: New file.
85299         * modules/unicase/u8-is-titlecase: New file.
85301         Tests for module 'unicase/u32-is-lowercase'.
85302         * modules/unicase/u32-is-lowercase-tests: New file.
85303         * tests/unicase/test-u32-is-lowercase.c: New file.
85305         Tests for module 'unicase/u16-is-lowercase'.
85306         * modules/unicase/u16-is-lowercase-tests: New file.
85307         * tests/unicase/test-u16-is-lowercase.c: New file.
85309         Tests for module 'unicase/u8-is-lowercase'.
85310         * modules/unicase/u8-is-lowercase-tests: New file.
85311         * tests/unicase/test-u8-is-lowercase.c: New file.
85312         * tests/unicase/test-is-lowercase.h: New file.
85314         New module 'unicase/u32-is-lowercase'.
85315         * lib/unicase/u32-is-lowercase.c: New file.
85316         * modules/unicase/u32-is-lowercase: New file.
85318         New module 'unicase/u16-is-lowercase'.
85319         * lib/unicase/u16-is-lowercase.c: New file.
85320         * modules/unicase/u16-is-lowercase: New file.
85322         New module 'unicase/u8-is-lowercase'.
85323         * lib/unicase/u8-is-lowercase.c: New file.
85324         * modules/unicase/u8-is-lowercase: New file.
85326         Tests for module 'unicase/u32-is-uppercase'.
85327         * modules/unicase/u32-is-uppercase-tests: New file.
85328         * tests/unicase/test-u32-is-uppercase.c: New file.
85330         Tests for module 'unicase/u16-is-uppercase'.
85331         * modules/unicase/u16-is-uppercase-tests: New file.
85332         * tests/unicase/test-u16-is-uppercase.c: New file.
85334         Tests for module 'unicase/u8-is-uppercase'.
85335         * modules/unicase/u8-is-uppercase-tests: New file.
85336         * tests/unicase/test-u8-is-uppercase.c: New file.
85337         * tests/unicase/test-is-uppercase.h: New file.
85339         New module 'unicase/u32-is-uppercase'.
85340         * lib/unicase/u32-is-uppercase.c: New file.
85341         * modules/unicase/u32-is-uppercase: New file.
85343         New module 'unicase/u16-is-uppercase'.
85344         * lib/unicase/u16-is-uppercase.c: New file.
85345         * modules/unicase/u16-is-uppercase: New file.
85347         New module 'unicase/u8-is-uppercase'.
85348         * lib/unicase/u8-is-uppercase.c: New file.
85349         * modules/unicase/u8-is-uppercase: New file.
85351         New module 'unicase/u32-is-invariant'.
85352         * lib/unicase/u32-is-invariant.c: New file.
85353         * modules/unicase/u32-is-invariant: New file.
85355         New module 'unicase/u16-is-invariant'.
85356         * lib/unicase/u16-is-invariant.c: New file.
85357         * modules/unicase/u16-is-invariant: New file.
85359         New module 'unicase/u8-is-invariant'.
85360         * lib/unicase/u8-is-invariant.c: New file.
85361         * lib/unicase/invariant.h: New file.
85362         * lib/unicase/u-is-invariant.h: New file.
85363         * modules/unicase/u8-is-invariant: New file.
85365         Tests for module 'unicase/u32-casecoll'.
85366         * modules/unicase/u32-casecoll-tests: New file.
85367         * tests/unicase/test-u32-casecoll.c: New file.
85369         Tests for module 'unicase/u16-casecoll'.
85370         * modules/unicase/u16-casecoll-tests: New file.
85371         * tests/unicase/test-u16-casecoll.c: New file.
85373         Tests for module 'unicase/u8-casecoll'.
85374         * modules/unicase/u8-casecoll-tests: New file.
85375         * tests/unicase/test-u8-casecoll.c: New file.
85377         New module 'unicase/u32-casecoll'.
85378         * lib/unicase/u32-casecoll.c: New file.
85379         * modules/unicase/u32-casecoll: New file.
85381         New module 'unicase/u16-casecoll'.
85382         * lib/unicase/u16-casecoll.c: New file.
85383         * modules/unicase/u16-casecoll: New file.
85385         New module 'unicase/u8-casecoll'.
85386         * lib/unicase/u8-casecoll.c: New file.
85387         * lib/unicase/u-casecoll.h: New file.
85388         * modules/unicase/u8-casecoll: New file.
85390         New module 'unicase/u32-casexfrm'.
85391         * lib/unicase/u32-casexfrm.c: New file.
85392         * modules/unicase/u32-casexfrm: New file.
85394         New module 'unicase/u16-casexfrm'.
85395         * lib/unicase/u16-casexfrm.c: New file.
85396         * modules/unicase/u16-casexfrm: New file.
85398         New module 'unicase/u8-casexfrm'.
85399         * lib/unicase/u8-casexfrm.c: New file.
85400         * lib/unicase/u-casexfrm.h: New file.
85401         * modules/unicase/u8-casexfrm: New file.
85403         Tests for module 'unicase/u32-casecmp'.
85404         * modules/unicase/u32-casecmp-tests: New file.
85405         * tests/unicase/test-u32-casecmp.c: New file.
85407         Tests for module 'unicase/u16-casecmp'.
85408         * modules/unicase/u16-casecmp-tests: New file.
85409         * tests/unicase/test-u16-casecmp.c: New file.
85411         Tests for module 'unicase/u8-casecmp'.
85412         * modules/unicase/u8-casecmp-tests: New file.
85413         * tests/unicase/test-u8-casecmp.c: New file.
85414         * tests/unicase/test-casecmp.h: New file.
85416         New module 'unicase/u32-casecmp'.
85417         * lib/unicase/u32-casecmp.c: New file.
85418         * modules/unicase/u32-casecmp: New file.
85420         New module 'unicase/u16-casecmp'.
85421         * lib/unicase/u16-casecmp.c: New file.
85422         * modules/unicase/u16-casecmp: New file.
85424         New module 'unicase/u8-casecmp'.
85425         * lib/unicase/u8-casecmp.c: New file.
85426         * lib/unicase/u-casecmp.h: New file.
85427         * modules/unicase/u8-casecmp: New file.
85429         Tests for module 'unicase/u32-casefold'.
85430         * modules/unicase/u32-casefold-tests: New file.
85431         * tests/unicase/test-u32-casefold.c: New file.
85433         Tests for module 'unicase/u16-casefold'.
85434         * modules/unicase/u16-casefold-tests: New file.
85435         * tests/unicase/test-u16-casefold.c: New file.
85437         Tests for module 'unicase/u8-casefold'.
85438         * modules/unicase/u8-casefold-tests: New file.
85439         * tests/unicase/test-u8-casefold.c: New file.
85441         New module 'unicase/u32-casefold'.
85442         * lib/unicase/u32-casefold.c: New file.
85443         * modules/unicase/u32-casefold: New file.
85445         New module 'unicase/u16-casefold'.
85446         * lib/unicase/u16-casefold.c: New file.
85447         * modules/unicase/u16-casefold: New file.
85449         New module 'unicase/u8-casefold'.
85450         * lib/unicase/u8-casefold.c: New file.
85451         * lib/unicase/u-casefold.h: New file.
85452         * modules/unicase/u8-casefold: New file.
85454         New module 'unicase/tocasefold'.
85455         * lib/unicase/casefold.h: New file.
85456         * lib/unicase/tocasefold.c: New file.
85457         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
85458         * modules/unicase/tocasefold: New file.
85460         Tests for module 'unicase/u32-totitle'.
85461         * modules/unicase/u32-totitle-tests: New file.
85462         * tests/unicase/test-u32-totitle.c: New file.
85464         Tests for module 'unicase/u16-totitle'.
85465         * modules/unicase/u16-totitle-tests: New file.
85466         * tests/unicase/test-u16-totitle.c: New file.
85468         Tests for module 'unicase/u8-totitle'.
85469         * modules/unicase/u8-totitle-tests: New file.
85470         * tests/unicase/test-u8-totitle.c: New file.
85472         New module 'unicase/u32-totitle'.
85473         * lib/unicase/u32-totitle.c: New file.
85474         * modules/unicase/u32-totitle: New file.
85476         New module 'unicase/u16-totitle'.
85477         * lib/unicase/u16-totitle.c: New file.
85478         * modules/unicase/u16-totitle: New file.
85480         New module 'unicase/u8-totitle'.
85481         * lib/unicase/u8-totitle.c: New file.
85482         * lib/unicase/u-totitle.h: New file.
85483         * modules/unicase/u8-totitle: New file.
85485         Tests for module 'unicase/u32-tolower'.
85486         * modules/unicase/u32-tolower-tests: New file.
85487         * tests/unicase/test-u32-tolower.c: New file.
85489         Tests for module 'unicase/u16-tolower'.
85490         * modules/unicase/u16-tolower-tests: New file.
85491         * tests/unicase/test-u16-tolower.c: New file.
85493         Tests for module 'unicase/u8-tolower'.
85494         * modules/unicase/u8-tolower-tests: New file.
85495         * tests/unicase/test-u8-tolower.c: New file.
85497         New module 'unicase/u32-tolower'.
85498         * lib/unicase/u32-tolower.c: New file.
85499         * modules/unicase/u32-tolower: New file.
85501         New module 'unicase/u16-tolower'.
85502         * lib/unicase/u16-tolower.c: New file.
85503         * modules/unicase/u16-tolower: New file.
85505         New module 'unicase/u8-tolower'.
85506         * lib/unicase/u8-tolower.c: New file.
85507         * modules/unicase/u8-tolower: New file.
85509         Tests for module 'unicase/u32-toupper'.
85510         * modules/unicase/u32-toupper-tests: New file.
85511         * tests/unicase/test-u32-toupper.c: New file.
85513         Tests for module 'unicase/u16-toupper'.
85514         * modules/unicase/u16-toupper-tests: New file.
85515         * tests/unicase/test-u16-toupper.c: New file.
85517         Tests for module 'unicase/u8-toupper'.
85518         * modules/unicase/u8-toupper-tests: New file.
85519         * tests/unicase/test-u8-toupper.c: New file.
85521         New module 'unicase/u32-toupper'.
85522         * lib/unicase/u32-toupper.c: New file.
85523         * modules/unicase/u32-toupper: New file.
85525         New module 'unicase/u16-toupper'.
85526         * lib/unicase/u16-toupper.c: New file.
85527         * modules/unicase/u16-toupper: New file.
85529         New module 'unicase/u8-toupper'.
85530         * lib/unicase/u8-toupper.c: New file.
85531         * modules/unicase/u8-toupper: New file.
85533         New module 'unicase/u32-casemap'.
85534         * lib/unicase/u32-casemap.c: New file.
85535         * modules/unicase/u32-casemap: New file.
85537         New module 'unicase/u16-casemap'.
85538         * lib/unicase/u16-casemap.c: New file.
85539         * modules/unicase/u16-casemap: New file.
85541         New module 'unicase/u8-casemap'.
85542         * lib/unicase/unicasemap.h: New file.
85543         * lib/unicase/u8-casemap.c: New file.
85544         * lib/unicase/u-casemap.h: New file.
85545         * modules/unicase/u8-casemap: New file.
85547         New module 'unicase/special-casing'.
85548         * lib/unicase/special-casing.h: New file.
85549         * lib/unicase/special-casing.c: New file.
85550         * lib/unicase/special-casing-table.gperf: New file, generated by
85551         gen-uni-tables.c.
85552         * modules/unicase/special-casing: New file.
85554         Tests for module 'unicase/locale-language'.
85555         * modules/unicase/locale-language-tests: New file.
85556         * tests/unicase/test-locale-language.sh: New file.
85557         * tests/unicase/test-locale-language.c: New file.
85559         New module 'unicase/locale-language'.
85560         * lib/unicase/locale-language.c: New file.
85561         * lib/unicase/locale-languages.gperf: New file.
85562         * modules/unicase/locale-language: New file.
85564         Generate more tables for case conversion and case folding.
85565         * lib/gen-uni-tables.c (SCC_*): New enum items.
85566         (struct special_casing_rule): New type.
85567         (casing_rules, num_casing_rules, allocated_casing_rules): New
85568         variables.
85569         (add_casing_rule, fill_casing_rules): New functions.
85570         (struct casefold_rule): New type.
85571         (casefolding_rules, num_casefolding_rules,
85572         allocated_casefolding_rules): New variables.
85573         (fill_casefolding_rules): New function.
85574         (unicode_casefold): New variable.
85575         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
85576         sort_casing_rules, output_casing_rules): New functions.
85577         (main): Accept to more arguments: SpecialCasing.txt and
85578         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
85579         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
85580         Output mapping for casefolding.
85582         * lib/unicase.h: Include stdbool.h, uninorm.h.
85583         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
85584         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
85585         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
85586         arguments.
85587         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
85588         resultp arguments.
85589         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
85590         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
85591         resultp arguments.
85592         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
85593         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
85594         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
85595         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
85596         declarations.
85597         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
85599 2009-03-08  Bruno Haible  <bruno@clisp.org>
85601         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
85602         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
85603         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
85604         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
85606 2009-03-07  Bruno Haible  <bruno@clisp.org>
85608         Adjust u*_normcmp, u*_normcoll API.
85609         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
85610         u16_normcoll, u32_normcoll): Change failure conventions.
85611         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
85612         errno and return -1.
85613         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
85615 2009-03-07  Bruno Haible  <bruno@clisp.org>
85617         Tests for module 'uninorm/u32-normcoll'.
85618         * modules/uninorm/u32-normcoll-tests: New file.
85619         * tests/uninorm/test-u32-normcoll.c: New file.
85621         Tests for module 'uninorm/u16-normcoll'.
85622         * modules/uninorm/u16-normcoll-tests: New file.
85623         * tests/uninorm/test-u16-normcoll.c: New file.
85625         Tests for module 'uninorm/u8-normcoll'.
85626         * modules/uninorm/u8-normcoll-tests: New file.
85627         * tests/uninorm/test-u8-normcoll.c: New file.
85629 2009-03-07  Bruno Haible  <bruno@clisp.org>
85631         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
85632         tests/uninorm/test-u32-normcmp.c.
85633         * tests/uninorm/test-u32-normcmp.c: Include it.
85634         (test_nonascii): New function, extracted from main. Add some more
85635         tests.
85636         (main): Invoke test_ascii and test_nonascii.
85637         * modules/uninorm/u32-normcmp-tests (Files): Add
85638         tests/uninorm/test-u32-normcmp.h.
85639         (Depends-on): Remove uninorm/u32-normcmp.
85641         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
85642         tests/uninorm/test-u16-normcmp.c.
85643         * tests/uninorm/test-u16-normcmp.c: Include it.
85644         (test_nonascii): New function, extracted from main. Add some more
85645         tests.
85646         (main): Invoke test_ascii and test_nonascii.
85647         * modules/uninorm/u16-normcmp-tests (Files): Add
85648         tests/uninorm/test-u16-normcmp.h.
85649         (Depends-on): Remove uninorm/u16-normcmp.
85651         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
85652         tests/uninorm/test-u8-normcmp.c.
85653         * tests/uninorm/test-u8-normcmp.c: Include it.
85654         (test_nonascii): New function, extracted from main. Add some more
85655         tests.
85656         (main): Invoke test_ascii and test_nonascii.
85657         * modules/uninorm/u8-normcmp-tests (Files): Add
85658         tests/uninorm/test-u8-normcmp.h.
85659         (Depends-on): Remove uninorm/u8-normcmp.
85661 2009-03-07  Bruno Haible  <bruno@clisp.org>
85663         New module 'uninorm/u32-normcoll'.
85664         * lib/uninorm/u32-normcoll.c: New file.
85665         * modules/uninorm/u32-normcoll: New file.
85667         New module 'uninorm/u16-normcoll'.
85668         * lib/uninorm/u16-normcoll.c: New file.
85669         * modules/uninorm/u16-normcoll: New file.
85671         New module 'uninorm/u8-normcoll'.
85672         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
85673         declarations.
85674         * lib/uninorm/u8-normcoll.c: New file.
85675         * lib/uninorm/u-normcoll.h: New file.
85676         * modules/uninorm/u8-normcoll: New file.
85678         New module 'uninorm/u32-normxfrm'.
85679         * lib/uninorm/u32-normxfrm.c: New file.
85680         * modules/uninorm/u32-normxfrm: New file.
85682         New module 'uninorm/u16-normxfrm'.
85683         * lib/uninorm/u16-normxfrm.c: New file.
85684         * modules/uninorm/u16-normxfrm: New file.
85686         New module 'uninorm/u8-normxfrm'.
85687         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
85688         declarations.
85689         * lib/uninorm/u8-normxfrm.c: New file.
85690         * lib/uninorm/u-normxfrm.h: New file.
85691         * modules/uninorm/u8-normxfrm: New file.
85693 2009-03-07  Bruno Haible  <bruno@clisp.org>
85695         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
85696         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
85697         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
85699 2009-03-07  Bruno Haible  <bruno@clisp.org>
85701         New module 'memxfrm'.
85702         * lib/memxfrm.h: New file.
85703         * lib/memxfrm.c: New file.
85704         * modules/memxfrm: New file.
85706 2009-03-07  Bruno Haible  <bruno@clisp.org>
85708         New module 'memcmp2'.
85709         * lib/memcmp2.h: New file.
85710         * lib/memcmp2.c: New file.
85711         * modules/memcmp2: New file.
85713 2009-03-07  Bruno Haible  <bruno@clisp.org>
85715         Tests for module 'uninorm/decomposing-form'.
85716         * modules/uninorm/decomposing-form-tests: New file.
85717         * tests/uninorm/test-decomposing-form.c: New file.
85719         New module 'uninorm/decomposing-form'.
85720         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
85721         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
85722         Add 'decomposing_variant' field.
85723         * lib/uninorm/decomposing-form.c: New file.
85724         * lib/uninorm/nfc.c (uninorm_nfc): Update.
85725         * lib/uninorm/nfd.c (uninorm_nfd): Update.
85726         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
85727         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
85728         * modules/uninorm/decomposing-form: New file.
85729         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
85730         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
85732 2009-03-07  Bruno Haible  <bruno@clisp.org>
85734         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
85735         strings.
85737 2009-03-06  Bruno Haible  <bruno@clisp.org>
85739         Tests for module 'uninorm/u32-normcmp'.
85740         * tests/uninorm/test-u32-normcmp.c: New file.
85741         * modules/uninorm/u32-normcmp-tests: New file.
85743         Tests for module 'uninorm/u16-normcmp'.
85744         * tests/uninorm/test-u16-normcmp.c: New file.
85745         * modules/uninorm/u16-normcmp-tests: New file.
85747         Tests for module 'uninorm/u8-normcmp'.
85748         * tests/uninorm/test-u8-normcmp.c: New file.
85749         * modules/uninorm/u8-normcmp-tests: New file.
85751         New module 'uninorm/u32-normcmp'.
85752         * lib/uninorm/u32-normcmp.c: New file.
85753         * modules/uninorm/u32-normcmp: New file.
85755         New module 'uninorm/u16-normcmp'.
85756         * lib/uninorm/u16-normcmp.c: New file.
85757         * modules/uninorm/u16-normcmp: New file.
85759         New module 'uninorm/u8-normcmp'.
85760         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
85761         declarations.
85762         * lib/uninorm/u8-normcmp.c: New file.
85763         * lib/uninorm/u-normcmp.h: New file.
85764         * modules/uninorm/u8-normcmp: New file.
85766 2009-03-06  Bruno Haible  <bruno@clisp.org>
85768         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
85769         Reported by Eric Blake.
85771 2009-03-06  Eric Blake  <ebb9@byu.net>
85772             Bruno Haible  <bruno@clisp.org>
85774         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
85775         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
85776         condition.
85777         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
85778         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
85779         condition.
85780         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
85782 2009-03-06  Eric Blake  <ebb9@byu.net>
85784         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
85785         to avoid compiler warnings.
85786         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
85788 2009-03-05  Bruno Haible  <bruno@clisp.org>
85790         * tests/test-ftell.c (main): Disable test beyond end of file on
85791         FreeMiNT.
85792         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
85794 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
85796         * lib/filevercmp.c: Move hidden files up in ordering.
85797         * tests/test-filevercmp.c: Add tests for hidden files.
85799 2009-03-04  Bruno Haible  <bruno@clisp.org>
85801         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
85802         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
85803         AM_CFLAGS.
85804         Reported by Simon Josefsson.
85806 2009-03-03  Bruno Haible  <bruno@clisp.org>
85808         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
85809         Reported by Simon Josefsson.
85811         * doc/ld-version-script.texi: Update node reference.
85813 2009-03-03  Bruno Haible  <bruno@clisp.org>
85815         * modules/visibility (License): Change to 'unlimited'.
85816         Suggested by Simon Josefsson.
85818 2009-03-03  Jim Meyering  <meyering@redhat.com>
85820         unlinkdir: cannot_unlink_dir may modify process state
85821         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
85822         it's neither thread-safe nor appropriate for use in a library.
85824 2009-03-03  Eric Blake  <ebb9@byu.net>
85826         test-closein: silence test under Darwin
85827         * tests/test-closein.sh: Ignore stderr from cat, since we don't
85828         care if it dies from EPIPE or EBADF.
85830 2009-03-03  Bruno Haible  <bruno@clisp.org>
85832         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
85833         earlier.
85834         * doc/visibility.texi: Fix @node and @section.
85836 2009-03-03  Simon Josefsson  <simon@josefsson.org>
85838         * doc/gnulib.texi: Link to sections for ld version script and
85839         visibility.
85840         * doc/visibility.texi: Add @node and @section.
85841         * modules/ld-version-script: New module.
85842         * m4/ld-version-script.m4: New file.
85843         * doc/ld-version-script.texi: New file.
85845 2009-03-02  David Lutterkort  <lutter@redhat.com>
85847         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
85848         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
85850 2009-03-02  Bruno Haible  <bruno@clisp.org>
85852         * doc/visibility.texi: Mention libtool's -export-symbols option.
85854 2009-03-02  Jim Meyering  <meyering@redhat.com>
85856         announce-gen: new option: --no-print-checksums
85857         * build-aux/announce-gen (usage): Describe it.
85858         (print_checksums): Print a newline here, not in the [*] footnote.
85859         (main): Honor it.
85861 2009-03-01  Bruno Haible  <bruno@clisp.org>
85863         Use socklen_t in the native Windows replacements prototypes.
85864         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
85865         instead of 'int'.
85866         * lib/getsockopt.c (rpl_getsockopt): Likewise.
85867         * lib/setsockopt.c (rpl_setsockopt): Likewise.
85868         * modules/getsockopt (Depends-on): Add socklen.
85869         * modules/setsockopt (Depends-on): Add socklen.
85871 2009-03-01  Bruno Haible  <bruno@clisp.org>
85873         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
85874         least 4.2.
85876 2009-03-01  Eric Blake  <ebb9@byu.net>
85877             Bruno Haible  <bruno@clisp.org>
85879         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
85880         error messages.
85881         * lib/wait-process.c (wait_subprocess): Omit error message about
85882         deadly signal sent to the child of termsigp != NULL.
85884 2009-03-01  Eric Blake  <ebb9@byu.net>
85886         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
85888 2009-03-01  Bruno Haible  <bruno@clisp.org>
85890         Avoid a gcc warning.
85891         * tests/test-sched.c (b): Make global.
85892         Reported by Eric Blake.
85894 2009-01-19  Martin Lambers  <marlam@marlam.de>
85896         Provide POSIX semantics for socket timeout options on W32.
85897         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
85898         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
85899         * modules/setsockopt: Depend on sys_time module for struct timeval.
85900         * modules/getsockopt: Depend on sys_time module for struct timeval.
85902 2009-03-01  Simon Josefsson  <simon@josefsson.org>
85904         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
85905         __USE_GNU, for consistency with netdb.in.h.
85906         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
85908 2009-03-01  Bruno Haible  <bruno@clisp.org>
85910         More support for FreeMiNT.
85911         * lib/fseeko.c (rpl_fseeko): Complete last commit.
85912         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
85914 2009-03-01  Bruno Haible  <bruno@clisp.org>
85916         More support for FreeMiNT.
85917         * lib/fpurge.c (fpurge): Correct last commit.
85918         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
85920 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85922         Fix unportable awk script in vc-list-files.
85923         * build-aux/vc-list-files: In the replacement awk script, use
85924         substr with a second argument of 1, not zero.
85925         Report by Simon Josefsson.
85927 2009-02-28  Bruno Haible  <bruno@clisp.org>
85929         More support for FreeMiNT.
85930         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
85931         to FreeMiNT today.
85932         * lib/fwriting.c (fwriting): Likewise.
85933         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
85935 2009-02-28  Bruno Haible  <bruno@clisp.org>
85937         * tests/test-freadseek.c (main): Disable test beyond end of file on
85938         FreeMiNT.
85939         * tests/test-ftello.c (main): Likewise.
85940         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
85942 2009-02-28  Bruno Haible  <bruno@clisp.org>
85944         Add tentative support for FreeMiNT.
85945         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
85946         * lib/fpurge.c (fpurge): Likewise.
85947         * lib/freadable.c (freadable): Likewise.
85948         * lib/freading.c (freading): Likewise.
85949         * lib/freadptr.c (freadptr): Likewise.
85950         * lib/freadseek.c (freadptrinc): Likewise.
85951         * lib/fseeko.c (rpl_fseeko): Likewise.
85952         * lib/fseterr.c (fseterr): Likewise.
85953         * lib/fwritable.c (fwritable): Likewise.
85954         * lib/fwriting.c (fwriting): Likewise.
85955         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
85956         Hourihane.
85957         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
85959 2009-02-28  Bruno Haible  <bruno@clisp.org>
85961         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
85962         SIGCHLD.
85963         Reported by Jim Meyering.
85965 2009-02-28  Bruno Haible  <bruno@clisp.org>
85967         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
85968         Mention the results of these tests on various platforms.
85969         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
85970         order.
85971         * doc/posix-functions/printf.texi: Likewise.
85972         * doc/posix-functions/snprintf.texi: Likewise.
85973         * doc/posix-functions/sprintf.texi: Likewise.
85974         * doc/posix-functions/vfprintf.texi: Likewise.
85975         * doc/posix-functions/vprintf.texi: Likewise.
85976         * doc/posix-functions/vsnprintf.texi: Likewise.
85977         * doc/posix-functions/vsprintf.texi: Likewise.
85978         * doc/glibc-functions/obstack_printf.texi: Likewise.
85979         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
85981 2009-02-28  Bruno Haible  <bruno@clisp.org>
85983         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
85984         Reported by Loïc Minier <lool@dooz.org>.
85986 2009-02-27  Bruno Haible  <bruno@clisp.org>
85988         * gnulib-tool (func_import): Make the sed expression used to create the
85989         sed script for updating the .gitignore file POSIX compliant.
85990         Reported by Eric Blake.
85992 2009-02-27  Bruno Haible  <bruno@clisp.org>
85994         * gnulib-tool (sed): Don't alias as "sed --posix".
85995         Reported by Eric Blake.
85997 2009-02-27  Bruno Haible  <bruno@clisp.org>
85999         Avoid test link errors.
86000         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
86001         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
86002         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
86003         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
86004         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
86006 2009-02-27  Bruno Haible  <bruno@clisp.org>
86008         Avoid spurious "(cached)" in configure output.
86009         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
86010         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
86011         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
86012         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
86013         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
86014         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
86015         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
86016         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
86017         Reported by Eric Blake.
86019 2009-02-27  Eric Blake  <ebb9@byu.net>
86021         printf: fix regression in previous patch
86022         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
86024 2009-02-27  Bruno Haible  <bruno@clisp.org>
86026         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
86027         value.
86028         * lib/stdint.in.h: Likewise.
86029         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
86031 2009-02-27  Eric Blake  <ebb9@byu.net>
86033         doc: mention more functions added in cygwin 1.7.0
86034         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
86035         addition.
86036         * doc/posix-functions/open_wmemstream.texi: Likewise.
86037         * doc/posix-functions/wcsnlen.texi: Likewise.
86038         * doc/posix-functions/wcsnrtombs.texi: Likewise.
86039         * doc/posix-functions/wcstod.texi: Likewise.
86040         * doc/posix-functions/wcstof.texi: Likewise.
86041         * doc/posix-functions/wcstoimax.texi: Likewise.
86042         * doc/posix-functions/wcstok.texi: Likewise.
86043         * doc/posix-functions/wcstoumax.texi: Likewise.
86045         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
86046         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
86047         * doc/posix-functions/fprintf.texi: Update.
86048         * doc/posix-functions/printf.texi: Update.
86049         * doc/posix-functions/snprintf.texi: Update.
86050         * doc/posix-functions/sprintf.texi: Update.
86051         * doc/posix-functions/vfprintf.texi: Update.
86052         * doc/posix-functions/vprintf.texi: Update.
86053         * doc/posix-functions/vsnprintf.texi: Update.
86054         * doc/posix-functions/vsprintf.texi: Update.
86055         * doc/glibc-functions/obstack_printf.texi: Update.
86056         * doc/glibc-functions/obstack_vprintf.texi: Update.
86058 2009-02-26  Eric Blake  <ebb9@byu.net>
86060         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
86061         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
86062         compilation bug by using runtime conversion.
86063         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
86064         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
86065         * modules/ceill-tests (Files): Use nan.h.
86066         * modules/floorl-tests (Files): Likewise.
86067         * modules/frexpl-tests (Files): Likewise.
86068         * modules/isnanl-tests (Files): Likewise.
86069         * modules/ldexpl-tests (Files): Likewise.
86070         * modules/roundl-tests (Files): Likewise.
86071         * modules/truncl-tests (Files): Likewise.
86072         * tests/test-ceill.c (main): Use a working NaN.
86073         * tests/test-floorl.c (main): Likewise.
86074         * tests/test-frexpl.c (main): Likewise.
86075         * tests/test-isnan.c (test_long_double): Likewise.
86076         * tests/test-isnanl.h (main): Likewise.
86077         * tests/test-ldexpl.h (main): Likewise.
86078         * tests/test-roundl.h (main): Likewise.
86079         * tests/test-truncl.h (main): Likewise.
86080         See http://lists.gnu.org/r/bug-gnulib/2009-02/msg00190.html.
86082 2009-02-26  Eric Blake  <ebb9@byu.net>
86083             Bruno Haible  <bruno@clisp.org>
86085         Work around a *printf bug with %ls on Solaris.
86086         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
86087         precision is specified, sprintf stops converting the wide string
86088         argument when the number of bytes that have been produced by this
86089         conversion equals or exceeds the precision.
86090         * doc/posix-functions/fprintf.texi: Update.
86091         * doc/posix-functions/printf.texi: Update.
86092         * doc/posix-functions/snprintf.texi: Update.
86093         * doc/posix-functions/sprintf.texi: Update.
86094         * doc/posix-functions/vfprintf.texi: Update.
86095         * doc/posix-functions/vprintf.texi: Update.
86096         * doc/posix-functions/vsnprintf.texi: Update.
86097         * doc/posix-functions/vsprintf.texi: Update.
86098         * doc/glibc-functions/obstack_printf.texi: Update.
86099         * doc/glibc-functions/obstack_vprintf.texi: Update.
86101 2009-02-26  Eric Blake  <ebb9@byu.net>
86103         stdlib: favor compiler check of random.h
86104         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
86105         to avoid an ObjC random.h installed by Swarm.
86107 2009-02-26  Bruno Haible  <bruno@clisp.org>
86109         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
86110         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
86111         Reported by Gary V. Vaughan <gary@gnu.org>.
86113 2009-02-26  Bruno Haible  <bruno@clisp.org>
86115         Fix *printf behaviour regarding the %ls directive.
86116         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
86117         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
86118         NEED_PRINTF_DIRECTIVE_LS.
86119         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
86120         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
86121         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
86122         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
86123         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
86124         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
86125         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
86126         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
86127         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
86128         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
86129         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
86130         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
86131         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
86132         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
86133         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
86134         * doc/posix-functions/fprintf.texi: Update.
86135         * doc/posix-functions/printf.texi: Update.
86136         * doc/posix-functions/snprintf.texi: Update.
86137         * doc/posix-functions/sprintf.texi: Update.
86138         * doc/posix-functions/vfprintf.texi: Update.
86139         * doc/posix-functions/vprintf.texi: Update.
86140         * doc/posix-functions/vsnprintf.texi: Update.
86141         * doc/posix-functions/vsprintf.texi: Update.
86142         * doc/glibc-functions/obstack_printf.texi: Update.
86143         * doc/glibc-functions/obstack_vprintf.texi: Update.
86144         Reported by Eric Blake.
86146 2009-02-25  Bruno Haible  <bruno@clisp.org>
86148         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
86149         with known value.
86150         Reported by Gary V. Vaughan <gary@gnu.org>.
86152 2009-02-25  Bruno Haible  <bruno@clisp.org>
86154         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
86155         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
86156         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
86157         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
86158         Reported by Gary V. Vaughan <gary@gnu.org>.
86160 2009-02-25  Bruno Haible  <bruno@clisp.org>
86162         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
86163         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
86164         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
86165         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
86166         Reported by Gary V. Vaughan <gary@gnu.org>.
86168 2009-02-25  Eric Blake  <ebb9@byu.net>
86170         tests: skip fseek/ftell tests if ungetc is broken
86171         * m4/ungetc.m4: New file.
86172         * modules/fseek-tests: Split test, so ungetc dependency is
86173         separate from rest of test.
86174         * modules/fseeko-tests: Likewise.
86175         * modules/ftell-tests: Likewise.
86176         * modules/ftello-tests: Likewise.
86177         * tests/test-fseek.c (main): Isolate ungetc dependency.
86178         * tests/test-fseeko.c (main): Likewise.
86179         * tests/test-ftell.c (main): Likewise.
86180         * tests/test-ftello.c (main): Likewise.
86181         * tests/test-fseek2.sh: New file.
86182         * tests/test-fseeko2.sh: Likewise.
86183         * tests/test-ftell2.sh: Likewise.
86184         * tests/test-ftello2.sh: Likewise.
86186 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
86188         test-getaddrinfo: fix usage of skip return code 77
86189         * tests/test-gettaddrinfo.c: Return skip code 77 only
86190         for first occurrence of skip (4x77 is not 77)
86192 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
86194         strtod: avoid C99 decl-after-statement
86195         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
86197 2009-02-24  Eric Blake  <ebb9@byu.net>
86199         strtod: detect HP-UX 11.31 bug
86200         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
86201         Reported by Gary V. Vaughan.
86203 2009-02-23  Bruno Haible  <bruno@clisp.org>
86205         Fix invalid read past end of memory block.
86206         * lib/vasnprintf.c (DCHAR_SET): Define.
86207         (local_wcslen): Define only when needed.
86208         (local_strnlen, local_wcsnlen): New functions.
86209         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
86210         directives that involve a conversion ourselves.
86211         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
86212         wcsnlen, mbrtowc, wcrtomb.
86213         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
86214         * tests/test-vasprintf-posix.c (test_function): Likewise.
86215         * tests/test-snprintf-posix.h (test_function): Likewise.
86216         * tests/test-sprintf-posix.h (test_function): Likewise.
86217         Reported by Ben Pfaff <blp@cs.stanford.edu>.
86219 2009-02-22  Bruno Haible  <bruno@clisp.org>
86221         Implement new clarified decomposition of Hangul syllables.
86222         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
86223         of type LTV, return only a pairwise decomposition.
86224         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
86225         Likewise.
86226         * tests/uninorm/test-decomposition.c (main): Updated expected result.
86227         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
86228         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
86230 2009-02-22  Bruno Haible  <bruno@clisp.org>
86232         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
86233         zero-length results and shrink excess allocated memory.
86234         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
86235         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
86236         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
86237         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
86238         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
86239         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
86240         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
86241         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
86242         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
86243         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
86244         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
86245         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
86247 2009-02-21  Bruno Haible  <bruno@clisp.org>
86249         * doc/gnulib.texi: Include safe-alloc.texi earlier.
86250         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
86251         spaces after a period. Put a space between a macro name and its
86252         argument list. Trivial rewordings.
86253         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
86254         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
86255         (main): Return 0 explicitly.
86257 2009-02-21  Bruno Haible  <bruno@clisp.org>
86259         Tests for module 'uninorm/filter'.
86260         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
86261         * modules/uninorm/filter-tests: New file.
86263         New module 'uninorm/filter'.
86264         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
86265         uninorm_filter_flush, uninorm_filter_free): New declarations.
86266         * lib/uninorm/uninorm-filter.c: New file.
86267         * modules/uninorm/filter: New file.
86269 2009-02-21  Bruno Haible  <bruno@clisp.org>
86271         Tests for module 'uninorm/nfkc'.
86272         * tests/uninorm/test-nfkc.c: New file.
86273         * tests/uninorm/test-u8-nfkc.c: New file.
86274         * tests/uninorm/test-u16-nfkc.c: New file.
86275         * tests/uninorm/test-u32-nfkc.c: New file.
86276         * tests/uninorm/test-u32-nfkc-big.sh: New file.
86277         * tests/uninorm/test-u32-nfkc-big.c: New file.
86278         * modules/uninorm/nfkc-tests: New file.
86280         New module 'uninorm/nfkc'.
86281         * lib/uninorm/nfkc.c: New file.
86282         * modules/uninorm/nfkc: New file.
86284         Tests for module 'uninorm/nfkd'.
86285         * tests/uninorm/test-nfkd.c: New file.
86286         * tests/uninorm/test-u8-nfkd.c: New file.
86287         * tests/uninorm/test-u16-nfkd.c: New file.
86288         * tests/uninorm/test-u32-nfkd.c: New file.
86289         * tests/uninorm/test-u32-nfkd-big.sh: New file.
86290         * tests/uninorm/test-u32-nfkd-big.c: New file.
86291         * modules/uninorm/nfkd-tests: New file.
86293         New module 'uninorm/nfkd'.
86294         * lib/uninorm/nfkd.c: New file.
86295         * modules/uninorm/nfkd: New file.
86297         Tests for module 'uninorm/nfc'.
86298         * tests/uninorm/test-nfc.c: New file.
86299         * tests/uninorm/test-u8-nfc.c: New file.
86300         * tests/uninorm/test-u16-nfc.c: New file.
86301         * tests/uninorm/test-u32-nfc.c: New file.
86302         * tests/uninorm/test-u32-nfc-big.sh: New file.
86303         * tests/uninorm/test-u32-nfc-big.c: New file.
86304         * modules/uninorm/nfc-tests: New file.
86306         New module 'uninorm/nfc'.
86307         * lib/uninorm/nfc.c: New file.
86308         * modules/uninorm/nfc: New file.
86310         Tests for module 'uninorm/nfd'.
86311         * tests/uninorm/test-nfd.c: New file.
86312         * tests/uninorm/test-u8-nfd.c: New file.
86313         * tests/uninorm/test-u16-nfd.c: New file.
86314         * tests/uninorm/test-u32-nfd.c: New file.
86315         * tests/uninorm/test-u32-nfd-big.sh: New file.
86316         * tests/uninorm/test-u32-nfd-big.c: New file.
86317         * tests/uninorm/test-u32-normalize-big.h: New file.
86318         * tests/uninorm/test-u32-normalize-big.c: New file.
86319         * tests/uninorm/NormalizationTest.txt: New file, created from
86320         Unicode 5.1.0 NormalizationTest.txt.
86321         * modules/uninorm/nfd-tests: New file.
86323         New module 'uninorm/nfd'.
86324         * lib/uninorm/nfd.c: New file.
86325         * modules/uninorm/nfd: New file.
86327         New module 'uninorm/u32-normalize'.
86328         * lib/uninorm/u32-normalize.c: New file.
86329         * modules/uninorm/u32-normalize: New file.
86331         New module 'uninorm/u16-normalize'.
86332         * lib/uninorm/u16-normalize.c: New file.
86333         * modules/uninorm/u16-normalize: New file.
86335         New module 'uninorm/u8-normalize'.
86336         * lib/uninorm/u8-normalize.c: New file.
86337         * lib/uninorm/normalize-internal.h: New file.
86338         * lib/uninorm/u-normalize-internal.h: New file.
86339         * modules/uninorm/u8-normalize: New file.
86341         New module 'uninorm/decompose-internal'.
86342         * lib/uninorm/decompose-internal.c: New file.
86343         * modules/uninorm/decompose-internal: New file.
86345         Tests for module 'uninorm/composition'.
86346         * tests/uninorm/test-composition.c: New file.
86347         * modules/uninorm/composition-tests: New file.
86349         New module 'uninorm/composition'.
86350         * lib/uninorm/composition.c: New file.
86351         * lib/uninorm/composition-table.gperf: New file, generated by
86352         gen-uni-tables.
86353         * modules/uninorm/composition: New file.
86355         Tests for module 'uninorm/compat-decomposition'.
86356         * tests/uninorm/test-compat-decomposition.c: New file.
86357         * modules/uninorm/compat-decomposition-tests: New file.
86359         New module 'uninorm/compat-decomposition'.
86360         * lib/uninorm/decompose-internal.h: New file.
86361         * lib/uninorm/compat-decomposition.c: New file.
86362         * modules/uninorm/compat-decomposition: New file.
86364         Tests for module 'uninorm/canonical-decomposition'.
86365         * tests/uninorm/test-canonical-decomposition.c: New file.
86366         * modules/uninorm/canonical-decomposition-tests: New file.
86368         New module 'uninorm/canonical-decomposition'.
86369         * lib/uninorm/canonical-decomposition.c: New file.
86370         * modules/uninorm/canonical-decomposition: New file.
86372         Tests for module 'uninorm/decomposition'.
86373         * tests/uninorm/test-decomposition.c: New file.
86374         * modules/uninorm/decomposition-tests: New file.
86376         New module 'uninorm/decomposition'.
86377         * lib/uninorm/decomposition.c: New file.
86378         * modules/uninorm/decomposition: New file.
86380         New module 'uninorm/decomposition-table'.
86381         * lib/uninorm/decomposition-table.h: New file.
86382         * lib/uninorm/decomposition-table.c: New file.
86383         * lib/uninorm/decomposition-table1.h: New file, generated by
86384         gen-uni-tables.
86385         * lib/uninorm/decomposition-table2.h: New file, generated by
86386         gen-uni-tables.
86387         * modules/uninorm/decomposition-table: New file.
86389         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
86390         (UC_DECOMP_*): New enumeration items.
86391         (get_decomposition): New function.
86392         (struct decomp_table): New type.
86393         (output_decomposition, output_decomposition_tables): New functions.
86394         (unicode_composition_exclusions): New variable.
86395         (fill_composition_exclusions, debug_output_composition_tables): New
86396         functions.
86397         (main): Accept one more argument. Invoke fill_composition_exclusions.
86398         Output decomposition and composition tables.
86400         New module 'uninorm/base'.
86401         * lib/uninorm.h: New file.
86402         * lib/unictype.h: Update comment.
86403         * modules/uninorm/base: New file.
86405 2009-02-21  David Lutterkort  <lutter@redhat.com>
86407         Tests for module 'safe-alloc'.
86408         * tests/test-safe-alloc.c: New file.
86409         * modules/safe-alloc-tests: New file.
86411         New module 'safe-alloc'.
86412         * lib/safe-alloc.h: New file.
86413         * lib/safe-alloc.c: New file.
86414         * m4/safe-alloc.m4: New file.
86415         * modules/safe-alloc: New file.
86416         * doc/safe-alloc.texi: New file.
86417         * doc/gnulib.texi: Include it.
86418         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
86419         safe-alloc.
86421 2009-02-18  Bruno Haible  <bruno@clisp.org>
86423         Fix link error on non-glibc systems.
86424         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
86425         variable.
86426         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
86428 2009-02-18  Jim Meyering  <meyering@redhat.com>
86430         fts: avoid used-uninitialized error due to recent change
86431         * lib/fts.c (fts_read): Guard uses of the new member,
86432         parent->fts_n_dirs_remaining, since it's not relevant for
86433         the parent of a directory specified on the command-line.
86435 2009-02-17  James Youngman  <jay@gnu.org>
86436             Bruno Haible  <bruno@clisp.org>
86438         * m4/include_next.m4: Reformulate comment.
86440 2009-02-16  Jim Meyering  <meyering@redhat.com>
86442         fts: add #if guards so that the fts_lgpl module still builds
86443         * lib/fts.c: Guard just-added hash-table-using parts with
86444         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
86445         Reported by Simon Josefsson.
86447 2009-02-15  Bruno Haible  <bruno@clisp.org>
86449         * modules/array-mergesort-tests: New file.
86450         * tests/test-array-mergesort.c: New file.
86452         New module 'array-mergesort'.
86453         * modules/array-mergesort: New file.
86454         * lib/array-mergesort.h: New file.
86456 2009-02-15  Bruno Haible  <bruno@clisp.org>
86458         Fix 2009-02-07 commit.
86459         * lib/gen-uni-tables.c (output_predicate, output_category,
86460         output_combclass, output_bidi_category, output_decimal_digit,
86461         output_digit, output_numeric, output_mirror, output_scripts,
86462         output_ident_category, output_simple_mapping): Fix format directives.
86463         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
86465 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
86467         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
86468         fixes are available from IBM.
86470 2009-02-13  Jim Meyering  <meyering@redhat.com>
86472         fts: arrange not to stat non-directories in more cases
86473         This makes GNU find (when it doesn't need to stat each file)
86474         *much* more efficient at traversing reiserfs file systems.
86475         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
86476         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
86477         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
86478         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
86479         (leaf_optimization_applies): New function.
86480         (LCO_hash, LCO_compare): New helper functions.
86481         (link_count_optimize_ok): New function.
86482         (fts_stat): Initialize new member (if dir).
86483         (fts_read): Decrement parent's fts_n_dirs_remaining count if
86484         we've just stat'ed a directory.  Skip the stat call when possible.
86485         ---
86486         Note this AFS-related exchange:
86487         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
86488         and note find's pioctl call in find/fstype.c.
86489         But that is necessary only if you want to enable the
86490         optimization for AFS, and for now, I don't.
86492         fts: move a function definition "up" (no semantic change)
86493         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
86494         "up" to precede upcoming use of a related function.
86496 2009-02-11  Jim Meyering  <meyering@redhat.com>
86498         fts: correct internal computation of nlinks (optimization-related)
86499         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
86500         whether the current entry is a directory, so don't test it.
86502 2009-02-10  Bruno Haible  <bruno@clisp.org>
86504         Tests for module 'uniwbrk/ulc-wordbreaks'.
86505         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
86506         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
86507         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
86509         Tests for module 'uniwbrk/u32-wordbreaks'.
86510         * modules/uniwbrk/u32-wordbreaks-tests: New file.
86511         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
86513         Tests for module 'uniwbrk/u16-wordbreaks'.
86514         * modules/uniwbrk/u16-wordbreaks-tests: New file.
86515         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
86517         Tests for module 'uniwbrk/u8-wordbreaks'.
86518         * modules/uniwbrk/u8-wordbreaks-tests: New file.
86519         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
86521 2009-02-10  Bruno Haible  <bruno@clisp.org>
86523         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
86524         property.
86525         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
86526         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
86527         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
86529 2009-02-10  Simon Josefsson  <simon@josefsson.org>
86531         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
86532         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
86534 2009-02-10  Bruno Haible  <bruno@clisp.org>
86536         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
86537         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
86538         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
86539         * lib/unilbrk/u8-possible-linebreaks.c: Update.
86540         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
86541         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
86543 2009-02-09  Simon Josefsson  <simon@josefsson.org>
86545         * lib/sockets.h (gl_fd_to_handle): New function.
86547         * tests/test-sockets.c: Call gl_fd_to_handle.
86549 2009-02-09  Bruno Haible  <bruno@clisp.org>
86551         * doc/havelib.texi: Document the conventions on bi-arch systems.
86553 2009-02-08  Bruno Haible  <bruno@clisp.org>
86555         Document the AC_LIB_LINKFLAGS macro.
86556         * doc/havelib.texi: New file, mostly written on 2005-05-24.
86557         * doc/gnulib.texi: Include it.
86559 2009-02-08  Bruno Haible  <bruno@clisp.org>
86561         Fix wrong order of sections, compared to TOC.
86562         * doc/gnulib.texi: Include relocatable-maint.texi after the
86563         "Regular expressions" node, not before.
86565 2009-02-08  Bruno Haible  <bruno@clisp.org>
86567         Tests for module 'unicase/totitle'.
86568         * modules/unicase/totitle-tests: New file.
86570         Tests for module 'unicase/tolower'.
86571         * modules/unicase/tolower-tests: New file.
86573         Tests for module 'unicase/toupper'.
86574         * modules/unicase/toupper-tests: New file.
86575         * tests/unicase/test-mapping-part1.h: New file.
86576         * tests/unicase/test-mapping-part2.h: New file.
86578         New module 'unicase/totitle'.
86579         * modules/unicase/totitle: New file.
86580         * lib/unicase/totitle.c: New file.
86582         New module 'unicase/tolower'.
86583         * modules/unicase/tolower: New file.
86584         * lib/unicase/tolower.c: New file.
86586         New module 'unicase/toupper'.
86587         * modules/unicase/toupper: New file.
86588         * lib/unicase/toupper.c: New file.
86589         * lib/unicase/simple-mapping.h: New file.
86591         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
86592         (mapping_table): New structure.
86593         (output_simple_mapping): New function.
86594         (main): Invoke output_simple_mapping_test and output_simple_mapping.
86595         * modules/gen-uni-tables (Description): Update.
86596         * lib/unicase/toupper.h: New file, automatically generated by
86597         gen-uni-tables.
86598         * lib/unicase/tolower.h: New file, automatically generated by
86599         gen-uni-tables.
86600         * lib/unicase/totitle.h: New file, automatically generated by
86601         gen-uni-tables.
86602         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
86603         gen-uni-tables.
86604         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
86605         gen-uni-tables.
86606         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
86607         gen-uni-tables.
86609         New module 'unicase/base'.
86610         * modules/unicase/base: New file.
86611         * lib/unicase.h: New file.
86613 2009-02-08  Bruno Haible  <bruno@clisp.org>
86615         New module 'uniwbrk/ulc-wordbreaks'.
86616         * modules/uniwbrk/ulc-wordbreaks: New file.
86617         * lib/uniwbrk/ulc-wordbreaks.c: New file.
86619         New module 'uniwbrk/u32-wordbreaks'.
86620         * modules/uniwbrk/u32-wordbreaks: New file.
86621         * lib/uniwbrk/u32-wordbreaks.c: New file.
86623         New module 'uniwbrk/u16-wordbreaks'.
86624         * modules/uniwbrk/u16-wordbreaks: New file.
86625         * lib/uniwbrk/u16-wordbreaks.c: New file.
86627         New module 'uniwbrk/u8-wordbreaks'.
86628         * modules/uniwbrk/u8-wordbreaks: New file.
86629         * lib/uniwbrk/u8-wordbreaks.c: New file.
86630         * lib/uniwbrk/u-wordbreaks.h: New file.
86632         New module 'uniwbrk/table'.
86633         * modules/uniwbrk/table: New file.
86634         * lib/uniwbrk/wbrktable.h: New file.
86635         * lib/uniwbrk/wbrktable.c: New file.
86637         New module 'uniwbrk/wordbreak-property'.
86638         * modules/uniwbrk/wordbreak-property: New file.
86639         * lib/uniwbrk/wordbreak-property.c: New file.
86641         * lib/gen-uni-tables.c (WBP_*): New enum items.
86642         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
86643         (unicode_org_wbp): New variable.
86644         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
86645         New functions.
86646         (wbp_table): New structure.
86647         (output_wbp, output_wbrk_tables): New functions.
86648         (main): Accept additional argument. Invoke fill_org_wbp,
86649         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
86650         output_wbrk_tables.
86651         * modules/gen-uni-tables (Description): Update.
86652         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
86653         gen-uni-tables.
86655         New module 'uniwbrk/base'.
86656         * modules/uniwbrk/base: New file.
86657         * lib/uniwbrk.h: New file.
86659 2009-02-08  Bruno Haible  <bruno@clisp.org>
86661         Update to Unicode 5.1.0.
86662         * lib/gen-uni-tables.c (is_property_alphabetic): Include
86663         U+2185..U+2188.
86664         (is_property_default_ignorable_code_point): Don't include characters
86665         of category Cc or Cs and not-a-characters.
86666         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
86667         U+0D79, U+109E, U+109F, U+A60C.
86668         * lib/unictype/bidi_of.h: Regenerated.
86669         * lib/unictype/blocks.h: Regenerated.
86670         * lib/unictype/categ_C.h: Regenerated.
86671         * lib/unictype/categ_Cf.h: Regenerated.
86672         * lib/unictype/categ_Cn.h: Regenerated.
86673         * lib/unictype/categ_L.h: Regenerated.
86674         * lib/unictype/categ_Ll.h: Regenerated.
86675         * lib/unictype/categ_Lm.h: Regenerated.
86676         * lib/unictype/categ_Lo.h: Regenerated.
86677         * lib/unictype/categ_Lu.h: Regenerated.
86678         * lib/unictype/categ_M.h: Regenerated.
86679         * lib/unictype/categ_Mc.h: Regenerated.
86680         * lib/unictype/categ_Me.h: Regenerated.
86681         * lib/unictype/categ_Mn.h: Regenerated.
86682         * lib/unictype/categ_N.h: Regenerated.
86683         * lib/unictype/categ_Nd.h: Regenerated.
86684         * lib/unictype/categ_Nl.h: Regenerated.
86685         * lib/unictype/categ_No.h: Regenerated.
86686         * lib/unictype/categ_P.h: Regenerated.
86687         * lib/unictype/categ_Pd.h: Regenerated.
86688         * lib/unictype/categ_Pe.h: Regenerated.
86689         * lib/unictype/categ_Pf.h: Regenerated.
86690         * lib/unictype/categ_Pi.h: Regenerated.
86691         * lib/unictype/categ_Po.h: Regenerated.
86692         * lib/unictype/categ_Ps.h: Regenerated.
86693         * lib/unictype/categ_S.h: Regenerated.
86694         * lib/unictype/categ_Sk.h: Regenerated.
86695         * lib/unictype/categ_Sm.h: Regenerated.
86696         * lib/unictype/categ_So.h: Regenerated.
86697         * lib/unictype/categ_of.h: Regenerated.
86698         * lib/unictype/combining.h: Regenerated.
86699         * lib/unictype/ctype_alnum.h: Regenerated.
86700         * lib/unictype/ctype_alpha.h: Regenerated.
86701         * lib/unictype/ctype_graph.h: Regenerated.
86702         * lib/unictype/ctype_lower.h: Regenerated.
86703         * lib/unictype/ctype_print.h: Regenerated.
86704         * lib/unictype/ctype_punct.h: Regenerated.
86705         * lib/unictype/ctype_upper.h: Regenerated.
86706         * lib/unictype/decdigit.h: Regenerated.
86707         * lib/unictype/digit.h: Regenerated.
86708         * lib/unictype/mirror.h: Regenerated.
86709         * lib/unictype/numeric.h: Regenerated.
86710         * lib/unictype/pr_alphabetic.h: Regenerated.
86711         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
86712         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
86713         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
86714         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
86715         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
86716         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
86717         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
86718         * lib/unictype/pr_combining.h: Regenerated.
86719         * lib/unictype/pr_dash.h: Regenerated.
86720         * lib/unictype/pr_decimal_digit.h: Regenerated.
86721         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
86722         * lib/unictype/pr_deprecated.h: Regenerated.
86723         * lib/unictype/pr_diacritic.h: Regenerated.
86724         * lib/unictype/pr_extender.h: Regenerated.
86725         * lib/unictype/pr_format_control.h: Regenerated.
86726         * lib/unictype/pr_grapheme_base.h: Regenerated.
86727         * lib/unictype/pr_grapheme_extend.h: Regenerated.
86728         * lib/unictype/pr_grapheme_link.h: Regenerated.
86729         * lib/unictype/pr_id_continue.h: Regenerated.
86730         * lib/unictype/pr_id_start.h: Regenerated.
86731         * lib/unictype/pr_ideographic.h: Regenerated.
86732         * lib/unictype/pr_ignorable_control.h: Regenerated.
86733         * lib/unictype/pr_lowercase.h: Regenerated.
86734         * lib/unictype/pr_math.h: Regenerated.
86735         * lib/unictype/pr_numeric.h: Regenerated.
86736         * lib/unictype/pr_other_alphabetic.h: Regenerated.
86737         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
86738         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
86739         * lib/unictype/pr_other_id_continue.h: Regenerated.
86740         * lib/unictype/pr_other_lowercase.h: Regenerated.
86741         * lib/unictype/pr_other_math.h: Regenerated.
86742         * lib/unictype/pr_punctuation.h: Regenerated.
86743         * lib/unictype/pr_sentence_terminal.h: Regenerated.
86744         * lib/unictype/pr_soft_dotted.h: Regenerated.
86745         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
86746         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
86747         * lib/unictype/pr_unified_ideograph.h: Regenerated.
86748         * lib/unictype/pr_uppercase.h: Regenerated.
86749         * lib/unictype/pr_xid_continue.h: Regenerated.
86750         * lib/unictype/pr_xid_start.h: Regenerated.
86751         * lib/unictype/pr_zero_width.h: Regenerated.
86752         * lib/unictype/scripts.h: Regenerated.
86753         * lib/unictype/scripts_byname.gperf: Regenerated.
86754         * lib/unictype/sy_java_ident.h: Regenerated.
86755         * lib/unilbrk/lbrkprop1.h: Regenerated.
86756         * lib/unilbrk/lbrkprop2.h: Regenerated.
86757         * tests/unictype/test-categ_C.c: Regenerated.
86758         * tests/unictype/test-categ_Cf.c: Regenerated.
86759         * tests/unictype/test-categ_Cn.c: Regenerated.
86760         * tests/unictype/test-categ_L.c: Regenerated.
86761         * tests/unictype/test-categ_Ll.c: Regenerated.
86762         * tests/unictype/test-categ_Lm.c: Regenerated.
86763         * tests/unictype/test-categ_Lo.c: Regenerated.
86764         * tests/unictype/test-categ_Lu.c: Regenerated.
86765         * tests/unictype/test-categ_M.c: Regenerated.
86766         * tests/unictype/test-categ_Mc.c: Regenerated.
86767         * tests/unictype/test-categ_Me.c: Regenerated.
86768         * tests/unictype/test-categ_Mn.c: Regenerated.
86769         * tests/unictype/test-categ_N.c: Regenerated.
86770         * tests/unictype/test-categ_Nd.c: Regenerated.
86771         * tests/unictype/test-categ_Nl.c: Regenerated.
86772         * tests/unictype/test-categ_No.c: Regenerated.
86773         * tests/unictype/test-categ_P.c: Regenerated.
86774         * tests/unictype/test-categ_Pd.c: Regenerated.
86775         * tests/unictype/test-categ_Pe.c: Regenerated.
86776         * tests/unictype/test-categ_Pf.c: Regenerated.
86777         * tests/unictype/test-categ_Pi.c: Regenerated.
86778         * tests/unictype/test-categ_Po.c: Regenerated.
86779         * tests/unictype/test-categ_Ps.c: Regenerated.
86780         * tests/unictype/test-categ_S.c: Regenerated.
86781         * tests/unictype/test-categ_Sk.c: Regenerated.
86782         * tests/unictype/test-categ_Sm.c: Regenerated.
86783         * tests/unictype/test-categ_So.c: Regenerated.
86784         * tests/unictype/test-ctype_alnum.c: Regenerated.
86785         * tests/unictype/test-ctype_alpha.c: Regenerated.
86786         * tests/unictype/test-ctype_graph.c: Regenerated.
86787         * tests/unictype/test-ctype_lower.c: Regenerated.
86788         * tests/unictype/test-ctype_print.c: Regenerated.
86789         * tests/unictype/test-ctype_punct.c: Regenerated.
86790         * tests/unictype/test-ctype_upper.c: Regenerated.
86791         * tests/unictype/test-decdigit.h: Regenerated.
86792         * tests/unictype/test-digit.h: Regenerated.
86793         * tests/unictype/test-numeric.h: Regenerated.
86794         * tests/unictype/test-pr_alphabetic.c: Regenerated.
86795         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
86796         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
86797         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
86798         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
86799         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
86800         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
86801         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
86802         * tests/unictype/test-pr_combining.c: Regenerated.
86803         * tests/unictype/test-pr_dash.c: Regenerated.
86804         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
86805         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
86806         * tests/unictype/test-pr_deprecated.c: Regenerated.
86807         * tests/unictype/test-pr_diacritic.c: Regenerated.
86808         * tests/unictype/test-pr_extender.c: Regenerated.
86809         * tests/unictype/test-pr_format_control.c: Regenerated.
86810         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
86811         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
86812         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
86813         * tests/unictype/test-pr_id_continue.c: Regenerated.
86814         * tests/unictype/test-pr_id_start.c: Regenerated.
86815         * tests/unictype/test-pr_ideographic.c: Regenerated.
86816         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
86817         * tests/unictype/test-pr_lowercase.c: Regenerated.
86818         * tests/unictype/test-pr_math.c: Regenerated.
86819         * tests/unictype/test-pr_numeric.c: Regenerated.
86820         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
86821         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
86822         Regenerated.
86823         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
86824         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
86825         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
86826         * tests/unictype/test-pr_other_math.c: Regenerated.
86827         * tests/unictype/test-pr_punctuation.c: Regenerated.
86828         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
86829         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
86830         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
86831         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
86832         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
86833         * tests/unictype/test-pr_uppercase.c: Regenerated.
86834         * tests/unictype/test-pr_xid_continue.c: Regenerated.
86835         * tests/unictype/test-pr_xid_start.c: Regenerated.
86836         * tests/unictype/test-pr_zero_width.c: Regenerated.
86838         Update to Unicode 5.1.0.
86839         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
86840         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
86841         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
86842         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
86843         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
86844         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
86845         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
86846         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
86847         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
86848         (nonspacing_table_ind): Update.
86849         * tests/uniwidth/test-uc_width2.sh: Update expected result.
86851         Update to Unicode 5.1.0.
86852         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
86853         code transform.
86854         * lib/uniname/uniname.c (unicode_character_name,
86855         unicode_name_character): Add the range 0x1Fxxx to the code transform.
86856         * lib/uniname/uninames.h: Regenerated.
86857         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
86859 2009-02-07  Bruno Haible  <bruno@clisp.org>
86861         Merge gen-ctype and gen-lbrk into a single program.
86862         * lib/gen-uni-tables.c: New file, incorporating
86863         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
86864         Add directory prefixes to the names of the generated files.
86865         * lib/unictype/gen-ctype.c: Remove file.
86866         * lib/unilbrk/gen-lbrk.c: Remove file.
86867         * modules/gen-uni-tables: New file.
86868         * modules/unictype/gen-ctype: Remove file.
86869         * modules/unilbrk/gen-lbrk: Remove file.
86871 2009-02-07  Bruno Haible  <bruno@clisp.org>
86873         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
86875         New module 'unistr/u32-strcoll'.
86876         * modules/unistr/u32-strcoll: New file.
86877         * lib/unistr/u32-strcoll.c: New file.
86879         New module 'unistr/u16-strcoll'.
86880         * modules/unistr/u16-strcoll: New file.
86881         * lib/unistr/u16-strcoll.c: New file.
86883         New module 'unistr/u8-strcoll'.
86884         * modules/unistr/u8-strcoll: New file.
86885         * lib/unistr/u8-strcoll.c: New file.
86886         * lib/unistr/u-strcoll.h: New file.
86888 2009-02-07  Bruno Haible  <bruno@clisp.org>
86890         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
86891         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
86892         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
86893         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
86894         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
86895         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
86897 2009-02-07  Bruno Haible  <bruno@clisp.org>
86899         Make 64-bit clean.
86900         * lib/unictype/gen-ctype.c (output_predicate, output_category,
86901         output_combclass, output_bidi_category, output_decimal_digit,
86902         output_digit, output_numeric, output_mirror, output_scripts,
86903         output_ident_category): Use proper width specifier in format strings.
86905 2009-02-07  Bruno Haible  <bruno@clisp.org>
86907         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
86908         failure behaviour.
86910 2009-02-07  Jim Meyering  <meyering@redhat.com>
86912         regex: avoid compilation failure with upcoming gcc-4.4
86913         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
86914         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
86915         "... error: integer overflow in preprocessor expression".
86917 2009-02-05  Ben Pfaff  <blp@gnu.org>
86919         Fix link errors on Windows when close module is used.
86920         * modules/close: Add $(LIB_CLOSE) to Link section.
86921         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
86922         $(LIB_CLOSE) on Windows.
86924 2009-02-05  Jim Meyering  <meyering@redhat.com>
86926         still avoid unused-parameter warnings, but do it cleanly
86927         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
86928         (get_fs_usage): Cast to void instead.
86929         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
86930         (dev_from_mount_options, read_file_system_list): Cast to void.
86931         Prompted by Bruno Haible.
86933 2009-02-04  Jim Meyering  <meyering@redhat.com>
86935         fsusage.c: correct copyright year
86936         * lib/fsusage.c: Reflect year in which the change is pushed into
86938         avoid misc. warnings
86939         * lib/fsusage.c (UNUSED_PARAM): Define.
86940         (get_fs_usage): Mark parameter "disk" as unused.
86941         * lib/getugroups.c (getgrent): Use "void" in prototype.
86942         * lib/mountlist.c: Mark unused parameters.
86943         (read_file_system_list): Declare a local with "const".
86944         * lib/nanosleep.c (getnow): Declare static.
86945         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
86947         dirfd: set errno upon failure
86948         * lib/dirfd.c: Include <errno.h>.
86949         Set errno to ENOTSUP when returning -1.
86950         * modules/dirfd (Depends-on): Add errno.
86951         Suggested by John Kodis <kodis@comcast.net>.
86953 2009-02-01  Bruno Haible  <bruno@clisp.org>
86955         Don't assume sizeof (long) >= sizeof (void *).
86956         * lib/memcmp.c: Include stdint.h.
86957         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
86958         srcp2 to 'const byte *'.
86959         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
86960         types to uintptr_t.
86961         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
86962         * modules/memcmp (Depends-on): Add stdint.
86963         Reported by Ozkan Sezer <sezeroz@gmail.com>.
86965 2009-01-30  Eric Blake  <ebb9@byu.net>
86967         fix more require-before-expand issues
86968         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
86969         expand, AC_PROG_AWK.
86970         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
86972 2009-01-28  Eric Blake  <ebb9@byu.net>
86974         version-etc: use consistent URL formatting
86975         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
86976         Improve formatting.  Use fputs for string without %.
86978 2009-01-28  Jim Meyering  <meyering@redhat.com>
86980         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
86981         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
86982         "underquoted definition of NAME" from autoconf-2.59.
86984 2009-01-28  Bruno Haible  <bruno@clisp.org>
86986         * doc/gnulib.texi: Add "Obsolete modules" to index.
86988 2009-01-28  Jim Meyering  <meyering@redhat.com>
86990         useless-if-before-free: recognize more variants
86991         * build-aux/useless-if-before-free: Also recognize e.g.,
86992         if (NULL != p) free (p);
86994 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
86996         test-getaddrinfo: skip (don't fail) this test when there's no network
86997         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
86998         on the presumption that it means you lack network access.
87000 2009-01-26  Jim Meyering  <meyering@redhat.com>
87002         fflush: avoid warnings on modern systems
87003         * lib/fflush.c (rpl_fflush): Move declarations of locals,
87004         pos and result, into scopes where they're used.
87006 2009-01-26  Eric Blake  <ebb9@byu.net>
87008         Silence warning reintroduced by recent extensions patch.
87009         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
87010         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
87011         autoconf.
87013         Backport improved autoconf semantics of AC_DEFUN_ONCE.
87014         * m4/00gnulib.m4: New file.
87015         * gnulib-tool (func_get_filelist): Always use it.
87016         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
87017         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
87019 2009-01-25  Bruno Haible  <bruno@clisp.org>
87021         Make test-quotearg work on MacOS X and AIX.
87022         * tests/test-quotearg.sh: New file.
87023         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
87024         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
87025         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
87026         include <libintl.h>.
87027         (fake_locale): Remove variable.
87028         (gettext, dgettext, dcgettext): Remove functions.
87029         (main): Instead of setting a fake locale, set a real locale. Call
87030         textdomain and bindtextdomain.
87031         * modules/quotearg-tests (Files): Add the new files.
87032         (Depends-on): Add gettext, setenv, unsetenv.
87033         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
87034         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
87035         Augment TESTS_ENVIRONMENT.
87037 2009-01-25  Bruno Haible  <bruno@clisp.org>
87039         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
87040         fr_FR.ISO8859-1 locale on MacOS X.
87041         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
87042         ja_JP.eucJP locale on MacOS X.
87043         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
87044         zh_CN.GB18030 locale on MacOS X.
87046 2009-01-25  Bruno Haible  <bruno@clisp.org>
87048         Avoid link errors on MacOS X 10.3.
87049         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
87050         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
87052 2009-01-25  Bruno Haible  <bruno@clisp.org>
87054         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
87055         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
87056         * modules/pipe (Files): Remove m4/posix_spawn.m4.
87057         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
87058         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
87059         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
87060         posix_spawnattr_init, posix_spawnattr_setsigmask,
87061         posix_spawnattr_setflags, posix_spawnattr_destroy.
87063         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
87064         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
87065         * modules/execute (Files): Remove m4/posix_spawn.m4.
87066         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
87067         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
87068         posix_spawnattr_init, posix_spawnattr_setsigmask,
87069         posix_spawnattr_setflags, posix_spawnattr_destroy.
87071 2009-01-25  Bruno Haible  <bruno@clisp.org>
87073         * lib/glthread/threadlib.c: Include <stdlib.h>.
87075 2009-01-25  Bruno Haible  <bruno@clisp.org>
87077         * lib/glthread/threadlib.c (dummy): New declaration.
87079 2009-01-25  Bruno Haible  <bruno@clisp.org>
87081         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
87082         multibyte characters also for the GB18030 encoding. Don't crash when
87083         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
87085 2009-01-25  Bruno Haible  <bruno@clisp.org>
87087         Avoid redefining 'struct random_data' on OSF/1 5.1.
87088         * lib/stdlib.in.h: Include <random.h> if it exists.
87089         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
87090         HAVE_RANDOM_H. Include <random.h> when testing whether
87091         'struct random_data' exists.
87092         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
87094 2009-01-25  Bruno Haible  <bruno@clisp.org>
87096         Don't install charset.alias on MacOS X >= 10.3.
87097         * lib/localcharset.c (DARWIN7): New macro.
87098         (get_charset_aliases): Hardcode the result for Darwin7.
87099         * modules/localcharset (install-exec-local): Don't install
87100         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
87102 2009-01-25  Bruno Haible  <bruno@clisp.org>
87104         Don't install charset.alias on mingw and Cygwin.
87105         * modules/localcharset (install-exec-local): Don't install
87106         charset.alias on mingw and Cygwin, if the file does not yet exist.
87107         The result for these platforms is hardcoded in localcharset.c.
87109 2009-01-25  Bruno Haible  <bruno@clisp.org>
87111         Make it possible again to use AC_GNU_SOURCE together with gnulib.
87112         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
87113         before requiring AC_USE_SYSTEM_EXTENSIONS.
87115 2009-01-25  Jim Meyering  <meyering@redhat.com>
87117         c-strtod: avoid warnings
87118         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
87119         "assignment discards qualifiers from pointer target type" warnings.
87121 2009-01-24  Bruno Haible  <bruno@clisp.org>
87123         Add support for non-UTF-8 locales on MacOS X.
87124         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
87125         canonical encodings. For Darwin 7 and newer, don't map traditional
87126         encodings to UTF-8.
87127         Reported by Vincent Lefevre <vincent@vinc17.org>
87128         at <http://savannah.gnu.org/bugs/?25235>.
87130 2009-01-24  Bruno Haible  <bruno@clisp.org>
87132         * doc/gnulib.texi (Obsolete modules): New section.
87133         Reported by Mike Frysinger <vapier@gentoo.org>.
87135 2009-01-24  Bruno Haible  <bruno@clisp.org>
87137         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
87138         (%.dvi): New rule.
87140 2009-01-24  Bruno Haible  <bruno@clisp.org>
87142         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
87143         Reported by Eric Blake.
87145 2009-01-24  Bruno Haible  <bruno@clisp.org>
87147         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
87148         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
87149         Reported by Gary V. Vaughan <gary@gnu.org>.
87151 2009-01-24  Bruno Haible  <bruno@clisp.org>
87153         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
87155 2009-01-23  Bruno Haible  <bruno@clisp.org>
87157         Make c-strtod, c-strtold usable in libraries.
87158         * lib/c-strtod.c: Include string.h instead of xalloc.h.
87159         (C_STRTOD): Call strdup instead of xstrdup.
87160         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
87161         * modules/c-strtold (Depends-on): Likewise.
87162         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
87163         * NEWS: Mention the change.
87164         Reported by Michael Gold <mgold@ncf.ca>.
87166 2009-01-23  Jim Meyering  <meyering@redhat.com>
87168         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
87169         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
87170         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
87172 2009-01-23  Simon Josefsson  <simon@josefsson.org>
87174         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
87175         GNU CoreUtils.
87176         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
87177         * modules/version-etc (Description): Update.
87179 2009-01-22  Bruno Haible  <bruno@clisp.org>
87181         Cache the C locale object.
87182         * lib/c-strtod.c (c_locale_cache): New variable.
87183         (c_locale): New function.
87184         (C_STRTOD): Use it, and don't call freelocale.
87185         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
87186         Suggested by Paolo Bonzini.
87188 2009-01-21  Bruno Haible  <bruno@clisp.org>
87190         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
87191         conditions other than overflow.
87193 2009-01-21  Bruno Haible  <bruno@clisp.org>
87195         * lib/c-strtod.c: Include errno.h.
87196         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
87197         value from STRTOD_L and STRTOD.
87199 2009-01-21  Bruno Haible  <bruno@clisp.org>
87200         and Jim Meyering  <meyering@redhat.com>
87202         nanosleep: skip configure test (fail it) for apple universal builds
87203         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
87204         universal builds, assume that nanosleep does not work.
87205         * modules/nanosleep (Depends-on): Add multiarch.
87207         mktime: skip configure test (fail it) for apple universal builds
87208         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
87209         universal builds, assume that mktime does not work.
87210         * modules/mktime (Depends-on): Add multiarch.
87212 2009-01-21  Eric Blake  <ebb9@byu.net>
87214         multiarch: avoid expand-before-require warning
87215         * modules/multiarch (configure.ac): Require, rather than expand,
87216         gl_MULTIARCH.
87217         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
87218         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
87219         enforce that all clients require it.  Partial reversion of
87220         2008-12-29 patch.
87222         error: avoid expand-before-require warning
87223         * modules/errno (configure.ac): Require, rather than expand,
87224         gl_HEADER_ERRNO_H.
87225         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
87226         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
87227         enforce that all clients require it.
87229         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
87230         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
87231         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
87232         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
87234 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
87236         Revert:
87237         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
87239         regex: do not depend on obsolete modules.
87240         * modules/regex: Remove memcmp and memmove.
87242 2009-01-20  Bruno Haible  <bruno@clisp.org>
87244         Make the 'link' module link on Windows NT 4.
87245         * lib/link.c (_WIN32_WINNT): Don't define.
87246         (CreateHardLinkFuncType): New type.
87247         (CreateHardLinkFunc, initialized): New variables.
87248         (initialize): New function.
87249         (link): Invoke CreateHardLink indirectly through the function pointer.
87251 2009-01-20  Bruno Haible  <bruno@clisp.org>
87253         Fix compilation failure on mingw.
87254         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
87256 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
87258         * doc/c-strtod.texi: Mention a couple of restrictions.
87260 2009-01-20  Jim Meyering  <meyering@redhat.com>
87262         gettimeofday: move more declarations out of functions
87263         * lib/gettimeofday.c: Move extern declarations of tzset and
87264         gmtime out of containing functions.  Prompted by Bruno Haible.
87266 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
87268         regex: do not depend on obsolete modules.
87269         * modules/regex: Remove memcmp and memmove.
87271 2009-01-19  Bruno Haible  <bruno@clisp.org>
87273         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
87274         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
87275         gl_BIGENDIAN, not AC_C_BIGENDIAN.
87276         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
87277         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
87279 2009-01-19  Bruno Haible  <bruno@clisp.org>
87281         * tests/test-link.c: Include <errno.h>.
87282         (main): Exit with code 77 when a hard link cannot be created due to
87283         the file system.
87284         * tests/test-link.sh: Skip test when a hard link cannot be created due
87285         to the file system.
87286         Suggested by Eric Blake.
87288 2009-01-19  Martin Lambers  <marlam@marlam.de>
87290         * modules/link-tests: New file.
87291         * tests/test-link.sh: New file.
87292         * tests/test-link.c: New file.
87294 2009-01-19  Eric Blake  <ebb9@byu.net>
87296         doc: mention another function added in cygwin 1.7.0
87297         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
87298         Another new function in cygwin 1.7.
87300 2009-01-19  Bruno Haible  <bruno@clisp.org>
87302         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
87303         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
87304         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
87305         gl_BIGENDIAN, not AC_C_BIGENDIAN.
87306         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
87307         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
87308         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
87309         * m4/md4.m4 (gl_MD4): Likewise.
87310         * m4/md5.m4 (gl_MD5): Likewise.
87311         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
87312         * m4/sha1.m4 (gl_SHA1): Likewise.
87313         * m4/sha256.m4 (gl_SHA256): Likewise.
87314         * m4/sha512.m4 (gl_SHA512): Likewise.
87316 2009-01-19  Bruno Haible  <bruno@clisp.org>
87318         * modules/uniname/uniname-tests (Depends-on): Add progname.
87319         * tests/uniname/test-uninames.c: Include progname.h.
87320         (main): Call set_program_name.
87322         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
87323         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
87324         (main): Call set_program_name.
87326         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
87327         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
87328         (main): Call set_program_name.
87330         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
87331         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
87332         (main): Call set_program_name.
87334         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
87335         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
87336         (main): Call set_program_name.
87338         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
87339         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
87340         (main): Call set_program_name.
87342         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
87343         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
87344         (main): Call set_program_name.
87346         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
87347         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
87348         (main): Call set_program_name.
87350         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
87351         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
87352         (main): Call set_program_name.
87354 2009-01-19  Eric Blake  <ebb9@byu.net>
87356         test-unistd: test previous patch
87357         * tests/test-unistd.c: Test *_FILENO macros.
87359         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
87360         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
87361         Guarantee a definition.
87362         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
87363         * modules/unistd-safer (Depends-on): Add dependency on unistd.
87364         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
87365         * lib/dup-safer.c (STDERR_FILENO): Likewise.
87366         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
87367         Likewise.
87368         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
87369         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
87370         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
87371         Likewise.
87372         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
87373         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
87374         (STDERR_FILENO): Likewise.
87375         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
87376         (STDERR_FILENO): Likewise.
87377         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
87378         (STDERR_FILENO): Likewise.
87379         Reported by Elbert Pol.
87381 2009-01-19  Eric Blake  <ebb9@byu.net>
87383         doc: mention more functions added in cygwin 1.7.0
87384         * doc/posix-functions/abort.texi (abort): Update wording related
87385         to cygwin.
87386         * doc/posix-functions/daylight.texi (daylight): Likewise.
87387         * doc/posix-functions/optarg.texi (optarg): Likewise.
87388         * doc/posix-functions/optarg.texi (opterr): Likewise.
87389         * doc/posix-functions/optarg.texi (optind): Likewise.
87390         * doc/posix-functions/optarg.texi (optopt): Likewise.
87391         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
87392         worked in 1.5.x, and was withdrawn in 1.7.
87393         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
87394         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
87395         cygwin versions.
87396         * doc/posix-functions/perror.texi (perror): Likewise.
87397         * doc/posix-functions/printf.texi (printf): Likewise.
87398         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
87399         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
87400         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
87401         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
87402         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
87403         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
87404         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
87405         Likewise.
87406         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
87407         Likewise.
87408         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
87409         this function.
87410         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
87411         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
87412         Likewise.
87413         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
87414         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
87415         * doc/posix-functions/confstr.texi (confstr): Likewise.
87416         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
87417         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
87418         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
87419         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
87420         * doc/posix-functions/fputws.texi (fputws): Likewise.
87421         * doc/posix-functions/fwide.texi (fwide): Likewise.
87422         * doc/posix-functions/getwc.texi (getwc): Likewise.
87423         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
87424         * doc/posix-functions/putwc.texi (putwc): Likewise.
87425         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
87426         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
87427         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
87428         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
87429         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
87430         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
87431         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
87432         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
87433         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
87434         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
87435         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
87437 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
87439         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
87440         * lib/ioctl.c: Include <sys/ioctl.h>.
87442 2009-01-19  Simon Josefsson  <simon@josefsson.org>
87444         * modules/getdate-tests (Depends-on): Add progname.
87445         * tests/test-getdate.c: Use progname module, to avoid link errors
87446         on non-glibc systems.
87448 2009-01-18  Simon Josefsson  <simon@josefsson.org>
87450         * modules/filenamecat-tests (Depends-on): Add progname.
87451         * modules/fstrcmp-tests (Depends-on): Likewise.
87453         * tests/test-filenamecat.c: Use progname module, to avoid link
87454         errors on non-glibc systems.
87455         * tests/test-fstrcmp.c: Likewise.
87457 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
87459         gettimeofday: avoid warning: nested extern declaration of 'localtime'
87460         * lib/gettimeofday.c: Move extern declaration out of function.
87462 2009-01-18  Bruno Haible  <bruno@clisp.org>
87464         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
87465         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
87466         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
87468 2009-01-18  Bruno Haible  <bruno@clisp.org>
87470         * lib/strftime.c (MEMPCPY): Remove unused macro.
87471         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
87473 2009-01-18  Martin Lambers  <marlam@marlam.de>
87475         New module 'link'.
87476         * lib/unistd.in.h (link): New declaration.
87477         * lib/link.c: New file.
87478         * m4/link.m4: New file.
87479         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
87480         HAVE_LINK.
87481         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
87482         * modules/link: New file.
87483         * doc/posix-functions/link.texi: Mention the new module.
87485 2009-01-18  Bruno Haible  <bruno@clisp.org>
87487         * tests/test-avltree_list.c (main): Call set_program_name.
87488         * tests/test-avltree_oset.c (main): Likewise.
87489         * tests/test-obstack-printf.c: Include progname.h.
87490         (main): Call set_program_name.
87491         * tests/test-quotearg.c: Include progname.h.
87492         (main): Call set_program_name.
87493         * tests/test-xmemdup0.c: Include progname.h.
87494         (main): Call set_program_name.
87496 2009-01-18  Bruno Haible  <bruno@clisp.org>
87498         New module 'alphasort'.
87499         * lib/dirent.in.h (alphasort): New declaration.
87500         * lib/alphasort.c: New file, from glibc with modifications.
87501         * m4/alphasort.m4: New file.
87502         * modules/alphasort: New file.
87503         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
87504         HAVE_ALPHASORT.
87505         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
87506         HAVE_ALPHASORT.
87507         * doc/posix-functions/alphasort.texi: Mention the new module and the
87508         portability problems.
87510 2009-01-18  Bruno Haible  <bruno@clisp.org>
87512         New module 'scandir'.
87513         * lib/dirent.in.h (scandir): New declaration.
87514         * lib/scandir.c: New file, from glibc with modifications.
87515         * m4/scandir.m4: New file.
87516         * modules/scandir: New file.
87517         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
87518         HAVE_SCANDIR.
87519         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
87520         HAVE_SCANDIR.
87521         * doc/posix-functions/scandir.texi: Mention the new module and the
87522         portability problems.
87524 2009-01-17  Bruno Haible  <bruno@clisp.org>
87526         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
87527         Update documentation.
87528         (func_remove_suffix): Escape all dots in the suffix. Update
87529         documentation.
87530         (func_filter_filelist): Update documentation.
87531         Reported by Ralf Wildenhues.
87533 2009-01-17  Bruno Haible  <bruno@clisp.org>
87535         * modules/dprintf-posix-tests: New file.
87536         * tests/test-dprintf-posix.sh: New file.
87537         * tests/test-dprintf-posix.c: New file.
87539         New modules 'dprintf', 'dprintf-posix'.
87540         * lib/stdio.in.h (dprintf): New declaration.
87541         * lib/dprintf.c: New file.
87542         * m4/dprintf.m4: New file.
87543         * m4/dprintf-posix.m4: New file.
87544         * modules/dprintf: New file.
87545         * modules/dprintf-posix: New file.
87546         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
87547         HAVE_DPRINTF, REPLACE_DPRINTF.
87548         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
87549         HAVE_DPRINTF, REPLACE_DPRINTF.
87550         * doc/posix-functions/dprintf.texi: Mention the new modules.
87552 2009-01-17  Bruno Haible  <bruno@clisp.org>
87554         * modules/vdprintf-posix-tests: New file.
87555         * tests/test-vdprintf-posix.sh: New file.
87556         * tests/test-vdprintf-posix.c: New file.
87558         New modules 'vdprintf', 'vdprintf-posix'.
87559         * lib/stdio.in.h (vdprintf): New declaration.
87560         * lib/vdprintf.c: New file.
87561         * m4/vdprintf.m4: New file.
87562         * m4/vdprintf-posix.m4: New file.
87563         * modules/vdprintf: New file.
87564         * modules/vdprintf-posix: New file.
87565         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
87566         HAVE_VDPRINTF, REPLACE_VDPRINTF.
87567         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
87568         HAVE_VDPRINTF, REPLACE_VDPRINTF.
87569         * doc/posix-functions/vdprintf.texi: Mention the new modules.
87571 2009-01-17  Bruno Haible  <bruno@clisp.org>
87573         Fix replacement of fopen on mingw.
87574         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
87575         mingw.
87577 2009-01-17  Bruno Haible  <bruno@clisp.org>
87579         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
87580         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
87582 2009-01-17  Bruno Haible  <bruno@clisp.org>
87584         Avoid test-fflush2.sh failure on mingw.
87585         * tests/test-fflush2.c: Include binary-io.h.
87586         (main): Put standard input into binary mode.
87587         * modules/fflush-tests (Depends-on): Add binary-io.
87589 2009-01-17  Bruno Haible  <bruno@clisp.org>
87591         * lib/wchar.in.h: In another particular situation, include only the
87592         system's <wchar.h> file.
87593         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
87594         Reported by Albert Chin-A-Young <china@thewrittenword.com>
87595         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
87597 2009-01-17  Bruno Haible  <bruno@clisp.org>
87599         Support for stripping executables in --enable-relocatable.
87600         * build-aux/install-reloc: Expect one more argument, or an environment
87601         variable RELOC_STRIP_PROG. If set, strip the destination program and
87602         its wrapper.
87603         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
87604         RELOC_STRIP_PROG.
87605         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
87606         to set RELOCATABLE_STRIP.
87607         * NEWS: Mention the new Makefile requirement.
87609 2009-01-17  Bruno Haible  <bruno@clisp.org>
87611         * build-aux/install-reloc: Remove debugging information left over by
87612         C compiler on MacOS X.
87614 2009-01-17  Bruno Haible  <bruno@clisp.org>
87616         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
87617         * lib/progreloc.c (find_executable): Fix type of pointer passed to
87618         _NSGetExecutablePath.
87620 2009-01-16  Jim Meyering  <meyering@redhat.com>
87622         strerror: avoid warnings about discarding "const"
87623         * lib/strerror.c (rpl_strerror): Instead of returning a const
87624         string from each and every "case", use a variable, and add a single
87625         cast after the switch.
87627 2009-01-16  Albert Chin-A-Young  <china@thewrittenword.com>
87629         * lib/arpa_inet.in.h: Add extern "C" block for C++.
87631 2009-01-16  Bruno Haible  <bruno@clisp.org>
87633         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
87634         array initializer syntax that also works in C++ mode.
87635         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
87637 2009-01-16  Jim Meyering  <meyering@redhat.com>
87639         poll: suppress a warning
87640         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
87641         to ignore "...unsigned expression < 0 is always false" warnings.
87643 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
87645         poll: remove declarations of unused variables
87646         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
87647         sockbuf and optlen.
87649 2009-01-15  Bruno Haible  <bruno@clisp.org>
87651         Make fflush-after-ungetc POSIX compliant on BSD systems.
87652         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
87653         (clear_ungetc_buffer): Implement also for other systems.
87654         (rpl_fflush): On glibc systems, invoke
87655         clear_ungetc_buffer_preserving_position. Otherwise, invoke
87656         clear_ungetc_buffer after fetching the stream's position, not before.
87658 2009-01-15  Bruno Haible  <bruno@clisp.org>
87660         Make fflush-after-ungetc POSIX compliant on glibc systems.
87661         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
87662         after ungetc.
87663         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
87664         (rpl_fflush): On glibc systems, simply call the system's fflush
87665         function after clearing the ungetc buffer.
87666         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
87667         Instead, lseek only to the end of file, then use the system's fseeko
87668         for the rest. On glibc systems, reset the EOF indicator bit.
87670 2009-01-15  Jim Meyering  <meyering@redhat.com>
87672         openmp.m4: revert quote-adding change, for portability to older autoconf
87673         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
87674         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
87675         Simon Josefsson noticed the problem when using autoconf-2.61.
87677 2009-01-15  Bruno Haible  <bruno@clisp.org>
87679         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
87680         * tests/test-fflush2.c (ASSERT): Always fail.
87681         (main): Add two tests for fflush() after ungetc(), taking into account
87682         the Austin Group's clarification.
87683         Suggested by Eric Blake.
87685 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
87687         mktime.m4: remove K&R-style function prototypes
87688         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
87689         for the Sun C++ compiler.
87691 2009-01-14  Bruno Haible  <bruno@clisp.org>
87693         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
87694         while including <wchar.h>.
87695         * lib/wchar.in.h: In two particular situations on HP-UX, include only
87696         the system's <wchar.h> file.
87697         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
87699 2009-01-14  Bruno Haible  <bruno@clisp.org>
87701         * m4/csharp.m4: Don't mention gettext on the serial number line.
87702         * m4/csharpexec.m4: Likewise.
87703         * m4/eaccess.m4: Likewise.
87704         * m4/javaexec.m4: Likewise.
87705         * m4/sig_atomic_t.m4: Likewise.
87706         * m4/tmpdir.m4: Likewise.
87707         * m4/intldir.m4: Bump gettext version.
87708         * m4/lib-ld.m4: Likewise.
87710 2009-01-14  Bruno Haible  <bruno@clisp.org>
87712         * lib/progname.c (set_program_name): Add more comments.
87713         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
87715 2009-01-14  Simon Josefsson  <simon@josefsson.org>
87717         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
87718         were sys/stat.h does not define it.
87720 2009-01-14  Jim Meyering  <meyering@redhat.com>
87722         many *.m4 files: improve m4 quoting
87723         99% of this change was performed by running the following commands:
87724         git ls-files | grep '\.m4$' | xargs perl -pi \
87725           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
87726           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
87727           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
87728           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
87729         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
87730         The remainder were to add Copyright dates, increment serial numbers,
87731         undo some changes in comments, exclude m4/intl.m4, and add quotes
87732         around the "1" in ",1" where the unusual spacing prohibited the
87733         above regexps from doing the job.  For more details, see
87734         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
87735         * m4/acl.m4: Modified.
87736         * m4/afs.m4: Likewise.
87737         * m4/alloca.m4: Likewise.
87738         * m4/argp.m4: Likewise.
87739         * m4/argz.m4: Likewise.
87740         * m4/atexit.m4: Likewise.
87741         * m4/bison-i18n.m4: Likewise.
87742         * m4/bison.m4: Likewise.
87743         * m4/byteswap.m4: Likewise.
87744         * m4/c-stack.m4: Likewise.
87745         * m4/c-strtod.m4: Likewise.
87746         * m4/calloc.m4: Likewise.
87747         * m4/canonicalize-lgpl.m4: Likewise.
87748         * m4/chown.m4: Likewise.
87749         * m4/clock_time.m4: Likewise.
87750         * m4/codeset.m4: Likewise.
87751         * m4/copy-file.m4: Likewise.
87752         * m4/csharp.m4: Likewise.
87753         * m4/csharpcomp.m4: Likewise.
87754         * m4/csharpexec.m4: Likewise.
87755         * m4/d-ino.m4: Likewise.
87756         * m4/d-type.m4: Likewise.
87757         * m4/dirfd.m4: Likewise.
87758         * m4/double-slash-root.m4: Likewise.
87759         * m4/eaccess.m4: Likewise.
87760         * m4/eealloc.m4: Likewise.
87761         * m4/environ.m4: Likewise.
87762         * m4/errno_h.m4: Likewise.
87763         * m4/euidaccess.m4: Likewise.
87764         * m4/execute.m4: Likewise.
87765         * m4/fatal-signal.m4: Likewise.
87766         * m4/fchdir.m4: Likewise.
87767         * m4/fcntl_h.m4: Likewise.
87768         * m4/fileblocks.m4: Likewise.
87769         * m4/filenamecat.m4: Likewise.
87770         * m4/findprog.m4: Likewise.
87771         * m4/flexmember.m4: Likewise.
87772         * m4/fnmatch.m4: Likewise.
87773         * m4/fopen.m4: Likewise.
87774         * m4/fpending.m4: Likewise.
87775         * m4/fprintf-posix.m4: Likewise.
87776         * m4/free.m4: Likewise.
87777         * m4/frexp.m4: Likewise.
87778         * m4/frexpl.m4: Likewise.
87779         * m4/fsusage.m4: Likewise.
87780         * m4/ftruncate.m4: Likewise.
87781         * m4/gc-camellia.m4: Likewise.
87782         * m4/gc-random.m4: Likewise.
87783         * m4/gc.m4: Likewise.
87784         * m4/getaddrinfo.m4: Likewise.
87785         * m4/getcwd-abort-bug.m4: Likewise.
87786         * m4/getcwd-path-max.m4: Likewise.
87787         * m4/getdate.m4: Likewise.
87788         * m4/getdomainname.m4: Likewise.
87789         * m4/getgroups.m4: Likewise.
87790         * m4/gethostname.m4: Likewise.
87791         * m4/gethrxtime.m4: Likewise.
87792         * m4/getline.m4: Likewise.
87793         * m4/getloadavg.m4: Likewise.
87794         * m4/getndelim2.m4: Likewise.
87795         * m4/getpass.m4: Likewise.
87796         * m4/gettext.m4: Likewise.
87797         * m4/gettime.m4: Likewise.
87798         * m4/gettimeofday.m4: Likewise.
87799         * m4/gnulib-common.m4: Likewise.
87800         * m4/group-member.m4: Likewise.
87801         * m4/host-os.m4: Likewise.
87802         * m4/iconv.m4: Likewise.
87803         * m4/iconv_open.m4: Likewise.
87804         * m4/inet_ntop.m4: Likewise.
87805         * m4/inet_pton.m4: Likewise.
87806         * m4/inline.m4: Likewise.
87807         * m4/intldir.m4: Likewise.
87808         * m4/intlmacosx.m4: Likewise.
87809         * m4/intmax.m4: Likewise.
87810         * m4/intmax_t.m4: Likewise.
87811         * m4/inttypes.m4: Likewise.
87812         * m4/inttypes_h.m4: Likewise.
87813         * m4/inttypes-pri.m4: Likewise.
87814         * m4/isapipe.m4: Likewise.
87815         * m4/isnand.m4: Likewise.
87816         * m4/isnanf.m4: Likewise.
87817         * m4/isnanl.m4: Likewise.
87818         * m4/javacomp.m4: Likewise.
87819         * m4/javaexec.m4: Likewise.
87820         * m4/jm-winsz1.m4: Likewise.
87821         * m4/jm-winsz2.m4: Likewise.
87822         * m4/lchown.m4: Likewise.
87823         * m4/lcmessage.m4: Likewise.
87824         * m4/ldexpl.m4: Likewise.
87825         * m4/lib-ld.m4: Likewise.
87826         * m4/lib-link.m4: Likewise.
87827         * m4/libsigsegv.m4: Likewise.
87828         * m4/link-follow.m4: Likewise.
87829         * m4/localcharset.m4: Likewise.
87830         * m4/locale-fr.m4: Likewise.
87831         * m4/locale-ja.m4: Likewise.
87832         * m4/locale-tr.m4: Likewise.
87833         * m4/locale-zh.m4: Likewise.
87834         * m4/lock.m4: Likewise.
87835         * m4/longlong.m4: Likewise.
87836         * m4/ls-mntd-fs.m4: Likewise.
87837         * m4/lstat.m4: Likewise.
87838         * m4/malloc.m4: Likewise.
87839         * m4/mathl.m4: Likewise.
87840         * m4/mbrtowc.m4: Likewise.
87841         * m4/mbstate_t.m4: Likewise.
87842         * m4/mbswidth.m4: Likewise.
87843         * m4/memchr.m4: Likewise.
87844         * m4/memcmp.m4: Likewise.
87845         * m4/memcpy.m4: Likewise.
87846         * m4/memmem.m4: Likewise.
87847         * m4/memmove.m4: Likewise.
87848         * m4/mempcpy.m4: Likewise.
87849         * m4/memrchr.m4: Likewise.
87850         * m4/memset.m4: Likewise.
87851         * m4/minmax.m4: Likewise.
87852         * m4/mkdir-slash.m4: Likewise.
87853         * m4/mkdtemp.m4: Likewise.
87854         * m4/mktime.m4: Likewise.
87855         * m4/mmap-anon.m4: Likewise.
87856         * m4/mountlist.m4: Likewise.
87857         * m4/nanosleep.m4: Likewise.
87858         * m4/nls.m4: Likewise.
87859         * m4/nocrash.m4: Likewise.
87860         * m4/open.m4: Likewise.
87861         * m4/openat.m4: Likewise.
87862         * m4/openmp.m4: Likewise.
87863         * m4/pathmax.m4: Likewise.
87864         * m4/perl.m4: Likewise.
87865         * m4/physmem.m4: Likewise.
87866         * m4/pipe.m4: Likewise.
87867         * m4/po.m4: Likewise.
87868         * m4/poll.m4: Likewise.
87869         * m4/posixtm.m4: Likewise.
87870         * m4/posixver.m4: Likewise.
87871         * m4/printf-frexp.m4: Likewise.
87872         * m4/printf-frexpl.m4: Likewise.
87873         * m4/printf-posix.m4: Likewise.
87874         * m4/printf-posix-rpl.m4: Likewise.
87875         * m4/printf.m4: Likewise.
87876         * m4/progtest.m4: Likewise.
87877         * m4/putenv.m4: Likewise.
87878         * m4/readline.m4: Likewise.
87879         * m4/readlink.m4: Likewise.
87880         * m4/readutmp.m4: Likewise.
87881         * m4/realloc.m4: Likewise.
87882         * m4/regex.m4: Likewise.
87883         * m4/relocatable.m4: Likewise.
87884         * m4/relocatable-lib.m4: Likewise.
87885         * m4/rename-dest-slash.m4: Likewise.
87886         * m4/rename.m4: Likewise.
87887         * m4/rmdir-errno.m4: Likewise.
87888         * m4/rmdir.m4: Likewise.
87889         * m4/roundf.m4: Likewise.
87890         * m4/roundl.m4: Likewise.
87891         * m4/rpmatch.m4: Likewise.
87892         * m4/save-cwd.m4: Likewise.
87893         * m4/selinux-selinux-h.m4: Likewise.
87894         * m4/setenv.m4: Likewise.
87895         * m4/settime.m4: Likewise.
87896         * m4/sig2str.m4: Likewise.
87897         * m4/sig_atomic_t.m4: Likewise.
87898         * m4/signalblocking.m4: Likewise.
87899         * m4/signbit.m4: Likewise.
87900         * m4/sigpipe.m4: Likewise.
87901         * m4/sockets.m4: Likewise.
87902         * m4/sockpfaf.m4: Likewise.
87903         * m4/st_dm_mode.m4: Likewise.
87904         * m4/stat-time.m4: Likewise.
87905         * m4/stdbool.m4: Likewise.
87906         * m4/stdint.m4: Likewise.
87907         * m4/stdint_h.m4: Likewise.
87908         * m4/stpcpy.m4: Likewise.
87909         * m4/stpncpy.m4: Likewise.
87910         * m4/strcase.m4: Likewise.
87911         * m4/strchrnul.m4: Likewise.
87912         * m4/strcspn.m4: Likewise.
87913         * m4/strdup.m4: Likewise.
87914         * m4/strftime.m4: Likewise.
87915         * m4/strndup.m4: Likewise.
87916         * m4/strnlen.m4: Likewise.
87917         * m4/strpbrk.m4: Likewise.
87918         * m4/strptime.m4: Likewise.
87919         * m4/strsep.m4: Likewise.
87920         * m4/strtod.m4: Likewise.
87921         * m4/strtoimax.m4: Likewise.
87922         * m4/strtok_r.m4: Likewise.
87923         * m4/strtol.m4: Likewise.
87924         * m4/strtoll.m4: Likewise.
87925         * m4/strtoul.m4: Likewise.
87926         * m4/strtoull.m4: Likewise.
87927         * m4/strtoumax.m4: Likewise.
87928         * m4/strverscmp.m4: Likewise.
87929         * m4/threadlib.m4: Likewise.
87930         * m4/timegm.m4: Likewise.
87931         * m4/tm_gmtoff.m4: Likewise.
87932         * m4/tmpdir.m4: Likewise.
87933         * m4/tmpfile.m4: Likewise.
87934         * m4/tzset.m4: Likewise.
87935         * m4/uintmax_t.m4: Likewise.
87936         * m4/unlinkdir.m4: Likewise.
87937         * m4/unlocked-io.m4: Likewise.
87938         * m4/uptime.m4: Likewise.
87939         * m4/userspec.m4: Likewise.
87940         * m4/utimbuf.m4: Likewise.
87941         * m4/utime.m4: Likewise.
87942         * m4/utimes-null.m4: Likewise.
87943         * m4/utimes.m4: Likewise.
87944         * m4/vararrays.m4: Likewise.
87945         * m4/vasnprintf.m4: Likewise.
87946         * m4/vfprintf-posix.m4: Likewise.
87947         * m4/vprintf-posix.m4: Likewise.
87948         * m4/wait-process.m4: Likewise.
87949         * m4/wchar_t.m4: Likewise.
87950         * m4/wint_t.m4: Likewise.
87951         * m4/write-any-file.m4: Likewise.
87952         * m4/yield.m4: Likewise.
87954 2009-01-13  Bruno Haible  <bruno@clisp.org>
87956         Avoid test-copy-file.sh failures when ACL support insufficient.
87957         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
87958         TESTS_ENVIRONMENT.
87959         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
87960         Reported by Jim Meyering.
87962 2009-01-13  Bruno Haible  <bruno@clisp.org>
87964         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
87965         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
87966         * modules/unistdio/u8-printf-parse (Files): Likewise.
87967         * modules/unistdio/u32-printf-parse (Files): Likewise.
87968         * modules/unistdio/ulc-printf-parse (Files): Likewise.
87970 2009-01-13  Simon Josefsson  <simon@josefsson.org>
87972         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
87973         and m4/inttypes_h.m4 too.
87975 2009-01-12  Eric Blake  <ebb9@byu.net>
87977         tests: IRIX 6.2 cc can't compile -0.0 into .data
87978         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
87979         rather than at compile-time.
87980         * tests/test-floorl.c (minus_zero): Likewise.
87981         * tests/test-frexpl.c (minus_zero): Likewise.
87982         * tests/test-isnan.c (minus_zerol): Likewise.
87983         * tests/test-isnanl.h (minus_zero): Likewise.
87984         * tests/test-ldexpl.c (minus_zero): Likewise.
87985         * tests/test-roundl.c (minus_zero): Likewise.
87986         * tests/test-signbit.c (minus_zerol): Likewise.
87987         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
87988         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
87989         * tests/test-truncl.c (minus_zero): Likewise.
87990         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
87991         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
87992         Reported by Tom G. Christensen and Nelson H. F. Beebe.
87994 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
87996         regex: fix glibc bug 9697
87997         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
87998         handling.
88000 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
88002         regex: fix glibc bug 697
88003         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
88004         being NULL also if there are no backreferences.
88006 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
88008         regex: merge glibc changes
88009         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
88010         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
88011         re_string_skip_chars, re_string_reconstruct): Likewise.
88012         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
88014 2009-01-07  Jim Meyering  <meyering@redhat.com>
88016         poll: filter through cppi
88017         * lib/poll.c: Indent cpp directives to reflect nesting.
88019 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
88021         poll: don't return uninitialized
88022         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
88024 2009-01-06  Jeremy Olexa  <darkside@gentoo.org>  (tiny change)
88026         avoid compile failure on AIX 6.1
88027         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
88028         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
88030 2009-01-04  Jim Meyering  <meyering@redhat.com>
88032         remove duplicate inclusion of <stdio.h>
88033         * tests/test-fprintf-posix.c: Likewise.
88034         * tests/test-printf-posix.c: Likewise.
88035         * tests/test-snprintf-posix.c: Likewise.
88036         * tests/test-sprintf-posix.c: Likewise.
88037         * tests/test-vasprintf-posix.c: Likewise.
88038         * tests/test-vfprintf-posix.c: Likewise.
88039         * tests/test-vprintf-posix.c: Likewise.
88040         * tests/test-vsnprintf-posix.c: Likewise.
88041         * tests/test-vsprintf-posix.c: Likewise.
88043 2009-01-03  Jim Meyering  <meyering@redhat.com>
88045         gnulib-tool: fix sed-based filtering
88046         * gnulib-tool (func_filter_filelist): Remove extra backslash
88047         in sed_fff_filter definition.
88049 2009-01-02  Jim Meyering  <meyering@redhat.com>
88051         strftime: avoid compilation failure on Solaris 2.6
88052         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
88053         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
88054         Don't #define mbrlen or mbsinit, since now they're guaranteed to
88055         be available.  Reported by Tom G. Christensen.  Details in
88056         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
88058 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88059             Bruno Haible  <bruno@clisp.org>
88061         Speed up gnulib-tool by doing more string processing through shell
88062         built-ins.
88063         * gnulib-tool (fast_func_append): New variable.
88064         (func_remove_prefix, func_remove_suffix): New functions.
88065         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
88066         (func_filter_filelist): New function.
88067         (func_get_dependencies): Use func_remove_suffix instead of sed.
88068         (func_get_automake_snippet): Use func_filter_filelist instead of a
88069         subshell and sed invocation.
88071 2009-01-01  Bruno Haible  <bruno@clisp.org>
88073         Fix a security bug.
88074         * gnulib-tool (func_import, import, update): Don't allow the characters
88075         '"', '$', '`', '\' in macro arguments that become part of commands that
88076         are evaluated.
88078 2009-01-01  Bruno Haible  <bruno@clisp.org>
88080         * gnulib-tool (func_reset_sigpipe): Add more comments.
88082 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88084         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
88085         func_emit_tests_Makefile_am, func_import): Abort loops early if we
88086         already know the answer.
88088 2009-01-01  Jim Meyering  <meyering@redhat.com>
88090         * lib/version-etc.c (version_etc_va): Update copyright year.
88092 2008-12-30  Bruno Haible  <bruno@clisp.org>
88094         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
88095         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
88096         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
88098 2008-12-29  Eric Blake  <ebb9@byu.net>
88100         multiarch: avoid autoconf AC_REQUIRE bug
88101         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
88102         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
88103         2.63 and older.
88104         Reported by Bruno Haible, and analyzed in
88105         http://lists.gnu.org/r/bug-autoconf/2008-12/msg00039.html
88107 2008-12-29  Bruno Haible  <bruno@clisp.org>
88109         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
88110         files in subdirectories correctly.
88111         Reported by Ralf Wildenhues.
88113 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88115         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
88116         rather than 'join FILE -', for Solaris join.
88118 2008-12-29  Bruno Haible  <bruno@clisp.org>
88120         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
88121         quoting.
88122         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
88123         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
88124         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
88125         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
88126         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
88127         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
88128         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
88129         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
88130         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
88131         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
88132         * m4/nls.m4 (AM_NLS): Likewise.
88133         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
88134         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
88135         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
88136         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
88137         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
88138         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
88139         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
88140         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
88141         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
88142         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
88143         * m4/xsize.m4 (gl_XSIZE): Likewise.
88144         Suggested by Jim Meyering.
88146 2008-11-17  Bruce Korb  <bkorb@gnu.org>
88148         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
88149         * lib/parse-duration.c: use a switch instead of cascading if's.
88151 2008-12-29  Eric Blake  <ebb9@byu.net>
88153         wchar.h: supply WEOF on Irix 5.3
88154         * lib/wchar.in.h (wint_t): Also supply WEOF.
88155         * lib/wctype.in.h (wint_t): Likewise.
88156         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
88157         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
88158         Reported by Tom G. Christensen.
88160 2008-12-26  Bruno Haible  <bruno@clisp.org>
88162         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
88163         i486, i586, i686.
88165 2008-12-26  Bruno Haible  <bruno@clisp.org>
88167         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
88169 2008-12-26  Bruno Haible  <bruno@clisp.org>
88171         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
88172         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
88173         not __STDC_CONSTANT_MACROS.
88174         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
88176 2008-12-25  Bruno Haible  <bruno@clisp.org>
88178         Add support for universal builds to vasnprintf.
88179         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
88180         universal builds, guess no.
88181         * modules/vasnprintf-posix (Depends-on): Add multiarch.
88182         * modules/vasprintf-posix (Depends-on): Likewise.
88183         * modules/fprintf-posix (Depends-on): Likewise.
88184         * modules/vfprintf-posix (Depends-on): Likewise.
88185         * modules/snprintf-posix (Depends-on): Likewise.
88186         * modules/vsnprintf-posix (Depends-on): Likewise.
88187         * modules/sprintf-posix (Depends-on): Likewise.
88188         * modules/vsprintf-posix (Depends-on): Likewise.
88189         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
88190         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
88191         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
88192         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
88193         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
88194         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
88195         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
88197         Add support for universal builds to <inttypes.h>.
88198         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
88199         _SCNu64_PREFIX): In Apple
88200         universal builds, define directly, using _LP64.
88201         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
88202         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
88203         * modules/inttypes (Depends-on): Add multiarch.
88204         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
88206         Add support for universal builds to <stdint.h>.
88207         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
88208         universal builds, define directly, using _LP64.
88209         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
88210         Apple universal builds, don't test for the size and suffix of ptrdiff_t
88211         and size_t.
88212         * modules/stdint (Depends-on): Add multiarch.
88213         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
88215         New module 'multiarch'.
88216         * modules/multiarch: New file.
88217         * m4/multiarch.m4: New file.
88219 2008-12-25  Bruno Haible  <bruno@clisp.org>
88221         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
88223 2008-12-25  Bruno Haible  <bruno@clisp.org>
88225         * modules/btowc (License): Relicense under LGPLv2+.
88226         * modules/mbsinit (License): Likewise.
88227         * modules/mbrtowc (License): Likewise.
88228         * modules/wcrtomb (License): Likewise.
88229         * modules/streq (License): Likewise.
88230         Reported by David Lutterkort <lutter@redhat.com>.
88232 2008-12-23  Bruno Haible  <bruno@clisp.org>
88234         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
88236 2008-12-23  Bruno Haible  <bruno@clisp.org>
88238         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
88239         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
88240         GETADDRINFO_LIB, not in LIBS.
88241         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
88242         * modules/canon-host (Link): Likewise.
88243         * NEWS: Mention the change.
88244         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
88245         GETADDRINFO_LIB.
88247 2008-12-22  Bruno Haible  <bruno@clisp.org>
88249         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
88250         * doc/posix-functions/iswalpha_l.texi: Likewise.
88251         * doc/posix-functions/iswblank_l.texi: Likewise.
88252         * doc/posix-functions/iswcntrl_l.texi: Likewise.
88253         * doc/posix-functions/iswctype_l.texi: Likewise.
88254         * doc/posix-functions/iswdigit_l.texi: Likewise.
88255         * doc/posix-functions/iswgraph_l.texi: Likewise.
88256         * doc/posix-functions/iswlower_l.texi: Likewise.
88257         * doc/posix-functions/iswprint_l.texi: Likewise.
88258         * doc/posix-functions/iswpunct_l.texi: Likewise.
88259         * doc/posix-functions/iswspace_l.texi: Likewise.
88260         * doc/posix-functions/iswupper_l.texi: Likewise.
88261         * doc/posix-functions/iswxdigit_l.texi: Likewise.
88262         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
88263         * doc/posix-functions/open_wmemstream.texi: Likewise.
88264         * doc/posix-functions/swscanf.texi: Likewise.
88265         * doc/posix-functions/towctrans_l.texi: Likewise.
88266         * doc/posix-functions/towlower.texi: Likewise.
88267         * doc/posix-functions/towlower_l.texi: Likewise.
88268         * doc/posix-functions/towupper.texi: Likewise.
88269         * doc/posix-functions/towupper_l.texi: Likewise.
88270         * doc/posix-functions/vfwprintf.texi: Likewise.
88271         * doc/posix-functions/vfwscanf.texi: Likewise.
88272         * doc/posix-functions/vswscanf.texi: Likewise.
88273         * doc/posix-functions/vwprintf.texi: Likewise.
88274         * doc/posix-functions/vwscanf.texi: Likewise.
88275         * doc/posix-functions/wcpcpy.texi: Likewise.
88276         * doc/posix-functions/wcpncpy.texi: Likewise.
88277         * doc/posix-functions/wcscasecmp.texi: Likewise.
88278         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
88279         * doc/posix-functions/wcscoll_l.texi: Likewise.
88280         * doc/posix-functions/wcsdup.texi: Likewise.
88281         * doc/posix-functions/wcsncasecmp.texi: Likewise.
88282         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
88283         * doc/posix-functions/wcsnlen.texi: Likewise.
88284         * doc/posix-functions/wcsnrtombs.texi: Likewise.
88285         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
88286         * doc/posix-functions/wctrans_l.texi: Likewise.
88287         * doc/posix-functions/wctype_l.texi: Likewise.
88288         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
88289         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
88290         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
88291         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
88292         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
88293         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
88294         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
88295         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
88296         * doc/glibc-functions/wcschrnul.texi: Likewise.
88297         * doc/glibc-functions/wcsftime_l.texi: Likewise.
88298         * doc/glibc-functions/wcstod_l.texi: Likewise.
88299         * doc/glibc-functions/wcstof_l.texi: Likewise.
88300         * doc/glibc-functions/wcstol_l.texi: Likewise.
88301         * doc/glibc-functions/wcstold_l.texi: Likewise.
88302         * doc/glibc-functions/wcstoll_l.texi: Likewise.
88303         * doc/glibc-functions/wcstoq.texi: Likewise.
88304         * doc/glibc-functions/wcstoul_l.texi: Likewise.
88305         * doc/glibc-functions/wcstoull_l.texi: Likewise.
88306         * doc/glibc-functions/wcstouq.texi: Likewise.
88307         * doc/glibc-functions/wmempcpy.texi: Likewise.
88309 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
88310             Eric Blake  <ebb9@byu.net>
88311             Paolo Bonzini  <bonzini@gnu.org>
88312             Bruno Haible  <bruno@clisp.org>
88314         Make c-stack work on Haiku.
88315         * lib/c-stack.c (SA_ONSTACK): Define fallback.
88316         (c_stack_action): Use SA_ONSTACK flag.
88318 2008-12-22  Bruno Haible  <bruno@clisp.org>
88320         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
88322 2008-12-22  Bruno Haible  <bruno@clisp.org>
88324         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
88325         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
88326         being overridden.
88327         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
88328         New macros.
88329         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
88330         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
88331         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
88332         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
88334 2008-12-22  Bruno Haible  <bruno@clisp.org>
88336         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
88337         from test code.
88339 2008-12-22  Eric Blake  <ebb9@byu.net>
88341         Avoid gcc warnings on cygwin.
88342         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
88343         Avoid unused variable.
88344         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
88345         Likewise.
88347 2008-12-22  Bruno Haible  <bruno@clisp.org>
88349         Remove HAVE_MBRTOWC conditionals.
88350         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
88351         (mbscasecmp): Assume mbrtowc function.
88352         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
88353         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
88354         * lib/mbschr.c: Include mbuiter.h unconditionally.
88355         (mbschr): Assume mbrtowc function.
88356         * lib/mbscspn.c: Include mbuiter.h unconditionally.
88357         (mbscspn): Assume mbrtowc function.
88358         * lib/mbslen.c: Include mbuiter.h unconditionally.
88359         (mbslen): Assume mbrtowc function.
88360         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
88361         (mbsncasecmp): Assume mbrtowc function.
88362         * lib/mbsnlen.c: Include mbiter.h unconditionally.
88363         (mbsnlen): Assume mbrtowc function.
88364         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
88365         (mbspbrk): Assume mbrtowc function.
88366         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
88367         (mbspcasecmp): Assume mbrtowc function.
88368         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
88369         (mbsrchr): Assume mbrtowc function.
88370         * lib/mbssep.c: Include mbuiter.h unconditionally.
88371         (mbssep): Assume mbrtowc function.
88372         * lib/mbsspn.c: Include mbuiter.h unconditionally.
88373         (mbsspn): Assume mbrtowc function.
88374         * lib/mbsstr.c: Include mbuiter.h unconditionally.
88375         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
88376         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
88377         (mbstok_r): Assume mbrtowc function.
88378         * lib/propername.c: Include mbuiter.h unconditionally.
88379         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
88380         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
88381         (trim2): Assume mbrtowc function.
88382         * lib/mbswidth.c (mbsinit): Remove fallback definition.
88383         (mbsnwidth): Assume mbrtowc function.
88384         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
88385         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
88386         fallback definitions.
88387         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
88389 2008-12-22  Bruno Haible  <bruno@clisp.org>
88391         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
88393 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
88395         * modules/regex: Request emulations for the mb*/wc* functions we need.
88396         * m4/regex.m4: Don't look for those functions here.
88397         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
88399 2008-12-22  Bruno Haible  <bruno@clisp.org>
88401         * modules/fnmatch (Depends-on): Remove duplicated dependency.
88403 2008-12-21  Bruno Haible  <bruno@clisp.org>
88405         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
88406         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
88407         (Include): Remove conditionalization.
88408         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
88409         (Include): Remove conditionalization.
88410         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
88411         (Include): Remove conditionalization.
88412         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
88413         * m4/mbfile.m4 (gl_MBFILE): Likewise.
88414         * NEWS: Mention the change.
88415         Reported by Alan Hourihane <alanh@fairlite.co.uk>
88416         via Sergey Poznyakoff <gray@gnu.org.ua>.
88418 2008-12-21  Bruno Haible  <bruno@clisp.org>
88420         * MODULES.html.sh (Extended multibyte and wide character utilities
88421         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
88422         wcrtomb, wcsrtombs.
88423         (Support for systems lacking POSIX:2008): Add accept, bind, close,
88424         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
88425         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
88426         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
88428 2008-12-21  Bruno Haible  <bruno@clisp.org>
88430         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
88432 2008-12-21  Bruno Haible  <bruno@clisp.org>
88434         * modules/wcsnrtombs-tests: New file.
88435         * tests/test-wcsnrtombs1.sh: New file.
88436         * tests/test-wcsnrtombs2.sh: New file.
88437         * tests/test-wcsnrtombs3.sh: New file.
88438         * tests/test-wcsnrtombs4.sh: New file.
88439         * tests/test-wcsnrtombs.c: New file.
88441         New module 'wcsnrtombs'.
88442         * lib/wchar.in.h (wcsnrtombs): New declaration.
88443         * lib/wcsnrtombs.c: New file.
88444         * lib/wcsrtombs-state.c: New file.
88445         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
88446         (internal_state): Remove variable.
88447         * m4/wcsnrtombs.m4: New file.
88448         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
88449         compilation units.
88450         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
88451         HAVE_WCSNRTOMBS.
88452         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
88453         HAVE_WCSNRTOMBS.
88454         * modules/wcsnrtombs: New file.
88455         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
88456         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
88458 2008-12-21  Bruno Haible  <bruno@clisp.org>
88460         * modules/wcsrtombs-tests: New file.
88461         * tests/test-wcsrtombs1.sh: New file.
88462         * tests/test-wcsrtombs2.sh: New file.
88463         * tests/test-wcsrtombs3.sh: New file.
88464         * tests/test-wcsrtombs4.sh: New file.
88465         * tests/test-wcsrtombs.c: New file.
88467         New module 'wcsrtombs'.
88468         * lib/wchar.in.h (wcsrtombs): New declaration.
88469         * lib/wcsrtombs.c: New file.
88470         * m4/wcsrtombs.m4: New file.
88471         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
88472         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
88473         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
88474         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
88475         * modules/wcsrtombs: New file.
88476         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
88477         bugs.
88479 2008-12-21  Bruno Haible  <bruno@clisp.org>
88481         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
88482         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
88483         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
88484         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
88485         if not correct.
88486         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
88487         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
88488         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
88489         m4/locale-zh.m4, m4/codeset.m4.
88490         * doc/posix-functions/wcrtomb.texi: Document the bug.
88492 2008-12-21  Bruno Haible  <bruno@clisp.org>
88494         Work around a btowc() bug on IRIX 6.5.
88495         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
88496         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
88497         REPLACE_WTOBC if not.
88498         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
88499         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
88500         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
88502 2008-12-21  Bruno Haible  <bruno@clisp.org>
88504         * modules/wcrtomb-tests: New file.
88505         * tests/test-wcrtomb.sh: New file.
88506         * tests/test-wcrtomb.c: New file.
88508         New module 'wcrtomb'.
88509         * lib/wchar.in.h (wcrtomb): New declaration.
88510         * lib/wcrtomb.c: New file.
88511         * m4/wcrtomb.m4: New file.
88512         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
88513         HAVE_WCRTOMB.
88514         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
88515         HAVE_WCRTOMB.
88516         * modules/wcrtomb: New file.
88517         * doc/posix-functions/wcrtomb.texi: Mention the new module.
88519 2008-12-21  Bruno Haible  <bruno@clisp.org>
88521         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
88522         * modules/mbsrtowcs (Files): Likewise.
88523         * modules/wctob (Files): Likewise.
88524         * modules/c-strcase-tests (Files): Likewise.
88525         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
88526         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
88527         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
88528         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
88529         * modules/vasnprintf-posix-tests (Files): Likewise.
88531 2008-12-21  William Pursell  <bill.pursell@gmail.com>
88533         gitlog-to-changelog: pass all command-line arguments to git-log
88534         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
88535         it is sometimes convenient to filter the commits in various ways.
88536         gitlog-to-changelog only allows --since to specify a start date,
88537         but git-log itself supports many other filtering mechanisms.
88538         At the moment, I want to filter by branch name.  Rather than
88539         adding a --branch option to gitlog-to-changelog, it seems more
88540         flexible to simply pass all options directly to git-log and let
88541         git do the work.  Notice that this effectively makes --since a
88542         redundant option for gitlog-to-changelog, but removing it would
88543         require current usage to change since calls would then require
88544         an additional '--'.
88546 2008-12-21  Bruno Haible  <bruno@clisp.org>
88548         * modules/mbsnrtowcs-tests: New file.
88549         * tests/test-mbsnrtowcs1.sh: New file.
88550         * tests/test-mbsnrtowcs2.sh: New file.
88551         * tests/test-mbsnrtowcs3.sh: New file.
88552         * tests/test-mbsnrtowcs4.sh: New file.
88553         * tests/test-mbsnrtowcs.c: New file.
88555         New module 'mbsnrtowcs'.
88556         * lib/wchar.in.h (mbsnrtowcs): New declaration.
88557         * lib/mbsnrtowcs.c: New file.
88558         * lib/mbsrtowcs-state.c: New file.
88559         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
88560         (internal_state): Remove variable.
88561         * m4/mbsnrtowcs.m4: New file.
88562         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
88563         compilation units.
88564         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
88565         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
88566         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
88567         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
88568         * modules/mbsnrtowcs: New file.
88569         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
88570         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
88571         portability problem.
88573 2008-12-21  Bruno Haible  <bruno@clisp.org>
88575         Work around mbsrtowcs bug.
88576         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
88577         (gl_FUNC_MBSRTOWCS): Invoke it.
88578         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
88579         m4/locale-zh.m4.
88580         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
88582 2008-12-21  Bruno Haible  <bruno@clisp.org>
88584         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
88586 2008-12-21  Bruno Haible  <bruno@clisp.org>
88588         Update doc for AIX.
88589         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
88590         16-bit wchar_t type.
88591         * doc/posix-functions/btowc.texi: Likewise.
88592         * doc/posix-functions/fgetwc.texi: Likewise.
88593         * doc/posix-functions/fgetws.texi: Likewise.
88594         * doc/posix-functions/fputwc.texi: Likewise.
88595         * doc/posix-functions/fputws.texi: Likewise.
88596         * doc/posix-functions/fwide.texi: Likewise.
88597         * doc/posix-functions/fwprintf.texi: Likewise.
88598         * doc/posix-functions/fwscanf.texi: Likewise.
88599         * doc/posix-functions/getwchar.texi: Likewise.
88600         * doc/posix-functions/getwc.texi: Likewise.
88601         * doc/posix-functions/iswalnum.texi: Likewise.
88602         * doc/posix-functions/iswalpha.texi: Likewise.
88603         * doc/posix-functions/iswblank.texi: Likewise.
88604         * doc/posix-functions/iswcntrl.texi: Likewise.
88605         * doc/posix-functions/iswctype.texi: Likewise.
88606         * doc/posix-functions/iswdigit.texi: Likewise.
88607         * doc/posix-functions/iswgraph.texi: Likewise.
88608         * doc/posix-functions/iswlower.texi: Likewise.
88609         * doc/posix-functions/iswprint.texi: Likewise.
88610         * doc/posix-functions/iswpunct.texi: Likewise.
88611         * doc/posix-functions/iswspace.texi: Likewise.
88612         * doc/posix-functions/iswupper.texi: Likewise.
88613         * doc/posix-functions/iswxdigit.texi: Likewise.
88614         * doc/posix-functions/mbrtowc.texi: Likewise.
88615         * doc/posix-functions/mbsrtowcs.texi: Likewise.
88616         * doc/posix-functions/mbstowcs.texi: Likewise.
88617         * doc/posix-functions/mbtowc.texi: Likewise.
88618         * doc/posix-functions/putwchar.texi: Likewise.
88619         * doc/posix-functions/putwc.texi: Likewise.
88620         * doc/posix-functions/swprintf.texi: Likewise.
88621         * doc/posix-functions/tolower.texi: Likewise.
88622         * doc/posix-functions/toupper.texi: Likewise.
88623         * doc/posix-functions/towctrans.texi: Likewise.
88624         * doc/posix-functions/ungetwc.texi: Likewise.
88625         * doc/posix-functions/vswprintf.texi: Likewise.
88626         * doc/posix-functions/wcrtomb.texi: Likewise.
88627         * doc/posix-functions/wcscat.texi: Likewise.
88628         * doc/posix-functions/wcschr.texi: Likewise.
88629         * doc/posix-functions/wcscmp.texi: Likewise.
88630         * doc/posix-functions/wcscoll.texi: Likewise.
88631         * doc/posix-functions/wcscpy.texi: Likewise.
88632         * doc/posix-functions/wcscspn.texi: Likewise.
88633         * doc/posix-functions/wcsftime.texi: Likewise.
88634         * doc/posix-functions/wcslen.texi: Likewise.
88635         * doc/posix-functions/wcsncat.texi: Likewise.
88636         * doc/posix-functions/wcsncmp.texi: Likewise.
88637         * doc/posix-functions/wcsncpy.texi: Likewise.
88638         * doc/posix-functions/wcspbrk.texi: Likewise.
88639         * doc/posix-functions/wcsrchr.texi: Likewise.
88640         * doc/posix-functions/wcsrtombs.texi: Likewise.
88641         * doc/posix-functions/wcsspn.texi: Likewise.
88642         * doc/posix-functions/wcsstr.texi: Likewise.
88643         * doc/posix-functions/wcstod.texi: Likewise.
88644         * doc/posix-functions/wcstof.texi: Likewise.
88645         * doc/posix-functions/wcstoimax.texi: Likewise.
88646         * doc/posix-functions/wcstok.texi: Likewise.
88647         * doc/posix-functions/wcstold.texi: Likewise.
88648         * doc/posix-functions/wcstoll.texi: Likewise.
88649         * doc/posix-functions/wcstol.texi: Likewise.
88650         * doc/posix-functions/wcstombs.texi: Likewise.
88651         * doc/posix-functions/wcstoull.texi: Likewise.
88652         * doc/posix-functions/wcstoul.texi: Likewise.
88653         * doc/posix-functions/wcstoumax.texi: Likewise.
88654         * doc/posix-functions/wcswidth.texi: Likewise.
88655         * doc/posix-functions/wcsxfrm.texi: Likewise.
88656         * doc/posix-functions/wctob.texi: Likewise.
88657         * doc/posix-functions/wctomb.texi: Likewise.
88658         * doc/posix-functions/wctrans.texi: Likewise.
88659         * doc/posix-functions/wctype.texi: Likewise.
88660         * doc/posix-functions/wcwidth.texi: Likewise.
88661         * doc/posix-functions/wmemchr.texi: Likewise.
88662         * doc/posix-functions/wmemcmp.texi: Likewise.
88663         * doc/posix-functions/wmemcpy.texi: Likewise.
88664         * doc/posix-functions/wmemmove.texi: Likewise.
88665         * doc/posix-functions/wmemset.texi: Likewise.
88666         * doc/posix-functions/wprintf.texi: Likewise.
88667         * doc/posix-functions/wscanf.texi: Likewise.
88669 2008-12-21  Bruno Haible  <bruno@clisp.org>
88671         Update doc for HP-UX 11.11.
88672         * doc/posix-functions/btowc.texi: Clarify that the function is missing
88673         in HP-UX version 11.00, not in all versions of HP-UX 11.
88674         * doc/posix-functions/fwide.texi: Likewise.
88675         * doc/posix-functions/fwprintf.texi: Likewise.
88676         * doc/posix-functions/fwscanf.texi: Likewise.
88677         * doc/posix-functions/inet_ntop.texi: Likewise.
88678         * doc/posix-functions/inet_pton.texi: Likewise.
88679         * doc/posix-functions/mbrlen.texi: Likewise.
88680         * doc/posix-functions/mbrtowc.texi: Likewise.
88681         * doc/posix-functions/mbsinit.texi: Likewise.
88682         * doc/posix-functions/mbsrtowcs.texi: Likewise.
88683         * doc/posix-functions/swprintf.texi: Likewise.
88684         * doc/posix-functions/swscanf.texi: Likewise.
88685         * doc/posix-functions/towctrans.texi: Likewise.
88686         * doc/posix-functions/vfwprintf.texi: Likewise.
88687         * doc/posix-functions/vswprintf.texi: Likewise.
88688         * doc/posix-functions/vwprintf.texi: Likewise.
88689         * doc/posix-functions/wcrtomb.texi: Likewise.
88690         * doc/posix-functions/wcsrtombs.texi: Likewise.
88691         * doc/posix-functions/wcsstr.texi: Likewise.
88692         * doc/posix-functions/wctob.texi: Likewise.
88693         * doc/posix-functions/wctrans.texi: Likewise.
88694         * doc/posix-functions/wmemchr.texi: Likewise.
88695         * doc/posix-functions/wmemcmp.texi: Likewise.
88696         * doc/posix-functions/wmemcpy.texi: Likewise.
88697         * doc/posix-functions/wmemmove.texi: Likewise.
88698         * doc/posix-functions/wmemset.texi: Likewise.
88699         * doc/posix-functions/wprintf.texi: Likewise.
88700         * doc/posix-functions/wscanf.texi: Likewise.
88702 2008-12-21  Bruno Haible  <bruno@clisp.org>
88704         Work around a portability problem.
88705         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
88706         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
88708 2008-12-20  Bruno Haible  <bruno@clisp.org>
88710         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
88711         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
88712         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
88713         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
88714         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
88716         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
88717         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
88718         set.
88719         (GNULIB_defined_mbstate_t): New macro.
88720         (mbsinit): Redefine if REPLACE_MBSINIT is set.
88721         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
88722         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
88723         reuses the system's mbrtowc function but works around the bugs.
88724         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
88725         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
88726         macros.
88727         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
88728         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
88729         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
88730         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
88731         REPLACE_MBSINIT if mbsinit needs to be overridden.
88732         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
88733         REPLACE_MBSINIT, REPLACE_MBRTOWC.
88734         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
88735         REPLACE_MBSINIT, REPLACE_MBRTOWC.
88736         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
88737         m4/locale-zh.m4.
88738         (Depends): Add mbsinit.
88739         * modules/mbsinit (Depends): Add mbrtowc.
88740         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
88742 2008-12-20  Bruno Haible  <bruno@clisp.org>
88744         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
88745         so that there are no conversion errors on AIX.
88746         * tests/test-mbsrtowcs.c (main): LIkewise.
88748 2008-12-20  Bruno Haible  <bruno@clisp.org>
88750         Work around wctob bug on Solaris <= 9.
88751         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
88752         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
88753         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
88754         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
88755         * modules/wctob (Files): Add m4/locale-fr.m4.
88756         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
88758 2008-12-20  Bruno Haible  <bruno@clisp.org>
88760         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
88761         /dev/null.
88762         * tests/test-select-in.sh: Likewise.
88763         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
88765 2008-12-20  Bruno Haible  <bruno@clisp.org>
88767         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
88768         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
88769         Cygwin 1.5.x.
88771 2008-12-20  Bruno Haible  <bruno@clisp.org>
88773         Ensure mbstate_t is defined on HP-UX 11.11.
88774         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
88775         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
88776         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
88777         AC_USE_SYSTEM_EXTENSIONS.
88778         * modules/fnmatch (Depends-on): Add extensions.
88779         * modules/mbrlen (Depends-on): Likewise.
88780         * modules/mbrtowc (Depends-on): Likewise.
88781         * modules/mbsinit (Depends-on): Likewise.
88782         * modules/mbsrtowcs (Depends-on): Likewise.
88783         * modules/mbswidth (Depends-on): Likewise.
88784         * modules/quotearg (Depends-on): Likewise.
88785         * modules/strftime (Depends-on): Likewise.
88787 2008-12-20  Bruno Haible  <bruno@clisp.org>
88789         Ensure wctob is declared on IRIX 6.5.
88790         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
88791         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
88792         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
88793         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
88794         of HAVE_WCTOB.
88795         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
88796         HAVE_WCTOB.
88797         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
88799 2008-12-19  Bruno Haible  <bruno@clisp.org>
88801         * modules/mbsrtowcs-tests: New file.
88802         * tests/test-mbsrtowcs1.sh: New file.
88803         * tests/test-mbsrtowcs2.sh: New file.
88804         * tests/test-mbsrtowcs3.sh: New file.
88805         * tests/test-mbsrtowcs4.sh: New file.
88806         * tests/test-mbsrtowcs.c: New file.
88808         New module 'mbsrtowcs'.
88809         * lib/wchar.in.h (mbsrtowcs): New declaration.
88810         * lib/mbsrtowcs.c: New file.
88811         * m4/mbsrtowcs.m4: New file.
88812         * modules/mbsrtowcs: New file.
88813         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
88814         HAVE_MBSRTOWCS.
88815         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
88816         HAVE_MBSRTOWCS.
88817         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
88819 2008-12-19  Bruno Haible  <bruno@clisp.org>
88821         New module 'mbrlen'.
88822         * lib/wchar.in.h (mbrlen): New declaration.
88823         * lib/mbrlen.c: New file.
88824         * m4/mbrlen.m4: New file.
88825         * modules/mbrlen: New file.
88826         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
88827         HAVE_MBRLEN.
88828         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
88829         HAVE_MBRLEN.
88830         * doc/posix-functions/mbrlen.texi: Document the new module.
88832 2008-12-19  Bruno Haible  <bruno@clisp.org>
88834         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
88835         * modules/mbrtowc (Depends-on): Add verify.
88836         Suggested by Paul Eggert.
88838 2008-12-18  Bruno Haible  <bruno@clisp.org>
88840         * modules/mbsinit-tests: New file.
88841         * tests/test-mbsinit.sh: New file.
88842         * tests/test-mbsinit.c: New file.
88844 2008-12-18  Bruno Haible  <bruno@clisp.org>
88846         * modules/mbrtowc-tests: New file.
88847         * tests/test-mbrtowc1.sh: New file.
88848         * tests/test-mbrtowc2.sh: New file.
88849         * tests/test-mbrtowc3.sh: New file.
88850         * tests/test-mbrtowc4.sh: New file.
88851         * tests/test-mbrtowc.c: New file.
88853         New module 'mbrtowc'.
88854         * lib/wchar.in.h (mbstate_t): Override when the system does not have
88855         mbsinit and mbrtowc.
88856         (mbrtowc): New declaration.
88857         * lib/mbrtowc.c: New file.
88858         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
88859         * modules/mbrtowc: New file.
88860         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
88861         HAVE_MBRTOWC.
88862         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
88863         HAVE_MBRTOWC.
88864         * doc/posix-functions/mbrtowc.texi: Document the new module.
88866 2008-12-18  Bruno Haible  <bruno@clisp.org>
88868         New module 'wctob'.
88869         * lib/wchar.in.h (wctob): New declaration.
88870         * lib/wctob.c: New file.
88871         * m4/wctob.m4: New file.
88872         * modules/wctob: New file.
88873         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
88874         HAVE_WCTOB.
88875         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
88876         * doc/posix-functions/wctob.texi: Document the new module.
88878 2008-12-18  Bruno Haible  <bruno@clisp.org>
88880         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
88881         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
88883 2008-12-18  Simon Josefsson  <simon@josefsson.org>
88885         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
88886         G. Christensen" <tgc@jupiterrise.com>.
88888         * lib/flock.c: Need to include errno.h.  Reported by "Tom
88889         G. Christensen" <tgc@jupiterrise.com>.
88891         * lib/flock.c: Need to include string.h.  Reported by "Tom
88892         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
88893         <ebb9@byu.net>.
88895 2008-12-18  Bruno Haible  <bruno@clisp.org>
88897         * m4/locale-ja.m4: New file, from GNU gettext.
88899 2008-12-17  Bruno Haible  <bruno@clisp.org>
88901         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
88902         Suggested by Eric Blake.
88904 2008-12-17  Bruno Haible  <bruno@clisp.org>
88906         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
88908 2008-12-17  Bruno Haible  <bruno@clisp.org>
88910         * lib/mbsinit.c: Include verify.h. Verify an assumption.
88911         * modules/mbsinit (Depends-on): Add verify.
88912         Suggested by Paul Eggert.
88914 2008-12-17  Bruno Haible  <bruno@clisp.org>
88916         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
88917         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
88918         gl_FUNC_MBRTOWC.
88919         * m4/mbiter.m4 (gl_MBITER): LIkewise.
88920         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
88921         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
88922         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
88923         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
88924         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
88925         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
88926         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
88927         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
88928         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
88929         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
88930         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
88931         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
88932         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
88933         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
88934         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
88935         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
88936         * modules/trim (configure.ac): Likewise.
88938 2008-12-17  Bruno Haible  <bruno@clisp.org>
88940         * modules/btowc-tests: New file.
88941         * tests/test-btowc1.sh: New file.
88942         * tests/test-btowc2.sh: New file.
88943         * tests/test-btowc.c: New file.
88945         New module 'btowc'.
88946         * lib/wchar.in.h (btowc): New declaration.
88947         * lib/btowc.c: New file.
88948         * m4/btowc.m4: New file.
88949         * modules/btowc: New file.
88950         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
88951         HAVE_BTOWC.
88952         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
88953         * doc/posix-functions/btowc.texi: Document the new module.
88955 2008-12-17  Bruno Haible  <bruno@clisp.org>
88957         New module 'mbsinit'.
88958         * lib/wchar.in.h (mbsinit): New declaration.
88959         * lib/mbsinit.c: New file.
88960         * m4/mbsinit.m4: New file.
88961         * modules/mbsinit: New file.
88962         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
88963         HAVE_MBSINIT.
88964         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
88965         HAVE_MBSINIT.
88966         * doc/posix-functions/mbsinit.texi: Document the new module.
88968 2008-12-16  Bruno Haible  <bruno@clisp.org>
88970         * lib/unistd.in.h: Add comment.
88971         * tests/test-environ.c: Don't include <stdlib.h>.
88973 2008-12-16  Bruno Haible  <bruno@clisp.org>
88975         * lib/parse-duration.h (parse_duration): Document return value
88976         convention.
88977         * lib/parse-duration.c: Include specification header first. Add
88978         comments.
88979         (_): Remove macro.
88980         (parse_year_month_day, parse_hour_minute_second): Move side effects
88981         outside of strchr call.
88982         (parse_non_iso8601): Move side effects outside of isspace call.
88983         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
88984         call.
88986 2008-12-16  Bruno Haible  <bruno@clisp.org>
88988         * tests/test-parse-duration.sh: Produce no output when the test
88989         succeeds.
88991 2008-12-16  Bruno Haible  <bruno@clisp.org>
88993         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
88994         expressions.
88996 2008-12-15  Bruno Haible  <bruno@clisp.org>
88998         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
88999         * doc/glibc-functions/flistxattr.texi: Likewise.
89000         * doc/glibc-functions/fopencookie.texi: Likewise.
89001         * doc/glibc-functions/fremovexattr.texi: Likewise.
89002         * doc/glibc-functions/fsetxattr.texi: Likewise.
89003         * doc/glibc-functions/getxattr.texi: Likewise.
89004         * doc/glibc-functions/lgetxattr.texi: Likewise.
89005         * doc/glibc-functions/listxattr.texi: Likewise.
89006         * doc/glibc-functions/llistxattr.texi: Likewise.
89007         * doc/glibc-functions/lremovexattr.texi: Likewise.
89008         * doc/glibc-functions/lsetxattr.texi: Likewise.
89009         * doc/glibc-functions/removexattr.texi: Likewise.
89010         * doc/glibc-functions/setxattr.texi: Likewise.
89011         * doc/posix-functions/open_memstream.texi: Likewise.
89013 2008-12-15  Eric Blake  <ebb9@byu.net>
89015         Update doc for cygwin 1.7.
89016         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
89017         functions.
89018         * doc/posix-functions/fchmodat.texi: Likewise.
89019         * doc/posix-functions/fchownat.texi: Likewise.
89020         * doc/posix-functions/fdopendir.texi: Likewise.
89021         * doc/posix-functions/fmemopen.texi: Likewise.
89022         * doc/posix-functions/freeaddrinfo.texi: Likewise.
89023         * doc/posix-functions/fstatat.texi: Likewise.
89024         * doc/posix-functions/futimens.texi: Likewise.
89025         * doc/posix-functions/gai_strerror.texi: Likewise.
89026         * doc/posix-functions/getaddrinfo.texi: Likewise.
89027         * doc/posix-functions/getnameinfo.texi: Likewise.
89028         * doc/posix-functions/if_freenameindex.texi: Likewise.
89029         * doc/posix-functions/if_indextoname.texi: Likewise.
89030         * doc/posix-functions/if_nameindex.texi: Likewise.
89031         * doc/posix-functions/if_nametoindex.texi: Likewise.
89032         * doc/posix-functions/insque.texi: Likewise.
89033         * doc/posix-functions/linkat.texi: Likewise.
89034         * doc/posix-functions/llrint.texi: Likewise.
89035         * doc/posix-functions/llrintf.texi: Likewise.
89036         * doc/posix-functions/llrintl.texi: Likewise.
89037         * doc/posix-functions/lockf.texi: Likewise.
89038         * doc/posix-functions/lrintl.texi: Likewise.
89039         * doc/posix-functions/mkdirat.texi: Likewise.
89040         * doc/posix-functions/mkfifoat.texi: Likewise.
89041         * doc/posix-functions/mknodat.texi: Likewise.
89042         * doc/posix-functions/mq_close.texi: Likewise.
89043         * doc/posix-functions/mq_getattr.texi: Likewise.
89044         * doc/posix-functions/mq_notify.texi: Likewise.
89045         * doc/posix-functions/mq_open.texi: Likewise.
89046         * doc/posix-functions/mq_receive.texi: Likewise.
89047         * doc/posix-functions/mq_send.texi: Likewise.
89048         * doc/posix-functions/mq_setattr.texi: Likewise.
89049         * doc/posix-functions/mq_timedreceive.texi: Likewise.
89050         * doc/posix-functions/mq_timedsend.texi: Likewise.
89051         * doc/posix-functions/mq_unlink.texi: Likewise.
89052         * doc/posix-functions/open_memstream.texi: Likewise.
89053         * doc/posix-functions/openat.texi: Likewise.
89054         * doc/posix-functions/posix_fadvise.texi: Likewise.
89055         * doc/posix-functions/posix_fallocate.texi: Likewise.
89056         * doc/posix-functions/posix_madvise.texi: Likewise.
89057         * doc/posix-functions/posix_memalign.texi: Likewise.
89058         * doc/posix-functions/posix_openpt.texi: Likewise.
89059         * doc/posix-functions/readlinkat.texi: Likewise.
89060         * doc/posix-functions/remque.texi: Likewise.
89061         * doc/posix-functions/renameat.texi: Likewise.
89062         * doc/posix-functions/rintl.texi: Likewise.
89063         * doc/posix-functions/sem_unlink.texi: Likewise.
89064         * doc/posix-functions/shm_open.texi: Likewise.
89065         * doc/posix-functions/shm_unlink.texi: Likewise.
89066         * doc/posix-functions/signgam.texi: Likewise.
89067         * doc/posix-functions/sigset.texi: Likewise.
89068         * doc/posix-functions/stpcpy.texi: Likewise.
89069         * doc/posix-functions/stpncpy.texi: Likewise.
89070         * doc/posix-functions/strerror.texi: Likewise.
89071         * doc/posix-functions/strtod.texi: Likewise.
89072         * doc/posix-functions/symlinkat.texi: Likewise.
89073         * doc/posix-functions/unlinkat.texi: Likewise.
89074         * doc/posix-functions/utimensat.texi: Likewise.
89075         * doc/glibc-functions/bindresvport.texi: Likewise.
89076         * doc/glibc-functions/dn_expand.texi: Likewise.
89077         * doc/glibc-functions/exp10.texi: Likewise.
89078         * doc/glibc-functions/exp10f.texi: Likewise.
89079         * doc/glibc-functions/fgetxattr.texi: Likewise.
89080         * doc/glibc-functions/flistxattr.texi: Likewise.
89081         * doc/glibc-functions/fopencookie.texi: Likewise.
89082         * doc/glibc-functions/freeifaddrs.texi: Likewise.
89083         * doc/glibc-functions/fremovexattr.texi: Likewise.
89084         * doc/glibc-functions/fsetxattr.texi: Likewise.
89085         * doc/glibc-functions/getifaddrs.texi: Likewise.
89086         * doc/glibc-functions/getxattr.texi: Likewise.
89087         * doc/glibc-functions/lgetxattr.texi: Likewise.
89088         * doc/glibc-functions/listxattr.texi: Likewise.
89089         * doc/glibc-functions/llistxattr.texi: Likewise.
89090         * doc/glibc-functions/lremovexattr.texi: Likewise.
89091         * doc/glibc-functions/lsetxattr.texi: Likewise.
89092         * doc/glibc-functions/pow10.texi: Likewise.
89093         * doc/glibc-functions/pow10f.texi: Likewise.
89094         * doc/glibc-functions/rcmd_af.texi: Likewise.
89095         * doc/glibc-functions/removexattr.texi: Likewise.
89096         * doc/glibc-functions/res_init.texi: Likewise.
89097         * doc/glibc-functions/res_mkquery.texi: Likewise.
89098         * doc/glibc-functions/res_query.texi: Likewise.
89099         * doc/glibc-functions/res_querydomain.texi: Likewise.
89100         * doc/glibc-functions/res_send.texi: Likewise.
89101         * doc/glibc-functions/rresvport_af.texi: Likewise.
89102         * doc/glibc-functions/setxattr.texi: Likewise.
89103         * doc/glibc-functions/strcasestr.texi: Likewise.
89105 2008-12-15  Bruno Haible  <bruno@clisp.org>
89107         Fix compilation error on OSF/1 4.0.
89108         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
89109         <sys/time.h>, simply delegate to the system header.
89110         Reported by Daniel Richard G. <oss@teragram.com>.
89112 2008-12-15  Bruno Haible  <bruno@clisp.org>
89114         * doc/posix-functions/openat.texi: Mention the 'openat' module.
89115         * doc/posix-functions/fchmodat.texi: Likewise.
89116         * doc/posix-functions/fchownat.texi: Likewise.
89117         * doc/posix-functions/fdopendir.texi: Likewise.
89118         * doc/posix-functions/fstatat.texi: Likewise.
89119         * doc/posix-functions/mkdirat.texi: Likewise.
89120         * doc/posix-functions/unlinkat.texi: Likewise.
89122 2008-12-14  Bruno Haible  <bruno@clisp.org>
89124         Update doc for POSIX:2008.
89125         * doc/posix-functions/faccessat.texi: New file.
89126         * doc/posix-functions/fchmodat.texi: New file.
89127         * doc/posix-functions/fchownat.texi: New file.
89128         * doc/posix-functions/fdopendir.texi: New file.
89129         * doc/posix-functions/fstatat.texi: New file.
89130         * doc/posix-functions/futimens.texi: New file.
89131         * doc/posix-functions/linkat.texi: New file.
89132         * doc/posix-functions/mkdirat.texi: New file.
89133         * doc/posix-functions/mkfifoat.texi: New file.
89134         * doc/posix-functions/mknodat.texi: New file.
89135         * doc/posix-functions/open_wmemstream.texi: New file.
89136         * doc/posix-functions/openat.texi: New file.
89137         * doc/posix-functions/psiginfo.texi: New file.
89138         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
89139         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
89140         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
89141         * doc/posix-functions/readlinkat.texi: New file.
89142         * doc/posix-functions/renameat.texi: New file.
89143         * doc/posix-functions/strerror_l.texi: New file.
89144         * doc/posix-functions/symlinkat.texi: New file.
89145         * doc/posix-functions/unlinkat.texi: New file.
89146         * doc/posix-functions/utimensat.texi: New file.
89147         * doc/gnulib.texi (Function Substitutes): Add these subsections.
89149 2008-12-14  Bruno Haible  <bruno@clisp.org>
89151         Update doc for POSIX:2008.
89152         * doc/posix-functions/alphasort.texi: Renamed from
89153         doc/glibc-functions/alphasort.texi.
89154         * doc/posix-functions/dirfd.texi: Renamed from
89155         doc/glibc-functions/dirfd.texi.
89156         * doc/posix-functions/dprintf.texi: Renamed from
89157         doc/glibc-functions/dprintf.texi.
89158         * doc/posix-functions/duplocale.texi: Renamed from
89159         doc/glibc-functions/duplocale.texi.
89160         * doc/posix-functions/fexecve.texi: Renamed from
89161         doc/glibc-functions/fexecve.texi.
89162         * doc/posix-functions/fmemopen.texi: Renamed from
89163         doc/glibc-functions/fmemopen.texi.
89164         * doc/posix-functions/freelocale.texi: Renamed from
89165         doc/glibc-functions/freelocale.texi.
89166         * doc/posix-functions/getdate_err.texi: Renamed from
89167         doc/glibc-functions/getdate_err.texi.
89168         * doc/posix-functions/isalnum_l.texi: Renamed from
89169         doc/glibc-functions/isalnum_l.texi.
89170         * doc/posix-functions/isalpha_l.texi: Renamed from
89171         doc/glibc-functions/isalpha_l.texi.
89172         * doc/posix-functions/isblank_l.texi: Renamed from
89173         doc/glibc-functions/isblank_l.texi.
89174         * doc/posix-functions/iscntrl_l.texi: Renamed from
89175         doc/glibc-functions/iscntrl_l.texi.
89176         * doc/posix-functions/isdigit_l.texi: Renamed from
89177         doc/glibc-functions/isdigit_l.texi.
89178         * doc/posix-functions/isgraph_l.texi: Renamed from
89179         doc/glibc-functions/isgraph_l.texi.
89180         * doc/posix-functions/islower_l.texi: Renamed from
89181         doc/glibc-functions/islower_l.texi.
89182         * doc/posix-functions/isprint_l.texi: Renamed from
89183         doc/glibc-functions/isprint_l.texi.
89184         * doc/posix-functions/ispunct_l.texi: Renamed from
89185         doc/glibc-functions/ispunct_l.texi.
89186         * doc/posix-functions/isspace_l.texi: Renamed from
89187         doc/glibc-functions/isspace_l.texi.
89188         * doc/posix-functions/isupper_l.texi: Renamed from
89189         doc/glibc-functions/isupper_l.texi.
89190         * doc/posix-functions/iswalnum_l.texi: Renamed from
89191         doc/glibc-functions/iswalnum_l.texi.
89192         * doc/posix-functions/iswalpha_l.texi: Renamed from
89193         doc/glibc-functions/iswalpha_l.texi.
89194         * doc/posix-functions/iswblank_l.texi: Renamed from
89195         doc/glibc-functions/iswblank_l.texi.
89196         * doc/posix-functions/iswcntrl_l.texi: Renamed from
89197         doc/glibc-functions/iswcntrl_l.texi.
89198         * doc/posix-functions/iswctype_l.texi: Renamed from
89199         doc/glibc-functions/iswctype_l.texi.
89200         * doc/posix-functions/iswdigit_l.texi: Renamed from
89201         doc/glibc-functions/iswdigit_l.texi.
89202         * doc/posix-functions/iswgraph_l.texi: Renamed from
89203         doc/glibc-functions/iswgraph_l.texi.
89204         * doc/posix-functions/iswlower_l.texi: Renamed from
89205         doc/glibc-functions/iswlower_l.texi.
89206         * doc/posix-functions/iswprint_l.texi: Renamed from
89207         doc/glibc-functions/iswprint_l.texi.
89208         * doc/posix-functions/iswpunct_l.texi: Renamed from
89209         doc/glibc-functions/iswpunct_l.texi.
89210         * doc/posix-functions/iswspace_l.texi: Renamed from
89211         doc/glibc-functions/iswspace_l.texi.
89212         * doc/posix-functions/iswupper_l.texi: Renamed from
89213         doc/glibc-functions/iswupper_l.texi.
89214         * doc/posix-functions/iswxdigit_l.texi: Renamed from
89215         doc/glibc-functions/iswxdigit_l.texi.
89216         * doc/posix-functions/isxdigit_l.texi: Renamed from
89217         doc/glibc-functions/isxdigit_l.texi.
89218         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
89219         doc/glibc-functions/mbsnrtowcs.texi.
89220         * doc/posix-functions/mkdtemp.texi: Renamed from
89221         doc/glibc-functions/mkdtemp.texi.
89222         * doc/posix-functions/newlocale.texi: Renamed from
89223         doc/glibc-functions/newlocale.texi.
89224         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
89225         doc/glibc-functions/nl_langinfo_l.texi.
89226         * doc/posix-functions/open_memstream.texi: Renamed from
89227         doc/glibc-functions/open_memstream.texi.
89228         * doc/posix-functions/opterr.texi: Renamed from
89229         doc/glibc-functions/opterr.texi.
89230         * doc/posix-functions/optind.texi: Renamed from
89231         doc/glibc-functions/optind.texi.
89232         * doc/posix-functions/optopt.texi: Renamed from
89233         doc/glibc-functions/optopt.texi.
89234         * doc/posix-functions/psignal.texi: Renamed from
89235         doc/glibc-functions/psignal.texi.
89236         * doc/posix-functions/scandir.texi: Renamed from
89237         doc/glibc-functions/scandir.texi.
89238         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
89239         doc/glibc-functions/sched_get_priority_min.texi.
89240         * doc/posix-functions/signgam.texi: Renamed from
89241         doc/glibc-functions/signgam.texi.
89242         * doc/posix-functions/stpcpy.texi: Renamed from
89243         doc/glibc-functions/stpcpy.texi.
89244         * doc/posix-functions/stpncpy.texi: Renamed from
89245         doc/glibc-functions/stpncpy.texi.
89246         * doc/posix-functions/strcasecmp_l.texi: Renamed from
89247         doc/glibc-functions/strcasecmp_l.texi.
89248         * doc/posix-functions/strcoll_l.texi: Renamed from
89249         doc/glibc-functions/strcoll_l.texi.
89250         * doc/posix-functions/strfmon_l.texi: Renamed from
89251         doc/glibc-functions/strfmon_l.texi.
89252         * doc/posix-functions/strftime_l.texi: Renamed from
89253         doc/glibc-functions/strftime_l.texi.
89254         * doc/posix-functions/strncasecmp_l.texi: Renamed from
89255         doc/glibc-functions/strncasecmp_l.texi.
89256         * doc/posix-functions/strndup.texi: Renamed from
89257         doc/glibc-functions/strndup.texi.
89258         * doc/posix-functions/strnlen.texi: Renamed from
89259         doc/glibc-functions/strnlen.texi.
89260         * doc/posix-functions/strsignal.texi: Renamed from
89261         doc/glibc-functions/strsignal.texi.
89262         * doc/posix-functions/strxfrm_l.texi: Renamed from
89263         doc/glibc-functions/strxfrm_l.texi.
89264         * doc/posix-functions/timer_gettime.texi: Renamed from
89265         doc/glibc-functions/timer_gettime.texi.
89266         * doc/posix-functions/tolower_l.texi: Renamed from
89267         doc/glibc-functions/tolower_l.texi.
89268         * doc/posix-functions/toupper_l.texi: Renamed from
89269         doc/glibc-functions/toupper_l.texi.
89270         * doc/posix-functions/towctrans_l.texi: Renamed from
89271         doc/glibc-functions/towctrans_l.texi.
89272         * doc/posix-functions/towlower_l.texi: Renamed from
89273         doc/glibc-functions/towlower_l.texi.
89274         * doc/posix-functions/towupper_l.texi: Renamed from
89275         doc/glibc-functions/towupper_l.texi.
89276         * doc/posix-functions/uselocale.texi: Renamed from
89277         doc/glibc-functions/uselocale.texi.
89278         * doc/posix-functions/vdprintf.texi: Renamed from
89279         doc/glibc-functions/vdprintf.texi.
89280         * doc/posix-functions/wcpcpy.texi:
89281         Renamed from doc/glibc-functions/wcpcpy.texi.
89282         * doc/posix-functions/wcpncpy.texi: Renamed from
89283         doc/glibc-functions/wcpncpy.texi.
89284         * doc/posix-functions/wcscasecmp.texi: Renamed from
89285         doc/glibc-functions/wcscasecmp.texi.
89286         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
89287         doc/glibc-functions/wcscasecmp_l.texi.
89288         * doc/posix-functions/wcscoll_l.texi: Renamed from
89289         doc/glibc-functions/wcscoll_l.texi.
89290         * doc/posix-functions/wcsdup.texi: Renamed from
89291         doc/glibc-functions/wcsdup.texi.
89292         * doc/posix-functions/wcsncasecmp.texi: Renamed from
89293         doc/glibc-functions/wcsncasecmp.texi.
89294         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
89295         doc/glibc-functions/wcsncasecmp_l.texi.
89296         * doc/posix-functions/wcsnlen.texi: Renamed from
89297         doc/glibc-functions/wcsnlen.texi.
89298         * doc/posix-functions/wcsnrtombs.texi: Renamed from
89299         doc/glibc-functions/wcsnrtombs.texi.
89300         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
89301         doc/glibc-functions/wcsxfrm_l.texi.
89302         * doc/posix-functions/wctrans_l.texi: Renamed from
89303         doc/glibc-functions/wctrans_l.texi.
89304         * doc/posix-functions/wctype_l.texi: Renamed from
89305         doc/glibc-functions/wctype_l.texi.
89306         * doc/gnulib.texi (Function Substitutes): Add these subsections.
89307         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
89308         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
89309         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
89310         these subsections.
89311         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
89312         Remove sections.
89314 2008-12-14  Bruno Haible  <bruno@clisp.org>
89316         Update doc for POSIX:2008.
89317         * doc/posix-functions/*.texi: Update URL of POSIX specification.
89319 2008-12-14  Bruno Haible  <bruno@clisp.org>
89321         Update doc for POSIX:2008.
89322         * doc/pastposix-functions/bcmp.texi: Renamed from
89323         doc/posix-functions/bcmp.texi.
89324         * doc/pastposix-functions/bcopy.texi: Renamed from
89325         doc/posix-functions/bcopy.texi.
89326         * doc/pastposix-functions/bsd_signal.texi: Renamed from
89327         doc/posix-functions/bsd_signal.texi.
89328         * doc/pastposix-functions/bzero.texi: Renamed from
89329         doc/posix-functions/bzero.texi.
89330         * doc/pastposix-functions/ecvt.texi: Renamed from
89331         doc/posix-functions/ecvt.texi.
89332         * doc/pastposix-functions/fcvt.texi: Renamed from
89333         doc/posix-functions/fcvt.texi.
89334         * doc/pastposix-functions/ftime.texi: Renamed from
89335         doc/posix-functions/ftime.texi.
89336         * doc/pastposix-functions/gcvt.texi: Renamed from
89337         doc/posix-functions/gcvt.texi.
89338         * doc/pastposix-functions/getcontext.texi: Renamed from
89339         doc/posix-functions/getcontext.texi.
89340         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
89341         doc/posix-functions/gethostbyaddr.texi.
89342         * doc/pastposix-functions/gethostbyname.texi: Renamed from
89343         doc/posix-functions/gethostbyname.texi.
89344         * doc/pastposix-functions/getwd.texi: Renamed from
89345         doc/posix-functions/getwd.texi.
89346         * doc/pastposix-functions/h_errno.texi: Renamed from
89347         doc/posix-functions/h_errno.texi.
89348         * doc/pastposix-functions/index.texi: Renamed from
89349         doc/posix-functions/index.texi.
89350         * doc/pastposix-functions/makecontext.texi: Renamed from
89351         doc/posix-functions/makecontext.texi.
89352         * doc/pastposix-functions/mktemp.texi: Renamed from
89353         doc/posix-functions/mktemp.texi.
89354         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
89355         doc/posix-functions/pthread_attr_getstackaddr.texi.
89356         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
89357         doc/posix-functions/pthread_attr_setstackaddr.texi.
89358         * doc/pastposix-functions/rindex.texi: Renamed from
89359         doc/posix-functions/rindex.texi.
89360         * doc/pastposix-functions/scalb.texi: Renamed from
89361         doc/posix-functions/scalb.texi.
89362         * doc/pastposix-functions/setcontext.texi: Renamed from
89363         doc/posix-functions/setcontext.texi.
89364         * doc/pastposix-functions/swapcontext.texi: Renamed from
89365         doc/posix-functions/swapcontext.texi.
89366         * doc/pastposix-functions/ualarm.texi: Renamed from
89367         doc/posix-functions/ualarm.texi.
89368         * doc/pastposix-functions/usleep.texi: Renamed from
89369         doc/posix-functions/usleep.texi.
89370         * doc/pastposix-functions/vfork.texi: Renamed from
89371         doc/posix-functions/vfork.texi.
89372         * doc/pastposix-functions/wcswcs.texi: Renamed from
89373         doc/posix-functions/wcswcs.texi.
89374         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
89375         (Function Substitutes): Update.
89377 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89379         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
89380         m4/strerror.m4.
89382 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89383             Bruno Haible  <bruno@clisp.org>
89385         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
89387 2008-12-13  Bruno Haible  <bruno@clisp.org>
89389         * modules/strtoull (Depends-on): Remove unistd.
89391 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89393         * modules/strtoull (Depends-on): Add stdlib.
89395 2008-12-11  Simon Josefsson  <simon@josefsson.org>
89397         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
89399 2008-12-10  Jim Meyering  <meyering@redhat.com>
89401         gl_ASSERT: don't say assertions are disabled when they're not
89402         * m4/assert.m4 (gl_ASSERT): Do not make configure report
89403         "checking whether to enable assertions... no", when they are in
89404         fact enabled.  This is solely a bug in the output of configure.
89405         In spite of saying "no", NDEBUG was not defined in that case.
89406         Also, as noted by Eric Blake, leave assertions enabled upon
89407         --enable-assert=INVALID.
89409 2008-12-10  Bruno Haible  <bruno@clisp.org>
89411         Change MODULES.html to refer to POSIX:2008 where possible.
89412         * MODULES.html.sh (POSIX2008_URL): New variable.
89413         (posix_headers): Remove sys/timeb, ucontext.
89414         (posix2001_headers): New variable.
89415         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
89416         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
89417         index, makecontext, mktemp, pthread_attr_getstackaddr,
89418         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
89419         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
89420         (posix2001_functions): New variable.
89421         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
89422         otherwise.
89424 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89426         add missing include to parse-duration.c
89427         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
89428         * modules/parse-duration (Depends-on): Add xalloc.
89430         fix sed script reading maint.mk
89431         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
89432         (syntax-check-rules): Use it.
89434 2008-12-09  Bruno Haible  <bruno@clisp.org>
89436         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
89437         MacOS X 10.4/PowerPC.
89438         Reported by Simon Josefsson.
89440 2008-12-08  Jim Meyering  <meyering@redhat.com>
89442         work around mingw's lack of some S_IF definitions
89443         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
89444         Reported by Simon Josefsson.
89446 2008-12-08  Bruno Haible  <bruno@clisp.org>
89448         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
89449         applied to variables. Needed on MacOS X 10.4/PowerPC.
89450         Reported by Simon Josefsson.
89452 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
89453         and Eric Blake  <ebb9@byu.net>
89455         assert: honor --enable-assert
89456         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
89457         order to honor --enable-assert, rather than treating it as a
89458         synonym for --disable-assert.
89460 2008-12-08  Jim Meyering  <meyering@redhat.com>
89462         * lib/posixtm.c: Remove now-useless declaration of mktime.
89464         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
89466 2008-12-07  Bruno Haible  <bruno@clisp.org>
89468         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
89469         test_once): Mark functions as static.
89470         * tests/test-tls.c (test_tls): Likewise.
89472 2008-12-07  Bruno Haible  <bruno@clisp.org>
89474         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
89475         iconv_register_autodetect.
89477 2008-12-07  Jim Meyering  <meyering@redhat.com>
89479         posixtm.c: avoid a warning
89480         * lib/posixtm.c (posixtime): Don't initialize tm0.
89481         It's no longer needed to placate gcc4's -Wuninitialized,
89482         and the attempt to placate would elicit a new warning.
89484         unicodeio.c: mark unused parameters
89485         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
89486         (fallback_failure_callback): Likewise.
89488 2008-12-07  Bruno Haible  <bruno@clisp.org>
89490         * gnulib-tool (func_create_testdir): When building the tests
89491         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
89492         Reported by Simon Josefsson.
89494 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89496         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
89498 2008-12-06  Bruno Haible  <bruno@clisp.org>
89500         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
89501         Suggested by Eric Blake.
89503 2008-12-06  Bruno Haible  <bruno@clisp.org>
89505         Fix a c-stack test failure on MacOS X.
89506         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
89507         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
89508         handler for SIGBUS as well.
89509         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
89510         install a signal handler for SIGBUS as well.
89511         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
89513 2008-12-06  Bruno Haible  <bruno@clisp.org>
89515         Advocacy documentation.
89516         * doc/gnulib-intro.texi (Benefits): New section.
89517         * doc/gnulib.texi: Update.
89519 2008-12-06  Bruno Haible  <bruno@clisp.org>
89521         Document the 'manywarnings' module.
89522         * doc/manywarnings.texi: New file.
89523         * doc/gnulib.texi: Include it.
89525 2008-12-05  Eric Blake  <ebb9@byu.net>
89527         tests: silence some gcc warnings
89528         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
89529         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
89530         type mismatches.
89532 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89533             Bruno Haible  <bruno@clisp.org>
89535         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
89537 2008-11-29  Jim Meyering  <meyering@redhat.com>
89539         unicodeio.c: mark unused parameters
89540         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
89541         (fallback_failure_callback): Likewise.
89543         fts: fix a thinko
89544         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
89545         (set_stat_type): Return S_IF*-valued "type" directly.
89546         Prompted by James Youngman's spotting a related bug.
89547         Confirmed by further testing through find.
89549         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
89550         * lib/fts.c (D_TYPE): Define.
89551         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
89552         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
89553         (s_ifmt_shift_bits): New function.
89554         (set_stat_type): New function.
89555         (fts_build): When not calling fts_stat, call set_stat_type
89556         to propagate dirent.d_type info to fts_read caller.
89557         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
89558         fts_statp->st_mode type information may be valid.
89560 2008-11-28  Simon Josefsson  <simon@josefsson.org>
89562         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
89563         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
89564         <sds@gnu.org>.
89566 2008-11-20  Bruno Haible  <bruno@clisp.org>
89568         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
89569         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
89570         INCLUDE_NEXT.
89571         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
89572         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
89573         * modules/math (Makefile.am): Substitute
89574         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
89575         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
89577 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
89578             Bruno Haible  <bruno@clisp.org>
89580         * lib/stdint.in.h: Define all type macros so that their expansion is
89581         a single typedef'ed token. Fixes a compilation failure in Boost which
89582         does "using ::int8_t;".
89584 2008-11-18  Simon Josefsson  <simon@josefsson.org>
89586         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
89587         gl_MANYWARN_ALL_GCC.
89588         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
89589         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
89590         * modules/manywarnings: New file.
89591         * MODULES.html.sh: Mention manywarnings module.
89593 2008-11-18  Bruno Haible  <bruno@clisp.org>
89595         * doc/gnulib-tool.texi (Unit tests): New section.
89597 2008-11-18  Simon Josefsson  <simon@josefsson.org>
89599         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
89600         paths like 'lib/po/foo.po'.
89602 2008-11-17  Simon Josefsson  <simon@josefsson.org>
89604         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
89605         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
89607 2008-11-17  Simon Josefsson  <simon@josefsson.org>
89609         * m4/warnings.m4: Use CPPFLAGS to really check whether the
89610         parameter works.
89612 2008-11-17  Simon Josefsson  <simon@josefsson.org>
89614         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
89616 2008-11-17  Bruce Korb  <bkorb@gnu.org>
89618         * modules/parse-duration-tests: New file.
89619         * tests/test-parse-duration.sh: New file.
89620         * tests/test-parse-duration.c: New file.
89622         New module 'parse-duration'.
89623         * lib/parse-duration.h: New file.
89624         * lib/parse-duration.c: New file.
89625         * modules/parse-duration: New file.
89627 2008-11-17  Bruno Haible  <bruno@clisp.org>
89629         * tests/test-select-out.sh: Comment out the first pipe test.
89630         Reported by Simon Josefsson.
89632 2008-11-17  Bruno Haible  <bruno@clisp.org>
89634         * modules/getaddrinfo (Depends-on): Add servent, hostent.
89635         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
89636         gl_HOSTENT.
89638 2008-11-17  Bruno Haible  <bruno@clisp.org>
89640         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
89641         -lnetwork and -lnet. Needed for Haiku and BeOS.
89643 2008-11-16  Bruno Haible  <bruno@clisp.org>
89645         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
89647 2008-11-16  Bruno Haible  <bruno@clisp.org>
89649         Avoid test failure on Haiku.
89650         * tests/test-fsync.c: Include <errno.h>.
89651         (main): Don't require that fsync (0) fails.
89653 2008-11-15  Bruno Haible  <bruno@clisp.org>
89655         New module 'hostent'.
89656         * modules/hostent: New file.
89657         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
89659 2008-11-15  Bruno Haible  <bruno@clisp.org>
89661         New module 'servent'.
89662         * modules/servent: New file.
89663         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
89665 2008-11-15  Bruno Haible  <bruno@clisp.org>
89667         Avoid generating same test program with two different rules.
89668         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
89669         test-frexp to test-frexp-nolibm.
89670         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
89671         test-frexpl to test-frexpl-nolibm.
89673 2008-11-15  Bruno Haible  <bruno@clisp.org>
89675         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
89676         $(FREXPL_LIBM).
89678 2008-11-15  Bruno Haible  <bruno@clisp.org>
89680         * lib/netdb.in.h: Activate the definitions also when the system's
89681         <netdb.h> has 'struct addrinfo'.
89682         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
89683         EAI_OVERFLOW or AI_NUMERICSERV.
89684         * doc/posix-headers/netdb.texi: Document the problem.
89686 2008-11-15  Bruno Haible  <bruno@clisp.org>
89688         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
89690         Make the 'sched' module work on platforms where <sched.h> exists but
89691         is incomplete (such as Haiku).
89692         * lib/sched.in.h; Include the system's <sched.h> if it exists.
89693         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
89694         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
89695         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
89696         HAVE_STRUCT_SCHED_PARAM.
89697         * modules/sched (Depends-on): Add include_next.
89698         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
89699         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
89700         * doc/posix-headers/sched.texi: Document the issue.
89702 2008-11-13  Jim Meyering  <meyering@redhat.com>
89704         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
89705         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
89706         test would fail due to the difference in the Report bugs to ...
89707         line.  The expected address is empty, "<>", while the actual
89708         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
89710 2008-11-12  Bruno Haible  <bruno@clisp.org>
89712         lstat: don't compile lstat.c on systems lacking lstat
89713         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
89714         which don't have lstat; this is handled by lib/sys_stat.in.h already.
89715         Reported by Daniel P. Berrange via Jim Meyering.
89717 2008-11-12  Jim Meyering  <meyering@redhat.com>
89719         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
89721 2008-11-12  Simon Josefsson  <simon@josefsson.org>
89723         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
89724         instead.
89726 2008-11-12  Bruno Haible  <bruno@clisp.org>
89728         * lib/unicodeio.c: Include unistr.h.
89729         (utf8_wctomb): Remove function.
89730         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
89732 2008-11-12  Simon Josefsson  <simon@josefsson.org>
89734         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
89735         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
89736         <bruno@clisp.org>.
89737         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
89739 2008-11-12  Simon Josefsson  <simon@josefsson.org>
89741         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
89742         * doc/gnulib.texi: Add section for warnings.
89744 2008-11-11  Bruno Haible  <bruno@clisp.org>
89746         * lib/sockets.h: Add a comment.
89748 2008-11-11  Karl Berry  <karl@gnu.org>
89750         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
89752 2008-11-11  Eric Blake  <ebb9@byu.net>
89754         fdl.texi: avoid git symlinks
89755         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
89757 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
89759         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
89761 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
89763         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
89764         (gl_WARN_ADD): Substitute $2 if literal.
89766 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
89768         * m4/warning.m4: Remove.
89770 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
89772         * m4/warnings.m4: Almost complete rewrite. :-)
89774 2008-11-10  Simon Josefsson  <simon@josefsson.org>
89776         * modules/warnings: New module.
89777         * m4/warnings.m4: New file.
89778         * MODULES.html.sh: Mention warnings module.
89779         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
89780         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
89782 2008-11-10  Eric Blake  <ebb9@byu.net>
89784         fdl.texi: make a symlink to the latest version
89785         * doc/standards.texi: Revert today's earlier change.
89786         * doc/fdl-1.2.texi: Rename from old fdl.texi...
89787         * doc/fdl.texi: ...and replace this with a symlink to the newer
89788         fdl-1.3.texi.
89790 2008-11-10  Bruno Haible  <bruno@clisp.org>
89792         * tests/test-select-fd.c (main): Accept the result file name as fourth
89793         argument.
89794         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
89795         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
89797 2008-11-10  Bruno Haible  <bruno@clisp.org>
89799         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
89800         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
89801         as autoconf-substituted macros.
89802         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
89803         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
89804         gl_NETDB_H_DEFAULTS. Set these variables.
89805         * modules/netdb (Makefile.am): Substitute these variables.
89807 2008-11-10  Eric Blake  <ebb9@byu.net>
89809         standards.texi: include correct file for FDL 1.3
89810         * doc/standards.texi (GNU Free Documentation License): Change
89811         include file to pull in FDL 1.3, not 1.2.
89813         fdl.texi: revert accidental change to license
89814         * doc/fdl.texi: This is FDL 1.2, not 1.3.
89816 2008-11-10  Bruno Haible  <bruno@clisp.org>
89818         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
89819         cross-compiling guesses also when the native compile gives no result.
89821 2008-11-10  Bruno Haible  <bruno@clisp.org>
89823         * lib/spawni.c (__spawni): Force variable into the stack.
89825 2008-11-10  Bruno Haible  <bruno@clisp.org>
89827         Add support for Haiku.
89828         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
89829         glibc and BeOS, but also on Haiku.
89830         * lib/fpurge.c (fpurge): Likewise.
89831         * lib/freadable.c (freadable): Likewise.
89832         * lib/freadahead.c (freadahead): Likewise.
89833         * lib/freading.c (freading): Likewise.
89834         * lib/freadptr.c (freadptr): Likewise.
89835         * lib/freadseek.c (freadptrinc): Likewise.
89836         * lib/fseeko.c (rpl_fseeko): Likewise.
89837         * lib/fseterr.c (fseterr): Likewise.
89838         * lib/fwritable.c (fwritable): Likewise.
89839         * lib/fwriting.c (fwriting): Likewise.
89840         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
89842 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
89844         * lib/config.charset: Treat Haiku like BeOS.
89846 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
89848         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
89849         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
89851 2008-11-08  Bruno Haible  <bruno@clisp.org>
89853         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
89854         AC_CACHE_CHECK.
89856 2008-11-08  Bruno Haible  <bruno@clisp.org>
89858         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
89860 2008-11-08  Bruno Haible  <bruno@clisp.org>
89862         * tests/test-select-fd.c: New file.
89863         * tests/test-select-in.sh: New file.
89864         * tests/test-select-out.sh: New file.
89865         * tests/test-select-stdin.c: New file.
89866         * modules/select-tests (Files): Add the new files.
89867         (Depends-on): Add gettimeofday.
89868         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
89869         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
89870         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
89872 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
89873             Bruno Haible  <bruno@clisp.org>
89875         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
89877 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
89879         * build-aux/pmccabe2html: Added support for C++ source files.
89881 2008-11-05  Ben Pfaff  <blp@gnu.org>
89883         Fix lib/close.c build on Windows.
89884         * modules/close (Files): Add lib/w32sock.h.
89886 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
89888         Accept Bison's NEWS format.
89889         * build-aux/announce-gen (print_news_deltas): Tweak
89890         $re_prefix.
89892 2008-11-04  Bruno Haible  <bruno@clisp.org>
89894         * modules/random_r (Maintainer): Add glibc.
89896 2008-11-04  Simon Josefsson  <simon@josefsson.org>
89898         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
89899         by karl@freefriends.org (Karl Berry).
89900         * doc/alloca.texi: Likewise.
89901         * doc/c-ctype.texi: Likewise.
89902         * doc/c-strcase.texi: Likewise.
89903         * doc/c-strcaseeq.texi: Likewise.
89904         * doc/c-strcasestr.texi: Likewise.
89905         * doc/c-strstr.texi: Likewise.
89906         * doc/c-strtod.texi: Likewise.
89907         * doc/c-strtold.texi: Likewise.
89908         * doc/ctime.texi: Likewise.
89909         * doc/error.texi: Likewise.
89910         * doc/fdl.texi: Likewise.
89911         * doc/gcd.texi: Likewise.
89912         * doc/getdate.texi: Likewise.
89913         * doc/gnulib-intro.texi: Likewise.
89914         * doc/gnulib-tool.texi: Likewise.
89915         * doc/gnulib.texi: Likewise.
89916         * doc/inet_ntoa.texi: Likewise.
89917         * doc/maintain.texi: Likewise.
89918         * doc/make-stds.texi: Likewise.
89919         * doc/quote.texi: Likewise.
89920         * doc/regexprops-generic.texi: Likewise.
89921         * doc/standards.texi: Likewise.
89922         * doc/verify.texi: Likewise.
89923         * doc/visibility.texi: Likewise.
89924         * doc/gnulib.texi (GNU Free Documentation License): Include
89925         fdl-1.3.texi instead of fdl.texi.
89927 2008-11-04  Simon Josefsson  <simon@josefsson.org>
89929         * doc/fdl-1.3.texi: New file, from
89930         <http://www.gnu.org/licenses/fdl-1.3.texi>.
89931         * modules/fdl-1.3: Add.
89932         * MODULES.html.sh: Add fdl-1.3.
89934 2008-11-03  Bruno Haible  <bruno@clisp.org>
89936         Make determination of absolute name of header file work with AIX xlc.
89937         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
89938         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
89939         preprocessing.
89940         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
89941         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
89943 2008-11-03  Simon Josefsson  <simon@josefsson.org>
89945         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
89946         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
89947         <ludo@gnu.org>.
89949 2008-11-02  Bruno Haible  <bruno@clisp.org>
89951         Mark 'strpbrk' obsolete.
89952         * modules/strpbrk (Status, Notice): New sections.
89953         * modules/strtok_r (Depends-on): Add strpbrk.
89955 2008-11-02  Bruno Haible  <bruno@clisp.org>
89957         Mark 'strdup' obsolete.
89958         * modules/strdup (Status, Notice): New sections.
89959         * modules/findprog (Depends-on): Add strdup.
89960         * modules/getaddrinfo (Depends-on): Likewise.
89961         * modules/localename (Depends-on): Likewise.
89962         * modules/relocatable-lib (Depends-on): Likewise.
89963         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
89964         * modules/relocatable-prog (Depends-on): Likewise.
89965         * modules/trim (Depends-on): Likewise.
89966         * modules/unictype/gen-ctype (Depends-on): Likewise.
89967         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
89969 2008-11-02  Bruno Haible  <bruno@clisp.org>
89971         Mark 'strcspn' obsolete.
89972         * modules/strcspn (Status, Notice): New sections.
89974 2008-11-02  Bruno Haible  <bruno@clisp.org>
89976         Mark 'rmdir' obsolete.
89977         * modules/rmdir (Status, Notice): New sections.
89978         * modules/clean-temp (Depends-on): Add rmdir.
89979         * modules/openat (Depends-on): Likewise.
89981 2008-11-02  Bruno Haible  <bruno@clisp.org>
89983         Mark 'raise' obsolete.
89984         * modules/raise (Status, Notice): New sections.
89985         (Include): Specify <signal.h>.
89986         * modules/stdio (Depends-on): Add raise.
89987         * modules/write (Depends-on): Likewise.
89989 2008-11-02  Bruno Haible  <bruno@clisp.org>
89991         Mark 'memset' obsolete.
89992         * modules/memset (Status, Notice): New sections.
89994 2008-11-02  Bruno Haible  <bruno@clisp.org>
89996         Mark 'memmove' obsolete.
89997         * modules/memmove (Status, Notice): New sections.
89998         * modules/argp (Depends-on): Add memmove.
89999         * modules/argz (Depends-on): Likewise.
90000         * modules/canonicalize (Depends-on): Likewise.
90001         * modules/canonicalize-lgpl (Depends-on): Likewise.
90002         * modules/fts (Depends-on): Likewise.
90003         * modules/getcwd (Depends-on): Likewise.
90004         * modules/human (Depends-on): Likewise.
90005         * modules/regex (Depends-on): Likewise.
90006         * modules/striconveh (Depends-on): Likewise.
90007         * modules/trim (Depends-on): Likewise.
90008         * modules/unistr/u8-move (Depends-on): Likewise.
90009         * modules/unistr/u16-move (Depends-on): Likewise.
90010         * modules/unistr/u32-move (Depends-on): Likewise.
90012 2008-11-02  Bruno Haible  <bruno@clisp.org>
90014         Mark 'memcpy' obsolete.
90015         * modules/memcpy (Status, Notice): New sections.
90017 2008-11-02  Bruno Haible  <bruno@clisp.org>
90019         Mark 'memcmp' obsolete.
90020         * modules/memcmp (Status, Notice): New sections.
90021         * modules/argmatch (Depends-on): Add memchr.
90022         * modules/backupfile (Depends-on): Likewise.
90023         * modules/c-strcasestr (Depends-on): Likewise.
90024         * modules/crypto/des (Depends-on): Likewise.
90025         * modules/csharpcomp (Depends-on): Likewise.
90026         * modules/fnmatch (Depends-on): Likewise.
90027         * modules/git-merge-changelog (Depends-on): Likewise.
90028         * modules/isnand (Depends-on): Likewise.
90029         * modules/isnand-nolibm (Depends-on): Likewise.
90030         * modules/isnanf (Depends-on): Likewise.
90031         * modules/isnanf-nolibm (Depends-on): Likewise.
90032         * modules/isnanl (Depends-on): Likewise.
90033         * modules/isnanl-nolibm (Depends-on): Likewise.
90034         * modules/mbchar (Depends-on): Likewise.
90035         * modules/memcoll (Depends-on): Likewise.
90036         * modules/quotearg (Depends-on): Likewise.
90037         * modules/regex (Depends-on): Likewise.
90038         * modules/relocatable-prog (Depends-on): Likewise.
90039         * modules/same (Depends-on): Likewise.
90040         * modules/signbit (Depends-on): Likewise.
90041         * modules/strcasestr-simple (Depends-on): Likewise.
90042         * modules/unictype/gen-ctype (Depends-on): Likewise.
90043         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
90044         * modules/uniname/uniname (Depends-on): Likewise.
90045         * modules/unistr/u8-cmp (Depends-on): Likewise.
90047 2008-11-02  Bruno Haible  <bruno@clisp.org>
90049         Mark 'memchr' obsolete.
90050         * modules/memchr (Status, Notice): New sections.
90051         * modules/argp (Depends-on): Add memchr.
90052         * modules/base64 (Depends-on): Likewise.
90053         * modules/c-strcasestr (Depends-on): Likewise.
90054         * modules/chdir-long (Depends-on): Likewise.
90055         * modules/fnmatch (Depends-on): Likewise.
90056         * modules/getsubopt (Depends-on): Likewise.
90057         * modules/git-merge-changelog (Depends-on): Likewise.
90058         * modules/glob (Depends-on): Likewise.
90059         * modules/strcasestr-simple (Depends-on): Likewise.
90060         * modules/strnlen (Depends-on): Likewise.
90062 2008-11-02  Bruno Haible  <bruno@clisp.org>
90064         Mark 'atexit' obsolete.
90065         * modules/atexit (Status, Notice): New sections.
90066         * modules/chdir-long (Depends-on): Add atexit.
90067         * modules/wait-process (Depends-on): Likewise.
90069 2008-11-02  Bruno Haible  <bruno@clisp.org>
90071         * gnulib-tool: New option --with-obsolete.
90072         (func_usage): Document it.
90073         (func_modules_transitive_closure): Drop obsolete dependencies if
90074         incobsolete is not true.
90075         (func_import): Read and save the incobsolete variable to the cache.
90077 2008-11-02  Bruno Haible  <bruno@clisp.org>
90079         * modules/TEMPLATE-EXTENDED: New field 'Status'.
90080         * gnulib-tool: New option --extract-status.
90081         (func_usage): Document it.
90082         (sed_extract_prog): Recognize it.
90083         (func_get_status): New function.
90085 2008-10-30  Simon Josefsson  <simon@josefsson.org>
90087         * modules/sockets (License): Change from LGPL to LGPLv2+.
90089 2008-10-28  Simon Josefsson  <simon@josefsson.org>
90091         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
90093 2008-10-28  Simon Josefsson  <simon@josefsson.org>
90095         * MODULES.html.sh (Support for systems lacking POSIX:2001):
90096         Mention times and sys_times.
90097         * modules/sys_times, modules/sys_times-tests: New modules.
90098         * modules/times, modules/times-tests: Likewise
90099         * m4/sys_times_h.m4: New file.
90100         * lib/sys_times.in.h: Likewise
90101         * lib/times.c: Likewise.
90102         * tests/test-sys_times.c: Likewise.
90103         * tests/test-times.c: Likewise.
90104         * doc/posix-headers/sys_times.texi: Update.
90105         * doc/posix-functions/times.texi: Update.
90107 2008-10-28  Jim Meyering  <meyering@redhat.com>
90109         * modules/tempname (Depends-on): Add lstat.
90111         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
90113 2008-10-28  Simon Josefsson  <simon@josefsson.org>
90115         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
90116         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
90117         using idiom used elsewhere in gnulib.
90119 2008-10-27  Jim Meyering  <meyering@redhat.com>
90121         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
90123 2008-10-27  Simon Josefsson  <simon@josefsson.org>
90125         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
90126         TESTS_ENVIRONMENT, for shell scripts that needs to call built
90127         programs.
90128         * tests/test-argp-2.sh: Use $EXEEXT when needed.
90130 2008-10-27  Simon Josefsson  <simon@josefsson.org>
90132         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
90134 2008-10-27  Bruno Haible  <bruno@clisp.org>
90136         * tests/test-lstat.c: Include <stdio.h>.
90138 2008-10-27  Simon Josefsson  <simon@josefsson.org>
90140         * modules/lstat-tests: New module.
90141         * tests/test-lstat.c: New file.
90143 2008-10-26  Jim Meyering  <meyering@redhat.com>
90145         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
90147 2008-10-26  Simon Josefsson  <simon@josefsson.org>
90148             Bruno Haible  <bruno@clisp.org>
90150         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
90151         * modules/configmake (Include): Add a note that the include must come
90152         after all system headers.
90153         * lib/javaversion.c: Include configmake.h after all other includes.
90155 2008-10-26  Bruno Haible  <bruno@clisp.org>
90157         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
90158         HAVE_STRUCT_RANDOM_DATA to 1.
90159         (gl_STDLIB_H): Simplify.
90161 2008-10-26  Simon Josefsson  <simon@josefsson.org>
90163         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
90164         substitute HAVE_STRUCT_RANDOM_DATA.
90165         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
90166         random_data.
90167         * modules/stdlib (Makefile.am): Substitute
90168         HAVE_STRUCT_RANDOM_DATA.
90170 2008-10-26  Simon Josefsson  <simon@josefsson.org>
90172         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
90173         * doc/gnulib-intro.texi (Copyright): Likewise.
90175 2008-10-26  Simon Josefsson  <simon@josefsson.org>
90177         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
90178         findings.
90180 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
90181             Bruno Haible  <bruno@clisp.org>
90183         * lib/unistd.in.h: Include <winsock2.h>.
90184         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
90185         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
90186         Provide dummy declarations.
90187         (gethostname): Override.
90188         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
90189         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
90190         gl_PREREQ_SYS_H_WINSOCK2.
90191         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
90192         * doc/posix-functions/gethostname.texi: More details.
90194 2008-10-25  Bruno Haible  <bruno@clisp.org>
90196         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
90197         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
90198         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
90200         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
90201         here ...
90202         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
90203         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
90204         gl_UNISTD_H_DEFAULTS.
90206 2008-10-25  Eric Blake  <ebb9@byu.net>
90208         signbit: avoid spurious compiler failure
90209         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
90210         declarations inside function.
90212 2008-10-24  Simon Josefsson  <simon@josefsson.org>
90213             Bruno Haible  <bruno@clisp.org>
90215         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
90216         * modules/random_r (Depends-on): Add stdint.
90218 2008-10-24  Bruno Haible  <bruno@clisp.org>
90220         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
90221         Eggert.
90222         * modules/strerror (License): Likewise.
90224 2008-10-24  Jim Meyering  <meyering@redhat.com>
90226         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
90227         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
90229 2008-10-24  Eric Blake  <ebb9@byu.net>
90231         getgroups: fix compilation when getgroups is available
90232         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
90233         but with <config.h> override of getgroups disabled.
90235 2008-10-24  Simon Josefsson  <simon@josefsson.org>
90237         * doc/gnulib.texi (Header files): Add note about C++ problems.
90238         Explained by Bruno Haible <bruno@clisp.org>.
90240 2008-10-23  Bruno Haible  <bruno@clisp.org>
90242         Define a dummy SA_NODEFER macro on Interix.
90243         * lib/signal.in.h (SA_NODEFER): Define fallback.
90244         Reported by Aleksey Cheusov <cheusov@tut.by> via
90245         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
90247 2008-10-23  Bruno Haible  <bruno@clisp.org>
90249         * modules/freadahead (License): Change to LGPLv2+.
90250         Suggested by Simon Josefsson.
90252 2008-10-23  Jim Meyering  <meyering@redhat.com>
90254         random_r: new module
90255         * modules/random_r: New file.
90256         * m4/random_r.m4: New file.
90257         * lib/random_r.c: New file, from glibc.
90258         * modules/random_r-tests: New file.
90259         * tests/test-random_r.c: New file.
90260         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
90261          Declare.
90262         (RAND_MAX): Define.
90263         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
90264         * modules/stdlib: Substitute them, too.
90265         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
90266         * doc/glibc-functions/initstate_r.texi: Mention the new module.
90267         * doc/glibc-functions/random_r.texi: Likewise.
90268         * doc/glibc-functions/setstate_r.texi: Likewise.
90269         * doc/glibc-functions/srandom_r.texi: Likewise.
90270         * config/srclist.txt: Mention it.
90272 2008-10-23  David Lutterkort  <lutter@redhat.com>
90274         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
90275         link requirement
90277 2008-10-23  Jim Meyering  <meyering@redhat.com>
90279         selinux-h: mark parameters of stub functions as intentionally unused
90280         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
90281         * lib/se-context.in.h: Likewise.
90283 2008-10-22  Simon Josefsson  <simon@josefsson.org>
90285         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
90287 2008-10-22  Simon Josefsson  <simon@josefsson.org>
90289         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
90291 2008-10-22  Eric Blake  <ebb9@byu.net>
90293         glthread/thread: avoid compiler warning
90294         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
90295         Add unreachable abort to silence compiler.
90297 2008-10-22  Eric Blake  <ebb9@byu.net>
90299         netdb: also supply struct addrinfo for cygwin 1.5.x
90300         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
90301         older cygwin.
90302         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
90303         cygwin.
90304         * doc/posix-headers/netdb.texi (netdb.h): Document this.
90306 2008-10-22  Bruno Haible  <bruno@clisp.org>
90308         * users.txt: Update entry about pspp.
90310 2008-10-21  Bruno Haible  <bruno@clisp.org>
90312         Simplification.
90313         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
90314         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
90316         Simplification.
90317         * lib/ioctl.c (ioctl): Don't undefine.
90318         * lib/socket.c (socket): Don't undefine.
90320         Remove unused module indicator macros.
90321         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
90322         GNULIB_$1 as a C macro.
90324         * doc/posix-functions/close.texi: Undo last change.
90325         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
90326         Windows platforms.
90328 2008-10-21  Bruno Haible  <bruno@clisp.org>
90330         Add gethostname() declaration to <unistd.h>.
90331         * lib/unistd.in.h (gethostname): New declaration.
90332         * lib/gethostname.c: Include <unistd.h>.
90333         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
90334         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
90335         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
90336         and HAVE_GETHOSTNAME.
90337         * modules/gethostname (Depends-on): Add unistd.
90338         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
90339         (Include): Specify <unistd.h>.
90340         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
90341         HAVE_GETHOSTNAME.
90342         * tests/test-gethostname.c: Include <unistd.h> first.
90344 2008-10-21  Bruno Haible  <bruno@clisp.org>
90346         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
90347         * modules/select-tests (Depends-on): Likewise.
90348         Reported by Simon Josefsson.
90350 2008-10-21  Simon Josefsson  <simon@josefsson.org>
90352         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
90353         * lib/accept.c: New file, based on winsock.c.
90354         * lib/bind.c: New file, based on winsock.c.
90355         * lib/connect.c: New file, based on winsock.c.
90356         * lib/getpeername.c: New file, based on winsock.c.
90357         * lib/getsockname.c: New file, based on winsock.c.
90358         * lib/getsockopt.c: New file, based on winsock.c.
90359         * lib/ioctl.c: New file, based on winsock.c.
90360         * lib/listen.c: New file, based on winsock.c.
90361         * lib/recv.c: New file, based on winsock.c.
90362         * lib/recvfrom.c: New file, based on winsock.c.
90363         * lib/send.c: New file, based on winsock.c.
90364         * lib/sendto.c: New file, based on winsock.c.
90365         * lib/setsockopt.c: New file, based on winsock.c.
90366         * lib/shutdown.c: New file, based on winsock.c.
90367         * lib/socket.c: New file, based on winsock.c.
90368         * lib/w32sock.h: New file, based on winsock.c.
90369         * lib/winsock.c: Remove file.
90370         * modules/accept: Likewise.
90371         * modules/bind: Likewise.
90372         * modules/connect: Likewise.
90373         * modules/getpeername: Likewise.
90374         * modules/getsockname: Likewise.
90375         * modules/getsockopt: Likewise.
90376         * modules/ioctl: Likewise.
90377         * modules/listen: Likewise.
90378         * modules/recv: Likewise.
90379         * modules/recvfrom: Likewise.
90380         * modules/send: Likewise.
90381         * modules/sendto: Likewise.
90382         * modules/setsockopt: Likewise.
90383         * modules/shutdown: Likewise.
90384         * modules/socket: Use socket.c instead of winsock.c.
90385         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
90386         * doc/posix-functions/accept.texi: Doc fix.
90387         * doc/posix-functions/bind.texi: Doc fix.
90388         * doc/posix-functions/close.texi: Doc fix.
90389         * doc/posix-functions/connect.texi: Doc fix.
90390         * doc/posix-functions/getpeername.texi: Doc fix.
90391         * doc/posix-functions/getsockname.texi: Doc fix.
90392         * doc/posix-functions/getsockopt.texi: Doc fix.
90393         * doc/posix-functions/ioctl.texi: Doc fix.
90394         * doc/posix-functions/listen.texi: Doc fix.
90395         * doc/posix-functions/recv.texi: Doc fix.
90396         * doc/posix-functions/recvfrom.texi: Doc fix.
90397         * doc/posix-functions/send.texi: Doc fix.
90398         * doc/posix-functions/sendto.texi: Doc fix.
90399         * doc/posix-functions/setsockopt.texi: Doc fix.
90400         * doc/posix-functions/shutdown.texi: Doc fix.
90401         * doc/posix-functions/socket.texi: Doc fix.
90403 2008-10-20  Bruno Haible  <bruno@clisp.org>
90405         Take into account the role of SIGABRT_COMPAT on Windows 2008.
90406         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
90407         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
90408         as an alias for SIGABRT.
90409         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
90410         (sigaction): Map it to SIGABRT.
90411         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
90413 2008-10-20  Bruno Haible  <bruno@clisp.org>
90415         * lib/fts.c: Don't include lstat.h.
90416         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
90418         Move the lstat() declaration to <sys/stat.h>.
90419         * lib/lstat.h: Remove file.
90420         * lib/sys_stat.in.h: Add special invocation convention.
90421         (lstat): New declaration.
90422         * lib/lstat.c (orig_lstat): New function.
90423         (rpl_lstat): Use orig_lstat instead of lstat.
90424         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
90425         AC_C_INLINE. Set REPLACE_LSTAT.
90426         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
90427         and REPLACE_LSTAT.
90428         * modules/lstat (Files): Remove lib/lstat.h.
90429         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
90430         (Include): Specify <sys/stat.h> instead of lstat.h.
90431         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
90432         REPLACE_LSTAT.
90433         * NEWS: Mention the change.
90435 2008-10-20  Bruno Haible  <bruno@clisp.org>
90437         * modules/posix_spawn-tests: New file.
90438         * tests/test-posix_spawn3.c: New file.
90440 2008-10-20  Bruno Haible  <bruno@clisp.org>
90442         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
90443         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
90444         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
90445         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
90446         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
90448 2008-10-20  Bruno Haible  <bruno@clisp.org>
90450         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
90451         of posix_spawn on AIX 5.3.
90453 2008-10-20  Bruno Haible  <bruno@clisp.org>
90455         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
90457 2008-10-20  Bruno Haible  <bruno@clisp.org>
90459         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
90460         of AC_LANG_PROGRAM.
90462 2008-10-20  Simon Josefsson  <simon@josefsson.org>
90464         * lib/netdb.in.h: Don't define GNU specific constants until they
90465         are supported or needed.  Reported by Bruno Haible
90466         <bruno@clisp.org>.
90468 2008-10-20  Simon Josefsson  <simon@josefsson.org>
90470         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
90472 2008-10-20  Simon Josefsson  <simon@josefsson.org>
90474         * lib/getaddrinfo.h: Remove file.
90475         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
90476         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
90477         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
90478         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
90479         * modules/netdb: Substitute GNULIB_GETADDRINFO.
90480         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
90481         * tests/test-getaddrinfo.c: Likewise.
90482         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
90483         * NEWS: Mention change.
90485 2008-10-19  Bruno Haible  <bruno@clisp.org>
90487         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
90489 2008-10-19  Bruno Haible  <bruno@clisp.org>
90491         * lib/wait-process.c: Include simply <sys/wait.h>.
90492         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
90493         WIFSTOPPED): Remove fallback definitions.
90494         * modules/wait-process (Depends-on): Add sys_wait.
90496         New module 'sys_wait'.
90497         * modules/sys_wait: New file.
90498         * lib/sys_wait.in.h: New file, partially copied from
90499         lib/wait-process.c.
90500         * m4/sys_wait_h.m4: New file.
90501         * doc/posix-headers/sys_wait.texi: Mention the new module.
90503 2008-10-19  Bruno Haible  <bruno@clisp.org>
90505         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
90507 2008-10-19  Bruno Haible  <bruno@clisp.org>
90509         Assume that waitpid() fills an 'int' status, not a 'union wait'.
90510         * lib/wait-process.c (WAIT_T): Remove type.
90511         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
90512         (wait_subprocess): Update.
90514 2008-10-19  Bruno Haible  <bruno@clisp.org>
90516         New module 'atoll'.
90517         * modules/atoll: New file.
90518         * lib/stdlib.in.h (atoll): New declaration.
90519         * lib/atoll.c: New file, from glibc with modifications.
90520         * m4/atoll.m4: New file.
90521         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
90522         HAVE_ATOLL.
90523         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
90524         * doc/posix-functions/atoll.texi: Mention the new module.
90526 2008-10-19  Bruno Haible  <bruno@clisp.org>
90528         Add strtoull() declaration to <stdlib.h>.
90529         * lib/stdlib.in.h (strtoull): New declaration.
90530         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
90531         Set HAVE_STRTOULL.
90532         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
90533         HAVE_STRTOULL.
90534         * modules/strtoull (Depends-on): Add stdlib.
90535         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
90536         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
90537         HAVE_STRTOULL.
90539 2008-10-19  Bruno Haible  <bruno@clisp.org>
90541         Add strtoll() declaration to <stdlib.h>.
90542         * lib/stdlib.in.h (strtoll): New declaration.
90543         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
90544         Set HAVE_STRTOLL.
90545         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
90546         HAVE_STRTOLL.
90547         * modules/strtoll (Depends-on): Add stdlib.
90548         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
90549         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
90551 2008-10-19  Bruno Haible  <bruno@clisp.org>
90553         * modules/bcopy (Depends-on): Add strings.
90554         (Include): Specify <strings.h>.
90556 2008-10-19  Bruno Haible  <bruno@clisp.org>
90558         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
90560 2008-10-19  Bruno Haible  <bruno@clisp.org>
90562         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
90563         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
90564         mingw.
90566 2008-10-19  Bruno Haible  <bruno@clisp.org>
90568         * lib/atanl.c: Don't include isnanl.h.
90569         * lib/cosl.c: Likewise.
90570         * lib/ldexpl.c: Likewise.
90571         * lib/logl.c: Likewise.
90572         * lib/sinl.c: Likewise.
90573         * lib/sqrtl.c: Likewise.
90574         * lib/tanl.c: Likewise.
90576         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
90577         * lib/isnanf.h: Remove file.
90578         * lib/isnand.h: Remove file.
90579         * lib/isnanl.h: Remove file.
90580         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
90581         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
90582         macros.
90583         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
90584         HAVE_ISNANF, don't define it as a C macro.
90585         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
90586         HAVE_ISNAND, don't define it as a C macro.
90587         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
90588         HAVE_ISNANL, don't define it as a C macro.
90589         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
90590         HAVE_ISNAN[FDL].
90591         * modules/isnanf (Files): Remove lib/isnanf.h.
90592         (Depends-on): Add math.
90593         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
90594         (Include): Specify <math.h> instead of isnanf.h.
90595         * modules/isnand (Files): Remove lib/isnand.h.
90596         (Depends-on): Add math.
90597         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
90598         (Include): Specify <math.h> instead of isnand.h.
90599         * modules/isnanl (Files): Remove lib/isnanl.h.
90600         (Depends-on): Add math.
90601         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
90602         (Include): Specify <math.h> instead of isnanl.h.
90603         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
90604         HAVE_ISNAN[FDL].
90605         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
90606         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
90607         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
90608         * NEWS: Mention the change.
90610 2008-10-18  Bruno Haible  <bruno@clisp.org>
90612         Add getusershell(), setusershell(), endusershell() declarations to
90613         <unistd.h>.
90614         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
90615         declarations.
90616         * lib/getusershell.c: Include unistd.h.
90617         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
90618         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
90619         HAVE_GETUSERSHELL.
90620         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
90621         and HAVE_GETUSERSHELL.
90622         * modules/getusershell (Depends-on): Add unistd, extensions.
90623         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
90624         (Include): Specify <unistd.h>.
90625         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
90626         HAVE_GETUSERSHELL.
90628 2008-10-18  Bruno Haible  <bruno@clisp.org>
90630         Add a getloadavg() declaration to <stdlib.h>.
90631         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
90632         getloadavg declaration.
90633         (getloadavg): New declaration.
90634         * lib/getloadavg.c: Include <stdlib.h> first.
90635         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
90636         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
90637         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
90638         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
90639         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
90640         * modules/getloadavg (Depends-on): Add stdlib, extensions.
90641         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
90642         (Include): Specify <stdlib.h>.
90643         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
90644         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
90646 2008-10-18  Bruno Haible  <bruno@clisp.org>
90648         * lib/dirchownmod.c: Don't include lchmod.h.
90650         Move the lchmod() declaration to <sys/stat.h>.
90651         * lib/lchmod.h: Remove file.
90652         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
90653         (lchmod): New declaration, moved here from lib/lchown.h.
90654         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
90655         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
90656         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
90657         and HAVE_LCHMOD.
90658         * modules/lchmod (Files): Remove lib/lchmod.h.
90659         (Depends-on): Add sys_stat, extensions.
90660         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
90661         (Include): Specify <sys/stat.h> instead of lchmod.h.
90662         * modules/sys_stat (Depends-on): Add link-warning.
90663         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
90664         definition of GL_LINK_WARNING.
90665         * NEWS: Mention the change.
90667 2008-10-18  Bruno Haible  <bruno@clisp.org>
90669         * lib/fchdir.c: Don't include dirfd.h.
90670         * lib/fts.c: Likewise.
90671         * lib/getcwd.c: Likewise.
90672         * lib/glob.c: Likewise.
90674         Move the dirfd() declaration to <dirent.h>.
90675         * lib/dirfd.h: Remove file.
90676         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
90677         (dirfd): New declaration.
90678         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
90679         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
90680         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
90681         HAVE_DECL_DIRFD.
90682         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
90683         HAVE_DECL_DIRFD.
90684         * modules/dirfd (Files): Remove lib/dirfd.h.
90685         (Depends-on): Add dirent, extensions.
90686         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
90687         (Include): Specify <dirent.h> instead of dirfd.h.
90688         * modules/dirent (Depends-on): Add link-warning.
90689         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
90690         definition of GL_LINK_WARNING.
90691         * NEWS: Mention the change.
90693 2008-10-18  Bruno Haible  <bruno@clisp.org>
90695         Move the euidaccess() declaration to <unistd.h>.
90696         * lib/euidaccess.h: Remove file.
90697         * lib/unistd.in.h (euidaccess): New declaration.
90698         * lib/euidaccess.c: Don't include euidaccess.h.
90699         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
90700         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
90701         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
90702         and HAVE_EUIDACCESS.
90703         * modules/euidaccess (Files): Remove lib/euidaccess.h.
90704         (Depends-on): Add unistd.
90705         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
90706         (Include): Specify <unistd.h> instead of euidaccess.h.
90707         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
90708         HAVE_EUIDACCESS.
90709         * NEWS: Mention the change.
90711 2008-10-18  Bruno Haible  <bruno@clisp.org>
90713         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
90715         Move the getdomainname() declaration to <unistd.h>.
90716         * lib/getdomainname.h: Remove file.
90717         * lib/unistd.in.h (getdomainname): New declaration.
90718         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
90719         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
90720         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
90721         HAVE_GETDOMAINNAME.
90722         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
90723         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
90724         * modules/getdomainname (Files): Remove lib/getdomainname.h.
90725         (Depends-on): Add unistd, extensions.
90726         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
90727         (Includes): Specify <unistd.h> instead of getdomainname.h.
90728         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
90729         HAVE_GETDOMAINNAME.
90730         * NEWS: Mention the change.
90732 2008-10-18  Bruno Haible  <bruno@clisp.org>
90734         * modules/dirent: New file.
90735         * m4/dirent_h.m4: New file.
90736         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
90737         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
90738         * modules/fchdir (Files): Remove lib/dirent.in.h.
90739         (Depends-on): Add dirent.
90740         (Makefile.am): Move rules to modules/dirent.
90741         * doc/posix-headers/dirent.texi: Mention the new module.
90743 2008-10-18  Bruno Haible  <bruno@clisp.org>
90745         Avoid -Wunused-parameter warnings in public gnulib header files.
90746         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
90747         macro.
90748         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
90750 2008-10-18  Bruno Haible  <bruno@clisp.org>
90752         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
90753         * doc/glibc-functions/error.texi: Mention the module 'error'.
90754         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
90755         * doc/glibc-functions/getdomainname.texi: Mention the module
90756         'getdomainname'.
90757         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
90758         * doc/glibc-functions/getpagesize.texi: Mention the module
90759         'getpagesize'.
90760         * doc/glibc-functions/getusershell.texi: Mention the module
90761         'getusershell'.
90762         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
90763         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
90764         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
90765         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
90766         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
90767         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
90768         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
90769         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
90770         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
90771         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
90772         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
90773         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
90774         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
90775         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
90777 2008-10-17  Bruno Haible  <bruno@clisp.org>
90779         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
90780         HP-UX and IRIX, use -0.0L.
90781         * tests/test-ceill.c (minus_zero): Likewise.
90782         * tests/test-floorl.c (minus_zero): Likewise.
90783         * tests/test-frexpl.c (minus_zero): Likewise.
90784         * tests/test-isnan.c (minus_zerol): Likewise.
90785         * tests/test-isnanl.h (minus_zero): Likewise.
90786         * tests/test-ldexpl.c (minus_zero): Likewise.
90787         * tests/test-roundl.c (minus_zero): Likewise.
90788         * tests/test-signbit.c (minus_zerol): Likewise.
90789         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
90790         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
90791         * tests/test-truncl.c (minus_zero): Likewise.
90792         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
90793         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
90794         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
90795         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
90797 2008-10-17  Bruno Haible  <bruno@clisp.org>
90799         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
90800         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
90801         that it gets activated only for gcc >= 3.0.
90802         * lib/dirent.in.h: Likewise.
90803         * lib/errno.in.h: Likewise.
90804         * lib/fcntl.in.h: Likewise.
90805         * lib/float.in.h: Likewise.
90806         * lib/iconv.in.h: Likewise.
90807         * lib/inttypes.in.h: Likewise.
90808         * lib/locale.in.h: Likewise.
90809         * lib/math.in.h: Likewise.
90810         * lib/netdb.in.h: Likewise.
90811         * lib/netinet_in.in.h: Likewise.
90812         * lib/search.in.h: Likewise.
90813         * lib/signal.in.h: Likewise.
90814         * lib/spawn.in.h: Likewise.
90815         * lib/stdarg.in.h: Likewise.
90816         * lib/stdint.in.h: Likewise.
90817         * lib/stdio.in.h: Likewise.
90818         * lib/stdlib.in.h: Likewise.
90819         * lib/string.in.h: Likewise.
90820         * lib/strings.in.h: Likewise.
90821         * lib/sys_file.in.h: Likewise.
90822         * lib/sys_ioctl.in.h: Likewise.
90823         * lib/sys_select.in.h: Likewise.
90824         * lib/sys_socket.in.h: Likewise.
90825         * lib/sys_stat.in.h: Likewise.
90826         * lib/sys_time.in.h: Likewise.
90827         * lib/sysexits.in.h: Likewise.
90828         * lib/time.in.h: Likewise.
90829         * lib/unistd.in.h: Likewise.
90830         * lib/wchar.in.h: Likewise.
90831         * lib/wctype.in.h: Likewise.
90832         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
90834 2008-10-17  Jim Meyering  <meyering@redhat.com>
90836         ignore-value: don't depend on inline module
90837         * modules/ignore-value (Depends-on): Remove 'inline'.
90838         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
90839         Suggestion from Bruno Haible.
90841 2008-10-17  Bruno Haible  <bruno@clisp.org>
90843         New implementation of condition variables for Win32.
90844         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
90845         (gl_linked_waitqueue_t): New type.
90846         (gl_cond_t): Use it.
90847         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
90848         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
90849         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
90850         (glthread_cond_init_func, glthread_cond_wait_func,
90851         glthread_cond_timedwait_func, glthread_cond_signal_func,
90852         glthread_cond_broadcast_func, glthread_cond_destroy_func):
90853         Reimplemented on the basis of gl_linked_waitqueue_t.
90854         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
90855         gl_waitqueue_t.
90856         (gl_rwlock_t): Update.
90857         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
90859 2008-10-17  Simon Josefsson  <simon@josefsson.org>
90861         * modules/recvfrom (Depends-on): Add dependency on getpeername.
90862         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
90864 2008-10-17  Jim Meyering  <meyering@redhat.com>
90866         ignore-value: new module
90867         * modules/ignore-value: New file.
90868         * lib/ignore-value.h: New file.
90869         * MODULES.html.sh (Compiler warning management): New section,
90870         just for this module.  More to come.
90872 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
90874         open-safer.c: avoid 'signed and unsigned in conditional...' warning
90875         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
90876         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
90878 2008-10-16  Jim Meyering  <meyering@redhat.com>
90880         openat-die.c: avoid 'no previous prototype' warning
90881         * lib/openat-die.c: Include "openat.h".
90882         Reported by Reuben Thomas <rrt@sc3d.org>.
90884 2008-10-16  Simon Josefsson  <simon@josefsson.org>
90886         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
90887         * lib/netdb.in.h: Fix typo.
90888         Reported by Bruno Haible  <bruno@clisp.org>
90890         * lib/netdb.in.h: Include sys/socket.h for platforms without
90891         netdb.h, to get structures like hostent on MinGW.
90892         * modules/netdb (Depends-on): Add sys_socket.
90894 2008-10-15  Simon Josefsson  <simon@josefsson.org>
90896         * modules/netdb, modules/netdb-tests: New file.
90897         * m4/netdb_h.m4: New file.
90898         * lib/netdb.in.h: Add, currently just an empty file pending
90899         definitions.
90900         * tests/test-netdb.c: New file.
90901         * doc/posix-headers/netdb.texi: Mention that we replace it if
90902         needed.
90903         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
90904         netdb.
90906 2008-10-15  Simon Josefsson  <simon@josefsson.org>
90908         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
90909         with code.
90911 2008-10-13  Bruno Haible  <bruno@clisp.org>
90913         * lib/glthread/cond.c (glthread_cond_wait_func,
90914         glthread_cond_timedwait_func): Add a comment.
90916 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90918         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
90919         * tests/test-select.c: Likewise,
90921 2008-10-13  Bruno Haible  <bruno@clisp.org>
90923         * lib/glthread/cond.c (glthread_cond_wait_func,
90924         glthread_cond_timedwait_func): Fix variable name.
90925         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
90927 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
90929         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
90930         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
90931         struct sockaddr.sa_len.
90932         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
90934 2008-10-13  Simon Josefsson  <simon@josefsson.org>
90936         * build-aux/pmccabe2html: Add css and css_url parameters.
90938 2008-10-12  Bruno Haible  <bruno@clisp.org>
90940         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
90941         calling aclx_get.
90942         Reported by Rainer Tammer <tammer@tammer.net>.
90944 2008-10-12  Bruno Haible  <bruno@clisp.org>
90946         Use msvcrt aware primitives for creation/termination of Win32 threads.
90947         * lib/glthread/thread.c: Include <process.h>.
90948         (glthread_create_func): Use _beginthreadex instead of CreateThread.
90949         (wrapper_func): Update signature.
90950         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
90952 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90953             Bruno Haible  <bruno@clisp.org>
90955         Provide a Win32 implementation of the 'cond' module.
90956         * lib/glthread/cond.h [USE_WIN32]: New implementation.
90957         * lib/glthread/cond.c (glthread_cond_init_func,
90958         glthread_cond_wait_func, glthread_cond_timedwait_func,
90959         glthread_cond_signal_func, glthread_cond_broadcast_func,
90960         glthread_cond_destroy_func) [USE_WIN32]: New functions.
90961         * modules/cond (Dependencies): Add gettimeofday.
90963 2008-10-11  Bruno Haible  <bruno@clisp.org>
90965         Make sleep work on older versions of mingw.
90966         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
90967         only whether it exists.
90968         * doc/posix-functions/sleep.texi: Mention the problem with older
90969         versions of mingw.
90971 2008-10-11  Bruno Haible  <bruno@clisp.org>
90973         New module 'shutdown'.
90974         * modules/shutdown: New file.
90975         * lib/sys_socket.in.h (shutdown): New declaration.
90976         * lib/winsock.c (shutdown): New function.
90977         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
90978         GNULIB_SHUTDOWN.
90979         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
90980         * doc/posix-functions/shutdown.texi: Document the new module.
90982 2008-10-11  Jim Meyering  <meyering@redhat.com>
90984         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
90986 2008-10-11  Bruno Haible  <bruno@clisp.org>
90988         New module 'fclose'.
90989         * modules/fclose: New file.
90990         * lib/stdio.in.h (fclose): New declaration.
90991         * lib/fclose.c: New file.
90992         * m4/fclose.m4: New file.
90993         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
90994         REPLACE_FCLOSE.
90995         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
90996         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
90997         REPLACE_FCLOSE.
90998         * modules/close (Depends-on): fclose.
90999         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
91001 2008-10-11  Bruno Haible  <bruno@clisp.org>
91003         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
91004         set errno and don't call _close.
91006 2008-10-10  Bruno Haible  <bruno@clisp.org>
91008         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
91009         ACL, not afterwards. Fixes test failure on Cygwin.
91011 2008-10-09  Ben Pfaff  <blp@gnu.org>
91013         * build-aux/announce-gen: Fix gnulib version related part of usage
91014         message.  Die with a useful error message if no tarballs are
91015         found.
91017 2008-10-10  Jim Meyering  <meyering@redhat.com>
91019         bootstrap: use git's --depth=N option only if it's supported
91020         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
91021         recognize the --depth option.  Reported by Pádraig Brady.
91023 2008-10-09  Bruno Haible  <bruno@clisp.org>
91025         New module 'ioctl'.
91026         * modules/ioctl: New file.
91027         * lib/sys_socket.in.h (ioctl): Remove declaration.
91028         * lib/winsock.c: Include <sys/ioctl.h>.
91029         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
91030         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
91031         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
91032         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
91033         * doc/posix-functions/ioctl.texi: Mention the new module.
91035 2008-10-09  Bruno Haible  <bruno@clisp.org>
91037         New module 'sys_ioctl'.
91038         * lib/sys_ioctl.in.h: New file.
91039         * m4/sys_ioctl_h.m4: New file.
91040         * modules/sys_ioctl: New file.
91041         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
91043 2008-10-09  Bruno Haible  <bruno@clisp.org>
91045         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
91046         * lib/winsock.c: Include <stdarg.h>.
91047         (rpl_ioctl): Change to second argument 'int' and then varargs.
91049 2008-10-09  Bruno Haible  <bruno@clisp.org>
91051         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
91052         when the sys_socket module is present and the system has <winsock2.h>.
91054 2008-10-09  Bruno Haible  <bruno@clisp.org>
91056         * doc/posix-functions/close.texi: Mention module 'close' instead of
91057         module 'sys_socket'.
91059 2008-10-09  Bruno Haible  <bruno@clisp.org>
91061         * doc/glibc-headers/sys_ioctl.texi: New file.
91062         * doc/gnulib.texi: Include it.
91064 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
91065             Bruno Haible  <bruno@clisp.org>
91067         Combine the two replacements of 'close'.
91068         * lib/sys_socket.in.h (close): Define to a reminder to include
91069         <unistd.h>.
91070         (_gl_close_fd_maybe_socket): New declaration.
91071         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
91072         * lib/winsock.c (close): Remove undefinition.
91073         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
91074         needed for the gnulib module 'close'.
91075         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
91076         define to an error symbol or to a warning, if suitable.
91077         * lib/close.c: Include <sys/socket.h>.
91078         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
91079         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
91080         UNISTD_H_HAVE_WINSOCK2_H.
91081         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
91082         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
91083         UNISTD_H_HAVE_WINSOCK2_H.
91084         * modules/sys_socket (Files): Add m4/unistd_h.m4.
91085         (configure.ac): Set a module indicator.
91086         (Makefile.am): Substitute GNULIB_CLOSE.
91087         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
91088         * modules/poll-tests (Depends-on): Add close.
91089         * modules/select-tests (Depends-on): Likewise.
91091 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
91092             Bruno Haible  <bruno@clisp.org>
91094         New module 'close'.
91095         * modules/close: New file.
91096         * lib/unistd.in.h (close): Move declaration out of the
91097         FCHDIR_REPLACEMENT scope.
91098         (_gl_unregister_fd): New declaration.
91099         * lib/close.c: New file.
91100         * lib/fchdir.c (rpl_close): Remove function.
91101         * m4/close.m4: New file.
91102         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
91103         close.
91104         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
91105         REPLACE_CLOSE.
91106         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
91107         REPLACE_CLOSE.
91108         * modules/fchdir (Depends-on): Add close.
91110 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
91111             Bruno Haible  <bruno@clisp.org>
91113         * lib/fcntl.in.h (open): Simplify conditionals.
91114         (_gl_register_fd): New declaration.
91115         * lib/fchdir.c (rpl_open): Remove function.
91116         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
91117         also.
91118         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
91119         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
91120         open.
91122 2008-10-09  Jim Meyering  <meyering@redhat.com>
91124         GNUmakefile: use the more name-space-friendly "_version"
91125         * top/GNUmakefile (_dummy): Update.
91126         (_version): Rename from "version".
91128 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
91129             Bruno Haible  <bruno@clisp.org>
91131         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
91132         rpl_close.
91133         (_gl_register_fd): New function, extracted from rpl_open.
91134         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
91135         (rpl_open, rpl_opendir): Use _gl_register_fd.
91137 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
91139         Fix organization of 'open' replacement.
91140         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
91141         (gl_FUNC_OPEN): Use it.
91142         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
91144 2008-10-08  Bruno Haible  <bruno@clisp.org>
91146         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
91148 2008-10-08  Simon Josefsson  <simon@josefsson.org>
91150         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
91151         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
91152         listen).
91154 2008-10-08  Eric Blake  <ebb9@byu.net>
91156         GNUmakefile: add 'make version' target
91157         * top/GNUmakefile (_curr-ver): Split version update rules...
91158         (version): ...into a target.
91160 2008-10-07  Bruno Haible  <bruno@clisp.org>
91162         Use a more portable replacement expression for -0.0L.
91163         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
91164         instead of -0.0L. Fix m4 quotation.
91166         * tests/test-signbit.c: Include <float.h>.
91167         (minus_zero): New variable.
91168         (test_signbitl): Use minus_zero instead of -zero.
91169         * modules/signbit-tests (Depends-on): Add float.
91171         * tests/test-ceill.c: Include <float.h>.
91172         (zero): Remove variable.
91173         (minus_zero): New variable.
91174         (main): Use minus_zero instead of -zero.
91175         * modules/ceill-tests (Depends-on): Add float.
91177         * tests/test-floorl.c: Include <float.h>.
91178         (zero): Remove variable.
91179         (minus_zero): New variable.
91180         (main): Use minus_zero instead of -zero.
91181         * modules/floorl-tests (Depends-on): Add float.
91183         * tests/test-roundl.c: Include <float.h>.
91184         (zero): Remove variable.
91185         (minus_zero): New variable.
91186         (main): Use minus_zero instead of -zero.
91187         * modules/roundl-tests (Depends-on): Add float.
91189         * tests/test-truncl.c: Include <float.h>.
91190         (zero): Remove variable.
91191         (minus_zero): New variable.
91192         (main): Use minus_zero instead of -zero.
91193         * modules/truncl-tests (Depends-on): Add float.
91195         * tests/test-frexpl.c (zero): Remove variable.
91196         (minus_zero): New variable.
91197         (main): Use minus_zero instead of -zero.
91198         * modules/frexpl-tests (Depends-on): Add float.
91200         * tests/test-isnan.c (zerol): Remove variable.
91201         (minus_zerol): New variable.
91202         (test_long_double): Use minus_zerol instead of -zerol.
91203         * modules/isnan-tests (Depends-on): Add float.
91205         * tests/test-isnanl.h (zero): Remove variable.
91206         (minus_zero): New variable.
91207         (main): Use minus_zero instead of -zero.
91208         * modules/isnanl-nolibm-tests (Depends-on): Add float.
91209         * modules/isnanl-tests (Depends-on): Add float.
91211         * tests/test-ldexpl.c (zero): Remove variable.
91212         (minus_zero): New variable.
91213         (main): Use minus_zero instead of -zero.
91214         * modules/ldexpl-tests (Depends-on): Add float.
91216         * tests/test-snprintf-posix.h (zerol): Remove variable.
91217         (minus_zerol): New variable.
91218         (test_function): Use minus_zerol instead of -zerol.
91219         * modules/snprintf-posix-tests (Depends-on): Add float.
91220         * modules/vsnprintf-posix-tests (Depends-on): Add float.
91222         * tests/test-sprintf-posix.h (zerol): Remove variable.
91223         (minus_zerol): New variable.
91224         (test_function): Use minus_zerol instead of -zerol.
91225         * modules/sprintf-posix-tests (Depends-on): Add float.
91226         * modules/vsprintf-posix-tests (Depends-on): Add float.
91228         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
91229         (minus_zerol): New variable.
91230         (test_function): Use minus_zerol instead of -zerol.
91231         * modules/vasnprintf-posix-tests (Depends-on): Add float.
91233         * tests/test-vasprintf-posix.c (zerol): Remove variable.
91234         (minus_zerol): New variable.
91235         (test_function): Use minus_zerol instead of -zerol.
91236         * modules/vasprintf-posix-tests (Depends-on): Add float.
91238 2008-10-07  Simon Josefsson  <simon@josefsson.org>
91240         * MODULES.html.sh (Support for building documentation): Mention
91241         pmccabe2html.  Sort entries.
91243         Add pmccabe2html module, from gnupdf.
91244         * build-aux/pmccabe.css: New file.
91245         * build-aux/pmccabe2html: New file.
91246         * m4/pmccabe2html.m4: New file.
91247         * modules/pmccabe2html: New file.
91249 2008-10-07  Richard W.M. Jones  <rjones@redhat.com>
91251         flock: new module
91252         * MODULES.html.sh: Add to list of modules.
91253         * lib/flock.c: flock implementation for Windows and Unix systems
91254         which have fcntl.
91255         * doc/glibc-functions/flock.texi: Update documentation.
91256         * lib/sys_file.in.h: <sys/file.h> header file.
91257         * m4/flock.m4: M4 macros.
91258         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
91259         * modules/flock: flock module.
91260         * modules/flock-tests: flock tests module.
91261         * modules/sys_file: sys/file.h module.
91262         * tests/test-flock.c: test suite for flock.
91264 2008-10-06  Jim Meyering  <meyering@redhat.com>
91266         bootstrap: check for LT_INIT more portably still ;-)
91267         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
91268         Spotted by Bruno Haible.
91270 2008-10-06  Eric Blake  <ebb9@byu.net>
91272         test-signbit: avoid tripping Irix cc bug on -0.0L
91273         * tests/test-signbit.c (minus_zerol): Delete, and replace with
91274         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
91275         entire testsuite consistent and avoids an Irix 6.2 bug.
91277 2008-10-05  Bruno Haible  <bruno@clisp.org>
91278             Jim Meyering  <jim@meyering.net>
91280         Add an option for ignoring EPIPE during close_stdout.
91281         * lib/closeout.h: Include <stdbool.h>.
91282         (close_stdout_set_ignore_EPIPE): New declaration.
91283         * lib/closeout.c: Include <stdbool.h>.
91284         (ignore_EPIPE): New variable.
91285         (close_stdout_set_ignore_EPIPE): New function.
91286         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
91287         * lib/close-stream.c (close_stream): Mention the possible EPIPE
91288         failure.
91289         * modules/closeout (Depends-on): Add stdbool.
91291 2008-10-05  Bruno Haible  <bruno@clisp.org>
91293         * modules/accept: New file.
91294         * modules/bind: New file.
91295         * modules/connect: New file.
91296         * modules/getpeername: New file.
91297         * modules/getsockname: New file.
91298         * modules/getsockopt: New file.
91299         * modules/listen: New file.
91300         * modules/recv: New file.
91301         * modules/recvfrom: New file.
91302         * modules/send: New file.
91303         * modules/sendto: New file.
91304         * modules/setsockopt: New file.
91305         * modules/socket: New file.
91306         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
91307         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
91308         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
91309         the particular module is requested. Add a link warning when the
91310         particular module is not requested.
91311         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
91312         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
91313         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
91314         the particular module is requested.
91315         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
91316         gl_SYS_SOCKET_H_DEFAULTS): New macros.
91317         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
91318         * modules/sys_socket (Depends-on): Add link-warning.
91319         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
91320         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
91321         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
91322         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
91323         GL_LINK_WARNING.
91324         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
91325         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
91326         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
91327         * doc/posix-functions/getpeername.texi: Mention the new module
91328         'getpeername'.
91329         * doc/posix-functions/getsockname.texi: Mention the new module
91330         'getsockname'.
91331         * doc/posix-functions/getsockopt.texi: Mention the new module
91332         'getsockopt'.
91333         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
91334         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
91335         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
91336         * doc/posix-functions/send.texi: Mention the new module 'send'.
91337         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
91338         * doc/posix-functions/setsockopt.texi: Mention the new module
91339         'setsockopt'.
91340         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
91341         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
91342         listen, connect, accept.
91343         * modules/select-tests (Depends-on): Likewise.
91345 2008-10-05  Bruno Haible  <bruno@clisp.org>
91347         * lib/winsock.c (strerror): Remove unused #undef.
91348         (rpl_close): Remove unused local variable.
91350         * modules/sys_socket (Depends-on); Add errno.
91352 2008-10-05  Bruno Haible  <bruno@clisp.org>
91354         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
91355         (select): Add a link warning when the 'select' module is not used.
91356         * modules/sys_select (Depends-on): Add link-warning.
91357         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
91358         Suggested by Paolo Bonzini.
91360 2008-10-05  Jim Meyering  <meyering@redhat.com>
91362         bootstrap: check for LT_INIT more portably
91363         * build-aux/bootstrap: Avoid using grep -E, since it's not
91364         portable enough.  Suggestion from Bruno Haible.
91366 2008-10-05  Bruno Haible  <bruno@clisp.org>
91368         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
91369         as being fixed by gnulib.
91371 2008-10-05  Bruno Haible  <bruno@clisp.org>
91373         * modules/select-tests: New file, mostly copied from
91374         modules/sys_select-tests.
91375         * tests/test-select.c: New file, mostly copied from
91376         tests/test-sys_select.c.
91377         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
91378         * modules/sys_select-tests (Depends-on): Remove all dependencies.
91379         (Makefile.am): Remove test_sys_select_LDADD.
91381         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
91382         to an undefined symbol, for an error message.
91383         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
91384         (gl_SYS_SELECT_H_DEFAULTS): New macro.
91385         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
91386         winsock-select.c here.
91387         * modules/sys_select (Files): Remove lib/winsock-select.c.
91388         (Depends-on): Remove alloca.
91389         (Makefile.am): Substitute GNULIB_SELECT.
91390         * modules/select: New file.
91391         * doc/posix-functions/select.texi: Update.
91393 2008-10-05  Bruno Haible  <bruno@clisp.org>
91395         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
91396         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
91397         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
91398         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
91399         getdtablesize.
91400         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
91401         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
91403 2008-10-05  Bruno Haible  <bruno@clisp.org>
91405         * modules/getdtablesize-tests: New file.
91406         * tests/test-getdtablesize.c: New file.
91408         New module 'getdtablesize'.
91409         * lib/unistd.in.h (getdtablesize): New declaration.
91410         * lib/getdtablesize.c: New file.
91411         * m4/getdtablesize.m4: New file.
91412         * modules/getdtablesize: New file.
91413         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
91414         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
91415         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
91416         HAVE_GETDTABLESIZE.
91417         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
91419 2008-10-05  Bruno Haible  <bruno@clisp.org>
91421         * modules/sched (Makefile.am): Fix typo.
91422         Reported by Simon Josefsson.
91424 2008-10-05  Jim Meyering  <meyering@redhat.com>
91426         bootstrap: check for LT_INIT, too
91427         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
91428         are deprecated.  Suggestion from Ralf Wildenhues.
91430 2008-10-05  Bruno Haible  <bruno@clisp.org>
91432         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
91433         overriding them by ours.
91434         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
91436 2008-10-05  Jim Meyering  <meyering@redhat.com>
91438         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
91439         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
91440         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
91442 2008-10-04  Bruno Haible  <bruno@clisp.org>
91444         * modules/dup2 (License): Change to LGPLv2+.
91445         * modules/sleep (License): Likewise.
91446         * modules/perror (License): Likewise.
91447         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
91448         Blake.
91449         * modules/signal (License): Likewise.
91450         * modules/sigprocmask (License): Likewise.
91451         * modules/raise (License): Change to LGPLv2+, with approval by Jim
91452         Meyering.
91454 2008-10-04  Bruno Haible  <bruno@clisp.org>
91456         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
91457         Reported by Rainer Tammer <tammer@tammer.net>.
91459 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
91460             Bruno Haible  <bruno@clisp.org>
91462         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
91463         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
91464         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
91466 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
91468         filevercmp: new module
91469         * lib/filevercmp.h: New function filevercmp comparing version strings.
91470         * lib/filevercmp.c: Implementation of filevercmp function.
91471         * modules/filevercmp: Module metadata.
91472         * tests/test-filevercmp.c: Unit test for new module.
91473         * modules/filevercmp-tests: Unit test metadata.
91474         * MODULES.html.sh: Add filevercmp module.
91476 2008-10-03  Bruno Haible  <bruno@clisp.org>
91478         * lib/c-ctype.h: Add comment.
91479         Reported by Jim Meyering.
91481 2008-10-02  Bruno Haible  <bruno@clisp.org>
91483         * modules/posix_spawn-internal (Depends-on): Add 'open'.
91485 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
91487         * build-aux/bootstrap: Allow renaming bootstrap, and change the
91488         name of bootstrap.conf accordingly.
91490 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
91492         * build-aux/bootstrap: Install git-merge-changelog configuration
91493         items into .gitconfig if needed.
91495 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
91497         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
91498         git repository, and initialize/update it accordingly.
91500 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
91502         * modules/fsync-tests: New file.
91503         * tests/test-fsync.c: New file.
91505         New module 'fsync'.
91506         * lib/fsync.c: New file.
91507         * m4/fsync.m4: New file.
91508         * modules/fsync: New file.
91509         * lib/unistd.in.h (fsync): New declaration.
91510         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
91511         GNULIB_FSYNC and HAVE_FSYNC.
91512         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
91513         * MODULES.html.sh (posix_functions): Add fsync.
91514         * doc/posix-functions/fsync.texi: Mention the new module.
91516 2008-10-02  Jim Meyering  <meyering@redhat.com>
91518         fts.c: sync with similar code from coreutils' remove.c
91519         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
91520         Guard also with "#if defined __linux__", since for now at least,
91521         this code is Linux-kernel-specific.
91523 2008-10-02  Jim Meyering  <meyering@redhat.com>
91525         fts: bug fixes
91526         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
91527         Include <sys/vfs.h>, not <sys/statfs.h>.
91529         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
91530         Include <sys/vfs.h>, not <sys/statfs.h>.
91532 2008-10-01  Bruno Haible  <bruno@clisp.org>
91534         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
91535         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
91536         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
91537         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
91538         * doc/posix-functions/posix_spawnp.texi: Likewise.
91539         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
91540         whether posix_spawn actually works.
91541         * m4/pipe.m4 (gl_PIPE): Likewise.
91542         * modules/execute (Files): Add m4/posix_spawn.m4.
91543         * modules/pipe (Files): Add m4/posix_spawn.m4.
91544         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
91546 2008-10-01  Jim Meyering  <meyering@redhat.com>
91548         remove trailing spaces
91549         * NEWS: Likewise.
91550         * lib/poll.c (poll): Likewise.
91551         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
91552         * lib/winsock.c (rpl_close): Likewise.
91553         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
91554         * modules/yield: Likewise.
91555         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
91556         * tests/test-sys_select.c (connect_to_socket): Likewise.
91558         fts.c: adjust a new interface to be more generally useful
91559         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
91560         (fts_build): Adjust caller.
91562 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91564         * modules/cond-tests: New file.
91565         * tests/test-cond.c: New file.
91567 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91568             Bruno Haible  <bruno@clisp.org>
91570         * modules/cond (Dependencies): Add errno, time.
91571         * lib/glthread/cond.h: Include <time.h>.
91572         (gl_cond_define, gl_cond_define_initialized): Use the same definition
91573         across platforms.
91575 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91576             Bruno Haible  <bruno@clisp.org>
91578         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
91580 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91581             Bruno Haible  <bruno@clisp.org>
91583         * modules/tls-tests (Depends-on): Add thread, yield.
91584         (configure.ac): Remove all checks.
91585         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
91586         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
91587         gl_thread_self): Remove definitions. Include glthread/thread.h and
91588         glthread/yield.h instead.
91589         (test_tls): Pass an additional NULL argument to gl_thread_join.
91591 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91592             Bruno Haible  <bruno@clisp.org>
91594         * modules/lock-tests (Depends-on): Add thread, yield.
91595         (configure.ac): Remove all checks.
91596         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
91597         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
91598         gl_thread_self): Remove definitions. Include glthread/thread.h and
91599         glthread/yield.h instead.
91600         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
91601         additional NULL argument to gl_thread_join.
91603 2008-09-30  Bruno Haible  <bruno@clisp.org>
91605         Fix the Win32 implementation of the 'thread' module.
91606         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
91607         pointer type.
91608         (gl_thread_self): Invoke gl_thread_self_func.
91609         (gl_thread_self_func): New declaration.
91610         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
91611         (do_init_self_key, init_self_key): New functions.
91612         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
91613         Remove some fields.
91614         (running_threads, running_lock): Remove variables.
91615         (get_current_thread_handle): New function.
91616         (gl_thread_self_func, wrapper_func, glthread_create_func,
91617         glthread_join_func, gl_thread_exit_func): Largely rewritten and
91618         simplified.
91620 2008-09-30  Bruno Haible  <bruno@clisp.org>
91622         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
91623         files.
91625 2008-09-30  Jim Meyering  <meyering@redhat.com>
91627         fts.m4: correct the test for statfs.f_type
91628         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
91629         when checking for statfs.f_type.
91631 2008-09-15  Simon Josefsson  <simon@josefsson.org>
91633         tests: avoid some compiler warnings
91634         * tests/test-memchr.c (main): Pass NULL indirectly.
91635         * tests/test-getdate.c (main): Remove unused variable 'ret'.
91637 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
91639         getdate.y: disallow countable dayshifts like "4 yesterday ago"
91640         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
91641         exactly specified dayshifts.
91642         (dayshift): New rule.
91643         (rel): Add dayshift.
91644         (relative_time_table) [tomorrow, yesterday, today, now]:
91645         Use tDAY_SHIFT in place of tDAY_UNIT.
91646         * tests/test-getdate.c: Add tests for now-disallowed countable
91647         dayshifts, e.g., "4 yesterday ago".
91649 2008-09-29  Bruno Haible  <bruno@clisp.org>
91651         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
91652         * tests/test-posix_spawn1.in.sh: Renamed from
91653         tests/test-posix_spawn.in.sh.
91654         * tests/test-posix_spawn2.c: New file.
91655         * tests/test-posix_spawn2.in.sh: New file.
91656         * modules/posix_spawnp-tests (Files): Update.
91657         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
91659 2008-09-29  Bruno Haible  <bruno@clisp.org>
91661         Propagate effects of putenv/setenv/unsetenv to child processes.
91662         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
91663         * lib/pipe.c (create_pipe): Likewise.
91665 2008-09-29  Bruno Haible  <bruno@clisp.org>
91667         Enable use of shell scripts as executables in mingw.
91668         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
91669         run the program as a shell script.
91670         * lib/pipe.c (create_pipe): Likewise.
91671         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
91672         resulting array.
91674 2008-09-29  Eric Blake  <ebb9@byu.net>
91676         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
91678 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
91680         * doc/posix-functions/accept.texi: Update mingw problems.
91681         * doc/posix-functions/bind.texi: Update mingw problems.
91682         * doc/posix-functions/close.texi: Update mingw problems.
91683         * doc/posix-functions/connect.texi: Update mingw problems.
91684         * doc/posix-functions/getpeername.texi: Update mingw problems.
91685         * doc/posix-functions/getsockname.texi: Update mingw problems.
91686         * doc/posix-functions/getsockopt.texi: Update mingw problems.
91687         * doc/posix-functions/ioctl.texi: Update mingw problems.
91688         * doc/posix-functions/listen.texi: Update mingw problems.
91689         * doc/posix-functions/recv.texi: Update mingw problems.
91690         * doc/posix-functions/recvfrom.texi: Update mingw problems.
91691         * doc/posix-functions/select.texi: Update mingw problems.
91692         * doc/posix-functions/send.texi: Update mingw problems.
91693         * doc/posix-functions/sendto.texi: Update mingw problems.
91694         * doc/posix-functions/setsockopt.texi: Update mingw problems.
91695         * doc/posix-functions/socket.texi: Update mingw problems.
91697 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
91698             Bruno Haible  <bruno@clisp.org>
91700         * lib/sys_select.in.h: Include sys/time.h.
91701         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
91702         * modules/sys_select: Depend on sys_time.
91703         * tests/test-sys_select.c: Test that sys/select.h defines struct
91704         timeval fully.
91706 2008-09-29  Bruno Haible  <bruno@clisp.org>
91708         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
91709         * lib/sys_select.in.h: Likewise.
91711 2008-09-29  Bruno Haible  <bruno@clisp.org>
91713         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
91715 2008-09-29  Bruno Haible  <bruno@clisp.org>
91717         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
91718         Set LIBSOCKET instead of augmenting LIBS.
91719         * modules/sockets (Link): New section.
91720         * modules/sockets-tests (test_sockets_LDADD): New variable.
91721         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
91722         * modules/poll-tests (test_poll_LDADD): New variable.
91723         * NEWS: Document the change.
91725 2008-09-29  Bruno Haible  <bruno@clisp.org>
91727         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
91728         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
91729         ARPA_INET_H directly.
91730         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
91732 2008-09-28  Bruno Haible  <bruno@clisp.org>
91734         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
91735         from gl_HEADER_SYS_SOCKET.
91736         (gl_HEADER_SYS_SOCKET): Invoke it.
91737         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
91739 2008-09-28  Bruno Haible  <bruno@clisp.org>
91741         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
91742         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
91743         Needed on OSF/1 4.0.
91745 2008-09-28  Bruno Haible  <bruno@clisp.org>
91747         Override open more carefully.
91748         * lib/open.c (orig_open): New function.
91749         (rpl_open): Use orig_open instead of open.
91750         * lib/fcntl.in.h: Add special invocation convention.
91751         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
91752         (gl_FUNC_OPEN): Invoke it.
91754         Override freopen more carefully.
91755         * lib/freopen.c (orig_freopen): New function.
91756         (rpl_freopen): Use orig_freopen instead of freopen.
91757         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
91758         (gl_FUNC_FREOPEN): Invoke it.
91760         Override fopen more carefully.
91761         * lib/fopen.c (orig_fopen): New function.
91762         (rpl_fopen): Use orig_fopen instead of fopen.
91763         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
91764         (gl_FUNC_FOPEN): Invoke it.
91765         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
91767 2008-09-28  Bruno Haible  <bruno@clisp.org>
91769         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
91770         SIGPIPE.
91772 2008-09-28  Bruno Haible  <bruno@clisp.org>
91774         * tests/test-sigaction.c (handler, main): Disable the check whether
91775         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
91776         glibc systems with LinuxThreads.
91778 2008-09-28  Bruno Haible  <bruno@clisp.org>
91780         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
91782         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
91783         with AIX xlc.
91784         * lib/fcntl.in.h (open): Likewise.
91785         Reported by Rainer Tammer <tammer@tammer.net>.
91787 2008-09-28  Bruno Haible  <bruno@clisp.org>
91789         * modules/posix_spawnp-tests: New file.
91790         * tests/test-posix_spawn.c: New file.
91791         * tests/test-posix_spawn.in.sh: New file.
91793         New module 'posix_spawnp'.
91794         * modules/posix_spawnp: New file.
91795         * lib/spawnp.c: New file, from GNU libc with modifications.
91796         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
91798         New module 'posix_spawn'.
91799         * modules/posix_spawn: New file.
91800         * lib/spawn.c: New file, from GNU libc with modifications.
91801         * doc/posix-functions/posix_spawn.texi: Mention the new module.
91803         New module 'posix_spawnattr_destroy'.
91804         * modules/posix_spawnattr_destroy: New file.
91805         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
91806         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
91807         module.
91809         New module 'posix_spawnattr_setsigmask'.
91810         * modules/posix_spawnattr_setsigmask: New file.
91811         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
91812         modifications.
91813         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
91814         new module.
91816         New module 'posix_spawnattr_getsigmask'.
91817         * modules/posix_spawnattr_getsigmask: New file.
91818         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
91819         modifications.
91820         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
91821         new module.
91823         New module 'posix_spawnattr_setsigdefault'.
91824         * modules/posix_spawnattr_setsigdefault: New file.
91825         * lib/spawnattr_setdefault.c: New file, from GNU libc with
91826         modifications.
91827         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
91828         new module.
91830         New module 'posix_spawnattr_getsigdefault'.
91831         * modules/posix_spawnattr_getsigdefault: New file.
91832         * lib/spawnattr_getdefault.c: New file, from GNU libc with
91833         modifications.
91834         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
91835         new module.
91837         New module 'posix_spawnattr_setschedpolicy'.
91838         * modules/posix_spawnattr_setschedpolicy: New file.
91839         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
91840         modifications.
91841         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
91842         new module.
91844         New module 'posix_spawnattr_getschedpolicy'.
91845         * modules/posix_spawnattr_getschedpolicy: New file.
91846         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
91847         modifications.
91848         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
91849         new module.
91851         New module 'posix_spawnattr_setschedparam'.
91852         * modules/posix_spawnattr_setschedparam: New file.
91853         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
91854         modifications.
91855         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
91856         new module.
91858         New module 'posix_spawnattr_getschedparam'.
91859         * modules/posix_spawnattr_getschedparam: New file.
91860         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
91861         modifications.
91862         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
91863         new module.
91865         New module 'posix_spawnattr_setpgroup'.
91866         * modules/posix_spawnattr_setpgroup: New file.
91867         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
91868         modifications.
91869         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
91870         module.
91872         New module 'posix_spawnattr_getpgroup'.
91873         * modules/posix_spawnattr_getpgroup: New file.
91874         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
91875         modifications.
91876         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
91877         module.
91879         New module 'posix_spawnattr_setflags'.
91880         * modules/posix_spawnattr_setflags: New file.
91881         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
91882         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
91883         module.
91885         New module 'posix_spawnattr_getflags'.
91886         * modules/posix_spawnattr_getflags: New file.
91887         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
91888         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
91889         module.
91891         New module 'posix_spawnattr_init'.
91892         * modules/posix_spawnattr_init: New file.
91893         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
91894         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
91895         module.
91897         New module 'posix_spawn_file_actions_destroy'.
91898         * modules/posix_spawn_file_actions_destroy: New file.
91899         * lib/spawn_faction_destroy.c: New file, from GNU libc with
91900         modifications.
91901         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
91902         the new module.
91904         New module 'posix_spawn_file_actions_addopen'.
91905         * modules/posix_spawn_file_actions_addopen: New file.
91906         * lib/spawn_faction_addopen.c: New file, from GNU libc with
91907         modifications.
91908         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
91909         the new module.
91911         New module 'posix_spawn_file_actions_adddup2'.
91912         * modules/posix_spawn_file_actions_adddup2: New file.
91913         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
91914         modifications.
91915         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
91916         the new module.
91918         New module 'posix_spawn_file_actions_addclose'.
91919         * modules/posix_spawn_file_actions_addclose: New file.
91920         * lib/spawn_faction_addclose.c: New file, from GNU libc with
91921         modifications.
91922         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
91923         the new module.
91925         New module 'posix_spawn_file_actions_init'.
91926         * modules/posix_spawn_file_actions_init: New file.
91927         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
91928         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
91929         new module.
91931         New module 'posix_spawn-internal'.
91932         * modules/posix_spawn-internal: New file.
91933         * lib/spawn_int.h: New file, from GNU libc with modifications.
91934         * lib/spawni.c: New file, from GNU libc with modifications.
91935         * m4/posix_spawn.m4: New file.
91937         New module 'spawn'.
91938         * modules/spawn: New file.
91939         * lib/spawn.in.h: New file, from GNU libc with modifications.
91940         * m4/spawn_h.m4: New file.
91941         * doc/posix-headers/spawn.texi: Mention the new module.
91943 2008-09-28  Bruno Haible  <bruno@clisp.org>
91945         * modules/sched-tests: New file.
91946         * tests/test-sched.c: New file.
91948         New module 'sched'.
91949         * modules/sched: New file.
91950         * lib/sched.in.h: New file.
91951         * m4/sched_h.m4: New file.
91952         * doc/posix-headers/sched.texi: Mention the new module.
91954 2008-09-27  Eric Blake  <ebb9@byu.net>
91956         Fix previous patch, and tweak references to $0.
91957         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
91958         (func_version, func_gnulib_dir): Don't call this program
91959         gnulib-tool.
91960         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
91961         with using $0 in function.
91962         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
91963         (func_fatal_error): Reuse the name the user invoked us with.
91965 2008-09-27  Bruno Haible  <bruno@clisp.org>
91967         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
91968         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
91969         (gl_ICONV_H): Not here.
91970         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
91971         instead of assigning ICONV_H directly.
91973         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
91974         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
91975         WCHAR_H directly.
91977 2008-09-27  Bruno Haible  <bruno@clisp.org>
91979         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
91980         * modules/arpa_inet (Depends-on): Add link-warning.
91981         (Makefile.am): Insert the definition of GL_LINK-WARNING.
91982         * modules/unistd (Makefile.am): Likewise.
91984 2008-09-26  Bruno Haible  <bruno@clisp.org>
91986         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
91987         variables.
91988         (func_version): Essentially copied from gnulib-tool.
91989         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
91990         func_readlink): Copied from gnulib-tool.
91992 2008-09-26  Bruno Haible  <bruno@clisp.org>
91994         * gnulib-tool (func_version): Change directory to $gnulib_dir before
91995         invoking git-version-gen.
91997 2008-09-26  Bruno Haible  <bruno@clisp.org>
91999         * posix-modules: Update to directory names changed on 2008-01-19.
92000         Remove commas in output before splitting into words. No more need to
92001         avoid 'ftruncate' since 2007-02-19.
92003 2008-09-26  Bruno Haible  <bruno@clisp.org>
92005         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
92007 2008-09-26  Bruno Haible  <bruno@clisp.org>
92009         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
92010         * modules/fwriteerror (Depends-on): Add errno.
92012 2008-09-26  Bruno Haible  <bruno@clisp.org>
92014         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
92015         * tests/test-vc-list-files-cvs.sh: Likewise.
92017 2008-09-26  Bruno Haible  <bruno@clisp.org>
92019         * doc/posix-headers/sys_resource.texi: Reorder items.
92021 2008-09-26  Jim Meyering  <meyering@redhat.com>
92023         fts: tweak inode comparison function
92024         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
92025         inode numbers, as documented.
92027         fts: sort dirent entries on inode number before traversing
92028         This avoids a quadratic, seek-related performance penalty when
92029         operating on a directory containing many entries (measurable at 10k;
92030         3.5 hours at 2 million entries with a cold cache) on certain types
92031         of file systems, including ext3 and ext4, but not tmpfs.
92032         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
92033         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
92034         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
92035         (fs_handles_readdir_ordered_dirents_efficiently): New function.
92036         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
92037         (fts_build): Set the stat.st_ino member from D_INO.
92038         If it is likely to be useful, sort dirent entries on inode number.
92040         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
92041         and the struct statfs.f_type member.
92042         * modules/fts (Depends-on): Add d-ino.
92044 2008-09-26  Bruno Haible  <bruno@clisp.org>
92046         * modules/sigpipe-die (Depends-on): Add sigpipe.
92048         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
92049         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
92050         and GNULIB_STDIO_H_SIGPIPE are set.
92051         * lib/stdio-write.c: New file.
92052         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
92053         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
92054         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
92055         REPLACE_STDIO_WRITE_FUNCS.
92056         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
92057         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
92058         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
92059         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
92060         * modules/stdio (Files): Add lib/stdio-write.c.
92061         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
92062         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
92063         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
92064         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
92065         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
92066         REPLACE_FPRINTF_POSIX.
92067         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
92068         REPLACE_PRINTF_POSIX.
92069         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
92070         REPLACE_VFPRINTF_POSIX.
92071         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
92072         REPLACE_VPRINTF_POSIX.
92073         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
92074         SIGPIPE issue.
92075         * doc/posix-functions/fputc.texi: Likewise.
92076         * doc/posix-functions/fputs.texi: Likewise.
92077         * doc/posix-functions/fwrite.texi: Likewise.
92078         * doc/posix-functions/printf.texi: Likewise.
92079         * doc/posix-functions/putc.texi: Likewise.
92080         * doc/posix-functions/putchar.texi: Likewise.
92081         * doc/posix-functions/puts.texi: Likewise.
92082         * doc/posix-functions/vfprintf.texi: Likewise.
92083         * doc/posix-functions/vprintf.texi: Likewise.
92085         * modules/safe-write (Depends-on): Add write.
92087         * modules/sigpipe-tests: New file.
92088         * tests/test-sigpipe.c: New file.
92089         * tests/test-sigpipe.sh: New file.
92091         * modules/write: New file.
92092         * lib/unistd.in.h: Include <sys/types.h>.
92093         (write): New declaration.
92094         * lib/write.c: New file.
92095         * m4/write.m4: New file.
92096         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
92097         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
92098         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
92099         GNULIB_WRITE, REPLACE_WRITE.
92100         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
92101         and the SIGPIPE issue.
92103         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
92104         (raise): New declaration.
92105         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
92106         (ext_signal): New function.
92107         (rpl_raise): New function.
92108         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
92109         GNULIB_SIGNAL_H_SIGPIPE.
92110         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
92111         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
92113         * modules/sigpipe: New file.
92114         * m4/sigpipe.m4: New file.
92116 2008-09-25  Derek Price  <derek@ximbiot.com>
92117             Bruno Haible  <bruno@clisp.org>
92119         * gnulib-tool (func_import): Report all license incompatibilities, not
92120         just the first one.
92122 2008-09-25  Bruno Haible  <bruno@clisp.org>
92124         * gnulib-tool (func_import): When computing the edits, consider not
92125         only the Makefile.ams that exist but also those that will be generated.
92127 2008-09-25  Simon Josefsson  <simon@josefsson.org>
92129         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
92130         fixes gnulib-tool --test warning about duplicate dependency.
92132 2008-09-25  Bruno Haible  <bruno@clisp.org>
92134         * gnulib-tool: Don't ask the user to perform edits in the generated
92135         Makefile.ams.
92136         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
92137         apply to the Makefile.am being generated.
92138         (func_emit_tests_Makefile_am): Execute edits that apply to the
92139         Makefile.am being generated.
92140         (func_import): Setup list of Makefile.am edits before emitting the
92141         Makefile.ams, not at the end.
92142         (func_create_testdir): Update.
92143         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
92145 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92147         * gnulib-tool (func_import): Store the --tests-base option in the
92148         comment in gnulib-cache.m4.
92150 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
92152         * NEWS: Document increased portability that sys_select now provides.
92154         * lib/sys_select.in.h: Install select wrapper.
92155         * lib/sys_socket.in.h: Use more descriptive name when there is no
92156         select wrapper.
92157         * lib/winsock-select.c: New.
92158         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
92159         Require gl_HEADER_SYS_SOCKET.
92160         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
92161         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
92162         * tests/test-sys_select.c: Add functional tests.
92164 2008-09-24  Eric Blake  <ebb9@byu.net>
92166         open, fopen: close fd leak in last patch
92167         * lib/open.c (rpl_open): Close fd before returning error.
92168         * lib/fopen.c (rpl_fopen): Close fd before returning error.
92169         * doc/posix-functions/open.texi (open): Document that Irix also
92170         has the bug.
92171         * doc/posix-functions/fopen.texi (fopen): Likewise.
92172         Reported by Paolo Bonzini.
92174 2008-09-24  Bruno Haible  <bruno@clisp.org>
92176         Ensure that a filename ending in a slash cannot be used to access a
92177         non-directory.
92178         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
92179         to check whether it's really a directory.
92180         * lib/fopen.c: Include fcntl.h, unistd.h.
92181         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
92182         and fdopen().
92183         * modules/fopen (Depends-on): Add unistd.
92184         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
92185         * tests/test-fopen.c (main): Likewise.
92186         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
92187         * doc/posix-functions/fopen.texi: Likewise.
92188         Reported by Eric Blake.
92190 2008-09-23  Eric Blake  <ebb9@byu.net>
92192         c-stack: avoid compiler optimizations when provoking overflow
92193         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
92194         recursion harder to optimize, to ensure a stack overflow occurs.
92195         * tests/test-c-stack.c (recurse): Likewise.
92196         Borrowed from libsigsegv.
92198         c-stack: work around Irix sigaltstack bug
92199         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
92200         whether sigaltstack uses wrong end of stack_t (copied in part from
92201         libsigsegv).
92202         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
92203         Irix bug, without requiring an over-allocation.
92204         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
92205         bug.
92207         fopen: document mingw bug on directories
92208         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
92209         not allowing a stream visiting a directory, even though reading
92210         from such a stream is not portable.
92212 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
92214         * lib/poll.c: Rewrite.
92215         * modules/poll: Depend on alloca.
92217 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
92219         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
92220         instead define prototypes for a full set of wrappers.  Ensure
92221         that Cygwin does not use the compatibility code, which is only
92222         for MinGW.
92223         * lib/winsock.c: New.
92224         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
92225         * modules/sys_socket: Add lib/winsock.c.
92227         * modules/poll-tests: Add errno and perror.
92228         * tests/test-poll.c: Use ioctl, not ioctlsocket.
92230 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
92232         * tests/test-poll.c: Downgrade minimum needed Winsock version.
92234 2008-09-23  Bruno Haible  <bruno@clisp.org>
92236         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
92237         * doc/glibc-functions/*: Likewise.
92239 2008-09-23  Simon Josefsson  <simon@josefsson.org>
92241         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
92242         success.
92244 2008-09-22  Eric Blake  <ebb9@byu.net>
92245             Bruno Haible  <bruno@clisp.org>
92247         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
92248         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
92249         supply %A but mishandle pseudo-NaN.
92250         Reported by Simon Josefsson.
92252 2008-09-21  Bruno Haible  <bruno@clisp.org>
92254         * tests/test-lock.c (main): Tweak skip message.
92255         * tests/test-tls.c (main): Likewise.
92257 2008-09-21  Bruno Haible  <bruno@clisp.org>
92259         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
92260         whether 'struct sigaction' has sa_sigaction here...
92261         (gl_PREREQ_SIG_HANDLER_H): ... not here.
92262         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
92264 2008-09-21  Bruno Haible  <bruno@clisp.org>
92266         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
92267         section.
92268         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
92269         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
92270         the new section.
92271         (Support for obsolete systems lacking POSIX:2001): New section.
92272         (String handling <string.h>): Move strdup to the new section.
92273         Suggested by Simon Josefsson and Paolo Bonzini.
92275 2008-09-21  Bruno Haible  <bruno@clisp.org>
92277         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
92278         exponents in %e and %g results on 'long double'. Needed for mingw's
92279         improved *printf functions.
92280         * tests/test-vasprintf-posix.c (test_function): Likewise.
92281         * tests/test-snprintf-posix.h (test_function): Likewise.
92282         * tests/test-sprintf-posix.h (test_function): Likewise.
92283         Reported by Eric Blake.
92285 2008-09-21  Bruno Haible  <bruno@clisp.org>
92287         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
92288         * tests/test-sprintf-posix.h (test_function): Likewise.
92290 2008-09-21  Bruno Haible  <bruno@clisp.org>
92292         * modules/getpass (Depends-on): Add strdup-posix.
92294         New module 'strdup-posix'.
92295         * modules/strdup-posix: New file.
92296         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
92297         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
92298         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
92299         REPLACE_STRDUP.
92300         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
92301         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
92302         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
92303         strdup-posix.
92305         * modules/strdup (Depends-on): Remove malloc-posix.
92307 2008-09-20  Bruno Haible  <bruno@clisp.org>
92309         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
92310         Wildenhues.
92312 2008-09-20  Bruno Haible  <bruno@clisp.org>
92314         Ensure that wint_t gets defined on IRIX 5.3.
92315         * lib/wchar.in.h (wint_t): Define if not defined by the system.
92316         * lib/wctype.in.h (wint_t): Likewise.
92317         (__wctype_wint_t): Remove type.
92318         (isw*): Use wint_t instead of __wctype_wint_t.
92319         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
92320         * modules/wchar (Files): Add m4/wint_t.m4.
92321         (Makefile.am): Substitute HAVE_WINT_T.
92322         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
92323         * tests/test-wctype.c: Check that wint_t is defined.
92324         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
92325         * doc/posix-headers/wctype.texi: Likewise.
92326         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
92328 2008-09-18  Bruno Haible  <bruno@clisp.org>
92330         * gnulib-tool (func_exit): Update comment.
92332 2008-09-18  Simon Josefsson  <simon@josefsson.org>
92334         * modules/getaddrinfo (Depends-on): Remove strdup, this module
92335         assumes strdup exists and does not depend on strdup to return
92336         ENOMEM on out of memory conditions.
92338 2008-09-18  Bruno Haible  <bruno@clisp.org>
92340         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
92341         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
92342         digits for the exponent.
92344 2008-09-18  Jim Meyering  <meyering@redhat.com>
92345             Bruno Haible  <bruno@clisp.org>
92347         * lib/vasnprintf.c (decimal_point_char): Define also if
92348         NEED_PRINTF_INFINITE_LONG_DOUBLE.
92350 2008-09-16  Bruno Haible  <bruno@clisp.org>
92351         and Eric Blake  <ebb9@byu.net>
92353         vasnprintf: support Irix 5.3
92354         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
92355         that mishandle long double infinity.
92356         Reported by Tom G. Christensen.
92358 2008-09-16  Bruno Haible  <bruno@clisp.org>
92360         * doc/glibc-functions/scandir.texi: Mention the function is missing on
92361         Solaris 9.
92362         * doc/glibc-functions/alphasort.texi: Likewise.
92363         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
92365 2008-09-16  Jim Meyering  <meyering@redhat.com>
92367         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
92368         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
92369         a umask modification leak out of a subshell.  Otherwise, the
92370         opensolaris /bin/sh would be accepted and thus cause unwarranted
92371         failures in the coreutils test suite.
92373 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
92375         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
92376         to succeed.
92378 2008-09-16  Jim Meyering  <meyering@redhat.com>
92380         avoid spurious test failure when library is built without ACL support
92381         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
92382         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
92383         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
92384         * tests/test-copy-acl.sh: Likewise.
92386 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92388         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
92389         based on character occurrence counts.
92391 2008-09-15  Eric Blake  <ebb9@byu.net>
92393         tests: avoid some compiler warnings
92394         * tests/test-memchr.c (main): Pass NULL indirectly.
92395         * tests/test-closein.c (main): Avoid unused variable.
92397 2008-09-15  Bruno Haible  <bruno@clisp.org>
92399         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
92400         are missing on OpenBSD 4.0 individually.
92401         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
92403 2008-09-15  Bruno Haible  <bruno@clisp.org>
92405         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
92406         * doc/posix-functions/strerror.texi: Mention also Cygwin.
92407         * doc/posix-functions/perror.texi: Likewise.
92408         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
92409         is missing.
92410         Reported by Eric Blake.
92412         * lib/errno.in.h: Use replacement values >= 2000.
92413         Reported by Eric Blake.
92415 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92417         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
92418         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
92419         limit.
92420         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
92421         compareseq was aborted.
92423 2008-09-14  Bruno Haible  <bruno@clisp.org>
92425         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
92426         yvec_edit_count.
92427         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
92428         (fstrcmp_bounded): Simplify result computation accordingly.
92430 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92432         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
92433         (fstrcmp): Define in terms of fstrcmp_bounded.
92434         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
92435         lower_bound argument.
92436         Return quickly if the result is certainly < lower_bound.
92437         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
92439 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92441         * lib/diffseq.h (EARLY_ABORT): New macro.
92442         (compareseq): Change return type to bool. Return true when EARLY_ABORT
92443         evaluates to true.
92445 2008-09-14  Bruno Haible  <bruno@clisp.org>
92447         * modules/perror-tests: New file.
92448         * tests/test-perror.sh: New file.
92449         * tests/test-perror.c: New file.
92451         New module 'perror'.
92452         * lib/stdio.in.h (perror): New declaration.
92453         * lib/perror.c: New file.
92454         * m4/perror.m4: New file.
92455         * modules/perror: New file.
92456         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
92457         * doc/posix-functions/perror.texi: Mention the perror module.
92458         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
92459         REPLACE_PERROR.
92460         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
92461         REPLACE_PERROR.
92463 2008-09-14  Bruno Haible  <bruno@clisp.org>
92465         * modules/stdio (Makefile.am): Reorder to match the order in
92466         lib/stdio.in.h.
92467         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
92469 2008-09-13  Bruno Haible  <bruno@clisp.org>
92471         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
92473 2008-09-13  Bruno Haible  <bruno@clisp.org>
92475         Extend strerror to cover the added errno values.
92476         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
92477         (rpl_strerror): Provide error messages for the added errno values and
92478         for the WSA* values.
92479         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
92480         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
92481         strerror.
92482         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
92483         * modules/strerror (Depends-on): Add errno.
92484         * doc/posix-functions/strerror.texi: Document the change.
92485         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
92486         and EOVERFLOW.
92488 2008-09-13  Bruno Haible  <bruno@clisp.org>
92490         * modules/EOVERFLOW: Remove file.
92491         * m4/eoverflow.m4: Remove file.
92492         * modules/EOVERFLOW-tests: Remove file.
92493         * tests/test-EOVERFLOW.c: Remove file.
92494         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
92495         * modules/ftell (Depends-on): Likewise.
92496         * modules/getdelim (Depends-on): Likewise.
92497         * modules/getugroups (Depends-on): Likewise.
92498         * modules/poll (Depends-on): Likewise.
92499         * modules/snprintf (Depends-on): Likewise.
92500         * modules/sprintf-posix (Depends-on): Likewise.
92501         * modules/vasnprintf (Depends-on): Likewise.
92502         * modules/vasprintf (Depends-on): Likewise.
92503         * modules/vfprintf-posix (Depends-on): Likewise.
92504         * modules/vsnprintf (Depends-on): Likewise.
92505         * modules/vsprintf-posix (Depends-on): Likewise.
92506         * modules/xvasprintf (Depends-on): Likewise.
92507         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
92508         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
92509         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
92510         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
92511         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
92512         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
92513         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
92514         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
92515         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
92516         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
92517         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
92518         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
92519         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
92520         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
92521         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
92522         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
92523         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
92524         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
92525         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
92526         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
92527         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
92528         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
92529         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
92530         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
92531         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
92532         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
92533         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
92534         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
92535         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
92536         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
92537         * MODULES.html.sh: Remove EOVERFLOW.
92538         * NEWS: Mention the change.
92540 2008-09-13  Bruno Haible  <bruno@clisp.org>
92542         * modules/errno-tests: New file.
92543         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
92545         * lib/errno.in.h: New file.
92546         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
92547         * modules/errno: New file.
92548         * doc/posix-headers/errno.texi: Update documentation.
92549         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
92551 2008-09-13  Bruno Haible  <bruno@clisp.org>
92553         * tests/test-poll.c: Use #if for native Windows, rather than testing
92554         __MSVCRT__.
92556 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92557             Bruno Haible  <bruno@clisp.org>
92559         * lib/glob.c: Don't include <pwd.h> on native Windows.
92560         (WINDOWS32): New macro.
92561         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
92563 2008-09-13  Bruno Haible  <bruno@clisp.org>
92565         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
92566         (ETIMEDOUT): Remove macro.
92567         (glthread_cond_timedwait_multithreaded): New declaration.
92568         (glthread_cond_timedwait): Use it.
92569         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
92570         (glthread_cond_timedwait_multithreaded): New function.
92572 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
92574         * modules/poll-tests: Do not check for io.h.
92575         * tests/test-poll.c: Check for __MSVCRT__ instead.
92577 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
92579         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
92580         * modules/poll-tests: Add inet_pton, stdbool, sockets.
92581         * tests/test-poll.c: Use them.  Use _pipe on Windows.
92583 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
92585         * modules/poll-tests: New.
92586         * tests/test-poll.c: New.
92588 2008-09-12  Eric Blake  <ebb9@byu.net>
92590         frexp: test for NetBSD failure on -0.0
92591         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
92592         not all, bugs from NetBSD 3.0 have been fixed.
92593         * doc/posix-functions/frexp.texi (frexp): Document bug.
92594         Reported by Thomas Klausner.
92596         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
92597         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
92598         literal -0.0.
92599         Reported by Jonathan C. Patschke <jp@centtech.com>.
92601 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92603         * lib/glthread/cond.h: Use dummy implementation also if
92604         USE_WIN32_THREADS.
92606 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92608         * modules/fnmatch-posix (License): Change to LGPLv2+.
92609         * modules/fnmatch-gnu (License): Likewise.
92611 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92613         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
92615 2008-09-11  Jim Meyering  <meyering@redhat.com>
92617         * users.txt: Add gtk-vnc.
92619 2008-09-08  Simon Josefsson  <simon@josefsson.org>
92621         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
92622         rotate amounts.
92624         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
92625         required for 16-bit and 8-bit rotates.
92626         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
92627         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
92628         UINT8_MAX instead of hard-coded constants.
92629         Suggested by Paul Eggert.
92631 2008-09-07  Bruno Haible  <bruno@clisp.org>
92633         * tests/test-striconveh.c (main): Check behaviour when converting from
92634         UTF-7.
92636         Make striconveh work better with stateful encodings.
92637         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
92638         that iconv does not increment the inptr when returning -1/EINVAL.
92640 2008-09-07  Bruno Haible  <bruno@clisp.org>
92642         * build-aux/config.rpath: Update according to libtool-2.2.6.
92643         * build-aux/config.libpath: Likewise.
92645 2008-09-06  Bruno Haible  <bruno@clisp.org>
92647         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
92648         * lib/freadptr.c (freadptr): Likewise.
92649         * lib/freadseek.c (freadptrinc): Likewise.
92650         Reported by Simon Josefsson.
92652 2008-09-06  Bruno Haible  <bruno@clisp.org>
92654         * modules/freadptr (License): Change to LGPLv2+.
92655         * modules/freadseek (License): Likewise.
92656         Suggested by Eric Blake.
92658         * modules/memchr2 (License): Change to LGPLv2+.
92659         Approved by Eric Blake.
92661 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92662             Bruno Haible  <bruno@clisp.org>
92664         Make gnulib-tool work with native 'sed' on AIX.
92665         * gnulib-tool (sed_noop): New variable.
92666         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
92667         func_add_or_update, func_create_testdir): Use it to initialize sed
92668         script variables.
92669         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
92671 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
92672             Bruno Haible  <bruno@clisp.org>
92674         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
92675         also works after #include directives.
92677 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
92679         getdate.y: reject an out-of-range timezone value
92680         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
92681         the range [-24...+24].  When specified with only one or two digits,
92682         * tests/test-getdate.c: Tests for the fix.
92683         * doc/getdate.texi: Document this change.
92685 2008-09-03  Bruno Haible  <bruno@clisp.org>
92687         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
92689 2008-09-02  Simon Josefsson  <simon@josefsson.org>
92691         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
92692         <bruce.korb@gmail.com> with ideas from Ben Pfaff
92693         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
92694         Blake <ebb9@byu.net>.
92696         * tests/test-bitrotate.c: Add more test vectors.
92698 2008-09-02  Eric Blake  <ebb9@byu.net>
92700         vasnprintf-posix: handle large precision via %.*d
92701         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
92702         when handling it ourselves.
92703         * tests/test-vasnprintf-posix.c (test_function): Add test.
92704         * tests/test-snprintf-posix.h (test_function): Likewise.
92705         * tests/test-sprintf-posix.h (test_function): Likewise.
92706         * tests/test-vasprintf-posix.c (test_function): Likewise.
92707         Reported by Alain Guibert.
92709 2008-09-01  Eric Blake  <ebb9@byu.net>
92711         c-stack: make configure-time check more robust
92712         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
92713         successful sigaction call.
92714         Reported by Tom G. Christensen.
92716 2008-09-01  Bruno Haible  <bruno@clisp.org>
92718         New module 'findprog-lgpl'.
92719         * modules/findprog-lgpl: New file.
92720         * lib/findprog-lgpl.c: New file.
92721         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
92722         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
92723         to decide whether to use strdup or xstrdup, concatenated_filename or
92724         xconcatenated_filename.
92726 2008-09-01  Bruno Haible  <bruno@clisp.org>
92728         Split module 'concat-filename' into 'concat-filename' (LGPL) and
92729         'xconcat-filename' (GPL).
92730         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
92731         (License): Change to LGPLv2+.
92732         * modules/xconcat-filename: New file.
92733         * lib/concat-filename.h (concatenated_filename): Change specification.
92734         (xconcatenated_filename): New declaration.
92735         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
92736         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
92737         memory situations.
92738         * lib/xconcat-filename.c: New file.
92739         * NEWS: Mention the change.
92740         * lib/findprog.c: Include concat-filename.h, not filename.h.
92741         (find_in_path): Use xconcatenated_filename instead of
92742         concatenated_filename.
92743         * lib/javacomp.c: Include concat-filename.h, not filename.h.
92744         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
92745         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
92746         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
92747         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
92748         instead of concatenated_filename.
92749         * lib/javaexec.c: Include concat-filename.h, not filename.h.
92750         (execute_java_class): Use xconcatenated_filename instead of
92751         concatenated_filename.
92752         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
92753         * modules/javacomp (Depends-on): Likewise.
92754         * modules/javaexec (Depends-on): Likewise.
92756 2008-09-01  Bruno Haible  <bruno@clisp.org>
92758         Split module 'filename' into 'filename' and 'concat-filename'.
92759         * modules/filename: Keep only lib/filename.h.
92760         (License): Change to LGPLv2+.
92761         * modules/concat-filename: New file, extracted from modules/filename.
92762         * lib/filename.h (concatenated_filename): Remove declaration.
92763         * lib/concat-filename.h: New file, extracted from lib/filename.h.
92764         * lib/concat-filename.c: Include concat-filename.h.
92765         * NEWS: Mention the change.
92767 2008-09-01  Simon Josefsson  <simon@josefsson.org>
92769         * lib/bitrotate.h (rotl8, rotr8): Add.
92771         * modules/bitrotate (configure.ac): Need
92772         AC_REQUIRE([AC_C_INLINE]).
92773         (Description): Mention stdint.h.  Reported by Bruno Haible
92774         <bruno@clisp.org>.
92776         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
92777         Paolo Bonzini <bonzini@gnu.org>.
92779 2008-08-31  Bruno Haible  <bruno@clisp.org>
92781         Assume Solaris specific bi-arch conventions on Solaris systems.
92782         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
92783         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
92784         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
92785         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
92786         like acl_libdirstem.
92787         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
92788         acl_libdirstem.
92789         * NEWS: Mention the change.
92790         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
92792 2008-08-31  Jim Meyering  <meyering@redhat.com>
92794         * lib/strftime.h: Add comments describing the two added arguments.
92796         remove duplicate #include directives
92797         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
92798         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
92800 2008-08-31  Bruno Haible  <bruno@clisp.org>
92802         New module 'sigpipe-die'.
92803         * modules/sigpipe-die: New file.
92804         * lib/sigpipe-die.h: New file.
92805         * lib/sigpipe-die.c: New file.
92806         * MODULES.html.sh (Signal handling): Add sigpipe-die.
92808 2008-08-31  Bruno Haible  <bruno@clisp.org>
92810         Don't override previously installed signal handlers.
92811         * lib/fatal-signal.c (saved_sigactions): New variable.
92812         (uninstall_handlers): Reset the signal to the saved handler, not
92813         to SIG_DFL (except when ignored).
92814         (install_handlers): Save the previous handlers.
92816 2008-08-30  Bruno Haible  <bruno@clisp.org>
92818         * gnulib-tool (func_reset_sigpipe): New function.
92819         (func_get_automake_snippet, func_modules_transitive_closure,
92820         func_import): Invoke it before a join command that reads from stdin,
92821         to avoid "echo: write error: Broken pipe" error messages on stderr.
92822         Reported by Sam Steingold <sds@gnu.org>.
92824 2008-08-30  Bruno Haible  <bruno@clisp.org>
92826         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
92827         Code copied from m4/open.m4.
92828         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
92829         access and the filename ends in a slash. Code copied from lib/open.c.
92830         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
92831         * tests/test-fopen.c (main): Check against bug with trailing slash.
92833 2008-08-29  Bruno Haible  <bruno@clisp.org>
92835         Avoid some "gcc -pedantic" warnings.
92836         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
92837         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
92838         * lib/dirent.in.h: Likewise.
92839         * lib/fcntl.in.h: Likewise.
92840         * lib/float.in.h: Likewise.
92841         * lib/iconv.in.h: Likewise.
92842         * lib/inttypes.in.h: Likewise.
92843         * lib/locale.in.h: Likewise.
92844         * lib/math.in.h: Likewise.
92845         * lib/netinet_in.in.h: Likewise.
92846         * lib/search.in.h: Likewise.
92847         * lib/signal.in.h: Likewise.
92848         * lib/stdarg.in.h: Likewise.
92849         * lib/stdint.in.h: Likewise.
92850         * lib/stdio.in.h: Likewise.
92851         * lib/stdlib.in.h: Likewise.
92852         * lib/string.in.h: Likewise.
92853         * lib/strings.in.h: Likewise.
92854         * lib/sys_select.in.h: Likewise.
92855         * lib/sys_socket.in.h: Likewise.
92856         * lib/sys_stat.in.h: Likewise.
92857         * lib/sys_time.in.h: Likewise.
92858         * lib/sysexits.in.h: Likewise.
92859         * lib/time.in.h: Likewise.
92860         * lib/unistd.in.h: Likewise.
92861         * lib/wchar.in.h: Likewise.
92862         * lib/wctype.in.h: Likewise.
92863         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
92864         * modules/fchdir (Makefile.am): Likewise.
92865         * modules/fcntl (Makefile.am): Likewise.
92866         * modules/float (Makefile.am): Likewise.
92867         * modules/iconv_open (Makefile.am): Likewise.
92868         * modules/inttypes (Makefile.am): Likewise.
92869         * modules/locale (Makefile.am): Likewise.
92870         * modules/math (Makefile.am): Likewise.
92871         * modules/netinet_in (Makefile.am): Likewise.
92872         * modules/search (Makefile.am): Likewise.
92873         * modules/signal (Makefile.am): Likewise.
92874         * modules/stdarg (Makefile.am): Likewise.
92875         * modules/stdint (Makefile.am): Likewise.
92876         * modules/stdio (Makefile.am): Likewise.
92877         * modules/stdlib (Makefile.am): Likewise.
92878         * modules/string (Makefile.am): Likewise.
92879         * modules/strings (Makefile.am): Likewise.
92880         * modules/sys_select (Makefile.am): Likewise.
92881         * modules/sys_socket (Makefile.am): Likewise.
92882         * modules/sys_stat (Makefile.am): Likewise.
92883         * modules/sys_time (Makefile.am): Likewise.
92884         * modules/sysexits (Makefile.am): Likewise.
92885         * modules/time (Makefile.am): Likewise.
92886         * modules/unistd (Makefile.am): Likewise.
92887         * modules/wchar (Makefile.am): Likewise.
92888         * modules/wctype (Makefile.am): Likewise.
92889         Reported by Reuben Thomas <rrt@sc3d.org>.
92891 2008-08-29  Bruno Haible  <bruno@clisp.org>
92893         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
92894         any more.
92896 2008-08-29  Simon Josefsson  <simon@josefsson.org>
92898         * MODULES.html.sh (Misc): Add bitrotate.
92900         * modules/bitrotate: New file.
92902         * lib/bitrotate.h: New file.
92904         * modules/bitrotate-tests: New file.
92906         * tests/test-bitrotate.c: New file.
92908         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
92909         on the bitrotate module.
92911         * lib/arctwo.c: Use new bitrotate module.
92913 2008-08-29  Jim Meyering  <meyering@redhat.com>
92915         bootstrap: merge changes from coreutils
92916         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
92917         of copied files.  Remove a kludge, now that this is fixed.
92918         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
92919         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
92920         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
92922 2008-08-29  Bruno Haible  <bruno@clisp.org>
92924         * MODULES.html.sh: Remove --cvs-urls option.
92926 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
92928         maint.mk: adjust to file name change
92929         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
92931 2008-08-28  Jim Meyering  <meyering@redhat.com>
92933         * modules/getndelim2 (License): Relicense to LGPLv2+.
92934         Approved by Richard Stallman for the version of 1995, and by
92935         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
92937 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
92939         * lib/getdelim.c (flockfile, funlockfile): Make all of them
92940         dummy if one is not available.  Do not touch them if
92941         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
92942         (getc_maybe_unlocked): New.
92943         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
92945 2008-08-26  Eric Blake  <ebb9@byu.net>
92947         doc/INSTALL: resync from autoconf
92948         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
92949         (INSTALL_PRELUDE): Delete; this is done more efficiently by
92950         moving...
92951         * install.texi [!autoconf]: ...here.  Resync from autoconf.
92952         * INSTALL: Regenerate.
92953         * INSTALL.ISO: New file.
92954         * INSTALL.UTF-8: Likewise.
92956 2008-08-26  Jim Meyering  <meyering@redhat.com>
92958         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
92959         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
92960         these definitions conditional, so that they may be overridden, too.
92962 2008-08-26  Bruno Haible  <bruno@clisp.org>
92964         Generate INSTALL file variants with prettier quotes.
92965         * doc/Makefile (INSTALL_PRELUDE): New macro.
92966         (INSTALL): Use it.
92967         (INSTALL.ISO, INSTALL.UTF-8): New rules.
92969 2008-08-26  Bruno Haible  <bruno@clisp.org>
92971         Run makeinfo in an English locale.
92972         * doc/Makefile (MAKEINFO): New variable.
92974 2008-08-26  Bruno Haible  <bruno@clisp.org>
92976         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
92977         Suggested by Eric Blake.
92979 2008-08-25  Bruno Haible  <bruno@clisp.org>
92981         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
92983 2008-08-25  Eric Blake  <ebb9@byu.net>
92985         c-stack: test that stack overflow can be caught
92986         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
92987         that platform allows handling stack overflow; at least OS/2 EMX
92988         has sigaltstack, but crashes before transferring control to
92989         handler on stack overflow.
92990         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
92991         check for HAVE_STACK_OVERFLOW_HANDLING.
92992         Reported by Elbert Pol.
92994 2008-08-25  Bruno Haible  <bruno@clisp.org>
92996         * doc/posix-functions/strftime.texi: Fix description of strftime
92997         module.
92999 2008-08-24  Bruno Haible  <bruno@clisp.org>
93001         * tests/uniwidth/test-uc_width2.c: New file.
93002         * tests/uniwidth/test-uc_width2.sh: New file.
93003         * modules/uniwidth/width-tests (Files): Add the new files.
93004         (TESTS): Add uniwidth/test-uc_width2.sh.
93005         (TESTS_ENVIRONMENT): New variable.
93006         (check_PROGRAMS): Add test-uc_width2.
93007         (test_uc_width2_SOURCES): New variable.
93009         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
93010         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
93011         not 0x00AB.
93012         Reported by Alexander V. Lukyanov <lav@netis.ru>.
93014 2008-08-22  Eric Blake  <ebb9@byu.net>
93016         test-lock, test-tls: mention why a test is skipped
93017         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
93018         skipped.
93019         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
93021         count-one-bits: relax license
93022         * modules/count-one-bits (License): Relicense to LGPLv2+.
93023         Suggested by Ludovic Courtès, approved by Ben Pfaff.
93025 2008-08-22  Andreas Schwab  <schwab@suse.de>
93027         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
93028         Remove spurious space in assignment.
93030 2008-08-21  Simon Josefsson  <simon@josefsson.org>
93032         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
93033         Paul Eggert <eggert@CS.UCLA.EDU>.
93035 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
93037         * modules/gettext: Add m4/threadlib.m4.
93039 2008-08-19  Eric Blake  <ebb9@byu.net>
93041         test-c-stack: fix compilation failure on FreeBSD 5.0
93042         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
93043         headers before <sys/resource.h>.
93044         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
93045         the bug.
93046         Reported by Nelson H. F. Beebe.
93048         strverscmp: migrate from "strverscmp.h" to <string.h>
93049         * modules/string (Makefile.am): Add new hooks.
93050         * modules/strverscmp (Files): Remove strverscmp.h.
93051         (Depends-on): Add string.
93052         (configure.ac): Add indicator.
93053         (Include): Mention new header.
93054         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
93055         defaults.
93056         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
93057         results.
93058         * lib/strverscmp.h: Delete.
93059         * lib/string.in.h (strverscmp): Provide declaration, when needed.
93060         * tests/test-strverscmp.c (includes): Adjust client.
93061         * lib/check-version.c (includes): Likewise.
93062         * NEWS: Document the change.
93064         strverscmp: add unit test
93065         * modules/strverscmp-tests: New file.
93066         * tests/test-strverscmp.c: Likewise.
93068 2008-08-19  Simon Josefsson  <simon@josefsson.org>
93070         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
93071         regarding Windows crypto stuff, from Mono.
93073 2008-08-19  Adam Strzelecki  <ono@java.pl>  (tiny change)
93075         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
93076         if present, for intel RND.  Return error on failures.
93078 2008-08-18  Ben Pfaff  <blp@gnu.org>
93080         gitlog-to-changelog: give better diagnostic for failed pipe-open
93081         * build-aux/gitlog-to-changelog: Improve error message: suggest
93082         that the version of Git may be too old.
93084 2008-08-18  Simon Josefsson  <simon@josefsson.org>
93086         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
93087         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
93089 2008-08-18  Bruno Haible  <bruno@clisp.org>
93091         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
93092         pthread_in_use().
93094 2008-08-18  Bruno Haible  <bruno@clisp.org>
93096         * lib/glthread/threadlib.c: Include <pthread.h>.
93098 2008-08-18  Bruno Haible  <bruno@clisp.org>
93100         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
93101         glthread_recursive_lock_* macros.
93102         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
93103         Fix syntax error.
93105 2008-08-18  Bruno Haible  <bruno@clisp.org>
93107         * lib/glthread/thread.c: Avoid forcing a context switch right after
93108         thread creation.
93110 2008-08-17  Bruno Haible  <bruno@clisp.org>
93112         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
93113         * lib/glthread/thread.h: Provide Win32 specific implementation.
93114         * modules/thread (Files): Add lib/glthread/thread.c.
93115         (Depends-on): Add lock.
93116         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
93118 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
93120         New module 'yield'.
93121         * modules/yield: New file.
93122         * lib/glthread/yield.h: New file.
93123         * m4/yield.m4: New file.
93124         * MODULES.html.sh (Multithreading): Add yield.
93126 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
93128         New module 'thread'.
93129         * modules/thread: New file.
93130         * lib/glthread/thread.h: New file.
93131         * m4/thread.m4: New file.
93132         * MODULES.html.sh (Multithreading): Add thread.
93134 2008-08-17  Bruno Haible  <bruno@clisp.org>
93136         * lib/glthread/lock.h: Include <stdlib.h> always.
93137         * lib/glthread/tls.h: Likewise.
93138         * lib/glthread/cond.h: Likewise.
93140 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
93142         New module 'cond'.
93143         * modules/cond: New file.
93144         * lib/glthread/cond.h: New file.
93145         * lib/glthread/cond.c: New file.
93146         * m4/cond.m4: New file.
93147         * MODULES.html.sh (Multithreading): Add cond.
93149 2008-08-16  Eric Blake  <ebb9@byu.net>
93151         c-stack: fix regression on Irix 5.3 from 2008-06-21
93152         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
93153         sa_sigaction...
93154         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
93155         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
93156         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
93157         * modules/signal (Makefile.am): Use the value.
93158         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
93159         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
93160         * doc/posix-headers/signal.texi (signal.h): Document this
93161         portability issue.
93162         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
93163         Reported by Tom G. Christensen.
93165 2008-08-17  Bruno Haible  <bruno@clisp.org>
93167         New module 'threadlib'.
93168         * modules/threadlib: New file.
93169         * lib/glthread/threadlib.c: New file, extracted from
93170         lib/glthread/lock.c.
93171         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
93172         functions.
93173         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
93174         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
93175         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
93176         macros.
93177         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
93178         (gl_DISABLE_THREADS): Remove macro.
93179         * modules/lock (Files): Remove build-aux/config.rpath.
93180         (Depends-on): Remove havelib. Add threadlib.
93181         (configure.ac-early): Remove section.
93182         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
93183         * modules/tls (Depends-on): Remove lock. Add threadlib.
93184         (Link): New section, copied from threadlib.
93185         * MODULES.html.sh (Multithreading): Add threadlib.
93187 2008-08-14  Bruno Haible  <bruno@clisp.org>
93189         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
93190         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
93191         glthread_rwlock_unlock, glthread_rwlock_destroy,
93192         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
93193         glthread_recursive_lock_destroy): Define as macros always.
93194         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
93195         glthread_lock_lock.
93196         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
93197         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
93198         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
93199         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
93200         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
93201         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
93202         (glthread_recursive_lock_lock_func): Renamed from
93203         glthread_recursive_lock_lock.
93204         (glthread_recursive_lock_unlock_func): Renamed from
93205         glthread_recursive_lock_unlock.
93206         (glthread_recursive_lock_destroy_func): Renamed from
93207         glthread_recursive_lock_destroy.
93209 2008-08-14  Bruno Haible  <bruno@clisp.org>
93211         * lib/glthread/lock.h: Renamed from lib/lock.h.
93212         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
93213         * lib/glthread/tls.h: Renamed from lib/tls.h.
93214         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
93215         * lib/fstrcmp.c: Update includes.
93216         * lib/strsignal.c: Update includes.
93217         * modules/lock (Files, Makefile.am): Update.
93218         (Include): Change to "glthread/lock.h".
93219         * modules/tls (Files, Makefile.am): Update.
93220         (Include): Change to "glthread/tls.h".
93221         * tests/test-lock.c: Update includes.
93222         * tests/test-tls.c: Update includes.
93223         * NEWS: Mention the renamed header files.
93225 2008-08-11  Jim Meyering  <meyering@redhat.com>
93227         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
93229 2008-08-11  Eric Blake  <ebb9@byu.net>
93231         test-c-stack: avoid C99-ism
93232         * tests/test-c-stack.c (main): Fix whitespace, move declaration
93233         before statement.
93234         Reported by Alain Guibert.
93236 2008-08-10  Jim Meyering  <meyering@redhat.com>
93238         ensure that return value of uinttostr et al are not ignored
93239         * lib/inttostr.h (__GNUC_PREREQ): Define.
93240         (__attribute_warn_unused_result__): Define.
93241         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
93243 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
93245         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
93246         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
93248 2008-08-07  Jim Meyering  <meyering@redhat.com>
93250         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
93252         * modules/mkstemp (License): Relicense under LGPLv2+.
93253         * modules/tempname (License): Likewise.
93255 2008-08-06  Bruno Haible  <bruno@clisp.org>
93257         * lib/poll.c (poll): Further micro-optimization.
93259 2008-08-06  Jim Meyering  <meyering@redhat.com>
93261         inet_pton.c: use locale-independent tolower
93262         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
93263         (inet_pton6): Use c_tolower rather than tolower.
93264         * modules/inet_pton (Depends-on): Add c-ctype.
93266 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
93268         * lib/poll.c (poll): Avoid division when timeout is 0, cache
93269         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
93271 2008-08-06  Jim Meyering  <meyering@redhat.com>
93273         * modules/inet_pton (License): Relicense under LGPLv2+.
93275 2008-08-03  Bruno Haible  <bruno@clisp.org>
93277         Additional non-aborting API for lock and tls.
93278         * lib/lock.h: Include <errno.h>.
93279         (glthread_lock_init): New macro/function.
93280         (gl_lock_init): Define as wrapper around glthread_lock_init.
93281         (glthread_lock_lock): New macro/function.
93282         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
93283         (glthread_lock_unlock): New macro/function.
93284         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
93285         (glthread_lock_destroy): New macro/function.
93286         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
93287         (glthread_rwlock_init): New macro/function.
93288         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
93289         (glthread_rwlock_rdlock): New macro/function.
93290         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
93291         (glthread_rwlock_wrlock): New macro/function.
93292         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
93293         (glthread_rwlock_unlock): New macro/function.
93294         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
93295         (glthread_rwlock_destroy): New macro/function.
93296         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
93297         (glthread_recursive_lock_init): New macro/function.
93298         (gl_recursive_lock_init): Define as wrapper around
93299         glthread_recursive_lock_init.
93300         (glthread_recursive_lock_lock): New macro/function.
93301         (gl_recursive_lock_lock): Define as wrapper around
93302         glthread_recursive_lock_lock.
93303         (glthread_recursive_lock_unlock): New macro/function.
93304         (gl_recursive_lock_unlock): Define as wrapper around
93305         glthread_recursive_lock_unlock.
93306         (glthread_recursive_lock_destroy): New macro/function.
93307         (gl_recursive_lock_destroy): Define as wrapper around
93308         glthread_recursive_lock_destroy.
93309         (glthread_once): New macro/function.
93310         (gl_once): Define as wrapper around glthread_once.
93311         Update function declarations.
93312         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
93313         glthread_rwlock_init. Return error code.
93314         (glthread_rwlock_rdlock_multithreaded): Renamed from
93315         glthread_rwlock_rdlock. Return error code.
93316         (glthread_rwlock_wrlock_multithreaded): Renamed from
93317         glthread_rwlock_wrlock. Return error code.
93318         (glthread_rwlock_unlock_multithreaded): Renamed from
93319         glthread_rwlock_unlock. Return error code.
93320         (glthread_rwlock_destroy_multithreaded): Renamed from
93321         glthread_rwlock_destroy. Return error code.
93322         (glthread_recursive_lock_init_multithreaded): Renamed from
93323         glthread_recursive_lock_init. Return error code.
93324         (glthread_recursive_lock_lock_multithreaded): Renamed from
93325         glthread_recursive_lock_lock. Return error code.
93326         (glthread_recursive_lock_unlock_multithreaded): Renamed from
93327         glthread_recursive_lock_unlock. Return error code.
93328         (glthread_recursive_lock_destroy_multithreaded): Renamed from
93329         glthread_recursive_lock_destroy. Return error code.
93330         (glthread_once_call): Make static.
93331         (glthread_once_multithreaded): Renamed from glthread_once.
93332         * lib/tls.h: Include <errno.h>.
93333         (glthread_tls_key_init): New macro/function.
93334         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
93335         (glthread_tls_set): New macro/function.
93336         (gl_tls_set): Define as wrapper around glthread_tls_set.
93337         (glthread_tls_key_destroy): New macro/function.
93338         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
93339         Update function declarations.
93340         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
93341         glthread_tls_get.
93342         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
93344 2008-08-04  Eric Blake  <ebb9@byu.net>
93346         gnumakefile: use space, not TAB, outside of targets
93347         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
93349 2008-08-02  Jim Meyering  <meyering@redhat.com>
93351         getdate.y: avoid locale-dependent date parsing failure
93352         In Turkish locales, getdate would fail to recognize keywords
93353         containing a lowercase "i".  The solution is not to rely on
93354         locale-sensitive case-conversion.
93355         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
93356         (lookup_word): Use c_toupper in place of toupper.
93357         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
93358         Reported by Vefa Bicakci <bicave@superonline.com> in
93359         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
93360         * modules/getdate (Depends-on): Add c-ctype.
93362 2008-08-02  Bruno Haible  <bruno@clisp.org>
93364         * gnulib-tool (func_import): When updating or creating a .gitignore
93365         file, prepend each added line with a slash, and ignore leading slashes
93366         from the existing lines.
93367         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
93369 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93371         Portability fix for GNU make 3.79.1.
93372         * top/GNUmakefile: Avoid 'else COND', which older GNU make
93373         versions do not understand.
93375 2008-08-01  Bruno Haible  <bruno@clisp.org>
93377         Work around bug of HP-UX 10.20 cc with -0.0 literal.
93378         * tests/test-isnanf.h (zero): New variable.
93379         (main): Avoid literal -0.0f.
93380         * tests/test-isnand.h (zero): New variable.
93381         (main): Avoid literal -0.0.
93382         * tests/test-isnanl.h (zero): New variable.
93383         (main): Avoid literal -0.0L.
93384         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
93385         (test_float, test_double, test_long_double): Avoid literals -0.0f,
93386         -0.0, -0.0L.
93387         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
93388         (test_signbitd): Avoid literal -0.0.
93389         (test_signbitl): Avoid literal -0.0L.
93390         * tests/test-ceilf1.c (zero): New variable.
93391         (main): Avoid literal -0.0f.
93392         * tests/test-ceill.c (zero): New variable.
93393         (main): Avoid literal -0.0L.
93394         * tests/test-floorf1.c (zero): New variable.
93395         (main): Avoid literal -0.0f.
93396         * tests/test-floorl.c (zero): New variable.
93397         (main): Avoid literal -0.0L.
93398         * tests/test-roundf1.c (zero): New variable.
93399         (main): Avoid literal -0.0f.
93400         * tests/test-round1.c (zero): New variable.
93401         (main): Avoid literal -0.0.
93402         * tests/test-roundl.c (zero): New variable.
93403         (main): Avoid literal -0.0L.
93404         * tests/test-truncf1.c (zero): New variable.
93405         (main): Avoid literal -0.0f.
93406         * tests/test-trunc1.c (zero): New variable.
93407         (main): Avoid literal -0.0.
93408         * tests/test-truncl.c (zero): New variable.
93409         (main): Avoid literal -0.0L.
93410         * tests/test-frexp.c (zero): New variable.
93411         (main): Avoid literal -0.0.
93412         * tests/test-frexpl.c (zero): New variable.
93413         (main): Avoid literal -0.0L.
93414         * tests/test-ldexpl.c (zero): New variable.
93415         (main): Avoid literal -0.0L.
93416         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
93417         (zerod, zerol): New variables.
93418         (test_function): Avoid literals -0.0, -0.0L.
93419         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
93420         (zerod, zerol): New variables.
93421         (test_function): Avoid literals -0.0, -0.0L.
93422         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
93423         (zerod, zerol): New variables.
93424         (test_function): Avoid literals -0.0, -0.0L.
93425         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
93426         (zerod, zerol): New variables.
93427         (test_function): Avoid literals -0.0, -0.0L.
93428         * tests/test-strtod.c (zero): New variable.
93429         (main): Avoid literal -0.0.
93430         Reported by Jonathan C. Patschke <jp@centtech.com>.
93432 2008-07-31  Jim Meyering  <meyering@redhat.com>
93434         sha256.h: correct definition of SHA224_DIGEST_SIZE
93435         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
93436         Reported by Paulie Pena IV <paulie4@gmail.com>.
93437         Define as 224 / 8, rather than as a literal.
93438         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
93439         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
93440         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
93442 2008-07-31  Bruno Haible  <bruno@clisp.org>
93444         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
93445         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
93446         Reported by Jonathan Patschke <jp@centtech.com>.
93448 2008-07-31  Bruno Haible  <bruno@clisp.org>
93450         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
93451         Reported by Paolo Bonzini <bonzini@gnu.org>.
93453 2008-07-30  Eric Blake  <ebb9@byu.net>
93455         test-strtod: allow compilation without -lm
93456         * tests/test-strtod.c (main): Avoid link dependence on fabs.
93457         Reported by Dennis Clarke <blastwave@gmail.com>.
93459 2008-07-28  Jim Meyering  <meyering@redhat.com>
93461         bootstrap: work also when there are no .po files in po/
93462         * build-aux/bootstrap (update_po_files): Complete the change
93463         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
93465 2008-07-27  Jim Meyering  <meyering@redhat.com>
93467         * users.txt: Add zile.
93469 2008-07-26  Ben Pfaff  <blp@gnu.org>
93471         Add missing dependencies on new m4/exponent[fdl].m4 files.
93472         * modules/isnanf-nolibm: Add m4/exponentf.m4.
93473         * modules/isnand-nolibm: Add m4/exponentd.m4.
93474         * modules/isnanl-nolibm: Add m4/exponentl.m4.
93475         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
93476         m4/isnan[fdl].m4, because the macros actually used moved.
93477         Reported by Jim Meyering.
93479 2008-07-14  Ben Pfaff  <blp@gnu.org>
93481         Add isinf module.
93482         * lib/isinf.c: New file.
93483         * lib/math.in.h: Define isinf macro if we have decided to replace
93484         it.
93485         * m4/isinf.m4: New file.
93486         * m4/math_h.m4: Initialize and substitute variables for isinf
93487         module.
93488         * modules/isinf: New file.
93489         * modules/isinf-tests: New file.
93490         * modules/math: Add substitutions for new module.
93491         * tests/test-isinf.c: New file.
93492         * doc/posix-functions/isinf.texi: Mention new module.
93493         * MODULES.html.sh: Mention new module.
93495 2008-07-14  Ben Pfaff  <blp@gnu.org>
93497         Factor out some macros for use by additional modules.
93498         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
93499         exponentf.m4.
93500         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
93501         exponentd.m4.
93502         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
93503         file exponentl.m4.
93504         * m4/exponentf.m4: New file.
93505         * m4/exponentd.m4: New file.
93506         * m4/exponentl.m4: New file.
93507         * modules/isnanf: Use new file m4/exponentf.m4.
93508         * modules/isnand: Use new file m4/exponentd.m4.
93509         * modules/isnanl: Use new file m4/exponentl.m4.
93511 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
93513         mktime.c: normalize tp->tm_isdst value to -1/0/1.
93514         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
93515         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
93516         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
93518         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
93519         readlink on platforms without PATH_MAX.
93521 2008-07-21  Eric Blake  <ebb9@byu.net>
93523         Warn, not fail, on stale version.
93524         * top/GNUmakefile (_curr-ver): Tone down previous patch.
93526         Don't allow installation with stale devel version number.
93527         * top/GNUmakefile (_is-install-target): New macro.
93528         (_curr-ver): Forbid installation with stale version number.
93530 2008-07-20  Bruno Haible  <bruno@clisp.org>
93532         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
93533         TESTS_ENVIRONMENT.
93534         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
93536 2008-07-20  Bruno Haible  <bruno@clisp.org>
93538         * lib/c-stack.h (c_stack_action): Add documentation.
93539         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
93541 2008-07-20  Bruno Haible  <bruno@clisp.org>
93543         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
93544         * modules/readlink (License): Likewise.
93546 2008-07-17  Eric Blake  <ebb9@byu.net>
93548         * modules/c-stack (Link): Fix typo.
93550         Make c-stack use libsigsegv, when available.
93551         * modules/c-stack (Depends-on): Add libsigsegv.
93552         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
93553         needed.
93554         * lib/c-stack.c (SIGSTKSZ): Define fallback.
93555         (segv_handler, overflow_handler, c_stack_action)
93556         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
93557         implementation when libsigsegv is available, but only when using
93558         the library is necessary.
93559         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
93560         comment, explaining why XSI check fails on Linux.
93561         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
93562         * tests/test-c-stack2.sh: Tweak skip message.
93563         * NEWS: Document new link-time requirements.
93565 2008-07-16  Eric Blake  <ebb9@byu.net>
93567         c-stack: Expose false positives when not using libsigsegv.
93568         * modules/c-stack-tests (Files): Expand test.
93569         * tests/test-c-stack.c (main): Add means to conditionally trigger
93570         non-overflow SIGSEGV.
93571         * tests/test-c-stack2.sh: New file.
93573 2008-07-14  Bruno Haible  <bruno@clisp.org>
93575         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
93576         Reported by Eric Blake.
93578 2008-07-14  Sam Steingold  <sds@gnu.org>
93579             Bruno Haible  <bruno@clisp.org>
93581         New module libsigsegv.
93582         * modules/libsigsegv: New file.
93583         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
93584         modifications.
93585         * MODULES.html.sh (Signal handling): New section.
93587 2008-07-14  Bruno Haible  <bruno@clisp.org>
93589         * modules/unictype/ctype-* (Description): Add the word "function".
93590         Improves the resulting doc in MODULES.html.
93592 2008-07-12  Ben Pfaff  <blp@gnu.org>
93594         Add longlong module.
93595         * modules/longlong: New file.
93597 2008-07-12  Bruno Haible  <bruno@clisp.org>
93599         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
93600         to empty.
93602 2008-07-10  Ben Pfaff  <blp@gnu.org>
93604         Add isnan module.
93605         * doc/posix-functions/isnan.texi: Mention new module.
93606         * lib/math.in.h: Define isnan macro if we have decided to replace
93607         it.
93608         * m4/isnan.m4: New file.
93609         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
93610         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
93611         also.
93612         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
93613         redundancy.
93614         * m4/math_h.m4: Initialize and substitute variables for isnan
93615         module.
93616         * modules/isnan: New file.
93617         * modules/isnan-tests: New file.
93618         * modules/math: Add substitutions for new module.
93619         * tests/test-isnan.c: New file.
93620         * MODULES.html.sh: Mention new module.
93622 2008-07-10  Ben Pfaff  <blp@gnu.org>
93624         Add isnanf module.
93625         * lib/isnanf.m4: New file.
93626         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
93627         (gl_HAVE_ISNANF_IN_LIBM): New macro.
93628         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
93629         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
93630         * modules/isnanf: New file.
93631         * modules/isnanf-tests: New file.
93632         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
93633         files.
93634         * tests/test-isnanf-nolibm.c: factored most of its contents into
93635         new file tests/test-isnanf.h.
93636         * tests/test-isnanf.h: New file.
93637         * tests/test-isnanf.c: New file.
93638         * MODULES.html.sh: Mention new module.
93639         * doc/glibc-functions/isnanf.texi: Mention new module.
93641 2008-07-10  Ben Pfaff  <blp@gnu.org>
93643         Add isnand module.
93644         * lib/isnand.h: New file.
93645         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
93646         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
93647         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
93648         functionality also.
93649         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
93650         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
93651         (gl_HAVE_ISNAND_IN_LIBM): New macro.
93652         * modules/isnand: New file.
93653         * modules/isnand-tests: New file.
93654         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
93655         files.
93656         * tests/test-isnand-nolibm.c: factored most of its contents into
93657         new file tests/test-isnand.h.
93658         * tests/test-isnand.h: New file.
93659         * tests/test-isnand.c: New file.
93660         * MODULES.html.sh: Mention new module.
93662 2008-07-10  Ben Pfaff  <blp@gnu.org>
93664         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
93665         * lib/isnand.h: Rename lib/isnand-nolibm.h.
93666         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
93667         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
93668         * modules/isnanf-nolibm: Update references to renamed files.
93669         * modules/isnand-nolibm: Likewise.
93670         * modules/isnanf-nolibm-tests: Likewise.
93671         * modules/isnand-nolibm-tests: Likewise.
93672         * lib/frexp.c: Likewise.
93673         * lib/isfinite.c: Likewise.
93674         * lib/signbitd.c: Likewise.
93675         * lib/signbitf.c: Likewise.
93676         * lib/vasnprintf.c: Likewise.
93677         * tests/test-ceilf1.c: Likewise.
93678         * tests/test-ceilf2.c: Likewise.
93679         * tests/test-floorf1.c: Likewise.
93680         * tests/test-floorf2.c: Likewise.
93681         * tests/test-frexp.c: Likewise.
93682         * tests/test-round1.c: Likewise.
93683         * tests/test-round2.c: Likewise.
93684         * tests/test-roundf1.c: Likewise.
93685         * tests/test-strtod.c: Likewise.
93686         * tests/test-trunc1.c: Likewise.
93687         * tests/test-trunc2.c: Likewise.
93688         * tests/test-truncf1.c: Likewise.
93689         * tests/test-truncf2.c: Likewise.
93690         * NEWS: Mention the renamed header files.
93692 2008-07-11  Jim Meyering  <meyering@redhat.com>
93694         vc-list-files: make the last-resort awk code more portable
93695         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
93696         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
93697         does not support it.
93699 2008-07-10  Eric Blake  <ebb9@byu.net>
93701         Work with tar's bootstrap.
93702         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
93703         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
93704         an m4 comment.
93706 2008-07-09  Jim Meyering  <meyering@redhat.com>
93708         posix-shell.m4: fix typo that made this test malfunction
93709         * m4/posix-shell.m4: Remove capitalization in variable name.
93711 2008-07-08  Bruno Haible  <bruno@clisp.org>
93713         * m4/onceonly.m4: Update comments.
93714         Reported by Ben Pfaff <blp@cs.stanford.edu>.
93716 2008-07-04  Jim Meyering  <meyering@redhat.com>
93718         * users.txt: Add vc-dwim.
93719         (bison, coreutils): Use the gitweb URL.
93721 2008-07-03  Jim Meyering  <meyering@redhat.com>
93723         * users.txt: Add libffcall.  From Sam Steingold.
93725 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
93727         getdate.y: do not ignore TZ with relative day, month or year offset
93728         * lib/getdate.y (get_date): Move the tz-handling block to follow the
93729         relative-date-handling, since otherwise, the latter would clobber the
93730         sole output (an updated Start value) of the tz-handling block.
93731         * tests/test-getdate.c: Tests for the fix
93733 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93735         Recognize 'foo_LIBRARIES += libgnu.a'.
93736         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
93737         makefile snippet has already specified an installation location,
93738         also using '+='.
93740 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
93742         getdate.y: factor out common actions
93743         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
93744         Use them in place of open-coded actions.
93746 2008-07-01  Simon Josefsson  <simon@josefsson.org>
93748         Add self-test for getdate module.
93749         * modules/getdate-tests: New file.
93750         * tests/test-getdate.c: New file.
93752 2008-06-29  Bruno Haible  <bruno@clisp.org>
93754         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
93755         .gitignore.
93756         Reported by Sylvain Beucler <beuc@beuc.net>.
93758 2008-06-29  Bruno Haible  <bruno@clisp.org>
93760         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
93761         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
93763 2008-06-29  Bruno Haible  <bruno@clisp.org>
93765         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
93766         EXTRA_DIST.
93767         Reported by Sylvain Beucler <beuc@beuc.net>.
93769 2008-06-26  Jim Meyering  <meyering@redhat.com>
93771         make several modules depend on the "open" module
93772         This provides slightly increased consistency when opening-for-write
93773         the name of a non-directory spelled with a trailing slash.
93774         * modules/chdir-safer: Likewise.
93775         * modules/chown: Likewise.
93776         * modules/clean-temp: Likewise.
93777         * modules/copy-file: Likewise.
93778         * modules/fchdir: Likewise.
93779         * modules/fcntl-safer: Likewise.
93780         * modules/pipe: Likewise.
93781         * modules/utime: Likewise.
93782         Prompted by Eric Blake and Bruno Haible.
93784 2008-06-24  Andreas Schwab  <schwab@suse.de>
93786         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
93787         literals can be used as initializers for global variables.
93789 2008-06-23  Eric Blake  <ebb9@byu.net>
93791         Make gnulib-cache.m4 easier to diff.
93792         * gnulib-tool (func_import): Allow newlines when reading cached
93793         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
93795 2008-06-23  Bruno Haible  <bruno@clisp.org>
93797         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
93798         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
93799         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
93800         m4/signalblocking.m4.
93801         (gl_PREREQ_SIGACTION): Don't invoke it.
93802         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
93803         gl_PREREQ_SIG_HANDLER_H.
93804         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
93805         Don't check for sigaction here.
93807 2008-06-23  Bruno Haible  <bruno@clisp.org>
93809         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
93810         (install_handlers): Don't set the SA_RESETHAND flag.
93812 2008-06-23  Bruno Haible  <bruno@clisp.org>
93814         * m4/sigaction.m4: Comment fixes.
93815         * lib/signal.in.h: Likewise.
93817 2008-06-23  Eric Blake  <ebb9@byu.net>
93819         Fix typo.
93820         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
93822         Avoid SA_ namespace.
93823         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
93824         Reported by Ralf Wildenhues.
93826         Avoid test failure due to SA_RESTORER.
93827         * tests/test-sigaction.c (SA_MASK): New macro.
93828         (main): Avoid failing due to extension flags being set.
93829         Reported by Jim Meyering.
93831         Revert use of sig-handler.h in sigprocmask.c.
93832         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
93833         it requires the existence of struct sigaction.
93834         * lib/sigprocmask.c (handler_t): Restore typedef.
93835         (rpl_signal, old_handlers): Use local type.
93837 2008-06-22  Bruno Haible  <bruno@clisp.org>
93839         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
93840         conditionally.
93841         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
93843 2008-06-22  Bruno Haible  <bruno@clisp.org>
93845         * doc/posix-functions/siginterrupt.texi: Move note.
93847         * lib/signal.in.h (SA_RESTART): New macro.
93848         * lib/sigaction.c: Update comment.
93850         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
93852         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
93853         (gl_PREREQ_SIGPROCMASK): Invoke it.
93854         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
93856         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
93858         * lib/sigprocmask.c: Update a comment.
93860 2008-06-21  Eric Blake  <ebb9@byu.net>
93862         Use sigaction module rather than signal().
93863         * modules/c-stack (Depends-on): Add sigaction.
93864         * modules/fatal-signal (Depends-on): Likewise.
93865         * modules/nanosleep (Depends-on): Likewise.
93866         * modules/sigprocmask (Files): Add sig-handler.h.
93867         * modules/sigaction (Files): Likewise.
93868         * lib/sig-handler.h (get_handler): New file, suggested by Paul
93869         Eggert.
93870         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
93871         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
93872         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
93873         (init_fatal_signals): Likewise.
93874         * lib/nanosleep.c (rpl_nanosleep): Likewise.
93875         (siginterrupt): Delete fallback.
93876         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
93877         instead.
93878         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
93879         siginterrupt.
93881         New module sigaction, for mingw.
93882         * modules/sigaction: New module...
93883         * modules/sigaction-tests: ...and its test.
93884         * m4/sigaction.m4: New file.
93885         * lib/sigaction.c: Likewise.
93886         * tests/test-sigaction.c: Likewise.
93887         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
93888         * modules/signal (Makefile.am): Likewise.
93889         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
93890         needed.
93891         * doc/posix-headers/signal.texi (signal.h): Mention provided
93892         types.
93893         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
93894         that sigaction is preferable.
93895         * doc/posix-functions/sigaction.texi (sigaction): Mention new
93896         module.
93897         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
93898         sigaction.
93900         Improve robustness of sigprocmask by overriding signal.
93901         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
93902         is in use.
93903         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
93904         (SIGKILL, SIGSTOP): Provide fallbacks.
93905         (rpl_signal): Implement.
93906         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
93907         signal can be called inside handlers.
93909         Fix nanosleep module on mingw.
93910         * modules/nanosleep (Depends-on): Add sys_select.
93911         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
93913         Fix licensing of sigprocmask.
93914         * modules/raise (License): Relicense as LGPL.
93916 2008-06-21  Bruno Haible  <bruno@clisp.org>
93918         * lib/propername.c (proper_name_utf8): Don't use the transliterated
93919         result if it contains question marks.
93920         Reported by Michael Geng <linux@michaelgeng.de>.
93922 2008-06-19  Bruno Haible  <bruno@clisp.org>
93924         Fix CVS-ism.
93925         * doc/gnulib.texi: Include updated-stamp.texi.
93926         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
93927         (updated-stamp.texi): New rule.
93928         (gnulib.info): Depend on it.
93929         * doc/.gitignore: Add updated-stamp.texi.
93930         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
93932 2008-06-19  Bruno Haible  <bruno@clisp.org>
93934         * doc/Makefile (gnulib.info): Update and simplify dependencies.
93935         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
93937 2008-06-19  Eric Blake  <ebb9@byu.net>
93939         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
93940         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
93941         Reported by Stepan Kasal.
93943 2008-06-18  Bruno Haible  <bruno@clisp.org>
93945         * lib/fatal-signal.c (init_fatal_signals): Add comment.
93946         Reported by Eric Blake.
93948 2008-06-18  Eric Blake  <ebb9@byu.net>
93950         Work around cygwin 1.5.25 strsignal bug.
93951         * tests/test-strsignal.c: Allow for const char *.
93952         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
93954 2008-06-18  Simon Josefsson  <simon@josefsson.org>
93956         * users.txt: Update URL to article and add author/date
93957         information.
93959 2008-06-17  Bruno Haible  <bruno@clisp.org>
93961         New macro gl_DISABLE_THREADS.
93962         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
93963         if the user did not pass --enable-threads or --disable-threads option.
93964         (gl_DISABLE_THREADS): New macro.
93965         Reported by Eric Blake <ebb9@byu.net>.
93967 2008-06-17  Bruno Haible  <bruno@clisp.org>
93969         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
93970         when the macro ignores it.
93971         Based on a patch by Eric Blake <ebb9@byu.net>.
93973 2008-06-17  Bruno Haible  <bruno@clisp.org>
93975         * modules/tls (License): Change to LGPLv2+.
93976         Reported by Eric Blake.
93978 2008-06-17  Eric Blake  <ebb9@byu.net>
93980         Simplify c-stack prerequisites.
93981         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
93982         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
93983         no longer requires <ucontext.h> to exist.  Optimize setrlimit
93984         check.
93985         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
93986         <sys/resource.h>.
93988         Move c-stack test into testsuite.
93989         * modules/c-stack-tests: New file.
93990         * lib/c-stack.c [DEBUG]: Move test program...
93991         * tests/test-c-stack.c: ...into this new file.  Skip rather than
93992         fail test if sigaltstack is lacking.
93993         * tests/test-c-stack.sh: New driver file.
93995 2008-06-16  Eric Blake  <ebb9@byu.net>
93997         Use raise module consistently.
93998         * modules/fatal-signal (Depends-on): Add raise.
93999         * modules/sigprocmask (Depends-on): Likewise.
94000         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
94001         * lib/sigprocmask.c (sigprocmask): Likewise.
94002         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
94003         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
94005         Fix compliance bug in sigpending.
94006         * lib/sigprocmask.c (sigpending): Return pending array via
94007         parameter, not return value.
94009 2008-06-14  Eric Blake  <ebb9@byu.net>
94011         Improve obstack-printf test code.
94012         * tests/test-obstack-printf.c (test_function): Fix comment, and
94013         simplify usage of obstack_* in macros.  Add a test for coverage.
94014         Reported by Bruno Haible.
94016 2008-06-14  Bruno Haible  <bruno@clisp.org>
94018         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
94019         array size as a constant, not as a const variable.
94020         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
94021         AC_USE_SYSTEM_EXTENSIONS.
94022         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
94023         Test whether the obstack_printf function actually exists.
94024         * modules/obstack-printf (Depends-on): Add extensions.
94025         (Include): Remove obstack.h.
94026         * modules/obstack-printf-posix (Depends-on): Add extensions.
94027         (Include): Remove obstack.h.
94029 2008-06-13  Eric Blake  <ebb9@byu.net>
94031         Add obstack-printf and obstack-printf-posix modules.
94032         * modules/obstack-printf: New file.
94033         * modules/obstack-printf-posix: Likewise.
94034         * MODULES.html.sh (Misc): Mention them.
94035         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
94036         Likewise.
94037         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
94038         Likewise.
94039         * modules/stdio (Makefile.am): Accomodate new modules.
94040         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
94041         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
94042         Declare.
94043         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
94044         functions.
94045         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
94046         (gl_REPLACE_OBSTACK_PRINTF): New macros
94047         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
94048         * tests/test-obstack-printf.c: New file.
94049         * modules/obstack-printf-tests: Likewise.
94050         * modules/obstack-printf-posix-tests: Likewise.
94052 2008-06-11  Bruno Haible  <bruno@clisp.org>
94054         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
94055         * lib/open.c: Include errno.h.
94056         (open): Fail when attempting to write to a file that has a trailing
94057         slash.
94058         * tests/test-open.c (main): Test against trailing slash bug.
94059         * doc/posix-functions/open.texi: Mention the trailing slash bug.
94061 2008-06-10  Bruno Haible  <bruno@clisp.org>
94063         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
94064         for $? to work inside the trap command, with various /bin/sh-s.
94065         * tests/test-vc-list-files-cvs.sh: Likewise.
94067 2008-06-10  Bruno Haible  <bruno@clisp.org>
94069         * lib/acl-internal.h: Don't include gettext.h here.
94070         * lib/set-mode-acl.c: Include gettext.h here.
94071         * lib/copy-acl.c: Likewise.
94073 2008-06-10  Bruno Haible  <bruno@clisp.org>
94075         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
94076         * lib/wait-process.c (wait_subprocess): Likewise.
94077         * lib/execute.h (execute): Add termsigp argument.
94078         * lib/execute.c (execute): Likewise.
94079         * lib/csharpcomp.c (compile_csharp_using_pnet,
94080         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
94081         * lib/csharpexec.c (execute_csharp_using_pnet,
94082         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
94083         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
94084         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
94085         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
94086         is_jikes_present): Update.
94087         * lib/javaexec.c (execute_java_class): Update.
94088         * lib/javaversion.c (execute_and_read_line): Update.
94089         * NEWS: Document the changes.
94090         Reported by Eric Blake.
94092 2008-06-10  Eric Blake  <ebb9@byu.net>
94094         Add missing include.
94095         * tests/test-strstr.c (includes): Add <signal.h>.
94096         * tests/test-strcasestr.c (includes): Likewise.
94097         * tests/test-memmem.c (includes): Likewise.
94099 2008-06-10  Bruno Haible  <bruno@clisp.org>
94101         * lib/wait-process.c (wait_subprocess): Add an assertion.
94103 2008-06-10  Bruno Haible  <bruno@clisp.org>
94105         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
94107 2008-06-10  Bruno Haible  <bruno@clisp.org>
94109         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
94110         using alarm().
94111         * tests/test-strcasestr.c (main): Likewise.
94112         * tests/test-strstr.c (main): Likewise.
94114 2008-06-09  Bruno Haible  <bruno@clisp.org>
94116         Work around the Solaris 10 ACE ACLs ABI change.
94117         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
94118         declare if ACL_NO_TRIVIAL is present.
94119         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
94120         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
94121         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
94122         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
94123         define if ACL_NO_TRIVIAL is present.
94124         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
94125         and use the current ABI.
94126         (file_has_acl): Use same #if condition as elsewhere.
94127         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
94128         in use, and use the current ABI.
94129         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
94130         Reported by Jim Meyering.
94132 2008-06-09  Eric Blake  <ebb9@byu.net>
94134         Work around environments that (stupidly) ignore SIGALRM.
94135         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
94136         before using alarm().
94137         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
94138         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
94139         Reported by Ian Beckwith <ianb@erislabs.net>.
94141         Produce autobuild blurb earlier in log.
94142         * modules/autobuild (configure.ac-early): Move AB_INIT here.
94144 2008-06-09  Jim Meyering  <meyering@redhat.com>
94145         and Ondřej Vašík  <ovasik@redhat.com>
94147         utimens.c: correct kernel bug work-around
94148         Ondřej Vašík found that the invalid return value of 280 indicates
94149         failure, not success, and the kernel bug we're trying to work
94150         around affects not just the utimensat call, but also the fallback
94151         futimens call.
94152         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
94153         not success.
94154         [HAVE_FUTIMENS]: Use the same work-around, here.
94156 2008-06-09  Jim Meyering  <meyering@redhat.com>
94158         add more guards around definition of ACE_-related code
94159         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
94160         ALLOW and ACE_OWNER are also defined.
94162 2008-06-08  Bruno Haible  <bruno@clisp.org>
94164         * lib/acl-internal.h: Add me as co-author.
94165         * lib/file-has-acl.c: Likewise.
94166         * lib/set-mode-acl.c: Likewise.
94167         * lib/copy-acl.c: Likewise.
94169 2008-06-08  Bruno Haible  <bruno@clisp.org>
94171         Add support for AIX ACLs.
94172         * lib/acl-internal.h (acl_nontrivial): New declaration.
94173         * lib/file-has-acl.c (acl_nontrivial): New function.
94174         (file_has_acl): Add implementation using AIX 4 ACL API.
94175         * lib/set-mode-acl.c (qset_acl): Likewise.
94176         * lib/copy-acl.c (qcopy_acl): Likewise.
94178 2008-06-08  Bruno Haible  <bruno@clisp.org>
94180         Add support for HP-UX ACLs.
94181         * lib/acl-internal.h (acl_nontrivial): New declaration.
94182         * lib/file-has-acl.c (acl_nontrivial): New function.
94183         (file_has_acl): Add implementation using HP-UX 11 ACL API.
94184         * lib/set-mode-acl.c (qset_acl): Likewise.
94185         * lib/copy-acl.c (qcopy_acl): Likewise.
94187 2008-06-08  Bruno Haible  <bruno@clisp.org>
94189         Add support for Cygwin ACLs.
94190         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
94191         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
94192         the chmod_or_fchmod call.
94193         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
94195 2008-06-08  Bruno Haible  <bruno@clisp.org>
94197         Fix bug with setuid modes in Solaris 10+ code.
94198         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
94199         succeeded, when the mode contains some special bits.
94201 2008-06-08  Bruno Haible  <bruno@clisp.org>
94203         Add support for Solaris 7..10 ACLs.
94204         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
94205         declarations.
94206         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
94207         functions.
94208         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
94209         * lib/set-mode-acl.c (qset_acl): Likewise.
94210         * lib/copy-acl.c (qcopy_acl): Likewise.
94212 2008-06-08  Bruno Haible  <bruno@clisp.org>
94214         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
94215         declaration.
94216         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
94217         (acl_access_nontrivial): Remove MacOS X case.
94218         (file_has_acl): Use acl_extended_nontrivial.
94219         * lib/copy-acl.c (qcopy_acl): Likewise.
94221 2008-06-08  Bruno Haible  <bruno@clisp.org>
94223         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
94225 2008-06-08  Jim Meyering  <meyering@redhat.com>
94227         * modules/acl (Maintainer): Add Bruno Haible.
94229 2008-06-07  Bruno Haible  <bruno@clisp.org>
94231         Improve support for Tru64 ACLs.
94232         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
94233         ACL on OSF/1.
94235 2008-06-07  Bruno Haible  <bruno@clisp.org>
94237         Add support for MacOS X ACLs.
94238         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
94239         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
94240         * lib/set-mode-acl.c (qset_acl): Likewise.
94241         * lib/copy-acl.c (qcopy_acl): Likewise.
94243 2008-06-07  Bruno Haible  <bruno@clisp.org>
94245         Fix memory leak introduced on 2008-05-22.
94246         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
94247         use.
94249 2008-06-07  Bruno Haible  <bruno@clisp.org>
94251         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
94252         to construct an empty ACL.
94254 2008-06-07  Bruno Haible  <bruno@clisp.org>
94256         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
94257         precisely.
94258         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
94260 2008-06-07  Bruno Haible  <bruno@clisp.org>
94262         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
94263         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
94265 2008-06-07  Bruno Haible  <bruno@clisp.org>
94267         * doc/posix-functions/_setjmp.texi: Explain the use of this function
94268         regardless of POSIX.
94269         * doc/posix-functions/_longjmp.texi: Likewise.
94270         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
94271         SystemV platform in this case.
94273 2008-06-06  Eric Blake  <ebb9@byu.net>
94275         Document abort() bugs.
94276         * doc/posix-functions/abort.texi (abort): Mention anomalies.
94278         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
94279         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
94280         sigsetjmp.
94281         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
94282         siglongjmp, but only as a macro.
94283         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
94284         is obsolete.
94285         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
94287         Tweak documentation to cover cygwin argz bugs.
94288         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
94289         argz bug fix; no code change needed since no cygwin releases
94290         occurred between the last fix and the bug being tested.
94291         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
94292         module and recently fixed cygwin bugs.
94293         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
94294         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
94295         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
94296         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
94297         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
94298         Likewise.
94299         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
94300         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
94301         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
94302         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
94303         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
94304         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
94305         Likewise.
94307         Avoid gcc warning on cygwin.
94308         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
94309         !ACL_NO_TRIVIAL]: Avoid unused variable.
94311 2008-06-05  Eric Blake  <ebb9@byu.net>
94313         Be tolerant of UNKNOWN version in gnulib-tool test dir.
94314         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
94315         git-version-gen fails to come up with a version.
94316         Reported by Simon Josefsson.
94318 2008-06-05  Jim Meyering  <meyering@redhat.com>
94319             Paul Eggert  <eggert@cs.ucla.edu>
94321         utimens.c: work around a probable Linux kernel bug
94322         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
94323         appears to be a kernel bug that causes utimensat to return 280
94324         instead of 0, indicating success.
94326 2008-06-04  Bruno Haible  <bruno@clisp.org>
94328         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
94329         2008-06-01 commit.
94331 2008-06-04  Bruno Haible  <bruno@clisp.org>
94333         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
94334         * lib/file-has-acl.c (acl_access_nontrivial): New function.
94335         (file_has_acl): Use it. Save errno afterwards.
94336         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
94338 2008-06-03  Bruno Haible  <bruno@clisp.org>
94340         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
94341         draft code. Simplify #ifs.
94342         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
94343         Put Solaris code after POSIX-draft code. Fix comments regarding
94344         Solaris 10, HP-UX. Mention Cygwin.
94345         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
94347 2008-06-03  Eric Blake  <ebb9@byu.net>
94349         Provide fallback for older kernels.
94350         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
94351         Provide runtime fallback if kernel lacks support.
94352         Reported by Mike Frysinger.
94354 2008-06-02  Bruno Haible  <bruno@clisp.org>
94356         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
94357         it exists.
94359 2008-06-02  Bruno Haible  <bruno@clisp.org>
94361         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
94362         * lib/copy-acl.c (qcopy_acl): Update comment.
94364 2008-06-02  Bruno Haible  <bruno@clisp.org>
94366         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
94367         like ACL APIs.
94369 2008-06-02  Bruno Haible  <bruno@clisp.org>
94371         * tests/test-file-has-acl.sh: Use different code for Cygwin.
94372         * tests/test-set-mode-acl.sh: Likewise.
94373         * tests/test-copy-acl.sh: Likewise.
94374         * tests/test-copy-file.sh: Likewise.
94376 2008-06-02  Bruno Haible  <bruno@clisp.org>
94378         * tests/test-file-has-acl.sh: Remove unused code.
94380 2008-06-01  Bruno Haible  <bruno@clisp.org>
94382         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
94383         (copy_acl): Just a wrapper around qcopy_acl that emits the error
94384         messages.
94385         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
94387 2008-06-01  Bruno Haible  <bruno@clisp.org>
94389         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
94390         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
94391         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
94392         APIs.
94393         * modules/acl-tests (configure.ac): Remove tests now contained in
94394         m4/acl.m4.
94396 2008-06-02  Jim Meyering  <meyering@redhat.com>
94398         announce-gen: use a better key-server host name
94399         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
94400         it may be more consistently reliable.  Suggested by Werner Koch
94401         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
94403 2008-06-01  Bruno Haible  <bruno@clisp.org>
94405         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
94406         Reported by Voroskoi Andras <voroskoi@gmail.com>.
94408 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
94410         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
94412 2008-06-01  Bruno Haible  <bruno@clisp.org>
94414         New ACL tests.
94415         * tests/test-file-has-acl.sh: New file.
94416         * tests/test-file-has-acl.c: New file.
94417         * tests/test-set-mode-acl.sh: New file.
94418         * tests/test-set-mode-acl.c: New file.
94419         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
94420         * tests/test-copy-acl.c: New file.
94421         * modules/acl-tests: New file, based on modules/copy-file-tests.
94422         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
94423         (Depends-on): Add acl-tests.
94424         (configure.ac): Remove checks.
94425         (Makefile.am): Don't create test-sameacls program here any more.
94427 2008-06-01  Bruno Haible  <bruno@clisp.org>
94429         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
94430         * tests/test-sameacls.c: Include progname.h.
94431         (main): Invoke set_program_name. Portability fixes for MacOS X,
94432         Solaris, HP-UX.
94434 2008-06-01  Bruno Haible  <bruno@clisp.org>
94436         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
94437         function.
94438         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
94440 2008-06-01  Bruno Haible  <bruno@clisp.org>
94442         * modules/rpmatch (Depends-on): Add strdup.
94444 2008-06-01  Bruno Haible  <bruno@clisp.org>
94446         * lib/pipe.c: Include unistd-safer.h.
94447         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
94448         * modules/pipe (Depends-on): Add unistd-safer.
94450 2008-05-30  Simon Josefsson  <simon@josefsson.org>
94452         * modules/autobuild (configure.ac): Call AB_INIT.
94454 2008-05-30  Simon Josefsson  <simon@josefsson.org>
94456         * tests/test-getaddrinfo.c: Don't print debug messages by default.
94457         Suggested by Bruno Haible <bruno@clisp.org>.
94459 2008-05-30  Simon Josefsson  <simon@josefsson.org>
94461         * tests/test-base64.c: Cast size_t to unsigned long when invoking
94462         printf.  Use %lu instead of %d.  Reported by Bruno Haible
94463         <bruno@clisp.org>.
94465 2008-05-29  Eric Blake  <ebb9@byu.net>
94467         Prefer new POSIX 200x interfaces over futimesat.
94468         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
94469         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
94470         when available.
94471         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
94473 2008-05-28  Bruno Haible  <bruno@clisp.org>
94475         * modules/stpcpy (License): Change to LGPLv2+.
94476         Requested by David Lutterkort <dlutter@redhat.com>.
94478 2008-05-27  Bruno Haible  <bruno@clisp.org>
94480         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
94481         current mingw.
94482         Reported by Jose E. Marchesi <jemarch@gnu.org>.
94484 2008-05-27  Bruno Haible  <bruno@clisp.org>
94486         * modules/iconv_open (Link): New section, from module 'iconv'.
94487         * modules/striconv (Link): Likewise.
94488         * modules/striconveh (Link): Likewise.
94489         * modules/xstriconv (Link): Likewise.
94490         * modules/unicodeio (Link): Likewise.
94491         * modules/propername (Link): Likewise.
94492         Reported by Jim Meyering.
94494 2008-05-26  Jim Meyering  <meyering@redhat.com>
94496         sha256: do not artificially restrict buffer length to be < 2^32
94497         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
94498         uint32_t to size_t.
94499         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
94500         to match.
94502         avoid unaligned access errors, e.g., on sparc
94503         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
94504         direct access through a possibly-unaligned uint64* pointer.
94505         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
94506         direct access through a possibly-unaligned uint32* pointer.
94507         Prompted by this patch from Tom "spot" Callaway:
94508         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
94510         sha512.c: fix typo in comment
94511         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
94513 2008-05-25  Bruno Haible  <bruno@clisp.org>
94515         * lib/set-mode-acl.c: Renamed from lib/acl.c.
94516         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
94517         (Makefile.am): Update lib_SOURCES.
94519 2008-05-25  Bruno Haible  <bruno@clisp.org>
94521         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
94523 2008-05-25  Jim Meyering  <meyering@redhat.com>
94525         useless-if-before-free: freed expr may have white-space differences
94526         * build-aux/useless-if-before-free: Recognize cases in which the
94527         freed expression differs from the tested one in embedded white
94528         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
94529         $1 was used, so we can't make any regexp shy.  Improved tests now
94530         detect this.
94532         useless-if-before-free: accept white space in the expression.
94533         * build-aux/useless-if-before-free: For now, any white space
94534         in the expression must be identical in the free argument.
94536         useless-if-before-free: efficiency tweak
94537         * build-aux/useless-if-before-free: Make the expression-matching
94538         regexp "shy".
94539         Make the *outer* regexp shy, not the expr-matching one.
94541         update code-in-comment to accept cast of free arg
94542         * build-aux/useless-if-before-free: Update regexp.
94544 2008-05-25  Bruno Haible  <bruno@clisp.org>
94546         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
94547         * modules/copy-file-tests (Files, Makefile.am): Update.
94548         * tests/test-copy-file.c (func_test_copy): Update.
94550 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
94552         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
94554 2008-05-23  Bruno Haible  <bruno@clisp.org>
94556         Improve support for ACLs on OSF/1.
94557         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
94558         Remove fallback for unknown flavors of ACLs.
94560 2008-05-22  Bruno Haible  <bruno@clisp.org>
94562         Add support for ACLs on OSF/1.
94563         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
94564         replacements.
94565         (acl_free_text): New macro fallback.
94566         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
94567         acl_free.
94568         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
94569         acl_free_text function. Require AC_C_INLINE.
94571 2008-05-22  Bruno Haible  <bruno@clisp.org>
94573         Make copy_acl work on MacOS X 10.5.
94574         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
94575         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
94576         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
94577         If MODE_INSIDE_ACL, don't assume that every system has the same text
94578         representation for ACLs as FreeBSD.
94579         * lib/copy-acl.c (copy_acl): Add support for platforms with
94580         !MODE_INSIDE_ACL.
94581         * lib/file-has-acl.c (file_has_acl): Likewise.
94582         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
94583         FreeBSD, MacOS X, or IRIX, respectively.
94585 2008-05-22  Bruno Haible  <bruno@clisp.org>
94587         * lib/acl.h: Don't include <sys/acl.h>.
94588         (GETACLCNT): Move fallback to lib/acl-internal.h.
94589         * lib/acl-internal.h: Include <sys/acl.h> here.
94590         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
94592 2008-05-22  Bruno Haible  <bruno@clisp.org>
94594         Split off copy_acl function to separate file.
94595         * lib/copy-acl.c: New file, extracted from lib/acl.c.
94596         * lib/acl.c (copy_acl): Moved function to separate file.
94597         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
94598         * modules/acl (Files): Add lib/copy-acl.c.
94599         (Makefiles.am): Augment lib_SOURCES.
94601 2008-05-22  Bruno Haible  <bruno@clisp.org>
94603         * modules/copy-file-tests: New file.
94604         * tests/test-copy-file.sh: New file.
94605         * tests/test-copy-file.c: New file.
94606         * tests/test-copy-file-sameacls.c: New file.
94608 2008-05-22  Eric Blake  <ebb9@byu.net>
94610         Avoid gcc warning.
94611         * tests/test-memcmp.c (main): Pass NULL indirectly.
94613 2008-05-21  Bruno Haible  <bruno@clisp.org>
94615         Add reference doc about ACLs.
94616         * doc/acl-resources.txt: New file.
94617         * doc/acl-cygwin.txt: New file.
94619 2008-05-21  Bruno Haible  <bruno@clisp.org>
94621         Avoid one more warning from gcc.
94622         * lib/vasnprintf.c (IF_LINT): Update comments.
94623         (VASNPRINTF): Use it also for the 'prefix' array initializer.
94625 2008-05-21  Jim Meyering  <meyering@redhat.com>
94627         avoid a warning from gcc
94628         * lib/vasnprintf.c (IF_LINT): Define.
94629         (scale10_round_decimal_long_double):
94630         Use it to avoid a "may be used uninitialized" warning.
94631         (scale10_round_decimal_double): Likewise.
94633 2008-05-21  Simon Josefsson  <simon@josefsson.org>
94635         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
94636         declared.
94638 2008-05-20  Bruno Haible  <bruno@clisp.org>
94640         * tests/test-memcmp.c (main): Test also the sign of the result. Test
94641         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
94643 2008-05-20  Simon Josefsson  <simon@josefsson.org>
94645         * modules/memcmp-tests: New file.
94646         * tests/test-memcmp.c: New file.
94648 2008-05-19  Bruno Haible  <bruno@clisp.org>
94650         * modules/propername (Notice, configure.ac): Put quoted "..." into
94651         --keyword option.
94652         * lib/propername.h: Update comments accordingly.
94653         Reported by Eric Blake.
94655 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
94657         * modules/getpass-gnu (Depends-on): Add fseeko.
94659 2008-05-19  Simon Josefsson  <simon@josefsson.org>
94661         * modules/base64-tests: New file.
94663 2008-05-19  Bo Borgerson  <gigabo@gmail.com>
94665         * lib/base64.c (base64_decode_ctx): If a decode context structure
94666         was passed in use it to ignore newlines.  If a context structure
94667         was _not_ passed in, continue to treat newlines as garbage (this
94668         is the historical behavior).  Formerly base64_decode.
94669         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
94670         takes a decode context structure.
94671         * lib/base64.h (base64_decode): Macro for four-argument calls.
94672         (base64_decode_alloc): Likewise.
94673         * lib/base64.c (base64_decode_ctx): If a decode context structure
94674         was passed in use it to ignore newlines.  If a context structure
94675         was _not_ passed in, continue to treat newlines as garbage (this
94676         is the historical behavior).  Formerly base64_decode.
94677         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
94678         takes a decode context structure.
94679         * lib/base64.h (base64_decode): Macro for four-argument calls.
94680         (base64_decode_alloc): Likewise.
94682 2008-05-19  Jim Meyering  <meyering@redhat.com>
94684         avoid a warning from gcc
94685         * lib/trim.c (IF_LINT): Define.
94686         (trim2): Use it to avoid a "may be used uninitialized" warning.
94688         Fix doc typo.
94689         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
94691 2008-05-19  Bruno Haible  <bruno@clisp.org>
94693         * doc/glibc-functions/getpass.texi: Document limits of other
94694         implementations.
94696 2008-05-19  Simon Josefsson  <simon@josefsson.org>
94697             Bruno Haible <bruno@clisp.org>
94699         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
94701 2008-05-18  Bruno Haible  <bruno@clisp.org>
94703         * modules/propername: New file, from GNU gettext.
94704         * lib/propername.h: New file, from GNU gettext.
94705         * lib/propername.c: New file, from GNU gettext.
94706         * MODULES.html.sh (Internationalization functions): Add propername.
94708 2008-05-16  Jim Meyering  <meyering@redhat.com>
94709             Bruno Haible  <bruno@clisp.org>
94711         Avoid some warnings from "gcc -Wshadow".
94712         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
94714 2008-05-15  Eric Blake  <ebb9@byu.net>
94716         Extend previous patch to cygwin 1.7.0.
94717         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
94718         fast implementation in cygwin >= 1.7.0.
94719         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
94720         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
94722 2008-05-15  Bruno Haible  <bruno@clisp.org>
94724         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
94725         implementation in glibc >= 2.9.
94726         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
94727         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
94729 2008-05-15  Bruno Haible  <bruno@clisp.org>
94731         * MODULES.html.sh (Internationalization functions): Remove linebreak.
94732         (Unicode string functions): Add unilbrk/*.
94733         Reported by Karl Berry.
94735 2008-05-15  Eric Blake  <ebb9@byu.net>
94737         Fix violation of <stdbool.h> replacement in regex.
94738         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
94739         * lib/regexec.c (re_search_internal): Likewise.
94740         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
94742 2008-05-15  Jim Meyering  <meyering@redhat.com>
94744         avoid distracting test output when git or cvs is not found
94745         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
94746         * tests/test-vc-list-files-git.sh: Likewise.
94748 2008-05-15  Eric Blake  <ebb9@byu.net>
94750         Glibc finally accepted the memmem speedup code, bugzilla #5514.
94751         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
94752         glibc version.
94753         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
94754         * doc/posix-functions/strstr.texi (strstr): Likewise.
94755         * lib/str-two-way.h (MAX): Sychronize with glibc.
94757 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
94759         * lib/regcomp.c (optimize_utf8): Add a note on why we test
94760         opr.ctx_type.
94761         (calc_first): Initialize constraint field.
94762         (duplicate_node_closure): Use it instead of special casing ANCHORS.
94763         Fix grammar.
94764         (duplicate_node): Merge constraint field for all node types.
94765         (calc_eclosure_iter): Look at constraint field for all node types.
94766         * lib/regex_internal.c (create_cd_newstate): Don't look at
94767         opr.ctx_type.
94769 2008-05-14  Bruno Haible  <bruno@clisp.org>
94771         Help GCC to do better code generation.
94772         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
94773         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
94774         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
94775         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
94776         Declare with attribute 'malloc' if supported.
94778 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
94780         use "echo STR|wc -c" rather than unportable "expr length STR"
94781         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
94782         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
94784 2008-05-14  Jim Meyering  <meyering@redhat.com>
94786         use dd ibs=$n count=1 ... rather than less-portable head -c$n
94787         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
94788         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
94789         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
94790         via Collin Lasse.
94792 2008-05-14  Eric Blake  <ebb9@byu.net>
94794         Avoid quadratic growth in gl_LIBSOURCES.
94795         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
94796         Suggested by Bruno Haible.
94798         Test xmemdup0.
94799         * modules/xmemdup0-tests: New file.
94800         * tests/test-xmemdup0.c: Likewise.
94802 2008-05-13  Eric Blake  <ebb9@byu.net>
94804         Split xmemdup0 into its own module.
94805         * modules/xmemdup0: New file.
94806         * lib/xmemdup0.h: Likewise.
94807         * lib/xmemdup0.c: Likewise.
94808         * MODULES.html.sh (Memory management functions): Add xmemdup0.
94809         * lib/xalloc.h (xmemdup0): Remove.
94810         * lib/xmalloc.c (xmemdup0): Likewise.
94812 2008-05-13  Eric Blake  <ebb9@byu.net>
94813             Bruno Haible  <bruno@clisp.org>
94815         Reduce number of forks required during autoconf.
94816         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
94817         and gl_LIBSOURCES_DIR.
94818         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
94819         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
94820         m4_syscmd per file.
94821         <m4_foreach_w>: Move...
94822         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
94824 2008-05-13  Eric Blake  <ebb9@byu.net>
94826         * gnulib-tool: Fix various comment typos.
94828 2008-05-12  Bruno Haible  <bruno@clisp.org>
94830         Tailor the linebreaking algorithm.
94831         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
94833 2008-05-12  Bruno Haible  <bruno@clisp.org>
94835         Update to Unicode 5.0.0.
94836         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
94837         LBP_JV, LBP_JT. Redistribute values.
94838         (unilbrk_table): Change size.
94839         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
94840         Unicode TR#14 rev. 22.
94841         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
94842         LBP_JV, LBP_JT. Redistribute values.
94843         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
94844         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
94845         Update.
94846         * lib/unilbrk/lbrkprop1.h: Regenerated.
94847         * lib/unilbrk/lbrkprop2.h: Regenerated.
94848         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
94849         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
94850         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
94851         Likewise.
94852         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
94853         Likewise.
94854         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
94855         result.
94856         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
94857         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
94858         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
94859         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
94860         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
94861         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
94863 2008-05-11  Bruno Haible  <bruno@clisp.org>
94865         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
94867 2008-05-11  Bruno Haible  <bruno@clisp.org>
94869         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
94870         * modules/unilbrk/gen-lbrk: New file.
94872 2008-05-11  Bruno Haible  <bruno@clisp.org>
94874         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
94875         * m4/sha512.m4 (gl_SHA512): Likewise.
94877 2008-05-11  Jim Meyering  <meyering@redhat.com>
94879         New modules: crypto/sha256, crypto/sha512 (from coreutils)
94880         * modules/crypto/sha256: New file.
94881         * modules/crypto/sha512: Likewise.
94882         * lib/sha256.c: Likewise.
94883         * lib/sha256.h: Likewise.
94884         * lib/sha512.c: Likewise.
94885         * lib/sha512.h: Likewise.
94886         * lib/u64.h: Likewise.
94887         * m4/sha256.m4: Likewise.
94888         * m4/sha512.m4: Likewise.
94889         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
94891 2008-05-10  Bruno Haible  <bruno@clisp.org>
94893         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
94894         (Input/Output <stdio.h>): Add xprintf.
94895         (Signal handling <signal.h>): Add strsignal.
94896         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
94897         (Core language properties): Add func.
94898         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
94899         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
94900         strings.
94901         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
94902         (Input/output): New section.
94903         (File system functions): Add openat-die, stat-macros.
94904         (Networking functions): Add sockets.
94905         (Unicode string functions): Add unictype/*.
94906         (Support for building libraries and executables): Add gperf.
94907         (Support for building documentation): Add agpl-3.0.
94908         (Misc): Add nocrash.
94910 2008-05-10  Bruno Haible  <bruno@clisp.org>
94912         * modules/unictype/gen-ctype: New file.
94914 2008-05-10  Jim Meyering  <meyering@redhat.com>
94916         Make chdir-safer.c more efficient on a system with no symlinks.
94917         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
94918         also if ELOOP is zero.  Suggested by Bruno Haible.
94920         Make chdir-safer.c slightly safer.
94921         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
94922         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
94924         Avoid compile failure on systems without ELOOP (like mingw).
94925         * lib/chdir-safer.c (ELOOP): Define if not already defined.
94926         Reported by Bruno Haible.
94928 2008-05-10  Bruno Haible  <bruno@clisp.org>
94930         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
94931         (is_utf8_encoding): Use a case-insensitive comparison.
94932         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
94933         streq.
94935 2008-05-10  Bruno Haible  <bruno@clisp.org>
94937         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
94938         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
94939         * lib/unilbrk/ulc-common.h (iconv_string_length,
94940         iconv_string_keeping_offsets): Remove declarations.
94941         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
94942         Don't include <iconv.h>, streq.h, xsize.h.
94943         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
94944         conversion.
94945         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
94946         <iconv.h>, streq.h, xsize.h.
94947         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
94948         conversion.
94949         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
94950         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
94951         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
94952         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
94954 2008-05-10  Bruno Haible  <bruno@clisp.org>
94956         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
94957         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
94959         * modules/unilbrk/u32-width-linebreaks-tests: New file.
94960         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
94962         * modules/unilbrk/u16-width-linebreaks-tests: New file.
94963         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
94965         * modules/unilbrk/u8-width-linebreaks-tests: New file.
94966         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
94968         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
94969         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
94971         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
94972         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
94974         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
94975         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
94977         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
94978         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
94980 2008-05-10  Bruno Haible  <bruno@clisp.org>
94982         Split up 'linebreak' module.
94983         * lib/unilbrk.h: New file, based on lib/linebreak.h.
94984         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
94985         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
94986         modifications.
94987         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
94988         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
94989         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
94990         lib/linebreak.c.
94991         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
94992         lib/linebreak.c.
94993         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
94994         lib/linebreak.c.
94995         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
94996         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
94997         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
94998         lib/linebreak.c.
94999         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
95000         lib/linebreak.c.
95001         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
95002         lib/linebreak.c.
95003         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
95004         lib/linebreak.c.
95005         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
95006         lib/linebreak.c.
95007         * modules/unilbrk/base: New file.
95008         * modules/unilbrk/tables: New file.
95009         * modules/unilbrk/u8-possible-linebreaks: New file.
95010         * modules/unilbrk/u16-possible-linebreaks: New file.
95011         * modules/unilbrk/u32-possible-linebreaks: New file.
95012         * modules/unilbrk/ulc-common: New file.
95013         * modules/unilbrk/ulc-possible-linebreaks: New file.
95014         * modules/unilbrk/u8-width-linebreaks: New file.
95015         * modules/unilbrk/u16-width-linebreaks: New file.
95016         * modules/unilbrk/u32-width-linebreaks: New file.
95017         * modules/unilbrk/ulc-width-linebreaks: New file.
95018         * lib/linebreak.h: Remove file.
95019         * lib/linebreak.c: Remove file.
95020         * m4/linebreak.m4: Remove file.
95021         * modules/linebreak: Remove file.
95022         * NEWS: Mention the changes.
95024 2008-05-09  Eric Blake  <ebb9@byu.net>
95026         Add xmemdup0.
95027         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
95028         implementation.
95029         * lib/xmalloc.c (xmemdup0): New C implementation.
95031 2008-05-08  Bruno Haible  <bruno@clisp.org>
95033         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
95035 2008-05-07  Eric Blake  <ebb9@byu.net>
95037         Support cross-compilation of <wctype.h>.
95038         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
95039         AC_CACHE_CHECK.
95041 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
95043         * build-aux/vc-list-files: Add support for bzr.
95045 2008-05-03  Jim Meyering  <meyering@redhat.com>
95047         avoid failed assertion with tight malloc
95048         * tests/test-getndelim2.c: Correct an off-by-one assertion.
95050 2008-05-03  Simon Josefsson  <simon@josefsson.org>
95052         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
95053         are needed from arpa/inet.h.
95054         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
95055         Reported by Bruno Haible.
95057 2008-05-02  Jim Meyering  <meyering@redhat.com>
95059         avoid compilation error on FreeBSD 6
95060         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
95062 2008-05-01  Jim Meyering  <meyering@redhat.com>
95064         useless-if-before-free: correct --help's exit status description
95065         * build-aux/useless-if-before-free (usage): Like grep, exit 0
95066         for one or more matches, etc.  Reported by Bruno Haible.
95068         vc-list-files: make the stand-alone gnulib test work
95069         * modules/vc-list-files-tests (configure.ac):
95070         Define and AC_SUBST abs_aux_dir.
95071         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
95072         $(abs_top_srcdir) to each script and having each of them
95073         duplicate the work of setting PATH, set PATH here, using
95074         the new variable, abs_aux_dir instead.
95075         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
95076         * tests/test-vc-list-files-git.sh: Likewise.
95077         Reported by Bruno Haible.
95079 2008-05-01  Bruno Haible  <bruno@clisp.org>
95081         * lib/getndelim2.c (getndelim2): Fix newsize computation during
95082         reallocation. Rename 'done' to 'found_delimiter'.
95084 2008-05-01  Jim Meyering  <meyering@redhat.com>
95086         vc-list-files: accommodate /bin/sh like the one from Solaris 10
95087         * build-aux/vc-list-files: Use `...`, not $(...).
95089 2008-04-30  Jim Meyering  <meyering@redhat.com>
95091         add tests for vc-list-files
95092         * modules/vc-list-files-tests: New module.
95093         * tests/test-vc-list-files-cvs.sh: New file.
95094         * tests/test-vc-list-files-git.sh: New file.
95096         avoid a warning from gcc
95097         * lib/getndelim2.c (IF_LINT): Define.
95098         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
95100         vc-list-files: work properly with build-aux/cvsu, too
95101         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
95102         to all cvs-based clauses.
95104         vc-list-files: work properly in the CVS+awk case, too
95105         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
95107         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
95108         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
95109         take more than one file argument, so .  Add quotes, just in case $dir
95110         ever contains a shell meta-character.  Prompted by Soren Hansen in
95111         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
95113 2008-04-29  Eric Blake  <ebb9@byu.net>
95115         Optimize getndelim2 to use block operations when possible.
95116         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
95117         freadseek, and memchr2.
95118         * lib/getndelim2.c (getndelim2): Use them for block reads.
95120 2008-04-29  Bruno Haible  <bruno@clisp.org>
95122         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
95123         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
95124         * modules/inet_ntop (Depends-on): Add extensions.
95125         * modules/inet_pton (Depends-on): Likewise.
95126         Reported by Simon Josefsson.
95128 2008-04-29  Jim Meyering  <meyering@redhat.com>
95130         When the is more than one match in a block, match all of them.
95131         * build-aux/useless-if-before-free: Iterate through each block
95132         until there are no more matches.
95134         Fix broken useless-if-before-free script.
95135         * build-aux/useless-if-before-free: Fix typo: missing "?" after
95136         the expression to match cast of argument to free-like function.
95138 2008-04-29  Eric Blake  <ebb9@byu.net>
95140         Use new header.
95141         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
95143 2008-04-29  Jim Meyering  <meyering@redhat.com>
95145         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
95146         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
95147         by gnulib to exist and to declare e.g., inet_ntop.
95148         Don't include "inet_ntop.h", now removed.
95150         * m4/arpa_inet_h.m4: Remove trailing blanks.
95152 2008-04-29  Eric Blake  <ebb9@byu.net>
95154         Silence valgrind on safe reads beyond potential array bounds.
95155         * lib/rawmemchr.valgrind: New file.
95156         * lib/strchrnul.valgrind: Likewise.
95157         * modules/rawmemchr (Files): Distribute new file.
95158         * modules/strchrnul (Files): Likewise.
95159         Suggested by Bruno Haible.
95161 2008-04-29  Bruno Haible  <bruno@clisp.org>
95163         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
95164         (inet_ntop, inet_pton): Change portability warning's wording.
95165         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
95166         Invoke gl_CHECK_NEXT_HEADERS.
95167         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
95168         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
95169         set ARPA_INET_H.
95170         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
95171         * modules/arpa_inet (Description): No longer only for systems that
95172         lack it.
95173         (Depends-on): Add include_next.
95174         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
95175         HAVE_ARPA_INET_H.
95177 2008-04-29  Jim Meyering  <meyering@redhat.com>
95179         * modules/mkdir (License): Re-license as LGPLv2+.
95181 2008-04-29  Bruno Haible  <bruno@clisp.org>
95183         * modules/rawmemchr (Maintainer): Set to Eric.
95184         * modules/strchrnul (Maintainer): Likewise.
95186 2008-04-29  Simon Josefsson  <simon@josefsson.org>
95188         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
95189         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
95191         * modules/arpa_inet (arpa/inet.h): Use them.
95193 2008-04-28  Eric Blake  <ebb9@byu.net>
95195         Test getndelim2.
95196         * modules/getndelim2-tests: New file.
95197         * tests/test-getndelim2.c: Likewise.
95198         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
95199         stream.
95200         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
95202         * MODULES.html.sh: Document new module.
95204 2008-04-20  Bruno Haible  <bruno@clisp.org>
95206         * lib/c-stack.c (die): Use raise.
95207         * modules/c-stack (Depends-on): Add raise.
95209 2008-04-28  Bruno Haible  <bruno@clisp.org>
95211         Expect rpmatch to be declared.
95212         * lib/yesno.c (rpmatch): Remove declaration.
95214         Declare rpmatch.
95215         * lib/stdlib.in.h (rpmatch): New declaration.
95216         * lib/rpmatch.c: Include <stdlib.h> first.
95217         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
95218         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
95219         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
95220         HAVE_RPMATCH.
95221         * modules/rpmatch (Depends-on): Add stdlib, extensions.
95222         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
95223         (Include): Set to <stdlib.h>.
95224         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
95225         HAVE_RPMATCH.
95226         * NEWS: Document the change.
95228 2008-04-28  Bruno Haible  <bruno@clisp.org>
95230         Change rpmatch to use nl_langinfo when appropriate.
95231         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
95232         (N_): New macro.
95233         (localized_pattern): New function/macro.
95234         (try): Remove match, nomatch arguments. Copy the pattern into safe
95235         memory before caching it.
95236         (rpmatch): Use localized_pattern. Add translator comments.
95237         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
95238         Suggested by Eric Blake.
95239         * modules/rpmatch (Depends-on): Add stdbool.
95241 2008-04-28  Eric Blake  <ebb9@byu.net>
95243         Add rawmemchr module, matching glibc.
95244         * modules/string (Makefile.am): New indicator.
95245         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
95246         * lib/string.in.h (rawmemchr): Declare when appropriate.
95247         * modules/rawmemchr: New file.
95248         * m4/rawmemchr.m4: Likewise.
95249         * lib/rawmemchr.c: Likewise.
95250         * modules/rawmemchr-tests: Likewise.
95251         * tests/test-rawmemchr.c: Likewise.
95252         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
95253         module.
95254         * modules/strchrnul (Depends-on): Add rawmemchr.
95255         * lib/strchrnul.c (strchrnul): Optimize a corner case.
95257         Whitespace cleanup.
95258         * tests/test-strchrnul.c: Reindent.
95259         * lib/strchrnul.c: Likewise.
95261         Optimize and test strchrnul.
95262         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
95263         * modules/strchrnul-tests: New file.
95264         * tests/test-strchrnul.c: Likewise.
95266         Remove intprops dependency.
95267         * modules/memchr (Depends-on): Remove intprops.
95268         * modules/memrchr (Depends-on): Likewise.
95269         * modules/memchr2 (Depends-on): Likewise.
95270         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
95271         * lib/memrchr.c (__memrchr): Likewise.
95272         * lib/memrchr2.c (memchr2): Likewise.
95273         Reported by Simon Josefsson.
95275 2008-04-28  Simon Josefsson  <simon@josefsson.org>
95277         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
95278         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
95280 2008-04-28  Simon Josefsson  <simon@josefsson.org>
95282         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
95284         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
95286         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
95288         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
95289         declarations.
95290         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
95292         * m4/inet_pton.m4: Don't check for header files.
95294         * m4/inet_ntop.m4: Don't check for header files.
95296 2008-04-28  Simon Josefsson  <simon@josefsson.org>
95298         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
95299         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
95300         trigger for cygwin).
95301         Reported by Bruno Haible  <bruno@clisp.org>.
95303 2008-04-28  Bruno Haible  <bruno@clisp.org>
95305         * doc/posix-functions/strdup.texi: Mention mingw problem.
95307 2008-04-27  Bruno Haible  <bruno@clisp.org>
95309         * modules/stat-time-tests (Depends-on): Add sleep.
95310         * tests/test-stat-time.c (force_unlink): New function.
95311         (cleanup): Use it.
95312         (test_mtime): Remove the ctime related tests.
95313         (test_ctime): New function, containing the ctime related tests.
95314         (main): Call test_ctime, except on native Windows platforms.
95316 2008-04-27  Bruno Haible  <bruno@clisp.org>
95318         * lib/rpmatch.c (rpmatch): Add some comments.
95319         Reported by James Youngman <jay@gnu.org>.
95321 2008-04-27  Bruno Haible  <bruno@clisp.org>
95323         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
95324         quiet NaNs.
95326 2008-04-27  Bruno Haible  <bruno@clisp.org>
95328         Make test-yesno.sh work on mingw.
95329         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
95330         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
95331         (main): Set stdin to binary mode.
95332         * modules/yesno-tests (Depends-on): Add binary-io.
95334 2008-04-27  Bruno Haible  <bruno@clisp.org>
95336         Fix 'isfinite' on x86, x86_64, ia64 platforms.
95337         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
95338         argument that lie outside the IEEE 854 domain.
95339         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
95340         (gl_ISFINITE): Use it.
95341         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
95343 2008-04-27  Bruno Haible  <bruno@clisp.org>
95345         Allow local renaming in config.h.
95346         * lib/memrchr.c (memrchr): Don't undefine outside libc.
95348 2008-04-27  Bruno Haible  <bruno@clisp.org>
95350         * lib/memchr.c (__memchr): Change type of 'i'.
95351         * lib/memchr2.c (memchr2): Likewise.
95353 2008-04-26  Eric Blake  <ebb9@byu.net>
95354         and Bruno Haible  <bruno@clisp.org>
95356         Optimize and test memrchr.
95357         * modules/memrchr (Depends-on): Add intprops.
95358         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
95359         * modules/memrchr-tests: New file.
95360         * tests/test-memrchr.c: New file.
95362 2008-04-26  Bruno Haible  <bruno@clisp.org>
95364         Add tentative support for DragonFly BSD.
95365         * lib/stdio-impl.h: Add macros for DragonFly BSD.
95366         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
95367         fp.
95368         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
95369         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
95370         * lib/fpurge.c (fpurge): Likewise.
95371         * lib/freadable.c (freaadable): Likewise.
95372         * lib/freadahead.c (freadahead): Likewise.
95373         * lib/freading.c (freading): Likewise.
95374         * lib/freadptr.c (freadptr): Likewise.
95375         * lib/freadseek.c (freadptrinc): Likewise.
95376         * lib/fseeko.c (fseeko): Likewise.
95377         * lib/fseterr.c (fseterr): Likewise.
95378         * lib/fwritable.c (fwritable): Likewise.
95379         * lib/fwriting.c (fwriting): Likewise.
95381 2008-04-26  Bruno Haible  <bruno@clisp.org>
95383         * lib/stdio-impl.h: New file.
95384         * lib/fbufmode.c: Include stdio-impl.h.
95385         (fbufmode): Use fp_, remove redundant #defines.
95386         * lib/fflush.c: Include stdio-impl.h.
95387         (clear_ungetc_buffer): Remove redundant #defines.
95388         * lib/fpurge.c: Include stdio-impl.h.
95389         (fpurge): Remove redundant #defines.
95390         * lib/freadable.c: Include stdio-impl.h.
95391         (freadable): Remove redundant #defines.
95392         * lib/freadahead.c: Include stdio-impl.h.
95393         (freadahead): Remove redundant #defines.
95394         * lib/freading.c: Include stdio-impl.h.
95395         (freading): Remove redundant #defines.
95396         * lib/freadptr.c: Include stdio-impl.h.
95397         (freadptr): Remove redundant #defines.
95398         * lib/freadseek.c: Include stdio-impl.h.
95399         (freadptrinc): Remove redundant #defines.
95400         * lib/fseeko.c: Include stdio-impl.h.
95401         (rpl_fseeko): Remove redundant #defines.
95402         * lib/fseterr.c: Include stdio-impl.h.
95403         (fseterr): Remove redundant #defines.
95404         * lib/fwritable.c: Include stdio-impl.h.
95405         (fwritable: Remove redundant #defines.
95406         * lib/fwriting.c: Include stdio-impl.h.
95407         (fwriting): Remove redundant #defines.
95408         * modules/fbufmode (Files): Add lib/stdio-impl.h.
95409         * modules/fflush (Files): Likewise.
95410         * modules/fpurge (Files): Likewise.
95411         * modules/freadable (Files): Likewise.
95412         * modules/freadahead (Files): Likewise.
95413         * modules/freading (Files): Likewise.
95414         * modules/freadptr (Files): Likewise.
95415         * modules/freadseek (Files): Likewise.
95416         * modules/fseeko (Files): Likewise.
95417         * modules/fseterr (Files): Likewise.
95418         * modules/fwritable (Files): Likewise.
95419         * modules/fwriting (Files): Likewise.
95421 2008-04-26  Bruno Haible  <bruno@clisp.org>
95423         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
95424         restore_seek_optimization, update_fpos_cache): New functions, extracted
95425         from rpl_fflush.
95426         (rpl_fflush): Use them.
95427         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
95428         (gl_REPLACE_FFLUSH): Use it.
95430 2008-04-26  Bruno Haible  <bruno@clisp.org>
95432         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
95433         on Solaris.
95434         * tests/test-xstrtoimax.sh: Likewise.
95435         * tests/test-xstrtoumax.sh: Likewise.
95436         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
95438 2008-04-26  Bruno Haible  <bruno@clisp.org>
95440         * modules/memchr-tests: New file.
95441         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
95443 2008-04-26  Eric Blake  <ebb9@byu.net>
95444             Bruno Haible  <bruno@clisp.org>
95446         * lib/memchr.c: Include intprops.h.
95447         (__memchr): Optimize parallel detection of matching bytes. Rename local
95448         variables. Add explanatory comments.
95450 2008-04-26  Bruno Haible  <bruno@clisp.org>
95452         Fix module 'memchr', broken since 2000-10-28.
95453         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
95455 2008-04-26  Bruno Haible  <bruno@clisp.org>
95457         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
95458         comments.
95460 2008-04-25  Eric Blake  <ebb9@byu.net>
95462         Use native fstatat on cygwin 1.7.0.
95463         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
95464         first.
95466 2008-04-23  Eric Blake  <ebb9@byu.net>
95468         Improve memchr2 performance.
95469         * lib/memchr2.c (memchr2): Further optimize parallel detection of
95470         NUL bytes.
95471         * modules/memchr2 (Depends-on): Use intprops.h.
95473 2008-04-23  Simon Josefsson  <simon@josefsson.org>
95475         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
95476         an inline function instead of a CPP macro.  Patch by Ben Pfaff
95477         <blp@cs.stanford.edu>.
95479 2008-04-23  Simon Josefsson  <simon@josefsson.org>
95481         * lib/arpa_inet.in.h: New file.
95483         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
95484         (Makefile.am): Sed in substitute header file.
95486         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
95487         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
95489         * modules/inet_ntop (configure.ac): Use
95490         gl_ARPA_INET_MODULE_INDICATOR.
95492         * modules/inet_pton (configure.ac): Use
95493         gl_ARPA_INET_MODULE_INDICATOR.
95495 2008-04-22  Jim Meyering  <meyering@redhat.com>
95497         * modules/verify (License): Re-license as LGPLv2+.
95499 2008-04-22  Simon Josefsson  <simon@josefsson.org>
95501         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
95502         parameter to void* as per POSIX standard (MinGW uses char*).
95504 2008-04-21  Bruno Haible  <bruno@clisp.org>
95506         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
95507         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
95508         Define to replacements if REPLACE_ISWCNTRL is 1.
95509         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
95510         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
95511         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
95512         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
95513         what it fixes.
95514         * doc/posix-functions/iswalpha.texi: Likewise.
95515         * doc/posix-functions/iswblank.texi: Likewise.
95516         * doc/posix-functions/iswcntrl.texi: Likewise.
95517         * doc/posix-functions/iswdigit.texi: Likewise.
95518         * doc/posix-functions/iswgraph.texi: Likewise.
95519         * doc/posix-functions/iswlower.texi: Likewise.
95520         * doc/posix-functions/iswprint.texi: Likewise.
95521         * doc/posix-functions/iswpunct.texi: Likewise.
95522         * doc/posix-functions/iswspace.texi: Likewise.
95523         * doc/posix-functions/iswupper.texi: Likewise.
95524         * doc/posix-functions/iswxdigit.texi: Likewise.
95525         Reported by Alain Guibert.
95527 2008-04-21  Bruno Haible  <bruno@clisp.org>
95529         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
95530         Patch by Alain Guibert.
95532 2008-04-21  Bruno Haible  <bruno@clisp.org>
95534         Fix test failures on mingw.
95535         * tests/test-xstrtol.c (print_no_progname): New function.
95536         (main): Install it in error_print_progname hook.
95537         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
95538         * tests/test-xstrtoimax.sh: Likewise.
95539         * tests/test-xstrtoumax.sh: Likewise.
95541 2008-04-21  Bruno Haible  <bruno@clisp.org>
95543         Fix test failure on mingw.
95544         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
95546 2008-04-21  Bruno Haible  <bruno@clisp.org>
95548         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
95549         Actually assign a value.
95551 2008-04-20  Bruno Haible  <bruno@clisp.org>
95553         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
95554         take 2.
95555         * lib/canonicalize.c (canonicalize_file_name): Elide if the
95556         'canonicalize-lgpl' module is also used.
95557         * lib/canonicalize-lgpl.c: Undo last change.
95558         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
95560 2008-04-20  Bruno Haible  <bruno@clisp.org>
95562         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
95563         config.h. Provide _mkdir based fallback for mingw.
95564         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
95565         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
95566         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
95567         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
95568         rather than defining mkdir in config.h.
95569         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
95570         (gl_SYS_STAT_H_DEFAULTS): New macro.
95571         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
95572         HAVE_IO_H any more.
95573         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
95574         HAVE_DECL_MKDIR and HAVE_IO_H.
95576 2008-04-20  Bruno Haible  <bruno@clisp.org>
95578         * lib/isapipe.c: Port to native Windows platforms.
95580 2008-04-20  Bruno Haible  <bruno@clisp.org>
95582         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
95584 2008-04-21  Eric Blake  <ebb9@byu.net>
95586         Work around preprocessors that don't handle UINTMAX_MAX.
95587         * lib/memchr2.c (memchr2): Avoid embedded #if.
95588         Reported by Alain Guibert, fix suggested by Bruno Haible.
95590 2008-04-21  Simon Josefsson  <simon@josefsson.org>
95592         * doc/posix-functions/strftime.texi (strftime): Explain better
95593         Windows incompatibility.  Suggested by Micah Cowan
95594         <micah@cowan.name>.
95596 2008-04-20  Bruno Haible  <bruno@clisp.org>
95598         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
95599         unistr/u8-mblen.
95601 2008-04-20  Bruno Haible  <bruno@clisp.org>
95603         Fix test failure on platforms with non-GNU iconv.
95604         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
95605         (U_TO_U8): Use it, rather than u16_to_u8.
95606         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
95607         units at the end of the input string.
95608         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
95610 2008-04-20  Bruno Haible  <bruno@clisp.org>
95612         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
95613         when the resulting length is 0.
95614         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
95616 2008-04-20  Bruno Haible  <bruno@clisp.org>
95618         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
95619         works.
95620         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
95622 2008-04-20  Bruno Haible  <bruno@clisp.org>
95624         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
95625         * modules/tsearch-tests (configure.ac): Test for initstate function.
95627 2008-04-20  Bruno Haible  <bruno@clisp.org>
95629         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
95630         for nlink_t if missing.
95631         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
95633 2008-04-19  Bruno Haible  <bruno@clisp.org>
95635         Work around snprintf bug on Linux libc5.
95636         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
95637         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
95638         gl_SNPRINTF_SIZE1.
95639         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
95640         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
95641         that test failed.
95642         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
95643         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
95644         * modules/snprintf (Files): Add m4/printf.m4.
95645         * modules/vsnprintf (Files): Likewise.
95646         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
95647         * doc/posix-functions/vsnprintf.texi: Likewise.
95649 2008-04-19  Bruno Haible  <bruno@clisp.org>
95651         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
95652         from 0.0058 to less than 10^-7.
95654 2008-04-19  Bruno Haible  <bruno@clisp.org>
95656         Fix rounding when a precision is given.
95657         * lib/vasnprintf.c (is_borderline): New function.
95658         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
95659         9...9x.
95660         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
95661         %e, %g.
95662         * tests/test-vasprintf-posix.c (test_function): Likewise.
95663         * tests/test-snprintf-posix.h (test_function): Likewise.
95664         * tests/test-sprintf-posix.h (test_function): Likewise.
95665         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
95666         * tests/test-printf-posix.h (test_function): Likewise.
95667         * tests/test-printf-posix.output: Update.
95668         Reported by John Darrington <john@darrington.wattle.id.au> via
95669         Ben Pfaff <blp@cs.stanford.edu>.
95671 2008-04-18  Simon Josefsson  <simon@josefsson.org>
95673         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
95674         Suggested by Bruno Haible <bruno@clisp.org>.
95676 2008-04-17  Bruno Haible  <bruno@clisp.org>
95678         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
95679         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
95680         implementation.
95681         Patch by Bruce Merry <bmerry@gmail.com>.
95683 2008-04-17  Simon Josefsson  <simon@josefsson.org>
95685         * doc/posix-functions/strftime.texi (strftime): Mention that %e
95686         doesn't work under Windows.
95688 2008-04-16  Bruno Haible  <bruno@clisp.org>
95690         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
95691         New macros.
95692         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
95693         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
95694         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
95695         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
95696         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
95697         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
95698         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
95699         macros.
95700         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
95701         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
95702         Northern Sotho, Uighur.
95704 2008-04-16  Bruno Haible  <bruno@clisp.org>
95706         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
95707         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
95708         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
95709         Reported by Daniel Bergström <daniel@octocode.com>.
95711 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
95712             Bruno Haible  <bruno@clisp.org>
95714         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
95715         function.
95716         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
95717         New functions, mostly extracted from gl_locale_name_default.
95718         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
95720 2008-04-16  Eric Blake  <ebb9@byu.net>
95722         Adjust strtod detection to catch glibc 2.7 bug.
95723         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
95724         Reported by John Gatewood Ham.
95726 2008-04-16  Bruno Haible  <bruno@clisp.org>
95728         Add tentative support for Linux libc5.
95729         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
95730         * lib/fpurge.c (fpurge): Likewise.
95731         * lib/freadable.c (freadable): Likewise.
95732         * lib/freadahead.c (freadahead): Likewise.
95733         * lib/freading.c (freading): Likewise.
95734         * lib/freadptr.c (freadptr): Likewise.
95735         * lib/freadseek.c (freadptrinc): Likewise.
95736         * lib/fseeko.c (rpl_fseeko): Likewise.
95737         * lib/fseterr.c (fseterr): Likewise.
95738         * lib/fwritable.c (fwritable): Likewise.
95739         * lib/fwriting.c (fwriting): Likewise.
95740         Reported by Alain Guibert <alguibert+bts@free.fr>.
95742 2008-04-15  Bruno Haible  <bruno@clisp.org>
95744         * modules/mathl (configure.ac): Define module indicator.
95746 2008-04-15  Bruno Haible  <bruno@clisp.org>
95748         * lib/logl.c (logl): Remove unused variables.
95750 2008-04-15  Bruno Haible  <bruno@clisp.org>
95752         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
95753         fails.
95755 2008-04-15  Bruno Haible  <bruno@clisp.org>
95757         * lib/trim.c (trim2): Fix argument of isspace() macro.
95759 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
95761         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
95762         to 0.
95763         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
95765 2008-04-14  Bruno Haible  <bruno@clisp.org>
95767         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
95768         AC_LANG_PROGRAM argument.
95769         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
95770         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
95771         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
95772         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
95773         * m4/math_h.m4 (gl_MATH_H): Likewise.
95774         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
95775         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
95776         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
95777         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
95778         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
95779         * m4/regex.m4 (gl_REGEX): Likewise.
95780         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
95781         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
95782         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
95783         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
95784         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
95785         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
95786         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
95787         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
95789 2008-04-14  Jim Meyering  <meyering@redhat.com>
95791         test-strtod: fix typos: s/abs/fabs/
95792         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
95794 2008-04-13  Bruno Haible  <bruno@clisp.org>
95796         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
95797         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
95798         module is also used and while not building the reloc-wrapper.
95800 2008-04-13  Bruno Haible  <bruno@clisp.org>
95802         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
95804 2008-04-13  Bruno Haible  <bruno@clisp.org>
95806         Fix AIX compilation failure introduced on 2008-04-02.
95807         * tests/test-frexp.c (exp): Undefine before redefining.
95808         * tests/test-frexpl.c (exp): Likewise.
95810 2008-04-13  Bruno Haible  <bruno@clisp.org>
95812         Work around a HP-UX stdio bug.
95813         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
95814         * tests/test-ftello.c (main): Likewise.
95815         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
95816         * doc/posix-functions/ftello.texi: Likewise.
95818 2008-04-13  Bruno Haible  <bruno@clisp.org>
95820         Make test-signbit pass on HP-UX/hppa.
95821         * tests/test-signbit.c (minus_zerol): New variable.
95822         (test_signbitl): Use it.
95824 2008-04-13  Bruno Haible  <bruno@clisp.org>
95826         Make truncl work on OSF/1 4.0.
95827         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
95828         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
95829         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
95830         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
95831         HAVE_DECL_TRUNCL.
95832         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
95833         HAVE_DECL_TRUNCL.
95834         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
95836 2008-04-13  Bruno Haible  <bruno@clisp.org>
95838         * lib/unictype.h: Remove trailing comma from enumeration definitions.
95840 2008-04-13  Bruno Haible  <bruno@clisp.org>
95842         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
95843         expression, so as to avoid HP-UX 11 cc compiler bug.
95845 2008-04-13  Bruno Haible  <bruno@clisp.org>
95847         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
95849 2008-04-13  Bruno Haible  <bruno@clisp.org>
95851         * lib/git-merge-changelog.c: Remove empty declaration outside of
95852         functions.
95854 2008-04-13  Bruno Haible  <bruno@clisp.org>
95856         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
95858 2008-04-13  Bruno Haible  <bruno@clisp.org>
95860         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
95861         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
95862         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
95863         also if it exists but lacks definitions of the SHUT_* macros.
95864         * modules/sys_socket (Description): Update.
95865         Reported by Elbert Pol <e.pol@chello.nl>.
95867 2008-04-13  Bruno Haible  <bruno@clisp.org>
95869         * lib/localcharset.c (OS2): Don't redefine if already defined.
95870         Reported by Elbert Pol <e.pol@chello.nl>.
95872 2008-04-13  Bruno Haible  <bruno@clisp.org>
95874         * lib/binary-io.h [__EMX__]: Include <io.h>.
95875         Reported by Elbert Pol <e.pol@chello.nl>.
95877 2008-04-12  Bruno Haible  <bruno@clisp.org>
95879         * lib/fpucw.h: Enable the definitions also for x86_64.
95880         Needed for NetBSD/x86_64.
95881         Reported by Thomas Klausner <tk@giga.or.at>.
95883 2008-04-12  Bruno Haible  <bruno@clisp.org>
95885         * tests/test-strtod.c: Include isnand.h.
95886         (main): Use isnand instead of isnan.
95887         Reported by Jim Meyering.
95889 2008-04-12  Bruno Haible  <bruno@clisp.org>
95891         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
95892         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
95894 2008-04-12  Jim Meyering  <meyering@redhat.com>
95896         * m4/math_h.m4 (gl_MATH_H): Fix typos.
95898 2008-04-12  Bruno Haible  <bruno@clisp.org>
95900         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
95901         Reported by Elbert Pol <e.pol@chello.nl>.
95903 2008-04-12  Eric Blake  <ebb9@byu.net>
95905         Work around Solaris 10 math.h bug.
95906         * m4/math_h.m4 (gl_MATH_H): Check for bug.
95907         (gl_MATH_H_DEFAULTS): Set up default.
95908         * modules/math (Makefile.am): Replace new indicators.
95909         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
95910         * tests/test-math.c (main): Test this.
95911         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
95912         * doc/posix-headers/math.texi (math.h): Mention bug.
95913         Reported by Nelson H. F. Beebe and Jim Meyering.
95915 2008-04-11  Bruno Haible  <bruno@clisp.org>
95917         Adapt to future versions of Apple GCC.
95918         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
95919         Reported by Peter O'Gorman <peter@pogma.com>.
95921 2008-04-11  Bruno Haible  <bruno@clisp.org>
95923         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
95925 2008-04-11  Bruno Haible  <bruno@clisp.org>
95927         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
95929         * modules/getaddrinfo-tests (Makefile.am): Define
95930         test_getaddrinfo_LDADD.
95932 2008-04-11  Bruno Haible  <bruno@clisp.org>
95934         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
95935         (init): Fix syntax error.
95936         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
95937         is declared.
95939 2008-04-11  Bruno Haible  <bruno@clisp.org>
95941         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
95942         * modules/glob (Depends-on): Add stdbool.
95944 2008-04-11  Bruno Haible  <bruno@clisp.org>
95946         * lib/trim.c: Include <string.h>.
95948 2008-04-11  Eric Blake  <ebb9@byu.net>
95950         Avoid compile failure on OS/2.
95951         * lib/regex_internal.h (internal_function): Disable optimization
95952         on OS/2 (__EMX__), where it caused compiler error.
95953         Reported by Elbert Pol.
95955 2008-04-11  Bruno Haible  <bruno@clisp.org>
95957         Flush the standard error stream before aborting. Needed on mingw.
95958         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
95959         * tests/test-array_list.c (ASSERT): Likewise.
95960         * tests/test-array_oset.c (ASSERT): Likewise.
95961         * tests/test-avltree_list.c (ASSERT): Likewise.
95962         * tests/test-avltree_oset.c (ASSERT): Likewise.
95963         * tests/test-avltreehash_list.c (ASSERT): Likewise.
95964         * tests/test-binary-io.c (ASSERT): Likewise.
95965         * tests/test-byteswap.c (ASSERT): Likewise.
95966         * tests/test-c-ctype.c (ASSERT): Likewise.
95967         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
95968         * tests/test-c-strcasestr.c (ASSERT): Likewise.
95969         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
95970         * tests/test-c-strstr.c (ASSERT): Likewise.
95971         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
95972         * tests/test-canonicalize.c (ASSERT): Likewise.
95973         * tests/test-carray_list.c (ASSERT): Likewise.
95974         * tests/test-ceilf1.c (ASSERT): Likewise.
95975         * tests/test-ceilf2.c (ASSERT): Likewise.
95976         * tests/test-ceill.c (ASSERT): Likewise.
95977         * tests/test-count-one-bits.c (ASSERT): Likewise.
95978         * tests/test-fbufmode.c (ASSERT): Likewise.
95979         * tests/test-fflush2.c (ASSERT): Likewise.
95980         * tests/test-floorf1.c (ASSERT): Likewise.
95981         * tests/test-floorf2.c (ASSERT): Likewise.
95982         * tests/test-floorl.c (ASSERT): Likewise.
95983         * tests/test-fopen.c (ASSERT): Likewise.
95984         * tests/test-fpending.c (ASSERT): Likewise.
95985         * tests/test-fprintf-posix.c (ASSERT): Likewise.
95986         * tests/test-fpurge.c (ASSERT): Likewise.
95987         * tests/test-freadable.c (ASSERT): Likewise.
95988         * tests/test-freadahead.c (ASSERT): Likewise.
95989         * tests/test-freading.c (ASSERT): Likewise.
95990         * tests/test-freadptr.c (ASSERT): Likewise.
95991         * tests/test-freadptr2.c (ASSERT): Likewise.
95992         * tests/test-freadseek.c (ASSERT): Likewise.
95993         * tests/test-freopen.c (ASSERT): Likewise.
95994         * tests/test-frexp.c (ASSERT): Likewise.
95995         * tests/test-frexpl.c (ASSERT): Likewise.
95996         * tests/test-fseek.c (ASSERT): Likewise.
95997         * tests/test-fseeko.c (ASSERT): Likewise.
95998         * tests/test-fstrcmp.c (ASSERT): Likewise.
95999         * tests/test-ftell.c (ASSERT): Likewise.
96000         * tests/test-ftello.c (ASSERT): Likewise.
96001         * tests/test-func.c (ASSERT): Likewise.
96002         * tests/test-fwritable.c (ASSERT): Likewise.
96003         * tests/test-fwriting.c (ASSERT): Likewise.
96004         * tests/test-getdelim.c (ASSERT): Likewise.
96005         * tests/test-getline.c (ASSERT): Likewise.
96006         * tests/test-i-ring.c (ASSERT): Likewise.
96007         * tests/test-iconv-utf.c (ASSERT): Likewise.
96008         * tests/test-iconv.c (ASSERT): Likewise.
96009         * tests/test-isfinite.c (ASSERT): Likewise.
96010         * tests/test-isnand.c (ASSERT): Likewise.
96011         * tests/test-isnanf.c (ASSERT): Likewise.
96012         * tests/test-isnanl.h (ASSERT): Likewise.
96013         * tests/test-ldexpl.c (ASSERT): Likewise.
96014         * tests/test-linked_list.c (ASSERT): Likewise.
96015         * tests/test-linkedhash_list.c (ASSERT): Likewise.
96016         * tests/test-localename.c (ASSERT): Likewise.
96017         * tests/test-lseek.c (ASSERT): Likewise.
96018         * tests/test-mbscasecmp.c (ASSERT): Likewise.
96019         * tests/test-mbscasestr1.c (ASSERT): Likewise.
96020         * tests/test-mbscasestr2.c (ASSERT): Likewise.
96021         * tests/test-mbscasestr3.c (ASSERT): Likewise.
96022         * tests/test-mbscasestr4.c (ASSERT): Likewise.
96023         * tests/test-mbschr.c (ASSERT): Likewise.
96024         * tests/test-mbscspn.c (ASSERT): Likewise.
96025         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
96026         * tests/test-mbspbrk.c (ASSERT): Likewise.
96027         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
96028         * tests/test-mbsrchr.c (ASSERT): Likewise.
96029         * tests/test-mbsspn.c (ASSERT): Likewise.
96030         * tests/test-mbsstr1.c (ASSERT): Likewise.
96031         * tests/test-mbsstr2.c (ASSERT): Likewise.
96032         * tests/test-mbsstr3.c (ASSERT): Likewise.
96033         * tests/test-memchr2.c (ASSERT): Likewise.
96034         * tests/test-memmem.c (ASSERT): Likewise.
96035         * tests/test-open.c (ASSERT): Likewise.
96036         * tests/test-printf-frexp.c (ASSERT): Likewise.
96037         * tests/test-printf-frexpl.c (ASSERT): Likewise.
96038         * tests/test-printf-posix.c (ASSERT): Likewise.
96039         * tests/test-quotearg.c (ASSERT): Likewise.
96040         * tests/test-rbtree_list.c (ASSERT): Likewise.
96041         * tests/test-rbtree_oset.c (ASSERT): Likewise.
96042         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
96043         * tests/test-round1.c (ASSERT): Likewise.
96044         * tests/test-roundf1.c (ASSERT): Likewise.
96045         * tests/test-roundl.c (ASSERT): Likewise.
96046         * tests/test-signbit.c (ASSERT): Likewise.
96047         * tests/test-sleep.c (ASSERT): Likewise.
96048         * tests/test-snprintf-posix.c (ASSERT): Likewise.
96049         * tests/test-snprintf.c (ASSERT): Likewise.
96050         * tests/test-sprintf-posix.c (ASSERT): Likewise.
96051         * tests/test-stat-time.c (ASSERT): Likewise.
96052         * tests/test-strcasestr.c (ASSERT): Likewise.
96053         * tests/test-strerror.c (ASSERT): Likewise.
96054         * tests/test-striconv.c (ASSERT): Likewise.
96055         * tests/test-striconveh.c (ASSERT): Likewise.
96056         * tests/test-striconveha.c (ASSERT): Likewise.
96057         * tests/test-strsignal.c (ASSERT): Likewise.
96058         * tests/test-strstr.c (ASSERT): Likewise.
96059         * tests/test-strtod.c (ASSERT): Likewise.
96060         * tests/test-trunc1.c (ASSERT): Likewise.
96061         * tests/test-trunc2.c (ASSERT): Likewise.
96062         * tests/test-truncf1.c (ASSERT): Likewise.
96063         * tests/test-truncf2.c (ASSERT): Likewise.
96064         * tests/test-truncl.c (ASSERT): Likewise.
96065         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
96066         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
96067         * tests/test-vasnprintf.c (ASSERT): Likewise.
96068         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
96069         * tests/test-vasprintf.c (ASSERT): Likewise.
96070         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
96071         * tests/test-vprintf-posix.c (ASSERT): Likewise.
96072         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
96073         * tests/test-vsnprintf.c (ASSERT): Likewise.
96074         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
96075         * tests/test-wcwidth.c (ASSERT): Likewise.
96076         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
96077         * tests/test-xprintf-posix.c (ASSERT): Likewise.
96078         * tests/test-xvasprintf.c (ASSERT): Likewise.
96079         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
96080         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
96081         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
96082         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
96083         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
96084         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
96085         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
96086         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
96087         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
96088         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
96089         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
96090         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
96091         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
96092         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
96093         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
96094         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
96095         * tests/unictype/test-block_list.c (ASSERT): Likewise.
96096         * tests/unictype/test-block_of.c (ASSERT): Likewise.
96097         * tests/unictype/test-block_test.c (ASSERT): Likewise.
96098         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
96099         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
96100         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
96101         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
96102         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
96103         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
96104         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
96105         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
96106         * tests/unictype/test-combining.c (ASSERT): Likewise.
96107         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
96108         * tests/unictype/test-digit.c (ASSERT): Likewise.
96109         * tests/unictype/test-mirror.c (ASSERT): Likewise.
96110         * tests/unictype/test-numeric.c (ASSERT): Likewise.
96111         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
96112         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
96113         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
96114         * tests/unictype/test-scripts.c (ASSERT): Likewise.
96115         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
96116         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
96117         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
96118         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
96119         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
96120         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
96121         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
96122         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
96123         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
96124         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
96125         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
96126         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
96127         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
96128         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
96129         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
96130         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
96131         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
96132         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
96133         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
96134         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
96135         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
96136         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
96137         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
96138         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
96139         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
96140         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
96141         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
96142         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
96143         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
96144         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
96145         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
96146         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
96147         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
96148         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
96149         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
96150         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
96151         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
96152         Reported by Eric Blake.
96154 2008-04-11  Bruno Haible  <bruno@clisp.org>
96156         * lib/wchar.in.h: Tweak comment.
96158 2008-04-11  Bruno Haible  <bruno@clisp.org>
96160         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
96161         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
96162         gl_COMMON.
96163         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
96165 2008-04-11  Bruno Haible  <bruno@clisp.org>
96167         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
96169 2008-04-11  Simon Josefsson  <simon@josefsson.org>
96171         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
96172         of attempting to use non-existing /dev/*random.  Based on patch
96173         from Adam Strzelecki <ono@java.pl> in
96174         <http://lists.gnu.org/r/help-gsasl/2008-02/msg00000.html>.
96176 2008-04-08  Bruno Haible  <bruno@clisp.org>
96178         Add tentative support for emx+gcc.
96179         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
96180         * lib/fpurge.c (fpurge): Likewise.
96181         * lib/freadable.c (freadable): Likewise.
96182         * lib/freadahead.c (freadahead): Likewise.
96183         * lib/freading.c (freading): Likewise.
96184         * lib/freadptr.c (freadptr): Likewise.
96185         * lib/freadseek.c (freadptrinc): Likewise.
96186         * lib/fseeko.c (rpl_fseeko): Likewise.
96187         * lib/fseterr.c (fseterr): Likewise.
96188         * lib/fwritable.c (fwritable): Likewise.
96189         * lib/fwriting.c (fwriting): Likewise.
96190         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
96192 2008-04-09  Eric Blake  <ebb9@byu.net>
96194         Avoid some autoconf warnings.
96195         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
96196         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
96197         * m4/afs.m4 (gl_AFS): Likewise.
96198         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
96199         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
96200         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
96201         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
96202         (gl_INTEGER_TYPE_SUFFIX): Likewise.
96203         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
96204         (AC_CHECK_DECLS_ONCE): Likewise.
96205         Rename file...
96206         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
96207         gnulib-tool requires autoconf 2.59 or better.
96208         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
96210 2008-04-08  Eric Blake  <ebb9@byu.net>
96212         Use 'git describe --match' if present (added in git 1.5.5).
96213         * build-aux/git-version-gen: Limit result to tags that match 'v*'
96214         if possible.
96216 2008-04-08  Bruno Haible  <bruno@clisp.org>
96218         Add tentative support for OpenServer.
96219         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
96220         _ptr, _cnt.
96221         * lib/fpurge.c (fpurge): Likewise.
96222         * lib/freadable.c (freadable): Likewise.
96223         * lib/freadahead.c (freadahead): Likewise.
96224         * lib/freading.c (freading): Likewise.
96225         * lib/freadptr.c (freadptr): Likewise.
96226         * lib/freadseek.c (freadptrinc): Likewise.
96227         * lib/fseeko.c (rpl_fseeko): Likewise.
96228         * lib/fseterr.c (fseterr): Likewise.
96229         * lib/fwritable.c (fwritable): Likewise.
96230         * lib/fwriting.c (fwriting): Likewise.
96231         Reported by Roger Cornelius <rac@tenzing.org> and
96232         Brian K. White <brian@aljex.com>.
96234 2008-04-06  Jim Meyering  <meyering@redhat.com>
96236         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
96238 2008-04-06  Bruno Haible  <bruno@clisp.org>
96240         Avoid possible error with non-ASCII bytes in UTF-8 locales.
96241         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
96242         * tests/test-printf-posix.sh: Likewise.
96243         * tests/test-vfprintf-posix.sh: Likewise.
96244         * tests/test-vprintf-posix.sh: Likewise.
96245         * tests/test-xprintf-posix.sh: Likewise.
96247 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96249         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
96250         hide error from 'ls', needed on OS/2.
96251         Report by Elbert Pol <elbert.pol@gmail.com>.
96253 2008-04-04  Eric Blake  <ebb9@byu.net>
96255         Make test-fseeko.c failures meaningful.
96256         * tests/test-fseeko.c: Print line number on failure.
96257         * tests/test-fseek.c: Likewise.
96258         Reported by Nelson H. F. Beebe.
96260         Improve strtod bug detection check.
96261         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
96262         required for Solaris 10.
96263         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
96265 2008-04-04  Bruno Haible  <bruno@clisp.org>
96267         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
96268         by m4/setenv.m4.
96270 2008-04-03  Eric Blake  <ebb9@byu.net>
96272         Ensure sane .version contents.
96273         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
96274         version string.
96275         * build-aux/git-version-gen: Improve documentation.
96277         Make GNU make output nicer.
96278         * top/GNUmakefile [!_have-Makefile]: Add dependency on
96279         MAKECMDGOALS to enforce message for all command line targets.  Set
96280         srcdir for use in maint.mk.
96282         Another maintainer tweak.
96283         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
96284         a target that regenerates version.
96286 2008-04-03  Jim Meyering  <meyering@redhat.com>
96288         vc-list-files: don't cause coreutils "make po-check" failure
96289         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
96291 2008-04-03  Eric Blake  <ebb9@byu.net>
96293         Allow VPATH usage of vc-list-files.
96294         * build-aux/vc-list-files (scriptversion): Add timestamp.
96295         (options): Add --help, --version, -C.
96296         (CVS): Support installed cvsu.
96298 2008-04-02  Bruno Haible  <bruno@clisp.org>
96300         Avoid some "statement with no effect" warnings from gcc.
96301         * tests/test-wctype.c (main): Explicitly ignore unused values.
96302         Reported by Jim Meyering.
96304 2008-04-02  Jim Meyering  <meyering@redhat.com>
96306         Avoid some warnings from "gcc -Wshadow".
96307         * tests/test-frexp.c (exp): Define to a different identifier.
96308         * tests/test-frexpl.c (exp): Likewise.
96310 2008-04-03  Jim Meyering  <meyering@redhat.com>
96312         bootstrap: remove dangling *.[ch] symlinks from lib
96313         * build-aux/bootstrap [dangling symlink removal]: Move find's
96314         -depth option to precede all others, to avoid a warning.
96315         Remove *.[ch] files too, and from "$source_base" (usually lib/).
96317 2008-04-02  Bruno Haible  <bruno@clisp.org>
96319         Avoid some warnings from "gcc -Wshadow".
96320         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
96321         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
96322         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
96323         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
96324         Reported by Jim Meyering.
96326 2008-04-01  Bruno Haible  <bruno@clisp.org>
96328         Fix test to work on IRIX 6.5 with cc.
96329         * tests/test-math.c (numeric_equal): New function.
96330         (main): Use it.
96332 2008-04-01  Bruno Haible  <bruno@clisp.org>
96334         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
96336 2008-04-01  Bruno Haible  <bruno@clisp.org>
96338         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
96339         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
96340         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
96341         (Depends-on): Remove math.
96343         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
96344         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
96345         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
96346         (Depends-on): Remove math.
96348         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
96349         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
96350         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
96351         (Depends-on): Remove math.
96352         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
96353         (Depends-on): Remove math.
96355         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
96356         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
96357         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
96358         (Depends-on): Remove math.
96359         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
96360         (Depends-on): Remove math.
96362         * tests/test-round1.c: Include nan.h.
96363         (main): Use NaNd instead of NAN.
96364         * modules/round-tests (Files): Add tests/nan.h.
96366         * tests/test-trunc1.c: Include nan.h.
96367         (main): Use NaNd instead of NAN.
96368         * modules/trunc-tests (Files): Add tests/nan.h.
96370         * tests/test-roundf1.c: Include nan.h.
96371         (main): Use NaNf instead of NAN.
96372         * modules/roundf-tests (Files): Add tests/nan.h.
96374         * tests/test-truncf1.c: Include nan.h.
96375         (main): Use NaNf instead of NAN.
96376         * modules/truncf-tests (Files): Add tests/nan.h.
96378         * tests/test-ceilf1.c: Include nan.h.
96379         (main): Use NaNf instead of NAN.
96380         * modules/ceilf-tests (Files): Add tests/nan.h.
96382         * tests/test-floorf1.c: Include nan.h.
96383         (main): Use NaNf instead of NAN.
96384         * modules/floorf-tests (Files): Add tests/nan.h.
96386         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
96387         (main): Use NaNf instead of NAN.
96388         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
96390         * tests/test-isnand.c: Include nan.h instead of <math.h>.
96391         (main): Use NaNd instead of NAN.
96392         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
96394         * tests/test-frexp.c: Include nan.h.
96395         (main): Use NaNd instead of NAN.
96396         * modules/frexp-tests (Files): Add tests/nan.h.
96398         * lib/isnan.c: Don't include <math.h>.
96399         (FUNC): Don't use NAN macro.
96400         * modules/isnand-nolibm (Depends-on): Remove math.
96401         * modules/isnanf-nolibm (Depends-on): Remove math.
96402         * modules/isnanl (Depends-on): Remove math.
96403         * modules/isnanl-nolibm (Depends-on): Remove math.
96405         * tests/nan.h: New file.
96407 2008-04-01  Eric Blake  <ebb9@byu.net>
96409         Fix typos.
96410         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
96411         values to be the right type.
96413         For now, cater to gnulib strtod inaccuracies.
96414         * tests/test-strtod.c (main): Allow 1-ulp error on expected
96415         fractional results.  While not as nice from a QoI perspective, it
96416         is a quicker patch than correctly implementing decimal to binary
96417         rounding.
96419 2008-03-31  Eric Blake  <ebb9@byu.net>
96421         Guarantee a definition of NAN.
96422         * lib/math.in.h (NAN): Define if missing.
96423         * tests/test-math.c (main): Test it.
96424         * doc/posix-headers/math.texi (math.h): Document this.
96425         * lib/isnan.c (rpl_isnand): Use it.
96426         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
96427         * tests/test-floorf1.c (NaN): Likewise.
96428         * tests/test-frexp.c (NaN): Likewise.
96429         * tests/test-isnand.c (NaN): Likewise.
96430         * tests/test-isnanf.c (NaN): Likewise.
96431         * tests/test-round1.c (NaN): Likewise.
96432         * tests/test-roundf1.c (NaN): Likewise.
96433         * tests/test-snprintf-posix.h (NaN): Likewise.
96434         * tests/test-sprintf-posix.h (NaN): Likewise.
96435         * tests/test-trunc1.c (NaN): Likewise.
96436         * tests/test-truncf1.c (NaN): Likewise.
96437         * tests/test-vasnprintf-posix.c (NaN): Likewise.
96438         * tests/test-vasprintf-posix.c (NaN): Likewise.
96439         * modules/isnand-nolibm (Depends-on): Add math.
96440         * modules/isnanf-nolibm (Depends-on): Likewise.
96441         * modules/isnanl (Depends-on): Likewise.
96442         * modules/isnanl-nolibm (Depends-on): Likewise.
96443         * modules/snprintf-posix-tests (Depends-on): Likewise.
96444         * modules/sprintf-posix-tests (Depends-on): Likewise.
96445         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
96446         * modules/vsprintf-posix-tests (Depends-on): Likewise.
96447         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
96448         * modules/vasprintf-posix-tests (Depends-on): Likewise.
96450 2008-03-31  Bruno Haible  <bruno@clisp.org>
96452         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
96453         * doc/posix-functions/strtod.texi: Likewise.
96455 2008-03-31  Bruno Haible  <bruno@clisp.org>
96457         * tests/test-strtod.c (main): Don't use C99 syntax.
96459 2008-03-31  Bruno Haible  <bruno@clisp.org>
96461         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
96462         Reported by Eric Blake.
96464 2008-03-31  Jim Meyering  <meyering@redhat.com>
96466         Don't compare actual signbit return values.
96467         * tests/test-strtod.c (main): Rather, compare only their
96468         zero/non-zero nature.
96470 2008-03-31  Eric Blake  <ebb9@byu.net>
96472         More strtod documentation.
96473         * doc/posix-functions/strtod.texi (strtod): Interpret more test
96474         failures as distinct bugs.
96476 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
96478         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
96479         Problem reported by Erik Benada in
96480         <http://lists.gnu.org/r/bug-gnulib/2008-03/msg00249.html>.
96482 2008-03-30  Bruno Haible  <bruno@clisp.org>
96484         * tests/test-strtod.c: Add comments about which assertion fails on which
96485         platform.
96486         * doc/posix-functions/strtod.texi: Add info about many more platforms.
96488 2008-03-30  Eric Blake  <ebb9@byu.net>
96490         Test signbit behavior on zeros.
96491         * tests/test-signbit.c (test_signbitf): Add tests for zero.
96492         (test_signbitd, test_signbitl): Likewise.
96494         More strtod touchups.
96495         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
96496         sign of negative underflow, for now.  Use .5, not .1.
96497         * doc/posix-functions/strtod.texi (strtod): Mention these
96498         limitations.
96499         Reported by Jim Meyering.
96501 2008-03-30  Bruno Haible  <bruno@clisp.org>
96503         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
96504         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
96506 2008-03-30  Bruno Haible  <bruno@clisp.org>
96508         Avoid failure when attempting to return empty iconv results on some
96509         platforms.
96510         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
96511         allocation, don't report ENOMEM when the resulting string is empty.
96513 2008-03-30  Bruno Haible  <bruno@clisp.org>
96515         Fix buffer overrun.
96516         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
96517         Don't consider the width for tmp_length. Check count against tmp_length
96518         before doing the padding. Ensure enough allocation during padding.
96520 2008-03-30  Eric Blake  <ebb9@byu.net>
96522         strtod touchups.
96523         * lib/strtod.c (strtod): Avoid compiler warnings.
96524         Reported by Jim Meyering.
96526 2008-03-30  Bruno Haible  <bruno@clisp.org>
96528         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
96529         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
96530         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
96531         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
96532         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
96533         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
96534         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
96535         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
96537         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
96538         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
96539         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
96540         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
96541         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
96542         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
96543         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
96544         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
96546         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
96547         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
96548         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
96549         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
96550         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
96551         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
96552         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
96553         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
96555         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
96556         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
96558         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
96559         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
96561         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
96562         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
96564         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
96565         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
96566         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
96568         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
96569         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
96570         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
96572         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
96573         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
96574         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
96576         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
96577         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
96578         * modules/vasprintf (Depends-on): Add EOVERFLOW.
96580         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
96581         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
96582         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
96583         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
96584         (Depends-on): Add EOVERFLOW.
96585         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
96586         (Depends-on): Add EOVERFLOW.
96587         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
96588         (Depends-on): Add EOVERFLOW.
96589         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
96590         (Depends-on): Add EOVERFLOW.
96591         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
96592         (Depends-on): Add EOVERFLOW.
96593         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
96594         (Depends-on): Add EOVERFLOW.
96595         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
96596         (Depends-on): Add EOVERFLOW.
96597         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
96598         (Depends-on): Add EOVERFLOW.
96600         * lib/sprintf.c (EOVERFLOW): Remove fallback.
96601         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
96602         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
96604         * lib/snprintf.c (EOVERFLOW): Remove fallback.
96605         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
96606         * modules/snprintf (Depends-on): Add EOVERFLOW.
96608         * lib/poll.c (EOVERFLOW): Remove fallback.
96609         * modules/poll (Depends-on): Add EOVERFLOW.
96611         * lib/getugroups.c (EOVERFLOW): Remove fallback.
96612         * modules/getugroups (Depends-on): Add EOVERFLOW.
96614         * lib/getdelim.c (EOVERFLOW): Remove fallback.
96615         * modules/getdelim (Depends-on): Add EOVERFLOW.
96617         * lib/ftell.c (EOVERFLOW): Remove fallback.
96618         * modules/ftell (Depends-on): Add EOVERFLOW.
96620         * lib/fprintf.c (EOVERFLOW): Remove fallback.
96621         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
96622         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
96624         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
96626         * modules/EOVERFLOW-tests: New file.
96627         * tests/test-EOVERFLOW.c: New file.
96629         * modules/EOVERFLOW: New file.
96630         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
96632 2008-03-30  Bruno Haible  <bruno@clisp.org>
96634         Fix bug introduced on 2007-06-10.
96635         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
96636         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
96638 2008-03-30  Bruno Haible  <bruno@clisp.org>
96640         Improve freadseek's efficiency after ungetc.
96641         * lib/freadseek.c: Include freadahead.h.
96642         (freadptrinc): New function, extracted from freadseek.
96643         (freadseek): Use it in a loop. Use freadahead to determine the number
96644         of loop iterations.
96645         * modules/freadseek (Depends-on): Add freadahead.
96646         (configure.ac): Require AC_C_INLINE.
96648 2008-03-30  Bruno Haible  <bruno@clisp.org>
96650         * lib/freadseek.c (freadseek): Don't ignore the return value of
96651         freadptr.
96653 2008-03-29  Eric Blake  <ebb9@byu.net>
96655         Add hex float support.
96656         * modules/strtod (Depends-on): Add c-ctype.
96657         (Link): Mention POW_LIB.
96658         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
96659         whitespace between 'e' and exponent.
96660         * tests/test-strtod.c (main): Enable hex float tests.
96661         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
96662         now provides.
96664         Document various strtod bugs, with some fixes.
96665         * doc/posix-functions/strtod.texi (strtod): Document bugs with
96666         "-0x", "inf", "nan", and hex constants.
96667         * doc/posix-functions/atof.texi (atof): Likewise.
96668         * modules/stdlib (Makefile.am): Support strtod.
96669         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
96670         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
96671         detect additional strtod bugs.
96672         * lib/stdlib.in.h (rpl_strtod): Add declarations.
96673         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
96674         bool where appropriate.  Parse 'inf' and 'nan'.
96675         * tests/test-strtod.c: New file.
96676         * modules/strtod (Depends-on): Add stdbool, stdlib.
96677         (configure.ac): Turn on module indicator.
96678         * modules/strtod-tests: New module.
96680 2008-03-29  Eric Blake  <ebb9@byu.net>
96682         Fix ftell on mingw.
96683         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
96684         * modules/ftell-tests (Depends-on): Add binary-io.
96685         * modules/ftello-tests (Depends-on): Likewise.
96686         * tests/test-ftell.c (main): Enhance test to cover behavior after
96687         ungetc.  Enforce binary mode.
96688         * tests/test-ftello.c (main): Likewise.
96690         Pass test-freadseek on cygwin.
96691         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
96692         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
96693         ungetc buffer.
96695         * tests/test-fflush2.c (main): Fix typo.
96697 2008-03-29  Bruno Haible  <bruno@clisp.org>
96699         * tests/test-fflush2.c (main): Temporarily disable the contents of
96700         this test.
96701         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
96702         Reported by Eric Blake.
96704 2008-03-28  Simon Josefsson  <simon@josefsson.org>
96706         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
96707         (GC_SHA224_DIGEST_SIZE): Add.
96709         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
96710         (gc_hash_digest_length): Likewise.
96711         (gc_hash_buffer): Likewise.
96713 2008-03-25  Bruno Haible  <bruno@clisp.org>
96715         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
96716         detail which gettext release to use.
96717         Reported by Simon Josefsson.
96719 2008-03-26  Jim Meyering  <meyering@redhat.com>
96721         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
96722         * modules/gnumakefile (clean-GNUmakefile): Also, use
96723         test ... && ... || : syntax rather than if-then ... fi.
96725         gnumakefile: Don't double-quote-expand $(VPATH) value.
96726         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
96728 2008-03-24  Eric Blake  <ebb9@byu.net>
96730         Alter GNUmakefile to install into top directory.
96731         * modules/maintainer-makefile: Split, and add dependency...
96732         * modules/gnumakefile: to this new module.
96733         * build-aux/GNUmakefile: Move...
96734         * top/GNUmakefile: ...here.
96735         * build-aux/maint.mk: Move...
96736         * top/maint.mk: ...here.
96737         * MODULES.html.sh (Support for maintaining...): Document new
96738         module.
96740 2008-03-23  Bruno Haible  <bruno@clisp.org>
96742         * gnulib-tool: New options --vc-files, --no-vc-files.
96743         (func_usage): Document them.
96744         (vc_files): New variable.
96745         (func_import): Consider vc_files.
96746         (func_create_testdir): Set vc_files to empty.
96747         Suggested by Jim Meyering and Karl Berry.
96749 2008-03-23  Bruno Haible  <bruno@clisp.org>
96751         Fix regex compilation error on HP-UX 11.
96752         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
96753         * modules/regex (Files): Add m4/mbstate_t.m4.
96754         Reported by Ton Voon <ton.voon@altinity.com>.
96756 2008-03-23  Bruno Haible  <bruno@clisp.org>
96758         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
96760 2008-03-23  Eric Blake  <ebb9@byu.net>
96761             Bruno Haible  <bruno@clisp.org>
96763         Install files from top/ in the destination directory.
96764         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
96765         augmentation also for the files from top/.
96766         (func_import, func_create_testdir): Rewrite file names:
96767         top/filename -> filename.
96769 2008-03-23  Bruno Haible  <bruno@clisp.org>
96771         Tweak "gnulib --version" output.
96772         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
96774 2008-03-23  Bruno Haible  <bruno@clisp.org>
96776         Tweak "gnulib --version" output.
96777         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
96778         rather than contents of ChangeLog, when possible.
96780 2008-03-21  Eric Blake  <ebb9@byu.net>
96782         More --version tweaks.
96783         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
96784         date of last ChangeLog entry.
96786 2008-03-21  Jim Meyering  <meyering@redhat.com>
96788         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
96790 2008-03-20  Eric Blake  <ebb9@byu.net>
96792         VPATH fix.
96793         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
96795 2008-03-20  Simon Josefsson  <simon@josefsson.org>
96797         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
96798         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
96800 2008-03-20  Eric Blake  <ebb9@byu.net>
96802         Sync GNUmakefile with coreutils.
96803         * build-aux/GNUmakefile (have-Makefile): Rename...
96804         (_have-Makefile): ...to this, for namespace consideration.
96805         (GNUmakefile.cfg): Include, if present.
96806         (_autoreconf): Define a default.
96807         (_is-dist-target): New rule for rebuilds to pick up intra-release
96808         version.
96809         (maint-cfg.mk): Rename...
96810         (cfg.mk): ...to this.
96812 2008-03-18  Jim Meyering  <meyering@redhat.com>
96814         New script and module: mktempd
96815         * MODULES.html.sh (maint+release support): Add mktempd.
96816         * build-aux/mktempd: New file.
96817         * modules/mktempd: New file.
96819 2008-03-15  Jim Meyering  <meyering@redhat.com>
96821         Undo last change.
96822         * lib/sha1.c, lib/md5.c: 63 != ~63.
96823         Reported by Andreas Schwab.
96825         sha1.c, md5.c: Hoist a redundant expression.
96826         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
96827         "ctx->buflen" only once, before calling *_process_block.
96828         * lib/md5.c (md5_process_bytes): Likewise.
96830 2008-03-14  Eric Blake  <ebb9@byu.net>
96832         Bump copyright year in files generated by gnulib-tool.
96833         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
96834         gnulib-tool, rather than hard-coding it.
96836         Fix 'gnulib-tool --version' output to work with git.
96837         * gnulib-tool (func_gnulib_dir): New function, extracted from...
96838         (startup): ...here.
96839         (func_version): Use it to invoke git-version-gen, rather than
96840         relying on CVS keyword expansion.  Modernize wording.
96841         (cvsdatestamp, last_checkin_date, version): Kill unused
96842         variables.
96844 2008-03-12  Jim Meyering  <meyering@redhat.com>
96846         Recognize optional cast of the argument to free.
96847         * build-aux/useless-if-before-free: Update regexps.
96849         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
96851 2008-03-11  Bruno Haible  <bruno@clisp.org>
96853         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
96854         by a single package.
96855         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
96856         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
96857         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
96858         Reported by Sam Steingold <sds@gnu.org>.
96860 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
96862         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
96863         repositories.
96865 2008-03-11  Bruno Haible  <bruno@clisp.org>
96867         Avoid conflicts between local macro definitions.
96868         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
96869         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
96871 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
96872             Bruno Haible  <bruno@clisp.org>
96874         Make va_copy work with some version of xlc on AIX 5.1.
96875         * lib/stdarg.in.h: New file.
96876         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
96877         On AIX, use a <stdarg.h> file substitute.
96878         * modules/stdarg (Files): Add lib/stdarg.in.h.
96879         (Depends-on): Add include_next.
96880         (Makefile.am): Build a stdarg.h substitute if requested.
96881         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
96883 2008-03-10  Bruno Haible  <bruno@clisp.org>
96885         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
96886         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
96887         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
96889 2008-03-10  Bruno Haible  <bruno@clisp.org>
96891         * modules/stdlib (Depends-on): Add include_next, remove
96892         absolute-header.
96894 2008-03-09  Bruno Haible  <bruno@clisp.org>
96896         * lib/freadahead.h (freadahead): Document more precisely.
96897         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
96898         the sum of both buffer sizes.
96899         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
96900         * NEWS: Document the change.
96902 2008-03-09  Bruno Haible  <bruno@clisp.org>
96904         Extend freadptr to return also the buffer size.
96905         * lib/freadptr.h (freadptr): Add sizep argument.
96906         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
96907         (freadptr): Add sizep argument. Determine buffer size like freadahead
96908         does.
96909         * tests/test-freadptr.c: Don't include freadahead.h.
96910         (main): Adapt for new calling convention of freadptr.
96911         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
96912         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
96913         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
96914         tests/test-freadptr2.sh.
96915         (Depends): Remove freadahead.
96916         (TESTS): Add test-freadptr2.sh.
96917         (check_PROGRAMS): Add test-freadptr2.
96919 2008-03-09  Bruno Haible  <bruno@clisp.org>
96921         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
96922         Report and solution by Simon Josefsson.
96924 2008-03-06  Bruno Haible  <bruno@clisp.org>
96926         Make fflush after ungetc work on BSD platforms.
96927         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
96928         * tests/test-fflush2.c: New file.
96929         * tests/test-fflush2.sh: New file.
96930         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
96931         tests/test-fflush2.c.
96932         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
96933         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
96935 2008-03-06  Eric Blake  <ebb9@byu.net>
96937         Likewise for ftello.
96938         * modules/ftello (Dependencies): Add extensions.
96939         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
96941 2008-03-06  Bruno Haible  <bruno@clisp.org>
96943         * modules/fseeko (Dependencies): Add extensions.
96944         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
96945         Needed on glibc systems.
96947 2008-03-06  Bruno Haible  <bruno@clisp.org>
96949         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
96950         email address.
96951         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
96953 2008-03-06  Bruno Haible  <bruno@clisp.org>
96955         * users.txt: Add libgnupdf.
96957 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
96959         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
96960         (Header File Substitutes, Function Substitutes,
96961         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
96962         (Build robot for gnulib): Fix typo.
96964 2008-03-06  Bruno Haible  <bruno@clisp.org>
96966         * doc/gnulib-tool.texi (VCS Issues): Small updates.
96967         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
96969 2008-03-06  Bruno Haible  <bruno@clisp.org>
96971         * doc/func.texi: New file, extracted from doc/gnulib.texi.
96972         * doc/gnulib.texi: Include it.
96974 2008-03-06  Simon Josefsson  <simon@josefsson.org>
96976         * modules/func (License): Change license to unlimited; there was
96977         no LGPL parts in the module anyway.
96979 2008-03-06  Simon Josefsson  <simon@josefsson.org>
96981         * modules/__func__: Renamed to modules/func.
96982         * modules/__func__-tests: Renamed to modules/func-tests.
96983         * tests/test-__func__.c: Renamed to tests/test-func.c.
96984         * m4/__func__.m4: Renamed to m4/func.m4.
96985         * doc/gnulib.texi (__func__): Section renamed to func.
96986         Suggested by Eric Blake <ebb9@byu.net>.
96988 2008-03-06  Simon Josefsson  <simon@josefsson.org>
96990         * doc/gnulib.texi (__func__): Use C99 terminology when talking
96991         about __func__.  Make example self-contained.  Suggested by Eric
96992         Blake <ebb9@byu.net>.
96994         * tests/test-__func__.c (main): Avoid extraneous () around __func.
96995         Suggested by Eric Blake <ebb9@byu.net>.
96997 2008-03-06  Simon Josefsson  <simon@josefsson.org>
96999         * modules/__func__: New file.
97000         * modules/__func__-tests: New file.
97001         * tests/test-__func__.c: New file.
97002         * m4/__func__.m4: New file.
97003         * doc/gnulib.texi (__func__): Document __func__ module.
97005 2008-03-05  Simon Josefsson  <simon@josefsson.org>
97007         * modules/byteswap (License): Re-license as LGPLv2+.
97009 2008-03-05  Simon Josefsson  <simon@josefsson.org>
97011         * doc/Makefile: Add pdf target.
97013 2008-03-05  Simon Josefsson  <simon@josefsson.org>
97015         * modules/inline (License): Use 'unlimited', since there are only
97016         *.m4 files in this module.
97018 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
97019             Bruno Haible  <bruno@clisp.org>
97021         Add support for HP C 7.1 on OpenVMS 8.3.
97022         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
97024 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
97026         Update VMS specifics.
97027         * lib/getopt.c [VMS]: Remove include of unixlib.h.
97029 2008-03-02  Jim Meyering  <meyering@redhat.com>
97031         Remove the last dependency on the "free" module.
97032         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
97033         Reported by Bob Proulx.
97035         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
97037         Remove useless "if" tests before free.  Deprecate "free" module.
97038         * doc/posix-functions/free.texi: Mention that this
97039         module is no longer useful.
97040         * modules/free (Notice): Say this module is obsolete.
97041         * modules/readutmp (Depends-on): Remove free.
97042         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
97043         * lib/putenv.c (putenv): Likewise.
97044         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
97045         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
97046         * tests/test-c-strcasestr.c (main): Likewise.
97047         * tests/test-c-strstr.c (main): Likewise.
97048         * tests/test-mbscasestr1.c (main): Likewise.
97049         * tests/test-mbscasestr2.c (main): Likewise.
97050         * tests/test-mbsstr1.c (main): Likewise.
97051         * tests/test-mbsstr2.c (main): Likewise.
97052         * tests/test-memmem.c (main): Likewise.
97053         * tests/test-strcasestr.c (main): Likewise.
97054         * tests/test-striconv.c (main): Likewise.
97055         * tests/test-striconveh.c (main): Likewise.
97056         * tests/test-striconveha.c (main): Likewise.
97057         * tests/test-strstr.c (main): Likewise.
97059         * build-aux/git-version-gen: Adjust a comment and the Usage string.
97061         bootstrap: sync from coreutils again
97062         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
97064 2008-03-01  Jim Meyering  <meyering@redhat.com>
97066         bootstrap: sync from coreutils
97067         * build-aux/bootstrap (update_po_files): Copy a .po file into place
97068         also when the target doesn't exist.
97070 2008-03-01  Eric Blake  <ebb9@byu.net>
97072         Fix bugs in last patch.
97073         * lib/memchr2.c (memchr2): Fix typo.
97074         * tests/test-memchr2.c: Test previous bug, and don't use GNU
97075         extension.
97076         Reported by Bruce Korb.
97078         New module 'memchr2'.
97079         * modules/memchr2: New file.
97080         * modules/memchr2-tests: Likewise.
97081         * lib/memchr2.h: Likewise.
97082         * lib/memchr2.c: Likewise, based on memchr.c.
97083         * tests/test-memchr2.c: New test.
97084         * MODULES.html.sh (String handling): Add memchr2.
97086 2008-02-29  Bruno Haible  <bruno@clisp.org>
97088         * modules/freadseek-tests: New file.
97089         * tests/test-freadseek.sh: New file.
97090         * tests/test-freadseek.c: New file.
97092         New module 'freadseek'.
97093         * modules/freadseek: New file.
97094         * lib/freadseek.h: New file.
97095         * lib/freadseek.c: New file.
97096         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
97098 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
97100         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
97101         wydawca.
97103         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
97104         program_invocation_name and program_invocation_short_name are
97105         present.
97107 2008-02-28  Bruno Haible  <bruno@clisp.org>
97109         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
97110         * tests/test-freadptr.sh: Also test non-seekable stdin.
97112 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
97114         * build-aux/bootstrap (source_base, m4_base)
97115         (doc_base, tests_base): New variables.
97116         (gnulib_tool_options): Do not hardcode base directories, use
97117         the above variables instead.
97119 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
97121         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
97123 2008-02-28  Bruno Haible  <bruno@clisp.org>
97125         * modules/freadptr-tests: New file.
97126         * tests/test-freadptr.sh: New file.
97127         * tests/test-freadptr.c: New file.
97129         New module 'freadptr'.
97130         * modules/freadptr: New file.
97131         * lib/freadptr.h: New file.
97132         * lib/freadptr.c: New file.
97133         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
97135 2008-02-26  Karl Berry  <karl@freefriends.org>
97137         Sync from Libtool:
97138         * libltdl/argz.c (argz_add, argz_count): New functions.
97139         * libltdl/argz.in.h: Declare them.
97140         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
97142 2008-02-22  Bruno Haible  <bruno@clisp.org>
97144         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
97145         is a pointer type.  Needed for HP-UX 10.
97146         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
97147         * doc/posix-functions/gmtime_r.texi: Likewise.
97148         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
97150 2008-02-24  Bruno Haible  <bruno@clisp.org>
97152         * modules/environ-tests: New file.
97153         * tests/test-environ.c: New file.
97155         New module 'environ'.
97156         * modules/environ: New file.
97157         * lib/unistd.in.h (environ): New declaration.
97158         * m4/environ.m4: New file.
97159         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
97160         after use.
97161         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
97162         HAVE_DECL_ENVIRON.
97163         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
97164         HAVE_DECL_ENVIRON.
97165         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
97166         wrong claim that 'environ' is missing on some systems.
97167         * modules/execute (Depends-on): Add environ.
97168         * lib/execute.c (environ): Remove fallback declaration.
97169         * modules/pipe (Depends-on): Add environ.
97170         * lib/pipe.c (environ): Remove fallback declaration.
97171         * modules/setenv (Depends-on): Add environ.
97172         * lib/setenv.c (environ): Remove fallback declaration.
97173         * modules/unsetenv (Depends-on): Add environ.
97174         * lib/unsetenv.c (environ): Remove fallback declaration.
97175         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
97176         m4/environ.m4.
97177         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
97178         (gl_PREREQ_UNSETENV): Likewise.
97180 2008-02-24  Bruno Haible  <bruno@clisp.org>
97182         * doc/posix-functions/environ.texi: Document the MacOS X problem.
97184 2008-02-20  Bob Proulx  <bob@proulx.com>
97186         Enable use of older two part flavor 'git describe'.
97187         * build-aux/git-version-gen: If using the older two part flavor of
97188         git version then recreate the third part now present in the
97189         newer three part flavor of git describe.
97191 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
97193         * lib/fts.c (fts_build): Typo correction to comment.
97195 2008-02-17  Bruno Haible  <bruno@clisp.org>
97197         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
97198         generating no-op conflicts.
97200 2008-02-17  Bruno Haible  <bruno@clisp.org>
97202         Speed up by 10%.
97203         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
97204         result_entries, rather than an index-based loop.
97206 2008-02-17  Bruno Haible  <bruno@clisp.org>
97208         Speed up by 25%.
97209         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
97210         'hashcode_cached'.
97211         (entry_create): New function.
97212         (entry_hashcode): Use the cached hashcode if possible.
97213         (read_changelog_file, try_split_merged_entry): Use entry_create.
97215 2008-02-17  Bruno Haible  <bruno@clisp.org>
97217         Speed up from O(n^2) to O(n) for long ChangeLog files.
97218         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
97219         (read_changelog_file): Change implementation of entries_reversed list
97220         to rbtreehash.
97221         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
97223 2008-02-17  Bruno Haible  <bruno@clisp.org>
97225         New option --split-merged-entry.
97226         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
97227         (find_paragraph_end, try_split_merged_entry): New functions.
97228         (long_options): Add option --split-merged-entry.
97229         (usage): Document option --split-merged-entry.
97230         (main): Implement option --split-merged-entry.
97231         Reported by Eric Blake.
97233 2008-02-17  Bruno Haible  <bruno@clisp.org>
97235         * lib/git-merge-changelog.c: Include c-strstr.h.
97236         (main): Support the "git pull --rebase" situation.
97237         * modules/git-merge-changelog (Depends-on): Add c-strstr.
97238         Reported by Eric Blake.
97240 2008-02-16  Eric Blake  <ebb9@byu.net>
97242         Avoid doubling \ in common case of "c-maybe" quoting style.
97243         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
97244         eliding outer quotes.
97245         * lib/quotearg.h: Document this.
97246         * tests/test-quotearg.c (result_strings, inputs, results_g)
97247         (flag_results, locale_results): Test it by adding a new string to
97248         each test group.
97249         (compare_strings): Test new string.
97251 2008-02-13  Eric Blake  <ebb9@byu.net>
97253         Avoid trigraph quoting in default output.
97254         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
97255         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
97256         unless explicitly requested.
97257         * tests/test-quotearg.c (flag_results, main): Add additional tests.
97259 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
97261         Don't rely on signed integer overflowing to negative value.
97262         * lib/getugroups.c (getugroups): Include <limits.h>.
97263         Instead, compare against INT_MAX, and increment only if the test passes.
97265 2008-02-13  Jim Meyering  <meyering@redhat.com>
97266         and Eric Blake  <ebb9@byu.net>
97268         Avoid shadowing warning and compile errors on Linux.
97269         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
97270         forwarding macros on Linux.
97271         (dcgettext): Define a stub, for Linux.
97272         (results_g, main): Avoid warnings.
97274 2008-02-12  Eric Blake  <ebb9@byu.net>
97276         Silence warning in last patch.
97277         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
97279         Quotearg part 4: add tests, fix c-maybe colon quoting.
97280         * lib/quotearg.h: Improve documentation.
97281         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
97282         escapes when adding outer quotes.  When quoting trigraphs, use
97283         valid C notation.  When quoting NUL, omit extra characters if next
97284         character is not digit.  Alter prototype.
97285         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
97286         callers.
97287         * modules/quotearg-tests: New module.
97288         * tests/test-quotearg.c: New test.
97290 2008-02-07  Eric Blake  <ebb9@byu.net>
97292         Quotearg part 3: add flag to control outer quote elision.
97293         * lib/quotearg.h (c_maybe_quoting_style): New style.
97294         (enum quoting_flags): Better documentation of flags.
97295         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
97296         c-maybe style.
97297         (quotearg_buffer_restyled): Handle new flag to elide outer
97298         quotes.
97300         Quotearg part 2: add flag that can control NUL elision.
97301         * lib/quotearg.h (set_quoting_flags): New prototype.
97302         * lib/quotearg.c (struct quoting_options): Add flag field.
97303         (set_quoting_flags): New function.
97304         (quotearg_buffer_restyled): Add flags parameter.
97305         (quotearg_alloc_mem): Set the flag if length cannot be returned.
97306         (quotearg_n_options): Set the flag, since length cannot be
97307         returned.
97308         (quoting_options_from_style): Default flags correctly.
97310         Quotearg part 1: more wrappers, restore quotearg_char state.
97311         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
97312         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
97313         (quotearg_colon_mem): New wrappers.
97314         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
97315         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
97316         functions.
97317         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
97318         (quotearg_colon_mem): New functions.
97320 2008-02-11  Bruno Haible  <bruno@clisp.org>
97322         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
97323         library in the current directory: it does not work with parallel make.
97324         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
97326 2008-02-11  Bruno Haible  <bruno@clisp.org>
97328         * .gitattributes: New file.
97330 2008-02-11  Jim Meyering  <meyering@redhat.com>
97332         useless-if-before-free: Fix reversed exit values.
97333         * build-aux/useless-if-before-free: Use correct values
97334         for EXIT_MATCH and EXIT_NO_MATCH.
97336         * build-aux/useless-if-before-free: Close stdout carefully.
97338 2008-02-10  Bruno Haible  <bruno@clisp.org>
97340         New module 'git-merge-changelog'.
97341         * modules/git-merge-changelog: New file.
97342         * lib/git-merge-changelog.c: New file.
97344 2008-02-10  Jim Meyering  <meyering@redhat.com>
97346         useless-if-before-free: New option: --list (-l).
97348         useless-if-before-free: Don't exit immediately upon open failure.
97349         * build-aux/useless-if-before-free: Exit 2 for errors.
97350         Upon failure to open a file, don't exit immediately.
97351         Rather, just warn and continue with any remaining files.
97353 2008-02-10  Bruno Haible  <bruno@clisp.org>
97355         New abstract list operation 'node_set_value'.
97356         * lib/gl_list.h (gl_list_node_set_value): New function.
97357         (struct gl_list_implementation): New field node_set_value.
97358         * lib/gl_list.c (gl_list_node_set_value): New function.
97359         * lib/gl_array_list.c (gl_array_node_set_value): New function.
97360         (gl_array_list_implementation): Update.
97361         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
97362         (gl_carray_list_implementation): Update.
97363         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
97364         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
97365         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
97366         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
97367         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
97368         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
97369         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
97370         Update.
97371         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
97372         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
97373         (gl_sublist_list_implementation): Update.
97375 2008-02-10  Bruno Haible  <bruno@clisp.org>
97377         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
97378         Needed when ELEMENT is #defined to 'some_type *'.
97380 2008-02-10  Jim Meyering  <meyering@redhat.com>
97382         New script and module: useless-if-before-free
97383         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
97384         * build-aux/useless-if-before-free: New file.
97385         * modules/useless-if-before-free: New file.
97387         * build-aux/gitlog-to-changelog: Use committer date, not author date.
97389         xstrtol_error: Fix typo.
97390         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
97391         s/exit_failure/exit_status/.
97393 2008-02-09  Jim Meyering  <meyering@redhat.com>
97395         New script and module: gitlog-to-changelog
97396         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
97397         * modules/gitlog-to-changelog: New file.
97398         * build-aux/gitlog-to-changelog: New file.
97400 2008-02-08  Jim Meyering  <meyering@redhat.com>
97402         Avoid two "parameter unused" warnings.
97403         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
97404         Mark "st" as used.
97406         Use "git COMMAND", not "git-COMMAND".
97407         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
97408         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
97409         * build-aux/git-version-gen: Use "git status", not "git-status".
97411 2008-02-07  Bruno Haible  <bruno@clisp.org>
97413         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
97414         Avoids a crash on Windows Vista.
97415         Reported by Adam Strzelecki <ono@java.pl> via
97416         Simon Josefsson <simon@josefsson.org>.
97418 2008-02-06  Bruno Haible  <bruno@clisp.org>
97420         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
97421         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
97422         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
97423         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
97424         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
97425         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
97426         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
97427         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
97428         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
97429         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
97430         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
97431         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
97432         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
97433         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
97434         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
97435         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
97436         left-adjust flag.
97437         * tests/test-snprintf-posix.h (test_function): Likewise.
97438         * tests/test-sprintf-posix.h (test_function): Likewise.
97439         * tests/test-vasprintf-posix.c (test_function): Likewise.
97440         * doc/posix-functions/fprintf.texi: Update.
97441         * doc/posix-functions/printf.texi: Update.
97442         * doc/posix-functions/snprintf.texi: Update.
97443         * doc/posix-functions/sprintf.texi: Update.
97444         * doc/posix-functions/vfprintf.texi: Update.
97445         * doc/posix-functions/vprintf.texi: Update.
97446         * doc/posix-functions/vsnprintf.texi: Update.
97447         * doc/posix-functions/vsprintf.texi: Update.
97448         Reported by Peter Fales <psfales@alcatel-lucent.com>.
97450 2008-02-06  Bruno Haible  <bruno@clisp.org>
97452         Fix bug introduced on 2008-01-26.
97453         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
97455 2008-02-06  Bruno Haible  <bruno@clisp.org>
97457         Fix bug introduced on 2007-06-10.
97458         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
97459         !NEED_PRINTF_FLAG_ZERO.
97461 2008-02-05  Peter O'Gorman  <pogma@thewrittenword.com>
97463         getloadavg: use libperfstat on AIX5
97464         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
97466 2008-02-03  Bruno Haible  <bruno@clisp.org>
97468         * lib/diffseq.h: Add comments about required #includes.
97469         Reported by Michael Biggs <gnulib@doubleplum.net>.
97471 2008-02-01  Bruno Haible  <bruno@clisp.org>
97473         * users.txt: Add gnuit.
97475 2008-01-31  Bruno Haible  <bruno@clisp.org>
97477         * lib/md4.c (set_uint32): Mark as inline.
97478         * lib/md5.c (set_uint32): Likewise.
97479         * lib/sha1.c (set_uint32): Likewise.
97480         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
97481         * m4/md5.m4 (gl_MD5): Likewise.
97482         * m4/sha1.m4 (gl_SHA1): Likewise.
97484 2008-01-31  Jim Meyering  <meyering@redhat.com>
97486         Use "sizeof VAR", rather than a literal "4".
97487         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
97488         * lib/md4.c (md4_read_ctx): Likewise.
97489         * lib/sha1.c (sha1_read_ctx): Likewise.
97491 2008-01-31  Simon Josefsson  <simon@josefsson.org>
97493         * tests/test-sha1.c: New file, based on test-md5.c.
97495         * modules/crypto/sha1-tests: New file.
97497 2008-01-31  Simon Josefsson  <simon@josefsson.org>
97499         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
97501 2008-01-31  Jim Meyering  <meyering@redhat.com>
97503         Prefer "sizeof v" over the equivalent "4".
97504         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
97505         * lib/md5.c (set_uint32): Likewise.
97506         * lib/sha1.c (set_uint32): Likewise.
97508 2008-01-31  Simon Josefsson  <simon@josefsson.org>
97510         * lib/sha1.c (set_uint32): Mark function as static.
97512 2008-01-31  Simon Josefsson  <simon@josefsson.org>
97514         md2: clarify comments to say that alignment is not required.
97515         * lib/md2.h: Remove warning about alignment in comment.
97516         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
97517         never been required.
97519 2008-01-31  Simon Josefsson  <simon@josefsson.org>
97521         md4: adapt alignment constraint fix from sha1.
97522         * lib/md4.c (set_uint32): New function, from sha1.c
97523         (md4_read_ctx): Use it.
97524         (md4_finish_ctx): Doc fix.
97525         * lib/md4.h: Doc fix.
97527 2008-01-31  Simon Josefsson  <simon@josefsson.org>
97529         md5: adapt alignment constraint fix from sha1.
97530         * lib/md5.c (set_uint32): New function, from sha1.c
97531         (md5_read_ctx): Use it.
97532         (md5_finish_ctx): Doc fix.
97533         * lib/md5.h: Doc fix.
97535 2008-01-30  Peter Palfrader  <weasel@debian.org>
97537         sha1: remove the result buffer alignment constraint
97538         * lib/sha1.c (set_uint32): New function.
97539         (sha1_read_ctx): Rewrite to remove the result buffer alignment
97540         constraint.
97541         (sha1_finish_ctx): Remove comment warning about alignment constraint.
97542         * lib/sha1.h: Likewise.
97544 2008-01-30  Andreas Schwab  <schwab@suse.de>
97545             Bruno Haible  <bruno@clisp.org>
97547         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
97548         correct definition of LDBL_MIN_EXP.
97550 2008-01-30  Karl Berry  <karl@gnu.org>
97552         * config/srclist-update: try to preserve x bit on updates.
97553         * config/srclistvars.sh: update for karl.
97555 2008-01-29  Jim Meyering  <meyering@redhat.com>
97557         vasnprintf.c: Avoid warning about unused label
97558         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
97559         "overflow" label definition and associated code with the
97560         same cpp condition that guards the sole use of that label.
97562 2008-01-26  Bruno Haible  <bruno@clisp.org>
97564         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
97565         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
97566         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
97567         * lib/isnanl-nolibm.h (isnanl): Likewise.
97568         Reported by Paul Eggert <eggert@cs.ucla.edu>.
97570 2008-01-26  Bruno Haible  <bruno@clisp.org>
97572         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
97573         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
97575 2008-01-26  Bruno Haible  <bruno@clisp.org>
97577         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
97578         GCC >= 4.0 built-in.
97579         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
97581 2008-01-26  Bruno Haible  <bruno@clisp.org>
97583         Rename isnan, applicable to 'double' only, to isnand.
97584         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
97585         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
97586         (configure.ac): Update.
97587         (Include): Replace "isnan.h" with "isnand.h".
97588         * m4/isnand.m4: Renamed from m4/isnan.m4.
97589         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
97590         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
97591         instead of isnan.c.
97592         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
97593         instead of HAVE_ISNAN_IN_LIBC.
97594         (isnand): Renamed from isnan.
97595         * lib/isnand.c: New file.
97596         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
97597         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
97598         (Makefile.am): Update.
97599         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
97600         Include isnand.h instead of isnan.h.
97601         (main): Test isnand instead of isnan.
97602         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
97603         isnan-nolibm.
97604         * modules/frexp (Depends-on): Likewise.
97605         * modules/frexp-tests (Depends-on): Likewise.
97606         * modules/frexp-nolibm (Depends-on): Likewise.
97607         * modules/frexp-nolibm-tests (Depends-on): Likewise.
97608         * modules/isfinite (Depends-on): Likewise.
97609         * modules/round-tests (Depends-on): Likewise.
97610         * modules/signbit (Depends-on): Likewise.
97611         * modules/signbit-tests (Depends-on): Likewise.
97612         * modules/snprintf-posix (Depends-on): Likewise.
97613         * modules/sprintf-posix (Depends-on): Likewise.
97614         * modules/trunc-tests (Depends-on): Likewise.
97615         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
97616         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
97617         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
97618         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
97619         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
97620         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
97621         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
97622         * modules/vasnprintf-posix (Depends-on): Likewise.
97623         * modules/vasprintf-posix (Depends-on): Likewise.
97624         * modules/vfprintf-posix (Depends-on): Likewise.
97625         * modules/vsnprintf-posix (Depends-on): Likewise.
97626         * modules/vsprintf-posix (Depends-on): Likewise.
97627         * lib/frexp.c: Include isnand.h instead of isnan.h.
97628         (ISNAN): Set to isnand instead of isnan.
97629         * lib/isfinite.c: Include isnand.h instead of isnan.h.
97630         (gl_isfinited): Use isnand instead of isnan.
97631         * lib/signbitd.c: Include isnand.h instead of isnan.h.
97632         (gl_signbitd): Use isnand instead of isnan.
97633         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
97634         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
97635         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
97636         (main): Use isnand instead of isnan.
97637         * tests/test-round1.c: Include isnand.h.
97638         (main): Use isnand instead of isnan.
97639         * tests/test-round2.c: Include isnand.h instead of isnan.h.
97640         (ISNAN): Set to isnand instead of isnan.
97641         * tests/test-trunc1.c: Include isnand.h.
97642         (main): Use isnand instead of isnan.
97643         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
97644         (equal): Use isnand instead of isnan.
97645         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
97646         isnand-nolibm.
97647         * NEWS: Mention the change.
97649 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
97650             Bruno Haible  <bruno@clisp.org>
97652         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
97653         the GCC builtins for signbits are present and set
97654         REPLACE_SIGNBIT_USING_GCC if so.
97655         * lib/math.in.h (signbit): Define using GCC builtins if
97656         REPLACE_SIGNBIT_USING_GCC is set.
97657         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
97658         REPLACE_SIGNBIT_USING_GCC.
97659         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
97661 2008-01-25  Jim Meyering  <meyering@redhat.com>
97663         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
97664         * lib/poll.c: Include <config.h>, not "config.h".
97665         * tests/test-getaddrinfo.c: Likewise.
97667 2008-01-25  Simon Josefsson  <simon@josefsson.org>
97669         * modules/sockets-tests: New file.
97671 2008-01-24  Simon Josefsson  <simon@josefsson.org>
97673         * modules/sockets: New module, can be used to call WSA_Startup and
97674         WSA_Cleanup when needed.
97676         * lib/sockets.h, lib/sockets.c: New files.
97678         * m4/sockets.m4: New file.
97680         * tests/test-sockets.c: New file.
97682 2008-01-19  Bruno Haible  <bruno@clisp.org>
97684         * doc/posix-headers: Renamed from doc/headers.
97685         * doc/posix-functions: Renamed from doc/functions.
97686         * doc/gnulib.texi: Update.
97688 2008-01-19  Bruno Haible  <bruno@clisp.org>
97690         * doc/glibc-functions/strcasestr.texi: Include contents of
97691         doc/functions/strcasestr.texi, fixing the list of platforms.
97692         * doc/functions/strcasestr.texi: Remove file.
97694 2008-01-19  Bruno Haible  <bruno@clisp.org>
97696         * doc/glibc-functions/memmem.texi: Include contents of
97697         doc/functions/memmem.texi.
97698         * doc/functions/memmem.texi: Remove file.
97700 2008-01-18  Bruno Haible  <bruno@clisp.org>
97702         * doc/glibc-functions/*.texi: New files.
97703         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
97704         to use the new files.
97706 2008-01-17  Bruno Haible  <bruno@clisp.org>
97708         * tests/test-gethostname.c (main): Fix printf statement.
97710 2008-01-17  Simon Josefsson  <simon@josefsson.org>
97712         * modules/gethostname-tests: New file.
97714         * tests/test-gethostname.c: New file.
97716 2008-01-17  Simon Josefsson  <simon@josefsson.org>
97718         * lib/gethostname.c: Include string.h unconditionally, strncpy is
97719         used by the UNAME case.  Reported by Bruno Haible
97720         <bruno@clisp.org>.
97722 2008-01-17  Eric Blake  <ebb9@byu.net>
97724         Convert c-strcasestr to be more efficient.
97725         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
97726         (Depends-on): Add c-strcase, remove malloca, strnlen.
97727         * tests/test-c-strcasestr.c (main): Enhance test.
97728         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
97730 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
97732         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
97733         Use it in creating po/Makevars.
97735 2008-01-15  Simon Josefsson  <simon@josefsson.org>
97737         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
97738         Applications that requires it should initialize libgcrypt
97739         manually.
97741 2008-01-16  Simon Josefsson  <simon@josefsson.org>
97743         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
97745 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
97747         Fix problem with getdate on mingw32 reported by Simon Josefsson
97748         in <http://lists.gnu.org/r/bug-gnulib/2008-01/msg00192.html>.
97749         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
97750         tzname", when deciding whether to declare tzname.
97751         * lib/strftime.c (tzname): Likewise.
97753 2008-01-15  Bruno Haible  <bruno@clisp.org>
97755         Work around a MacOS X 10.5 bug in frexpl().
97756         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
97757         * doc/functions/frexpl.texi: Document the bug.
97758         Reported by Elias Pipping <pipping@gentoo.org>.
97760 2008-01-14  Eric Blake  <ebb9@byu.net>
97762         Touch up previous patch.
97763         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
97764         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
97766         Convert strcasestr module to use Two-Way algorithm.
97767         * modules/strcasestr-simple: New module, based on the old
97768         strcasestr, but with Two-Way rather than KMP.
97769         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
97770         * lib/string.in.h (rpl_strcasestr): Declare.
97771         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
97772         performance.
97773         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
97774         * modules/string (Makefile.am): Support strcasestr.
97775         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
97776         * modules/strcasestr-tests (Depends-on): Check for alarm.
97777         * tests/test-strcasestr.c: Augment test.
97778         * lib/str-two-way.h: Clean up stray macro.
97779         * NEWS: Document new module.
97780         * MODULES.html.sh (string handling): Likewise.
97781         * doc/functions/strcasestr.texi: New file.
97782         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
97783         here, since it is not a POSIX function.
97785 2008-01-14  Colin Watson  <cjwatson@debian.org>
97786             Bruno Haible  <bruno@clisp.org>
97788         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
97789         works fine; if not, set REPLACE_STRSIGNAL.
97790         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
97791         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
97792         REPLACE_STRSIGNAL.
97793         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
97794         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
97795         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
97797 2008-01-14  Bruno Haible  <bruno@clisp.org>
97799         * modules/strsignal (Include): Change to <string.h>.
97801 2008-01-14  Colin Watson  <cjwatson@debian.org>
97803         * modules/argp (Notice): Add a notice recommending to change
97804         XGETTEXT_OPTIONS.
97805         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
97807 2008-01-13  Colin Watson  <cjwatson@debian.org>
97809         * modules/strsignal-tests: New file.
97810         * tests/test-strsignal.c: New file.
97812         * lib/strsignal.c: New file, from glibc with modifications.
97813         * lib/siglist.h: New file, from glibc with modifications.
97814         * lib/string.in.h (strsignal): New declaration.
97815         * m4/strsignal.m4: New file.
97816         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
97817         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
97818         * modules/strsignal: New file.
97819         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
97820         HAVE_DECL_STRSIGNAL.
97822 2008-01-13  Bruno Haible  <bruno@clisp.org>
97824         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
97825         locale encoding is not ASCII. Needed for OpenBSD 4.0.
97826         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
97827         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
97829 2008-01-13  Bruno Haible  <bruno@clisp.org>
97831         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
97832         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
97833         * lib/argp.h (__attribute__): Likewise.
97834         * lib/c-stack.c (__attribute__): Likewise.
97835         * lib/error.h (__attribute__): Likewise.
97836         * lib/fts.c (__attribute__): Likewise.
97837         * lib/openat.h (__attribute__): Likewise.
97838         * lib/stdio.in.h (__attribute__): Likewise.
97839         * lib/string.in.h (__attribute__): Likewise.
97840         * lib/utimens.c (__attribute__): Likewise.
97841         * lib/vasnprintf.h (__attribute__): Likewise.
97842         * lib/xalloc.h (__attribute__): Likewise.
97843         * lib/xprintf.h (__attribute__): Likewise.
97844         * lib/xstrtol.h (__attribute__): Likewise.
97845         * lib/xvasprintf.h (__attribute__): Likewise.
97847 2008-01-12  Bruno Haible  <bruno@clisp.org>
97849         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
97850         * doc/glibc-headers/a.out.texi: New file.
97851         * doc/glibc-headers/aliases.texi: New file.
97852         * doc/glibc-headers/alloca.texi: New file.
97853         * doc/glibc-headers/ar.texi: New file.
97854         * doc/glibc-headers/argp.texi: New file.
97855         * doc/glibc-headers/argz.texi: New file.
97856         * doc/glibc-headers/byteswap.texi: New file.
97857         * doc/glibc-headers/crypt.texi: New file.
97858         * doc/glibc-headers/endian.texi: New file.
97859         * doc/glibc-headers/envz.texi: New file.
97860         * doc/glibc-headers/err.texi: New file.
97861         * doc/glibc-headers/error.texi: New file.
97862         * doc/glibc-headers/execinfo.texi: New file.
97863         * doc/glibc-headers/fpu_control.texi: New file.
97864         * doc/glibc-headers/fstab.texi: New file.
97865         * doc/glibc-headers/fts.texi: New file.
97866         * doc/glibc-headers/getopt.texi: New file.
97867         * doc/glibc-headers/ieee754.texi: New file.
97868         * doc/glibc-headers/ifaddrs.texi: New file.
97869         * doc/glibc-headers/libintl.texi: New file.
97870         * doc/glibc-headers/mcheck.texi: New file.
97871         * doc/glibc-headers/mntent.texi: New file.
97872         * doc/glibc-headers/obstack.texi: New file.
97873         * doc/glibc-headers/paths.texi: New file.
97874         * doc/glibc-headers/printf.texi: New file.
97875         * doc/glibc-headers/pty.texi: New file.
97876         * doc/glibc-headers/resolv.texi: New file.
97877         * doc/glibc-headers/shadow.texi: New file.
97878         * doc/glibc-headers/sysexits.texi: New file.
97879         * doc/glibc-headers/ttyent.texi: New file.
97881 2008-01-12  Jim Meyering  <meyering@redhat.com>
97883         announce-gen: emit Gnulib's git-based version string.
97884         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
97885         New option --gnulib-version=V, where V is expected to be
97886         the output of running git describe in the gnulib directory.
97887         (get_tool_versions): Request feedback on xdelta.  I suspect it's
97888         not useful, and plan to stop publishing an xdelta file with each
97889         coreutils release.
97891         * build-aux/announce-gen: Also check for lzma-compressed files.
97893 2008-01-11  Bruno Haible  <bruno@clisp.org>
97895         * tests/test-memmem.c (main): Increase maximum allowed time.
97896         * tests/test-strstr.c (main): Likewise.
97898 2008-01-11  Bruno Haible  <bruno@clisp.org>
97900         * doc/functions/memmem.texi: Add more precisions about platforms.
97901         * doc/functions/strstr.texi: Likewise.
97903 2008-01-10  Eric Blake  <ebb9@byu.net>
97905         * m4/strstr.m4: Delete cruft from copy-n-paste.
97906         Reported by Bruno Haible.
97908 2008-01-10  Bruno Haible  <bruno@clisp.org>
97910         Make c-strstr rely on strstr.
97911         * lib/c-strstr.c: Don't include str-kmp.h.
97912         (c_strstr): Define in terms of strstr.
97913         * modules/c-strstr (Files): Remove lib/str-kmp.h.
97914         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
97916 2008-01-10  Bruno Haible  <bruno@clisp.org>
97918         * doc/gnulib.texi (String Functions in C Locale): New section.
97919         * doc/c-ctype.texi: New file.
97920         * doc/c-strcase.texi: New file.
97921         * doc/c-strcaseeq.texi: New file.
97922         * doc/c-strcasestr.texi: New file.
97923         * doc/c-strstr.texi: New file.
97924         * doc/c-strtod.texi: New file.
97925         * doc/c-strtold.texi: New file.
97927 2008-01-10  Eric Blake  <ebb9@byu.net>
97929         * lib/relocatable.h: Fix a comment.
97931 2008-01-10  Eric Blake  <ebb9@byu.net>
97933         Share two-way algorithm.
97934         * lib/str-two-way.h: New file, merged from...
97935         * lib/memmem.c: ...here...
97936         * lib/strstr.c: ...and here.
97937         * modules/memmem (Files): Use it.
97938         * modules/strstr (Files): Likewise.
97940         Avoid quadratic strstr implementations.
97941         * lib/strstr.c: New file.
97942         * m4/strstr.m4: Likewise.
97943         * modules/strstr: Likewise.
97944         * modules/strstr-tests: Likewise.
97945         * tests/test-strstr.c: Likewise.
97946         * lib/string.in.h (rpl_strstr): Declare.
97947         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
97948         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
97949         * modules/string (Makefile.am): Likewise.
97950         * MODULES.html.sh (string handling): Mention new module.
97951         * doc/functions/strstr.texi (strstr): Document the bug.
97953 2008-01-10  Bruno Haible  <bruno@clisp.org>
97955         * lib/relocatable.h (relocate): State whether result is freshly
97956         allocated or not.
97957         * lib/relocatable.c (relocate): Return a freshly allocated string
97958         instead of a pointer to a privately held string.
97959         Reported by Sylvain Beucler <beuc@gnu.org>.
97961 2008-01-10  Colin Watson  <cjwatson@debian.org>
97963         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
97964         s/S_ISNLK/S_ISLNK/.
97966 2008-01-09  Bruno Haible  <bruno@clisp.org>
97968         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
97969         and other files.
97970         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
97971         if it's only a guess.
97972         * modules/memmem: Simplify by depending on memmem-simple.
97974 2008-01-09  Bruno Haible  <bruno@clisp.org>
97976         Work around OpenBSD 4.0 tdelete() bug.
97977         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
97978         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
97979         macros and don't redefine the enum values.
97980         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
97981         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
97982         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
97984 2008-01-09  Bruno Haible  <bruno@clisp.org>
97986         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
97987         (main): Don't perform the tests if setlocale did not install a UTF-8
97988         locale. Needed on OpenBSD 4.0.
97989         * modules/wcwidth-tests (Depends-on): Add localcharset.
97991 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
97993         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
97994         See <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00149.html>.
97995         * NEWS: announce this.
97996         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
97998 2008-01-09  Simon Josefsson  <simon@josefsson.org>
97999         and Eric Blake  <ebb9@byu.net>
98001         Add memmem-simple module.
98002         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
98003         (gl_FUNC_MEMMEM): Separate performance from presence checks.
98004         * modules/memmem-simple: New file.
98005         * modules/memmem (Description): Tweak.
98006         * MODULES.html.sh (string handling): Mention new module.
98007         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
98008         addressed by memmem-simple.
98009         * NEWS: Document the difference.
98011 2008-01-09  Eric Blake  <ebb9@byu.net>
98013         Give gcc some memmem optimization hints.
98014         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
98015         (strcasestr): Declare as pure.
98016         * modules/memmem (Maintainer): Claim my implementation.
98018 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98020         Support AIX 6.1 and higher.
98021         * build-aux/config.libpath: Likewise.
98022         * build-aux/config.rpath: Likewise.
98024 2008-01-08  Jim Meyering  <meyering@redhat.com>
98025             Bruno Haible  <bruno@clisp.org>
98027         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
98028         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
98029         Reported by Peter Fales in
98030         <http://lists.gnu.org/r/bug-coreutils/2007-12/msg00148.html>.
98032 2008-01-08  Bruno Haible  <bruno@clisp.org>
98034         * modules/unictype/category-of (Depends-on): Add
98035         unictype/category-none.
98036         * modules/unictype/category-and-tests (Depends-on): Add
98037         unictype/category-{L,N,Lu,Nd}.
98038         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
98039         * modules/unictype/category-or-tests (Depends-on): Add
98040         unictype/category-{L,N}.
98041         * modules/unictype/category-name-tests (Depends-on): Add
98042         unictype/category-{Z,Nl}.
98043         Reported by Simon Josefsson.
98045 2008-01-08  Bruno Haible  <bruno@clisp.org>
98047         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
98048         convention better.
98049         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
98050         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
98051         Reported by Peter Miller <millerp@canb.auug.org.au>.
98053 2008-01-08  Eric Blake  <ebb9@byu.net>
98055         Rewrite memmem to guarantee linear complexity without malloc.
98056         * lib/memmem.c (memmem): Use Two-Way rather than
98057         Knuth-Morris-Pratt, to allow O(1) space usage.
98058         (critical_factorization, two_way_short_needle)
98059         (two_way_long_needle): New functions.
98060         (knuth_morris_pratt): Delete.
98061         * modules/memmem (Depends-on): No longer need malloca or stdbool.
98062         Add stdint.
98063         * tests/test-memmem.c (main): Add tests for periodic needle and
98064         sublinear performance.
98065         * doc/functions/memmem.texi (memmem): Document other deficiencies
98066         in cygwin and older glibc.
98068 2008-01-08  Bruno Haible  <bruno@clisp.org>
98070         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
98071         augmentation.
98073 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
98075         Add a configure time option: --disable-acl.
98076         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
98077         AC_ARG_ENABLE(acl).
98079 2008-01-06  Simon Josefsson  <simon@josefsson.org>
98081         * tests/test-localename.c: Don't include obsolete "setenv.h".
98083         * modules/localename-tests (Depends-on): Need unsetenv.
98085 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98087         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
98089 2008-01-06  Colin Watson  <cjwatson@debian.org>
98091         * users.txt: Add man-db.
98093 2008-01-07  Bruno Haible  <bruno@clisp.org>
98095         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
98096         previous section name.
98098 2008-01-07  Bruno Haible  <bruno@clisp.org>
98100         * lib/progname.c (set_program_name): Don't strip off a leading
98101         "lt-" prefix outside a .libs directory.
98102         Suggested by Paul Eggert.
98104 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
98105             Bruno Haible  <bruno@clisp.org>
98107         Improve memory cleanup in 'relocatable' module.
98108         * lib/relocatable.h (compute_curr_prefix): Change return type to
98109         'char *'.
98110         * lib/relocatable.c (compute_curr_prefix): Change return type to
98111         'char *'. Free curr_installdir after use.
98112         (relocate): Free curr_prefix_better after use.
98113         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
98115 2008-01-01  Bruno Haible  <bruno@clisp.org>
98117         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
98118         failure on older glibc systems.
98119         Reported by Peter Fales <psfales@alcatel-lucent.com>.
98121 2008-01-05  Eric Blake  <ebb9@byu.net>
98123         Avoid quadratic system memmem.
98124         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
98125         Reported by Ralf Wildenhues.
98127         Fix memmem test for mingw.
98128         * modules/memmem-tests (configure.ac): Check for alarm.
98129         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
98130         it.
98131         * doc/functions/memmem.texi: New file.
98132         * doc/gnulib.texi (Function Substitutes): Add memmem.
98133         Reported by Bruno Haible.
98135 2008-01-04  Bruno Haible  <bruno@clisp.org>
98137         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
98138         Require gl_HEADER_STRINGS_H_DEFAULTS, not
98139         gl_HEADER_STRING_H_DEFAULTS.
98141 2008-01-04  Eric Blake  <ebb9@byu.net>
98143         Shorten duration of memmem test.
98144         * tests/test-memmem.c (main): Use alarm to declare failure if test
98145         is taking too long.
98146         Reported by Ralf Wildenhues.
98148 2007-12-21  Simon Josefsson  <simon@josefsson.org>
98150         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
98151         string, needed by strerror.
98153 2008-01-03  Colin Watson  <cjwatson@debian.org>
98154             Bruno Haible  <bruno@clisp.org>
98156         * doc/gnulib-tool.texi (Localization): New section.
98158 2008-01-02  Bruno Haible  <bruno@clisp.org>
98160         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
98161         variables to 'unsigned char *' type.
98162         Reported by Paul Eggert.
98164 2008-01-02  Jim Meyering  <jim@meyering.net>
98166         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
98168 2007-12-31  Jim Meyering  <jim@meyering.net>
98170         Avoid use of private FTS type name.
98171         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
98173 2007-12-30  Karl Berry  <karl@gnu.org>
98175         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
98176         work around defect in Texinfo and/or the standalone Info browser.
98178 2007-12-30  Bruno Haible  <bruno@clisp.org>
98180         Unify 5 copies of the KMP code.
98181         * lib/str-kmp.h: New file.
98182         * lib/c-strcasestr.c: Include str-kmp.h.
98183         (knuth_morris_pratt): Remove function.
98184         (c_strcasestr): Update.
98185         * lib/c-strstr.c: Include str-kmp.h.
98186         (knuth_morris_pratt): Remove function.
98187         (c_strcasestr): Update.
98188         * lib/mbscasestr.c: Include str-kmp.h.
98189         (knuth_morris_pratt_unibyte): Remove function.
98190         * lib/mbsstr.c: Include str-kmp.h.
98191         (knuth_morris_pratt_unibyte): Remove function.
98192         * lib/strcasestr.c: Include str-kmp.h.
98193         (knuth_morris_pratt): Remove function.
98194         (strcasestr): Update.
98195         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
98196         * modules/c-strstr (Files): Likewise.
98197         * modules/mbscasestr (Files): Likewise.
98198         * modules/mbsstr (Files): Likewise.
98199         * modules/strcasestr (Files): Likewise.
98200         Suggested by Paul Eggert.
98202 2007-12-30  Bruno Haible  <bruno@clisp.org>
98204         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
98205         defined.
98207 2007-12-30  Bruno Haible  <bruno@clisp.org>
98209         * lib/xmalloca.h: Include xalloc.h.
98210         (xnmalloca): New macro.
98212 2007-12-30  Bruno Haible  <bruno@clisp.org>
98214         * lib/malloca.h (nmalloca): New macro.
98215         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
98216         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
98217         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
98218         knuth_morris_pratt_multibyte): Likewise.
98219         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
98220         knuth_morris_pratt_multibyte): Likewise.
98221         * lib/memmem.c (knuth_morris_pratt): Likewise.
98222         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
98224 2007-12-25  Bruno Haible  <bruno@clisp.org>
98226         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
98227         * lib/glob.c: Don't include openat.h.
98228         (link_exists2_p): Add back the code that deals with the
98229         !GLOB_ALTDIRFUNC case.
98230         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
98231         let it do the filename concatenation.
98232         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
98233         * modules/glob (Depends-on): Remove openat.
98235 2007-12-31  Bruno Haible  <bruno@clisp.org>
98237         * modules/dirfd (License): Change to LGPLv2+.
98238         Approved by Jim Meyering.
98240 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
98242         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
98243         when multiplying M by sizeof (size_t).
98245 2007-12-10  Martin Lambers  <marlam@marlam.de>
98247         Override getpagesize on mingw.
98248         * lib/getpagesize.c: New file.
98249         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
98250         * modules/getpagesize (Files): Add lib/getpagesize.c.
98251         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
98252         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
98253         REPLACE_GETPAGESIZE.
98254         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
98256 2007-12-25  Bruno Haible  <bruno@clisp.org>
98258         * modules/localcharset (Notice): New field.
98259         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
98260         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
98262 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
98263             Bruno Haible  <bruno@clisp.org>
98265         Avoid using the syntax symbol() in formatted documentation.
98266         * MODULES.html.sh (func_module): When replacing symbol() with a
98267         hyperlink, remove the parentheses. Show an error if some remain.
98268         Recognize and render the '...' syntax.
98269         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
98270         Rework. Add paragraph about GCC's inlining.
98271         * doc/alloca.texi: Likewise.
98272         * doc/error.texi: Remove parentheses from symbol reference.
98273         * doc/gnulib-intro.texi: Likewise.
98274         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
98275         * modules/fnmatch (Description): Reword to say "the ... function".
98276         * modules/full-read (Description): Likewise.
98277         * modules/full-write (Description): Likewise.
98278         * modules/safe-read (Description): Likewise.
98279         * modules/safe-write (Description): Likewise.
98280         * modules/strchrnul (Description): Likewise.
98281         * modules/trim (Description): Likewise.
98282         * modules/error (Description): Remove parentheses from symbol
98283         references.
98284         * modules/verror (Description): Likewise.
98285         Reported by Karl Berry.
98287 2007-12-25  Bruno Haible  <bruno@clisp.org>
98289         Fixup after 2007-10-16 commit.
98290         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
98292 2007-12-24  Bruno Haible  <bruno@clisp.org>
98294         Make --enable-relocatable work with DESTDIR.
98295         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
98296         to compute installdir from destprog.
98297         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
98298         also set the RELOC_DESTDIR variable.
98299         Reported by Левашев Иван <octagram@bluebottle.com>.
98301 2007-12-24  Bruno Haible  <bruno@clisp.org>
98303         Fix link error due to xalloc_die().
98304         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
98305         of xreadlink.
98306         * lib/relocwrapper.c: Update comments.
98307         * build-aux/install-reloc: Remove xreadlink.c from file list.
98308         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
98309         xreadlink.c.
98310         Reported by Левашев Иван <octagram@bluebottle.com>.
98312 2007-12-24  Bruno Haible  <bruno@clisp.org>
98314         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
98315         * lib/setenv.h: Remove file.
98316         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
98317         lib/setenv.h.
98318         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
98319         (Depends-on): Add stdlib.
98320         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
98321         gl_FUNC_UNSETENV.
98322         (Include): Replace setenv.h with <stdlib.h>.
98323         * modules/unsetenv: New file.
98324         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
98325         * lib/unsetenv.c: Include <stdlib.h> first.
98326         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
98327         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
98328         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
98329         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
98330         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
98331         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
98332         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
98333         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
98334         * doc/functions/unsetenv.texi: Update.
98335         * modules/xsetenv (Depends-on): Add unsetenv.
98336         * modules/getdate (Depends-on): Likewise.
98337         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
98338         * lib/xsetenv.c: Don't include setenv.h.
98339         * lib/getdate.y: Likewise.
98340         * lib/relocwrapper.c: Likewise.
98341         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
98342         (Depends-on): Add stdlib.
98343         * NEWS: Mention the changes.
98344         Reported by Левашев Иван <octagram@bluebottle.com>.
98346 2007-12-23  Bruno Haible  <bruno@clisp.org>
98348         * lib/memmem.c (memmem): Use lowercase variable names. Tab
98349         indentation.
98351 2007-12-23  Bruno Haible  <bruno@clisp.org>
98353         * lib/c-strcasestr.c: Add more comments.
98354         * lib/c-strstr.c: Likewise.
98355         * lib/mbscasestr.c: Likewise.
98356         * lib/mbsstr.c: Likewise.
98357         * lib/strcasestr.c: Likewise.
98358         * lib/memmem.c: Likewise.
98360 2007-12-23  Bruno Haible  <bruno@clisp.org>
98362         * tests/test-memmem.c: Include <string.h> first.
98364 2007-12-22  Bruno Haible  <bruno@clisp.org>
98366         * gnulib-tool (func_create_testdir): Change $auxdir while generating
98367         the contents of $testsbase.
98368         Reported by Ralf Wildenhues.
98370 2007-12-22  Bruno Haible  <bruno@clisp.org>
98372         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
98373         two variables local_ldadd_before, local_ldadd_last.
98375 2007-12-20  Eric Blake  <ebb9@byu.net>
98377         Work around circular library issue when cross-compiling.
98378         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
98379         that progname.o does not need to pull in rpl_memcmp.
98381 2007-12-19  Eric Blake  <ebb9@byu.net>
98383         Fix memmem to avoid O(n^2) worst-case complexity.
98384         * lib/memmem.c (knuth_morris_pratt): New function.
98385         (memmem): Use it if first few naive iterations fail.
98386         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
98387         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
98388         * modules/memchr (License): Likewise.
98389         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
98390         malloca.
98391         * tests/test-memmem.c: Rewrite, borrowing ideas from
98392         test-mbsstr1.c; the old version wouldn't even compile!
98393         * modules/memmem-tests: New file.
98394         * lib/string.in.h (rpl_memmem): Add declaration.
98395         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
98396         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
98397         REPLACE_MEMMEM.
98399 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
98401         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
98402         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
98403         before any system include files, and undef after them all.  This
98404         should fix a problem on VMS reported by John E. Malmberg in
98405         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00118.html>.
98407 2007-12-17  Eric Blake  <ebb9@byu.net>
98409         Revert addition of verify, for BSD/OS.
98410         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
98411         can't handle large files, for the sake of obsolete platforms.
98412         * modules/fseeko (Depends-on): Remove verify.
98413         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
98414         * doc/functions/ftello.texi (ftello): Likewise.
98415         * doc/functions/fgetpos.texi (fgetpos): Likewise.
98416         Reported by Larry Jones.
98418 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
98420         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
98421         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
98423 2007-12-17  Jim Meyering  <meyering@redhat.com>
98425         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
98426         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
98427         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
98428         * modules/getcwd (Depends-on): Add openat.
98429         Reported by Petr Salinger.
98431 2007-12-17  Bruno Haible  <bruno@clisp.org>
98433         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
98434         avoid a segmentation fault of the configure test on x86_64 systems.
98436 2007-12-15  Jim Meyering  <meyering@redhat.com>
98438         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
98440 2007-12-13  Eric Blake  <ebb9@byu.net>
98442         Another fseek test.
98443         * tests/test-fseek.c (main): Also test ungetc handling.
98444         * tests/test-fseeko.c (main): Likewise.
98445         * modules/fseeko (Depends-on): Add verify.
98446         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
98447         large.
98448         Reported by Larry Jones.
98450         Fix fseeko on mingw.
98451         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
98452         seek.
98454         Beef up fseek tests.
98455         * tests/test-fseek.c (main): Also test eof handling.
98456         * tests/test-fseeko.c (main): Likewise.
98457         Reported by Larry Jones.
98459 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
98461         Fix fseeko on BSD-based platforms.
98462         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
98463         successful seek.
98465 2007-12-12  Eric Blake  <ebb9@byu.net>
98467         Allow circular dependency of separate libtests.a
98468         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
98469         when use_libtests.
98471 2007-12-11  Eric Blake  <ebb9@byu.net>
98473         Fix bug with -0.0L in previous patch.
98474         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
98475         * tests/test-isnan.c (main): Also test on zeroes.
98476         * tests/test-isnanf.c (main): Likewise.
98477         * tests/test-isnanl.h (main): Likewise.
98479         Detect pseudo-denormals on x86 even when cross-compiling.
98480         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
98481         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
98482         invalid bit patterns that happen to satisfy ==.
98484         Avoid link failures with separate libtests.a.
98485         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
98486         last, to satisfy circular dependencies.
98488 2007-12-11  Eric Blake  <ebb9@byu.net>
98489         and Bruno Haible  <bruno@clisp.org>
98491         Fix OpenBSD 4.0 <float.h> handling of long double.
98492         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
98493         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
98494         * doc/headers/float.texi (float.h): Document OpenBSD bug.
98496 2007-12-11  Jim Meyering  <meyering@redhat.com>
98498         * users.txt: Add libvirt.
98500         Support versions of autoconf prior to 2.59c.
98501         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
98502         if it is not already defined.
98504 2007-12-09  Bruno Haible  <bruno@clisp.org>
98506         Let 'gnulib-tool --import' collect sources needed for the tests in
98507         tests/ rather than in lib/.
98508         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
98509         argument. If true, add rules to generate libtests.a, and put libtests.a
98510         into $(LDADD). Consider source files in subdirectories and set
98511         uses_subdirs.
98512         (func_emit_initmacro_start, func_emit_initmacro_end,
98513         func_emit_initmacro_done): Pass all arguments explicitly.
98514         (func_import): Determine two module lists main_modules,
98515         testsrelated_modules. Determine use_libtests. Determine two variables
98516         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
98517         instead of just sed_transform_lib_file. Determine two variables
98518         main_files and testsrelated_files. Compute 'files' as the union of
98519         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
98520         func_add_or_update. In the generated gnulib-comp.m4, collect the
98521         object files for tests/ in different variables than those for lib/.
98522         Substitute LIBTESTS_LIBDEPS.
98523         (func_create_testdir): Combine the uses_subdirs results from
98524         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
98526 2007-12-09  Bruno Haible  <bruno@clisp.org>
98528         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
98529         the build-aux directory.
98531 2007-12-09  Bruno Haible  <bruno@clisp.org>
98533         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
98534         introduced on 2006-09-09.
98536 2007-12-07  Jim Meyering  <meyering@redhat.com>
98538         Let these macros work also with autoconf-2.59.
98539         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
98540         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
98541         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
98543 2007-12-06  Jim Meyering  <meyering@redhat.com>
98545         Avoid a configure-time syntax error in gl_FUNC_ACL.
98546         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
98547         function in each branch, before testing the cache variable.
98549 2007-12-04  Eric Blake  <ebb9@byu.net>
98551         Make scripts executable.
98552         * build-aux/config.guess: Add execute permissions.
98553         * build-aux/config.sub: Likewise.
98554         * build-aux/gendocs.sh: Likewise.
98556         Fix frexp on mingw.
98557         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
98558         cross-compiling.
98559         * doc/functions/frexp.texi (frexp): Document the bug.
98561         Make cygwin fseeko check more reliable.
98562         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
98563         version numbers, rather than unrelated feature check.
98564         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
98565         * doc/functions/ftello.texi (ftello): Likewise.
98566         Reported by Bruno Haible.
98568         * m4/strerror.m4: Bump version number.
98570 2007-12-03  Bruno Haible  <bruno@clisp.org>
98572         * doc/functions/mprotect.texi: Mention the mingw problem.
98574 2007-12-03  Eric Blake  <ebb9@byu.net>
98576         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
98577         REPLACE_STRERROR is initialized before this macro.
98579 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
98581         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
98582         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
98583         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
98584         put -lsec in even for programs other than 'ls'.  This fixes a problem
98585         for gettext reported by Bruno Haible in
98586         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00007.html>.
98587         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
98588         Add support for Solaris 10.  This isn't efficient, but should get the
98589         job done for now.
98591 2007-12-03  James Youngman  <jay@gnu.org>
98593         * doc/regexprops-generic.texi: change "an close-group" to "a
98594         close-group" and "illegal" to "not allowed".
98596 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98598         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
98599         pr_byname.h. Needed for the rare case when the maintainer has done
98600         "make maintainer-clean" in the source directory and then attempts a
98601         build outside the source directory.
98602         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
98603         scripts_byname.h.
98605 2007-12-02  Martin Lambers  <marlam@marlam.de>
98606             Bruno Haible  <bruno@clisp.org>
98608         * lib/getpagesize.h: Remove file.
98609         * lib/unistd.in.h: Include declaration of getpagesize here.
98610         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
98611         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
98612         HAVE_SYS_PARAM_H.
98613         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
98614         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
98615         * modules/getpagesize (Files): Remove lib/getpagesize.h.
98616         (Depends-on): Add unistd.
98617         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
98618         (Include): Use <unistd.h> instead of getpagesize.h.
98619         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
98620         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
98621         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
98622         gl_GETPAGESIZE invocation, already handled by module dependency.
98623         * lib/pagealign_alloc.c: Don't include getpagesize.h.
98625 2007-12-02  Bruno Haible  <bruno@clisp.org>
98627         * modules/strings-tests: New file.
98628         * tests/test-strings.c: New file.
98630         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
98631         * lib/strings.in.h: New file.
98632         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
98633         * m4/strings_h.m4: New file.
98634         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
98635         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
98636         * modules/strings: New file.
98637         * modules/string (Makefile.am): Update.
98638         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
98639         Reported by Karl Berry.
98641 2007-12-01  Eric Blake  <ebb9@byu.net>
98643         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
98644         accommodate fix in cygwin 1.5.25.
98646 2007-12-01  Jim Meyering  <meyering@redhat.com>
98648         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
98649         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
98650         that would inhibit utf8-optimization of a regexp containing line-
98651         or buffer-anchors, e.g., `^', `$'.
98653 2007-11-30  Bruno Haible  <bruno@clisp.org>
98655         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
98656         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
98657         glthread_recursive_lock_init.
98658         * lib/lock.c (glthread_recursive_lock_init)
98659         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
98660         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
98662 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
98664         New function qset_acl, like set_acl but with syscall semantics.
98665         * lib/acl.h (qset_acl): New decl.
98666         * lib/acl.c (qset_acl): New function.
98667         (set_acl): Use new function.  Use more-consistent diagnostics.
98669 2007-11-28  Jim Meyering  <meyering@redhat.com>
98671         * modules/physmem (License): Change from GPL to LGPLv2+.
98673 2007-11-26  Bruno Haible  <bruno@clisp.org>
98675         * lib/vasnprintf.c (decode_long_double): Don't abort if the
98676         'long double' type has excess precision.
98677         Reported by Jim Meyering in
98678         <http://lists.gnu.org/r/bug-gnulib/2007-11/msg00120.html>.
98680 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98682         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
98683         Sync from <http://gnu.org/licenses>.
98684         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
98685         with license text from same location.
98686         * doc/maintain.texi, doc/standards.texi:  Sync from
98687         <http://savannah.gnu.org/projects/gnustandards>.
98689 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
98690         and Jim Meyering  <meyering@redhat.com>
98692         Adjust getdate' grammar to accept a slightly more regular language.
98693         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
98694         Before, the former was rejected.
98695         * lib/getdate.y (digits_to_date_time): New function, factored
98696         out of ...
98697         (number): ...here.  Just call digits_to_date_time.
98698         (hybrid): New non-terminal to handle an <unsigned number,
98699         signed relative offset> sequence consistently.
98701 2007-11-18  Jim Meyering  <meyering@redhat.com>
98703         Pull my changes from coreutils:
98704         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
98705         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
98706         use of $gnulib_tool_option_extras, so that it's separated from the
98707         preceding argument.
98709         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
98710         * build-aux/bootstrap (cp_mark_as_generated): Create any required
98711         parent destination directories before copying a file into place.
98713 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
98715         bootstrap: work also with 4-argument variant of AC_INIT
98716         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
98718 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
98720         Port test-getaddrinfo to Solaris.
98721         Problem reported by Bruno Haible in
98722         <http://lists.gnu.org/r/bug-gnulib/2007-03/msg00171.html>.
98723         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
98724         explanation of setting 'hints'.
98725         Don't reject an implementation merely because it returns EAI_SERVICE.
98726         (EAI_SERVICE): Define to 0 if not defined.
98728 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
98730         The license of gnu-make and posix-shell is now "GPLed build tool".
98731         * modules/gnu-make (License): Likewise.
98732         * modules/posix-shell (License): Likewise.
98734         New module posix-shell, for determining a POSIX shell
98735         or perhaps something that is close enough to a POSIX shell.
98736         * m4/posix-shell.m4: New file.
98737         * modules/posix-shell: New file.
98739         * MODULES.html.sh: Mention new module.
98741         New module gnu-make, for determining whether we're using GNU Make.
98742         * m4/gnu-make.m4: New file.
98743         * modules/gnu-make: New file.
98744         * MODULES.html.sh: Mention new module.
98746 2007-11-14  Jim Meyering  <meyering@redhat.com>
98748         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
98749         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
98750         use this macro to create a function _definition_.
98751         Remove useless "#undef ARGMATCH_DIE".
98753 2007-11-14  Bruno Haible  <bruno@clisp.org>
98755         * lib/config.charset: Update for OpenBSD 4.1.
98756         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
98758 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
98760         Document 64-bit #if problems in stdint.texi.
98761         * doc/headers/stdint.texi (stdint.h): Mention problems with
98762         64-bit-#if, and how to work around them.
98764         Don't insist on 'long long int' support in the preprocessor.  It
98765         breaks too many things.  For example, PRIdMAX still uses a 'long
98766         long int' format with the latest Sun compiler, even though
98767         HAVE_LONG_LONG_INT isn't defined due to that compiler's
98768         preprocessor problem.  This causes the latest coreutils to dump
98769         core on Solaris 10 sparc with the Sun C compiler.
98770         Instead, fix the 2007-10-16 problem in a different way, by evaluating
98771         the troublesome expressions at configure-time, not at #if-time.
98772         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
98773         preprocessor.
98774         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
98775         compile-time C checks, done at 'configure'-time.
98776         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
98777         * modules/inttypes (Makefile): Substitute the new symbols that
98778         gl_INTTYPES_H now generates.
98779         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
98781 2007-11-12  Bruno Haible  <bruno@clisp.org>
98783         Tests for Unicode character classification functions.
98785         * modules/unictype/bidicategory-byname-tests: New file.
98786         * modules/unictype/bidicategory-name-tests: New file.
98787         * modules/unictype/bidicategory-of-tests: New file.
98788         * modules/unictype/bidicategory-test-tests: New file.
98789         * modules/unictype/block-list-tests: New file.
98790         * modules/unictype/block-of-tests: New file.
98791         * modules/unictype/block-test-tests: New file.
98792         * modules/unictype/category-C-tests: New file.
98793         * modules/unictype/category-Cc-tests: New file.
98794         * modules/unictype/category-Cf-tests: New file.
98795         * modules/unictype/category-Cn-tests: New file.
98796         * modules/unictype/category-Co-tests: New file.
98797         * modules/unictype/category-Cs-tests: New file.
98798         * modules/unictype/category-L-tests: New file.
98799         * modules/unictype/category-Ll-tests: New file.
98800         * modules/unictype/category-Lm-tests: New file.
98801         * modules/unictype/category-Lo-tests: New file.
98802         * modules/unictype/category-Lt-tests: New file.
98803         * modules/unictype/category-Lu-tests: New file.
98804         * modules/unictype/category-M-tests: New file.
98805         * modules/unictype/category-Mc-tests: New file.
98806         * modules/unictype/category-Me-tests: New file.
98807         * modules/unictype/category-Mn-tests: New file.
98808         * modules/unictype/category-N-tests: New file.
98809         * modules/unictype/category-Nd-tests: New file.
98810         * modules/unictype/category-Nl-tests: New file.
98811         * modules/unictype/category-No-tests: New file.
98812         * modules/unictype/category-P-tests: New file.
98813         * modules/unictype/category-Pc-tests: New file.
98814         * modules/unictype/category-Pd-tests: New file.
98815         * modules/unictype/category-Pe-tests: New file.
98816         * modules/unictype/category-Pf-tests: New file.
98817         * modules/unictype/category-Pi-tests: New file.
98818         * modules/unictype/category-Po-tests: New file.
98819         * modules/unictype/category-Ps-tests: New file.
98820         * modules/unictype/category-S-tests: New file.
98821         * modules/unictype/category-Sc-tests: New file.
98822         * modules/unictype/category-Sk-tests: New file.
98823         * modules/unictype/category-Sm-tests: New file.
98824         * modules/unictype/category-So-tests: New file.
98825         * modules/unictype/category-Z-tests: New file.
98826         * modules/unictype/category-Zl-tests: New file.
98827         * modules/unictype/category-Zp-tests: New file.
98828         * modules/unictype/category-Zs-tests: New file.
98829         * modules/unictype/category-and-not-tests: New file.
98830         * modules/unictype/category-and-tests: New file.
98831         * modules/unictype/category-byname-tests: New file.
98832         * modules/unictype/category-name-tests: New file.
98833         * modules/unictype/category-none-tests: New file.
98834         * modules/unictype/category-of-tests: New file.
98835         * modules/unictype/category-or-tests: New file.
98836         * modules/unictype/category-test-withtable-tests: New file.
98837         * modules/unictype/combining-class-tests: New file.
98838         * modules/unictype/ctype-alnum-tests: New file.
98839         * modules/unictype/ctype-alpha-tests: New file.
98840         * modules/unictype/ctype-blank-tests: New file.
98841         * modules/unictype/ctype-cntrl-tests: New file.
98842         * modules/unictype/ctype-digit-tests: New file.
98843         * modules/unictype/ctype-graph-tests: New file.
98844         * modules/unictype/ctype-lower-tests: New file.
98845         * modules/unictype/ctype-print-tests: New file.
98846         * modules/unictype/ctype-punct-tests: New file.
98847         * modules/unictype/ctype-space-tests: New file.
98848         * modules/unictype/ctype-upper-tests: New file.
98849         * modules/unictype/ctype-xdigit-tests: New file.
98850         * modules/unictype/decimal-digit-tests: New file.
98851         * modules/unictype/digit-tests: New file.
98852         * modules/unictype/mirror-tests: New file.
98853         * modules/unictype/numeric-tests: New file.
98854         * modules/unictype/property-alphabetic-tests: New file.
98855         * modules/unictype/property-ascii-hex-digit-tests: New file.
98856         * modules/unictype/property-bidi-arabic-digit-tests: New file.
98857         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
98858         * modules/unictype/property-bidi-block-separator-tests: New file.
98859         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
98860         * modules/unictype/property-bidi-common-separator-tests: New file.
98861         * modules/unictype/property-bidi-control-tests: New file.
98862         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
98863         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
98864         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
98865         * modules/unictype/property-bidi-european-digit-tests: New file.
98866         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
98867         * modules/unictype/property-bidi-left-to-right-tests: New file.
98868         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
98869         * modules/unictype/property-bidi-other-neutral-tests: New file.
98870         * modules/unictype/property-bidi-pdf-tests: New file.
98871         * modules/unictype/property-bidi-segment-separator-tests: New file.
98872         * modules/unictype/property-bidi-whitespace-tests: New file.
98873         * modules/unictype/property-byname-tests: New file.
98874         * modules/unictype/property-combining-tests: New file.
98875         * modules/unictype/property-composite-tests: New file.
98876         * modules/unictype/property-currency-symbol-tests: New file.
98877         * modules/unictype/property-dash-tests: New file.
98878         * modules/unictype/property-decimal-digit-tests: New file.
98879         * modules/unictype/property-default-ignorable-code-point-tests: New file.
98880         * modules/unictype/property-deprecated-tests: New file.
98881         * modules/unictype/property-diacritic-tests: New file.
98882         * modules/unictype/property-extender-tests: New file.
98883         * modules/unictype/property-format-control-tests: New file.
98884         * modules/unictype/property-grapheme-base-tests: New file.
98885         * modules/unictype/property-grapheme-extend-tests: New file.
98886         * modules/unictype/property-grapheme-link-tests: New file.
98887         * modules/unictype/property-hex-digit-tests: New file.
98888         * modules/unictype/property-hyphen-tests: New file.
98889         * modules/unictype/property-id-continue-tests: New file.
98890         * modules/unictype/property-id-start-tests: New file.
98891         * modules/unictype/property-ideographic-tests: New file.
98892         * modules/unictype/property-ids-binary-operator-tests: New file.
98893         * modules/unictype/property-ids-trinary-operator-tests: New file.
98894         * modules/unictype/property-ignorable-control-tests: New file.
98895         * modules/unictype/property-iso-control-tests: New file.
98896         * modules/unictype/property-join-control-tests: New file.
98897         * modules/unictype/property-left-of-pair-tests: New file.
98898         * modules/unictype/property-line-separator-tests: New file.
98899         * modules/unictype/property-logical-order-exception-tests: New file.
98900         * modules/unictype/property-lowercase-tests: New file.
98901         * modules/unictype/property-math-tests: New file.
98902         * modules/unictype/property-non-break-tests: New file.
98903         * modules/unictype/property-not-a-character-tests: New file.
98904         * modules/unictype/property-numeric-tests: New file.
98905         * modules/unictype/property-other-alphabetic-tests: New file.
98906         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
98907         * modules/unictype/property-other-grapheme-extend-tests: New file.
98908         * modules/unictype/property-other-id-continue-tests: New file.
98909         * modules/unictype/property-other-id-start-tests: New file.
98910         * modules/unictype/property-other-lowercase-tests: New file.
98911         * modules/unictype/property-other-math-tests: New file.
98912         * modules/unictype/property-other-uppercase-tests: New file.
98913         * modules/unictype/property-paired-punctuation-tests: New file.
98914         * modules/unictype/property-paragraph-separator-tests: New file.
98915         * modules/unictype/property-pattern-syntax-tests: New file.
98916         * modules/unictype/property-pattern-white-space-tests: New file.
98917         * modules/unictype/property-private-use-tests: New file.
98918         * modules/unictype/property-punctuation-tests: New file.
98919         * modules/unictype/property-quotation-mark-tests: New file.
98920         * modules/unictype/property-radical-tests: New file.
98921         * modules/unictype/property-sentence-terminal-tests: New file.
98922         * modules/unictype/property-soft-dotted-tests: New file.
98923         * modules/unictype/property-space-tests: New file.
98924         * modules/unictype/property-terminal-punctuation-tests: New file.
98925         * modules/unictype/property-test-tests: New file.
98926         * modules/unictype/property-titlecase-tests: New file.
98927         * modules/unictype/property-unassigned-code-value-tests: New file.
98928         * modules/unictype/property-unified-ideograph-tests: New file.
98929         * modules/unictype/property-uppercase-tests: New file.
98930         * modules/unictype/property-variation-selector-tests: New file.
98931         * modules/unictype/property-white-space-tests: New file.
98932         * modules/unictype/property-xid-continue-tests: New file.
98933         * modules/unictype/property-xid-start-tests: New file.
98934         * modules/unictype/property-zero-width-tests: New file.
98935         * modules/unictype/scripts-tests: New file.
98936         * modules/unictype/syntax-c-ident-tests: New file.
98937         * modules/unictype/syntax-c-whitespace-tests: New file.
98938         * modules/unictype/syntax-java-ident-tests: New file.
98939         * modules/unictype/syntax-java-whitespace-tests: New file.
98940         * tests/unictype/test-bidi_byname.c: New file.
98941         * tests/unictype/test-bidi_name.c: New file.
98942         * tests/unictype/test-bidi_of.c: New file.
98943         * tests/unictype/test-bidi_test.c: New file.
98944         * tests/unictype/test-block_list.c: New file.
98945         * tests/unictype/test-block_of.c: New file.
98946         * tests/unictype/test-block_test.c: New file.
98947         * tests/unictype/test-categ_and.c: New file.
98948         * tests/unictype/test-categ_and_not.c: New file.
98949         * tests/unictype/test-categ_byname.c: New file.
98950         * tests/unictype/test-categ_name.c: New file.
98951         * tests/unictype/test-categ_none.c: New file.
98952         * tests/unictype/test-categ_of.c: New file.
98953         * tests/unictype/test-categ_or.c: New file.
98954         * tests/unictype/test-categ_test_withtable.c: New file.
98955         * tests/unictype/test-combining.c: New file.
98956         * tests/unictype/test-decdigit.c: New file.
98957         * tests/unictype/test-digit.c: New file.
98958         * tests/unictype/test-mirror.c: New file.
98959         * tests/unictype/test-numeric.c: New file.
98960         * tests/unictype/test-pr_byname.c: New file.
98961         * tests/unictype/test-pr_test.c: New file.
98962         * tests/unictype/test-predicate-part1.h: New file.
98963         * tests/unictype/test-predicate-part2.h: New file.
98964         * tests/unictype/test-scripts.c: New file.
98965         * tests/unictype/test-sy_c_ident.c: New file.
98966         * tests/unictype/test-sy_java_ident.c: New file.
98968         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
98969         for Unicode 5.0.0.
98970         * tests/unictype/test-categ_Cc.c: Likewise.
98971         * tests/unictype/test-categ_Cf.c: Likewise.
98972         * tests/unictype/test-categ_Cn.c: Likewise.
98973         * tests/unictype/test-categ_Co.c: Likewise.
98974         * tests/unictype/test-categ_Cs.c: Likewise.
98975         * tests/unictype/test-categ_L.c: Likewise.
98976         * tests/unictype/test-categ_Ll.c: Likewise.
98977         * tests/unictype/test-categ_Lm.c: Likewise.
98978         * tests/unictype/test-categ_Lo.c: Likewise.
98979         * tests/unictype/test-categ_Lt.c: Likewise.
98980         * tests/unictype/test-categ_Lu.c: Likewise.
98981         * tests/unictype/test-categ_M.c: Likewise.
98982         * tests/unictype/test-categ_Mc.c: Likewise.
98983         * tests/unictype/test-categ_Me.c: Likewise.
98984         * tests/unictype/test-categ_Mn.c: Likewise.
98985         * tests/unictype/test-categ_N.c: Likewise.
98986         * tests/unictype/test-categ_Nd.c: Likewise.
98987         * tests/unictype/test-categ_Nl.c: Likewise.
98988         * tests/unictype/test-categ_No.c: Likewise.
98989         * tests/unictype/test-categ_P.c: Likewise.
98990         * tests/unictype/test-categ_Pc.c: Likewise.
98991         * tests/unictype/test-categ_Pd.c: Likewise.
98992         * tests/unictype/test-categ_Pe.c: Likewise.
98993         * tests/unictype/test-categ_Pf.c: Likewise.
98994         * tests/unictype/test-categ_Pi.c: Likewise.
98995         * tests/unictype/test-categ_Po.c: Likewise.
98996         * tests/unictype/test-categ_Ps.c: Likewise.
98997         * tests/unictype/test-categ_S.c: Likewise.
98998         * tests/unictype/test-categ_Sc.c: Likewise.
98999         * tests/unictype/test-categ_Sk.c: Likewise.
99000         * tests/unictype/test-categ_Sm.c: Likewise.
99001         * tests/unictype/test-categ_So.c: Likewise.
99002         * tests/unictype/test-categ_Z.c: Likewise.
99003         * tests/unictype/test-categ_Zl.c: Likewise.
99004         * tests/unictype/test-categ_Zp.c: Likewise.
99005         * tests/unictype/test-categ_Zs.c: Likewise.
99006         * tests/unictype/test-ctype_alnum.c: Likewise.
99007         * tests/unictype/test-ctype_alpha.c: Likewise.
99008         * tests/unictype/test-ctype_blank.c: Likewise.
99009         * tests/unictype/test-ctype_cntrl.c: Likewise.
99010         * tests/unictype/test-ctype_digit.c: Likewise.
99011         * tests/unictype/test-ctype_graph.c: Likewise.
99012         * tests/unictype/test-ctype_lower.c: Likewise.
99013         * tests/unictype/test-ctype_print.c: Likewise.
99014         * tests/unictype/test-ctype_punct.c: Likewise.
99015         * tests/unictype/test-ctype_space.c: Likewise.
99016         * tests/unictype/test-ctype_upper.c: Likewise.
99017         * tests/unictype/test-ctype_xdigit.c: Likewise.
99018         * tests/unictype/test-decdigit.h: Likewise.
99019         * tests/unictype/test-digit.h: Likewise.
99020         * tests/unictype/test-numeric.h: Likewise.
99021         * tests/unictype/test-pr_alphabetic.c: Likewise.
99022         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
99023         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
99024         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
99025         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
99026         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
99027         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
99028         * tests/unictype/test-pr_bidi_control.c: Likewise.
99029         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
99030         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
99031         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
99032         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
99033         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
99034         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
99035         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
99036         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
99037         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
99038         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
99039         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
99040         * tests/unictype/test-pr_combining.c: Likewise.
99041         * tests/unictype/test-pr_composite.c: Likewise.
99042         * tests/unictype/test-pr_currency_symbol.c: Likewise.
99043         * tests/unictype/test-pr_dash.c: Likewise.
99044         * tests/unictype/test-pr_decimal_digit.c: Likewise.
99045         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
99046         * tests/unictype/test-pr_deprecated.c: Likewise.
99047         * tests/unictype/test-pr_diacritic.c: Likewise.
99048         * tests/unictype/test-pr_extender.c: Likewise.
99049         * tests/unictype/test-pr_format_control.c: Likewise.
99050         * tests/unictype/test-pr_grapheme_base.c: Likewise.
99051         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
99052         * tests/unictype/test-pr_grapheme_link.c: Likewise.
99053         * tests/unictype/test-pr_hex_digit.c: Likewise.
99054         * tests/unictype/test-pr_hyphen.c: Likewise.
99055         * tests/unictype/test-pr_id_continue.c: Likewise.
99056         * tests/unictype/test-pr_id_start.c: Likewise.
99057         * tests/unictype/test-pr_ideographic.c: Likewise.
99058         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
99059         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
99060         * tests/unictype/test-pr_ignorable_control.c: Likewise.
99061         * tests/unictype/test-pr_iso_control.c: Likewise.
99062         * tests/unictype/test-pr_join_control.c: Likewise.
99063         * tests/unictype/test-pr_left_of_pair.c: Likewise.
99064         * tests/unictype/test-pr_line_separator.c: Likewise.
99065         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
99066         * tests/unictype/test-pr_lowercase.c: Likewise.
99067         * tests/unictype/test-pr_math.c: Likewise.
99068         * tests/unictype/test-pr_non_break.c: Likewise.
99069         * tests/unictype/test-pr_not_a_character.c: Likewise.
99070         * tests/unictype/test-pr_numeric.c: Likewise.
99071         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
99072         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
99073         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
99074         * tests/unictype/test-pr_other_id_continue.c: Likewise.
99075         * tests/unictype/test-pr_other_id_start.c: Likewise.
99076         * tests/unictype/test-pr_other_lowercase.c: Likewise.
99077         * tests/unictype/test-pr_other_math.c: Likewise.
99078         * tests/unictype/test-pr_other_uppercase.c: Likewise.
99079         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
99080         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
99081         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
99082         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
99083         * tests/unictype/test-pr_private_use.c: Likewise.
99084         * tests/unictype/test-pr_punctuation.c: Likewise.
99085         * tests/unictype/test-pr_quotation_mark.c: Likewise.
99086         * tests/unictype/test-pr_radical.c: Likewise.
99087         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
99088         * tests/unictype/test-pr_soft_dotted.c: Likewise.
99089         * tests/unictype/test-pr_space.c: Likewise.
99090         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
99091         * tests/unictype/test-pr_titlecase.c: Likewise.
99092         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
99093         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
99094         * tests/unictype/test-pr_uppercase.c: Likewise.
99095         * tests/unictype/test-pr_variation_selector.c: Likewise.
99096         * tests/unictype/test-pr_white_space.c: Likewise.
99097         * tests/unictype/test-pr_xid_continue.c: Likewise.
99098         * tests/unictype/test-pr_xid_start.c: Likewise.
99099         * tests/unictype/test-pr_zero_width.c: Likewise.
99100         * tests/unictype/test-sy_c_whitespace.c: Likewise.
99101         * tests/unictype/test-sy_java_whitespace.c: Likewise.
99103 2007-11-12  Bruno Haible  <bruno@clisp.org>
99105         Unicode character classification functions.
99106         * lib/unictype.h: New file.
99107         * modules/unictype/base: New file.
99108         * modules/unictype/category-L: New file.
99109         * modules/unictype/category-Lu: New file.
99110         * modules/unictype/category-Ll: New file.
99111         * modules/unictype/category-Lt: New file.
99112         * modules/unictype/category-Lm: New file.
99113         * modules/unictype/category-Lo: New file.
99114         * modules/unictype/category-M: New file.
99115         * modules/unictype/category-Mn: New file.
99116         * modules/unictype/category-Mc: New file.
99117         * modules/unictype/category-Me: New file.
99118         * modules/unictype/category-N: New file.
99119         * modules/unictype/category-Nd: New file.
99120         * modules/unictype/category-Nl: New file.
99121         * modules/unictype/category-No: New file.
99122         * modules/unictype/category-P: New file.
99123         * modules/unictype/category-Pc: New file.
99124         * modules/unictype/category-Pd: New file.
99125         * modules/unictype/category-Ps: New file.
99126         * modules/unictype/category-Pe: New file.
99127         * modules/unictype/category-Pi: New file.
99128         * modules/unictype/category-Pf: New file.
99129         * modules/unictype/category-Po: New file.
99130         * modules/unictype/category-S: New file.
99131         * modules/unictype/category-Sm: New file.
99132         * modules/unictype/category-Sc: New file.
99133         * modules/unictype/category-Sk: New file.
99134         * modules/unictype/category-So: New file.
99135         * modules/unictype/category-Z: New file.
99136         * modules/unictype/category-Zs: New file.
99137         * modules/unictype/category-Zl: New file.
99138         * modules/unictype/category-Zp: New file.
99139         * modules/unictype/category-C: New file.
99140         * modules/unictype/category-Cc: New file.
99141         * modules/unictype/category-Cf: New file.
99142         * modules/unictype/category-Cs: New file.
99143         * modules/unictype/category-Co: New file.
99144         * modules/unictype/category-Cn: New file.
99145         * modules/unictype/category-or: New file.
99146         * modules/unictype/category-of: New file.
99147         * modules/unictype/category-test: New file.
99148         * modules/unictype/category-test-withtable: New file.
99149         * modules/unictype/category-byname: New file.
99150         * modules/unictype/category-none: New file.
99151         * modules/unictype/category-and: New file.
99152         * modules/unictype/category-and-not: New file.
99153         * modules/unictype/category-name: New file.
99154         * modules/unictype/combining-class: New file.
99155         * modules/unictype/category-all: New file.
99156         * modules/unictype/bidicategory-all: New file.
99157         * modules/unictype/bidicategory-byname: New file.
99158         * modules/unictype/bidicategory-name: New file.
99159         * modules/unictype/bidicategory-of: New file.
99160         * modules/unictype/bidicategory-test: New file.
99161         * modules/unictype/decimal-digit: New file.
99162         * modules/unictype/digit: New file.
99163         * modules/unictype/numeric: New file.
99164         * modules/unictype/mirror: New file.
99165         * modules/unictype/property-white-space: New file.
99166         * modules/unictype/property-alphabetic: New file.
99167         * modules/unictype/property-other-alphabetic: New file.
99168         * modules/unictype/property-not-a-character: New file.
99169         * modules/unictype/property-default-ignorable-code-point: New file.
99170         * modules/unictype/property-other-default-ignorable-code-point: New
99171         file.
99172         * modules/unictype/property-deprecated: New file.
99173         * modules/unictype/property-logical-order-exception: New file.
99174         * modules/unictype/property-variation-selector: New file.
99175         * modules/unictype/property-private-use: New file.
99176         * modules/unictype/property-unassigned-code-value: New file.
99177         * modules/unictype/property-uppercase: New file.
99178         * modules/unictype/property-other-uppercase: New file.
99179         * modules/unictype/property-lowercase: New file.
99180         * modules/unictype/property-other-lowercase: New file.
99181         * modules/unictype/property-titlecase: New file.
99182         * modules/unictype/property-soft-dotted: New file.
99183         * modules/unictype/property-id-start: New file.
99184         * modules/unictype/property-other-id-start: New file.
99185         * modules/unictype/property-id-continue: New file.
99186         * modules/unictype/property-other-id-continue: New file.
99187         * modules/unictype/property-xid-start: New file.
99188         * modules/unictype/property-xid-continue: New file.
99189         * modules/unictype/property-pattern-white-space: New file.
99190         * modules/unictype/property-pattern-syntax: New file.
99191         * modules/unictype/property-join-control: New file.
99192         * modules/unictype/property-grapheme-base: New file.
99193         * modules/unictype/property-grapheme-extend: New file.
99194         * modules/unictype/property-other-grapheme-extend: New file.
99195         * modules/unictype/property-grapheme-link: New file.
99196         * modules/unictype/property-bidi-control: New file.
99197         * modules/unictype/property-bidi-left-to-right: New file.
99198         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
99199         * modules/unictype/property-bidi-arabic-right-to-left: New file.
99200         * modules/unictype/property-bidi-european-digit: New file.
99201         * modules/unictype/property-bidi-eur-num-separator: New file.
99202         * modules/unictype/property-bidi-eur-num-terminator: New file.
99203         * modules/unictype/property-bidi-arabic-digit: New file.
99204         * modules/unictype/property-bidi-common-separator: New file.
99205         * modules/unictype/property-bidi-block-separator: New file.
99206         * modules/unictype/property-bidi-segment-separator: New file.
99207         * modules/unictype/property-bidi-whitespace: New file.
99208         * modules/unictype/property-bidi-non-spacing-mark: New file.
99209         * modules/unictype/property-bidi-boundary-neutral: New file.
99210         * modules/unictype/property-bidi-pdf: New file.
99211         * modules/unictype/property-bidi-embedding-or-override: New file.
99212         * modules/unictype/property-bidi-other-neutral: New file.
99213         * modules/unictype/property-hex-digit: New file.
99214         * modules/unictype/property-ascii-hex-digit: New file.
99215         * modules/unictype/property-ideographic: New file.
99216         * modules/unictype/property-unified-ideograph: New file.
99217         * modules/unictype/property-radical: New file.
99218         * modules/unictype/property-ids-binary-operator: New file.
99219         * modules/unictype/property-ids-trinary-operator: New file.
99220         * modules/unictype/property-zero-width: New file.
99221         * modules/unictype/property-space: New file.
99222         * modules/unictype/property-non-break: New file.
99223         * modules/unictype/property-iso-control: New file.
99224         * modules/unictype/property-format-control: New file.
99225         * modules/unictype/property-dash: New file.
99226         * modules/unictype/property-hyphen: New file.
99227         * modules/unictype/property-punctuation: New file.
99228         * modules/unictype/property-line-separator: New file.
99229         * modules/unictype/property-paragraph-separator: New file.
99230         * modules/unictype/property-quotation-mark: New file.
99231         * modules/unictype/property-sentence-terminal: New file.
99232         * modules/unictype/property-terminal-punctuation: New file.
99233         * modules/unictype/property-currency-symbol: New file.
99234         * modules/unictype/property-math: New file.
99235         * modules/unictype/property-other-math: New file.
99236         * modules/unictype/property-paired-punctuation: New file.
99237         * modules/unictype/property-left-of-pair: New file.
99238         * modules/unictype/property-combining: New file.
99239         * modules/unictype/property-composite: New file.
99240         * modules/unictype/property-decimal-digit: New file.
99241         * modules/unictype/property-numeric: New file.
99242         * modules/unictype/property-diacritic: New file.
99243         * modules/unictype/property-extender: New file.
99244         * modules/unictype/property-ignorable-control: New file.
99245         * modules/unictype/property-test: New file.
99246         * modules/unictype/property-byname: New file.
99247         * modules/unictype/property-all: New file.
99248         * modules/unictype/scripts: New file.
99249         * modules/unictype/scripts-all: New file.
99250         * modules/unictype/block-of: New file.
99251         * modules/unictype/block-test: New file.
99252         * modules/unictype/block-list: New file.
99253         * modules/unictype/block-all: New file.
99254         * modules/unictype/syntax-c-whitespace: New file.
99255         * modules/unictype/syntax-java-whitespace: New file.
99256         * modules/unictype/syntax-c-ident: New file.
99257         * modules/unictype/syntax-java-ident: New file.
99258         * modules/unictype/ctype-alnum: New file.
99259         * modules/unictype/ctype-alpha: New file.
99260         * modules/unictype/ctype-cntrl: New file.
99261         * modules/unictype/ctype-digit: New file.
99262         * modules/unictype/ctype-graph: New file.
99263         * modules/unictype/ctype-lower: New file.
99264         * modules/unictype/ctype-print: New file.
99265         * modules/unictype/ctype-punct: New file.
99266         * modules/unictype/ctype-space: New file.
99267         * modules/unictype/ctype-upper: New file.
99268         * modules/unictype/ctype-xdigit: New file.
99269         * modules/unictype/ctype-blank: New file.
99270         * lib/unictype/bidi_byname.c: New file.
99271         * lib/unictype/bidi_name.c: New file.
99272         * lib/unictype/bidi_of.c: New file.
99273         * lib/unictype/bidi_test.c: New file.
99274         * lib/unictype/bitmap.h: New file.
99275         * lib/unictype/block_test.c: New file.
99276         * lib/unictype/blocks.c: New file.
99277         * lib/unictype/categ_C.c: New file.
99278         * lib/unictype/categ_Cc.c: New file.
99279         * lib/unictype/categ_Cf.c: New file.
99280         * lib/unictype/categ_Cn.c: New file.
99281         * lib/unictype/categ_Co.c: New file.
99282         * lib/unictype/categ_Cs.c: New file.
99283         * lib/unictype/categ_L.c: New file.
99284         * lib/unictype/categ_Ll.c: New file.
99285         * lib/unictype/categ_Lm.c: New file.
99286         * lib/unictype/categ_Lo.c: New file.
99287         * lib/unictype/categ_Lt.c: New file.
99288         * lib/unictype/categ_Lu.c: New file.
99289         * lib/unictype/categ_M.c: New file.
99290         * lib/unictype/categ_Mc.c: New file.
99291         * lib/unictype/categ_Me.c: New file.
99292         * lib/unictype/categ_Mn.c: New file.
99293         * lib/unictype/categ_N.c: New file.
99294         * lib/unictype/categ_Nd.c: New file.
99295         * lib/unictype/categ_Nl.c: New file.
99296         * lib/unictype/categ_No.c: New file.
99297         * lib/unictype/categ_P.c: New file.
99298         * lib/unictype/categ_Pc.c: New file.
99299         * lib/unictype/categ_Pd.c: New file.
99300         * lib/unictype/categ_Pe.c: New file.
99301         * lib/unictype/categ_Pf.c: New file.
99302         * lib/unictype/categ_Pi.c: New file.
99303         * lib/unictype/categ_Po.c: New file.
99304         * lib/unictype/categ_Ps.c: New file.
99305         * lib/unictype/categ_S.c: New file.
99306         * lib/unictype/categ_Sc.c: New file.
99307         * lib/unictype/categ_Sk.c: New file.
99308         * lib/unictype/categ_Sm.c: New file.
99309         * lib/unictype/categ_So.c: New file.
99310         * lib/unictype/categ_Z.c: New file.
99311         * lib/unictype/categ_Zl.c: New file.
99312         * lib/unictype/categ_Zp.c: New file.
99313         * lib/unictype/categ_Zs.c: New file.
99314         * lib/unictype/categ_and.c: New file.
99315         * lib/unictype/categ_and_not.c: New file.
99316         * lib/unictype/categ_byname.c: New file.
99317         * lib/unictype/categ_name.c: New file.
99318         * lib/unictype/categ_none.c: New file.
99319         * lib/unictype/categ_of.c: New file.
99320         * lib/unictype/categ_or.c: New file.
99321         * lib/unictype/categ_test.c: New file.
99322         * lib/unictype/combining.c: New file.
99323         * lib/unictype/ctype_alnum.c: New file.
99324         * lib/unictype/ctype_alpha.c: New file.
99325         * lib/unictype/ctype_blank.c: New file.
99326         * lib/unictype/ctype_cntrl.c: New file.
99327         * lib/unictype/ctype_digit.c: New file.
99328         * lib/unictype/ctype_graph.c: New file.
99329         * lib/unictype/ctype_lower.c: New file.
99330         * lib/unictype/ctype_print.c: New file.
99331         * lib/unictype/ctype_punct.c: New file.
99332         * lib/unictype/ctype_space.c: New file.
99333         * lib/unictype/ctype_upper.c: New file.
99334         * lib/unictype/ctype_xdigit.c: New file.
99335         * lib/unictype/decdigit.c: New file.
99336         * lib/unictype/digit.c: New file.
99337         * lib/unictype/identsyntaxmap.h: New file.
99338         * lib/unictype/mirror.c: New file.
99339         * lib/unictype/numeric.c: New file.
99340         * lib/unictype/pr_alphabetic.c: New file.
99341         * lib/unictype/pr_ascii_hex_digit.c: New file.
99342         * lib/unictype/pr_bidi_arabic_digit.c: New file.
99343         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
99344         * lib/unictype/pr_bidi_block_separator.c: New file.
99345         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
99346         * lib/unictype/pr_bidi_common_separator.c: New file.
99347         * lib/unictype/pr_bidi_control.c: New file.
99348         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
99349         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
99350         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
99351         * lib/unictype/pr_bidi_european_digit.c: New file.
99352         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
99353         * lib/unictype/pr_bidi_left_to_right.c: New file.
99354         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
99355         * lib/unictype/pr_bidi_other_neutral.c: New file.
99356         * lib/unictype/pr_bidi_pdf.c: New file.
99357         * lib/unictype/pr_bidi_segment_separator.c: New file.
99358         * lib/unictype/pr_bidi_whitespace.c: New file.
99359         * lib/unictype/pr_byname.c: New file.
99360         * lib/unictype/pr_byname.gperf: New file.
99361         * lib/unictype/pr_combining.c: New file.
99362         * lib/unictype/pr_composite.c: New file.
99363         * lib/unictype/pr_currency_symbol.c: New file.
99364         * lib/unictype/pr_dash.c: New file.
99365         * lib/unictype/pr_decimal_digit.c: New file.
99366         * lib/unictype/pr_default_ignorable_code_point.c: New file.
99367         * lib/unictype/pr_deprecated.c: New file.
99368         * lib/unictype/pr_diacritic.c: New file.
99369         * lib/unictype/pr_extender.c: New file.
99370         * lib/unictype/pr_format_control.c: New file.
99371         * lib/unictype/pr_grapheme_base.c: New file.
99372         * lib/unictype/pr_grapheme_extend.c: New file.
99373         * lib/unictype/pr_grapheme_link.c: New file.
99374         * lib/unictype/pr_hex_digit.c: New file.
99375         * lib/unictype/pr_hyphen.c: New file.
99376         * lib/unictype/pr_id_continue.c: New file.
99377         * lib/unictype/pr_id_start.c: New file.
99378         * lib/unictype/pr_ideographic.c: New file.
99379         * lib/unictype/pr_ids_binary_operator.c: New file.
99380         * lib/unictype/pr_ids_trinary_operator.c: New file.
99381         * lib/unictype/pr_ignorable_control.c: New file.
99382         * lib/unictype/pr_iso_control.c: New file.
99383         * lib/unictype/pr_join_control.c: New file.
99384         * lib/unictype/pr_left_of_pair.c: New file.
99385         * lib/unictype/pr_line_separator.c: New file.
99386         * lib/unictype/pr_logical_order_exception.c: New file.
99387         * lib/unictype/pr_lowercase.c: New file.
99388         * lib/unictype/pr_math.c: New file.
99389         * lib/unictype/pr_non_break.c: New file.
99390         * lib/unictype/pr_not_a_character.c: New file.
99391         * lib/unictype/pr_numeric.c: New file.
99392         * lib/unictype/pr_other_alphabetic.c: New file.
99393         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
99394         * lib/unictype/pr_other_grapheme_extend.c: New file.
99395         * lib/unictype/pr_other_id_continue.c: New file.
99396         * lib/unictype/pr_other_id_start.c: New file.
99397         * lib/unictype/pr_other_lowercase.c: New file.
99398         * lib/unictype/pr_other_math.c: New file.
99399         * lib/unictype/pr_other_uppercase.c: New file.
99400         * lib/unictype/pr_paired_punctuation.c: New file.
99401         * lib/unictype/pr_paragraph_separator.c: New file.
99402         * lib/unictype/pr_pattern_syntax.c: New file.
99403         * lib/unictype/pr_pattern_white_space.c: New file.
99404         * lib/unictype/pr_private_use.c: New file.
99405         * lib/unictype/pr_punctuation.c: New file.
99406         * lib/unictype/pr_quotation_mark.c: New file.
99407         * lib/unictype/pr_radical.c: New file.
99408         * lib/unictype/pr_sentence_terminal.c: New file.
99409         * lib/unictype/pr_soft_dotted.c: New file.
99410         * lib/unictype/pr_space.c: New file.
99411         * lib/unictype/pr_terminal_punctuation.c: New file.
99412         * lib/unictype/pr_test.c: New file.
99413         * lib/unictype/pr_titlecase.c: New file.
99414         * lib/unictype/pr_unassigned_code_value.c: New file.
99415         * lib/unictype/pr_unified_ideograph.c: New file.
99416         * lib/unictype/pr_uppercase.c: New file.
99417         * lib/unictype/pr_variation_selector.c: New file.
99418         * lib/unictype/pr_white_space.c: New file.
99419         * lib/unictype/pr_xid_continue.c: New file.
99420         * lib/unictype/pr_xid_start.c: New file.
99421         * lib/unictype/pr_zero_width.c: New file.
99422         * lib/unictype/scripts.c: New file.
99423         * lib/unictype/sy_c_ident.c: New file.
99424         * lib/unictype/sy_c_whitespace.c: New file.
99425         * lib/unictype/sy_java_ident.c: New file.
99426         * lib/unictype/sy_java_whitespace.c: New file.
99428         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
99429         Unicode 5.0.0.
99430         * lib/unictype/blocks.h: Likewise.
99431         * lib/unictype/categ_C.h: Likewise.
99432         * lib/unictype/categ_Cc.h: Likewise.
99433         * lib/unictype/categ_Cf.h: Likewise.
99434         * lib/unictype/categ_Cn.h: Likewise.
99435         * lib/unictype/categ_Co.h: Likewise.
99436         * lib/unictype/categ_Cs.h: Likewise.
99437         * lib/unictype/categ_L.h: Likewise.
99438         * lib/unictype/categ_Ll.h: Likewise.
99439         * lib/unictype/categ_Lm.h: Likewise.
99440         * lib/unictype/categ_Lo.h: Likewise.
99441         * lib/unictype/categ_Lt.h: Likewise.
99442         * lib/unictype/categ_Lu.h: Likewise.
99443         * lib/unictype/categ_M.h: Likewise.
99444         * lib/unictype/categ_Mc.h: Likewise.
99445         * lib/unictype/categ_Me.h: Likewise.
99446         * lib/unictype/categ_Mn.h: Likewise.
99447         * lib/unictype/categ_N.h: Likewise.
99448         * lib/unictype/categ_Nd.h: Likewise.
99449         * lib/unictype/categ_Nl.h: Likewise.
99450         * lib/unictype/categ_No.h: Likewise.
99451         * lib/unictype/categ_P.h: Likewise.
99452         * lib/unictype/categ_Pc.h: Likewise.
99453         * lib/unictype/categ_Pd.h: Likewise.
99454         * lib/unictype/categ_Pe.h: Likewise.
99455         * lib/unictype/categ_Pf.h: Likewise.
99456         * lib/unictype/categ_Pi.h: Likewise.
99457         * lib/unictype/categ_Po.h: Likewise.
99458         * lib/unictype/categ_Ps.h: Likewise.
99459         * lib/unictype/categ_S.h: Likewise.
99460         * lib/unictype/categ_Sc.h: Likewise.
99461         * lib/unictype/categ_Sk.h: Likewise.
99462         * lib/unictype/categ_Sm.h: Likewise.
99463         * lib/unictype/categ_So.h: Likewise.
99464         * lib/unictype/categ_Z.h: Likewise.
99465         * lib/unictype/categ_Zl.h: Likewise.
99466         * lib/unictype/categ_Zp.h: Likewise.
99467         * lib/unictype/categ_Zs.h: Likewise.
99468         * lib/unictype/categ_of.h: Likewise.
99469         * lib/unictype/combining.h: Likewise.
99470         * lib/unictype/ctype_alnum.h: Likewise.
99471         * lib/unictype/ctype_alpha.h: Likewise.
99472         * lib/unictype/ctype_blank.h: Likewise.
99473         * lib/unictype/ctype_cntrl.h: Likewise.
99474         * lib/unictype/ctype_digit.h: Likewise.
99475         * lib/unictype/ctype_graph.h: Likewise.
99476         * lib/unictype/ctype_lower.h: Likewise.
99477         * lib/unictype/ctype_print.h: Likewise.
99478         * lib/unictype/ctype_punct.h: Likewise.
99479         * lib/unictype/ctype_space.h: Likewise.
99480         * lib/unictype/ctype_upper.h: Likewise.
99481         * lib/unictype/ctype_xdigit.h: Likewise.
99482         * lib/unictype/decdigit.h: Likewise.
99483         * lib/unictype/digit.h: Likewise.
99484         * lib/unictype/mirror.h: Likewise.
99485         * lib/unictype/numeric.h: Likewise.
99486         * lib/unictype/pr_alphabetic.h: Likewise.
99487         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
99488         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
99489         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
99490         * lib/unictype/pr_bidi_block_separator.h: Likewise.
99491         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
99492         * lib/unictype/pr_bidi_common_separator.h: Likewise.
99493         * lib/unictype/pr_bidi_control.h: Likewise.
99494         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
99495         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
99496         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
99497         * lib/unictype/pr_bidi_european_digit.h: Likewise.
99498         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
99499         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
99500         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
99501         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
99502         * lib/unictype/pr_bidi_pdf.h: Likewise.
99503         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
99504         * lib/unictype/pr_bidi_whitespace.h: Likewise.
99505         * lib/unictype/pr_combining.h: Likewise.
99506         * lib/unictype/pr_composite.h: Likewise.
99507         * lib/unictype/pr_currency_symbol.h: Likewise.
99508         * lib/unictype/pr_dash.h: Likewise.
99509         * lib/unictype/pr_decimal_digit.h: Likewise.
99510         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
99511         * lib/unictype/pr_deprecated.h: Likewise.
99512         * lib/unictype/pr_diacritic.h: Likewise.
99513         * lib/unictype/pr_extender.h: Likewise.
99514         * lib/unictype/pr_format_control.h: Likewise.
99515         * lib/unictype/pr_grapheme_base.h: Likewise.
99516         * lib/unictype/pr_grapheme_extend.h: Likewise.
99517         * lib/unictype/pr_grapheme_link.h: Likewise.
99518         * lib/unictype/pr_hex_digit.h: Likewise.
99519         * lib/unictype/pr_hyphen.h: Likewise.
99520         * lib/unictype/pr_id_continue.h: Likewise.
99521         * lib/unictype/pr_id_start.h: Likewise.
99522         * lib/unictype/pr_ideographic.h: Likewise.
99523         * lib/unictype/pr_ids_binary_operator.h: Likewise.
99524         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
99525         * lib/unictype/pr_ignorable_control.h: Likewise.
99526         * lib/unictype/pr_iso_control.h: Likewise.
99527         * lib/unictype/pr_join_control.h: Likewise.
99528         * lib/unictype/pr_left_of_pair.h: Likewise.
99529         * lib/unictype/pr_line_separator.h: Likewise.
99530         * lib/unictype/pr_logical_order_exception.h: Likewise.
99531         * lib/unictype/pr_lowercase.h: Likewise.
99532         * lib/unictype/pr_math.h: Likewise.
99533         * lib/unictype/pr_non_break.h: Likewise.
99534         * lib/unictype/pr_not_a_character.h: Likewise.
99535         * lib/unictype/pr_numeric.h: Likewise.
99536         * lib/unictype/pr_other_alphabetic.h: Likewise.
99537         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
99538         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
99539         * lib/unictype/pr_other_id_continue.h: Likewise.
99540         * lib/unictype/pr_other_id_start.h: Likewise.
99541         * lib/unictype/pr_other_lowercase.h: Likewise.
99542         * lib/unictype/pr_other_math.h: Likewise.
99543         * lib/unictype/pr_other_uppercase.h: Likewise.
99544         * lib/unictype/pr_paired_punctuation.h: Likewise.
99545         * lib/unictype/pr_paragraph_separator.h: Likewise.
99546         * lib/unictype/pr_pattern_syntax.h: Likewise.
99547         * lib/unictype/pr_pattern_white_space.h: Likewise.
99548         * lib/unictype/pr_private_use.h: Likewise.
99549         * lib/unictype/pr_punctuation.h: Likewise.
99550         * lib/unictype/pr_quotation_mark.h: Likewise.
99551         * lib/unictype/pr_radical.h: Likewise.
99552         * lib/unictype/pr_sentence_terminal.h: Likewise.
99553         * lib/unictype/pr_soft_dotted.h: Likewise.
99554         * lib/unictype/pr_space.h: Likewise.
99555         * lib/unictype/pr_terminal_punctuation.h: Likewise.
99556         * lib/unictype/pr_titlecase.h: Likewise.
99557         * lib/unictype/pr_unassigned_code_value.h: Likewise.
99558         * lib/unictype/pr_unified_ideograph.h: Likewise.
99559         * lib/unictype/pr_uppercase.h: Likewise.
99560         * lib/unictype/pr_variation_selector.h: Likewise.
99561         * lib/unictype/pr_white_space.h: Likewise.
99562         * lib/unictype/pr_xid_continue.h: Likewise.
99563         * lib/unictype/pr_xid_start.h: Likewise.
99564         * lib/unictype/pr_zero_width.h: Likewise.
99565         * lib/unictype/scripts.h: Likewise.
99566         * lib/unictype/scripts_byname.gperf: Likewise.
99567         * lib/unictype/sy_c_ident.h: Likewise.
99568         * lib/unictype/sy_c_whitespace.h: Likewise.
99569         * lib/unictype/sy_java_ident.h: Likewise.
99570         * lib/unictype/sy_java_whitespace.h: Likewise.
99572         * lib/unictype/Makefile: New file.
99573         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
99574         glibc.
99575         * lib/unictype/3level.h: New file, copied from glibc.
99576         * lib/unictype/3levelbit.h: New file.
99578 2007-11-11  Bruno Haible  <bruno@clisp.org>
99580         * modules/gperf: New file.
99581         * modules/iconv_open (Depends-on): Add it.
99582         (Makefile.am): Remove the GPERF definition.
99584 2007-11-11  Bruno Haible  <bruno@clisp.org>
99586         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
99587         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
99589 2007-11-11  Bruno Haible  <bruno@clisp.org>
99591         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
99592         (usage): Remove function.
99594 2007-11-11  Bruno Haible  <bruno@clisp.org>
99596         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
99597         gl_FUNC_CEILF_LIBS.
99598         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
99599         gl_FUNC_CEIL_LIBS.
99600         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
99601         gl_FUNC_CEILL_LIBS.
99602         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
99603         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
99604         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
99606 2007-11-11  Bruno Haible  <bruno@clisp.org>
99608         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
99609         roundf were declared but do not exist on functions.
99610         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
99611         roundl were declared but do not exist on functions.
99612         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
99613         HAVE_FLOORL_AND_CEILL, respectively.
99614         Needed for Sun C on Solaris 10.
99616 2007-11-11  Bruno Haible  <bruno@clisp.org>
99618         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
99619         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
99620         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
99621         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
99622         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
99623         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
99624         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
99625         HAVE_DECL_ROUNDF.
99626         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
99627         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
99628         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
99629         of HAVE_DECL_ROUND*.
99630         * modules/math (Makefile.am): Update.
99632 2007-11-10  Bruno Haible  <bruno@clisp.org>
99634         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
99635         ptrdiff_t as m4/intl.m4.
99637 2007-11-10  Jim Meyering  <meyering@redhat.com>
99639         Avoid link failure for the argmatch test.
99640         * tests/test-argmatch.c (usage): Define function to avoid a link
99641         failure: argmatch_die requires a usage function.
99643 2007-11-09  Bruno Haible  <bruno@clisp.org>
99645         * doc/functions/snprintf.texi: Mention BeOS deficiency.
99646         * doc/functions/vsnprintf.texi: Likewise.
99647         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
99648         with a size argument < 2.
99650 2007-11-09  Bruno Haible  <bruno@clisp.org>
99652         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
99653         buffer. Fixes an inefficiency introduced on 2007-11-03.
99655 2007-11-09  Bruno Haible  <bruno@clisp.org>
99657         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
99658         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
99660 2007-11-08  Jim Meyering  <meyering@redhat.com>
99662         Change cache variable name prefix "jm_" to "gl_" everywhere.
99663         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
99664         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
99665         * m4/uptime.m4: s/gl_/jm_/
99667 2007-11-07  Bruno Haible  <bruno@clisp.org>
99669         Update to GNU gettext 0.17.
99670         * m4/intl.m4: Update to GNU gettext 0.17.
99671         * m4/po.m4: Likewise.
99672         * modules/gettext (Files): Remove m4/ulonglong.m4.
99673         (configure.ac): Require gettext infrastructure from version 0.17.
99675 2007-11-06  Bruno Haible  <bruno@clisp.org>
99677         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
99678         symbolic values are not defined in a public header.
99679         * lib/freadable.c (freadable) [QNX]: Likewise.
99680         * lib/freadahead.c (freadahead) [QNX]: Likewise.
99681         * lib/freading.c (freading) [QNX]: Likewise.
99682         * lib/fseterr.c (fseterr) [QNX]: Likewise.
99683         * lib/fwritable.c (fwritable) [QNX]: Likewise.
99684         * lib/fwriting.c (fwriting) [QNX]: Likewise.
99685         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
99686         Reported by Alain Magloire.
99688         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
99690 2007-11-05  Bruno Haible  <bruno@clisp.org>
99692         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
99693         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
99694         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
99695         Reported by Eric Blake.
99697 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99698             Bruno Haible  <bruno@clisp.org>
99700         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
99701         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
99702         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
99703         (malloc): Undefine also before including <stdlib.h>.
99704         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
99705         Needed on OSF/1 4.0.
99707 2007-11-05  Jim Meyering  <meyering@redhat.com>
99709         git-version-gen: sync from coreutils.
99710         * build-aux/git-version-gen: Add comments.
99711         Change the first '-' to '.' in the snapshot version string,
99712         e.g., 6.9-377-08144 -> 6.9.377-08144
99713         Remove first parameter.
99714         Don't declare a version "-dirty" merely because a time
99715         stamp has changed.
99717 2007-11-04  Bruno Haible  <bruno@clisp.org>
99719         * lib/lock.h: Protect all macro definitions containing an 'if'
99720         statement through a "do { ... } while (0)".
99721         * lib/tls.h: Likewise.
99723 2007-11-04  Bruno Haible  <bruno@clisp.org>
99725         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
99727 2007-11-04  Bruno Haible  <bruno@clisp.org>
99729         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
99730         * modules/fprintf-posix (Depends-on): Add nocrash.
99731         * modules/snprintf-posix (Depends-on): Likewise.
99732         * modules/sprintf-posix (Depends-on): Likewise.
99733         * modules/vasnprintf-posix (Depends-on): Likewise.
99734         * modules/vasprintf-posix (Depends-on): Likewise.
99735         * modules/vfprintf-posix (Depends-on): Likewise.
99736         * modules/vsnprintf-posix (Depends-on): Likewise.
99737         * modules/vsprintf-posix (Depends-on): Likewise.
99738         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
99739         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
99740         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
99741         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
99742         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
99743         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
99744         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
99746 2007-11-04  Bruno Haible  <bruno@clisp.org>
99748         * modules/nocrash: New file.
99749         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
99750         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
99752 2007-11-04  Bruno Haible  <bruno@clisp.org>
99754         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
99755         precision handling.
99756         * tests/test-vasprintf-posix.c (test_function): Likewise.
99757         * tests/test-snprintf-posix.h (test_function): Likewise.
99758         * tests/test-sprintf-posix.h (test_function): Likewise.
99760         Fix *printf behaviour for large precisions on mingw and BeOS.
99761         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
99762         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
99763         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
99764         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
99765         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
99766         gl_PRINTF_PRECISION and test its result. Invoke
99767         gl_PREREQ_VASNPRINTF_PRECISION.
99768         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
99769         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
99770         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
99771         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
99772         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
99773         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
99774         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
99775         * doc/functions/fprintf.texi: Update.
99776         * doc/functions/printf.texi: Update.
99777         * doc/functions/snprintf.texi: Update.
99778         * doc/functions/sprintf.texi: Update.
99779         * doc/functions/vfprintf.texi: Update.
99780         * doc/functions/vprintf.texi: Update.
99781         * doc/functions/vsnprintf.texi: Update.
99782         * doc/functions/vsprintf.texi: Update.
99784 2007-11-04  Bruno Haible  <bruno@clisp.org>
99786         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
99788 2007-11-04  Bruno Haible  <bruno@clisp.org>
99790         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
99791         Reported by Sylvain Beucler <beuc@gnu.org>.
99793 2007-11-03  Bruno Haible  <bruno@clisp.org>
99795         * tests/test-fprintf-posix2.sh: New file.
99796         * tests/test-fprintf-posix2.c: New file.
99797         * modules/fprintf-posix-tests (Files): Add them.
99798         (TESTS): Add test-fprintf-posix2.sh.
99799         (configure.ac): Check for getrlimit and setrlimit.
99800         (check_PROGRAMS): Add test-fprintf-posix2.
99802         * tests/test-printf-posix2.sh: New file.
99803         * tests/test-printf-posix2.c: New file.
99804         * modules/printf-posix-tests (Files): Add them.
99805         (TESTS): Add test-printf-posix2.sh.
99806         (configure.ac): Check for getrlimit and setrlimit.
99807         (check_PROGRAMS): Add test-printf-posix2.
99809         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
99810         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
99811         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
99812         (decode_double): New function, copied from decode_long_double.
99813         (scale10_round_decimal_decoded): New function, extracted from
99814         scale10_round_decimal_long_double.
99815         (scale10_round_decimal_long_double): Use it.
99816         (scale10_round_decimal_double): New function.
99817         (floorlog10): New function.
99818         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
99819         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
99820         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
99821         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
99822         gl_PRINTF_ENOMEM and test its result. Invoke
99823         gl_PREREQ_VASNPRINTF_ENOMEM.
99824         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
99825         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
99826         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
99827         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
99828         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
99829         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
99830         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
99831         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
99832         * modules/snprintf-posix (Depends-on): Likewise.
99833         * modules/sprintf-posix (Depends-on): Likewise.
99834         * modules/vasnprintf-posix (Depends-on): Likewise.
99835         * modules/vasprintf-posix (Depends-on): Likewise.
99836         * modules/vfprintf-posix (Depends-on): Likewise.
99837         * modules/vsnprintf-posix (Depends-on): Likewise.
99838         * modules/vsprintf-posix (Depends-on): Likewise.
99839         * doc/functions/fprintf.texi: Update.
99840         * doc/functions/printf.texi: Update.
99841         * doc/functions/snprintf.texi: Update.
99842         * doc/functions/sprintf.texi: Update.
99843         * doc/functions/vfprintf.texi: Update.
99844         * doc/functions/vprintf.texi: Update.
99845         * doc/functions/vsnprintf.texi: Update.
99846         * doc/functions/vsprintf.texi: Update.
99848 2007-11-03  Bruno Haible  <bruno@clisp.org>
99850         * modules/frexp-nolibm-tests: New file.
99852         * modules/frexp-nolibm: New file.
99853         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
99855 2007-11-03  Bruno Haible  <bruno@clisp.org>
99857         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
99858         value is C99 compliant.
99859         Needed for OSF/1 5.1.
99861 2007-11-03  Bruno Haible  <bruno@clisp.org>
99863         Fix out-of-memory handling of vasnprintf.
99864         * lib/printf-parse.c: Include <errno.h>.
99865         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
99866         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
99867         is already set.
99869 2007-11-02  Eric Blake  <ebb9@byu.net>
99871         Fix tests on cygwin.
99872         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
99874 2007-11-01  Bruno Haible  <bruno@clisp.org>
99876         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
99877         warning.
99878         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
99879         needed for POSIX compatibility.
99881 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
99883         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
99884         for compatibility with GNU.
99886 2007-11-01  Bruno Haible  <bruno@clisp.org>
99888         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
99889         (putenv): Renamed from rpl_putenv. Change argument type from
99890         'const char *' to 'char *'.
99891         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
99892         of defining putenv in config.h, just set REPLACE_PUTENV.
99893         * modules/putenv (Depends-on): Add stdlib.
99894         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
99895         (Include): Use <stdlib.h>.
99896         * lib/stdlib.in.h (putenv): New declaration.
99897         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
99898         REPLACE_PUTENV.
99899         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
99900         REPLACE_PUTENV.
99901         Needed for MacOS X 10.5.0.
99902         Reported by Peter O'Gorman <peter@pogma.com>.
99904 2007-11-01  Jim Meyering  <meyering@redhat.com>
99906         Treat an empty date string exactly like "0".
99907         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
99908         if the remaining date string (to be parsed) is empty, use "0".
99909         Reported by Mischa Molhoek and discussed in this thread:
99910         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
99912 2007-10-31  Bruno Haible  <bruno@clisp.org>
99914         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
99915         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
99916         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
99917         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
99918         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
99919         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
99921 2007-10-31  Bruno Haible  <bruno@clisp.org>
99923         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
99924         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
99925         (AC_TYPE_LONG_LONG_INT): Use it.
99926         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
99927         it as well.
99928         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
99929         to m4/longlong.m4.
99930         * modules/stdint (Files): Remove m4/ulonglong.m4.
99931         * modules/strtoull (Files): Use m4/longlong.m4 instead of
99932         m4/ulonglong.m4.
99933         * modules/strtoumax (Files): Likewise.
99935 2007-10-30  Bruno Haible  <bruno@clisp.org>
99937         * modules/xvasprintf-posix: New file.
99938         Suggested by Eric Blake.
99940 2007-10-30  Bruno Haible  <bruno@clisp.org>
99942         * modules/xprintf-posix-tests: New file.
99943         * tests/test-xprintf-posix.sh: New file.
99944         * tests/test-xprintf-posix.c: New file.
99945         * tests/test-xfprintf-posix.c: New file.
99947         * modules/xprintf-posix: New file.
99949 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99951         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
99952         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
99953         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
99955 2007-10-29  Bruno Haible  <bruno@clisp.org>
99957         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
99958         contain the special marker '_cv_'.
99959         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
99960         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
99961         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
99962         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
99963         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
99964         Reported by Ralf Wildenhues.
99966 2007-10-29  Bruno Haible  <bruno@clisp.org>
99968         * gnulib-tool (func_import): When --lgpl is not specified, set
99969         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
99970         GPLv3.
99971         Reported by Simon Josefsson.
99973 2007-10-28  Bruno Haible  <bruno@clisp.org>
99975         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
99976         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
99977         HAVE_DECL_ISFINITE.
99978         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
99979         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
99980         HAVE_DECL_ISFINITE.
99982 2007-10-28  Bruno Haible  <bruno@clisp.org>
99984         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
99985         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
99987 2007-10-28  Bruno Haible  <bruno@clisp.org>
99989         Fix link errors with Sun C 5.0 on Solaris 10.
99990         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
99991         function is declared but not present in the compiler's libm.
99992         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
99993         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
99994         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
99995         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
99996         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
99997         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
99998         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
99999         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
100000         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
100001         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
100002         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
100003         HAVE_DECL_FLOORL.
100005 2007-10-28  Bruno Haible  <bruno@clisp.org>
100007         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
100008         gl_FUNC_FLOORL. Cache the result.
100009         (gl_FUNC_FLOORL): Use it.
100010         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
100011         gl_FUNC_CEILL. Cache the result.
100012         (gl_FUNC_CEILL): Use it.
100014         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
100015         gl_FUNC_FLOOR. Cache the result.
100016         (gl_FUNC_FLOOR): Use it.
100017         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
100018         gl_FUNC_CEIL. Cache the result.
100019         (gl_FUNC_CEIL): Use it.
100021         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
100022         gl_FUNC_FLOORF. Cache the result.
100023         (gl_FUNC_FLOORF): Use it.
100024         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
100025         gl_FUNC_CEILF. Cache the result.
100026         (gl_FUNC_CEILF): Use it.
100028 2007-10-28  Bruno Haible  <bruno@clisp.org>
100030         * gnulib-tool: Allow specifying the LGPL version number through
100031         --lgpl=2 or --lgpl=3.
100032         (func_usage): Document --lgpl with argument.
100033         Handle --lgpl=... arguments.
100034         (func_import): Recognize also gl_LGPL calls with an argument. When
100035         --lgpl=2 is used and the module's license is just LGPL, report an
100036         error. Set sed_transform_lib_file according to the lgpl variable. In
100037         the generated files, use --lgpl or gl_LGPL invocations with argument,
100038         if necessary.
100039         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
100040         an LGPv2+ license.
100041         * doc/gnulib-tool.texi (Modified imports): Update explanation of
100042         gl_LGPL macro.
100044 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100045             Bruno Haible  <bruno@clisp.org>
100047         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
100048         (u16_uctomb_aux): Likewise.
100049         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
100050         !HAVE_INLINE.
100051         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
100053 2007-10-28  Bruno Haible  <bruno@clisp.org>
100055         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
100056         Invoke AM_GETTEXT_OPTION if it exists.
100057         * modules/vasprintf: Likewise.
100058         * modules/verror: Likewise.
100059         * modules/xprintf: Likewise.
100060         * modules/xvasprintf: Likewise.
100062 2007-10-27  Ben Pfaff  <blp@gnu.org>
100064         * lib/math.in.h: Define isfinite macro and prototypes for
100065         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
100066         implementations.
100067         * m4/math_h.m4: New substitutions for isfinite module.
100068         * lib/isfinite.c: New file.
100069         * m4/isfinite.m4: New file.
100070         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
100071         * modules/isfinite: New file.
100072         * modules/isfinite-tests: New file.
100073         * tests/tests-isfinite.c: New file.
100074         * doc/functions/isfinite.texi: Mention isfinite module.
100075         * MODULES.html.sh: Mention new module.
100077 2007-10-27  Ben Pfaff  <blp@gnu.org>
100079         Ralf Wildenhues reported that Tru64 4.0D declares the round
100080         functions but does not have definitions.
100081         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
100082         cannot be found in any library, set the output variable to
100083         "missing" instead of "".
100084         * m4/round.m4: Also use our substitute if we cannot find round in
100085         any library, even if it is declared.
100086         * m4/roundf.m4: Likewise for roundf.
100087         * m4/roundl.m4: Likewise for roundl.
100088         * lib/math.in.h: Undefine roundf, round, roundl before defining
100089         their replacements, to allow for hypothetical systems where these
100090         may be defined as macros but not available in libraries.
100092 2007-10-27  Bruno Haible  <bruno@clisp.org>
100094         * doc/gnulib.texi: Invoke @firstparagraphindent.
100095         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
100096         changes in gnulib.
100097         (Source changes): New section.
100099 2007-10-26  Bruno Haible  <bruno@clisp.org>
100101         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
100102         borrowed from autoconf.
100104 2007-10-26  Bruno Haible  <bruno@clisp.org>
100106         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
100107         strerror returned the empty string. Needed on HP-UX 11.00.
100109 2007-10-24  Micah Cowan  <micah@cowan.name>
100111         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
100112         * build-aux/bootstrap: Remove support for now-unnecessary option,
100113         --cvs-user, and envvars CVS_USER, CVS_RSH.
100115 2007-10-24  Jim Meyering  <meyering@redhat.com>
100117         Avoid diagnostics from sha1sum when there is no cached checksum.
100118         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
100119         if the po.s1 file hasn't been created yet.
100121         * build-aux/bootstrap: Sync from coreutils:
100122         2007-10-24  Jim Meyering  <meyering@redhat.com>
100123         Get gnulib from the git repository, not from an obsolete cvs one.
100124         * build-aux/bootstrap: Suggestion from Micah Cowan.
100125         2007-10-04  Jim Meyering  <jim@meyering.net>
100126         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
100127         (update_po_files): Work also when there are no .po files in po/.
100129 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
100131         * README: Append ".git" to git and cg examples.
100132         Problem reported by Benoit Sigoure.
100134 2007-10-23  Micah Cowan  <micah@cowan.name>
100136         * users.txt: Add wget.
100138 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100140         Fix linking of some unistdio tests on FreeBSD.
100141         * modules/unistdio/u16-vsnprintf-tests
100142         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
100143         * modules/unistdio/u16-vsprintf-tests
100144         (test_u16_vsnprintf1_LDADD): Likewise.
100145         * modules/unistdio/u32-vsnprintf-tests
100146         (test_u32_vsnprintf1_LDADD): Likewise.
100147         * modules/unistdio/u32-vsprintf-tests
100148         (test_u32_vsprintf1_LDADD): Likewise.
100149         * modules/unistdio/u8-vsnprintf-tests
100150         (test_u8_vsnprintf1_LDADD): Likewise.
100151         * modules/unistdio/u8-vsprintf-tests
100152         (test_u8_vsprintf1_LDADD): Likewise.
100153         * modules/unistdio/ulc-vsnprintf-tests
100154         (test_ulc_vsnprintf1_LDADD): Likewise.
100155         * modules/unistdio/ulc-vsprintf-tests
100156         (test_ulc_vsprintf1_LDADD): Likewise.
100158         Fix linking of some uniconv tests on FreeBSD.
100159         * modules/uniconv/u16-conv-from-enc-tests
100160         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
100161         * modules/uniconv/u16-conv-to-enc-tests
100162         (test_u16_conv_to_enc_LDADD): Likewise.
100163         * modules/uniconv/u16-strconv-from-enc-tests
100164         (test_u16_strconv_from_enc_LDADD): Likewise.
100165         * modules/uniconv/u16-strconv-to-enc-tests
100166         (test_u16_strconv_to_enc_LDADD): Likewise.
100167         * modules/uniconv/u32-conv-from-enc-tests
100168         (test_u32_conv_from_enc_LDADD): Likewise.
100169         * modules/uniconv/u32-conv-to-enc-tests
100170         (test_u32_conv_to_enc_LDADD): Likewise.
100171         * modules/uniconv/u32-strconv-from-enc-tests
100172         (test_u32_strconv_from_enc_LDADD): Likewise.
100173         * modules/uniconv/u32-strconv-to-enc-tests
100174         (test_u32_strconv_to_enc_LDADD): Likewise.
100175         * modules/uniconv/u8-conv-from-enc-tests
100176         (test_u8_conv_from_enc_LDADD): Likewise.
100177         * modules/uniconv/u8-conv-to-enc-tests
100178         (test_u8_conv_to_enc_LDADD): Likewise.
100179         * modules/uniconv/u8-strconv-from-enc-tests
100180         (test_u8_strconv_from_enc_LDADD): Likewise.
100181         * modules/uniconv/u8-strconv-to-enc-tests
100182         (test_u8_strconv_to_enc_LDADD): Likewise.
100184 2007-10-22  Bruno Haible  <bruno@clisp.org>
100186         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
100187         size.
100189 2007-10-22  Eric Blake  <ebb9@byu.net>
100191         Tweak x*printf documentation.
100192         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
100193         variable name and comments.
100194         Suggested by Bruno Haible.
100196 2007-10-22  Bruno Haible  <bruno@clisp.org>
100198         * lib/acl.c (copy_acl): Fix file name in comment.
100200 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
100202         Fix Tru64 problem with stdbool.h.
100203         * lib/stdbool.in.h (false, true):
100204         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
100205         Don't declare as an enum in this situation; it runs afoul of Tru64.
100206         Problem reported by Steven M. Schweda in
100207         <http://lists.gnu.org/r/bug-autoconf/2007-10/msg00019.html>.
100209 2007-10-22  Eric Blake  <ebb9@byu.net>
100211         Also wrap vf?printf.
100212         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
100213         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
100214         (xvprintf, xvfprintf): New functions.
100216 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100218         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
100219         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
100221         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
100222         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
100224 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
100226         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
100227         by Bruno Haible.
100229 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100231         * lib/getloadavg.c
100232         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
100233         Undef `sys' after including sys/table.h, for Tru64 4.0D.
100235         * tests/test-i-ring.c: Work for C89.
100237 2007-10-22  Bruno Haible  <bruno@clisp.org>
100239         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
100240         -1u, in preprocessor expression, so that we don't test for the bug
100241         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
100242         <http://lists.gnu.org/r/bug-gnulib/2007-10/msg00329.html>.
100244 2007-10-22  Eric Blake  <ebb9@byu.net>
100246         * tests/test-yesno.sh: Silence stderr during test.
100248 2007-10-22  Simon Josefsson  <simon@josefsson.org>
100250         * modules/crypto/gc-camellia: New file.
100252         * m4/gc-camellia.m4: New file.
100254         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
100256         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
100258 2007-10-22  Simon Josefsson  <simon@josefsson.org>
100260         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
100261         --help to stdout.  Reported by sms@antinode.org (Steven
100262         M. Schweda).
100264 2007-10-22  Simon Josefsson  <simon@josefsson.org>
100266         * users.txt: Fix link to libksba.
100268 2007-10-21  Ben Pfaff  <blp@gnu.org>
100270         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
100271         round.c roundf implementation that depends on floorf and ceilf to
100272         be tested unconditionally.
100274 2007-10-21  Ben Pfaff  <blp@gnu.org>
100276         * m4/check-libm-func.m4: Removed.
100277         * m4/check-math-lib.m4: New file.
100278         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
100279         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
100280         definition and lack of AC_LIBOBJ([roundf]).
100281         * m4/roundl.m4: Ditto, and similarly for roundl.
100282         * modules/round: Reference new m4 file.
100283         * modules/roundf: Ditto.
100284         * modules/roundl: Ditto.
100285         * tests/test-round2.c (main): Use ROUND instead of round.
100286         Bug report from Bruno Haible.
100288 2007-10-21  Bruno Haible  <bruno@clisp.org>
100290         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
100291         context.
100293 2007-10-21  Bruno Haible  <bruno@clisp.org>
100295         * tests/test-wcwidth.c (main): Allow negative result for some control
100296         characters.
100298         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
100299         Needed on OSF/1 5.1.
100301 2007-10-21  Bruno Haible  <bruno@clisp.org>
100303         * tests/test-floorf1.c: Include isnanf.h.
100304         (main): Use isnanf() instead of isnan().
100305         * tests/test-ceilf1.c: Include isnanf.h.
100306         (main): Use isnanf() instead of isnan().
100307         * tests/test-truncf1.c: Include isnanf.h.
100308         (main): Use isnanf() instead of isnan().
100309         * tests/test-roundf1.c: Include isnanf.h.
100310         (main): Use isnanf() instead of isnan().
100312 2007-10-21  Eric Blake  <ebb9@byu.net>
100314         * users.txt: Update URL for m4.
100316 2007-10-21  Bruno Haible  <bruno@clisp.org>
100318         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
100320 2007-10-21  Bruno Haible  <bruno@clisp.org>
100322         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
100323         Git's management files if the CVS files are not present.
100325 2007-10-20  Bruno Haible  <bruno@clisp.org>
100327         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
100328         gcc-3.4.x.
100330 2007-10-20  Ben Pfaff  <blp@gnu.org>
100332         * lib/math.in.h: Declare round, roundf, roundl if we are providing
100333         implementations.
100334         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
100335         * lib/round.c: New file.
100336         * lib/roundf.c: New file.
100337         * lib/roundl.c: New file.
100338         * m4/round.m4: New file.
100339         * m4/roundf.m4: New file.
100340         * m4/roundl.m4: New file.
100341         * m4/check-libm-func-m4: New file.
100342         * modules/math: Replace round, roundf, roundl related @VARS@ in
100343         math.in.h.
100344         * modules/round: New file.
100345         * modules/round-tests: New file.
100346         * modules/roundf: New file.
100347         * modules/roundf-tests: New file.
100348         * modules/roundl: New file.
100349         * modules/roundl-tests: New file.
100350         * tests/test-round1.c: New file.
100351         * tests/test-round2.c: New file.
100352         * tests/test-roundf1.c: New file.
100353         * tests/test-roundf2.c: New file.
100354         * tests/test-roundl.c: New file.
100355         * doc/functions/round.texi: Mention round module.
100356         * doc/functions/roundf.texi: Mention roundf module.
100357         * doc/functions/roundl.texi: Mention roundl module.
100358         * MODULES.html.sh: Mention new modules.
100359         Thanks to Bruno Haible for suggestions.
100361 2007-10-20  Jim Meyering  <meyering@redhat.com>
100363         * lib/xprintf.c: Include <config.h> unconditionally.
100365         Change xprintf's license to GPL.
100366         * modules/xprintf (License): s/LGPL/GPL/, since this module
100367         depends on modules (exit and exitfail) which are GPL.
100368         Suggestion from Bruno Haible.
100370         xprintf fixes.
100371         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
100372         Use a clearer diagnostic.
100373         Patch from Bruno Haible.
100375 2007-10-20  Bruno Haible  <bruno@clisp.org>
100377         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
100378         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
100379         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
100381 2007-10-20  Bruno Haible  <bruno@clisp.org>
100383         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
100384         precision in the comparison result > x - 1 or similar.
100385         * tests/test-ceilf2.c (correct_result_p): Likewise.
100386         * tests/test-truncf2.c (correct_result_p): Likewise.
100387         * tests/test-trunc2.c (correct_result_p): Likewise.
100388         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
100390 2007-10-20  Bruno Haible  <bruno@clisp.org>
100392         * modules/ceil: New file.
100393         * m4/ceil.m4: New file.
100394         * doc/functions/ceil.texi: Mention the 'ceil' module.
100396 2007-10-20  Bruno Haible  <bruno@clisp.org>
100398         * modules/floor: New file.
100399         * m4/floor.m4: New file.
100400         * doc/functions/floor.texi: Mention the 'floor' module.
100402 2007-10-20  Bruno Haible  <bruno@clisp.org>
100404         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
100405         of %a.
100406         * modules/floorf-tests (Depends-on): Likewise.
100407         * modules/truncf-tests (Depends-on): Likewise.
100408         * modules/trunc-tests (Depends-on): Likewise.
100409         Reported by Ben Pfaff.
100411 2007-10-19  Jim Meyering  <meyering@redhat.com>
100413         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
100414         Don't bother testing specific errno values.  Just test ferror.
100416         New module: xprintf
100417         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
100419 2007-10-19  Bruno Haible  <bruno@clisp.org>
100421         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
100422         syntax.
100423         * modules/javaexec (Makefile.am): Likewise.
100424         * modules/relocatable-prog (Makefile.am): Likewise.
100425         Suggested by Jim Meyering.
100427 2007-10-18  Bruno Haible  <bruno@clisp.org>
100429         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
100430         Reported by Jim Meyering.
100432 2007-10-18  Eric Blake  <ebb9@byu.net>
100434         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
100436 2007-10-18  Bruno Haible  <bruno@clisp.org>
100438         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
100439         the format string into writable memory. Needed in Fortify conditions.
100441 2007-10-18  Colin Watson  <cjwatson@debian.org>  (tiny change)
100442             Bruno Haible  <bruno@clisp.org>
100444         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
100445         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
100446         * modules/trim (Depends-on): Add mbchar.
100447         (configure.ac): Add gl_FUNC_MBRTOWC.
100448         (Makefile.am): Augment lib_SOURCES.
100450 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
100452         Modify glob.c to use fstatat and dirfd, to simplify it.
100453         Suggested by Eric Blake.
100454         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
100455         Don't include <stdbool.h>; not used.
100456         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
100457         (link_exists_p): Simplify implementation, since we can now assume
100458         dirfd and fstatat.
100459         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
100461 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100463         * gnulib-tool (func_get_dependencies): Fix sed script to
100464         match only tests.
100466 2007-10-17  Bruno Haible  <bruno@clisp.org>
100468         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
100469         allow locale names without encoding suffix.
100470         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
100471         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
100473 2007-10-16  Bruno Haible  <bruno@clisp.org>
100475         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
100476         * lib/getgroups.c (getgroups): Likewise.
100477         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
100479 2007-10-16  Bruno Haible  <bruno@clisp.org>
100481         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
100482         * modules/malloc-posix (License): Likewise.
100483         * modules/realloc-posix (License): Likewise.
100484         * modules/calloc-posix (License): Likewise.
100485         * modules/intprops (License): Change from GPL to LGPL, with
100486         Paul Eggert's approval.
100488 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
100490         Merge glibc changes into lib/glob.c.
100492         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
100493         2007-10-15 04:59:03 UTC.  Here are the changes:
100495         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
100497         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
100499         * lib/glob.c: Add some branch prediction throughout.
100501         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
100503         [BZ #5103]
100504         * lib/glob.c (glob): Recognize patterns starting \/.
100506         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
100508         [BZ #3996]
100509         * lib/glob.c (attribute_hidden): Define if not defined.
100510         (glob): Unescape dirname, filename or username when needed and not
100511         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
100512         is NULL.  Handle unescaped [ in pattern without closing ].
100513         Don't pass GLOB_CHECK down to recursive glob for directories.
100514         (__glob_pattern_type): New function.
100515         (__glob_pattern_p): Implement using __glob_pattern_type.
100516         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
100517         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
100518         Remove unreachable code.
100520         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
100522         * lib/glob.c (glob_in_dir): Add some comments and asserts to
100523         explain why there are no leaks.
100525         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
100527         [BZ #3253]
100528         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
100529         time, rather allocate increasingly bigger arrays of pointers, if
100530         possible with alloca, if too large with malloc.
100532 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
100534         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
100535         Problem reported by H.Merijn Brand in
100536         <http://lists.gnu.org/r/bug-tar/2007-10/msg00018.html>.
100537         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
100538         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
100540 2007-10-15  Bruno Haible  <bruno@clisp.org>
100542         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
100543         with explicit rpl_ prefix.
100544         * lib/fopen.c (fopen): Likewise.
100545         * lib/freopen.c (freopen): Likewise.
100546         * lib/iconv.c (iconv): Likewise.
100547         * lib/iconv_close.c (iconv_close): Likewise.
100549 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100551         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
100553 2007-10-15  Bruno Haible  <bruno@clisp.org>
100555         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
100556         <stddef.h> instead of <stdlib.h> since we only need NULL.
100557         Reported by Ben Pfaff <blp@cs.stanford.edu>.
100559 2007-10-15  Bruno Haible  <bruno@clisp.org>
100561         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
100562         Replace paragraph talking about LIBOBJS.
100563         Reported by Colin Watson <cjwatson@debian.org>.
100565 2007-10-15  Bruno Haible  <bruno@clisp.org>
100567         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
100568         <stdlib.h> before using NULL.
100570 2007-10-15  Simon Josefsson  <simon@josefsson.org>
100572         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
100573         Reported by Albert Chin <china@thewrittenword.com>.
100575 2007-10-14  Bruno Haible  <bruno@clisp.org>
100577         * modules/iconv_open-utf-tests: New file.
100578         * tests/test-iconv-utf.c: New file.
100580         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
100581         * modules/iconv_open-utf: New file.
100582         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
100583         (iconv, iconv_close): New declarations.
100584         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
100585         be defined.
100586         (iconv_open): Add special handling of conversion between UTF-8 and
100587         UTF-{16,32}{BE,LE}.
100588         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
100589         * lib/iconv_close.c: New file.
100590         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
100591         gl_FUNC_ICONV_OPEN.
100592         (gl_FUNC_ICONV_OPEN): Use it.
100593         (gl_FUNC_ICONV_OPEN_UTF): New macro.
100594         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
100595         and REPLACE_ICONV_UTF.
100596         * modules/iconv_open (Depends-on): Add c-strcase.
100597         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
100598         ICONV_CONST.
100599         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
100601 2007-10-13  Albert Chin  <china@thewrittenword.com>
100602             Bruno Haible  <bruno@clisp.org>
100604         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
100605         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
100607 2007-10-13  Bruno Haible  <bruno@clisp.org>
100609         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
100610         defined, use the ISO C99 inline semantics.
100611         * lib/argp.h (ARGP_EI): Likewise.
100613 2007-10-13  Bruno Haible  <bruno@clisp.org>
100615         Handle 'inline' change in gcc 4.3.0.
100616         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
100617         argp_fmtstream_write, argp_fmtstream_set_lmargin,
100618         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
100619         argp_fmtstream_point): Disable 'extern' declaration if the function
100620         definition is going to be provided inline.
100621         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
100622         semantics, not the ISO C99 inline semantics.
100623         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
100624         'extern' declaration if the function definition is going to be provided
100625         inline.
100626         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
100627         the GNU C inline semantics, not the ISO C99 inline semantics. With
100628         GCC 4.2, avoid a warning.
100630 2007-10-13  Bruno Haible  <bruno@clisp.org>
100632         * lib/freading.h (freading): Enable the use of __freading for
100633         glibc >= 2.7.
100634         * lib/freading.c (freading): Likewise.
100636 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
100638         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
100639         "warning: C99 inline functions are not supported; using GNU89".
100641 2007-10-12  Bruno Haible  <bruno@clisp.org>
100643         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
100644         of 2.
100645         * tests/test-ceilf2.c: New file.
100646         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
100648         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
100649         * modules/ceilf-tests: Update.
100651 2007-10-12  Bruno Haible  <bruno@clisp.org>
100653         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
100654         of 2.
100655         * tests/test-floorf2.c: New file.
100656         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
100658         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
100659         * modules/floorf-tests: Update.
100661 2007-10-12  Bruno Haible  <bruno@clisp.org>
100663         * tests/test-trunc2.c: New file.
100664         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
100666         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
100667         * modules/trunc-tests: Update.
100669 2007-10-12  Bruno Haible  <bruno@clisp.org>
100671         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
100672         of 2.
100673         * tests/test-truncf2.c: New file.
100674         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
100676         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
100677         * modules/truncf-tests: Update.
100679 2007-10-11  Eric Blake  <ebb9@byu.net>
100681         Don't claim strerror is broken on Interix.
100682         * doc/functions/strerror.texi (strerror): Known broken systems are
100683         now Solaris 8, and not Interix.
100684         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
100685         Interix on cross-compile.
100686         Reported by Martin Koeppe in
100687         http://lists.gnu.org/r/bug-gnulib/2007-10/msg00005.html.
100689 2007-10-11  Bruno Haible  <bruno@clisp.org>
100691         * modules/i-ring-tests: New file.
100692         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
100693         instead of assert.
100695 2007-10-11  Bruno Haible  <bruno@clisp.org>
100697         * modules/filenamecat-tests: New file.
100698         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
100699         * lib/filenamecat.c: Remove test code.
100701 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
100703         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
100705         * lib/strerror.c: Include <string.h> always, to test interface,
100706         and to remove the need for the dummy.
100707         Include intprops.h to compute width instead of doing it ourselves
100708         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
100709         (strerror): Define it to return NULL if there's no system strerror.
100710         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
100711         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
100712         ancient pre-strerror Unix systems well any more.  Saying "unknown
100713         system error" is enough.
100714         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
100715         simpler strerror.c implementation.
100716         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
100717         Simplify the tests to reflect the simpler strerror implementation.
100718         * modules/strerror (Depends-on): Add intprops.
100720 2007-10-09  Eric Blake  <ebb9@byu.net>
100722         Silence test-fpending.
100723         * modules/fpending-tests (Files): Add wrapper script.
100724         * tests/test-fpending.sh: New file.
100726 2007-10-09  Bruno Haible  <bruno@clisp.org>
100728         * MODULES.html.sh (func_module): Don't create a hyperlink for
100729         function names like 'printf_frexp'.
100730         (Misc): Add crc, memxor.
100731         (Characteristics of floating types): New section.
100732         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
100733         isnanf-nolibm, signbit, trunc, truncf, truncl.
100734         (Enhancements for ISO C 99 functions): New subsection Input/output.
100735         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
100736         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
100737         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
100738         (Compatibility checks for POSIX:2001 functions): Add clock-time.
100739         (Enhancements for POSIX:2001 functions): Add chdir-long.
100740         (File system functions): Add areadlink, chdir-safer, read-file.
100741         Remove cycle-check.
100742         (File system as inode set): New section.
100743         (Date and time): Add gethrxtime.
100744         (Multithreading): Add openmp.
100745         (Internationalization functions): Add localename.
100746         (Unicode string functions): Add unistr/u*-mbsnlen.
100747         (Support for maintaining and releasing projects): Add git-version-gen.
100748         (Lone files): Remove directories.
100750 2007-10-08  Ben Pfaff  <blp@gnu.org>
100752         * lib/xmalloca.h: Fix typo in comment.
100754 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
100756         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
100757         when avoiding problems with integer overflow.  Use a portable test
100758         instead.
100760 2007-10-08  Simon Josefsson  <simon@josefsson.org>
100762         * modules/dummy (License): Change to LGPLv2+.
100763         * modules/float (License): Likewise
100764         * modules/realloc (License): Likewise
100765         * modules/stdlib (License): Likewise
100767 2007-10-07  Bruno Haible  <bruno@clisp.org>
100769         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
100770         * floor.c (TWO_MANT_DIG): Likewise.
100771         * ceil.c (TWO_MANT_DIG): Likewise.
100772         Reported by Ben Pfaff.
100774 2007-10-07  Bruno Haible  <bruno@clisp.org>
100776         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
100777         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
100778         * lib/frexp.c (FUNC): Likewise.
100779         * lib/printf-frexp.h (printf_frexp): Likewise.
100780         * lib/printf-frexpl.h (printf_frexpl): Likewise.
100781         * lib/printf-frexp.c (FUNC): Likewise.
100782         Suggested by Jim Meyering.
100784 2007-10-07  Jim Meyering  <meyering@redhat.com>
100786         Make xnanosleep's integer overflow test more robust.
100787         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
100788         so that gcc-4.3.0 doesn't optimize away this test for overflow.
100790 2007-10-07  Bruno Haible  <bruno@clisp.org>
100792         * NEWS: Mention the license change.
100794         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
100795         abbreviations in the modules files.
100797         Change copyright notice from GPLv2+ to GPLv3+.
100798         * README: Change copyright notice.
100799         * MODULES.html.sh: Likewise.
100800         * build-aux/bootstrap.conf: Likewise.
100801         * build-aux/config.libpath: Likewise.
100802         * build-aux/csharpcomp.sh.in: Likewise.
100803         * build-aux/csharpexec.sh.in: Likewise.
100804         * build-aux/install-reloc: Likewise.
100805         * build-aux/javacomp.sh.in: Likewise.
100806         * build-aux/javaexec.sh.in: Likewise.
100807         * build-aux/ldd.sh.in: Likewise.
100808         * build-aux/reloc-ldflags: Likewise.
100809         * build-aux/relocatable.sh.in: Likewise.
100810         * build-aux/x-to-1.in: Likewise.
100811         * check-module: Likewise.
100812         * config/srclistvars.sh: Likewise.
100813         * gnulib-tool: Likewise.
100814         * lib/acl-internal.h: Likewise.
100815         * lib/acl.c: Likewise.
100816         * lib/acl.h: Likewise.
100817         * lib/acl_entries.c: Likewise.
100818         * lib/areadlink-with-size.c: Likewise.
100819         * lib/areadlink.c: Likewise.
100820         * lib/areadlink.h: Likewise.
100821         * lib/argmatch.c: Likewise.
100822         * lib/argmatch.h: Likewise.
100823         * lib/argp-ba.c: Likewise.
100824         * lib/argp-eexst.c: Likewise.
100825         * lib/argp-fmtstream.c: Likewise.
100826         * lib/argp-fmtstream.h: Likewise.
100827         * lib/argp-fs-xinl.c: Likewise.
100828         * lib/argp-help.c: Likewise.
100829         * lib/argp-namefrob.h: Likewise.
100830         * lib/argp-parse.c: Likewise.
100831         * lib/argp-pin.c: Likewise.
100832         * lib/argp-pv.c: Likewise.
100833         * lib/argp-pvh.c: Likewise.
100834         * lib/argp-xinl.c: Likewise.
100835         * lib/argp.h: Likewise.
100836         * lib/at-func.c: Likewise.
100837         * lib/atanl.c: Likewise.
100838         * lib/backupfile.c: Likewise.
100839         * lib/backupfile.h: Likewise.
100840         * lib/basename.c: Likewise.
100841         * lib/binary-io.h: Likewise.
100842         * lib/byteswap.in.h: Likewise.
100843         * lib/c-stack.c: Likewise.
100844         * lib/c-stack.h: Likewise.
100845         * lib/c-strcasestr.c: Likewise.
100846         * lib/c-strcasestr.h: Likewise.
100847         * lib/c-strstr.c: Likewise.
100848         * lib/c-strstr.h: Likewise.
100849         * lib/c-strtod.c: Likewise.
100850         * lib/calloc.c: Likewise.
100851         * lib/canon-host.c: Likewise.
100852         * lib/canon-host.h: Likewise.
100853         * lib/canonicalize-lgpl.c: Likewise.
100854         * lib/canonicalize.c: Likewise.
100855         * lib/canonicalize.h: Likewise.
100856         * lib/ceil.c: Likewise.
100857         * lib/ceilf.c: Likewise.
100858         * lib/ceill.c: Likewise.
100859         * lib/chdir-long.c: Likewise.
100860         * lib/chdir-long.h: Likewise.
100861         * lib/chdir-safer.c: Likewise.
100862         * lib/chdir-safer.h: Likewise.
100863         * lib/chown.c: Likewise.
100864         * lib/classpath.c: Likewise.
100865         * lib/classpath.h: Likewise.
100866         * lib/clean-temp.c: Likewise.
100867         * lib/clean-temp.h: Likewise.
100868         * lib/cloexec.c: Likewise.
100869         * lib/close-stream.c: Likewise.
100870         * lib/closein.c: Likewise.
100871         * lib/closein.h: Likewise.
100872         * lib/closeout.c: Likewise.
100873         * lib/closeout.h: Likewise.
100874         * lib/concat-filename.c: Likewise.
100875         * lib/copy-file.c: Likewise.
100876         * lib/copy-file.h: Likewise.
100877         * lib/count-one-bits.h: Likewise.
100878         * lib/crc.c: Likewise.
100879         * lib/crc.h: Likewise.
100880         * lib/creat-safer.c: Likewise.
100881         * lib/csharpcomp.c: Likewise.
100882         * lib/csharpcomp.h: Likewise.
100883         * lib/csharpexec.c: Likewise.
100884         * lib/csharpexec.h: Likewise.
100885         * lib/cycle-check.c: Likewise.
100886         * lib/cycle-check.h: Likewise.
100887         * lib/diacrit.c: Likewise.
100888         * lib/diacrit.h: Likewise.
100889         * lib/diffseq.h: Likewise.
100890         * lib/dirchownmod.c: Likewise.
100891         * lib/dirent.in.h: Likewise.
100892         * lib/dirfd.c: Likewise.
100893         * lib/dirfd.h: Likewise.
100894         * lib/dirname.c: Likewise.
100895         * lib/dirname.h: Likewise.
100896         * lib/dummy.c: Likewise.
100897         * lib/dup-safer.c: Likewise.
100898         * lib/dup2.c: Likewise.
100899         * lib/eealloc.h: Likewise.
100900         * lib/error.c: Likewise.
100901         * lib/error.h: Likewise.
100902         * lib/euidaccess.c: Likewise.
100903         * lib/exclude.c: Likewise.
100904         * lib/exclude.h: Likewise.
100905         * lib/execute.c: Likewise.
100906         * lib/execute.h: Likewise.
100907         * lib/exitfail.c: Likewise.
100908         * lib/exitfail.h: Likewise.
100909         * lib/expl.c: Likewise.
100910         * lib/fatal-signal.c: Likewise.
100911         * lib/fatal-signal.h: Likewise.
100912         * lib/fbufmode.c: Likewise.
100913         * lib/fbufmode.h: Likewise.
100914         * lib/fchdir.c: Likewise.
100915         * lib/fchmodat.c: Likewise.
100916         * lib/fchownat.c: Likewise.
100917         * lib/fcntl--.h: Likewise.
100918         * lib/fcntl-safer.h: Likewise.
100919         * lib/fcntl.in.h: Likewise.
100920         * lib/fd-safer.c: Likewise.
100921         * lib/fflush.c: Likewise.
100922         * lib/file-has-acl.c: Likewise.
100923         * lib/file-set.c: Likewise.
100924         * lib/file-type.c: Likewise.
100925         * lib/file-type.h: Likewise.
100926         * lib/fileblocks.c: Likewise.
100927         * lib/filemode.c: Likewise.
100928         * lib/filemode.h: Likewise.
100929         * lib/filename.h: Likewise.
100930         * lib/filenamecat.c: Likewise.
100931         * lib/filenamecat.h: Likewise.
100932         * lib/findprog.c: Likewise.
100933         * lib/findprog.h: Likewise.
100934         * lib/float.in.h: Likewise.
100935         * lib/floor.c: Likewise.
100936         * lib/floorf.c: Likewise.
100937         * lib/floorl.c: Likewise.
100938         * lib/fopen-safer.c: Likewise.
100939         * lib/fopen.c: Likewise.
100940         * lib/fpending.c: Likewise.
100941         * lib/fpending.h: Likewise.
100942         * lib/fprintf.c: Likewise.
100943         * lib/fprintftime.h: Likewise.
100944         * lib/fpucw.h: Likewise.
100945         * lib/fpurge.c: Likewise.
100946         * lib/fpurge.h: Likewise.
100947         * lib/freadable.c: Likewise.
100948         * lib/freadable.h: Likewise.
100949         * lib/freadahead.c: Likewise.
100950         * lib/freadahead.h: Likewise.
100951         * lib/freading.c: Likewise.
100952         * lib/freading.h: Likewise.
100953         * lib/free.c: Likewise.
100954         * lib/freopen.c: Likewise.
100955         * lib/frexp.c: Likewise.
100956         * lib/frexpl.c: Likewise.
100957         * lib/fseek.c: Likewise.
100958         * lib/fseterr.c: Likewise.
100959         * lib/fseterr.h: Likewise.
100960         * lib/fstatat.c: Likewise.
100961         * lib/fstrcmp.c: Likewise.
100962         * lib/fstrcmp.h: Likewise.
100963         * lib/fsusage.c: Likewise.
100964         * lib/fsusage.h: Likewise.
100965         * lib/ftell.c: Likewise.
100966         * lib/ftello.c: Likewise.
100967         * lib/fts-cycle.c: Likewise.
100968         * lib/fts.c: Likewise.
100969         * lib/fts_.h: Likewise.
100970         * lib/full-read.c: Likewise.
100971         * lib/full-read.h: Likewise.
100972         * lib/full-write.c: Likewise.
100973         * lib/full-write.h: Likewise.
100974         * lib/fwritable.c: Likewise.
100975         * lib/fwritable.h: Likewise.
100976         * lib/fwriteerror.c: Likewise.
100977         * lib/fwriteerror.h: Likewise.
100978         * lib/fwriting.c: Likewise.
100979         * lib/fwriting.h: Likewise.
100980         * lib/gcd.c: Likewise.
100981         * lib/gcd.h: Likewise.
100982         * lib/getcwd.c: Likewise.
100983         * lib/getdate.h: Likewise.
100984         * lib/getdate.y: Likewise.
100985         * lib/getdomainname.c: Likewise.
100986         * lib/getdomainname.h: Likewise.
100987         * lib/getgroups.c: Likewise.
100988         * lib/gethostname.c: Likewise.
100989         * lib/gethrxtime.c: Likewise.
100990         * lib/gethrxtime.h: Likewise.
100991         * lib/getloadavg.c: Likewise.
100992         * lib/getndelim2.c: Likewise.
100993         * lib/getndelim2.h: Likewise.
100994         * lib/getnline.c: Likewise.
100995         * lib/getnline.h: Likewise.
100996         * lib/getopt.c: Likewise.
100997         * lib/getopt.in.h: Likewise.
100998         * lib/getopt1.c: Likewise.
100999         * lib/getopt_int.h: Likewise.
101000         * lib/getpagesize.h: Likewise.
101001         * lib/getsubopt.c: Likewise.
101002         * lib/gettime.c: Likewise.
101003         * lib/getugroups.c: Likewise.
101004         * lib/getugroups.h: Likewise.
101005         * lib/getusershell.c: Likewise.
101006         * lib/gl_anyavltree_list1.h: Likewise.
101007         * lib/gl_anyavltree_list2.h: Likewise.
101008         * lib/gl_anyhash_list1.h: Likewise.
101009         * lib/gl_anyhash_list2.h: Likewise.
101010         * lib/gl_anylinked_list1.h: Likewise.
101011         * lib/gl_anylinked_list2.h: Likewise.
101012         * lib/gl_anyrbtree_list1.h: Likewise.
101013         * lib/gl_anyrbtree_list2.h: Likewise.
101014         * lib/gl_anytree_list1.h: Likewise.
101015         * lib/gl_anytree_list2.h: Likewise.
101016         * lib/gl_anytree_oset.h: Likewise.
101017         * lib/gl_anytreehash_list1.h: Likewise.
101018         * lib/gl_anytreehash_list2.h: Likewise.
101019         * lib/gl_array_list.c: Likewise.
101020         * lib/gl_array_list.h: Likewise.
101021         * lib/gl_array_oset.c: Likewise.
101022         * lib/gl_array_oset.h: Likewise.
101023         * lib/gl_avltree_list.c: Likewise.
101024         * lib/gl_avltree_list.h: Likewise.
101025         * lib/gl_avltree_oset.c: Likewise.
101026         * lib/gl_avltree_oset.h: Likewise.
101027         * lib/gl_avltreehash_list.c: Likewise.
101028         * lib/gl_avltreehash_list.h: Likewise.
101029         * lib/gl_carray_list.c: Likewise.
101030         * lib/gl_carray_list.h: Likewise.
101031         * lib/gl_linked_list.c: Likewise.
101032         * lib/gl_linked_list.h: Likewise.
101033         * lib/gl_linkedhash_list.c: Likewise.
101034         * lib/gl_linkedhash_list.h: Likewise.
101035         * lib/gl_list.c: Likewise.
101036         * lib/gl_list.h: Likewise.
101037         * lib/gl_oset.c: Likewise.
101038         * lib/gl_oset.h: Likewise.
101039         * lib/gl_rbtree_list.c: Likewise.
101040         * lib/gl_rbtree_list.h: Likewise.
101041         * lib/gl_rbtree_oset.c: Likewise.
101042         * lib/gl_rbtree_oset.h: Likewise.
101043         * lib/gl_rbtreehash_list.c: Likewise.
101044         * lib/gl_rbtreehash_list.h: Likewise.
101045         * lib/gl_sublist.c: Likewise.
101046         * lib/gl_sublist.h: Likewise.
101047         * lib/group-member.c: Likewise.
101048         * lib/group-member.h: Likewise.
101049         * lib/hard-locale.c: Likewise.
101050         * lib/hard-locale.h: Likewise.
101051         * lib/hash-pjw.c: Likewise.
101052         * lib/hash-pjw.h: Likewise.
101053         * lib/hash-triple.c: Likewise.
101054         * lib/hash.c: Likewise.
101055         * lib/hash.h: Likewise.
101056         * lib/human.c: Likewise.
101057         * lib/human.h: Likewise.
101058         * lib/i-ring.c: Likewise.
101059         * lib/i-ring.h: Likewise.
101060         * lib/idcache.c: Likewise.
101061         * lib/imaxabs.c: Likewise.
101062         * lib/imaxdiv.c: Likewise.
101063         * lib/inet_pton.c: Likewise.
101064         * lib/inet_pton.h: Likewise.
101065         * lib/intprops.h: Likewise.
101066         * lib/inttostr.c: Likewise.
101067         * lib/inttostr.h: Likewise.
101068         * lib/inttypes.in.h: Likewise.
101069         * lib/isapipe.c: Likewise.
101070         * lib/isdir.c: Likewise.
101071         * lib/isnan.c: Likewise.
101072         * lib/isnan.h: Likewise.
101073         * lib/isnanf.c: Likewise.
101074         * lib/isnanf.h: Likewise.
101075         * lib/isnanl-nolibm.h: Likewise.
101076         * lib/isnanl.c: Likewise.
101077         * lib/isnanl.h: Likewise.
101078         * lib/javacomp.c: Likewise.
101079         * lib/javacomp.h: Likewise.
101080         * lib/javaexec.c: Likewise.
101081         * lib/javaexec.h: Likewise.
101082         * lib/javaversion.c: Likewise.
101083         * lib/javaversion.h: Likewise.
101084         * lib/javaversion.java: Likewise.
101085         * lib/lbrkprop.h: Likewise.
101086         * lib/lchmod.h: Likewise.
101087         * lib/lchown.c: Likewise.
101088         * lib/ldexpl.c: Likewise.
101089         * lib/linebreak.c: Likewise.
101090         * lib/linebreak.h: Likewise.
101091         * lib/linebuffer.c: Likewise.
101092         * lib/linebuffer.h: Likewise.
101093         * lib/locale.in.h: Likewise.
101094         * lib/logl.c: Likewise.
101095         * lib/long-options.c: Likewise.
101096         * lib/long-options.h: Likewise.
101097         * lib/lstat.c: Likewise.
101098         * lib/lstat.h: Likewise.
101099         * lib/math.in.h: Likewise.
101100         * lib/mbchar.c: Likewise.
101101         * lib/mbchar.h: Likewise.
101102         * lib/mbfile.h: Likewise.
101103         * lib/mbiter.h: Likewise.
101104         * lib/mbscasecmp.c: Likewise.
101105         * lib/mbscasestr.c: Likewise.
101106         * lib/mbschr.c: Likewise.
101107         * lib/mbscspn.c: Likewise.
101108         * lib/mbslen.c: Likewise.
101109         * lib/mbsncasecmp.c: Likewise.
101110         * lib/mbsnlen.c: Likewise.
101111         * lib/mbspbrk.c: Likewise.
101112         * lib/mbspcasecmp.c: Likewise.
101113         * lib/mbsrchr.c: Likewise.
101114         * lib/mbssep.c: Likewise.
101115         * lib/mbsspn.c: Likewise.
101116         * lib/mbsstr.c: Likewise.
101117         * lib/mbstok_r.c: Likewise.
101118         * lib/mbswidth.c: Likewise.
101119         * lib/mbswidth.h: Likewise.
101120         * lib/mbuiter.h: Likewise.
101121         * lib/memcasecmp.c: Likewise.
101122         * lib/memcasecmp.h: Likewise.
101123         * lib/memchr.c: Likewise.
101124         * lib/memcmp.c: Likewise.
101125         * lib/memcoll.c: Likewise.
101126         * lib/memcoll.h: Likewise.
101127         * lib/memcpy.c: Likewise.
101128         * lib/memrchr.c: Likewise.
101129         * lib/mkancesdirs.c: Likewise.
101130         * lib/mkdir-p.c: Likewise.
101131         * lib/mkdir-p.h: Likewise.
101132         * lib/mkdir.c: Likewise.
101133         * lib/mkdirat.c: Likewise.
101134         * lib/mkdtemp.c: Likewise.
101135         * lib/mkstemp-safer.c: Likewise.
101136         * lib/mkstemp.c: Likewise.
101137         * lib/modechange.c: Likewise.
101138         * lib/modechange.h: Likewise.
101139         * lib/mountlist.c: Likewise.
101140         * lib/mountlist.h: Likewise.
101141         * lib/mpsort.c: Likewise.
101142         * lib/nanosleep.c: Likewise.
101143         * lib/obstack.c: Likewise.
101144         * lib/obstack.h: Likewise.
101145         * lib/open-safer.c: Likewise.
101146         * lib/open.c: Likewise.
101147         * lib/openat-die.c: Likewise.
101148         * lib/openat-priv.h: Likewise.
101149         * lib/openat-proc.c: Likewise.
101150         * lib/openat.c: Likewise.
101151         * lib/openat.h: Likewise.
101152         * lib/pagealign_alloc.c: Likewise.
101153         * lib/pagealign_alloc.h: Likewise.
101154         * lib/physmem.c: Likewise.
101155         * lib/physmem.h: Likewise.
101156         * lib/pipe-safer.c: Likewise.
101157         * lib/pipe.c: Likewise.
101158         * lib/pipe.h: Likewise.
101159         * lib/posixtm.c: Likewise.
101160         * lib/posixtm.h: Likewise.
101161         * lib/posixver.c: Likewise.
101162         * lib/printf-frexp.c: Likewise.
101163         * lib/printf-frexp.h: Likewise.
101164         * lib/printf-frexpl.c: Likewise.
101165         * lib/printf-frexpl.h: Likewise.
101166         * lib/printf.c: Likewise.
101167         * lib/progname.c: Likewise.
101168         * lib/progname.h: Likewise.
101169         * lib/progreloc.c: Likewise.
101170         * lib/putenv.c: Likewise.
101171         * lib/quote.c: Likewise.
101172         * lib/quote.h: Likewise.
101173         * lib/quotearg.c: Likewise.
101174         * lib/quotearg.h: Likewise.
101175         * lib/raise.c: Likewise.
101176         * lib/readline.c: Likewise.
101177         * lib/readline.h: Likewise.
101178         * lib/readlink.c: Likewise.
101179         * lib/readtokens.c: Likewise.
101180         * lib/readtokens.h: Likewise.
101181         * lib/readtokens0.c: Likewise.
101182         * lib/readtokens0.h: Likewise.
101183         * lib/readutmp.c: Likewise.
101184         * lib/readutmp.h: Likewise.
101185         * lib/realloc.c: Likewise.
101186         * lib/relocwrapper.c: Likewise.
101187         * lib/rename-dest-slash.c: Likewise.
101188         * lib/rename.c: Likewise.
101189         * lib/rmdir.c: Likewise.
101190         * lib/rpmatch.c: Likewise.
101191         * lib/safe-read.c: Likewise.
101192         * lib/safe-read.h: Likewise.
101193         * lib/safe-write.c: Likewise.
101194         * lib/safe-write.h: Likewise.
101195         * lib/same-inode.h: Likewise.
101196         * lib/same.c: Likewise.
101197         * lib/same.h: Likewise.
101198         * lib/save-cwd.c: Likewise.
101199         * lib/save-cwd.h: Likewise.
101200         * lib/savedir.c: Likewise.
101201         * lib/savedir.h: Likewise.
101202         * lib/savewd.c: Likewise.
101203         * lib/savewd.h: Likewise.
101204         * lib/search.in.h: Likewise.
101205         * lib/setenv.c: Likewise.
101206         * lib/setenv.h: Likewise.
101207         * lib/settime.c: Likewise.
101208         * lib/sh-quote.c: Likewise.
101209         * lib/sh-quote.h: Likewise.
101210         * lib/sig2str.c: Likewise.
101211         * lib/sig2str.h: Likewise.
101212         * lib/signal.in.h: Likewise.
101213         * lib/signbitd.c: Likewise.
101214         * lib/signbitf.c: Likewise.
101215         * lib/signbitl.c: Likewise.
101216         * lib/sigprocmask.c: Likewise.
101217         * lib/sincosl.c: Likewise.
101218         * lib/sleep.c: Likewise.
101219         * lib/sprintf.c: Likewise.
101220         * lib/sqrtl.c: Likewise.
101221         * lib/stat-time.h: Likewise.
101222         * lib/stdio--.h: Likewise.
101223         * lib/stdio-safer.h: Likewise.
101224         * lib/stdlib--.h: Likewise.
101225         * lib/stdlib-safer.h: Likewise.
101226         * lib/stdlib.in.h: Likewise.
101227         * lib/stpcpy.c: Likewise.
101228         * lib/stpncpy.c: Likewise.
101229         * lib/strchrnul.c: Likewise.
101230         * lib/strcspn.c: Likewise.
101231         * lib/strerror.c: Likewise.
101232         * lib/strftime.c: Likewise.
101233         * lib/strftime.h: Likewise.
101234         * lib/striconveh.c: Likewise.
101235         * lib/striconveh.h: Likewise.
101236         * lib/striconveha.c: Likewise.
101237         * lib/striconveha.h: Likewise.
101238         * lib/stripslash.c: Likewise.
101239         * lib/strnlen1.c: Likewise.
101240         * lib/strnlen1.h: Likewise.
101241         * lib/strtod.c: Likewise.
101242         * lib/strtoimax.c: Likewise.
101243         * lib/strtok_r.c: Likewise.
101244         * lib/strtol.c: Likewise.
101245         * lib/strtoll.c: Likewise.
101246         * lib/strtoul.c: Likewise.
101247         * lib/strtoull.c: Likewise.
101248         * lib/sysexits.in.h: Likewise.
101249         * lib/tempname.c: Likewise.
101250         * lib/tempname.h: Likewise.
101251         * lib/timespec.h: Likewise.
101252         * lib/tls.c: Likewise.
101253         * lib/tls.h: Likewise.
101254         * lib/tmpdir.c: Likewise.
101255         * lib/tmpdir.h: Likewise.
101256         * lib/tmpfile-safer.c: Likewise.
101257         * lib/tmpfile.c: Likewise.
101258         * lib/trigl.c: Likewise.
101259         * lib/trigl.h: Likewise.
101260         * lib/trim.c: Likewise.
101261         * lib/trim.h: Likewise.
101262         * lib/trunc.c: Likewise.
101263         * lib/truncf.c: Likewise.
101264         * lib/truncl.c: Likewise.
101265         * lib/tsearch.c: Likewise.
101266         * lib/unicodeio.c: Likewise.
101267         * lib/unicodeio.h: Likewise.
101268         * lib/unistd--.h: Likewise.
101269         * lib/unistd-safer.h: Likewise.
101270         * lib/unistdio/ulc-fprintf.c: Likewise.
101271         * lib/unistdio/ulc-vfprintf.c: Likewise.
101272         * lib/unlinkdir.c: Likewise.
101273         * lib/unlinkdir.h: Likewise.
101274         * lib/unlocked-io.h: Likewise.
101275         * lib/unsetenv.c: Likewise.
101276         * lib/userspec.c: Likewise.
101277         * lib/utime.c: Likewise.
101278         * lib/utimecmp.c: Likewise.
101279         * lib/utimecmp.h: Likewise.
101280         * lib/utimens.c: Likewise.
101281         * lib/verify.h: Likewise.
101282         * lib/verror.c: Likewise.
101283         * lib/verror.h: Likewise.
101284         * lib/version-etc-fsf.c: Likewise.
101285         * lib/version-etc.c: Likewise.
101286         * lib/version-etc.h: Likewise.
101287         * lib/vfprintf.c: Likewise.
101288         * lib/vprintf.c: Likewise.
101289         * lib/vsprintf.c: Likewise.
101290         * lib/w32spawn.h: Likewise.
101291         * lib/wait-process.c: Likewise.
101292         * lib/wait-process.h: Likewise.
101293         * lib/wcwidth.c: Likewise.
101294         * lib/write-any-file.c: Likewise.
101295         * lib/xalloc-die.c: Likewise.
101296         * lib/xalloc.h: Likewise.
101297         * lib/xasprintf.c: Likewise.
101298         * lib/xgetcwd.c: Likewise.
101299         * lib/xgetcwd.h: Likewise.
101300         * lib/xgetdomainname.c: Likewise.
101301         * lib/xgetdomainname.h: Likewise.
101302         * lib/xgethostname.c: Likewise.
101303         * lib/xmalloc.c: Likewise.
101304         * lib/xmalloca.c: Likewise.
101305         * lib/xmalloca.h: Likewise.
101306         * lib/xmemcoll.c: Likewise.
101307         * lib/xnanosleep.c: Likewise.
101308         * lib/xreadlink.c: Likewise.
101309         * lib/xreadlink.h: Likewise.
101310         * lib/xsetenv.c: Likewise.
101311         * lib/xsetenv.h: Likewise.
101312         * lib/xstriconv.c: Likewise.
101313         * lib/xstriconv.h: Likewise.
101314         * lib/xstrndup.c: Likewise.
101315         * lib/xstrndup.h: Likewise.
101316         * lib/xstrtod.c: Likewise.
101317         * lib/xstrtod.h: Likewise.
101318         * lib/xstrtol-error.c: Likewise.
101319         * lib/xstrtol.c: Likewise.
101320         * lib/xstrtol.h: Likewise.
101321         * lib/xtime.h: Likewise.
101322         * lib/xvasprintf.c: Likewise.
101323         * lib/xvasprintf.h: Likewise.
101324         * lib/yesno.c: Likewise.
101325         * lib/yesno.h: Likewise.
101326         * posix-modules: Likewise.
101327         * tests/test-alloca-opt.c: Likewise.
101328         * tests/test-arcfour.c: Likewise.
101329         * tests/test-arctwo.c: Likewise.
101330         * tests/test-argmatch.c: Likewise.
101331         * tests/test-argp-2.sh: Likewise.
101332         * tests/test-argp.c: Likewise.
101333         * tests/test-arpa_inet.c: Likewise.
101334         * tests/test-array_list.c: Likewise.
101335         * tests/test-array_oset.c: Likewise.
101336         * tests/test-atexit.c: Likewise.
101337         * tests/test-avltree_list.c: Likewise.
101338         * tests/test-avltree_oset.c: Likewise.
101339         * tests/test-avltreehash_list.c: Likewise.
101340         * tests/test-base64.c: Likewise.
101341         * tests/test-binary-io.c: Likewise.
101342         * tests/test-byteswap.c: Likewise.
101343         * tests/test-c-ctype.c: Likewise.
101344         * tests/test-c-strcasecmp.c: Likewise.
101345         * tests/test-c-strcasestr.c: Likewise.
101346         * tests/test-c-strncasecmp.c: Likewise.
101347         * tests/test-c-strstr.c: Likewise.
101348         * tests/test-canonicalize-lgpl.c: Likewise.
101349         * tests/test-canonicalize.c: Likewise.
101350         * tests/test-carray_list.c: Likewise.
101351         * tests/test-ceilf.c: Likewise.
101352         * tests/test-ceill.c: Likewise.
101353         * tests/test-count-one-bits.c: Likewise.
101354         * tests/test-crc.c: Likewise.
101355         * tests/test-dirname.c: Likewise.
101356         * tests/test-fbufmode.c: Likewise.
101357         * tests/test-fcntl.c: Likewise.
101358         * tests/test-fflush.c: Likewise.
101359         * tests/test-floorf.c: Likewise.
101360         * tests/test-floorl.c: Likewise.
101361         * tests/test-fopen.c: Likewise.
101362         * tests/test-fprintf-posix.c: Likewise.
101363         * tests/test-fprintf-posix.h: Likewise.
101364         * tests/test-fpurge.c: Likewise.
101365         * tests/test-freadable.c: Likewise.
101366         * tests/test-freadahead.c: Likewise.
101367         * tests/test-freading.c: Likewise.
101368         * tests/test-freopen.c: Likewise.
101369         * tests/test-frexp.c: Likewise.
101370         * tests/test-frexpl.c: Likewise.
101371         * tests/test-fseek.c: Likewise.
101372         * tests/test-fseeko.c: Likewise.
101373         * tests/test-fseterr.c: Likewise.
101374         * tests/test-fstrcmp.c: Likewise.
101375         * tests/test-ftell.c: Likewise.
101376         * tests/test-ftello.c: Likewise.
101377         * tests/test-fwritable.c: Likewise.
101378         * tests/test-fwriting.c: Likewise.
101379         * tests/test-getaddrinfo.c: Likewise.
101380         * tests/test-getpass.c: Likewise.
101381         * tests/test-gettimeofday.c: Likewise.
101382         * tests/test-hmac-md5.c: Likewise.
101383         * tests/test-hmac-sha1.c: Likewise.
101384         * tests/test-iconv.c: Likewise.
101385         * tests/test-iconvme.c: Likewise.
101386         * tests/test-inttypes.c: Likewise.
101387         * tests/test-isnan.c: Likewise.
101388         * tests/test-isnanf.c: Likewise.
101389         * tests/test-isnanl-nolibm.c: Likewise.
101390         * tests/test-isnanl.c: Likewise.
101391         * tests/test-isnanl.h: Likewise.
101392         * tests/test-ldexpl.c: Likewise.
101393         * tests/test-linked_list.c: Likewise.
101394         * tests/test-linkedhash_list.c: Likewise.
101395         * tests/test-locale.c: Likewise.
101396         * tests/test-localename.c: Likewise.
101397         * tests/test-lock.c: Likewise.
101398         * tests/test-lseek.c: Likewise.
101399         * tests/test-malloca.c: Likewise.
101400         * tests/test-math.c: Likewise.
101401         * tests/test-mbscasecmp.c: Likewise.
101402         * tests/test-mbscasestr1.c: Likewise.
101403         * tests/test-mbscasestr2.c: Likewise.
101404         * tests/test-mbscasestr3.c: Likewise.
101405         * tests/test-mbscasestr4.c: Likewise.
101406         * tests/test-mbschr.c: Likewise.
101407         * tests/test-mbscspn.c: Likewise.
101408         * tests/test-mbsncasecmp.c: Likewise.
101409         * tests/test-mbspbrk.c: Likewise.
101410         * tests/test-mbspcasecmp.c: Likewise.
101411         * tests/test-mbsrchr.c: Likewise.
101412         * tests/test-mbsspn.c: Likewise.
101413         * tests/test-mbsstr1.c: Likewise.
101414         * tests/test-mbsstr2.c: Likewise.
101415         * tests/test-mbsstr3.c: Likewise.
101416         * tests/test-md5.c: Likewise.
101417         * tests/test-memmem.c: Likewise.
101418         * tests/test-netinet_in.c: Likewise.
101419         * tests/test-open.c: Likewise.
101420         * tests/test-printf-frexp.c: Likewise.
101421         * tests/test-printf-frexpl.c: Likewise.
101422         * tests/test-printf-posix.c: Likewise.
101423         * tests/test-printf-posix.h: Likewise.
101424         * tests/test-rbtree_list.c: Likewise.
101425         * tests/test-rbtree_oset.c: Likewise.
101426         * tests/test-rbtreehash_list.c: Likewise.
101427         * tests/test-read-file.c: Likewise.
101428         * tests/test-rijndael.c: Likewise.
101429         * tests/test-search.c: Likewise.
101430         * tests/test-signbit.c: Likewise.
101431         * tests/test-sleep.c: Likewise.
101432         * tests/test-snprintf-posix.c: Likewise.
101433         * tests/test-snprintf-posix.h: Likewise.
101434         * tests/test-snprintf.c: Likewise.
101435         * tests/test-sprintf-posix.c: Likewise.
101436         * tests/test-sprintf-posix.h: Likewise.
101437         * tests/test-stat-time.c: Likewise.
101438         * tests/test-stdbool.c: Likewise.
101439         * tests/test-stdint.c: Likewise.
101440         * tests/test-stdio.c: Likewise.
101441         * tests/test-stdlib.c: Likewise.
101442         * tests/test-stpncpy.c: Likewise.
101443         * tests/test-strcasestr.c: Likewise.
101444         * tests/test-striconv.c: Likewise.
101445         * tests/test-striconveh.c: Likewise.
101446         * tests/test-striconveha.c: Likewise.
101447         * tests/test-string.c: Likewise.
101448         * tests/test-sys_select.c: Likewise.
101449         * tests/test-sys_socket.c: Likewise.
101450         * tests/test-sys_stat.c: Likewise.
101451         * tests/test-sys_time.c: Likewise.
101452         * tests/test-sysexits.c: Likewise.
101453         * tests/test-time.c: Likewise.
101454         * tests/test-tls.c: Likewise.
101455         * tests/test-trunc.c: Likewise.
101456         * tests/test-truncf.c: Likewise.
101457         * tests/test-truncl.c: Likewise.
101458         * tests/test-unistd.c: Likewise.
101459         * tests/test-vasnprintf-posix.c: Likewise.
101460         * tests/test-vasnprintf-posix2.c: Likewise.
101461         * tests/test-vasnprintf.c: Likewise.
101462         * tests/test-vasprintf-posix.c: Likewise.
101463         * tests/test-vasprintf.c: Likewise.
101464         * tests/test-verify.c: Likewise.
101465         * tests/test-vfprintf-posix.c: Likewise.
101466         * tests/test-vprintf-posix.c: Likewise.
101467         * tests/test-vsnprintf-posix.c: Likewise.
101468         * tests/test-vsnprintf.c: Likewise.
101469         * tests/test-vsprintf-posix.c: Likewise.
101470         * tests/test-wchar.c: Likewise.
101471         * tests/test-wctype.c: Likewise.
101472         * tests/test-wcwidth.c: Likewise.
101473         * tests/test-xstrtol.c: Likewise.
101474         * tests/test-xvasprintf.c: Likewise.
101475         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
101476         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
101477         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
101478         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
101479         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
101480         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
101481         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
101482         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
101483         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
101484         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
101485         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
101486         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
101487         * tests/uniname/test-uninames.c: Likewise.
101488         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
101489         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
101490         * tests/unistdio/test-u16-printf1.h: Likewise.
101491         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
101492         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
101493         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
101494         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
101495         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
101496         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
101497         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
101498         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
101499         * tests/unistdio/test-u32-printf1.h: Likewise.
101500         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
101501         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
101502         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
101503         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
101504         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
101505         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
101506         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
101507         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
101508         * tests/unistdio/test-u8-printf1.h: Likewise.
101509         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
101510         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
101511         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
101512         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
101513         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
101514         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
101515         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
101516         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
101517         * tests/unistdio/test-ulc-printf1.h: Likewise.
101518         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
101519         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
101520         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
101521         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
101522         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
101523         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
101524         * tests/uniwidth/test-u16-strwidth.c: Likewise.
101525         * tests/uniwidth/test-u16-width.c: Likewise.
101526         * tests/uniwidth/test-u32-strwidth.c: Likewise.
101527         * tests/uniwidth/test-u32-width.c: Likewise.
101528         * tests/uniwidth/test-u8-strwidth.c: Likewise.
101529         * tests/uniwidth/test-u8-width.c: Likewise.
101530         * tests/uniwidth/test-uc_width.c: Likewise.
101531         * config/srclist-update: Likewise.
101532         (fixlicense): Update to GPLv3+.
101534         Change copyright notice from LGPLv2.1+ to LGPLv3+.
101535         * tests/test-tsearch.c: Change copyright notice.
101537         Change copyright notice from LGPLv2.0+ to LGPLv3+.
101538         * lib/c-strcaseeq.h: Change copyright notice.
101539         * lib/streq.h: Likewise.
101540         * lib/uniconv.h: Likewise.
101541         * lib/uniconv/u-conv-from-enc.h: Likewise.
101542         * lib/uniconv/u-conv-to-enc.h: Likewise.
101543         * lib/uniconv/u-strconv-from-enc.h: Likewise.
101544         * lib/uniconv/u-strconv-to-enc.h: Likewise.
101545         * lib/uniconv/u16-conv-from-enc.c: Likewise.
101546         * lib/uniconv/u16-conv-to-enc.c: Likewise.
101547         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
101548         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
101549         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
101550         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
101551         * lib/uniconv/u32-conv-from-enc.c: Likewise.
101552         * lib/uniconv/u32-conv-to-enc.c: Likewise.
101553         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
101554         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
101555         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
101556         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
101557         * lib/uniconv/u8-conv-from-enc.c: Likewise.
101558         * lib/uniconv/u8-conv-to-enc.c: Likewise.
101559         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
101560         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
101561         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
101562         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
101563         * lib/uniname.h: Likewise.
101564         * lib/uniname/uniname.c: Likewise.
101565         * lib/unistdio.h: Likewise.
101566         * lib/unistdio/u-asnprintf.h: Likewise.
101567         * lib/unistdio/u-asprintf.h: Likewise.
101568         * lib/unistdio/u-printf-args.c: Likewise.
101569         * lib/unistdio/u-printf-args.h: Likewise.
101570         * lib/unistdio/u-printf-parse.h: Likewise.
101571         * lib/unistdio/u-snprintf.h: Likewise.
101572         * lib/unistdio/u-sprintf.h: Likewise.
101573         * lib/unistdio/u-vasprintf.h: Likewise.
101574         * lib/unistdio/u-vsnprintf.h: Likewise.
101575         * lib/unistdio/u-vsprintf.h: Likewise.
101576         * lib/unistdio/u16-asnprintf.c: Likewise.
101577         * lib/unistdio/u16-asprintf.c: Likewise.
101578         * lib/unistdio/u16-printf-parse.c: Likewise.
101579         * lib/unistdio/u16-snprintf.c: Likewise.
101580         * lib/unistdio/u16-sprintf.c: Likewise.
101581         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
101582         * lib/unistdio/u16-u16-asprintf.c: Likewise.
101583         * lib/unistdio/u16-u16-snprintf.c: Likewise.
101584         * lib/unistdio/u16-u16-sprintf.c: Likewise.
101585         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
101586         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
101587         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
101588         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
101589         * lib/unistdio/u16-vasnprintf.c: Likewise.
101590         * lib/unistdio/u16-vasprintf.c: Likewise.
101591         * lib/unistdio/u16-vsnprintf.c: Likewise.
101592         * lib/unistdio/u16-vsprintf.c: Likewise.
101593         * lib/unistdio/u32-asnprintf.c: Likewise.
101594         * lib/unistdio/u32-asprintf.c: Likewise.
101595         * lib/unistdio/u32-printf-parse.c: Likewise.
101596         * lib/unistdio/u32-snprintf.c: Likewise.
101597         * lib/unistdio/u32-sprintf.c: Likewise.
101598         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
101599         * lib/unistdio/u32-u32-asprintf.c: Likewise.
101600         * lib/unistdio/u32-u32-snprintf.c: Likewise.
101601         * lib/unistdio/u32-u32-sprintf.c: Likewise.
101602         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
101603         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
101604         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
101605         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
101606         * lib/unistdio/u32-vasnprintf.c: Likewise.
101607         * lib/unistdio/u32-vasprintf.c: Likewise.
101608         * lib/unistdio/u32-vsnprintf.c: Likewise.
101609         * lib/unistdio/u32-vsprintf.c: Likewise.
101610         * lib/unistdio/u8-asnprintf.c: Likewise.
101611         * lib/unistdio/u8-asprintf.c: Likewise.
101612         * lib/unistdio/u8-printf-parse.c: Likewise.
101613         * lib/unistdio/u8-snprintf.c: Likewise.
101614         * lib/unistdio/u8-sprintf.c: Likewise.
101615         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
101616         * lib/unistdio/u8-u8-asprintf.c: Likewise.
101617         * lib/unistdio/u8-u8-snprintf.c: Likewise.
101618         * lib/unistdio/u8-u8-sprintf.c: Likewise.
101619         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
101620         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
101621         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
101622         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
101623         * lib/unistdio/u8-vasnprintf.c: Likewise.
101624         * lib/unistdio/u8-vasprintf.c: Likewise.
101625         * lib/unistdio/u8-vsnprintf.c: Likewise.
101626         * lib/unistdio/u8-vsprintf.c: Likewise.
101627         * lib/unistdio/ulc-asnprintf.c: Likewise.
101628         * lib/unistdio/ulc-asprintf.c: Likewise.
101629         * lib/unistdio/ulc-printf-parse.c: Likewise.
101630         * lib/unistdio/ulc-snprintf.c: Likewise.
101631         * lib/unistdio/ulc-sprintf.c: Likewise.
101632         * lib/unistdio/ulc-vasnprintf.c: Likewise.
101633         * lib/unistdio/ulc-vasprintf.c: Likewise.
101634         * lib/unistdio/ulc-vsnprintf.c: Likewise.
101635         * lib/unistdio/ulc-vsprintf.c: Likewise.
101636         * lib/unistr.h: Likewise.
101637         * lib/unistr/u-cpy-alloc.h: Likewise.
101638         * lib/unistr/u-cpy.h: Likewise.
101639         * lib/unistr/u-endswith.h: Likewise.
101640         * lib/unistr/u-move.h: Likewise.
101641         * lib/unistr/u-set.h: Likewise.
101642         * lib/unistr/u-startswith.h: Likewise.
101643         * lib/unistr/u-stpcpy.h: Likewise.
101644         * lib/unistr/u-stpncpy.h: Likewise.
101645         * lib/unistr/u-strcat.h: Likewise.
101646         * lib/unistr/u-strcpy.h: Likewise.
101647         * lib/unistr/u-strcspn.h: Likewise.
101648         * lib/unistr/u-strdup.h: Likewise.
101649         * lib/unistr/u-strlen.h: Likewise.
101650         * lib/unistr/u-strncat.h: Likewise.
101651         * lib/unistr/u-strncpy.h: Likewise.
101652         * lib/unistr/u-strnlen.h: Likewise.
101653         * lib/unistr/u-strpbrk.h: Likewise.
101654         * lib/unistr/u-strspn.h: Likewise.
101655         * lib/unistr/u-strstr.h: Likewise.
101656         * lib/unistr/u-strtok.h: Likewise.
101657         * lib/unistr/u16-check.c: Likewise.
101658         * lib/unistr/u16-chr.c: Likewise.
101659         * lib/unistr/u16-cmp.c: Likewise.
101660         * lib/unistr/u16-cpy-alloc.c: Likewise.
101661         * lib/unistr/u16-cpy.c: Likewise.
101662         * lib/unistr/u16-endswith.c: Likewise.
101663         * lib/unistr/u16-mblen.c: Likewise.
101664         * lib/unistr/u16-mbsnlen.c: Likewise.
101665         * lib/unistr/u16-mbtouc-aux.c: Likewise.
101666         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
101667         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
101668         * lib/unistr/u16-mbtouc.c: Likewise.
101669         * lib/unistr/u16-mbtoucr.c: Likewise.
101670         * lib/unistr/u16-move.c: Likewise.
101671         * lib/unistr/u16-next.c: Likewise.
101672         * lib/unistr/u16-prev.c: Likewise.
101673         * lib/unistr/u16-set.c: Likewise.
101674         * lib/unistr/u16-startswith.c: Likewise.
101675         * lib/unistr/u16-stpcpy.c: Likewise.
101676         * lib/unistr/u16-stpncpy.c: Likewise.
101677         * lib/unistr/u16-strcat.c: Likewise.
101678         * lib/unistr/u16-strchr.c: Likewise.
101679         * lib/unistr/u16-strcmp.c: Likewise.
101680         * lib/unistr/u16-strcpy.c: Likewise.
101681         * lib/unistr/u16-strcspn.c: Likewise.
101682         * lib/unistr/u16-strdup.c: Likewise.
101683         * lib/unistr/u16-strlen.c: Likewise.
101684         * lib/unistr/u16-strmblen.c: Likewise.
101685         * lib/unistr/u16-strmbtouc.c: Likewise.
101686         * lib/unistr/u16-strncat.c: Likewise.
101687         * lib/unistr/u16-strncmp.c: Likewise.
101688         * lib/unistr/u16-strncpy.c: Likewise.
101689         * lib/unistr/u16-strnlen.c: Likewise.
101690         * lib/unistr/u16-strpbrk.c: Likewise.
101691         * lib/unistr/u16-strrchr.c: Likewise.
101692         * lib/unistr/u16-strspn.c: Likewise.
101693         * lib/unistr/u16-strstr.c: Likewise.
101694         * lib/unistr/u16-strtok.c: Likewise.
101695         * lib/unistr/u16-to-u32.c: Likewise.
101696         * lib/unistr/u16-to-u8.c: Likewise.
101697         * lib/unistr/u16-uctomb-aux.c: Likewise.
101698         * lib/unistr/u16-uctomb.c: Likewise.
101699         * lib/unistr/u32-check.c: Likewise.
101700         * lib/unistr/u32-chr.c: Likewise.
101701         * lib/unistr/u32-cmp.c: Likewise.
101702         * lib/unistr/u32-cpy-alloc.c: Likewise.
101703         * lib/unistr/u32-cpy.c: Likewise.
101704         * lib/unistr/u32-endswith.c: Likewise.
101705         * lib/unistr/u32-mblen.c: Likewise.
101706         * lib/unistr/u32-mbsnlen.c: Likewise.
101707         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
101708         * lib/unistr/u32-mbtouc.c: Likewise.
101709         * lib/unistr/u32-mbtoucr.c: Likewise.
101710         * lib/unistr/u32-move.c: Likewise.
101711         * lib/unistr/u32-next.c: Likewise.
101712         * lib/unistr/u32-prev.c: Likewise.
101713         * lib/unistr/u32-set.c: Likewise.
101714         * lib/unistr/u32-startswith.c: Likewise.
101715         * lib/unistr/u32-stpcpy.c: Likewise.
101716         * lib/unistr/u32-stpncpy.c: Likewise.
101717         * lib/unistr/u32-strcat.c: Likewise.
101718         * lib/unistr/u32-strchr.c: Likewise.
101719         * lib/unistr/u32-strcmp.c: Likewise.
101720         * lib/unistr/u32-strcpy.c: Likewise.
101721         * lib/unistr/u32-strcspn.c: Likewise.
101722         * lib/unistr/u32-strdup.c: Likewise.
101723         * lib/unistr/u32-strlen.c: Likewise.
101724         * lib/unistr/u32-strmblen.c: Likewise.
101725         * lib/unistr/u32-strmbtouc.c: Likewise.
101726         * lib/unistr/u32-strncat.c: Likewise.
101727         * lib/unistr/u32-strncmp.c: Likewise.
101728         * lib/unistr/u32-strncpy.c: Likewise.
101729         * lib/unistr/u32-strnlen.c: Likewise.
101730         * lib/unistr/u32-strpbrk.c: Likewise.
101731         * lib/unistr/u32-strrchr.c: Likewise.
101732         * lib/unistr/u32-strspn.c: Likewise.
101733         * lib/unistr/u32-strstr.c: Likewise.
101734         * lib/unistr/u32-strtok.c: Likewise.
101735         * lib/unistr/u32-to-u16.c: Likewise.
101736         * lib/unistr/u32-to-u8.c: Likewise.
101737         * lib/unistr/u32-uctomb.c: Likewise.
101738         * lib/unistr/u8-check.c: Likewise.
101739         * lib/unistr/u8-chr.c: Likewise.
101740         * lib/unistr/u8-cmp.c: Likewise.
101741         * lib/unistr/u8-cpy-alloc.c: Likewise.
101742         * lib/unistr/u8-cpy.c: Likewise.
101743         * lib/unistr/u8-endswith.c: Likewise.
101744         * lib/unistr/u8-mblen.c: Likewise.
101745         * lib/unistr/u8-mbsnlen.c: Likewise.
101746         * lib/unistr/u8-mbtouc-aux.c: Likewise.
101747         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
101748         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
101749         * lib/unistr/u8-mbtouc.c: Likewise.
101750         * lib/unistr/u8-mbtoucr.c: Likewise.
101751         * lib/unistr/u8-move.c: Likewise.
101752         * lib/unistr/u8-next.c: Likewise.
101753         * lib/unistr/u8-prev.c: Likewise.
101754         * lib/unistr/u8-set.c: Likewise.
101755         * lib/unistr/u8-startswith.c: Likewise.
101756         * lib/unistr/u8-stpcpy.c: Likewise.
101757         * lib/unistr/u8-stpncpy.c: Likewise.
101758         * lib/unistr/u8-strcat.c: Likewise.
101759         * lib/unistr/u8-strchr.c: Likewise.
101760         * lib/unistr/u8-strcmp.c: Likewise.
101761         * lib/unistr/u8-strcpy.c: Likewise.
101762         * lib/unistr/u8-strcspn.c: Likewise.
101763         * lib/unistr/u8-strdup.c: Likewise.
101764         * lib/unistr/u8-strlen.c: Likewise.
101765         * lib/unistr/u8-strmblen.c: Likewise.
101766         * lib/unistr/u8-strmbtouc.c: Likewise.
101767         * lib/unistr/u8-strncat.c: Likewise.
101768         * lib/unistr/u8-strncmp.c: Likewise.
101769         * lib/unistr/u8-strncpy.c: Likewise.
101770         * lib/unistr/u8-strnlen.c: Likewise.
101771         * lib/unistr/u8-strpbrk.c: Likewise.
101772         * lib/unistr/u8-strrchr.c: Likewise.
101773         * lib/unistr/u8-strspn.c: Likewise.
101774         * lib/unistr/u8-strstr.c: Likewise.
101775         * lib/unistr/u8-strtok.c: Likewise.
101776         * lib/unistr/u8-to-u16.c: Likewise.
101777         * lib/unistr/u8-to-u32.c: Likewise.
101778         * lib/unistr/u8-uctomb-aux.c: Likewise.
101779         * lib/unistr/u8-uctomb.c: Likewise.
101780         * lib/unitypes.h: Likewise.
101781         * lib/uniwidth.h: Likewise.
101782         * lib/uniwidth/cjk.h: Likewise.
101783         * lib/uniwidth/u16-strwidth.c: Likewise.
101784         * lib/uniwidth/u16-width.c: Likewise.
101785         * lib/uniwidth/u32-strwidth.c: Likewise.
101786         * lib/uniwidth/u32-width.c: Likewise.
101787         * lib/uniwidth/u8-strwidth.c: Likewise.
101788         * lib/uniwidth/u8-width.c: Likewise.
101789         * lib/uniwidth/width.c: Likewise.
101791 2007-10-07  Bruno Haible  <bruno@clisp.org>
101793         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
101794         The file is still under LGPL (see modules/inttypes).
101796 2007-10-06  Bruno Haible  <bruno@clisp.org>
101798         * modules/trunc (Dependencies): Add 'extensions'.
101799         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
101800         Reported by Ben Pfaff <blp@gnu.org>.
101802 2007-10-06  Bruno Haible  <bruno@clisp.org>
101804         * modules/freopen-tests: New file.
101805         * tests/test-freopen.c: New file.
101807         * modules/fopen-tests: New file.
101808         * tests/test-fopen.c: New file.
101810         * modules/fopen: New file.
101811         * lib/fopen.c: New file.
101812         * m4/fopen.m4: New file.
101813         * modules/freopen: New file.
101814         * lib/freopen.c: New file.
101815         * m4/freopen.m4: New file.
101816         * lib/stdio.in.h (fopen, freopen): New declarations.
101817         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
101818         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
101819         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
101820         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
101821         * doc/functions/fopen.texi: Mention the 'fopen' module.
101822         * doc/functions/freopen.texi: Mention the 'freopen' module.
101824 2007-10-06  Bruno Haible  <bruno@clisp.org>
101826         * modules/open-tests: New file.
101827         * tests/test-open.c: New file.
101829         * modules/open: New file.
101830         * lib/open.c: New file.
101831         * m4/open.m4: New file.
101832         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
101833         lib/open.c does.
101834         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
101835         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
101836         macros.
101837         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
101838         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
101839         REPLACE_OPEN.
101840         * doc/functions/open.texi: Mention the 'open' module.
101842 2007-10-04  Bruno Haible  <bruno@clisp.org>
101844         * modules/ceill-tests: New file.
101845         * tests/test-ceill.c: New file.
101847         * modules/ceill: New file.
101848         * lib/ceill.c: Replace entire file.
101849         * m4/ceill.m4: New file.
101850         * lib/math.in.h (ceill): Replace declaration.
101851         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
101852         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
101853         * doc/functions/ceill.texi: Mention the 'ceill' module.
101854         * modules/mathl (Files): Remove lib/ceill.c.
101855         (Depends-on): Add ceill.
101857 2007-10-04  Bruno Haible  <bruno@clisp.org>
101859         * modules/ceilf-tests: New file.
101860         * tests/test-ceilf.c: New file.
101862         * modules/ceilf: New file.
101863         * lib/ceil.c: New file.
101864         * lib/ceilf.c: New file.
101865         * m4/ceilf.m4: New file.
101866         * lib/math.in.h (ceilf): New declaration.
101867         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
101868         HAVE_DECL_CEILF.
101869         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
101870         HAVE_DECL_CEILF.
101871         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
101873 2007-10-04  Bruno Haible  <bruno@clisp.org>
101875         * modules/floorl-tests: New file.
101876         * tests/test-floorl.c: New file.
101878         * modules/floorl: New file.
101879         * lib/floorl.c: Replace entire file.
101880         * m4/floorl.m4: New file.
101881         * lib/math.in.h (floorl): Replace declaration.
101882         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
101883         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
101884         * doc/functions/floorl.texi: Mention the 'floorl' module.
101885         * modules/mathl (Files): Remove lib/floorl.c.
101886         (Depends-on): Add floorl.
101888 2007-10-04  Bruno Haible  <bruno@clisp.org>
101890         * modules/floorf-tests: New file.
101891         * tests/test-floorf.c: New file.
101893         * modules/floorf: New file.
101894         * lib/floor.c: New file.
101895         * lib/floorf.c: New file.
101896         * m4/floorf.m4: New file.
101897         * lib/math.in.h (floorf): New declaration.
101898         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
101899         HAVE_DECL_FLOORF.
101900         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
101901         HAVE_DECL_FLOORF.
101902         * doc/functions/floorf.texi: Mention the 'floorf' module.
101904 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
101905             Bruno Haible  <bruno@clisp.org>
101907         Advertise for the Git server instead of the CVS server.
101908         * doc/gnulib-intro.texi (Steady Development): Mention the Git
101909         repository instead of the CVS one.
101910         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
101911         about all VCS systems generically.
101912         * doc/gnulib.texi (Introduction): Capitalize `Git'.
101914 2007-10-04  Bruno Haible  <bruno@clisp.org>
101916         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
101917         means.
101918         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
101920 2007-10-04  Bruno Haible  <bruno@clisp.org>
101922         * modules/truncl-tests: New file.
101923         * tests/test-truncl.c: New file.
101925         * modules/truncl: New file.
101926         * lib/truncl.c: New file.
101927         * m4/truncl.m4: New file.
101928         * lib/math.in.h (truncl): New declaration.
101929         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
101930         HAVE_DECL_TRUNCL.
101931         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
101932         HAVE_DECL_TRUNCL.
101933         * doc/functions/truncl.texi: Mention the 'truncl' module.
101935 2007-10-04  Bruno Haible  <bruno@clisp.org>
101937         * modules/truncf-tests: New file.
101938         * tests/test-truncf.c: New file.
101940         * modules/truncf: New file.
101941         * lib/trunc.c: Make paramerizable through USE_* macros.
101942         * lib/truncf.c: New file.
101943         * m4/truncf.m4: New file.
101944         * lib/math.in.h (truncf): New declaration.
101945         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
101946         HAVE_DECL_TRUNCF.
101947         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
101948         HAVE_DECL_TRUNCF.
101949         * doc/functions/truncf.texi: Mention the 'truncf' module.
101951 2007-10-03  Bruno Haible  <bruno@clisp.org>
101953         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
101954         augmentation also for tests modules.
101955         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
101956         * modules/atexit-tests (Makefile.am): Likewise.
101957         * modules/binary-io-tests (Makefile.am): Likewise.
101958         * modules/c-strcase-tests (Makefile.am): Likewise.
101959         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
101960         * modules/canonicalize-tests (Makefile.am): Likewise.
101961         * modules/closein-tests (Makefile.am): Likewise.
101962         * modules/fprintf-posix-tests (Makefile.am): Likewise.
101963         * modules/freadahead-tests (Makefile.am): Likewise.
101964         * modules/fseek-tests (Makefile.am): Likewise.
101965         * modules/fseeko-tests (Makefile.am): Likewise.
101966         * modules/ftell-tests (Makefile.am): Likewise.
101967         * modules/ftello-tests (Makefile.am): Likewise.
101968         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
101969         * modules/isnanl-tests (Makefile.am): Likewise.
101970         * modules/lseek-tests (Makefile.am): Likewise.
101971         * modules/mbscasecmp-tests (Makefile.am): Likewise.
101972         * modules/mbscasestr-tests (Makefile.am): Likewise.
101973         * modules/mbschr-tests (Makefile.am): Likewise.
101974         * modules/mbscspn-tests (Makefile.am): Likewise.
101975         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
101976         * modules/mbspbrk-tests (Makefile.am): Likewise.
101977         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
101978         * modules/mbsrchr-tests (Makefile.am): Likewise.
101979         * modules/mbsspn-tests (Makefile.am): Likewise.
101980         * modules/mbsstr-tests (Makefile.am): Likewise.
101981         * modules/printf-posix-tests (Makefile.am): Likewise.
101982         * modules/snprintf-posix-tests (Makefile.am): Likewise.
101983         * modules/sprintf-posix-tests (Makefile.am): Likewise.
101984         * modules/tsearch-tests (Makefile.am): Likewise.
101985         * modules/uniname/uniname-tests (Makefile.am): Likewise.
101986         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
101987         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
101988         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
101989         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
101990         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
101991         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
101992         * modules/vprintf-posix-tests (Makefile.am): Likewise.
101993         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
101994         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
101995         * modules/xstrtoimax-tests (Makefile.am): Likewise.
101996         * modules/xstrtol-tests (Makefile.am): Likewise.
101997         * modules/xstrtoumax-tests (Makefile.am): Likewise.
101998         * modules/yesno-tests (Makefile.am): Likewise.
102000 2007-10-03  Bruno Haible  <bruno@clisp.org>
102002         * modules/trunc-tests: New file.
102003         * tests/test-trunc.c: New file.
102005         * modules/trunc: New file.
102006         * lib/trunc.c: New file.
102007         * m4/trunc.m4: New file.
102008         * lib/math.in.h (trunc): New declaration.
102009         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
102010         HAVE_DECL_TRUNC.
102011         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
102012         HAVE_DECL_TRUNC.
102013         * doc/functions/trunc.texi: Mention the 'trunc' module.
102015 2007-10-03  Bruno Haible  <bruno@clisp.org>
102017         * tests/test-fpending.c: New file, mostly copied
102018         from coreutils/lib/t-fpending.c.
102019         * modules/fpending-tests: New file.
102021 2007-10-03  Bruno Haible  <bruno@clisp.org>
102023         Port the stdio extensions to QNX (untested).
102024         * lib/fseterr.c (fseterr): Add support for QNX.
102025         * lib/fbufmode.c (fbufmode): Likewise.
102026         * lib/freadable.c (freadable): Likewise.
102027         * lib/fwritable.c (fwritable): Likewise.
102028         * lib/freading.c (freading): Likewise.
102029         * lib/fwriting.c (fwriting): Likewise.
102030         * lib/freadahead.c (freadahed): Likewise.
102031         * lib/fpurge.c (fpurge): Likewise.
102032         * lib/fseeko.c (rpl_fseeko): Likewise.
102034 2007-10-03  Bruno Haible  <bruno@clisp.org>
102035             Jim Meyering  <jim@meyering.net>
102036             Eric Blake  <ebb9@byu.net>
102038         * doc/relocatable.texi: Use @command instead of @program.
102040 2007-10-02  Jim Meyering  <jim@meyering.net>
102042         Perform one more "_.h" -> ".in.h" substitution.
102043         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
102044         instead of unistd_.h here, too.
102046 2007-10-01  Bruno Haible  <bruno@clisp.org>
102048         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
102049         Needed for the alloca-opt module.
102051 2007-09-30  Bruno Haible  <bruno@clisp.org>
102053         * lib/alloca.in.h: Renamed from lib/alloca_.h.
102054         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
102055         alloca_.h.
102056         * lib/argz.in.h: Renamed from lib/argz_.h.
102057         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
102058         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
102059         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
102060         byteswap_.h.
102061         * lib/dirent.in.h: Renamed from lib/dirent_.h.
102062         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
102063         dirent_.h.
102064         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
102065         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
102066         fcntl_.h.
102067         * lib/float.in.h: Renamed from lib/float_.h.
102068         * modules/float (Files, Makefile.am): Use float.in.h instead of
102069         float_.h.
102070         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
102071         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
102072         fnmatch_.h.
102073         * lib/getopt.in.h: Renamed from lib/getopt_.h.
102074         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
102075         getopt_.h.
102076         * lib/glob.in.h: Renamed from lib/glob_.h.
102077         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
102078         * lib/iconv.in.h: Renamed from lib/iconv_.h.
102079         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
102080         iconv_.h.
102081         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
102082         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
102083         inttypes_.h.
102084         * lib/locale.in.h: Renamed from lib/locale_.h.
102085         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
102086         locale_.h.
102087         * lib/math.in.h: Renamed from lib/math_.h.
102088         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
102089         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
102090         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
102091         of netinet_in_.h. Add dependency.
102092         * lib/poll.in.h: Renamed from lib/poll_.h.
102093         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
102094         * lib/search.in.h: Renamed from lib/search_.h.
102095         * modules/search (Files, Makefile.am): Use search.in.h instead of
102096         search_.h.
102097         * lib/signal.in.h: Renamed from lib/signal_.h.
102098         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
102099         _signal.h.
102100         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
102101         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
102102         stdbool_.h.
102103         * lib/stdint.in.h: Renamed from lib/stdint_.h.
102104         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
102105         stdint_.h.
102106         * lib/stdio.in.h: Renamed from lib/stdio_.h.
102107         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
102108         stdio_.h.
102109         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
102110         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
102111         stdlib_.h.
102112         * lib/string.in.h: Renamed from lib/string_.h.
102113         * modules/string (Files, Makefile.am): Use string.in.h instead of
102114         string_.h.
102115         * doc/gnulib-tool.texi (Initial import): Update.
102116         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
102117         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
102118         of sys_select_.h. Add dependency.
102119         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
102120         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
102121         of sys_socket_.h.
102122         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
102123         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
102124         sys_stat_.h.
102125         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
102126         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
102127         sys_time_.h.
102128         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
102129         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
102130         sysexits_.h.
102131         * lib/time.in.h: Renamed from lib/time_.h.
102132         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
102133         * lib/unistd.in.h: Renamed from lib/unistd_.h.
102134         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
102135         unistd_.h.
102136         * lib/wchar.in.h: Renamed from lib/wchar_.h.
102137         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
102138         wchar_.h.
102139         * lib/wctype.in.h: Renamed from lib/wctype_.h.
102140         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
102141         wctype_.h.
102142         * build-aux/bootstrap (slurp): Update.
102143         * lib/.cppi-disable: Update.
102145 2007-09-30  Bruno Haible  <bruno@clisp.org>
102147         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
102148         Needed on BeOS.
102150 2007-09-30  Bruno Haible  <bruno@clisp.org>
102152         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
102154 2007-09-29  Bruno Haible  <bruno@clisp.org>
102156         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
102158 2007-09-29  Bruno Haible  <bruno@clisp.org>
102160         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
102161         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
102162         * build-aux/install-reloc: Compile also areadlink.c.
102163         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
102165 2007-09-29  Bruno Haible  <bruno@clisp.org>
102167         * gnulib-tool (func_emit_initmacro_done): Indentation.
102169 2007-09-29  Bruno Haible  <bruno@clisp.org>
102171         * README: Add CVS checkout update instructions.
102172         Info from Bob Proulx <bob@proulx.com>.
102174 2007-09-28  Eric Blake  <ebb9@byu.net>
102176         Provide move-if-change.
102177         * build-aux/move-if-change: New file, based on best practice
102178         rather than any canonical upstream location.
102180 2007-09-28  Jim Meyering  <jim@meyering.net>
102182         Fix canonicalize loop-detection corner case.
102183         Do not attempt to stat the symlink values stored via seen_triple.
102184         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
102185         on linux-2.6.18, (but not 2.6.22).
102186         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
102187         triple_compare.  The former compares dev,ino,filename, while the latter
102188         would actually stat dirname(filename) when dev and ino were equal.
102189         * lib/hash-triple.c: Install <string.h>.
102190         (STREQ): Define.
102191         (triple_compare_ino_str): New function.
102192         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
102194 2007-09-28  Eric Blake  <ebb9@byu.net>
102196         Enforce that AC_REPLACE_FUNCS files exist.
102197         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
102198         override check for typos.
102200         Fix test-closein on Solaris 10.
102201         * tests/test-closein.c (main): Don't assume stdin can be inherited
102202         closed on all systems.
102203         * tests/test-closein.sh: Likewise.
102204         Reported by Piotr Tarnowski.
102206 2007-09-28  Jim Meyering  <jim@meyering.net>
102208         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
102210 2007-09-27  Jim Meyering  <jim@meyering.net>
102212         canonicalize: Avoid a false-positive cycle failure.
102213         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
102214         Sort.  Remove cycle-check.
102215         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
102216         not cycle-check.h.
102217         (seen_triple): New function.
102218         (canonicalize_filename_mode): Use it instead of cycle-check.
102219         * tests/test-canonicalize.c: Add a test for this bug.
102220         * tests/test-canonicalize.sh: Set up and run the test.
102222         New module, file-set, from coreutils.
102223         * modules/file-set: Define it.
102224         * lib/file-set.c, lib/file-set.h: Implement.
102226         New module, hash-triple, from coreutils.
102227         * modules/hash-triple: Define it.
102228         * lib/hash-triple.c, lib/hash-triple.h: Implement.
102230 2007-09-25  Eric Blake  <ebb9@byu.net>
102232         Fix strerror on Interix.
102233         * lib/string_.h (strerror): Declare replacement.
102234         * doc/functions/strerror.texi (strerror): Document the Interix
102235         shortcoming.
102236         * modules/string (Makefile.am): Support new hooks.
102237         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
102238         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
102239         gl_FUNC_STRERROR_SEPARATE.
102240         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
102241         * lib/strerror.c (rpl_strerror): Provide replacement.
102242         * modules/strerror (Depends-on): Add string.
102243         (configure.ac): Detect use of module.
102244         * tests/test-strerror.c: New file.
102245         * modules/strerror-tests: New test module.
102246         * modules/argp (Depends-on): Add strerror.
102247         * modules/error (Depends-on): Likewise.
102248         Reported by Martin Koeppe.
102250 2007-09-24  Bruno Haible  <bruno@clisp.org>
102252         * README: Update git instructions.
102254 2007-09-24  Eric Blake  <ebb9@byu.net>
102256         Revert fpending breakage from 2007-09-08.
102257         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
102258         __fpending.c.
102260 2007-09-24  Jim Meyering  <jim@meyering.net>
102262         filenamecat.c: Add a test.
102263         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
102264         showing how the function works when DIR is the empty string.
102266 2007-09-21  Simon Josefsson  <simon@josefsson.org>
102268         * tests/test-canonicalize.sh: Turn on executable bit.
102270 2007-09-19  Eric Blake  <ebb9@byu.net>
102272         * README: Update CVS instructions.
102274 2007-09-18  Bruno Haible  <bruno@clisp.org>
102276         * modules/areadlink: New file.
102277         * lib/areadlink.h (areadlink): New declaration.
102278         * lib/areadlink.c: New file, based on lib/xreadlink.c.
102280 2007-09-17  Jim Meyering  <jim@meyering.net>
102282         * lib/savewd.c (ESTALE) [!defined]: Define.
102283         Reported to be required on Interix by Martin Koeppe.
102285 2007-09-17  Bruno Haible  <bruno@clisp.org>
102287         * gnulib-tool (func_version): Use $version.
102289 2007-09-16  Bruno Haible  <bruno@clisp.org>
102291         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
102292         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
102293         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
102294         Reported by Greg Schafer <gschafer@zip.com.au>.
102296 2007-09-15  Bruno Haible  <bruno@clisp.org>
102298         * gnulib-tool (sed): Try a little harder to make bash understand the
102299         alias.
102300         Reported by Bruce Korb <bruce.korb@gmail.com>.
102302 2007-09-13  Eric Blake  <ebb9@byu.net>
102304         * ChangeLog: Remove conflict markers.
102306 2007-09-13  Simon Josefsson  <simon@josefsson.org>
102308         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
102309         Reported by Bruno Haible <bruno@clisp.org>.
102311 2007-09-12  Bruno Haible  <bruno@clisp.org>
102313         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
102314         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
102315         is not defined.
102317 2007-09-12  Eric Blake  <ebb9@byu.net>
102319         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
102320         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
102321         Autoconf definition.
102322         * modules/euidaccess (Depends-on): Add extensions, for
102323         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
102324         * modules/fnmatch (Depends-on): Likewise.
102325         * modules/getaddrinfo (Depends-on): Likewise.
102326         * modules/getdelim (Depends-on): Likewise.
102327         * modules/getline (Depends-on): Likewise.
102328         * modules/getsubopt (Depends-on): Likewise.
102329         * modules/gettext (Depends-on): Likewise.
102330         * modules/group-member (Depends-on): Likewise.
102331         * modules/mbchar (Depends-on): Likewise.
102332         * modules/memmem (Depends-on): Likewise.
102333         * modules/mempcpy (Depends-on): Likewise.
102334         * modules/memrchr (Depends-on): Likewise.
102335         * modules/pagealign_alloc (Depends-on): Likewise.
102336         * modules/readutmp (Depends-on): Likewise.
102337         * modules/stpcpy (Depends-on): Likewise.
102338         * modules/stpncpy (Depends-on): Likewise.
102339         * modules/strchrnul (Depends-on): Likewise.
102340         * modules/strndup (Depends-on): Likewise.
102341         * modules/strsep (Depends-on): Likewise.
102342         * modules/strverscmp (Depends-on): Likewise.
102343         * modules/vasprintf (Depends-on): Likewise.
102344         * modules/wcwidth (Depends-on): Likewise.
102345         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
102346         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
102347         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
102348         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
102349         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
102350         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
102351         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
102352         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
102353         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
102354         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
102355         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
102356         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
102357         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
102358         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
102359         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
102360         * m4/readutmp.m4 (gl_READUTMP): Likewise.
102361         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
102362         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
102363         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
102364         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
102365         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
102366         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
102367         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
102368         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
102369         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
102370         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
102371         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
102372         so that lock.m4 can be used in gettext without extensions module.
102374 2007-09-11  Bruno Haible  <bruno@clisp.org>
102376         * m4/isc-posix.m4: Remove file.
102377         Suggested by Eric Blake.
102379 2007-09-11  Eric Blake  <ebb9@byu.net>
102381         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
102383 2007-09-10  Bruno Haible  <bruno@clisp.org>
102385         * posix-modules: Fix typo in error message.
102386         Reported by Matt <mkraai@beckman.com>.
102388 2007-09-09  Bruno Haible  <bruno@clisp.org>
102390         * doc/functions/getdelim.texi: Update list of platforms lacking the
102391         function.
102392         * doc/functions/getline.texi: Likewise.
102394 2007-09-09  Jim Meyering  <jim@meyering.net>
102396         * lib/hash.c (hash_initialize): Detect calloc failure.
102397         Reported by Bruno Haible.
102399 2007-09-09  Bruno Haible  <bruno@clisp.org>
102401         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
102402         malloc or realloc fails.
102404 2007-09-09  Bruno Haible  <bruno@clisp.org>
102406         * modules/getcwd (Depends-on): Add malloc-posix.
102407         * modules/glob (Depends-on): Likewise.
102408         * modules/putenv (Depends-on): Likewise.
102409         * modules/strdup (Depends-on): Likewise.
102410         * modules/getdelim (Depends-on): Add realloc-posix.
102411         * modules/read-file (Depends-on): Likewise.
102413 2007-09-09  Bruno Haible  <bruno@clisp.org>
102415         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
102416         (gl_FUNC_MALLOC_POSIX): Require it.
102417         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
102418         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
102419         * modules/realloc (Files): Add m4/malloc.m4.
102420         * modules/calloc (Files): Likewise.
102422 2007-09-09  Bruno Haible  <bruno@clisp.org>
102424         * modules/malloc-posix: New file.
102425         * modules/malloc (Depends-on): Add malloc-posix.
102426         * lib/malloc.c: Include errno.h.
102427         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
102428         and a POSIX-compatible malloc into a single function. Set ENOMEM
102429         when returning NULL.
102430         * m4/malloc.m4: New file.
102431         * doc/functions/malloc.texi: Mention the malloc-posix module.
102432         * lib/stdlib_.h (malloc): New declaration.
102433         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
102434         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
102435         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
102436         and HAVE_MALLOC_POSIX.
102438 2007-09-09  Bruno Haible  <bruno@clisp.org>
102440         * modules/realloc-posix: New file.
102441         * modules/realloc (Depends-on): Add realloc-posix.
102442         * lib/realloc.c: Include errno.h.
102443         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
102444         and a POSIX-compatible realloc into a single function. Set ENOMEM
102445         when returning NULL.
102446         * m4/realloc.m4: New file.
102447         * doc/functions/realloc.texi: Mention the realloc-posix module.
102448         * lib/stdlib_.h (realloc): New declaration.
102449         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
102450         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
102451         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
102452         and HAVE_REALLOC_POSIX.
102454 2007-09-09  Bruno Haible  <bruno@clisp.org>
102456         * modules/calloc-posix: New file.
102457         * modules/calloc (Depends-on): Add calloc-posix.
102458         * lib/calloc.c: Include errno.h.
102459         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
102460         and a POSIX-compatible calloc into a single function. Set ENOMEM
102461         when returning NULL.
102462         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
102463         * doc/functions/calloc.texi: Mention the calloc-posix module.
102464         * lib/stdlib_.h (calloc): New declaration.
102465         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
102466         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
102467         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
102468         and HAVE_CALLOC_POSIX.
102470 2007-09-09  Bruno Haible  <bruno@clisp.org>
102472         Allow for modules to show an arbitrary notice.
102473         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
102474         * gnulib-tool: New option --extract-notice.
102475         (func_usage): Document it.
102476         (sed_extract_prog): Update.
102477         (func_get_notice): New function.
102478         (func_modules_notice): New function.
102479         (func_import, func_create_testdir): Invoke it.
102480         Suggested by Jim Meyering.
102482 2007-09-09  Bruno Haible  <bruno@clisp.org>
102484         * gnulib-tool: New options --verbose, --quiet.
102485         (func_usage): Document them.
102486         (verbose): New variable.
102487         (func_execute_command): New function.
102488         (func_import): Don't show the module list and the file list if
102489         $verbose < 0.
102490         (func_create_testdir): Likewise. Use func_execute_command.
102491         (func_create_megatestdir): Use func_execute_command.
102493 2007-09-08  Bruno Haible  <bruno@clisp.org>
102495         * gnulib-tool (func_import): Prefer rsync over wget when available,
102496         for fetching the PO files.
102498 2007-09-08  Bruno Haible  <bruno@clisp.org>
102500         * posix-modules: New file. Portions copied from gnulib-tool.
102501         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
102503 2007-09-08  Jim Meyering  <jim@meyering.net>
102505         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
102506         * lib/fpending.h: Rename from __fpending.h.
102507         * lib/fpending.c: Rename from __fpending.c.
102508         Include "fpending.h", not "__fpending.h".
102509         * lib/__fpending.h, lib/__fpending.c: Remove files.
102510         * modules/fpending (Files): Reflect new file names.
102511         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
102513 2007-09-08  Bruno Haible  <bruno@clisp.org>
102515         * m4/inttypes-h.m4: Remove stub file.
102517 2007-09-07  Simon Josefsson  <simon@josefsson.org>
102519         * doc/headers/stdint.texi: Discuss #include_next issue.
102521 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
102523         * build-aux/bootstrap: Remove obsolete comment about wget --help.
102525 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
102527         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
102528         in variable name.
102530 2007-09-03  Jim Meyering  <jim@meyering.net>
102532         New module: git-version-gen.
102533         * modules/git-version-gen: New file.
102535         Import changes from coreutils for bootstrap script.
102537         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
102539         bootstrap: uses rsync to download the .po files
102540         * build-aux/bootstrap (po_download_command_format): New global.
102541         (download_po_files): Use rsync.
102542         (update_po_files): Don't remove .po files after download,
102543         so future rsync runs can take advantage of the copies.
102545         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
102547         Solve the unnecessary-.po-file-regeneration problem once and for all.
102548         * build-aux/bootstrap (download_po_files): New function, renamed from
102549         get_translations.  Now, downloads, but doesn't update LINGUAS.
102550         (update_po_files): New function.
102552         bootstrap: Ignore more.
102553         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
102554         uniwidth to e.g., lib/.gitignore.
102555         (slurp): Handle the sys_stat_.h -> sys mapping, too.
102557         * build-aux/bootstrap: New setting: vc_ignore.
102558         (insert_sorted_if_absent): Create $file if absent.
102559         Adapt to new, possibly empty, list: $vc_ignore.
102561         bootstrap: generate more ignorable names
102562         * build-aux/bootstrap (slurp): When generating ignorable names,
102563         also map .sin to .sed, .gperf to .c, and .y to .c.
102565 2007-09-03  Jim Meyering  <jim@meyering.net>
102567         * build-aux/git-version-gen: New file, from coreutils.  For details, see
102568         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
102570 2007-09-02  Bruno Haible  <bruno@clisp.org>
102572         Fix mis-recognition of 'mcs' on QNX 6.
102573         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
102574         output contains the string "Mono".
102575         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
102576         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
102578 2007-09-01  Bruno Haible  <bruno@clisp.org>
102580         Fix collision between uniwidth/* and linebreak modules.
102581         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
102582         u32_width): Remove declarations.
102583         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
102584         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
102585         streq3, streq2, streq1, streq0): Remove functions.
102586         (STREQ): Remove macro.
102587         (is_cjk_encoding): Remove function.
102588         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
102589         (uc_width, u8_width, u16_width, u32_width): Remove functions.
102590         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
102591         * NEWS: Document the change.
102593 2007-09-01  Bruno Haible  <bruno@clisp.org>
102595         * lib/streq.h: Add double-inclusion guard.
102597 2007-09-01  Karl Berry  <karl@gnu.org>
102599         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
102601 2007-08-28  Jim Meyering  <jim@meyering.net>
102603         Rename mreadlink_with_size to areadlink_with_size.
102604         * NEWS: Document the change.
102605         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
102606         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
102607         * lib/mreadlink.h: Rename this to...
102608         * lib/areadlink.h: ...this.
102609         * modules/mreadlink-with-size: Rename this to...
102610         * modules/areadlink-with-size: ...this.
102611         * lib/canonicalize.c: Reflect the renaming.
102612         * modules/canonicalize: Likewise.
102614 2007-08-26  Bruno Haible  <bruno@clisp.org>
102616         * gnulib-tool (func_import): When deciding which files to remove,
102617         consider also dangling symbolic links.
102618         Reported by Eric Blake.
102620 2007-08-26  Bruno Haible  <bruno@clisp.org>
102622         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
102624 2007-08-23  Simon Josefsson  <simon@josefsson.org>
102626         * lib/readline.c: Don't include getline.h, the prototype is now
102627         found in stdio.h.
102629 2007-08-23  Jim Meyering  <jim@meyering.net>
102631         Getdelim touchup.
102632         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
102633         around the funlockfile call, since funlockfile never sets errno.
102634         Don't set errno upon failed realloc.
102636 2007-08-22  Eric Blake  <ebb9@byu.net>
102638         Getline touchups.
102639         * lib/getdelim.c (getdelim): Revert regression that required *n to
102640         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
102641         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
102642         getdelim, rather than whether implementation is missing.
102643         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
102644         * lib/stdio_.h (getline): Also declare if replacement is
102645         required.
102646         * doc/functions/getdelim.texi: New file.
102647         * doc/functions/getline.texi: Likewise.
102648         * doc/gnulib.texi (Function Substitutes): Add new files.
102649         Reported by Bruno Haible.
102651 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
102653         * users.txt: Add Guile.
102655 2007-08-22  Eric Blake  <ebb9@byu.net>
102657         * tests/test-getdelim.c (main): Use remove, not unlink.
102658         * tests/test-getline.c (main): Likewise.
102660         Move getline and getdelim into stdio.h, per POSIX 200x.
102661         * modules/getline (Files): Remove getline.h.
102662         (Depends-on): Add stdio.
102663         (configure.ac): Add module indicator.
102664         * modules/getdelim (Files): Remove getdelim.h.
102665         (Depends-on): Add stdio.
102666         (configure.ac): Add module indicator.
102667         * modules/stdio (Makefile.am): Work with new indicators.
102668         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
102669         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
102670         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
102671         * lib/getdelim.h: Delete.
102672         * lib/getline.h: Delete.
102673         * lib/stdio_.h (getdelim, getline): Declare.
102674         * modules/getdelim-tests: New module.
102675         * modules/getline-tests: Likewise.
102676         * tests/test-getdelim.c: New file.
102677         * tests/test-getline.c: Likewise.
102678         * NEWS: Document the change.
102679         * lib/getline.c: Update choice of header.
102680         * lib/csharpcomp.c: Likewise.
102681         * lib/getpass.c: Likewise.
102682         * lib/javacomp.c: Likewise.
102683         * lib/javaversion.c: Likewise.
102684         * lib/yesno.c: Likewise.
102685         * lib/getdelim.c: Likewise.
102686         (getdelim): Set errno on failure, and avoid memory leak.
102688 2007-08-19  Bruno Haible  <bruno@clisp.org>
102690         * modules/closein (Depends-on): Add freadahead.
102691         * lib/closein.c: Include freadahead.h.
102692         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
102693         is zero.
102695 2007-08-19  Bruno Haible  <bruno@clisp.org>
102697         * modules/freadahead-tests: New file.
102698         * tests/test-freadahead.sh: New file.
102699         * tests/test-freadahead.c: New file.
102701         * modules/freadahead: New file.
102702         * lib/freadahead.h: New file.
102703         * lib/freadahead.c: New file.
102704         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
102705         fbufmode, fpurge, freadable, fwritable.
102707 2007-08-19  Eric Blake  <ebb9@byu.net>
102709         Test yesno in combination with closein.
102710         * lib/yesno.c (yesno): Document use of stdin.
102711         * modules/yesno-tests (Files): New module.
102712         * tests/test-yesno.c (main): New file.
102713         * tests/test-yesno.sh: Likewise.
102715 2007-08-19  Bruno Haible  <bruno@clisp.org>
102717         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
102718         * lib/fseeko.c (rpl_fseeko): Likewise.
102719         * lib/fseterr.c (fseterr): Likewise.
102721 2007-08-19  Bruno Haible  <bruno@clisp.org>
102723         * tests/test-lseek.c (main): Disable a test for BeOS.
102724         * doc/functions/lseek.texi: Document the BeOS bug.
102726 2007-08-19  Bruno Haible  <bruno@clisp.org>
102727             Eric Blake  <ebb9@byu.net>
102729         * lib/lseek.c: Include <sys/stat.h>.
102730         (rpl_lseek): Add workaround code also for Unix platforms.
102731         Needed for BeOS.
102732         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
102733         * doc/functions/lseek.texi: Document BeOS definiency.
102735 2007-08-18  Bruno Haible  <bruno@clisp.org>
102737         * modules/fstrcmp-tests: New file.
102738         * tests/test-fstrcmp.c: New file.
102740 2007-08-18  Bruno Haible  <bruno@clisp.org>
102742         * modules/fstrcmp: New file, from GNU gettext with modifications.
102743         * lib/fstrcmp.h: New file, from GNU gettext.
102744         * lib/fstrcmp.c: New file, from GNU gettext.
102745         * MODULES.html.sh (String handling): Add fstrcmp.
102747 2007-08-18  Bruno Haible  <bruno@clisp.org>
102749         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
102750         'bool'.
102751         (diag, compareseq): Remove const from the ctxt argument.
102752         (USE_HEURISTIC): Undefine at the end.
102754 2007-08-18  Jim Meyering  <jim@meyering.net>
102756         New file: lib/idcache.h
102757         * NEWS: Mention the addition.
102758         * modules/idcache (Files): Add lib/idcache.h
102759         * lib/idcache.c: Include "idcache.h".
102760         Don't include <sys/types.h>.
102761         Add a FIXME comment.
102762         Move file-scoped "static" declarations to the top.
102763         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
102765 2007-08-17  Bruno Haible  <bruno@clisp.org>
102766         and Paul Eggert  <eggert@cs.ucla.edu>
102768         * MODULES.html.sh: Add diffseq.
102769         * modules/diffseq: New file.
102770         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
102771         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
102773 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
102775         Import changes from coreutils for bootstrap script.
102777         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
102779         * build-aux/bootstrap (slurp): Work even in environments where
102780         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
102781         current code does not slurp files whose names start with ".", and
102782         this looks like it might be a troublesome area.
102784         2007-07-11  Jim Meyering  <jim@meyering.net>
102786         If there's a GPL vN copyright comment, require that N == 3.
102788         2007-07-08  Jim Meyering  <jim@meyering.net>
102790         Run the coreutils-specific code only if tests/Makefile.am.in exists.
102791         * build-aux/bootstrap (mam_template): Move definition out of loop.
102793         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
102795         * build-aux/bootstrap (symlink_to_dir): Rename function from
102796         symlink_to_gnulib.  Add a directory parameter.  Update all
102797         callers.
102798         (cp_mark_as_generated): Also check for -- and link to -- files in
102799         gl/.
102801         2007-07-08  Jim Meyering  <jim@meyering.net>
102803         Adapt to deeper hierarchy in gnulib.
102804         * build-aux/bootstrap (symlink_to_dir): If the destination
102805         directory doesn't exist, create it. This is required at least for
102806         "lib/uniwidth/cjk.h".
102808         2007-05-15  Jim Meyering  <jim@meyering.net>
102810         * build-aux/bootstrap: Now that generated Makefile.am files
102811         are no longer under version control, they must be created at
102812         bootstrap time.
102814 2007-08-14  Ben Pfaff  <blp@gnu.org>
102816         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
102818 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
102820         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
102821         given the changes below.
102822         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
102823         even on hosts that have padding bits beyond the supported 64.
102825 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
102827         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
102828         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
102829         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
102830         depends on it.
102831         (xstrtol_error): Remove.
102832         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
102833         but with a different signature.
102834         (ATTRIBUTE_NORETURN, __attribute__): New macros.
102835         * lib/xstrtol-error.c: Include exitfail.h.
102836         (xstrtol_fatal): New function, with a different signature from the
102837         old xstrtol_error, so that the caller need not worry about passing
102838         in an exit status, or about storage management of the option argument.
102839         (xstrtol_error): Now a static function.  Redo signature to
102840         implement xstrtol_fatal.  Output the correct number of hyphens in
102841         front of the option so that the caller need not worry about
102842         storage management.
102843         (N_): New macro.
102844         (_): Remove; not used now.
102845         * modules/xstrtol: Depend on getopt.
102846         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
102847         of old STRTOL_FATAL_ERROR macro.
102848         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
102849         of test program.
102850         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
102851         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
102853 2007-08-08  Eric Blake  <ebb9@byu.net>
102855         * lib/xstrtol-error.c: Add missing include.
102857         Move xstrtol messages into gnulib domain, when --pobase is used.
102858         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
102859         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
102860         * modules/xstrtol (Files): Distribute new file.
102861         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
102862         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
102863         * tests/test-xstrtol.c: ...into new file.
102864         * tests/test-xstrtoul.c: Also test xstrtoul.
102865         * tests/test-xstrtoimax.c: Also test xstrtoimax.
102866         * tests/test-xstrtoumax.c: Also test xstrtoumax.
102867         * tests/test-xstrtol.sh: Drive the tests.
102868         * tests/test-xstrtoimax.sh: Likewise.
102869         * tests/test-xstrtoumax.sh: Likewise.
102870         * modules/xstrtol-tests: New module.
102871         * modules/xstrtoimax-tests: Likewise.
102872         * modules/xstrtoumax-tests: Likewise.
102874 2007-08-08  Jim Meyering  <jim@meyering.net>
102876         New function: mfile_name_concat.
102877         * lib/filenamecat.c (mfile_name_concat): New function, just like
102878         file_name_concat, but return NULL upon failure rather than exiting
102879         with a diagnostic.
102880         * lib/filenamecat.h: Declare it.
102882 2007-08-07  Bruno Haible  <bruno@clisp.org>
102884         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
102885         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
102886         warning from gcc.
102887         Reported by Eric Blake.
102889 2007-08-07  Simon Josefsson  <simon@josefsson.org>
102891         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
102892         * modules/crypto/arcfour (License): Likewise.
102893         * modules/crypto/des-tests (License): Likewise.
102894         * modules/crypto/gc-arctwo-tests (License): Likewise.
102895         * modules/crypto/gc-des-tests (License): Likewise.
102896         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
102897         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
102898         * modules/crypto/gc-md2-tests (License): Likewise.
102899         * modules/crypto/gc-md4-tests (License): Likewise.
102900         * modules/crypto/gc-md5-tests (License): Likewise.
102901         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
102902         * modules/crypto/gc-rijndael-tests (License): Likewise.
102903         * modules/crypto/gc-sha1-tests (License): Likewise.
102904         * modules/crypto/gc-tests (License): Likewise.
102905         * modules/crypto/hmac-md5 (License): Likewise.
102906         * modules/crypto/hmac-sha1 (License): Likewise.
102907         * modules/crypto/md2-tests (License): Likewise.
102908         * modules/crypto/md4-tests (License): Likewise.
102909         * modules/crypto/md5 (License): Likewise.
102910         * modules/crypto/rijndael (License): Likewise.
102911         * modules/crypto/sha1 (License): Likewise.
102912         * modules/memxor (License): Likewise.
102914 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
102915         and Bruno Haible  <bruno@clisp.org>
102917         * NEWS: Describe interface changes to human, xstrtol.
102918         * lib/human.h: Include <xstrtol.h>.
102919         (human_options): Return enum strtol_error, not int.  Remove
102920         bool arg; take int * instead.
102921         * lib/human.c: Don't include "gettext.h".
102922         (_): Remove; no longer used.
102923         Don't include <xstrtol.h>, since human.h does it.
102924         (human_options): Adjust to abovementioned interface changes.
102925         Do not report error to stderr; that's now the caller's
102926         responsibility.
102927         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
102928         interface change.
102929         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
102930         Str, Argument_type_string.  All uses changed.  Put " argument"
102931         in diagnostics to make them clearer.  Change wording of suffix
102932         message for clarity.
102933         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
102934         Argument_type_string.
102935         (STRTOL_FATAL_WARN): Remove; no longer used.
102936         * modules/human (Depends-on): Remove gettext-h.
102938 2007-08-06  Simon Josefsson  <simon@josefsson.org>
102940         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
102942 2007-07-31  Bruno Haible  <bruno@clisp.org>
102944         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
102945         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
102946         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
102948 2007-07-31  Bruno Haible  <bruno@clisp.org>
102950         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
102951         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
102953 2007-07-30  Bruno Haible  <bruno@clisp.org>
102955         * modules/base64 (License): Use the synonymous term "LGPLv2+".
102956         * modules/c-ctype (License): Likewise.
102957         * modules/c-strcase (License): Likewise.
102958         * modules/check-version (License): Likewise.
102959         * modules/iconv (License): Likewise.
102960         * modules/iconv_open (License): Likewise.
102961         * modules/read-file (License): Likewise.
102962         * modules/striconv (License): Likewise.
102963         * modules/strverscmp (License): Likewise.
102964         * modules/vasprintf (License): Likewise.
102965         * modules/crypto/des (License): Likewise.
102966         * modules/crypto/gc (License): Likewise.
102967         * modules/crypto/gc-arcfour (License): Likewise.
102968         * modules/crypto/gc-arctwo (License): Likewise.
102969         * modules/crypto/gc-des (License): Likewise.
102970         * modules/crypto/gc-hmac-md5 (License): Likewise.
102971         * modules/crypto/gc-hmac-sha1 (License): Likewise.
102972         * modules/crypto/gc-md2 (License): Likewise.
102973         * modules/crypto/gc-md4 (License): Likewise.
102974         * modules/crypto/gc-md5 (License): Likewise.
102975         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
102976         * modules/crypto/gc-random (License): Likewise.
102977         * modules/crypto/gc-rijndael (License): Likewise.
102978         * modules/crypto/gc-sha1 (License): Likewise.
102979         * modules/crypto/md2 (License): Likewise.
102980         * modules/crypto/md4 (License): Likewise.
102982 2007-07-30  Jim Meyering  <jim@meyering.net>
102984         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
102985         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
102986         it has valid stat data.  This bug would cause du not to count the
102987         sizes of inaccessible directories.
102988         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
102989         in <http://bugzilla.redhat.com/250077>.
102991 2007-07-25  Peter O'Gorman  <peter@pogma.com>
102992             Bruno Haible  <bruno@clisp.org>
102994         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
102995         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
102996         #include_next, gives a diagnostic about it, but reports no error in
102997         the exit code.
102998         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
103000 2007-07-24  Ben Pfaff  <blp@gnu.org>
103002         Improve name: "count-one-bits" is better than "popcount".
103003         * MODULES.html.sh: Update name.
103004         * lib/popcount.h: Renamed lib/count-one-bits.h.
103005         (popcount): Renamed count_one_bits.
103006         (popcountl): Renamed count_one_bits_l.
103007         (popcountll): Renamed count_one_bits_ll.
103008         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
103009         * modules/popcount: Renamed module/count-one-bits.
103010         * modules/popcount-tests: Renamed module/count-one-bits-tests.
103011         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
103013 2007-07-23  Ben Pfaff  <blp@gnu.org>
103015         * lib/popcount.h (popcount32): Reduce size of constants, to allow
103016         better code generation, and add U to large constants to avoid
103017         warnings, in non-GCC case.
103018         Suggested by Bruno Haible.
103020 2007-07-23  Ben Pfaff  <blp@gnu.org>
103022         * lib/popcount.h: Use verify_true instead of if...abort.
103023         * modules/popcount: Depend on verify module.
103024         Suggested by Jim Meyering.
103026 2007-07-23  Bruno Haible  <bruno@clisp.org>
103028         * gnulib-tool (func_import): Create a .cvsignore file also when the
103029         directory is not yet in CVS but the toplevel directory is. When
103030         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
103031         Reported by Karl Berry.
103033 2007-07-22  Ben Pfaff  <blp@gnu.org>
103035         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
103036         case.
103037         Suggested by Eric Blake.
103039 2007-07-22  Ben Pfaff  <blp@gnu.org>
103041         New module: popcount.
103042         * MODULES.html.sh: Add popcount.
103043         * modules/popcount: New file.
103044         * modules/popcount-tests: New file.
103045         * tests/test-popcount.c: New file.
103046         * lib/popcount.h: New file.
103047         * m4/popcount.m4: New file.
103049 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
103051         * build-aux/announce-gen: Update to GPLv3.
103053         * build-aux/config.guess: Update from config.
103055 2007-07-21  Bruno Haible  <bruno@clisp.org>
103057         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
103058         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
103060 2007-07-20  Jim Meyering  <jim@meyering.net>
103062         * check-module: Diagnose a self-dependency.
103064 2007-07-19  Bruno Haible  <bruno@clisp.org>
103066         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
103067         empty.
103068         Reported by Eric Blake.
103070 2007-07-18  Bruno Haible  <bruno@clisp.org>
103072         * gnulib-tool: New options --po-base, --po-domain.
103073         (func_usage): Document them.
103074         (pobase, po_domain): New variables.
103075         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
103076         DEFAULT_TEXT_DOMAIN.
103077         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
103078         (func_import): Consider pobase and po_domain. Create a po/ directory.
103079         (func_create_testdir): Set pobase and po_domain to empty.
103080         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
103081         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
103083 2007-07-18  Bruno Haible  <bruno@clisp.org>
103085         * gnulib-tool (func_get_automake_snippet): Synthesize also an
103086         EXTRA_DIST augmentation for files in build-aux/.
103088 2007-07-16  Bruno Haible  <bruno@clisp.org>
103090         * modules/lseek (License): Use the synonymous term "LGPLv2+".
103091         * modules/getdelim (License): Likewise.
103093 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
103095         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
103096         * modules/d-type (License): Likewise.
103097         * modules/extensions (License): Likewise.
103098         * modules/fnmatch (License): Likewise.
103099         * modules/fseeko (License): Likewise.
103100         * modules/getaddrinfo (License): Likewise.
103101         * modules/getline (License): Likewise.
103102         * modules/getlogin_r (License): Likewise.
103103         * modules/getpass (License): Likewise.
103104         * modules/gettimeofday (License): Likewise.
103105         * modules/glob (License): Likewise.
103106         * modules/inet_ntop (License): Likewise.
103107         * modules/malloc (License): Likewise.
103108         * modules/malloca (License): Likewise.
103109         * modules/memmem (License): Likewise.
103110         * modules/mempcpy (License): Likewise.
103111         * modules/memset (License): Likewise.
103112         * modules/minmax (License): Likewise.
103113         * modules/mktime (License): Likewise.
103114         * modules/netinet_in (License): Likewise.
103115         * modules/pathmax (License): Likewise.
103116         * modules/poll (License): Likewise.
103117         * modules/regex (License): Likewise.
103118         * modules/snprintf (License): Likewise.
103119         * modules/stdbool (License): Likewise.
103120         * modules/stdint (License): Likewise.
103121         * modules/stdio (License): Likewise.
103122         * modules/strcase (License): Likewise.
103123         * modules/strcasestr (License): Likewise.
103124         * modules/strdup (License): Likewise.
103125         * modules/string (License): Likewise.
103126         * modules/strndup (License): Likewise.
103127         * modules/strnlen (License): Likewise.
103128         * modules/strpbrk (License): Likewise.
103129         * modules/strptime (License): Likewise.
103130         * modules/strsep (License): Likewise.
103131         * modules/sys_select (License): Likewise.
103132         * modules/sys_socket (License): Likewise.
103133         * modules/sys_stat (License): Likewise.
103134         * modules/sys_time (License): Likewise.
103135         * modules/time (License): Likewise.
103136         * modules/time_r (License): Likewise.
103137         * modules/timegm (License): Likewise.
103138         * modules/unistd (License): Likewise.
103139         * modules/vsnprintf (License): Likewise.
103140         * modules/wctype (License): Likewise.
103142 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103144         * modules/argz (License): LGPLv2+.
103146 2007-07-15  Karl Berry  <karl@gnu.org>
103148         * doc/gnulib.texi: revise node structure per new fdl.texi.
103150 2007-07-14  Bruno Haible  <bruno@clisp.org>
103152         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
103153         the output file.
103154         * lib/uniname/uninames.h: Regenerated.
103156 2007-07-14  Karl Berry  <karl@gnu.org>
103158         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
103159         omitting sectioning and index commands.
103161 2007-07-13  Bruno Haible  <bruno@clisp.org>
103163         New gnulib-tool option --more-symlinks.
103164         * gnulib-tool (func_usage): Document --more-symlinks.
103165         (do_copyrights): New variable.
103166         Recognize option --more-symlinks.
103167         (func_import): Don't add a copyright notice transform to
103168         sed_transform_lib_file if do_copyrights is empty.
103170 2007-07-13  Bruno Haible  <bruno@clisp.org>
103172         * lib/vasnprintf.c (decimal_point_char): Define also if
103173         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
103174         && !NEED_PRINTF_DIRECTIVE_A.
103175         Reported by Clemens Koller <clemens.koller@anagramm.de> via
103176         Gary V. Vaughan <gary@gnu.org>.
103178 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
103180         * lib/inttypes_.h: Undo previous change, since it was fixed
103181         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
103183 2007-07-13  Bruno Haible  <bruno@clisp.org>
103185         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
103186         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
103188 2007-07-13  Jim Meyering  <jim@meyering.net>
103190         df: Don't fail for Tru64's "file-on-file mount".
103191         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
103192         so we fall through and use statfs instead.  Details here:
103193         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
103194         Reported by Albert Chin.
103196 2007-07-13  Bruno Haible  <bruno@clisp.org>
103198         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
103199         * modules/configmake (License): Likewise.
103200         * modules/gettext (License): Likewise.
103201         * modules/gettext-h (License): Likewise.
103202         * modules/include_next (License): Likewise.
103203         * modules/link-warning (License): Likewise.
103204         * modules/localcharset (License): Likewise.
103205         * modules/localename (License): Likewise.
103206         * modules/lock (License): Likewise.
103207         * modules/relocatable-lib-lgpl (License): Likewise.
103208         * modules/size_max (License): Likewise.
103209         * modules/vasnprintf (License): Likewise.
103210         * modules/wchar (License): Likewise.
103211         * modules/xsize (License): Likewise.
103213 2007-07-13  Bruno Haible  <bruno@clisp.org>
103215         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
103216         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
103218 2007-07-12  Bruno Haible  <bruno@clisp.org>
103220         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
103221         in the modules files.
103223 2007-07-11  Karl Berry  <karl@gnu.org>
103225         * MODULES.html.sh (func_module): use
103226          sed -e '\|^'"${includefile}"'$|d'
103227          instead of /.../d, to avoid errors on $includefile's containing /.
103229 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
103231         * gnulib-tool (func_import): Avoid duplication of --avoid
103232         statements
103233         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
103234         names to `_' in variable names.
103236 2007-07-10  Eric Blake  <ebb9@byu.net>
103238         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
103239         * NEWS: Document this change.
103241 2007-07-08  Bruno Haible  <bruno@clisp.org>
103243         Update to Unicode 5.0.
103244         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
103245         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
103246         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
103247         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
103248         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
103249         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
103250         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
103251         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
103252         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
103253         U+10A3F, U+1D242..U+1D244.
103254         (nonspacing_table_ind): Update.
103255         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
103256         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
103258 2007-07-08  Bruno Haible  <bruno@clisp.org>
103260         Update to Unicode 5.0.
103261         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
103262         code transform. Extend the name index field of unicode_name_to_code and
103263         unicode_code_to_name from 16 to 24 bits.
103264         * lib/uniname/uniname.c (unicode_character_name,
103265         unicode_name_character): Add the range 0x12xxx to the code transform.
103266         * lib/uniname/uninames.h: Regenerated.
103267         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
103269 2007-07-07  Bruno Haible  <bruno@clisp.org>
103271         * modules/wcwidth-tests: New file.
103272         * tests/test-wcwidth.c: New file.
103274         Work around MacOS X wcwidth() bug.
103275         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
103276         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
103277         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
103278         original wcwidth in non-UTF-8 locales.
103279         * modules/wcwidth (Depends-on): Add localcharset, streq,
103280         uniwidth/width.
103281         * doc/functions/wcwidth.texi: Update.
103283 2007-07-07  Bruno Haible  <bruno@clisp.org>
103285         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
103286         (wcwidth): New declaration.
103287         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
103288         macros.
103289         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
103290         here. Prepare for creating <wchar.h> unconditionally.
103291         * modules/wchar (Depends-on): Add link-warning.
103292         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
103293         REPLACE_WCWIDTH, and GL_LINK_WARNING.
103294         * lib/wcwidth.h: Remove file.
103295         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
103296         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
103297         * modules/wcwidth (Files): Remove lib/wcwidth.h.
103298         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
103299         (Include): Replace wcwidth.h with <wchar.h>.
103300         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
103301         * lib/mbchar.h: Don't include wcwidth.h.
103302         * lib/mbswidth.c: Likewise.
103303         * NEWS: Mention the change.
103305 2007-07-07  Bruno Haible  <bruno@clisp.org>
103307         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
103308         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
103309         definition with an external declaration.
103310         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
103311         defined as a function. Remove AC_C_INLINE requirement.
103312         * modules/wcwidth (Files): Add lib/wcwidth.c.
103313         (Makefile.am): Remove redundant statement.
103315 2007-07-07  Bruno Haible  <bruno@clisp.org>
103317         * MODULES.html.sh (Unicode string functions): Add the new modules.
103319         * tests/uniwidth/test-u32-strwidth.c: New file.
103320         * modules/uniwidth/u32-strwidth-tests: New file.
103322         * lib/uniwidth/u32-strwidth.c: New file.
103323         * modules/uniwidth/u32-strwidth: New file.
103325         * tests/uniwidth/test-u16-strwidth.c: New file.
103326         * modules/uniwidth/u16-strwidth-tests: New file.
103328         * lib/uniwidth/u16-strwidth.c: New file.
103329         * modules/uniwidth/u16-strwidth: New file.
103331         * tests/uniwidth/test-u8-strwidth.c: New file.
103332         * modules/uniwidth/u8-strwidth-tests: New file.
103334         * lib/uniwidth/u8-strwidth.c: New file.
103335         * modules/uniwidth/u8-strwidth: New file.
103337         * tests/uniwidth/test-u32-width.c: New file.
103338         * modules/uniwidth/u32-width-tests: New file.
103340         * lib/uniwidth/u32-width.c: New file.
103341         * modules/uniwidth/u32-width: New file.
103343         * tests/uniwidth/test-u16-width.c: New file.
103344         * modules/uniwidth/u16-width-tests: New file.
103346         * lib/uniwidth/u16-width.c: New file.
103347         * modules/uniwidth/u16-width: New file.
103349         * tests/uniwidth/test-u8-width.c: New file.
103350         * modules/uniwidth/u8-width-tests: New file.
103352         * lib/uniwidth/u8-width.c: New file.
103353         * modules/uniwidth/u8-width: New file.
103355         * tests/uniwidth/test-uc_width.c: New file.
103356         * modules/uniwidth/width-tests: New file.
103358         * lib/uniwidth/width.c: New file, from GNU libiconv.
103359         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
103360         * modules/uniwidth/width: New file.
103362         * lib/uniwidth.h: New file, from GNU libiconv.
103363         * modules/uniwidth/base: New file.
103365 2007-07-07  Bruno Haible  <bruno@clisp.org>
103367         * lib/uniname.h: New file, from GNU gettext.
103368         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
103369         * lib/uniname/uninames.h: New file, from GNU gettext.
103370         * lib/uniname/uniname.c: New file, from GNU gettext.
103371         * tests/uniname/test-uninames.sh: New file.
103372         * tests/uniname/test-uninames.c: New file, from GNU gettext.
103373         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
103374         * modules/uniname/base: New file.
103375         * modules/uniname/uniname: New file.
103376         * modules/uniname/uniname-tests: New file.
103377         * MODULES.html.sh (Unicode string functions): Add the new modules.
103379 2007-07-06  Bruno Haible  <bruno@clisp.org>
103381         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
103383 2007-07-06  Bruno Haible  <bruno@clisp.org>
103385         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
103386         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
103387         includes <cygwin/sys_time.h> which includes <sys/select.h> which
103388         include <sys/time.h>.
103389         Reported by Eric Blake.
103391 2007-07-06  Eric Blake  <ebb9@byu.net>
103393         Fix testing canonicalize on cygwin.
103394         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
103395         Revert patch from 2007-06-19.
103396         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
103397         canonicalize module is also in use.
103398         * tests/test-canonicalize.c: New file.
103399         * tests/test-canonicalize.sh: Likewise.
103400         * modules/canonicalize-tests: Likewise.
103402 2007-07-06  Jim Meyering  <jim@meyering.net>
103404         * lib/getugroups.c (getugroups): Detect getgrent failure.
103405         Adjust comment to reflect reality: this function may return -1.
103407 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
103409         * build-aux/bootstrap (TP_URL,get_translations): Update to use
103410         the new TP address.
103411         (usage): Fix typo
103412         (gnulib_mk): New variable.
103414 2007-07-05  Jim Meyering  <jim@meyering.net>
103416         Don't let endgrent clobber errno, no matter how improbable.
103417         * lib/getugroups.c (getugroups): Save and restore errno around
103418         endgrent call.
103420         Close the group DB even when failing with 2^31 or more members.
103421         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
103423 2007-07-04  Jim Meyering  <jim@meyering.net>
103425         * lib/getugroups.h: New file.
103426         * lib/getugroups.c: Include "getugroups.h".
103427         Remove uses of "register" keyword.
103428         Move local variable, "cp", down into scope where used.
103429         Give "username" parameter the "const" attribute.
103430         * modules/getugroups (Files): Add lib/getugroups.h
103432 2007-07-04  Karl Berry  <karl@gnu.org>
103434         * MODULES.html.sh (func_all_modules): Complete rename of
103435         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
103437 2007-07-02  Bruno Haible  <bruno@clisp.org>
103439         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
103440         mode, when inttypes.h comes from gnulib.
103441         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
103443 2007-07-02  Simon Josefsson  <simon@josefsson.org>
103445         * NEWS: Mention lgpl module name change.
103447         * modules/lgpl-2.1: Renamed from lgpl.
103449         * NEWS: Mention gpl module name change.
103451         * modules/gpl-3.0: New file, based on gpl-2.0.
103453         * modules/gpl-2.0: Renamed from gpl.
103455         * modules/gpl: Fix filename, doc/gpl.texi is now found at
103456         doc/gpl-2.0.texi.
103458 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
103460         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
103461         #define __STDC_LIMIT_MACROS temporarily while including
103462         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
103463         Problem reported by Joel E. Denny in
103464         <http://lists.gnu.org/r/bug-gnulib/2007-07/msg00008.html>.
103466 2007-07-01  Bruno Haible  <bruno@clisp.org>
103468         * lib/unistdio.h: New file.
103469         * lib/unistdio/u-asnprintf.h: New file.
103470         * lib/unistdio/u-asprintf.h: New file.
103471         * lib/unistdio/u-printf-args.c: New file.
103472         * lib/unistdio/u-printf-args.h: New file.
103473         * lib/unistdio/u-printf-parse.h: New file.
103474         * lib/unistdio/u-snprintf.h: New file.
103475         * lib/unistdio/u-sprintf.h: New file.
103476         * lib/unistdio/u-vasprintf.h: New file.
103477         * lib/unistdio/u-vsnprintf.h: New file.
103478         * lib/unistdio/u-vsprintf.h: New file.
103479         * lib/unistdio/ulc-asnprintf.c: New file.
103480         * lib/unistdio/ulc-asprintf.c: New file.
103481         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
103482         * lib/unistdio/ulc-printf-parse.c: New file.
103483         * lib/unistdio/ulc-snprintf.c: New file.
103484         * lib/unistdio/ulc-sprintf.c: New file.
103485         * lib/unistdio/ulc-vasnprintf.c: New file.
103486         * lib/unistdio/ulc-vasprintf.c: New file.
103487         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
103488         * lib/unistdio/ulc-vsnprintf.c: New file.
103489         * lib/unistdio/ulc-vsprintf.c: New file.
103490         * lib/unistdio/u8-asnprintf.c: New file.
103491         * lib/unistdio/u8-asprintf.c: New file.
103492         * lib/unistdio/u8-printf-parse.c: New file.
103493         * lib/unistdio/u8-snprintf.c: New file.
103494         * lib/unistdio/u8-sprintf.c: New file.
103495         * lib/unistdio/u8-vasnprintf.c: New file.
103496         * lib/unistdio/u8-vasprintf.c: New file.
103497         * lib/unistdio/u8-vsnprintf.c: New file.
103498         * lib/unistdio/u8-vsprintf.c: New file.
103499         * lib/unistdio/u8-u8-asnprintf.c: New file.
103500         * lib/unistdio/u8-u8-asprintf.c: New file.
103501         * lib/unistdio/u8-u8-snprintf.c: New file.
103502         * lib/unistdio/u8-u8-sprintf.c: New file.
103503         * lib/unistdio/u8-u8-vasnprintf.c: New file.
103504         * lib/unistdio/u8-u8-vasprintf.c: New file.
103505         * lib/unistdio/u8-u8-vsnprintf.c: New file.
103506         * lib/unistdio/u8-u8-vsprintf.c: New file.
103507         * lib/unistdio/u16-asnprintf.c: New file.
103508         * lib/unistdio/u16-asprintf.c: New file.
103509         * lib/unistdio/u16-printf-parse.c: New file.
103510         * lib/unistdio/u16-snprintf.c: New file.
103511         * lib/unistdio/u16-sprintf.c: New file.
103512         * lib/unistdio/u16-vasnprintf.c: New file.
103513         * lib/unistdio/u16-vasprintf.c: New file.
103514         * lib/unistdio/u16-vsnprintf.c: New file.
103515         * lib/unistdio/u16-vsprintf.c: New file.
103516         * lib/unistdio/u16-u16-asnprintf.c: New file.
103517         * lib/unistdio/u16-u16-asprintf.c: New file.
103518         * lib/unistdio/u16-u16-snprintf.c: New file.
103519         * lib/unistdio/u16-u16-sprintf.c: New file.
103520         * lib/unistdio/u16-u16-vasnprintf.c: New file.
103521         * lib/unistdio/u16-u16-vasprintf.c: New file.
103522         * lib/unistdio/u16-u16-vsnprintf.c: New file.
103523         * lib/unistdio/u16-u16-vsprintf.c: New file.
103524         * lib/unistdio/u32-asnprintf.c: New file.
103525         * lib/unistdio/u32-asprintf.c: New file.
103526         * lib/unistdio/u32-printf-parse.c: New file.
103527         * lib/unistdio/u32-snprintf.c: New file.
103528         * lib/unistdio/u32-sprintf.c: New file.
103529         * lib/unistdio/u32-vasnprintf.c: New file.
103530         * lib/unistdio/u32-vasprintf.c: New file.
103531         * lib/unistdio/u32-vsnprintf.c: New file.
103532         * lib/unistdio/u32-vsprintf.c: New file.
103533         * lib/unistdio/u32-u32-asnprintf.c: New file.
103534         * lib/unistdio/u32-u32-asprintf.c: New file.
103535         * lib/unistdio/u32-u32-snprintf.c: New file.
103536         * lib/unistdio/u32-u32-sprintf.c: New file.
103537         * lib/unistdio/u32-u32-vasnprintf.c: New file.
103538         * lib/unistdio/u32-u32-vasprintf.c: New file.
103539         * lib/unistdio/u32-u32-vsnprintf.c: New file.
103540         * lib/unistdio/u32-u32-vsprintf.c: New file.
103541         * tests/unistdio/test-ulc-asnprintf1.c: New file.
103542         * tests/unistdio/test-ulc-asnprintf1.h: New file.
103543         * tests/unistdio/test-ulc-printf1.h: New file.
103544         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
103545         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
103546         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
103547         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
103548         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
103549         * tests/unistdio/test-ulc-vasprintf1.c: New file.
103550         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
103551         * tests/unistdio/test-ulc-vsprintf1.c: New file.
103552         * tests/unistdio/test-u8-asnprintf1.c: New file.
103553         * tests/unistdio/test-u8-asnprintf1.h: New file.
103554         * tests/unistdio/test-u8-printf1.h: New file.
103555         * tests/unistdio/test-u8-vasnprintf1.c: New file.
103556         * tests/unistdio/test-u8-vasnprintf2.c: New file.
103557         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
103558         * tests/unistdio/test-u8-vasnprintf3.c: New file.
103559         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
103560         * tests/unistdio/test-u8-vasprintf1.c: New file.
103561         * tests/unistdio/test-u8-vsnprintf1.c: New file.
103562         * tests/unistdio/test-u8-vsprintf1.c: New file.
103563         * tests/unistdio/test-u16-asnprintf1.c: New file.
103564         * tests/unistdio/test-u16-asnprintf1.h: New file.
103565         * tests/unistdio/test-u16-printf1.h: New file.
103566         * tests/unistdio/test-u16-vasnprintf1.c: New file.
103567         * tests/unistdio/test-u16-vasnprintf2.c: New file.
103568         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
103569         * tests/unistdio/test-u16-vasnprintf3.c: New file.
103570         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
103571         * tests/unistdio/test-u16-vasprintf1.c: New file.
103572         * tests/unistdio/test-u16-vsnprintf1.c: New file.
103573         * tests/unistdio/test-u16-vsprintf1.c: New file.
103574         * tests/unistdio/test-u32-asnprintf1.c: New file.
103575         * tests/unistdio/test-u32-asnprintf1.h: New file.
103576         * tests/unistdio/test-u32-printf1.h: New file.
103577         * tests/unistdio/test-u32-vasnprintf1.c: New file.
103578         * tests/unistdio/test-u32-vasnprintf2.c: New file.
103579         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
103580         * tests/unistdio/test-u32-vasnprintf3.c: New file.
103581         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
103582         * tests/unistdio/test-u32-vasprintf1.c: New file.
103583         * tests/unistdio/test-u32-vsnprintf1.c: New file.
103584         * tests/unistdio/test-u32-vsprintf1.c: New file.
103585         * modules/unistdio/base: New file.
103586         * modules/unistdio/u-printf-args: New file.
103587         * modules/unistdio/ulc-asnprintf: New file.
103588         * modules/unistdio/ulc-asprintf: New file.
103589         * modules/unistdio/ulc-fprintf: New file.
103590         * modules/unistdio/ulc-printf-parse: New file.
103591         * modules/unistdio/ulc-snprintf: New file.
103592         * modules/unistdio/ulc-sprintf: New file.
103593         * modules/unistdio/ulc-vasnprintf: New file.
103594         * modules/unistdio/ulc-vasprintf: New file.
103595         * modules/unistdio/ulc-vfprintf: New file.
103596         * modules/unistdio/ulc-vsnprintf: New file.
103597         * modules/unistdio/ulc-vsprintf: New file.
103598         * modules/unistdio/u8-asnprintf: New file.
103599         * modules/unistdio/u8-asprintf: New file.
103600         * modules/unistdio/u8-printf-parse: New file.
103601         * modules/unistdio/u8-snprintf: New file.
103602         * modules/unistdio/u8-sprintf: New file.
103603         * modules/unistdio/u8-vasnprintf: New file.
103604         * modules/unistdio/u8-vasprintf: New file.
103605         * modules/unistdio/u8-vsnprintf: New file.
103606         * modules/unistdio/u8-vsprintf: New file.
103607         * modules/unistdio/u8-u8-asnprintf: New file.
103608         * modules/unistdio/u8-u8-asprintf: New file.
103609         * modules/unistdio/u8-u8-snprintf: New file.
103610         * modules/unistdio/u8-u8-sprintf: New file.
103611         * modules/unistdio/u8-u8-vasnprintf: New file.
103612         * modules/unistdio/u8-u8-vasprintf: New file.
103613         * modules/unistdio/u8-u8-vsnprintf: New file.
103614         * modules/unistdio/u8-u8-vsprintf: New file.
103615         * modules/unistdio/u16-asnprintf: New file.
103616         * modules/unistdio/u16-asprintf: New file.
103617         * modules/unistdio/u16-printf-parse: New file.
103618         * modules/unistdio/u16-snprintf: New file.
103619         * modules/unistdio/u16-sprintf: New file.
103620         * modules/unistdio/u16-vasnprintf: New file.
103621         * modules/unistdio/u16-vasprintf: New file.
103622         * modules/unistdio/u16-vsnprintf: New file.
103623         * modules/unistdio/u16-vsprintf: New file.
103624         * modules/unistdio/u16-u16-asnprintf: New file.
103625         * modules/unistdio/u16-u16-asprintf: New file.
103626         * modules/unistdio/u16-u16-snprintf: New file.
103627         * modules/unistdio/u16-u16-sprintf: New file.
103628         * modules/unistdio/u16-u16-vasnprintf: New file.
103629         * modules/unistdio/u16-u16-vasprintf: New file.
103630         * modules/unistdio/u16-u16-vsnprintf: New file.
103631         * modules/unistdio/u16-u16-vsprintf: New file.
103632         * modules/unistdio/u32-asnprintf: New file.
103633         * modules/unistdio/u32-asprintf: New file.
103634         * modules/unistdio/u32-printf-parse: New file.
103635         * modules/unistdio/u32-snprintf: New file.
103636         * modules/unistdio/u32-sprintf: New file.
103637         * modules/unistdio/u32-vasnprintf: New file.
103638         * modules/unistdio/u32-vasprintf: New file.
103639         * modules/unistdio/u32-vsnprintf: New file.
103640         * modules/unistdio/u32-vsprintf: New file.
103641         * modules/unistdio/u32-u32-asnprintf: New file.
103642         * modules/unistdio/u32-u32-asprintf: New file.
103643         * modules/unistdio/u32-u32-snprintf: New file.
103644         * modules/unistdio/u32-u32-sprintf: New file.
103645         * modules/unistdio/u32-u32-vasnprintf: New file.
103646         * modules/unistdio/u32-u32-vasprintf: New file.
103647         * modules/unistdio/u32-u32-vsnprintf: New file.
103648         * modules/unistdio/u32-u32-vsprintf: New file.
103649         * modules/unistdio/ulc-asnprintf-tests: New file.
103650         * modules/unistdio/ulc-vasnprintf-tests: New file.
103651         * modules/unistdio/ulc-vasprintf-tests: New file.
103652         * modules/unistdio/ulc-vsnprintf-tests: New file.
103653         * modules/unistdio/ulc-vsprintf-tests: New file.
103654         * modules/unistdio/u8-asnprintf-tests: New file.
103655         * modules/unistdio/u8-vasnprintf-tests: New file.
103656         * modules/unistdio/u8-vasprintf-tests: New file.
103657         * modules/unistdio/u8-vsnprintf-tests: New file.
103658         * modules/unistdio/u8-vsprintf-tests: New file.
103659         * modules/unistdio/u16-asnprintf-tests: New file.
103660         * modules/unistdio/u16-vasnprintf-tests: New file.
103661         * modules/unistdio/u16-vasprintf-tests: New file.
103662         * modules/unistdio/u16-vsnprintf-tests: New file.
103663         * modules/unistdio/u16-vsprintf-tests: New file.
103664         * modules/unistdio/u32-asnprintf-tests: New file.
103665         * modules/unistdio/u32-vasnprintf-tests: New file.
103666         * modules/unistdio/u32-vasprintf-tests: New file.
103667         * modules/unistdio/u32-vsnprintf-tests: New file.
103668         * modules/unistdio/u32-vsprintf-tests: New file.
103669         * MODULES.html.sh (Unicode string functions): Add the new modules.
103671 2007-07-01  Bruno Haible  <bruno@clisp.org>
103673         * lib/sprintf.c (sprintf): Limit the available length estimation,
103674         to avoid address wraparound.
103675         * lib/vsprintf.c (vsprintf): Likewise.
103676         * modules/sprintf-posix (Dependencies): Add stdint.
103677         * modules/vsprintf-posix (Dependencies): Likewise.
103679 2007-07-01  Bruno Haible  <bruno@clisp.org>
103681         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
103682         Windows PATH as well. Conservative double-quoting. Comments.
103684 2007-07-01  Bruno Haible  <bruno@clisp.org>
103685             Eric Blake  <ebb9@byu.net>
103686             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103688         * gnulib-tool (self_abspathname): Fix algorithm to cope with
103689         empty components in $PATH, denoting '.'.
103691 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103693         * gnulib-tool: Fix indentation.
103694         (func_create_megatestdir): Likewise.
103695         Report by Bruno Haible.
103697 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103699         Sync from Automake.
103700         * build-aux/gnupload: Fix shell portability issues with for loops.
103701         Report by Karl Berry.
103703 2007-06-29  Simon Josefsson  <simon@josefsson.org>
103705         * build-aux/maint.mk (POURL): Use translationproject.org.
103707 2007-06-27  Simon Josefsson  <simon@josefsson.org>
103708             Bruno Haible  <bruno@clisp.org>
103710         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
103711         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
103712         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
103713         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
103714         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
103716 2007-06-27  Bruno Haible  <bruno@clisp.org>
103718         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
103719         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
103721 2007-06-26  Karl Berry  <karl@gnu.org>
103723         * MODULES.html.sh: remove xreadlink-with-size.
103725 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
103727         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
103728         method that I hope also handles the double-include problem noted
103729         by Bruno Haible in
103730         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00186.html>.
103732 2007-06-23  Bruno Haible  <bruno@clisp.org>
103734         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
103735         Don't let the 'mostlyclean' target fail if the last subdirectory could
103736         not be removed.
103737         Reported by Karl Berry.
103739 2007-06-23  Bruno Haible  <bruno@clisp.org>
103741         * gnulib-tool (echo): Add a speedier workaround for ksh.
103742         * tests/test-echo.sh: Likewise.
103744 2007-06-23  Bruno Haible  <bruno@clisp.org>
103746         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
103747         * tests/test-echo.sh: Likewise.
103749 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103751         * gnulib-tool (IFS): Initialize early, so we don't set it to
103752         empty later.
103753         (self_abspathname): Rewrite algorithm to set it, reindent.
103754         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
103755         (func_create_megatestdir): Merge some sed scripts.
103757 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
103759         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
103760         exposed by Sun Studio 11 cc on Solaris 8.
103762 2007-06-22  Bruno Haible  <bruno@clisp.org>
103764         * gnulib-tool (echo): Ensure the echo primitive does not interpret
103765         backslashes.
103766         * tests/test-echo.sh: New file.
103768 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103770         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
103771         simplify `sed_replace_build_aux' scripts, they are portable but
103772         echoing them with `echo' is not.
103773         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
103775 2007-06-21  Karl Berry  <karl@gnu.org>
103777         * config/srclist.txt: guess we can't handle the licenses via
103778         srclist at the moment.
103780 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
103782         * MODULES.html.sh: Add include_next.
103783         * modules/include_next: New file.
103785 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
103787         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
103788         INCLUDE_NEXT.
103789         (gl_CHECK_NEXT_HEADERS): New macro.
103790         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
103791         the obsolescent gl_ABSOLUTE_HEADER.
103792         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
103793         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
103794         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
103795         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
103796         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
103797         * m4/math_h.m4 (gl_MATH_H): Likewise.
103798         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
103799         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
103800         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
103801         * m4/stdint.m4 (gl_STDINT_H): Likewise.
103802         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
103803         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
103804         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
103805         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
103806         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
103807         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
103808         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
103809         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
103810         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
103811         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
103812         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
103813         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
103814         * m4/inttypes.m4 (gl_INTTYPES_H): Define
103815         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
103816         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
103817         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
103818         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
103819         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
103820         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
103821         * lib/float_.h: Likewise.
103822         * lib/inttypes_.h: Likewise.
103823         * lib/math_.h: Likewise.
103824         * lib/search_.h: Likewise.
103825         * lib/signal_.h: Likewise.
103826         * lib/stdint_.h: Likewise.
103827         * lib/stdio_.h: Likewise.
103828         * lib/stdlib_.h: Likewise.
103829         * lib/string_.h: Likewise.
103830         * lib/sys_stat_.h: Likewise.
103831         * lib/sys_time_.h: Likewise.
103832         * lib/time_.h: Likewise.
103833         * lib/unistd_.h: Likewise.
103834         * lib/wchar_.h: Likewise.
103835         * lib/wctype_.h: Likewise.
103836         * lib/dirent_.h: Likewise.
103837         * lib/iconv_.h: Likewise.
103838         * lib/locale_.h: Likewise.
103839         * lib/netinet_in_.h: Likewise.
103840         * lib/sys_select_.h: Likewise.
103841         * lib/sys_socket_.h: Likewise.
103842         * lib/sysexits_.h: Likewise.
103843         * modules/fcntl (Depends-on): Depend on include_next, not
103844         absolute_header.
103845         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
103846         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
103847         * modules/fchdir: Likewise.
103848         * modules/float: Likewise.
103849         * modules/iconv_open: Likewise.
103850         * modules/inttypes: Likewise.
103851         * modules/locale: Likewise.
103852         * modules/math: Likewise.
103853         * modules/netinet_in: Likewise.
103854         * modules/search: Likewise.
103855         * modules/signal: Likewise.
103856         * modules/stdint: Likewise.
103857         * modules/stdio: Likewise.
103858         * modules/stdlib: Likewise.
103859         * modules/string: Likewise.
103860         * modules/sys_select: Likewise.
103861         * modules/sys_socket: Likewise.
103862         * modules/sys_stat: Likewise.
103863         * modules/sys_time: Likewise.
103864         * modules/sysexits: Likewise.
103865         * modules/time: Likewise.
103866         * modules/unistd: Likewise.
103867         * modules/wchar: Likewise.
103868         * modules/wctype: Likewise.
103869         * modules/sys_stat: Change maintainer to "all".
103870         * modules/unistd: Likewise.
103872 2007-06-20  Karl Berry  <karl@gnu.org>
103874         * config/srclist.txt: track www changes in license files.
103876 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
103878         * build-aux/bootstrap: Remove stray dot.
103879         Make sure build_aux settings are honored when linking
103880         gnulib_extra_files.
103882 2007-06-19  Eric Blake  <ebb9@byu.net>
103884         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
103885         Allow compilation on cygwin.
103887 2007-06-19  Jim Meyering  <jim@meyering.net>
103889         xreadlink-with-size: Remove module.  No longer used.
103890         Ex-callers now use xreadlink or mreadlink-with-size.
103891         * modules/xreadlink-with-size: Remove module.
103892         * lib/xreadlink-with-size.c: Remove file.
103893         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
103894         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
103895         just before the function definition *is* accurate.
103897         Eliminate one way canonicalize_filename_mode could exit.
103898         * lib/canonicalize.c (canonicalize_filename_mode):
103899         Use mreadlink_with_size, not xreadlink_with_size.
103901 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
103903         Detect porting problems to FreeBSD/arm, which has time_t wider than
103904         long int.  Original problem reported for GNU diff by Xin Li in
103905         <http://lists.gnu.org/r/bug-gnu-utils/2007-06/msg00091.html>.
103906         * modules/getdate (Depends-on): Add intprops, verify.
103907         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
103908         is an integer type no wider than long int.
103910 2007-06-18  Jim Meyering  <jim@meyering.net>
103912         New module: mreadlink-with-size.
103913         * MODULES.html.sh: Add mreadlink-with-size.
103914         * modules/mreadlink-with-size: New module
103915         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
103916         not xreadlink-with-size.
103917         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
103919 2007-06-16  Bruno Haible  <bruno@clisp.org>
103921         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
103922         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
103923         Reported by Gary V. Vaughan <gary@gnu.org>.
103925 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
103927         Revamp lchown so that it lives in unistd.h where it belongs.
103928         * lib/lchown.h: Remove.
103929         * lib/dirchownmod.c: Don't include lib/lchown.h.
103930         * lib/fchownat.c: Likewise.
103931         * lib/openat.c: Likewise.
103932         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
103933         does not follow symlinks.
103934         (EOPNOTSUPP): Define if not defined.
103935         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
103936         is defined to 0.
103937         (lchown): New decl.
103938         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
103939         Do not check for lchown decl.
103940         Set REPLACE_LCHOWN.
103941         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
103942         REPLACE_LCHOWN.
103943         * modules/chown: Make it clear it follows symlinks.
103944         * modules/lchown: Make it clear it doesn't follow symlinks.
103945         (Files): Remove lib/lchown.h
103946         (Depends-on): Add unistd.
103947         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
103948         (Include): Include <unistd.h>, not "lchown.h".
103949         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
103950         REPLACE_LCHOWN.
103952 2007-06-15  Jim Meyering  <jim@meyering.net>
103954         Change license (GPL to LGPL) of fsusage and dependents.
103955         * modules/fsusage (License): Change to LGPL.
103956         * modules/full-read (License): Likewise.
103957         * modules/full-write (License): Likewise.
103958         * modules/safe-read (License): Likewise.
103959         * modules/safe-write (License): Likewise.
103961 2007-06-14  Ben Pfaff  <blp@gnu.org>
103963         Missing part of allocsa -> malloca transition.
103964         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
103965         gl_MALLOCA.
103967 2007-06-12  Bruno Haible  <bruno@clisp.org>
103969         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
103970         to ia64, x86_64, i386.
103971         Reported by Eric Blake.
103973 2007-06-12  Bruno Haible  <bruno@clisp.org>
103975         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
103976         cross-compiling to x86_64.
103978 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
103980         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
103981         glitch reported by Ralf Wildenhues in
103982         <http://lists.gnu.org/r/bug-gnulib/2007-06/msg00114.html>.
103984         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
103985         Vin Shelton.
103987 2007-06-11  Bruno Haible  <bruno@clisp.org>
103989         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
103990         replacement string.
103991         Reported by Eric Blake.
103993 2007-06-10  Bruno Haible  <bruno@clisp.org>
103995         Prepare vasnprintf code for use with Unicode strings.
103996         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
103997         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
103998         TYPE_U32_STRING.
103999         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
104000         a_u32_string variants.
104001         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
104002         * lib/printf-args.c: Don't include config.h and the specification
104003         header if PRINTF_FETCHARGS is already defined.
104004         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
104005         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
104006         TYPE_U16_STRING, TYPE_U32_STRING.
104007         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
104008         u16_directive, u16_directives, u32_directive, u32_directives): New
104009         types.
104010         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
104011         New declarations.
104012         * lib/printf-parse.c: Don't include config.h and the specification
104013         header if PRINTF_PARSE is already defined. Eliminate the set of
104014         parameters for WIDE_CHAR_VERSION; the user of this file must provide
104015         them now. Include c-ctype.h.
104016         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
104017         directive and CHAR_T_ONLY_ASCII.
104018         * lib/vasnprintf.c: Don't include config.h and the specification header
104019         if VASNPRINTF is already defined.
104020         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
104021         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
104022         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
104023         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
104024         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
104025         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
104026         code accordingly.
104027         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
104028         pad_ourselves also in this case, with the 'c' and 's' directives, and
104029         with a different notion of "width".
104030         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
104032 2007-06-10  Bruno Haible  <bruno@clisp.org>
104034         * modules/unistr/u32-mbsnlen: New file.
104035         * lib/unistr/u32-mbsnlen.c: New file.
104037         * modules/unistr/u16-mbsnlen: New file.
104038         * lib/unistr/u16-mbsnlen.c: New file.
104040         * modules/unistr/u8-mbsnlen: New file.
104041         * lib/unistr/u8-mbsnlen.c: New file.
104043         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
104044         declarations.
104046 2007-06-10  Bruno Haible  <bruno@clisp.org>
104048         * lib/string_.h (mbsnlen): New declaration.
104049         * lib/mbsnlen.c: New file.
104050         * m4/mbsnlen.m4: New file.
104051         * modules/mbsnlen: New file.
104052         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
104053         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
104054         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
104056 2007-06-10  Bruno Haible  <bruno@clisp.org>
104058         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
104060 2007-06-10  Bruno Haible  <bruno@clisp.org>
104062         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
104063         * lib/mbuiter.h: Likewise.
104065 2007-06-10  Bruno Haible  <bruno@clisp.org>
104067         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
104068         declaration.
104070 2007-06-10  Karl Berry  <karl@gnu.org>
104072         * config/srclist.txt: remove gettext entries, Bruno prefers
104073         to update individually.
104075 2007-06-10  Bruno Haible  <bruno@clisp.org>
104077         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
104078         'maxlen'. Ensure only length + width bytes are allocated, not
104079         length + 1 + width.
104081 2007-06-09  Bruno Haible  <bruno@clisp.org>
104083         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
104084         (CHAR_T): Remove macro.
104085         (VASNPRINTF): Update.
104087 2007-06-09  Bruno Haible  <bruno@clisp.org>
104089         * MODULES.html.sh (Unicode string functions): Add the new modules.
104091         * modules/uniconv/u32-conv-to-enc: New file.
104092         * lib/uniconv/u32-conv-to-enc.c: New file.
104093         * modules/uniconv/u32-conv-to-enc-tests: New file.
104094         * tests/uniconv/test-u32-conv-to-enc.c: New file.
104096         * modules/uniconv/u16-conv-to-enc: New file.
104097         * lib/uniconv/u16-conv-to-enc.c: New file.
104098         * lib/uniconv/u-conv-to-enc.h: New file.
104099         * modules/uniconv/u16-conv-to-enc-tests: New file.
104100         * tests/uniconv/test-u16-conv-to-enc.c: New file.
104102         * modules/uniconv/u8-conv-to-enc: New file.
104103         * lib/uniconv/u8-conv-to-enc.c: New file.
104104         * modules/uniconv/u8-conv-to-enc-tests: New file.
104105         * tests/uniconv/test-u8-conv-to-enc.c: New file.
104107         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
104108         u32_conv_to_encoding): New declarations.
104110 2007-06-09  Bruno Haible  <bruno@clisp.org>
104112         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
104114 2007-06-09  Bruno Haible  <bruno@clisp.org>
104116         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
104117         * modules/malloca: Renamed from modules/allocsa, updated.
104118         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
104119         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
104120         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
104121         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
104122         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
104123         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
104124         * modules/xmalloca: Renamed from modules/xallocsa, updated.
104125         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
104126         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
104127         * modules/c-strcasestr (Depends-on): Update.
104128         * lib/c-strcasestr.c: Update.
104129         * modules/c-strstr (Depends-on): Update.
104130         * lib/c-strstr.c: Update.
104131         * modules/canonicalize-lgpl (Depends-on): Update.
104132         * lib/canonicalize-lgpl.c: Update.
104133         * modules/clean-temp (Depends-on): Update.
104134         * lib/clean-temp.c: Update.
104135         * modules/csharpcomp (Depends-on): Update.
104136         * lib/csharpcomp.c: Update.
104137         * modules/csharpexec (Depends-on): Update.
104138         * lib/csharpexec.c: Update.
104139         * modules/javacomp (Depends-on): Update.
104140         * lib/javacomp.c: Update.
104141         * modules/javaexec (Depends-on): Update.
104142         * lib/javaexec.c: Update.
104143         * modules/mbscasestr (Depends-on): Update.
104144         * lib/mbscasestr.c: Update.
104145         * modules/mbsstr (Depends-on): Update.
104146         * lib/mbsstr.c: Update.
104147         * modules/setenv (Depends-on): Update.
104148         * lib/setenv.c: Update.
104149         * modules/strcasestr (Depends-on): Update.
104150         * lib/strcasestr.c: Update.
104151         * modules/striconveha (Depends-on): Update.
104152         * lib/striconveha.c: Update.
104153         * modules/relocatable-prog-wrapper (Files): Update.
104154         * lib/relocwrapper.c: Update.
104155         * build-aux/install-reloc: Update.
104156         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
104158 2007-06-08  Bruno Haible  <bruno@clisp.org>
104160         Port to uClibc.
104161         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
104162         * lib/fpurge.c (fpurge): Likewise.
104163         * lib/freading.c (freading): Likewise.
104164         * lib/fseeko.c (rpl_fseeko): Likewise.
104165         * lib/fseterr.c (fseterr): Likewise.
104166         * lib/fwriting.c (fwriting): Likewise.
104167         * tests/test-fflush.c (main): Avoid a failure on uClibc.
104169 2007-06-08  Bruno Haible  <bruno@clisp.org>
104171         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
104172         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
104173         * modules/gettext (Files): Add m4/intlmacosx.m4.
104175 2007-06-07  Bruno Haible  <bruno@clisp.org>
104177         * modules/localename-tests: New file.
104178         * tests/test-localename.c: New file.
104180         New module 'localename'.
104181         * lib/localename.h: New file.
104182         * lib/localename.c: New file, from GNU gettext.
104183         * m4/localename.m4: New file.
104184         * modules/localename: New file.
104186 2007-06-07  Bruno Haible  <bruno@clisp.org>
104188         Work around the lack of <wchar.h> on some builds of uClibc.
104189         * doc/headers/wchar.texi: Update.
104190         * lib/wchar_.h: Include <wchar.h> only if it exists.
104191         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
104192         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
104193         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
104194         doesn't exist.
104195         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
104196         * modules/mbfile (Depends-on): Add wchar.
104197         * modules/mbiter (Depends-on): Likewise.
104198         * modules/mbuiter (Depends-on): Likewise.
104199         Reported by Simon Josefsson.
104201 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
104203         Work around problem reported by Steven M. Schweda in
104204         <http://lists.gnu.org/r/bug-tar/2007-06/msg00002.html>:
104205         Tru64 5.1B with the Compaq compiler environment installed declares
104206         an 'isblank' function but does not define it in the C library.
104207         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
104208         * lib/regex_internal.h (isblank): Likewise.
104209         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
104210         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
104212 2007-06-05  Bruno Haible  <bruno@clisp.org>
104214         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
104215         ia64.
104216         * modules/printf-safe: New file.
104217         * modules/fprintf-posix (Depends-on): Add printf-safe.
104218         * modules/printf-posix (Depends-on): Likewise.
104219         * modules/snprintf-posix (Depends-on): Likewise.
104220         * modules/sprintf-posix (Depends-on): Likewise.
104221         * modules/vasnprintf-posix (Depends-on): Likewise.
104222         * modules/vasprintf-posix (Depends-on): Likewise.
104223         * modules/vfprintf-posix (Depends-on): Likewise.
104224         * modules/vprintf-posix (Depends-on): Likewise.
104225         * modules/vsnprintf-posix (Depends-on): Likewise.
104226         * modules/vsprintf-posix (Depends-on): Likewise.
104227         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
104228         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
104229         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
104230         "no" on i386, x86_64, ia64.
104231         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
104232         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
104233         on i386, x86_64, ia64.
104234         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
104235         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
104236         on i386, x86_64, ia64.
104237         * tests/test-vasnprintf-posix.c: Include float.h.
104238         (LDBL80_WORDS): New macro.
104239         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
104240         on i386, x86_64, ia64.
104241         * tests/test-vasprintf-posix.c: Include float.h.
104242         (LDBL80_WORDS): New macro.
104243         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
104244         on i386, x86_64, ia64.
104245         * tests/test-snprintf-posix.c: Include float.h.
104246         * tests/test-sprintf-posix.c: Likewise.
104247         * tests/test-vsnprintf-posix.c: Likewise.
104248         * tests/test-vsprintf-posix.c: Likewise.
104250 2007-06-05  Bruno Haible  <bruno@clisp.org>
104252         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
104253         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
104254         non-IEEE numbers on i386, x86_64, ia64.
104255         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
104256         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
104257         * tests/test-isnanl.h: Include float.h.
104258         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
104260 2007-06-05  Bruno Haible  <bruno@clisp.org>
104262         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
104263         also the %a / %A. Handle the %a / %A code before this extra handling.
104265 2007-06-05  Bruno Haible  <bruno@clisp.org>
104267         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
104268         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
104270 2007-06-05  Bruno Haible  <bruno@clisp.org>
104272         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
104273         typo in variable name.
104275 2007-06-05  Eric Blake  <ebb9@byu.net>
104277         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
104278         Reported by Simon Josefsson.
104280 2007-06-04  Bruno Haible  <bruno@clisp.org>
104282         Avoid test failures on some PowerPC platforms.
104283         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
104284         Define differently for PowerPC.
104285         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
104286         Reported by Gary V. Vaughan <gary@gnu.org>.
104288 2007-06-02  Bruno Haible  <bruno@clisp.org>
104290         Fix test-stdint failure on FreeBSD/ia64.
104291         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
104292         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
104293         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
104294         * doc/headers/stdint.texi: Update.
104296 2007-06-01  Bruno Haible  <bruno@clisp.org>
104298         * tests/test-binary-io.c (main): Pass a third argument to open().
104299         Reported by Gary V. Vaughan <gary@gnu.org>.
104301 2007-06-01  Bruno Haible  <bruno@clisp.org>
104303         * doc/functions/frexpl.texi: Update for mingw.
104305 2007-06-01  Bruno Haible  <bruno@clisp.org>
104307         * tests/test-lseek.c (main): Disable test of errno for invalid third
104308         argument.
104309         * doc/functions/lseek.texi: Update.
104310         Reported by Gary V. Vaughan <gary@gnu.org>.
104312 2007-05-28  Bruno Haible  <bruno@clisp.org>
104314         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
104316 2007-05-31  Eric Blake  <ebb9@byu.net>
104318         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
104319         cross compiling.
104321 2007-05-30  Eric Blake  <ebb9@byu.net>
104322         and Bruno Haible  <bruno@clisp.org>
104324         Work around mingw test failures exposed by m4-1.4.9b.
104325         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
104326         * tests/test-unistd.c: Disable uid_t and git_t tests for the
104327         moment.
104329 2007-05-30  Bruno Haible  <bruno@clisp.org>
104331         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
104332         assuming that they are closed. Needed on HP-UX 11.
104334 2007-05-29  Bruno Haible  <bruno@clisp.org>
104336         Fix a problem with #include_next.
104337         * lib/dirent_.h: Split the double-inclusion guard.
104338         * lib/fcntl_.h: Likewise.
104339         * lib/float_.h: Likewise.
104340         * lib/iconv_.h: Likewise.
104341         * lib/inttypes_.h: Likewise.
104342         * lib/locale_.h: Likewise.
104343         * lib/math_.h: Likewise.
104344         * lib/netinet_in_.h: Likewise.
104345         * lib/search_.h: Likewise.
104346         * lib/signal_.h: Likewise.
104347         * lib/stdint_.h: Likewise.
104348         * lib/stdio_.h: Likewise.
104349         * lib/stdlib_.h: Likewise.
104350         * lib/string_.h: Likewise.
104351         * lib/sys_select_.h: Likewise.
104352         * lib/sys_socket_.h: Likewise.
104353         * lib/sys_stat_.h: Likewise.
104354         * lib/sys_time_.h: Likewise.
104355         * lib/sysexits_.h: Likewise.
104356         * lib/time_.h: Likewise.
104357         * lib/unistd_.h: Likewise.
104358         * lib/wchar_.h: Likewise.
104359         * lib/wctype_.h: Likewise.
104361 2007-05-29  Bruno Haible  <bruno@clisp.org>
104363         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
104364         for the moment.
104366 2007-05-29  Bruno Haible  <bruno@clisp.org>
104368         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
104369         invocation.
104370         Reported by Eric Blake.
104372 2007-05-29  Bruno Haible  <bruno@clisp.org>
104374         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
104375         compiling case.
104377 2007-05-29  Eric Blake  <ebb9@byu.net>
104378             Bruno Haible  <bruno@clisp.org>
104380         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
104381         cross compiles.
104383 2007-05-28  Eric Blake  <ebb9@byu.net>
104385         * modules/closein-tests (test_closein_LDADD): Support test on
104386         cygwin with libtool.
104388 2007-05-28  Bruno Haible  <bruno@clisp.org>
104390         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
104391         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
104392         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
104393         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
104394         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
104395         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
104396         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
104397         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
104398         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
104400 2007-05-28  Eric Blake  <ebb9@byu.net>
104402         Unconditionally include <config.h> in unit tests.
104403         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
104404         * tests/test-allocsa.c, tests/test-arcfour.c,
104405         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
104406         tests/test-array_list.c, tests/test-array_oset.c,
104407         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
104408         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
104409         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
104410         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
104411         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
104412         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
104413         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
104414         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
104415         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
104416         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
104417         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
104418         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
104419         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
104420         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
104421         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
104422         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
104423         test-md5.c, test-memmem.c, test-printf-posix.c,
104424         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
104425         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
104426         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
104427         test-strcasestr.c, test-striconv.c, test-striconveh.c,
104428         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
104429         test-vasnprintf-posix2.c, test-vasnprintf.c,
104430         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
104431         test-vfprintf-posix.c, test-vprintf-posix.c,
104432         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
104433         test-xvasprintf.c: Likewise.
104435 2007-05-28  Bruno Haible  <bruno@clisp.org>
104437         * gnulib-tool (func_import): Remember the --with-tests command-line
104438         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
104439         Reported by Eric Blake.
104441 2007-05-28  Bruno Haible  <bruno@clisp.org>
104443         * modules/ftell-tests: New file.
104444         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
104445         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
104447         * lib/ftell.c: New file.
104448         * modules/ftell: New file.
104449         * m4/ftell.m4: New file.
104450         * doc/functions/ftell.texi: Update.
104451         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
104452         REPLACE_FTELL.
104453         * lib/stdio_.h (rpl_ftell): New declaration.
104454         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
104455         REPLACE_FTELL.
104457 2007-05-28  Eric Blake  <ebb9@byu.net>
104459         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
104461 2007-05-28  Bruno Haible  <bruno@clisp.org>
104463         * modules/fseek-tests: New file.
104464         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
104465         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
104467         * lib/fseek.c: New file.
104468         * modules/fseek: New file.
104469         * m4/fseek.m4: New file.
104470         * doc/functions/fseek.texi: Update.
104471         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
104472         REPLACE_FSEEK.
104473         * lib/stdio_.h (rpl_fseek): New declaration.
104474         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
104475         REPLACE_FSEEK.
104477 2007-05-28  Bruno Haible  <bruno@clisp.org>
104479         * lib/stdio_.h (fflush): More comments.
104481 2007-05-28  Bruno Haible  <bruno@clisp.org>
104483         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
104484         runtime test.
104486 2007-05-28  Eric Blake  <ebb9@byu.net>
104488         Improve lseek module.
104489         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
104490         * lib/unistd_.h (lseek): Scale back link warning message.
104491         * tests/test-lseek.c: Beef up test.
104492         * tests/test-lseek.sh: Exercise more facets of lseek.
104493         Reported by Bruno Haible.
104495 2007-05-28  Bruno Haible  <bruno@clisp.org>
104497         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
104498         to define.
104500 2007-05-27  Bruno Haible  <bruno@clisp.org>
104502         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
104504 2007-05-27  Bruno Haible  <bruno@clisp.org>
104506         * modules/openmp: New file.
104507         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
104508         Noah Misch.
104510 2007-05-26  Bruno Haible  <bruno@clisp.org>
104512         * modules/chdir-long (Depends-on): Add fchdir.
104513         * modules/chdir-safer (Depends-on): Likewise.
104514         * modules/fts (Depends-on): Likewise.
104515         * modules/fts-lgpl (Depends-on): Likewise.
104516         * modules/openat (Depends-on): Likewise.
104517         * modules/savewd (Depends-on): Likewise.
104519 2007-05-24  Eric Blake  <ebb9@byu.net>
104521         Fix lseek on mingw.
104522         * modules/lseek: New module.
104523         * m4/lseek.m4: New file.
104524         * lib/lseek.c: New file.
104525         * modules/lseek-tests: New file.
104526         * tests/test-lseek.c: New file.
104527         * tests/test-lseek.sh: New file.
104528         * MODULES.html.sh: Document lseek module.
104529         * modules/fflush (Depends-on): Add lseek, fseeko.
104530         * modules/fseeko (Depends-on): Likewise.
104531         * modules/ftello (Depends-on): Likewise.
104532         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
104533         broken.
104534         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
104535         broken.
104536         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
104537         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
104538         * lib/ftello.c (rpl_ftello): Likewise.
104539         * tests/test-fseeko.c (main): Test this.
104540         * tests/test-fseeko.sh: Likewise.
104541         * tests/test-ftello.c (main): Likewise.
104542         * tests/test-ftello.sh: Likewise.
104543         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
104544         implies replacing fseek.
104545         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
104546         HAVE_FTELLO.
104547         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
104548         * modules/unistd (Makefile.am): Likewise.
104549         * lib/unistd_.h (lseek): Declare a replacement.
104550         * doc/functions/lseek.texi (lseek): Document this fix.
104551         * doc/functions/fseek.texi (fseek): Likewise.
104552         * doc/functions/ftell.texi (ftell): Likewise.
104554 2007-05-24  Bruno Haible  <bruno@clisp.org>
104556         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
104557         in the printed representation of a NaN.
104558         * tests/test-vasprintf-posix.c (test_function): Likewise.
104559         * tests/test-snprintf-posix.h (test_function): Likewise.
104560         * tests/test-sprintf-posix.h (test_function): Likewise.
104561         Reported by Eric Blake.
104563 2007-05-23  Eric Blake  <ebb9@byu.net>
104565         Fix fseeko/ftello on cygwin 1.5.24.
104566         * doc/functions/fseeko.texi (fseeko): Document the fix.
104567         * doc/functions/ftello.texi (ftello): Document the fix.
104568         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
104569         * doc/functions/stdout.text (stdout): New file.
104570         * doc/functions/stderr.text (stderr): New file.
104571         * doc/gnulib.texi (Function Substitutes): Use new files.
104572         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
104573         prior to 1.7.0.
104574         * tests/test-ftello.c (main): Likewise for ftello.
104575         * tests/test-fseeko.sh: New file.
104576         * tests/test-ftello.sh: New file.
104577         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
104578         with seekable stdin.
104579         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
104580         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
104581         (gl_REPLACE_FSEEKO): New macro.
104582         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
104583         * modules/fseeko (Files): Distribute fseeko.c.
104584         * modules/ftello (Files): Distribute ftello.c.
104585         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
104586         mode.
104587         * lib/ftello.c (rpl_ftello): New file.
104588         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
104589         fseeko, ftello.
104590         (gl_STDIN_LARGE_OFFSET): New macro.
104591         * modules/stdio (Makefile.am): Perform the replacement.
104592         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
104594 2007-05-23  Bruno Haible  <bruno@clisp.org>
104596         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
104597         GNULIB_POSIXCHECK is defined.
104599 2007-05-21  Bruno Haible  <bruno@clisp.org>
104601         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
104602         Check also the output for NaN arguments. When cross-compiling, guess
104603         no on IRIX.
104604         * lib/vasnprintf.c: Update comments.
104605         * tests/test-vasnprintf-posix.c (strisnan): New function.
104606         (test_function): Use it.
104607         * tests/test-vasprintf-posix.c (strisnan): New function.
104608         (test_function): Use it.
104609         * tests/test-snprintf-posix.h (strisnan): New function.
104610         (test_function): Use it.
104611         * tests/test-sprintf-posix.h (strisnan): New function.
104612         (test_function): Use it.
104613         Reported by Eric Blake.
104615 2007-05-20  Bruno Haible  <bruno@clisp.org>
104617         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
104618         numbers that fails on BeOS.
104619         * doc/functions/frexpl.texi: Update.
104621 2007-05-20  Jim Meyering  <jim@meyering.net>
104623         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
104624         forced upon us by glibc-2.6.
104626 2007-05-20  Bruno Haible  <bruno@clisp.org>
104628         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
104629         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
104630         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
104631         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
104632         NEED_PRINTF_INFINITE.
104633         (is_infinitel): New function.
104634         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
104635         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
104636         gl_PREREQ_VASNPRINTF_INFINITE.
104637         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
104638         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
104639         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
104640         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
104641         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
104642         gl_PREREQ_VASNPRINTF_INFINITE.
104643         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
104644         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
104645         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
104646         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
104647         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
104648         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
104649         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
104650         * doc/functions/fprintf.texi: Update.
104651         * doc/functions/printf.texi: Update.
104652         * doc/functions/snprintf.texi: Update.
104653         * doc/functions/sprintf.texi: Update.
104654         * doc/functions/vfprintf.texi: Update.
104655         * doc/functions/vprintf.texi: Update.
104656         * doc/functions/vsnprintf.texi: Update.
104657         * doc/functions/vsprintf.texi: Update.
104659 2007-05-20  Bruno Haible  <bruno@clisp.org>
104661         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
104662         was not found in libc.
104663         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
104665 2007-05-20  Bruno Haible  <bruno@clisp.org>
104667         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
104668         printed as "-nan" instead of "nan".
104669         * tests/test-vasprintf-posix.c (test_function): Likewise.
104670         * tests/test-snprintf-posix.h (test_function): Likewise.
104671         * tests/test-sprintf-posix.h (test_function): Likewise.
104672         Needed for HP-UX 11.
104674 2007-05-20  Jim Meyering  <jim@meyering.net>
104676         Fix buggy test for the fchownat-deref bug.
104677         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
104678         symlink required for the run-test.  Without it, this test would
104679         always declare that fchownat doesn't work, and client code would
104680         unnecessarily use the replacement function with fixed libc.
104681         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
104682         Reported by Greg Schafer.
104684 2007-05-19  Bruno Haible  <bruno@clisp.org>
104686         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
104687         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
104688         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
104689         Needed for IRIX 6.5 and Solaris 2.5.1.
104691 2007-05-19  Bruno Haible  <bruno@clisp.org>
104693         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
104694         (test_function): Skip tests involving -0.0 on platforms where
104695         -0.0 = 0.0.
104696         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
104697         (test_function): Skip tests involving -0.0 on platforms where
104698         -0.0 = 0.0.
104699         * tests/test-snprintf-posix.h (have_minus_zero): New function.
104700         (test_function): Skip tests involving -0.0 on platforms where
104701         -0.0 = 0.0.
104702         * tests/test-sprintf-posix.h (have_minus_zero): New function.
104703         (test_function): Skip tests involving -0.0 on platforms where
104704         -0.0 = 0.0.
104705         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
104706         tests.
104707         * tests/test-printf-posix.h (test_function): Likewise.
104708         * tests/test-printf-posix.output: Remove all -0.0 related results.
104709         Needed for IRIX 6.5.
104711 2007-05-19  Bruno Haible  <bruno@clisp.org>
104713         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
104714         printed as "nan0x7fffffff" instead of "nan".
104715         * tests/test-vasprintf-posix.c (test_function): Likewise.
104716         * tests/test-snprintf-posix.h (test_function): Likewise.
104717         * tests/test-sprintf-posix.h (test_function): Likewise.
104718         * tests/test-fprintf-posix.h (NaN): Remove macro.
104719         (test_function): Remove all NaN related tests.
104720         * tests/test-printf-posix.h (NaN): Remove macro.
104721         (test_function): Remove all NaN related tests.
104722         * tests/test-printf-posix.output: Remove all NaN related results.
104723         Needed for IRIX 6.5.
104725 2007-05-19  Bruno Haible  <bruno@clisp.org>
104727         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
104728         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
104730 2007-05-19  Bruno Haible  <bruno@clisp.org>
104732         * lib/float_.h: New file.
104733         * m4/float_h.m4: New file.
104734         * modules/float: New file.
104735         * modules/isnanl (Dependencies): Add float.
104736         * modules/isnanl-nolibm (Dependencies): Likewise.
104737         * modules/mathl (Dependencies): Likewise.
104738         * modules/printf-frexpl (Dependencies): Likewise.
104739         * modules/signbit (Dependencies): Likewise.
104740         * modules/vasnprintf (Dependencies): Likewise.
104741         * doc/headers/float.texi: Update.
104743 2007-05-19  Jim Meyering  <jim@meyering.net>
104745         * lib/utimens.c (gl_futimens): Rename from futimens,
104746         now that glibc-2.6 declares futimens.
104747         * lib/utimens.h: Likewise.
104749 2007-05-19  Bruno Haible  <bruno@clisp.org>
104751         Avoid test failures on mingw.
104752         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
104753         * tests/test-printf-posix.sh: Likewise.
104754         * tests/test-vfprintf-posix.sh: Likewise.
104755         * tests/test-vprintf-posix.sh: Likewise.
104757 2007-05-19  Bruno Haible  <bruno@clisp.org>
104759         Fix *printf result for NaN, Inf, -0.0 on mingw.
104760         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
104761         * lib/vasnprintf.c: Include math.h and isnan.h.
104762         (is_infinite_or_zero): New function.
104763         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
104764         values in the %f, %F, %e, %E, %g, %G directives.
104765         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
104766         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
104767         gl_PRINTF_INFINITE and test its result. Invoke
104768         gl_PREREQ_VASNPRINTF_INFINITE.
104769         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
104770         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
104771         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
104772         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
104773         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
104774         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
104775         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
104776         * doc/functions/fprintf.texi: Update.
104777         * doc/functions/printf.texi: Update.
104778         * doc/functions/snprintf.texi: Update.
104779         * doc/functions/sprintf.texi: Update.
104780         * doc/functions/vfprintf.texi: Update.
104781         * doc/functions/vprintf.texi: Update.
104782         * doc/functions/vsnprintf.texi: Update.
104783         * doc/functions/vsprintf.texi: Update.
104785 2007-05-19  Bruno Haible  <bruno@clisp.org>
104787         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
104788         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
104789         Instead of multiplying with 10^k, set extra_zeroes to k.
104790         (scale10_round_long_double): Remove function.
104792 2007-05-18  Bruno Haible  <bruno@clisp.org>
104794         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
104795         introduced on 2007-05-06.
104797 2007-05-18  Bruno Haible  <bruno@clisp.org>
104799         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
104800         %g directives.
104801         * tests/test-vasprintf-posix.c (test_function): Likewise.
104802         * tests/test-snprintf-posix.h (test_function): Likewise.
104803         * tests/test-sprintf-posix.h (test_function): Likewise.
104805 2007-05-18  Bruno Haible  <bruno@clisp.org>
104807         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
104808         (strmatch): New function.
104809         (test_function): Test the %f directive on numbers of various exponents.
104810         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
104811         (strmatch): New function.
104812         (test_function): Test the %f directive on numbers of various exponents.
104813         * tests/test-snprintf-posix.h (strmatch): New function.
104814         (test_function): Test the %f directive on numbers of various exponents.
104815         * tests/test-sprintf-posix.h (strmatch): New function.
104816         (test_function): Test the %f directive on numbers of various exponents.
104817         * tests/test-snprintf-posix.c (SIZEOF): New macro.
104818         * tests/test-sprintf-posix.c (SIZEOF): New macro.
104819         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
104820         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
104822 2007-05-18  Bruno Haible  <bruno@clisp.org>
104824         Add support for 'long double' number output.
104825         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
104826         * lib/vasnprintf.c: Include math.h and float+.h.
104827         (mp_limb_t): New type.
104828         (GMP_LIMB_BITS): New macro.
104829         (mp_twolimb_t): New type.
104830         (GMP_TWOLIMB_BITS): New macro.
104831         (mpn_t): New type.
104832         (multiply, divide, convert_to_decimal, decode_long_double,
104833         scale10_round_long_double, scale10_round_decimal_long_double,
104834         floorlog10l): New functions.
104835         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
104836         for the %f, %F, %e, %E, %g, %G directives.
104837         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
104838         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
104839         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
104840         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
104841         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
104842         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
104843         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
104844         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
104845         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
104846         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
104847         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
104848         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
104849         * modules/snprintf-posix (Depends-on): Likewise.
104850         * modules/sprintf-posix (Depends-on): Likewise.
104851         * modules/vasnprintf-posix (Depends-on): Likewise.
104852         * modules/vasprintf-posix (Depends-on): Likewise.
104853         * modules/vfprintf-posix (Depends-on): Likewise.
104854         * modules/vsnprintf-posix (Depends-on): Likewise.
104855         * modules/vsprintf-posix (Depends-on): Likewise.
104856         * modules/vasnprintf (Files): Add lib/float+.h.
104857         * doc/functions/fprintf.texi: Update.
104858         * doc/functions/printf.texi: Update.
104859         * doc/functions/snprintf.texi: Update.
104860         * doc/functions/sprintf.texi: Update.
104861         * doc/functions/vfprintf.texi: Update.
104862         * doc/functions/vprintf.texi: Update.
104863         * doc/functions/vsnprintf.texi: Update.
104864         * doc/functions/vsprintf.texi: Update.
104866 2007-05-18  Bruno Haible  <bruno@clisp.org>
104868         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
104870 2007-05-18  Bruno Haible  <bruno@clisp.org>
104872         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
104873         for printing 64-bit integers. Needed for mingw.
104875 2007-05-18  Bruno Haible  <bruno@clisp.org>
104877         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
104878         gl_FUNC_FREXPL_WORKS.
104879         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
104881 2007-05-18  Bruno Haible  <bruno@clisp.org>
104883         * modules/frexpl-nolibm-tests: New file.
104885         * modules/frexpl-nolibm: New file.
104886         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
104888 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
104890         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
104891         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
104892         GCC 4.2, which otherwise issues a lot of warnings.
104893         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
104894         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
104895         Likewise.
104896         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
104897         * modules/iconv_open (iconv.h): Likewise.
104898         * modules/locale (locale.h): Likewise.
104899         * modules/netinet_in (netinet/in.h): Likewise.
104900         * modules/sys_select (sys_select.h): Likewise.
104901         * modules/sys_socket (sys/socket.h): Likewise.
104902         * modules/sys_stat (sys/stat.h): Likewise.
104903         * modules/sysexits (sysexits.h): Likewise.
104904         * modules/unistd (unistd.h): Likewise.
104906 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104908         * modules/closein-tests (Makefile.am): Distribute
104909         `test-closein.sh'.
104911 2007-05-17  Bruno Haible  <bruno@clisp.org>
104913         * tests/test-printf-posix.output: Renamed from
104914         tests/test-fprintf-posix.out.
104915         * modules/fprintf-posix-tests: Update.
104916         * modules/printf-posix-tests: Update.
104917         * modules/vfprintf-posix-tests: Update.
104918         * modules/vprintf-posix-tests: Update.
104919         * tests/test-fprintf-posix.sh: Update.
104920         * tests/test-printf-posix.sh: Update.
104921         * tests/test-vfprintf-posix.sh: Update.
104922         * tests/test-vprintf-posix.sh: Update.
104923         Reported by Ralf Wildenhues.
104925 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
104927         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
104928         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
104929         GCC 4.2, which otherwise issues a lot of warnings.
104930         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
104931         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
104932         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
104933         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
104934         it should no longer be needed.
104935         * lib/string_.h: Likewise.
104936         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
104937         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
104938         * modules/inttypes (inttypes.h): Likewise.
104939         * modules/math (math.h): Likewise.
104940         * modules/search (search.h): Likewise.
104941         * modules/signal (signal.h): Likewise.
104942         * modules/stdint (stdint.h): Likewise.
104943         * modules/stdio (stdio.h): Likewise.
104944         * modules/stdlib (stdlib.h): Likewise.
104945         * modules/string (string.h): Likewise.
104946         * modules/sys_time (sys/time.h): Likewise.
104947         * modules/time (time.h): Likewise.
104948         * modules/wchar (wchar.h): Likewise.
104949         * modules/wctype (wtype.h): Likewise.
104951 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
104953         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
104955 2007-05-13  Bruno Haible  <bruno@clisp.org>
104957         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
104958         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
104959         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
104960         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
104961         (gl_PREREQ_STRTOK_R): Don't require it here.
104963 2007-05-13  Bruno Haible  <bruno@clisp.org>
104965         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
104966         when used in C++ mode.
104968 2007-05-12  Bruno Haible  <bruno@clisp.org>
104970         * lib/linebuffer.h: Tweak doc.
104971         * lib/linebuffer.c: Likewise.
104973 2007-05-12  James Youngman  <jay@gnu.org>
104975         * lib/linebuffer.c (readlinebuffer_delim): New function,
104976         like readlinebuffer, but use a caller-specified delimiter.
104977         (readlinebuffer): Just call readlinebuffer_delim with '\n'
104978         as the delimiter.
104979         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
104981 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
104983         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
104984         * modules/openat (Files): Remove openat-die.c.
104985         (Depends-on): Add openat-die.
104986         * modules/openat-die: New module.
104988 2007-05-06  Bruno Haible  <bruno@clisp.org>
104990         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
104991         Update with info about Cygwin.
104992         * doc/functions/fprintf.texi: Update.
104993         * doc/functions/printf.texi: Update.
104994         * doc/functions/snprintf.texi: Update.
104995         * doc/functions/sprintf.texi: Update.
104996         * doc/functions/vfprintf.texi: Update.
104997         * doc/functions/vprintf.texi: Update.
104998         * doc/functions/vsnprintf.texi: Update.
104999         * doc/functions/vsprintf.texi: Update.
105000         Reported by Eric Blake.
105002 2007-05-06  Bruno Haible  <bruno@clisp.org>
105004         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
105005         padding ourselves for the floating-point directives.
105006         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
105007         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
105008         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
105009         gl_PRINTF_FLAG_ZERO and test its result. Invoke
105010         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
105011         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
105012         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
105013         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
105014         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
105015         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
105016         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
105017         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
105018         * tests/test-snprintf-posix.h (test_function): Also check the width
105019         and some flags in the %f directive.
105020         * tests/test-sprintf-posix.h (test_function): Likewise.
105021         * tests/test-vasnprintf-posix.c (test_function): Likewise.
105022         * tests/test-vasprintf-posix.c (test_function): Likewise.
105023         * doc/functions/fprintf.texi: Update.
105024         * doc/functions/printf.texi: Update.
105025         * doc/functions/snprintf.texi: Update.
105026         * doc/functions/sprintf.texi: Update.
105027         * doc/functions/vfprintf.texi: Update.
105028         * doc/functions/vprintf.texi: Update.
105029         * doc/functions/vsnprintf.texi: Update.
105030         * doc/functions/vsprintf.texi: Update.
105032 2007-05-06  Bruno Haible  <bruno@clisp.org>
105034         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
105035         pass the ' flag character to sprintf or snprintf.
105036         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
105037         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
105038         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
105039         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
105040         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
105041         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
105042         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
105043         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
105044         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
105045         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
105046         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
105047         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
105048         * tests/test-snprintf-posix.h (test_function): Also check the grouping
105049         flag.
105050         * tests/test-sprintf-posix.h (test_function): Likewise.
105051         * tests/test-vasnprintf-posix.c (test_function): Likewise.
105052         * tests/test-vasprintf-posix.c (test_function): Likewise.
105053         * doc/functions/fprintf.texi: Update.
105054         * doc/functions/printf.texi: Update.
105055         * doc/functions/snprintf.texi: Update.
105056         * doc/functions/sprintf.texi: Update.
105057         * doc/functions/vfprintf.texi: Update.
105058         * doc/functions/vprintf.texi: Update.
105059         * doc/functions/vsnprintf.texi: Update.
105060         * doc/functions/vsprintf.texi: Update.
105062 2007-05-01  Bruno Haible  <bruno@clisp.org>
105064         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
105066 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
105068         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
105069         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
105071 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
105073         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
105074         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
105075         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00021.html>.
105077 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
105079         * lib/argp-help.c (struct hol_entry): New member `ord'.
105080         (HOL_ENTRY_PTRCMP): Use ord for comparison
105081         (hol_sort): Initialize ord.
105083 2007-05-01  Bruno Haible  <bruno@clisp.org>
105085         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
105086         Reported by Eric Blake.
105087         * doc/gnulib.texi (Function Substitutes): Update.
105089 2007-05-01  Bruno Haible  <bruno@clisp.org>
105091         * doc/functions.texi: Remove file, now redundant through
105092         doc/functions/*.texi.
105094 2007-05-01  Bruno Haible  <bruno@clisp.org>
105096         * modules/argp (Depends-on): Add sleep.
105098 2007-05-01  Bruno Haible  <bruno@clisp.org>
105100         * modules/sleep-tests: New file.
105101         * tests/test-sleep.c: New file.
105103         * modules/sleep: New file.
105104         * lib/sleep.c: New file.
105105         * m4/sleep.m4: New file.
105106         * lib/unistd_.h (sleep): New declaration.
105107         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
105108         HAVE_SLEEP.
105109         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
105110         * doc/functions/sleep.texi: Document the sleep module.
105112 2007-05-01  Bruno Haible  <bruno@clisp.org>
105114         * lib/sigprocmask.h: Remove file.
105115         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
105116         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
105117         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
105118         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
105119         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
105120         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
105121         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
105122         HAVE_SIGSET_T as a shell variable.
105123         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
105124         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
105125         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
105126         (Depends-on): Add signal. Remove verify.
105127         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
105128         (Include): Mention <signal.h> instead of sigprocmask.h.
105129         * NEWS: Mention the change.
105130         * lib/fatal-signal.c: Don't include sigprocmask.h.
105132 2007-05-01  Bruno Haible  <bruno@clisp.org>
105134         * modules/signal: New file.
105135         * lib/signal_.h: New file.
105136         * m4/signal_h.m4: New file.
105138 2007-05-01  Bruno Haible  <bruno@clisp.org>
105140         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
105141         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
105142         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
105143         HAVE_WCTYPE_CTMP_BUG into wctype.h.
105145 2007-05-01  Bruno Haible  <bruno@clisp.org>
105147         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
105148         configure time.
105149         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
105150         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
105151         * modules/sys_stat (Makefile.am): Substitute their values into
105152         sys/stat.h.
105154 2007-05-01  Bruno Haible  <bruno@clisp.org>
105156         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
105157         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
105158         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
105160 2007-05-01  Bruno Haible  <bruno@clisp.org>
105162         * doc/header/assert.texi: Undo last change: don't mention the gnulib
105163         'assert' module here.
105165 2007-05-01  Bruno Haible  <bruno@clisp.org>
105167         * doc/functions/*.texi: New files.
105168         * doc/functions/google-ranking.txt: New file.
105169         * doc/gnulib.texi (Function Substitutes): New chapter.
105170         (ctime, inet_ntoa): Remove sections.
105171         * doc/ctime.texi: Remove file.
105172         * doc/inet_ntoa.texi: Remove file.
105173         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
105174         dependencies.
105175         (%.info): New rule, specifying a --reference-limit.
105177 2007-05-01  Bruno Haible  <bruno@clisp.org>
105179         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
105181 2007-05-01  Bruno Haible  <bruno@clisp.org>
105183         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
105184         the portability of 'mkdir' to mingw systems.
105186 2007-05-01  Bruno Haible  <bruno@clisp.org>
105188         * doc/headers/google-ranking.txt: New file.
105190 2007-04-30  Eric Blake  <ebb9@byu.net>
105192         Prefer fseeko to fseek.
105193         * modules/getpass (Depends-on): Add fseeko.
105194         * lib/getpass.c (getpass): Use fseeko, not fseek.
105196 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
105198         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
105199         assumes the sorting is stable, while most qsort implementations
105200         are not.  Use argument addresses to ensure they never compare as
105201         equal.
105203         * tests/test-argp-2.sh (usage-indent test): Fix output
105204         (func_compare): Restore diff options
105205         * tests/test-argp.c: Restore #include "progname.h"
105207 2007-04-29  Bruno Haible  <bruno@clisp.org>
105209         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
105210         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
105211         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
105212         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
105213         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
105214         (configure.ac): Define CHECK_SNPRINTF_POSIX.
105215         (TESTS, check_PROGRAMS): Add test-snprintf.
105216         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
105217         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
105218         (TESTS, check_PROGRAMS): Add test-vsnprintf.
105219         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
105220         assertions that fail on HP-UX, OSF/1, or IRIX.
105221         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
105223 2007-04-29  Bruno Haible  <bruno@clisp.org>
105225         * MODULES.html.sh (posix_functions): Remove 'contents'.
105227 2007-04-29  Karl Berry  <karl@gnu.org>
105229         * config/srclist.txt (gendocs_template_min): new entry.
105231 2007-04-29  Bruno Haible  <bruno@clisp.org>
105233         Work around fpurge bug on BSD systems.
105234         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
105235         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
105236         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
105237         fpurge to rpl_fpurge if the system already has this function.
105238         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
105239         the case where the system already has this function. Correct invariants
105240         on BSD systems.
105241         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
105242         BSD systems.
105244 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
105246         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
105247         proposed by Sven Verdoolaege.
105249         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
105250         options.
105251         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
105252         (usage and help tests): Update
105254 2007-04-29  Bruno Haible  <bruno@clisp.org>
105256         * tests/test-fflush.c (main): Use a file of size 17, not 10.
105257         Print more information in case of failure. Disable a test on BeOS.
105259 2007-04-29  Bruno Haible  <bruno@clisp.org>
105261         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
105262         This helps debugging on systems on which no gdb is available.
105264 2007-04-29  Bruno Haible  <bruno@clisp.org>
105266         * lib/freading.h: Improve comments.
105267         * lib/fwriting.h: Likewise.
105268         * tests/test-freading.c (main): Don't check freading immediately after
105269         repositioning. Needed for glibc.
105271 2007-04-29  Bruno Haible  <bruno@clisp.org>
105273         * lib/freading.c (freading): Trivial simplification.
105275 2007-04-28  Bruno Haible  <bruno@clisp.org>
105277         * tests/test-fwriting.c (main): Also test the interaction between
105278         fflush and fwriting.
105279         * modules/fwriting-tests (Depends-on): Add fflush.
105281         * tests/test-freading.c (main): Also test the interaction between
105282         fflush and freading.
105283         * modules/freading-tests (Depends-on): Add fflush.
105285 2007-04-28  Bruno Haible  <bruno@clisp.org>
105287         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
105288         fseeko and ftello.
105289         Suggested by Eric Blake.
105291 2007-04-28  Jim Meyering  <jim@meyering.net>
105293         Avoid false-negative in gl_STDINT_H's C99 conformance test.
105294         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
105295         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
105297 2007-04-27  Eric Blake  <ebb9@byu.net>
105299         * doc/headers/assert.texi (assert.h): Document assert module use.
105301 2007-04-27  Bruno Haible  <bruno@clisp.org>
105303         * doc/headers/*.texi: New files.
105304         * doc/gnulib.texi (Header File Substitutes): New chapter.
105305         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
105306         dependencies.
105307         (standards.info ,standards.html, standards.dvi): Update dependencies.
105308         (mostlyclean, clean): New targets.
105310 2007-04-27  Bruno Haible  <bruno@clisp.org>
105312         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
105313         * modules/sysexits (Files, Makefile.am): Update.
105315         * lib/sys_socket_.h: Renamed from lib/socket_.h.
105316         * modules/sys_socket (Files, Makefile.am): Update.
105318         * lib/sys_stat_.h: Renamed from lib/stat_.h.
105319         * modules/sys_stat (Files, Makefile.am): Update.
105321 2007-04-27  Eric Blake  <ebb9@byu.net>
105323         * lib/freading.h: Improve comments.
105324         * lib/fwriting.h: Likewise.
105325         * lib/fflush.c: Likewise.
105327         Fix closein for mingw.
105328         * modules/closein-tests: Add tests for closein.
105329         * tests/test-closein.c: New file.
105330         * tests/test-closein.sh: Likewise.
105331         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
105332         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
105334 2007-04-27  Bruno Haible  <bruno@clisp.org>
105336         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
105337         version is < 6.
105338         * lib/math_.h [__DECC]: Likewise.
105339         * lib/stdio_.h [__DECC]: Likewise.
105340         * lib/stdlib_.h [__DECC]: Likewise.
105341         * lib/string_.h [__DECC]: Likewise.
105342         * lib/time_.h [__DECC]: Likewise.
105343         * lib/wchar_.h [__DECC]: Likewise.
105344         * lib/wctype_.h [__DECC]: Likewise.
105346 2007-04-27  Bruno Haible  <bruno@clisp.org>
105348         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
105350 2007-04-27  Bruno Haible  <bruno@clisp.org>
105352         * lib/fflush.c: Add comments.
105353         * modules/fpurge-tests (Depends-on): Add fflush.
105354         * modules/freadable-tests (Depends-on): Likewise.
105355         * modules/fwritable-tests (Depends-on): Likewise.
105357 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
105359         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
105360         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
105361         Report by Bruno Haible <bruno@clisp.org>.
105363 2007-04-26  Eric Blake  <ebb9@byu.net>
105365         Fix fflush on mingw.
105366         * modules/fflush (Depends-on): Add freading.
105367         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
105368         but unread data.
105370 2007-04-26  Eric Blake  <ebb9@byu.net>
105371         and Bruno Haible  <bruno@clisp.org>
105373         Implement freading and fwriting.
105374         * lib/freading.c: New file.
105375         * lib/freading.h: Likewise.
105376         * m4/freading.m4: Likewise.
105377         * modules/freading: Likewise.
105378         * modules/freading-tests: Likewise.
105379         * tests/test-freading.c: Likewise.
105380         * lib/fwriting.c: New file.
105381         * lib/fwriting.h: Likewise.
105382         * m4/fwriting.m4: Likewise.
105383         * modules/fwriting: Likewise.
105384         * modules/fwriting-tests: Likewise.
105385         * tests/test-fwriting.c: Likewise.
105386         * MODULES.html.sh (File stream based Input/Output): Mention them.
105388 2007-04-26  Bruno Haible  <bruno@clisp.org>
105390         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
105391         'long' when we assume it.
105392         Suggested by Eric Blake.
105394 2007-04-26  Bruno Haible  <bruno@clisp.org>
105396         Ensure fseeko, ftello are declared on glibc systems.
105397         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
105398         * modules/fseeko (configure.ac-early): Likewise.
105399         * modules/ftello (configure.ac-early): Likewise.
105400         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
105401         AC_FUNC_FSEEKO for this.
105402         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
105403         (gl_CHECK_FSEEKO): Remove macro.
105405 2007-04-26  Bruno Haible  <bruno@clisp.org>
105407         * tests/test-fflush.c (main): Also check the ftell result after
105408         fflush and fseek/fseeko.
105409         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
105410         file descriptor position cache in the stream.
105411         * lib/fseeko.c (rpl_fseeko): Likewise.
105413 2007-04-26  Bruno Haible  <bruno@clisp.org>
105415         * modules/fflush-tests (Depends-on): Add fseeko.
105417 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
105418             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105420         * lib/argz_.h: ensure error_t definition is obtained in same
105421         mechanism system argz.h would have.
105422         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
105423         argz facilities are known bad.  Err on the side of caution if
105424         cross-compiling.
105426 2007-04-25  Eric Blake  <ebb9@byu.net>
105428         * lib/fpurge.c (includes): Use stdlib.h for free.
105429         * tests/test-fflush.c (main): Also test fflush-fseeko.
105431 2007-04-25  Bruno Haible  <bruno@clisp.org>
105433         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
105434         * lib/fseeko.c: New file.
105435         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
105436         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
105437         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
105438         gl_FUNC_FSEEKO.
105439         (gl_FUNC_FSEEKO): Invoke it.
105440         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
105441         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
105442         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
105444 2007-04-25  Bruno Haible  <bruno@clisp.org>
105446         * modules/fflush (Depends-on): Add ftello.
105448 2007-04-25  Bruno Haible  <bruno@clisp.org>
105450         * modules/ftello-tests: New file.
105451         * tests/test-ftello.c: New file.
105453         * modules/ftello: New file.
105454         * m4/ftello.m4: New file.
105455         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
105456         HAVE_FTELLO.
105457         * lib/stdio_.h (ftello): New declaration.
105458         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
105459         HAVE_FTELLO.
105461 2007-04-25  Bruno Haible  <bruno@clisp.org>
105463         * modules/fseeko-tests: New file.
105464         * tests/test-fseeko.c: New file.
105466         * modules/fseeko: New file.
105467         * m4/fseeko.m4: New file.
105468         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
105469         HAVE_FSEEKO.
105470         * lib/stdio_.h (fseeko): New declaration.
105471         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
105472         HAVE_FSEEKO.
105474 2007-04-25  Bruno Haible  <bruno@clisp.org>
105476         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
105478 2007-04-25  Bruno Haible  <bruno@clisp.org>
105480         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
105481         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
105482         * tests/test-unistd.c: Likewise.
105483         * tests/test-fcntl.c: Likewise.
105485 2007-04-23  Eric Blake  <ebb9@byu.net>
105487         * lib/fflush.c: Fix missing include.
105488         Reported by Bruno Haible.
105490 2007-04-23  Bruno Haible  <bruno@clisp.org>
105492         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
105493         Reported by Eric Blake.
105495 2007-04-23  Bruno Haible  <bruno@clisp.org>
105497         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
105499 2007-04-23  Bruno Haible  <bruno@clisp.org>
105501         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
105503 2007-04-23  Bruno Haible  <bruno@clisp.org>
105505         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
105506         Needed on HP-UX 11.
105508 2007-04-16  Eric Blake  <ebb9@byu.net>
105510         Make fflush rely on fpurge.
105511         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
105512         open coding all variants.
105513         * modules/fflush (Depends-on): Add fpurge and unistd.
105514         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
105515         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
105517         Fix --with-tests compilation on cygwin.
105518         * modules/argmatch-tests (Makefile.am): List gnulib library first
105519         in LDADD.
105520         * modules/argp-tests (Makefile.am): Likewise.
105521         * modules/array-list-tests (Makefile.am): Likewise.
105522         * modules/array-oset-tests (Makefile.am): Likewise.
105523         * modules/avltree-list-tests (Makefile.am): Likewise.
105524         * modules/avltree-oset-tests (Makefile.am): Likewise.
105525         * modules/avltreehash-list-tests (Makefile.am): Likewise.
105526         * modules/carray-list-tests (Makefile.am): Likewise.
105527         * modules/dirname-tests (Makefile.am): Likewise.
105528         * modules/frexp-tests (Makefile.am): Likewise.
105529         * modules/isnanl-tests (Makefile.am): Likewise.
105530         * modules/linked-list-tests (Makefile.am): Likewise.
105531         * modules/linkedhash-list-tests (Makefile.am): Likewise.
105532         * modules/lock-tests (Makefile.am): Likewise.
105533         * modules/rbtree-list-tests (Makefile.am): Likewise.
105534         * modules/rbtree-oset-tests (Makefile.am): Likewise.
105535         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
105536         * modules/tls-tests (Makefile.am): Likewise.
105537         * modules/tsearch-tests (Makefile.am): Likewise.
105538         * modules/xvasprintf-tests (Makefile.am): Likewise.
105540         Fix fpurge for cygwin.
105541         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
105542         value.
105543         * modules/fpurge-tests (Depends-on): Clean up trash.
105545 2007-04-16  Simon Josefsson  <simon@josefsson.org>
105547         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
105549         * m4/autobuild.m4: Re-indent.
105551 2007-04-13  Bruno Haible  <bruno@clisp.org>
105553         * modules/fpurge-tests: New file.
105554         * tests/test-fpurge.c: New file.
105556         * modules/fpurge: New file.
105557         * lib/fpurge.h: New file.
105558         * lib/fpurge.c: New file.
105559         * m4/fpurge.m4: New file.
105561 2007-04-13  Bruno Haible  <bruno@clisp.org>
105563         * modules/fbufmode-tests: New file.
105564         * tests/test-fbufmode.c: New file.
105566         * modules/fbufmode: New file.
105567         * lib/fbufmode.h: New file.
105568         * lib/fbufmode.c: New file.
105569         * m4/fbufmode.m4: New file.
105571 2007-04-13  Bruno Haible  <bruno@clisp.org>
105573         * modules/fwritable-tests: New file.
105574         * tests/test-fwritable.c: New file.
105576         * modules/fwritable: New file.
105577         * lib/fwritable.h: New file.
105578         * lib/fwritable.c: New file.
105579         * m4/fwritable.m4: New file.
105581 2007-04-13  Bruno Haible  <bruno@clisp.org>
105583         * modules/freadable-tests: New file.
105584         * tests/test-freadable.c: New file.
105586         * modules/freadable: New file.
105587         * lib/freadable.h: New file.
105588         * lib/freadable.c: New file.
105589         * m4/freadable.m4: New file.
105591 2007-04-13  Bruno Haible  <bruno@clisp.org>
105593         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
105594         MOSTLYCLEANFILES.
105596 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
105598         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
105599         gzip bootstrap.conf to avoid dragging in i18n machinery.
105600         (gnulib_tool_option): Use it.
105602 2007-04-13  Bruno Haible  <bruno@clisp.org>
105604         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
105605         %F directives.
105606         * tests/test-vasprintf-posix.c (test_function): Likewise.
105607         * tests/test-snprintf-posix.h (test_function): Likewise.
105608         * tests/test-sprintf-posix.h (test_function): Likewise.
105609         * tests/test-fprintf-posix.h (test_function): Likewise.
105610         * tests/test-printf-posix.h (test_function): Likewise.
105611         * tests/test-fprintf-posix.out: Likewise.
105613 2007-04-13  Bruno Haible  <bruno@clisp.org>
105615         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
105616         * modules/tls-tests (configure.ac): Likewise.
105617         Reported by Arto C. Nirkko <anirkko@insel.ch>.
105619 2007-04-13  Bruno Haible  <bruno@clisp.org>
105621         * lib/tls.c (glthread_tls_get): Fix return type.
105622         Patch by Arto C. Nirkko <anirkko@insel.ch>.
105624 2007-04-12  Eric Blake  <ebb9@byu.net>
105626         * modules/gettime (Depends-on): Remove gettime.
105627         Reported by Dmitry V. Levin.
105629 2007-04-12  Bruno Haible  <bruno@clisp.org>
105631         * modules/fflush (Include): Mention <stdio.h>.
105632         * modules/strtoimax (Include): Mention <inttypes.h>.
105633         * modules/strtoumax (Include): Likewise.
105635 2007-04-12  Eric Blake  <ebb9@byu.net>
105637         * .cvsignore: New file.
105638         * .gitignore: Likewise.
105640 2007-04-12  Bruno Haible  <bruno@clisp.org>
105642         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
105643         not before, since $(LDADD) often contains libgnu.a.
105644         * modules/striconv-tests (test_striconv_LDADD): Likewise.
105645         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
105646         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
105647         Needed on Cygwin.
105649 2007-04-12  Eric Blake  <ebb9@byu.net>
105651         Work around glibc's failure to flush stdin on fclose.
105652         * lib/closein.c (close_stdin): Flush stdin before closing.
105654         Work around glibc's failure to reset seekable stdin on exit.
105655         * modules/closein: New module.
105656         * lib/closein.c: New file.
105657         * lib/closein.h: Likewise.
105658         * m4/closein.m4: Likewise.
105659         * MODULES.html.sh (File stream based Input/Output): Document it.
105661 2007-04-12  Simon Josefsson  <simon@josefsson.org>
105663         * gnulib-tool: Rename generated 'autobuild' script to
105664         'do-autobuild' in --create-megatestdir output.
105666         * doc/gnulib.texi (Build robot for gnulib): Fix.
105668 2007-04-12  Simon Josefsson  <simon@josefsson.org>
105670         * modules/sysexits (Depends-on): Add absolute-header.
105672 2007-04-12  Eric Blake  <ebb9@byu.net>
105674         No need to preserve errno on success.
105675         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
105676         Reported by Bruno Haible.
105678 2007-04-12  Simon Josefsson  <simon@josefsson.org>
105680         * MODULES.html.sh (Support for maintaining and releasing
105681         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
105683 2007-04-12  Simon Josefsson  <simon@josefsson.org>
105685         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
105687 2007-04-12  Simon Josefsson  <simon@josefsson.org>
105689         * modules/autobuild: New module.
105691         * m4/autobuild.m4: New file.
105693 2007-04-11  Bruno Haible  <bruno@clisp.org>
105695         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
105696         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
105697         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
105698         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
105699         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
105700         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
105701         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
105702         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
105703         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
105704         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
105705         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
105706         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
105707         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
105708         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
105709         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
105710         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
105711         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
105712         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
105713         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
105714         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
105715         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
105716         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
105717         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
105718         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
105719         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
105720         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
105721         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
105722         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
105723         Reported by Eric Blake.
105725 2007-04-11  Bruno Haible  <bruno@clisp.org>
105727         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
105729 2007-04-10  Bruno Haible  <bruno@clisp.org>
105731         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
105732         for NaN and Infinity. Needed on FreeBSD 6.1.
105733         * tests/test-vasnprintf-posix.c (test_function): Undo last change
105734         regarding results for "%010a" of Infinity and NaN.
105735         * tests/test-vasprintf-posix.c (test_function): Likewise.
105736         * tests/test-snprintf-posix.h (test_function): Likewise.
105737         * tests/test-sprintf-posix.h (test_function): Likewise.
105738         * tests/test-fprintf-posix.h (test_function): Likewise.
105739         * tests/test-printf-posix.h (test_function): Likewise.
105740         * tests/test-fprintf-posix.out: Likewise.
105742 2007-04-10  Bruno Haible  <bruno@clisp.org>
105744         * modules/locale-tests: New file.
105745         * tests/test-locale.c: New file.
105747         * modules/locale: New file.
105748         * lib/locale_.h: New file.
105749         * m4/locale_h.m4: New file.
105751 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
105752             Bruno Haible  <bruno@clisp.org>
105754         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
105755         be determined, test for availability of the copysignf, copysign,
105756         copysignl functions.
105757         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
105758         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
105759         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
105761 2007-04-09  Eric Blake  <ebb9@byu.net>
105763         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
105764         * modules/stdio (Makefile.am): Support fflush.
105765         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
105766         * modules/fflush: New file.
105767         * lib/fflush.c: Likewise.
105768         * m4/fflush.m4: Likewise.
105769         * modules/fflush-tests: New test.
105770         * tests/test-fflush.c: Likewise.
105771         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
105773 2007-04-06  Bruno Haible  <bruno@clisp.org>
105775         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
105776         (VASNPRINTF): Use signbit for faster determination whether to print a
105777         minus sign.
105778         * modules/vasnprintf (Files): Remove lib/float+.h.
105779         * modules/fprintf-posix (Depends-on): Add signbit.
105780         * modules/snprintf-posix (Depends-on): Likewise.
105781         * modules/sprintf-posix (Depends-on): Likewise.
105782         * modules/vasnprintf-posix (Depends-on): Likewise.
105783         * modules/vasprintf-posix (Depends-on): Likewise.
105784         * modules/vfprintf-posix (Depends-on): Likewise.
105785         * modules/vsnprintf-posix (Depends-on): Likewise.
105786         * modules/vsprintf-posix (Depends-on): Likewise.
105788 2007-04-06  Bruno Haible  <bruno@clisp.org>
105790         * tests/test-frexp.c (main): Test also the sign bit of zero results.
105791         * tests/test-frexpl.c (main): Likewise.
105792         * tests/test-ldexpl.c (main): Likewise.
105793         * modules/frexp-tests (Depends-on): Add signbit.
105794         * modules/frexpl-tests (Depdends-on): Likewise.
105795         * modules/ldexpl-tests (Depdends-on): Likewise.
105797 2007-04-06  Bruno Haible  <bruno@clisp.org>
105799         * modules/signbit-tests: New file.
105800         * tests/test-signbit.c: New file.
105802         * modules/signbit: New file.
105803         * lib/signbitf.c: New file.
105804         * lib/signbitd.c: New file.
105805         * lib/signbitl.c: New file.
105806         * m4/signbit.m4: New file.
105807         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
105808         (signbit): New macro.
105809         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
105810         REPLACE_SIGNBIT.
105811         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
105812         REPLACE_FREXPL into math.h.
105814 2007-04-06  Bruno Haible  <bruno@clisp.org>
105816         * modules/isnanf-nolibm-tests: New file.
105817         * tests/test-isnanf.c: New file.
105819         * modules/isnanf-nolibm: New file.
105820         * lib/isnanf.h: New file.
105821         * lib/isnanf.c: New file.
105822         * lib/isnan.c: Consider the USE_FLOAT macro.
105823         * m4/isnanf.m4: New file.
105825 2007-04-06  Bruno Haible  <bruno@clisp.org>
105827         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
105828         (Link): New section.
105830         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
105832 2007-04-06  Bruno Haible  <bruno@clisp.org>
105834         Assume the 'long double' type.
105835         * m4/longdouble.m4: Remove file.
105836         * config/srclist.txt: Don't mention longdouble.m4.
105837         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
105838         * lib/float+.h: Likewise.
105839         * lib/frexp.c: Likewise.
105840         * lib/printf-args.h: Likewise.
105841         * lib/printf-args.c: Likewise.
105842         * lib/printf-frexp.c: Likewise.
105843         * lib/printf-parse.c: Likewise.
105844         * lib/vasnprintf.c: Likewise.
105845         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
105846         * m4/intl.m4: Likewise.
105847         * m4/isnanl.m4: Likewise.
105848         * m4/printf.m4: Likewise.
105849         * m4/printf-frexpl.m4: Likewise.
105850         * m4/vasnprintf.m4: Likewise.
105851         * modules/allocsa (Files): Remove m4/longdouble.m4.
105852         * modules/gettext (Files): Likewise.
105853         * modules/relocatable-prog-wrapper (Files): Likewise.
105854         * modules/vasnprintf (Files): Likewise.
105855         * modules/isnanl (Files): Likewise.
105856         (Include): Simplify.
105857         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
105858         (Include): Simplify.
105859         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
105860         (Include): Simplify.
105861         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
105862         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
105863         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
105864         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
105865         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
105866         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
105867         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
105868         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
105869         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
105870         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
105871         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
105872         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
105873         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
105874         * tests/test-isnanl.c: Likewise.
105875         * tests/test-snprintf-posix.h: Likewise.
105876         * tests/test-sprintf-posix.h: Likewise.
105877         * tests/test-vasnprintf-posix.c: Likewise.
105878         * tests/test-vasnprintf-posix2.c: Likewise.
105879         * tests/test-vasprintf-posix.c: Likewise.
105881 2007-04-06  Bruno Haible  <bruno@clisp.org>
105883         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
105884         * lib/math_.h [__DECC]: Include the overridden include file through
105885         #include_next, outside the double-inclusion guard.
105886         * lib/stdio_.h [__DECC]: Likewise.
105887         * lib/stdlib_.h [__DECC]: Likewise.
105888         * lib/string_.h [__DECC]: Likewise.
105889         * lib/time_.h [__DECC]: Likewise.
105890         * lib/wchar_.h [__DECC]: Likewise.
105891         * lib/wctype_.h [__DECC]: Likewise.
105892         * lib/inttypes_.h [__DECC]: Likewise.
105893         Reported by Albert Chin <china@thewrittenword.com> in
105894         <http://lists.gnu.org/r/bug-gnulib/2007-04/msg00088.html>.
105896 2007-04-04  Eric Blake  <ebb9@byu.net>
105898         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
105899         1.5.x.
105901 2007-04-04  Bruno Haible  <bruno@clisp.org>
105903         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
105904         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
105906 2007-04-04  Bruno Haible  <bruno@clisp.org>
105908         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
105909         results for "%010a" of Infinity and NaN.
105910         * tests/test-vasprintf-posix.c (test_function): Likewise.
105911         * tests/test-snprintf-posix.h (test_function): Likewise.
105912         * tests/test-sprintf-posix.h (test_function): Likewise.
105913         * tests/test-fprintf-posix.h (test_function): Remove these tests.
105914         * tests/test-printf-posix.h (test_function): Likewise.
105915         * tests/test-fprintf-posix.out: Update.
105916         Needed for FreeBSD 6.1.
105918 2007-04-04  Bruno Haible  <bruno@clisp.org>
105920         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
105921         directly used by the gnulib modules nor by gnulib-tool.
105923 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
105925         * DEPENDENCIES: Give overall description of version dependency
105926         desirability.  Use more-typical names for apps.
105927         Add shell, coreutils, diffutils, grep, tar, gzip.
105929 2007-04-04  Simon Josefsson  <simon@josefsson.org>
105931         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
105933 2007-04-04  Karl Berry  <karl@gnu.org>
105935         * MODULES.html.sh (func_module): missing '.
105937 2007-04-03  Bruno Haible  <bruno@clisp.org>
105939         * modules/argmatch-tests (Makefile.am): New variable
105940         test_argmatch_LDADD.
105941         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
105942         * modules/array-list-tests (Makefile.am): New variable
105943         test_array_list_LDADD.
105944         * modules/array-oset-tests (Makefile.am): New variable
105945         test_array_oset_LDADD.
105946         * modules/avltree-list-tests (Makefile.am): New variable
105947         test_avltree_list_LDADD.
105948         * modules/avltree-oset-tests (Makefile.am): New variable
105949         test_avltree_oset_LDADD.
105950         * modules/avltreehash-list-tests (Makefile.am): New variable
105951         test_avltreehash_list_LDADD.
105952         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
105953         test_canonicalize_lgpl_LDADD.
105954         * modules/carray-list-tests (Makefile.am): New variable
105955         test_carray_list_LDADD.
105956         * modules/dirname-tests (Makefile.am): New variable
105957         test_dirname_LDADD.
105958         * modules/linked-list-tests (Makefile.am): New variable
105959         test_linked_list_LDADD.
105960         * modules/linkedhash-list-tests (Makefile.am): New variable
105961         test_linkedhash_list_LDADD.
105962         * modules/rbtree-list-tests (Makefile.am): New variable
105963         test_rbtree_list_LDADD.
105964         * modules/rbtree-oset-tests (Makefile.am): New variable
105965         test_rbtree_oset_LDADD.
105966         * modules/rbtreehash-list-tests (Makefile.am): New variable
105967         test_rbtreehash_list_LDADD.
105968         * modules/xvasprintf-tests (Makefile.am): New variable
105969         test_xvasprintf_LDADD.
105970         Reported by Eric Blake.
105972 2007-04-03  Eric Blake  <ebb9@byu.net>
105974         * DEPENDENCIES: Weaken m4 requirements.
105976 2007-04-03  Bruno Haible  <bruno@clisp.org>
105978         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
105979         * modules/isnanl-tests (configure.ac): Likewise.
105981 2007-04-03  Ben Pfaff  <blp@gnu.org>
105983         * modules/iconv_open: Add $(srcdir)/ to source directory
105984         references in Makefile fragments that call gperf, to fix VPATH
105985         builds.
105987 2007-04-03  Bruno Haible  <bruno@clisp.org>
105989         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
105990         * lib/ldexpl.c: Undo last change.
105992 2007-04-03  Bruno Haible  <bruno@clisp.org>
105994         * modules/printf-frexpl (Depends-on): Undo last change.
105995         (Files): Add m4/ldexpl.m4.
105997 2007-04-03  Bruno Haible  <bruno@clisp.org>
105999         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
106000         * modules/isnanl (Link): New section.
106002         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
106003         * modules/frexp (Link): New section.
106005         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
106006         * modules/frexpl (Link): New section.
106008         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
106009         * modules/ldexpl (Link): New section.
106011 2007-04-03  Bruno Haible  <bruno@clisp.org>
106013         * modules/TEMPLATE-EXTENDED: New file.
106014         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
106016 2007-04-03  Bruno Haible  <bruno@clisp.org>
106018         * DEPENDENCIES: New file.
106019         Suggested by Simon Josefsson.
106021 2007-04-03  Bruno Haible  <bruno@clisp.org>
106023         * doc/gnulib.texi: Escape @.
106025 2007-04-03  James Youngman  <jay@gnu.org>
106026         and Paul Eggert  <eggert@cs.ucla.edu>
106028         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
106029         birthtime on all systems that have birthtime, not just those which
106030         use st_birthtimensec rather than st_birthtim.  Putting zero in
106031         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
106032         that the birth time is not available for files on an NFS mount.
106034 2007-04-03  Simon Josefsson  <simon@josefsson.org>
106036         * modules/memxor: Move back from crypto/, suggested by Bruno.
106037         * modules/crypto/hmac-sha1: Fix memxor dependency.
106039         * modules/crypto/gc: Moved from ../.
106041 2007-04-02  Eric Blake  <ebb9@byu.net>
106043         * lib/ldexpl.c (includes): Avoid libm.
106045         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
106047 2007-04-02  Bruno Haible  <bruno@clisp.org>
106049         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
106050         on IRIX.
106052 2007-04-02  Bruno Haible  <bruno@clisp.org>
106054         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
106055         x86 or x86_64 platforms running MacOS X.
106056         Reported by Ryan Schmidt <@ryandesign.com>.
106058 2007-04-02  Bruno Haible  <bruno@clisp.org>
106060         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
106061         i386.
106063 2007-04-01  Simon Josefsson  <simon@josefsson.org>
106065         * modules/crypto/arcfour: Moved from ../.
106066         * modules/crypto/arcfour-tests: Moved from ../.
106067         * modules/crypto/arctwo: Moved from ../.
106068         * modules/crypto/arctwo-tests: Moved from ../.
106069         * modules/crypto/des: Moved from ../.
106070         * modules/crypto/des-tests: Moved from ../.
106071         * modules/crypto/gc-arcfour: Moved from ../.
106072         * modules/crypto/gc-arcfour-tests: Moved from ../.
106073         * modules/crypto/gc-arctwo: Moved from ../.
106074         * modules/crypto/gc-arctwo-tests: Moved from ../.
106075         * modules/crypto/gc-des: Moved from ../.
106076         * modules/crypto/gc-des-tests: Moved from ../.
106077         * modules/crypto/gc-hmac-md5: Moved from ../.
106078         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
106079         * modules/crypto/gc-hmac-sha1: Moved from ../.
106080         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
106081         * modules/crypto/gc-md2: Moved from ../.
106082         * modules/crypto/gc-md2-tests: Moved from ../.
106083         * modules/crypto/gc-md4: Moved from ../.
106084         * modules/crypto/gc-md4-tests: Moved from ../.
106085         * modules/crypto/gc-md5: Moved from ../.
106086         * modules/crypto/gc-md5-tests: Moved from ../.
106087         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
106088         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
106089         * modules/crypto/gc-random: Moved from ../.
106090         * modules/crypto/gc-rijndael: Moved from ../.
106091         * modules/crypto/gc-rijndael-tests: Moved from ../.
106092         * modules/crypto/gc-sha1: Moved from ../.
106093         * modules/crypto/gc-sha1-tests: Moved from ../.
106094         * modules/crypto/gc-tests: Moved from ../.
106095         * modules/crypto/hmac-md5: Moved from ../.
106096         * modules/crypto/hmac-md5-tests: Moved from ../.
106097         * modules/crypto/hmac-sha1: Moved from ../.
106098         * modules/crypto/hmac-sha1-tests: Moved from ../.
106099         * modules/crypto/md2: Moved from ../.
106100         * modules/crypto/md2-tests: Moved from ../.
106101         * modules/crypto/md4: Moved from ../.
106102         * modules/crypto/md4-tests: Moved from ../.
106103         * modules/crypto/md5: Moved from ../.
106104         * modules/crypto/md5-tests: Moved from ../.
106105         * modules/crypto/memxor: Moved from ../.
106106         * modules/crypto/rijndael: Moved from ../.
106107         * modules/crypto/rijndael-tests: Moved from ../.
106108         * modules/crypto/sha1: Moved from ../.
106110 2007-03-30  James Youngman  <jay@gnu.org>
106112         * tests/test-stat-time.c (prepare_test): use chmod() rather than
106113         rename() to change the ctime of a file (because ctime is unaffected
106114         by rename on jfs2 on AIX 5.1).
106115         (main): Start by doing cleanup, in case a previous run failed leaving
106116         test files behind.
106118 2007-03-31  Bruno Haible  <bruno@clisp.org>
106120         Support old proprietary implementations of iconv.
106121         * modules/iconv_open: New file.
106122         * lib/iconv_.h: New file.
106123         * m4/iconv_h.m4: New file.
106124         * lib/iconv_open.c: New file.
106125         * lib/iconv_open-aix.gperf: New file.
106126         * lib/iconv_open-hpux.gperf: New file.
106127         * lib/iconv_open-irix.gperf: New file.
106128         * lib/iconv_open-osf.gperf: New file.
106129         * m4/iconv_open.m4: New file.
106130         * modules/linebreak (Depends-on): Add iconv_open.
106131         * modules/striconv (Depends-on): Likewise.
106132         * modules/striconveh (Depends-on): Likewise.
106133         * modules/unicodeio (Depends-on): Likewise.
106134         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
106135         (iconv_t)(-1).
106136         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
106137         conversion if cd is (iconv_t)(-1).
106138         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
106139         is not possible.
106141 2007-03-31  Bruno Haible  <bruno@clisp.org>
106143         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
106144         work on Solaris either. Protect also second use of "autodetect_jp".
106146 2007-03-31  Bruno Haible  <bruno@clisp.org>
106148         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
106149         the function is not present.
106151 2007-03-31  Bruno Haible  <bruno@clisp.org>
106153         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
106154         the function is not present.
106156 2007-03-31  Bruno Haible  <bruno@clisp.org>
106158         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
106159         a bug in HP-UX iconv_open().
106161 2007-03-31  Bruno Haible  <bruno@clisp.org>
106163         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
106164         (Mathematics <math.h>): New section, add fpieee.
106165         (Input/output <stdio.h>): Add fseterr.
106166         (Mathematics <math.h>): New section, add printf-frexp.
106167         (Container data structures): Add sublist.
106168         (Core language properties): Add fpucw, inline.
106169         (Functions for greatest-width integer types <inttypes.h>): Add
106170         imaxabs, imaxdiv, inttypes.
106171         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
106172         isnanl-nolibm, ldexp.
106173         (Mathematics <math.h>): New section, add printf-frexpl.
106174         (Support for systems lacking POSIX:2001): Add fprintf-posix,
106175         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
106176         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
106177         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
106178         (Unicode string functions): Add unistr/u*-mbtoucr.
106179         (Java): Add javacomp-script, javaexec-script.
106180         (C#): Add csharpcomp-script, csharpexec-script.
106181         (Support for building libraries and executables): Add havelib,
106182         relocatable-*.
106183         (Support for maintaining and releasing projects): Renamed from
106184         'Support for maintaining and release projects'. Add announce-gen.
106186 2007-03-31  Bruno Haible  <bruno@clisp.org>
106188         * README: Talk primarily about git.
106189         (git and CVS): Renamed from CVS.
106190         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
106191         gnulib is available through git.
106192         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
106194 2007-03-30  Bruno Haible  <bruno@clisp.org>
106196         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
106197         * lib/poll_.h: Likewise.
106198         * lib/stat_.h: Likewise.
106199         * lib/sys_time_.h: Likewise.
106200         * lib/sysexit_.h: Likewise.
106201         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
106202         * lib/stdbool_.h: Likewise.
106203         * lib/byteswap_.h: Add double-inclusion guard.
106205 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
106207         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
106209 2007-03-30  Karl Berry  <karl@gnu.org>
106211         * config/srclist-update: double space after USA in the license
106212         substitution, since that's how it's usually (?) written.
106214 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
106216         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
106217         reported by Bruno Haible.
106219 2007-03-29  Bruno Haible  <bruno@clisp.org>
106221         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
106222         a bug in AIX iconv().
106224 2007-03-29  Bruno Haible  <bruno@clisp.org>
106226         * modules/ldexpl-tests: New file.
106227         * tests/test-ldexpl.c: New file.
106229 2007-03-29  Bruno Haible  <bruno@clisp.org>
106231         * lib/ldexpl.c: Include fpucw.h.
106232         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
106233         multiplication.
106234         * modules/ldexpl (Depends-on): Add fpucw.
106236 2007-03-29  Bruno Haible  <bruno@clisp.org>
106238         * modules/ldexpl: New file.
106239         * m4/ldexpl.m4: New file.
106240         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
106241         set.
106242         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
106243         REPLACE_LDEXPL.
106244         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
106245         REPLACE_LDEXPL.
106246         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
106247         gl_FUNC_LDEXPL_WORKS.
106248         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
106249         * modules/mathl (Files): Remove lib/ldexpl.c.
106250         (Depends-on): Add ldexpl.
106252 2007-03-29  Bruno Haible  <bruno@clisp.org>
106254         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
106256 2007-03-29  Bruno Haible  <bruno@clisp.org>
106258         * tests/test-striconveh.c (main): Don't assume that a direct conversion
106259         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
106260         and possibly also HP-UX.
106261         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
106262         work on AIX, IRIX, HP-UX, OSF/1.
106263         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
106264         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
106265         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
106266         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
106267         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
106268         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
106270 2007-03-29  Bruno Haible  <bruno@clisp.org>
106272         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
106274 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
106276         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
106277         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
106279 2007-03-29  Eric Blake  <ebb9@byu.net>
106281         * lib/acl-internal.h: Remove redundant include.
106282         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
106283         Cygwin when a file is locked.
106285 2007-03-29  Bruno Haible  <bruno@clisp.org>
106287         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
106288         file.
106289         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
106291 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
106293         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
106294         try to remove a parent directory if the child couldn't be removed
106295         (except for the first rmdir, which could fail because the child
106296         doesn't exist).  Problem reported by Jeff Blaine in
106297         <http://lists.gnu.org/r/bug-tar/2007-03/msg00014.html>.
106299 2007-03-28  Bruno Haible  <bruno@clisp.org>
106301         * lib/striconveh.c (utf8conv_carefully): New function.
106302         (mem_cd_iconveh_internal): Invoke it.
106304 2007-03-28  Bruno Haible  <bruno@clisp.org>
106306         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
106307         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
106308         input.
106309         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
106310         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
106311         unistr/u8-uctomb.
106313 2007-03-28  Bruno Haible  <bruno@clisp.org>
106315         * modules/unistr/u8-mbtoucr: New file.
106316         * lib/unistr/u8-mbtoucr.c: New file.
106317         * modules/unistr/u16-mbtoucr: New file.
106318         * lib/unistr/u16-mbtoucr.c: New file.
106319         * modules/unistr/u16-mbtoucr: New file.
106320         * lib/unistr/u16-mbtoucr.c: New file.
106321         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
106323 2007-03-27  Simon Josefsson  <simon@josefsson.org>
106324             Bruno Haible  <bruno@clisp.org>
106326         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
106327         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
106328         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
106330         * m4/stdio_h.m4: Add stubs for vasprintf too.
106332         * modules/stdio: Support vasprintf in sed command.
106334         * modules/vasprintf: Depend on stdio for prototypes.  Remove
106335         vasprintf.h.  Add stdio module indicator.
106337         * lib/stdio_.h: Declare asprintf and vasprintf, based on
106338         vasprintf.h.
106340         * lib/vasprintf.h: File removed.
106342         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
106343         * lib/vasprintf.c: Ditto.
106344         * lib/xvasprintf.c: Ditto.
106345         * tests/test-vasprintf-posix.c: Ditto.
106346         * tests/test-vasprintf.c: Ditto.
106348 2007-03-27  Bruno Haible  <bruno@clisp.org>
106350         Make vasnprintf multithread-safe.
106351         * lib/vasnprintf.c (decimal_point_char): New function.
106352         (VASNPRINTF): Use it.
106353         Suggested by Simon Josefsson.
106355 2007-03-27  Eric Blake  <ebb9@byu.net>
106357         Support sub-second birthtime on cygwin.
106358         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
106359         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
106360         (get_stat_birthtime): Also work with st_birthtim.
106362 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
106364         * lib/stat-time.h (USE_BIRTHTIME): Remove.
106365         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
106366         (get_stat_birthtime_ns): Do not try to use "spare" fields.
106367         (get_stat_birthtime_ns): Simplify compile-time tests.
106368         (get_stat_birthtime): Change the API to look like
106369         get_stat_mtime etc., except return a negative tv_nsec on error.
106370         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
106371         Don't check for "spare" fields.
106372         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
106373         or for struct stat.st_birthtime, as these tests aren't used.
106374         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
106376 2007-03-27  Bruno Haible  <bruno@clisp.org>
106378         * lib/stat-time.h: Include <sys/stat.h>.
106380 2007-03-27  James Youngman  <jay@gnu.org>
106382         * lib/stat-time.h (get_stat_birthtime): New function for
106383           retrieving st_birthtime as provided by UFS2 (hence *BSD).
106384         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
106385           and its variants.
106386         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
106387         * modules/stat-time-test: New file.
106388         * tests/test-stat-time.c: New test, devised by Bruno Haible.
106390 2007-03-26  Bruno Haible  <bruno@clisp.org>
106392         Better support of signalling NaNs.
106393         * lib/atanl.c: Include isnanl.h.
106394         (atanl): Perform test for NaN at the beginning of the function and
106395         through a call to isnanl.
106396         * lib/cosl.c: Include isnanl.h.
106397         (cosl): Perform test for NaN at the beginning of the function and
106398         through a call to isnanl.
106399         * lib/ldexpl.c: Include isnanl.h.
106400         (ldexpl): Perform test for NaN through a call to isnanl.
106401         * lib/logl.c: Include isnanl.h.
106402         (logl): Perform test for NaN at the beginning of the function and
106403         through a call to isnanl.
106404         * lib/sinl.c: Include isnanl.h.
106405         (sinl): Perform test for NaN at the beginning of the function and
106406         through a call to isnanl.
106407         * lib/sqrtl.c: Include isnanl.h.
106408         (sqrtl): Perform test for NaN at the beginning of the function and
106409         through a call to isnanl.
106410         * lib/tanl.c: Include isnanl.h.
106411         (tanl): Perform test for NaN at the beginning of the function and
106412         through a call to isnanl.
106413         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
106414         * modules/mathl (Depends-on): Add isnanl.
106416 2007-03-26  Eric Blake  <ebb9@byu.net>
106418         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
106419         regression in logic sense of previous patch.
106421 2007-03-26  Bruno Haible  <bruno@clisp.org>
106423         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
106424         unportable shell command "if ! ...".
106425         Reported by Ralf Wildenhues.
106427 2007-03-25  Bruno Haible  <bruno@clisp.org>
106429         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
106430         <sysexits.h> file, and only add EX_CONFIG.
106431         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
106432         absolute file name and whether it is sufficient. Substitute also
106433         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
106434         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
106435         ABSOLUTE_SYSEXITS_H into sysexits.h.
106437 2007-03-25  Bruno Haible  <bruno@clisp.org>
106439         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
106440         hints is NULL.
106442 2007-03-25  Bruno Haible  <bruno@clisp.org>
106444         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
106445         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
106447 2007-03-25  Bruno Haible  <bruno@clisp.org>
106449         * lib/vasnprintf.c: Include langinfo.h.
106450         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
106451         multithread-safe.
106452         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
106453         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
106454         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
106455         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
106456         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
106457         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
106458         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
106459         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
106460         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
106461         Reported by Simon Josefsson.
106463 2007-03-25  Bruno Haible  <bruno@clisp.org>
106465         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
106466         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
106467         * modules/vasnprintf (Depends-on): Add stdint.
106469 2007-03-25  Bruno Haible  <bruno@clisp.org>
106471         * modules/fpieee: New file.
106472         * m4/fpieee.m4: New file.
106473         * modules/isnan-nolibm (Depends-on): Add fpieee.
106474         * modules/isnanl-nolibm (Depends-on): Add fpieee.
106475         * modules/isnanl (Depends-on): Add fpieee.
106477 2007-03-25  Bruno Haible  <bruno@clisp.org>
106479         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
106481 2007-03-25  Bruno Haible  <bruno@clisp.org>
106483         Avoid test failures on IRIX 6.5.
106484         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
106485         (main): Use it.
106486         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
106487         macros.
106488         (main): Use them.
106490 2007-03-25  Bruno Haible  <bruno@clisp.org>
106492         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
106493         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
106494         exists but doesn't work.
106495         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
106496         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
106497         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
106498         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
106499         math.h.
106501 2007-03-25  Bruno Haible  <bruno@clisp.org>
106503         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
106504         returns inf. Needed on IRIX 6.5.
106506 2007-03-25  Bruno Haible  <bruno@clisp.org>
106508         * tests/test-frexpl.c: Include isnanl-nolibm.h.
106509         (main): Use isnanl instead of x != x idiom.
106510         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
106512         * tests/test-frexp.c: Include isnan.h.
106513         (main): Use isnan instead of x != x idiom.
106514         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
106516 2007-03-25  Bruno Haible  <bruno@clisp.org>
106518         * tests/test-frexp.c (NaN): New function/macro.
106519         (main): Use it instead of 0.0 / 0.0.
106520         * tests/test-isnan.c (NaN): New function/macro.
106521         (main): Use it instead of 0.0 / 0.0.
106522         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
106523         (test_function): Use it instead of 0.0 / 0.0.
106524         * tests/test-vasprintf-posix.c (NaN): New function/macro.
106525         (test_function): Use it instead of 0.0 / 0.0.
106526         * tests/test-snprintf-posix.h (NaN): New function/macro.
106527         (test_function): Use it instead of 0.0 / 0.0.
106528         * tests/test-sprintf-posix.h (NaN): New function/macro.
106529         (test_function): Use it instead of 0.0 / 0.0.
106530         * tests/test-fprintf-posix.h (NaN): New function/macro.
106531         (test_function): Use it instead of 0.0 / 0.0.
106532         * tests/test-printf-posix.h (NaN): New function/macro.
106533         (test_function): Use it instead of 0.0 / 0.0.
106535         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
106537 2007-03-25  Bruno Haible  <bruno@clisp.org>
106539         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
106541 2007-03-25  Bruno Haible  <bruno@clisp.org>
106543         * lib/regexec.c (merge_state_with_log): Make static.
106545 2007-03-25  Bruno Haible  <bruno@clisp.org>
106547         * lib/trigl.c (kernel_rem_pio2): Make static.
106549 2007-03-25  Bruno Haible  <bruno@clisp.org>
106551         * lib/sincosl.c (sincosl_table): Make static.
106553 2007-03-25  Bruno Haible  <bruno@clisp.org>
106555         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
106556         if the compiler does not support C99.
106558 2007-03-25  Bruno Haible  <bruno@clisp.org>
106560         * modules/time (Makefile.am): Ensure all rule action lines start with a
106561         tab.
106563 2007-03-24  Bruno Haible  <bruno@clisp.org>
106565         * modules/tsearch-tests: New file.
106566         * tests/test-tsearch.sh: New file.
106567         * tests/test-tsearch.c: New file, mostly copied from glibc.
106569         * modules/search-tests: New file.
106570         * tests/test-search.c: New file.
106572         * modules/search: New file.
106573         * lib/search_.h: New file, incorporating lib/tsearch.h.
106574         * m4/search_h.m4: New file.
106575         * lib/tsearch.h: Remove file.
106576         * lib/tsearch.c: Include search.h instead of tsearch.h.
106577         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
106578         HAVE_TSEARCH.
106579         * modules/tsearch (Files): Remove lib/tsearch.h.
106580         (Depends-on): Add search.
106581         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
106582         (Include): Change tsearch.h into search.h.
106584 2007-03-24  Bruno Haible  <bruno@clisp.org>
106586         * modules/fpucw: New file.
106587         * lib/fpucw.h: New file.
106588         * lib/frexp.c: Include fpucw.h.
106589         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
106590         (FUNC): Use them.
106591         * lib/printf-frexp.c: Include fpucw.h.
106592         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
106593         (FUNC): Use them.
106594         * lib/vasnprintf.c: Include fpucw.h.
106595         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
106596         'long double' calculations.
106597         * tests/test-frexpl.c: Include fpucw.h.
106598         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
106599         * tests/test-printf-frexpl.c: Include fpucw.h.
106600         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
106601         * modules/frexpl (Depends-on): Add fpucw.
106602         * modules/printf-frexpl (Depends-on): Likewise.
106603         * modules/fprintf-posix (Depends-on): Likewise.
106604         * modules/snprintf-posix (Depends-on): Likewise.
106605         * modules/sprintf-posix (Depends-on): Likewise.
106606         * modules/vasnprintf-posix (Depends-on): Likewise.
106607         * modules/vasprintf-posix (Depends-on): Likewise.
106608         * modules/vfprintf-posix (Depends-on): Likewise.
106609         * modules/vsnprintf-posix (Depends-on): Likewise.
106610         * modules/vsprintf-posix (Depends-on): Likewise.
106611         * modules/frexpl-tests (Depends-on): Likewise.
106612         * modules/printf-frexpl-tests (Depends-on): Likewise.
106614 2007-03-24  Bruno Haible  <bruno@clisp.org>
106616         * lib/float+.h: New file.
106617         * lib/isnan.c: Include float+.h.
106618         (SIZE): New macro.
106619         (FUNC): Compare only SIZE bytes of the value.
106620         * lib/vasnprintf.c: Include float+.h.
106621         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
106622         SIZEOF_LDBL or SIZEOF_DBL bytes.
106623         * modules/isnan-nolibm (Files): Add lib/float+.h.
106624         * modules/isnanl-nolibm (Files): Add lib/float+.h.
106625         * modules/isnanl (Files): Add lib/float+.h.
106626         * modules/vasnprintf (Files): Add lib/float+.h.
106628 2007-03-24  Bruno Haible  <bruno@clisp.org>
106630         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
106631         include isnanl-nolibm.h.
106633 2007-03-24  Bruno Haible  <bruno@clisp.org>
106635         * tests/test-read-file.c (main): Don't produce spurious output for
106636         expected situations. Make the test fail if it encountered unexpected
106637         results.
106639 2007-03-24  Bruno Haible  <bruno@clisp.org>
106641         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
106642         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
106644 2007-03-24  Bruno Haible  <bruno@clisp.org>
106646         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
106648 2007-03-24  Bruno Haible  <bruno@clisp.org>
106650         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
106651         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
106653         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
106654         * modules/utf8-ucs4: Turn into a symbolic link to module
106655         unistr/u8-mbtouc.
106657         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
106658         utf8-ucs4-unsafe.
106659         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
106660         unistr/u8-mbtouc-unsafe.
106662         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
106663         * modules/utf16-ucs4: Turn into a symbolic link to module
106664         unistr/u16-mbtouc.
106666         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
106667         utf16-ucs4-unsafe.
106668         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
106669         unistr/u16-mbtouc-unsafe.
106671         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
106672         * modules/ucs4-utf8: Turn into a symbolic link to module
106673         unistr/u8-ubtomb.
106675         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
106676         * modules/ucs4-utf16: Turn into a symbolic link to module
106677         unistr/u16-ubtomb.
106679 2007-03-24  Bruno Haible  <bruno@clisp.org>
106681         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
106682         Enable the function only if HAVE_INLINE.
106683         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
106684         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
106685         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
106686         Enable the function only if HAVE_INLINE.
106687         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
106688         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
106689         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
106690         Enable the function only if HAVE_INLINE.
106691         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
106692         Enable the function only if HAVE_INLINE.
106693         * modules/utf8-ucs4: Update.
106694         * modules/utf8-ucs4-unsafe: Update.
106695         * modules/utf16-ucs4: Update.
106696         * modules/utf16-ucs4-unsafe: Update.
106697         * modules/ucs4-utf8: Update.
106698         * modules/ucs4-utf16: Update.
106700 2007-03-24  Bruno Haible  <bruno@clisp.org>
106702         * lib/utf8-ucs4.h: Remove file.
106703         * lib/utf8-ucs4-unsafe.h: Remove file.
106704         * lib/utf16-ucs4.h: Remove file.
106705         * lib/utf16-ucs4-unsafe.h: Remove file.
106706         * lib/ucs4-utf8.h: Remove file.
106707         * lib/ucs4-utf16.h: Remove file.
106708         * lib/unistr.h: Include their previous contents.
106709         * m4/utf-ucs4.m4: Remove file.
106710         * m4/ucs4-utf.m4: Remove file.
106711         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
106712         (Depends-on): Add unistr/base.
106713         (configure.ac): Remove gl_UTF_UCS4.
106714         (Makefile.am): Update.
106715         (Include): Change to unistr.h.
106716         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
106717         (Depends-on): Add unistr/base.
106718         (configure.ac): Remove gl_UTF_UCS4.
106719         (Makefile.am): Update.
106720         (Include): Change to unistr.h.
106721         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
106722         (Depends-on): Add unistr/base.
106723         (configure.ac): Remove gl_UTF_UCS4.
106724         (Makefile.am): Update.
106725         (Include): Change to unistr.h.
106726         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
106727         (Depends-on): Add unistr/base.
106728         (configure.ac): Remove gl_UTF_UCS4.
106729         (Makefile.am): Update.
106730         (Include): Change to unistr.h.
106731         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
106732         (Depends-on): Add unistr/base.
106733         (configure.ac): Remove gl_UCS4_UTF.
106734         (Makefile.am): Update.
106735         (Include): Change to unistr.h.
106736         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
106737         (Depends-on): Add unistr/base.
106738         (configure.ac): Remove gl_UCS4_UTF.
106739         (Makefile.am): Update.
106740         (Include): Change to unistr.h.
106741         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
106742         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
106743         utf8-ucs4-unsafe.h.
106744         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
106745         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
106746         utf16-ucs4-unsafe.h.
106747         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
106748         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
106749         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
106750         * lib/unistr/u8-strchr.c: Likewise.
106751         * lib/unistr/u8-strrchr.c: Likewise.
106752         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
106753         * lib/unistr/u16-strchr.c: Likewise.
106754         * lib/unistr/u16-strrchr.c: Likewise.
106755         * lib/striconveh.c: Update.
106756         * lib/linebreak.c: Update.
106758 2007-03-24  Bruno Haible  <bruno@clisp.org>
106760         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
106761         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
106763 2007-03-22  Bruno Haible  <bruno@clisp.org>
106765         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
106767 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
106769         * MODULES.html.sh (File system functions): New module write-any-file.
106770         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
106771         * m4/write-any-file.m4: New files.
106773 2007-03-23  Eric Blake  <ebb9@byu.net>
106775         * gnulib-tool: Rearrange space-tab sequences, since some editors
106776         like to eat them.
106778 2007-03-23  Eric Blake  <ebb9@byu.net>
106780         * lib/version-etc.c (version_etc_va): Update license wording to
106781         be more concise.  Recommended by Richard Stallman.
106783 2007-03-22  Bruno Haible  <bruno@clisp.org>
106785         * lib/poll.c (MSG_PEEK): New fallback definition.
106787 2007-03-22  Bruno Haible  <bruno@clisp.org>
106789         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
106790         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
106791         (main): Update.
106792         Fixes a compilation error on BeOS.
106794 2007-03-22  Bruno Haible  <bruno@clisp.org>
106796         * modules/frexpl-tests: New file.
106797         * tests/test-frexpl.c: New file.
106799         * modules/frexpl: New file.
106800         * m4/frexpl.m4: New file.
106801         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
106802         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
106803         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
106804         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
106805         (Depends-on): Add frexpl. Remove isnanl-nolibm.
106806         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
106808 2007-03-22  Bruno Haible  <bruno@clisp.org>
106810         * lib/frexpl.c: Share code with lib/frexp.c.
106811         * modules/mathl (Files): Add lib/frexp.c.
106812         (Depends-on): Add isnanl-nolibm.
106814 2007-03-22  Bruno Haible  <bruno@clisp.org>
106816         * modules/printf-frexp (Files): Add m4/frexp.m4.
106817         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
106818         only if the found frexp function actually works.
106820 2007-03-22  Bruno Haible  <bruno@clisp.org>
106822         * lib/frexp.c: Remove older implementation that uses divisions.
106824 2007-03-21  Bruno Haible  <bruno@clisp.org>
106826         * modules/frexp-tests: New file.
106827         * tests/test-frexp.c: New file.
106829         * modules/frexp: New file.
106830         * lib/frexp.c: New file.
106831         * m4/frexp.m4: New file.
106832         * lib/math_.h (frexp): New declaration.
106833         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
106834         REPLACE_FREXP.
106835         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
106837 2007-03-21  Bruno Haible  <bruno@clisp.org>
106839         * modules/isnanl-tests: New file.
106840         * tests/test-isnanl.c: New file.
106842         * modules/isnanl: New file.
106843         * lib/isnanl.h: New file.
106844         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
106845         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
106846         gl_FUNC_ISNANL_WORKS.
106847         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
106848         New macros.
106850 2007-03-21  Bruno Haible  <bruno@clisp.org>
106852         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
106853         lib/isnanl.h.
106854         (Include): Update.
106855         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
106856         * lib/vasnprintf.c: Update.
106857         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
106858         tests/test-isnanl.h, remove tests/test-isnanl.c.
106859         (Makefile.am): Update.
106860         * tests/test-isnanl-nolibm.c: New file.
106861         * tests/test-isnanl.h: New file.
106862         * tests/test-isnanl.c: Remove file.
106864 2007-03-21  Jim Meyering  <jim@meyering.net>
106866         When trying to open ".", treat ESTALE like EACCES.
106867         * lib/savewd.c (savewd_save): Resort to forking not just upon
106868         failure with EACCES, but also when errno is ESTALE.
106870 2007-03-20  Bruno Haible  <bruno@clisp.org>
106872         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
106873         Needed on AIX 5.1. Reported by Matthew Woehlke.
106875 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
106877         Suggestions by Bruno Haible:
106878         * lib/acl-internal.h: Include "gettext.h" rather than rolling
106879         our own.
106880         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
106881         * modules/acl (Depends-on): Add gettext.
106883 2007-03-19  Bruno Haible  <bruno@clisp.org>
106885         * modules/iconvme: Remove file.
106886         * lib/iconvme.h: Remove file.
106887         * lib/iconvme.c: Remove file.
106888         * m4/iconvme.m4: Remove file.
106890 2007-03-19  Bruno Haible  <bruno@clisp.org>
106892         * doc/relocatable-maint.texi: Break long shell script line.
106893         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
106895 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
106897         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
106898         handle file_has_acl.
106899         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
106900         * lib/acl.c: Move header inclusions and related macro defns into
106901         lib/acl-internal.h.
106902         (S_ISLNK): Remove defn, since that's now done for us.
106903         (file_has_acl): Move to lib/file-has-acl.c.
106904         Call acl_trivial if available.  This is the crucial part of the fix.
106905         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
106906         shared within the library.  Rewrite a bit, partly to make it compatible
106907         with the GNU coding style.
106908         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
106909         Remove unnecessary double-quotes.
106910         Don't test for acl_to_text; the build will catch that.
106911         Replace acl_entries if it doesn't exist and it is needed.
106912         Check for -lsec and acl_trivial (as used on Solaris 10).
106913         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
106914         lib/file-has-acl.c.
106915         (Depends-on): Add sys_stat, for S_ISLNK.
106917 2007-03-19  Ben Pfaff  <blp@gnu.org>
106919         * doc/gnulib.texi: Fix typos.
106920         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
106922 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
106924         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
106925         If size is zero here, buf must be zero.
106927 2007-03-19  Simon Josefsson  <simon@josefsson.org>
106929         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
106930         <bruno@clisp.org>.
106932 2007-03-18  Bruno Haible  <bruno@clisp.org>
106934         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
106935         Suggested by Eric Blake.
106937 2007-03-18  Ben Pfaff  <blp@gnu.org>
106939         * doc/relocatable.texi: Recommend using as prefix a directory
106940         that does not exist and will never be created.  Based on
106941         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
106942         and others.
106944 2007-03-17  Bruno Haible  <bruno@clisp.org>
106946         * lib/fchownat.c: Include lchown.h.
106948 2007-03-17  Bruno Haible  <bruno@clisp.org>
106950         Fix endless loop when the given allocated size was > INT_MAX.
106951         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
106952         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
106953         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
106954         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
106955         * lib/sprintf.c (sprintf): Likewise.
106957 2007-03-17  Bruno Haible  <bruno@clisp.org>
106959         * tests/test-argp-2.sh (func_compare): Output a context diff.
106961 2007-03-17  Bruno Haible  <bruno@clisp.org>
106963         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
106964         locale's decimal-point character.
106966 2007-03-17  Bruno Haible  <bruno@clisp.org>
106968         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
106969         before comparing it. Needed because on some platforms (e.g. x86) a
106970         'long double' occupies less bytes than sizeof (long double).
106972 2007-03-17  Bruno Haible  <bruno@clisp.org>
106974         * tests/test-crc.c (main): Make printf statements 64-bit clean.
106975         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
106976         * tests/test-getaddrinfo.c (simple): Likewise.
106977         * tests/test-read-file.c (main): Likewise.
106979 2007-03-17  Bruno Haible  <bruno@clisp.org>
106981         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
106983 2007-03-17  Bruno Haible  <bruno@clisp.org>
106985         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
106986         unused variable.
106988 2007-03-17  Bruno Haible  <bruno@clisp.org>
106990         * tests/test-c-strcasecmp.c: Include c-strcase.h.
106991         * tests/test-c-strncasecmp.c: Likewise.
106993 2007-03-17  Bruno Haible  <bruno@clisp.org>
106995         * modules/stdlib (Depends-on): Add unistd.
106996         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
106997         Needed for MacOS X 10.3.
106999 2007-03-17  Bruno Haible  <bruno@clisp.org>
107001         * lib/unistr/u-strdup.h: Include <stdlib.h>.
107003 2007-03-17  Bruno Haible  <bruno@clisp.org>
107005         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
107007 2007-03-17  Bruno Haible  <bruno@clisp.org>
107009         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
107010         to reflect files copied from gnulib (with or without modifications).
107011         Suggested by Jim Meyering.
107013 2007-03-17  Eric Blake  <ebb9@byu.net>
107015         * NEWS: Document stdlib change from 2007-02-18.
107017 2007-03-17  Jim Meyering  <jim@meyering.net>
107019         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
107020         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
107021         someone uses a name containing shell meta-characters.
107022         Reported by Alfred M. Szmidt.
107024         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
107026 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
107028         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
107029         and copy gettext configuration files only if configure.ac contains
107030         a use of AM_GNU_GETTEXT_VERSION.
107032 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
107034         * build-aux/bootstrap (gnulib_name): New variable.
107035         (gnulib_tool_options): Use it.
107037 2007-03-13  Simon Josefsson  <simon@josefsson.org>
107039         * tests/test-des.c: Use new namespace.
107041 2007-03-15  Bruno Haible  <bruno@clisp.org>
107043         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
107044         Reported by James Youngman <jay@gnu.org>.
107046 2007-03-15  Bruno Haible  <bruno@clisp.org>
107048         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
107049         declared prototype. Needed with cc on OSF/1 5.1.
107051 2007-03-15  Bruno Haible  <bruno@clisp.org>
107053         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
107054         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
107055         (struct gl_list_implementation): Add dispose_fn argument to the
107056         'create_empty', 'create' methods.
107057         (struct gl_list_impl_base): Add field 'dispose_fn'.
107058         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
107059         argument.
107060         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
107061         dispose_fn argument.
107062         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
107063         dispose_fn on the dropped values.
107064         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
107065         dispose_fn argument.
107066         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
107067         dropped values.
107068         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
107069         (gl_tree_remove_node): Call dispose_fn on the dropped value.
107070         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
107071         (gl_tree_remove_node): Call dispose_fn on the dropped value.
107072         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
107073         argument.
107074         (gl_tree_list_free): Call dispose_fn on the dropped values.
107075         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
107076         the dropped values.
107077         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
107078         Add dispose_fn argument.
107079         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
107080         Call dispose_fn on the dropped values.
107081         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
107082         Add dispose_fn argument.
107083         (gl_sublist_create): Initialize the 'dispose_fn' field.
107084         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
107085         * tests/test-array_list.c (main): Update.
107086         * tests/test-carray_list.c (main): Update.
107087         * tests/test-avltree_list.c (main): Update.
107088         * tests/test-rbtree_list.c (main): Update.
107089         * tests/test-avltreehash_list.c (main): Update.
107090         * tests/test-rbtreehash_list.c (main): Update.
107091         * tests/test-linked_list.c (main): Update.
107092         * tests/test-linkedhash_list.c (main): Update.
107093         * tests/test-array_oset.c (main): Update.
107095 2007-03-15  Bruno Haible  <bruno@clisp.org>
107097         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
107098         (gl_oset_create_empty): Add dispose_fn argument.
107099         (struct gl_oset_implementation): Add dispose_fn argument to
107100         'create_empty' method.
107101         (struct gl_oset_impl_base): Add dispose_fn field.
107102         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
107103         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
107104         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
107105         values.
107106         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
107107         (gl_tree_oset_free): Call dispose_fn on the dropped values.
107108         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
107109         dropped value.
107110         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
107111         dropped value.
107112         * tests/test-array_oset.c (main): Update.
107113         * tests/test-avltree_oset.c (main): Update.
107114         * tests/test-rbtree_oset.c (main): Update.
107115         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
107117 2007-03-13  Bruno Haible  <bruno@clisp.org>
107119         * tests/test-stdbool.c (i): Update after last patch.
107121 2007-03-12  Bruno Haible  <bruno@clisp.org>
107123         * lib/quotearg.c: Include <wctype.h> early, before the definition of
107124         the iswprint macro. Needed on Solaris 2.5.1.
107126 2007-03-12  Bruno Haible  <bruno@clisp.org>
107128         * tests/test-printf-frexp.c (main): Declare x as volatile.
107130 2007-03-12  Simon Josefsson  <simon@josefsson.org>
107132         * doc/gnulib.texi (Build robot for gnulib): New section.
107134 2007-03-12  Jim Meyering  <jim@meyering.net>
107136         * build-aux/bootstrap: New file.
107137         * build-aux/bootstrap.conf: New file, from coreutils.
107139 2007-03-11  Bruno Haible  <bruno@clisp.org>
107141         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
107143 2007-03-12  Simon Josefsson  <simon@josefsson.org>
107145         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
107146         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
107147         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
107149 2007-03-11  Bruno Haible  <bruno@clisp.org>
107151         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
107152         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
107154 2007-03-11  Bruno Haible  <bruno@clisp.org>
107156         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
107157         formula. Needed for SunPRO C 5.0.
107159 2007-03-11  Bruno Haible  <bruno@clisp.org>
107161         * modules/long-options (Depends-on): Add getopt.
107163 2007-03-11  Bruno Haible  <bruno@clisp.org>
107165         * modules/modechange (Depends-on): Add stdbool.
107167 2007-03-11  Bruno Haible  <bruno@clisp.org>
107169         * modules/i-ring (Depends-on): Add stdbool.
107171 2007-03-11  Bruno Haible  <bruno@clisp.org>
107173         * modules/gc-des (Depends-on): Add stdbool.
107175 2007-03-11  Bruno Haible  <bruno@clisp.org>
107177         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
107179 2007-03-11  Bruno Haible  <bruno@clisp.org>
107181         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
107183 2007-03-11  Bruno Haible  <bruno@clisp.org>
107185         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
107187 2007-03-11  Bruno Haible  <bruno@clisp.org>
107189         * lib/vasnprintf.c (sprintf): Undefine.
107191 2007-03-11  Bruno Haible  <bruno@clisp.org>
107193         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
107194         initializers in SunPRO C and Compaq C compilers.
107196 2007-03-11  Bruno Haible  <bruno@clisp.org>
107198         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
107199         decrementing code ANSI C compliant.
107201 2007-03-11  Bruno Haible  <bruno@clisp.org>
107203         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
107204         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
107206 2007-03-11  Bruno Haible  <bruno@clisp.org>
107208         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
107209         <stdbool.h> substitute doesn't pass.
107211 2007-03-11  Bruno Haible  <bruno@clisp.org>
107213         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
107215 2007-03-11  Bruno Haible  <bruno@clisp.org>
107217         * gnulib-tool (func_create_megatestdir): Create also an autobuild
107218         script, for submission to autobuild.josefsson.org.
107220 2007-03-10  Bruno Haible  <bruno@clisp.org>
107222         * modules/canonicalize-lgpl-tests: New file.
107223         * tests/test-canonicalize-lgpl.sh: New file.
107224         * tests/test-canonicalize-lgpl.c: New file.
107226         * modules/c-strcase-tests: New file.
107227         * tests/test-c-strcase.sh: New file.
107228         * tests/test-c-strcasecmp.c: New file.
107229         * tests/test-c-strncasecmp.c: New file.
107231         * modules/atexit-tests: New file.
107232         * tests/test-atexit.sh: New file.
107233         * tests/test-atexit.c: New file.
107235 2007-03-10  Bruno Haible  <bruno@clisp.org>
107237         * tests/test-binary-io.sh: Use temporary filenames that are not so
107238         likely to clash with those of other tests (in a parallel make).
107239         * tests/test-binary-io.c: Likewise.
107241 2007-03-10  Bruno Haible  <bruno@clisp.org>
107243         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
107244         fallback; use #error instead.
107245         Suggested by Simon Josefsson.
107247 2007-03-10  Bruno Haible  <bruno@clisp.org>
107249         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
107250         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
107251         first and the last.
107253 2007-03-10  Bruno Haible  <bruno@clisp.org>
107255         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
107257 2007-03-10  Bruno Haible  <bruno@clisp.org>
107259         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
107260         "make distcheck".
107261         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
107262         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
107263         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
107265 2007-03-10  Bruno Haible  <bruno@clisp.org>
107267         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
107268         variable.
107269         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
107270         variable.
107272 2007-03-09  Eric Blake  <ebb9@byu.net>
107273         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
107275         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
107276         types are not being provided by gnulib.
107277         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
107278         types are supported.
107280 2007-03-10  Bruno Haible  <bruno@clisp.org>
107282         * lib/stdio_.h (__attribute__): New macro.
107283         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
107284         vsprintf): Specify __attribute__ __format__ for GCC.
107285         Suggested by Eric Blake.
107287 2007-03-09  Bruno Haible  <bruno@clisp.org>
107289         * modules/printf-posix-tests: New file.
107290         * tests/test-printf-posix.sh: New file.
107291         * tests/test-printf-posix.c: New file.
107293         * modules/printf-posix: New file.
107294         * lib/printf.c: New file.
107295         * m4/printf-posix-rpl.m4: New file.
107296         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
107297         REPLACE_PRINTF.
107298         * lib/stdio_.h (printf): New declaration.
107299         (format, __format__, ____printf____, ____scanf____, ____strftime____,
107300         ____strfmon____): New macros.
107301         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
107302         REPLACE_PRINTF.
107304 2007-03-09  Bruno Haible  <bruno@clisp.org>
107306         * tests/test-vasnprintf-posix2.sh: New file.
107307         * tests/test-vasnprintf-posix2.c: New file.
107308         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
107309         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
107310         (Makefile.am): Activate test-vasnprintf-posix2.sh.
107312         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
107313         a locale dependent decimal point, rather than always '.'.
107315 2007-03-09  Eric Blake  <ebb9@byu.net>
107317         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
107318         spite of platforms like Tandem/NSK that define it to -1.
107320 2007-03-08  Bruno Haible  <bruno@clisp.org>
107322         * modules/vprintf-posix-tests: New file.
107323         * tests/test-vprintf-posix.sh: New file.
107324         * tests/test-vprintf-posix.c: New file.
107325         * tests/test-printf-posix.h: New file.
107327         * modules/vprintf-posix: New file.
107328         * lib/vprintf.c: New file.
107329         * m4/vprintf-posix.m4: New file.
107330         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
107331         REPLACE_VPRINTF.
107332         * lib/stdio_.h (vprintf): New declaration.
107333         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
107334         REPLACE_VPRINTF.
107336 2007-03-08  Bruno Haible  <bruno@clisp.org>
107338         * modules/fprintf-posix-tests: New file.
107339         * tests/test-fprintf-posix.sh: New file.
107340         * tests/test-fprintf-posix.c: New file.
107342         * modules/fprintf-posix: New file.
107343         * lib/fprintf.c: New file.
107344         * m4/fprintf-posix.m4: New file.
107345         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
107346         REPLACE_FPRINTF.
107347         * lib/stdio_.h (fprintf): New declaration.
107348         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
107349         REPLACE_FPRINTF.
107351 2007-03-08  Bruno Haible  <bruno@clisp.org>
107353         * modules/vfprintf-posix-tests: New file.
107354         * tests/test-vfprintf-posix.sh: New file.
107355         * tests/test-vfprintf-posix.c: New file.
107356         * tests/test-fprintf-posix.h: New file.
107357         * tests/test-fprintf-posix.out: New file.
107359         * modules/vfprintf-posix: New file.
107360         * lib/vfprintf.c: New file.
107361         * m4/vfprintf-posix.m4: New file.
107362         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
107363         REPLACE_VFPRINTF.
107364         * lib/stdio_.h (vfprintf): New declaration.
107365         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
107366         REPLACE_VFPRINTF.
107368 2007-03-08  Bruno Haible  <bruno@clisp.org>
107370         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
107372 2007-03-08  Bruno Haible  <bruno@clisp.org>
107374         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
107375         instead of 'expr' invocations.
107376         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
107377         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
107378         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
107379         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
107380         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
107381         Suggested by Paul Eggert.
107383 2007-03-08  Bruno Haible  <bruno@clisp.org>
107385         * modules/fseterr-tests: New file.
107386         * tests/test-fseterr.c: New file.
107388         * modules/fseterr: New file.
107389         * lib/fseterr.h: New file.
107390         * lib/fseterr.c: New file.
107392 2007-03-08  Bruno Haible  <bruno@clisp.org>
107394         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
107395         * lib/getopt_.h: Likewise.
107396         * lib/mbswidth.h: Likewise.
107397         * lib/setenv.h: Likewise.
107398         * lib/vasnprintf.h: Likewise.
107399         * lib/vasprintf.h: Likewise.
107400         * lib/verror.h: Likewise.
107401         * lib/xsetenv.h: Likewise.
107402         * lib/xvasprintf.h: Likewise.
107404 2007-03-08  Jim Meyering  <jim@meyering.net>
107406         * users.txt: Add parted.
107408         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
107410 2007-03-07  Bruno Haible  <bruno@clisp.org>
107412         * m4/printf.m4: Make the shell script snippets copy&pastable.
107414 2007-03-02  Bruno Haible  <bruno@clisp.org>
107416         * lib/netinet_in_.h: New file.
107417         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
107418         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
107419         * modules/netinet_in (Files): Add lib/netinet_in_.h.
107420         (Depends-on): Add absolute-header.
107421         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
107422         into netinet/in.h.
107424 2007-03-03  Bruno Haible  <bruno@clisp.org>
107426         * lib/sys_select_.h: New file.
107427         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
107428         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
107429         * modules/sys_select (Files): Add lib/sys_select_.h.
107430         (Depends-on): Add absolute-header.
107431         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
107432         into sys/select.h.
107434 2007-03-02  Bruno Haible  <bruno@clisp.org>
107436         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
107437         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
107438         values.
107439         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
107440         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
107441         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
107442         * modules/sys_socket (Depends-on): Add absolute-header.
107443         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
107444         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
107445         (Include): Remove requirement of inclusion of <sys/types.h>.
107447 2007-03-02  Bruno Haible  <bruno@clisp.org>
107449         * lib/byteswap_.h (bswap_32): Fix formula.
107451 2007-03-06  Bruno Haible  <bruno@clisp.org>
107453         * modules/sprintf-posix-tests: New file.
107454         * tests/test-sprintf-posix.c: New file.
107456         * modules/sprintf-posix: New file.
107457         * lib/sprintf.c: New file.
107458         * m4/sprintf-posix.m4: New file.
107459         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
107460         REPLACE_SPRINTF.
107461         * lib/stdio_.h (sprintf): New declaration.
107462         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
107463         REPLACE_SPRINTF.
107465 2007-03-06  Bruno Haible  <bruno@clisp.org>
107467         * modules/vsprintf-posix-tests: New file.
107468         * tests/test-vsprintf-posix.c: New file.
107469         * tests/test-sprintf-posix.h: New file.
107471         * modules/vsprintf-posix: New file.
107472         * lib/vsprintf.c: New file.
107473         * m4/vsprintf-posix.m4: New file.
107474         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
107475         REPLACE_VSPRINTF.
107476         * lib/stdio_.h (vsprintf): New declaration.
107477         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
107478         REPLACE_VSPRINTF.
107480 2007-03-06  Bruno Haible  <bruno@clisp.org>
107482         * modules/vsnprintf (Depend-on): Remove minmax.
107484 2007-03-06  Bruno Haible  <bruno@clisp.org>
107486         * modules/snprintf-posix-tests: New file.
107487         * tests/test-snprintf-posix.c: New file.
107489         * modules/snprintf-posix: New file.
107490         * m4/snprintf-posix.m4: New file.
107491         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
107492         gl_FUNC_SNPRINTF.
107493         (gl_FUNC_SNPRINTF): Invoke it.
107494         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
107495         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
107496         is set.
107497         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
107499 2007-03-06  Bruno Haible  <bruno@clisp.org>
107501         * modules/vsnprintf-posix-tests: New file.
107502         * tests/test-vsnprintf-posix.c: New file.
107503         * tests/test-snprintf-posix.h: New file.
107505         * modules/vsnprintf-posix: New file.
107506         * m4/vsnprintf-posix.m4: New file.
107507         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
107508         gl_FUNC_VSNPRINTF.
107509         (gl_FUNC_VSNPRINTF): Invoke it.
107510         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
107511         * lib/stdio_.h (vsnprintf): Define as a replacement if
107512         REPLACE_VSNPRINTF is set.
107513         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
107515 2007-03-06  Bruno Haible  <bruno@clisp.org>
107517         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
107518         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
107520 2007-03-06  Bruno Haible  <bruno@clisp.org>
107522         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
107523         (asinl): Declare also if HAVE_DECL_ASINL is set.
107524         (atanl): Declare also if HAVE_DECL_ATANL is set.
107525         (ceill): Declare also if HAVE_DECL_CEILL is set.
107526         (cosl): Declare also if HAVE_DECL_COSL is set.
107527         (expl): Declare also if HAVE_DECL_EXPL is set.
107528         (floorl): Declare also if HAVE_DECL_FLOORL is set.
107529         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
107530         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
107531         (logl): Declare also if HAVE_DECL_LOGL is set.
107532         (sinl): Declare also if HAVE_DECL_SINL is set.
107533         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
107534         (tanl): Declare also if HAVE_DECL_TANL is set.
107535         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
107536         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
107537         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
107538         declaration of frexpl, ldexpl.
107539         * modules/printf-frexpl (Depends-on): Add math.
107540         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
107542 2007-03-05  Bruno Haible  <bruno@clisp.org>
107544         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
107545         frexpl and ldexpl are declared.
107546         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
107548 2007-03-05  Bruno Haible  <bruno@clisp.org>
107550         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
107551         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
107553 2007-03-05  Bruno Haible  <bruno@clisp.org>
107555         * lib/stdio_.h: Include <stddef.h>.
107557 2007-03-05  Bruno Haible  <bruno@clisp.org>
107559         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
107561 2007-03-05  Bruno Haible  <bruno@clisp.org>
107563         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
107564         NetBSD 4, from Ralf Wildenhues.
107566 2007-03-04  Bruno Haible  <bruno@clisp.org>
107568         * lib/vasprintf.h: Update #if logic for the case when the functions
107569         exist but are overridden.
107571 2007-03-04  Bruno Haible  <bruno@clisp.org>
107573         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
107574         implementations: glibc-2.4 and MacOS X 10.3.
107575         * tests/test-vasnprintf-posix.c (test_function): Test also the case
107576         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
107577         * tests/test-vasprintf-posix.c (test_function): Likewise.
107579 2007-03-04  Bruno Haible  <bruno@clisp.org>
107581         * modules/vasprintf-posix-tests: New file.
107582         * tests/test-vasprintf-posix.c: New file.
107584         * modules/vasprintf-posix: New file.
107585         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
107586         defined.
107587         * m4/vasprintf-posix.m4: New file.
107588         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
107589         gl_FUNC_VASPRINTF.
107590         (gl_FUNC_VASPRINTF): Invoke it.
107591         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
107592         here.
107593         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
107595 2007-03-04  Bruno Haible  <bruno@clisp.org>
107597         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
107598         REPLACE_GETTIMEOFDAY.
107599         * modules/sys_time (Makefile.am): Likewise.
107600         * m4/sys_time_h.m4: Likewise.
107601         * m4/gettimeofday.m4: Likewise.
107603 2007-03-04  Bruno Haible  <bruno@clisp.org>
107605         * modules/vasnprintf-posix-tests: New file.
107606         * tests/test-vasnprintf-posix.c: New file.
107608         * modules/vasnprintf-posix: New file.
107609         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
107610         printf-frexpl.h.
107611         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
107612         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
107613         REPLACE_VASNPRINTF is defined.
107614         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
107615         gl_FUNC_VASNPRINTF.
107616         (gl_FUNC_VASNPRINTF): Invoke it.
107617         * m4/vasnprintf-posix.m4: New file.
107618         * m4/printf.m4: New file.
107620 2007-03-04  Bruno Haible  <bruno@clisp.org>
107622         Compile progreloc.c only if --enable-relocatable is specified.
107623         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
107624         if --enable-relocatable was specified.
107625         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
107626         lib_SOURCES.
107628 2007-03-04  Jim Meyering  <jim@meyering.net>
107630         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
107631         Use it consistently, rather than enumerating errno constants.
107633 2007-03-04  Bruno Haible  <bruno@clisp.org>
107635         * modules/xvasprintf-tests: New file.
107636         * tests/test-xvasprintf.c: New file.
107638         * modules/vasprintf-tests: New file.
107639         * tests/test-vasprintf.c: New file.
107641         * modules/vasnprintf-tests: New file.
107642         * tests/test-vasnprintf.c: New file.
107644         * modules/vsnprintf-tests: New file.
107645         * tests/test-vsnprintf.c: New file.
107647         * modules/snprintf-tests: New file.
107648         * tests/test-snprintf.c: New file.
107650 2007-03-04  Bruno Haible  <bruno@clisp.org>
107652         Compile relocatable.c only if --enable-relocatable is specified.
107653         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
107654         gl_RELOCATABLE_LIBRARY.
107655         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
107656         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
107657         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
107658         gl_RELOCATABLE_LIBRARY.
107659         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
107660         (Makefile.am): Remove lib_SOURCES.
107661         * modules/relocatable-lib-lgpl (configure.ac): Invoke
107662         gl_RELOCATABLE_LIBRARY.
107663         (Makefile.am): Remove lib_SOURCES.
107664         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
107665         always.
107666         * modules/relocatable-prog-wrapper (configure.ac): Invoke
107667         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
107669 2007-03-04  Bruno Haible  <bruno@clisp.org>
107671         * modules/argmatch-tests: New file.
107672         * tests/test-argmatch.c: New file.
107674         * tests/test-allocsa.c (main): Halve the number of loop runs.
107676         * modules/alloca-opt-tests: New file.
107677         * tests/test-alloca-opt.c: New file.
107679 2007-03-04  Jim Meyering  <jim@meyering.net>
107681         Work around difference between Linux ACLs and Solaris 10 ZFS.
107682         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
107683         for EINVAL.
107685 2007-03-03  Bruno Haible  <bruno@clisp.org>
107687         * modules/relocatable-prog (Depends-on): Add back progreloc's
107688         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
107690 2007-03-03  Bruno Haible  <bruno@clisp.org>
107692         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
107693         * modules/relocatable-lib: New file.
107695 2007-03-03  Bruno Haible  <bruno@clisp.org>
107697         * modules/relocatable-prog: Renamed from modules/relocatable.
107698         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
107700 2007-03-03  Bruno Haible  <bruno@clisp.org>
107702         * modules/relocatable-script (Files): Add doc/relocatable.texi,
107703         m4/relocatable-lib.m4.
107704         (Depends-on): Remove 'relocatable'.
107705         (configure.ac): Add gl_RELOCATABLE_NOP.
107707 2007-03-03  Bruno Haible  <bruno@clisp.org>
107709         * modules/relocatable-prog-wrapper: New file.
107710         * modules/relocatable (Depends-on): Add it. Remove all other
107711         dependencies except progname.
107712         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
107714         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
107715         (gl_FUNC_STRERROR): Nop.
107716         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
107718         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
107719         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
107721         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
107722         (gl_FUNC_READLINK): Update.
107724         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
107726 2007-03-03  Bruno Haible  <bruno@clisp.org>
107728         * lib/xreadlink.c: Include <unistd.h> unconditionally.
107729         * modules/xreadlink (Depends-on): Add unistd.
107730         * modules/xreadlink-with-size (Depends-on): Likewise.
107732 2007-03-03  Bruno Haible  <bruno@clisp.org>
107734         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
107735         extracted from gt_FUNC_SETENV.
107736         (gt_FUNC_SETENV): Remove macro.
107737         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
107738         remove gt_FUNC_SETENV.
107740 2007-03-03  Bruno Haible  <bruno@clisp.org>
107742         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
107743         ENABLE_RELOCATABLE here.
107744         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
107746 2007-03-03  Bruno Haible  <bruno@clisp.org>
107748         * modules/rbtreehash-list-tests (Depends-on): Add progname.
107749         * tests/test-rbtreehash_list.c: Include progname.h.
107750         (main): Call set_program_name.
107752         * modules/rbtree-oset-tests (Depends-on): Add progname.
107753         * tests/test-rbtree_oset.c: Include progname.h.
107754         (main): Call set_program_name.
107756         * modules/rbtree-list-tests (Depends-on): Add progname.
107757         * tests/test-rbtree_list.c: Include progname.h.
107758         (main): Call set_program_name.
107760         * modules/linked-list-tests (Depends-on): Add progname.
107761         * tests/test-linked_list.c: Include progname.h.
107762         (main): Call set_program_name.
107764 2007-03-03  Bruno Haible  <bruno@clisp.org>
107766         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
107767         All uses of __restrict changed to _Restrict_.
107768         * lib/glob_.h (__restrict): Remove macro.
107770 2007-03-02  Bruno Haible  <bruno@clisp.org>
107772         * modules/gettext (configure.ac): Require gettext infrastructure
107773         from version 0.16.1.
107775 2007-03-02  Bruno Haible  <bruno@clisp.org>
107777         * modules/linkedhash-list-tests (Depends-on): Add progname.
107778         * tests/test-linkedhash_list.c: Include progname.h.
107779         (main): Call set_program_name.
107781         * modules/carray-list-tests (Depends-on): Add progname.
107782         * tests/test-carray_list.c: Include progname.h.
107783         (main): Call set_program_name.
107785         * modules/avltreehash-list-tests (Depends-on): Add progname.
107786         * tests/test-avltreehash_list.c: Include progname.h.
107787         (main): Call set_program_name.
107789         * modules/avltree-oset-tests (Depends-on): Add progname.
107790         * tests/test-avltree_oset.c: Include progname.h.
107791         (main): Call set_program_name.
107793         * modules/avltree-list-tests (Depends-on): Add progname.
107794         * tests/test-avltree_list.c: Include progname.h.
107795         (main): Call set_program_name.
107797         * modules/array-oset-tests (Depends-on): Add progname.
107798         * tests/test-array_oset.c: Include progname.h.
107799         (main): Call set_program_name.
107801         * modules/array-list-tests (Depends-on): Add progname.
107802         * tests/test-array_list.c: Include progname.h.
107803         (main): Call set_program_name.
107805         * modules/argp-tests (Depends-on): Add progname.
107806         * tests/test-argp.c: Include argp.h first. Include progname.h.
107807         (main): Call set_program_name.
107809 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
107811         * doc/gnulib-tool.texi (Initial import): Reword description of
107812         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
107813         limited effect even if defined after the first system include.
107815 2007-03-01  Bruno Haible  <bruno@clisp.org>
107817         * build-aux/config.libpath: Update to libtool-1.5.22.
107818         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
107820 2007-03-01  Bruno Haible  <bruno@clisp.org>
107822         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
107823         foo_CFLAGS.
107824         Reported by Ralf Wildenhues.
107826 2007-03-01  Bruno Haible  <bruno@clisp.org>
107828         * build-aux/install-reloc: Remove object files left over by some
107829         compilers.
107830         Reported by Ralf Wildenhues.
107832 2007-03-01  Bruno Haible  <bruno@clisp.org>
107834         * build-aux/install-reloc: Break long lines.
107836 2007-03-01  Bruno Haible  <bruno@clisp.org>
107838         * doc/relocatable.texi: Document that it may not work on OpenBSD.
107839         Reported by Ralf Wildenhues.
107841 2007-03-01  Bruno Haible  <bruno@clisp.org>
107843         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
107844         include ordering constraints.
107846 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
107848         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
107849         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00136.html>.
107850         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
107851         as another example.
107852         * lib/time_.h: Fix misspelling.
107853         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
107854         Require gl_HEADER_TIME_H_DEFAULTS.
107855         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
107856         * m4/time_r.m4 (gl_TIME_R): Likewise.
107857         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
107859 2007-03-01  Bruno Haible  <bruno@clisp.org>
107861         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
107862         * m4/utimens.m4 (gl_UTIMENS): Likewise.
107864 2007-03-01  Jim Meyering  <jim@meyering.net>
107866         * modules/xreadlink (Maintainer): Add my name.
107867         * modules/xreadlink-with-size (Depends-on): Alphabetize.
107869 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
107870             Bruno Haible  <bruno@clisp.org>
107872         * build-aux/install-reloc: Compile also c-ctype.c.
107873         * build-aux/relocatable.sh.in: New file.
107874         * doc/relocatable.texi: New file.
107875         * doc/relocatable-maint.texi: New file.
107876         * doc/gnulib.texi: Include relocatable-maint.texi.
107877         * lib/progreloc.c: Include unistd.h unconditionally.
107878         * lib/relocwrapper.c: Include unistd.h unconditionally.
107879         Include c-ctype.h.
107880         (add_dotbin): Use c_tolower.
107881         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
107882         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
107883         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
107884         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
107885         to m4/relocatable-lib.m4.
107886         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
107887         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
107888         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
107889         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
107890         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
107891         * modules/relocatable: New file.
107892         * modules/relocatable-lib: New file.
107893         * modules/relocatable-script: New file.
107895 2007-02-28  Bruno Haible  <bruno@clisp.org>
107897         Import --enable-relocatable infrastructure.
107898         * build-aux/config.libpath: New file, from GNU gettext.
107899         * build-aux/install-reloc: New file, from GNU gettext.
107900         * build-aux/reloc-ldflags: New file, from GNU gettext.
107901         * lib/relocatable.h: New file, from GNU gettext.
107902         * lib/relocatable.c: New file, from GNU gettext.
107903         * lib/relocwrapper.c: New file, from GNU gettext.
107904         * m4/relocatable.m4: New file, from GNU gettext.
107906 2007-02-28  Bruno Haible  <bruno@clisp.org>
107908         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
107910         * modules/xreadlink: New file, from GNU gettext with modifications.
107911         * lib/xreadlink.c: New file, from GNU gettext.
107912         * lib/xreadlink.h: Add comments.
107913         (xreadlink): New declaration.
107915         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
107916         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
107917         lib/xreadlink-with-size.c.
107918         (configure.ac): Remove gl_XREADLINK invocation.
107919         (Makefile.am): Augment lib_SOURCES.
107920         * m4/xreadlink.m4: Remove file.
107921         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
107922         (xreadlink_with_size): Renamed from xreadink.
107923         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
107924         * modules/canonicalize (Depends-on): Replace xreadlink with
107925         xreadlink-with-size.
107926         * lib/canonicalize.c (canonicalize_filename_mode): Update.
107928 2007-02-25  Jim Meyering  <jim@meyering.net>
107930         * build-aux/announce-gen: When complaining about excess arguments,
107931         list them.
107933 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
107935         * README: Document signed integer overflow situation more
107936         accurately.
107938 2007-02-25  Bruno Haible  <bruno@clisp.org>
107940         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
107941         'a' or 'A' conversion.
107943 2007-02-25  Bruno Haible  <bruno@clisp.org>
107945         * modules/filename: Renamed from modules/pathname.
107946         (Files): Replace lib/pathname.h with lib/filename.h. Replace
107947         lib/concatpath.c with lib/concat-filename.c.
107948         (Makefile.am): Update.
107949         (Include): Replace pathname.h with filename.h.
107950         * lib/filename.h: Renamed from lib/pathname.h.
107951         (concatenated_filename): Renamed from concatenated_pathname.
107952         * lib/concat-filename.c: Renamed from lib/concatpath.c.
107953         (concatenated_filename): Renamed from concatenated_pathname.
107954         * lib/findprog.c: Include filename.h instead of pathname.h.
107955         (find_in_path): Update.
107956         * lib/javacomp.c: Include filename.h instead of pathname.h.
107957         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
107958         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
107959         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
107960         is_oldgcj_14_13_usable, is_javac_usable): Update.
107961         * lib/javaexec.c: Include filename.h instead of pathname.h.
107962         (execute_java_class): Update.
107963         * modules/findprog: Update.
107964         * modules/javacomp: Update.
107965         * modules/javaexec: Update.
107966         * MODULES.html.sh (File system functions): Add 'filename', remove
107967         'pathname'.
107969 2007-02-25  Bruno Haible  <bruno@clisp.org>
107971         * modules/printf-frexpl-tests: New file.
107972         * tests/test-printf-frexpl.c: New file.
107974         * modules/printf-frexpl: New file.
107975         * lib/printf-frexpl.h: New file.
107976         * lib/printf-frexpl.c: New file.
107977         * m4/printf-frexpl.m4: New file.
107979 2007-02-25  Bruno Haible  <bruno@clisp.org>
107981         * modules/printf-frexp-tests: New file.
107982         * tests/test-printf-frexp.c: New file.
107984         * modules/printf-frexp: New file.
107985         * lib/printf-frexp.h: New file.
107986         * lib/printf-frexp.c: New file.
107987         * m4/printf-frexp.m4: New file.
107989 2007-02-25  Bruno Haible  <bruno@clisp.org>
107991         Assume automake >= 1.10 for the tests.
107992         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
107993         * modules/arctwo-tests: Likewise.
107994         * modules/argp-tests: Likewise.
107995         * modules/avltree-list-tests: Likewise.
107996         * modules/avltree-oset-tests: Likewise.
107997         * modules/avltreehash-list-tests: Likewise.
107998         * modules/carray-list-tests: Likewise.
107999         * modules/crc-tests: Likewise.
108000         * modules/des-tests: Likewise.
108001         * modules/gc-arcfour-tests: Likewise.
108002         * modules/gc-arctwo-tests: Likewise.
108003         * modules/gc-des-tests: Likewise.
108004         * modules/gc-hmac-md5-tests: Likewise.
108005         * modules/gc-hmac-sha1-tests: Likewise.
108006         * modules/gc-md2-tests: Likewise.
108007         * modules/gc-md4-tests: Likewise.
108008         * modules/gc-md5-tests: Likewise.
108009         * modules/gc-pbkdf2-sha1-tests: Likewise.
108010         * modules/gc-rijndael-tests: Likewise.
108011         * modules/gc-sha1-tests: Likewise.
108012         * modules/gc-tests: Likewise.
108013         * modules/getaddrinfo-tests: Likewise.
108014         * modules/hmac-md5-tests: Likewise.
108015         * modules/hmac-sha1-tests: Likewise.
108016         * modules/linked-list-tests: Likewise.
108017         * modules/linkedhash-list-tests: Likewise.
108018         * modules/lock-tests: Likewise.
108019         * modules/md2-tests: Likewise.
108020         * modules/md4-tests: Likewise.
108021         * modules/md5-tests: Likewise.
108022         * modules/rbtree-list-tests: Likewise.
108023         * modules/rbtree-oset-tests: Likewise.
108024         * modules/rbtreehash-list-tests: Likewise.
108025         * modules/read-file-tests: Likewise.
108026         * modules/rijndael-tests: Likewise.
108027         * modules/stdint-tests: Likewise.
108028         * modules/tls-tests: Likewise.
108030 2007-02-24  Bruno Haible  <bruno@clisp.org>
108032         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
108033         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
108034         function; instead check whether isnan with a double argument links.
108035         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
108036         function; instead check whether isnan with a 'long double' argument
108037         links.
108038         Reported by Eric Blake <ebb9@byu.net>.
108040 2007-02-24  Bruno Haible  <bruno@clisp.org>
108042         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
108043         defined.
108044         * lib/isnanl.c: Remove all code. Just include isnan.c.
108045         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
108047 2007-02-25  Jim Meyering  <jim@meyering.net>
108049         Avoid conflicting types for 'unsetenv' on FreeBSD.
108050         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
108051         conflicting with FreeBSD's (5.0 and 6.1) function declaration
108052         in stdlib.h.
108054 2007-02-24  Bruno Haible  <bruno@clisp.org>
108056         * modules/isnanl-nolibm-tests: New file.
108057         * tests/test-isnanl.c: New file.
108059         * modules/isnanl-nolibm: New file.
108060         * lib/isnanl.h: New file.
108061         * lib/isnanl.c: New file.
108062         * m4/isnanl.m4: New file.
108064 2007-02-24  Bruno Haible  <bruno@clisp.org>
108066         * modules/isnan-nolibm-tests: New file.
108067         * tests/test-isnan.c: New file.
108069         * modules/isnan-nolibm: New file.
108070         * lib/isnan.h: New file.
108071         * lib/isnan.c: New file.
108072         * m4/isnan.m4: New file.
108074 2007-02-24  Bruno Haible  <bruno@clisp.org>
108076         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
108077         assume that an exponent fits in 20 bits.
108079 2007-02-24  Jim Meyering  <jim@meyering.net>
108081         * m4/regex.m4: Update the description of the configure-time option,
108082         --without-included-regex, to state accurately what the defaults are,
108083         and perhaps to give people an idea why using this option is risky.
108085 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
108087         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
108088         loops on small arguments.  This attempts to avoid the problem
108089         Bruno Haible reported for AIX 4.3.2 in
108090         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00309.html>.
108092 2007-02-23  Bruno Haible  <bruno@clisp.org>
108094         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
108095         Needed for help2man.
108097 2007-02-23  Karl Berry  <karl@gnu.org>
108099         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
108100         exists, foo.h should be cvs-ignored, not committed.
108102 2007-02-23  Eric Blake  <ebb9@byu.net>
108104         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
108105         * lib/stat-time.h (includes): Likewise.
108106         * lib/utimecmp.c (includes): Likewise.
108107         * lib/utimens.h (includes): Likewise.
108108         * lib/getdate.y (includes): Also include "timespec.h" for use
108109         internal to the module.
108110         * modules/utimens (Depends-on): Revert yesterday's patch.
108111         * modules/nanosleep (Depends-on): Add missing dependency.
108113 2007-02-22  Bruno Haible  <bruno@clisp.org>
108115         * lib/glob.c: Don't include getlogin_r.h.
108117 2007-02-22  Jim Meyering  <jim@meyering.net>
108119         * modules/utimens (Depends-on): Add timespec, required for
108120         utimens.h's inclusion of timespec.h.
108122 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
108124         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
108125         long unreadable paths in GNU/Linux.  Problem reported by Andreas
108126         Schwab in
108127         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00261.html>.
108128         I'll try to think of a better way to fix the Solaris problem.
108130         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
108131         like glibc; on Solaris 10, it fails with errno == EINVAL.
108132         POSIX says the behavior is unspecified if the first argument is NULL,
108133         so play it safe and never pass NULL to the system getcwd.
108135 2007-02-21  Jim Meyering  <jim@meyering.net>
108137         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
108138         of gettimeofday.  It would conflict with the one now always
108139         provided via sys_time_.h.  Reported by Matthew Woehlke, as
108140         an IRIX 6.5 build failure.
108142 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
108144         Minor fixups to port to Solaris 10 with Sun C 5.8.
108145         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
108146         * modules/getcwd (Depends-on): Add dirfd.
108147         * lib/putenv.c (putenv): #undef it.
108148         (rpl_putenv): New decl.
108149         (malloc, free): Include <stdlib.h> rather than prototyping separately.
108151 2007-02-20  Bruno Haible  <bruno@clisp.org>
108153         * modules/stdio-tests: New file.
108154         * tests/test-stdio.c: New file.
108156         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
108157         (Depends-on): Add stdio.
108158         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
108159         (Include): Use <stdio.h> instead of vsnprintf.h.
108160         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
108161         HAVE_DECL_VSNPRINTF.
108162         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
108164         * modules/snprintf (Files): Remove lib/snprintf.h.
108165         (Depends-on): Add stdio.
108166         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
108167         (Include): Use <stdio.h> instead of snprintf.h.
108168         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
108169         HAVE_DECL_SNPRINTF.
108170         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
108171         * lib/getaddrinfo.c: Likewise.
108173         * modules/stdio: New file.
108174         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
108175         * lib/snprintf.h: Remove file.
108176         * lib/vsnprintf.h: Remove file.
108177         * lib/.cppi-disable: Remove snprintf.h.
108178         * m4/stdio_h.m4: New file.
108179         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
108181 2007-02-20  Jim Meyering  <jim@meyering.net>
108183         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
108184         used by e.g., mingw.  From Bruno Haible.
108186 2007-02-19  Bruno Haible  <bruno@clisp.org>
108188         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
108189         warnings.
108190         Reported by Ben Pfaff <blp@cs.stanford.edu>.
108192 2007-02-19  Bruno Haible  <bruno@clisp.org>
108194         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
108195         from mingw users.
108197 2007-02-19  Bruno Haible  <bruno@clisp.org>
108199         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
108200         warnings.
108201         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
108203 2007-02-19  Jim Meyering  <jim@meyering.net>
108205         Don't use FD after a successful "fdopendir (fd)".
108206         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
108207         Reset it by calling dirfd on the just-obtained DIR*.
108209         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
108210         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
108212 2007-02-18  Bruno Haible  <bruno@clisp.org>
108214         * lib/readlink.c: Include <unistd.h>.
108215         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
108216         HAVE_READLINK.
108217         * modules/readlink (Depends-on): Add unistd.
108218         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
108219         (Include): Add <unistd.h>.
108221         * lib/getlogin_r.h: Remove file.
108222         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
108223         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
108224         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
108225         HAVE_DECL_GETLOGIN_R.
108226         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
108227         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
108228         (Include): Use <unistd.h> instead of getlogin_r.h.
108230         * lib/getcwd.h: Remove file.
108231         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
108232         * lib/xgetcwd.c: Likewise.
108233         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
108234         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
108235         * modules/getcwd (Files): Remove lib/getcwd.h.
108236         (Depends-on): Add unistd.
108237         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
108238         (Include): Use <unistd.h> instad of getcwd.h.
108240         * lib/ftruncate.c: Include <unistd.h> first.
108241         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
108242         Set HAVE_FTRUNCATE.
108243         * modules/ftruncate (Depends-on): Add unistd.
108244         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
108246         * lib/fchdir.c: Include <unistd.h> first.
108247         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
108248         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
108249         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
108250         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
108251         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
108253         * lib/dup2.c: Include <unistd.h> first.
108254         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
108255         HAVE_DUP2.
108256         * modules/dup2 (Depends-on): Add unistd.
108257         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
108259         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
108260         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
108261         REPLACE_CHOWN. Don't define chown as a macro here.
108262         * modules/chown (Depends-on): Add unistd.
108263         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
108265         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
108266         Add definition for GL_LINK_WARNING.
108267         (chown, dup2): New declarations.
108268         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
108269         link warning.
108270         (ftruncate): New declaration.
108271         (getcwd): New declaration, taken from old getcwd.h.
108272         (getlogin_r): New declaration, taken from old getlogin_r.h.
108273         (readlink): New declaration.
108274         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
108275         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
108276         (gl_PREREQ_UNISTD): Remove macro.
108277         (gl_UNISTD_MODULE_INDICATOR): New macro.
108278         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
108279         many new variables. Don't set UNISTD_H.
108280         * modules/unistd (Description): Change.
108281         (Depends-on): Add link-warning.
108282         (configure.ac): Update.
108283         (Makefile.am): Create unistd.h always. Substitute many new variables
108284         into it.
108286 2007-02-18  Bruno Haible  <bruno@clisp.org>
108288         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
108289         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
108290         HAVE_GETSUBOPT.
108291         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
108292         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
108293         * lib/getsubopt.h: Remove file.
108294         * modules/getsubopt (Files): Remove lib/getsubopt.h.
108295         (Depends-on): Add stdlib.
108296         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
108297         (Includes): Use <stdlib.h> instead of getsubopt.h.
108298         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
108299         Set HAVE_GETSUBOPT.
108300         * lib/getsubopt.c: Don't include getsubopt.h.
108302 2007-02-18  Bruno Haible  <bruno@clisp.org>
108304         * modules/fchdir (Depends-on): Add dup2.
108306 2007-02-18  Bruno Haible  <bruno@clisp.org>
108308         * lib/stdlib_.h: Handle glibc's special invocation convention
108309         specially.
108311 2007-02-18  Bruno Haible  <bruno@clisp.org>
108313         * modules/stdlib-tests: New file.
108314         * tests/test-stdlib.c: New file.
108316         * modules/mkstemp (Files): Remove lib/mkstemp.h.
108317         (Depends-on): Add stdlib.
108318         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
108319         (Includes): Use <stdlib.h> instead of mkstemp.h.
108320         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
108321         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
108322         * lib/mkstemp.c: Don't include mkstemp.h.
108323         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
108324         * lib/stdlib--.h: Don't include mkstemp.h.
108326         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
108327         (Depends-on): Add stdlib.
108328         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
108329         (Includes): Use <stdlib.h> instead of mkdtemp.h.
108330         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
108331         HAVE_MKDTEMP.
108332         * lib/mkdtemp.c: Don't include mkdtemp.h.
108333         * lib/clean-temp.c: Don't include mkdtemp.h.
108335         * modules/exit (Files): Remove lib/exit.h.
108336         (Depends-on): Add stdlib.
108337         (Makefile.am): Remove lib_SOURCES.
108338         (Include): Use <stdlib.h> instead of exit.h.
108339         * lib/argmatch.c: Don't include exit.h.
108340         * lib/execute.c: Likewise.
108341         * lib/pagealign_alloc.c: Likewise.
108342         * lib/pipe.c: Likewise.
108343         * lib/wait-process.c: Likewise.
108344         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
108345         * lib/exitfail.c: Likewise.
108346         * lib/savewd.c: Likewise.
108347         * lib/xsetenv.c: Likewise.
108349         * modules/stdlib: New file.
108350         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
108351         and extra comments about mkstemp().
108352         * lib/exit.h: Remove file.
108353         * lib/mkdtemp.h: Remove file.
108354         * lib/mkstemp.h: Remove file.
108355         * m4/stdlib_h.m4: New file.
108356         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
108358 2007-02-18  Bruno Haible  <bruno@clisp.org>
108360         * modules/math-tests: New file.
108361         * tests/test-math.c: New file.
108363         * modules/math: New file.
108364         * modules/mathl (Files): Remove lib/mathl.h.
108365         (Depends-on): Add math.
108366         (Makefile.am): Don't mention mathl.h.
108367         (Include): Use <math.h> instead of mathl.h.
108368         * lib/math_.h: New file.
108369         * lib/mathl.h: Remove file.
108370         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
108371         mathl.h.
108372         * lib/asinl.c: Likewise.
108373         * lib/atanl.c: Likewise.
108374         * lib/ceill.c: Likewise.
108375         * lib/cosl.c: Likewise.
108376         * lib/expl.c: Likewise.
108377         * lib/floorl.c: Likewise.
108378         * lib/frexpl.c: Likewise.
108379         * lib/ldexpl.c: Likewise.
108380         * lib/logl.c: Likewise.
108381         * lib/sincosl.c: Likewise.
108382         * lib/sinl.c: Likewise.
108383         * lib/sqrtl.c: Likewise.
108384         * lib/tanl.c: Likewise.
108385         * lib/trigl.c: Likewise.
108386         * m4/math_h.m4: New file.
108387         * MODULES.html.sh (Mathematics): Add math.
108389 2007-02-17  Bruno Haible  <bruno@clisp.org>
108391         * modules/wctype-tests: New file.
108392         * tests/test-wctype.c: New file.
108394         * modules/wchar-tests: New file.
108395         * tests/test-wchar.c: New file.
108397         * modules/unistd-tests: New file.
108398         * tests/test-unistd.c: New file.
108400         * modules/time-tests: New file.
108401         * tests/test-time.c: New file.
108403         * modules/sysexits-tests: New file.
108404         * tests/test-sysexits.c: New file.
108406         * modules/sys_time-tests: New file.
108407         * tests/test-sys_time.c: New file.
108409         * modules/sys_stat-tests: New file.
108410         * tests/test-sys_stat.c: New file.
108412         * modules/sys_socket-tests: New file.
108413         * tests/test-sys_socket.c: New file.
108415         * modules/sys_select-tests: New file.
108416         * tests/test-sys_select.c: New file.
108418         * modules/string-tests: New file.
108419         * tests/test-string.c: New file.
108421         * modules/stdbool-tests: New file.
108422         * tests/test-stdbool.c: New file.
108424         * modules/netinet_in-tests: New file.
108425         * tests/test-netinet_in.c: New file.
108427         * modules/inttypes-tests: New file.
108428         * tests/test-inttypes.c: New file.
108430         * modules/fcntl-tests: New file.
108431         * tests/test-fcntl.c: New file.
108433         * modules/byteswap-tests: New file.
108434         * tests/test-byteswap.c: New file.
108436         * modules/arpa_inet-tests: New file.
108437         * tests/test-arpa_inet.c: New file.
108439 2007-02-17  Bruno Haible  <bruno@clisp.org>
108441         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
108442         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
108443         if the corresponding module is not enabled. Emit link warnings if
108444         the function is used nevertheless.
108445         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
108446         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
108447         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
108448         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
108449         * modules/inttypes (Depends-on): Add link-warning.
108450         (Makefile.am): Copy the contents of build-aux/link-warning.h into
108451         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
108452         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
108453         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
108454         * modules/imaxdiv (configure.ac): Likewise.
108455         * modules/strtoimax (configure.ac): Likewise.
108456         * modules/strtoumax (configure.ac): Likewise.
108458 2007-02-17  Bruno Haible  <bruno@clisp.org>
108460         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
108461         gl_STRING_MODULE_INDICATOR_DEFAULTS.
108462         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
108463         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
108465 2007-02-17  Bruno Haible  <bruno@clisp.org>
108467         * modules/link-warning: New file.
108468         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
108469         * lib/string_.h (GL_LINK_WARNING): Remove definition.
108470         * modules/string (Depends-on): Add link-warning.
108471         (Makefile.am): Copy the contents of build-aux/link-warning.h into
108472         string.h.
108473         * MODULES.html.sh (Support for building libraries and executables): Add
108474         link-warning.
108476 2007-02-17  Bruno Haible  <bruno@clisp.org>
108478         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
108479         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
108480         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
108481         long lines.
108483 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
108484             Bruno Haible  <bruno@clisp.org>
108486         * modules/tmpfile: New file.
108487         * lib/tmpfile.c: New file.
108488         * m4/tmpfile.m4: New file.
108489         * MODULES.html.sh (func_all_modules): New section "Input/output".
108491 2007-02-15  Bruno Haible  <bruno@clisp.org>
108493         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
108494         (supports_delete_on_close): New function.
108495         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
108497 2007-02-14  Bruno Haible  <bruno@clisp.org>
108499         * modules/mbspcasecmp-tests: New file.
108500         * tests/test-mbspcasecmp.sh: New file.
108501         * tests/test-mbspcasecmp.c: New file.
108503         New module mbspcasecmp.
108504         * modules/mbspcasecmp: New file.
108505         * lib/mbspcasecmp.c: New file.
108506         * lib/string_.h (strncasecmp): Change warning message.
108507         (mbspcasecmp): New declaration.
108508         * m4/mbspcasecmp.m4: New file.
108509         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108510         GNULIB_MBSPCASECMP.
108511         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
108512         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
108514 2007-02-14  Bruno Haible  <bruno@clisp.org>
108516         * modules/mbsncasecmp-tests: New file.
108517         * tests/test-mbsncasecmp.sh: New file.
108518         * tests/test-mbsncasecmp.c: New file.
108520         New module mbsncasecmp.
108521         * modules/mbsncasecmp: New file.
108522         * lib/mbsncasecmp.c: New file.
108523         * lib/string_.h (mbsncasecmp): New declaration.
108524         * m4/mbsncasecmp.m4: New file.
108525         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108526         GNULIB_MBSNCASECMP.
108527         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
108528         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
108530 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
108532         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
108533         Verify that it doesn't overlap with our flags.
108534         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
108535         do not have the desired effect in multibyte locales; instead, use
108536         mbscasecmp.
108537         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
108538         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
108539         we don't require GNU fnmatch ourselves (if our users require it, they
108540         should do so explicitly).
108542         Fix regex code so it doesn't rely on strcasecmp.
108543         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
108544         Otherwise, include gnulib's langinfo.h.
108545         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
108546         undesirable behavior in non-C locales.  Instead, rely on localecharset.
108547         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
108548         * modules/regex (FILES): Remove m4/codeset.m4.
108549         (Depends-on): Add localcharset.  Remove strcase.
108551 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108553         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
108554         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
108556 2007-02-13  Bruno Haible  <bruno@clisp.org>
108558         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
108559         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
108561 2007-02-12  Bruno Haible  <bruno@clisp.org>
108563         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
108564         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
108565         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
108566         time warning rather than a link error.
108568 2007-02-12  Bruno Haible  <bruno@clisp.org>
108570         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
108571         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
108572         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
108574 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
108576         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
108577         args, not 2.
108579 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
108581         New module 'time', so that apps can include <time.h> as per
108582         POSIX and GNU instead of separate include files like time_r.h
108583         and timegm.h.  This implementation tries out a simpler approach
108584         for replacing decls in standard include files (as compared to
108585         the string module), somewhat as an experiment.
108587         * config/srclist.txt: Comment out mktime.c for now.
108588         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
108589         since it doesn't apply any more.  Use generic wording instead.
108590         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
108591         'time'.
108592         * lib/time_.h, m4/time_h.m4, modules/time: New files.
108593         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
108594         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
108595         Don't include <sys/types.h>; no longer needed since we assume C89.
108596         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
108597         * lib/strftime.c: Likewise.
108598         * lib/time_r.c: Likewise.
108599         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
108600         * lib/nanosleep.c: Include <time.h> first, to check interface.
108601         * lib/strptime.c: Likewise.
108602         * lib/time_r.c: Likewise.
108603         * lib/timegm.c: Likewise.
108604         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
108605         needed.
108606         * lib/timegm.c: Don't include timegm.h; no longer needed.
108607         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
108608         time.h now handles any problems in that area.
108609         (struct timespec, nanosleep): Remove; time.h now arranges for these.
108610         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
108611         that time.h defines struct timespec.
108612         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
108613         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
108614         handles that.
108615         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
108616         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
108617         needed.  Set REPLACE_LOCALTIME.
108618         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
108619         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
108620         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
108621         nanosleep; time_h.m4 now does that.  Don't require
108622         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
108623         module handles this now.
108624         * modules/getdate (Depends-on): Remove timespec.  Add time.
108625         * modules/nanosleep (Depends-on): Likewise.
108626         * modules/stat-time (Depends-on): Likewise.
108627         * modules/nanosleep (Include): Include time.h, not timespec.h.
108628         * modules/strptime (Files): Remove lib/strptime.h.
108629         (Depends-on): Add extensions, time.
108630         (Include): Include time.h, not strptime.h.
108631         * modules/time_r (Files): Remove lib/time_r.h.
108632         (Depends-on): Add time.
108633         (Include): Include time.h, not time_r.h.
108634         * modules/timegm: Likewise.
108635         * modules/timespec (Description): Now does timespec-related decls
108636         of our own, instead of struct timespec itself.
108637         (Depends-on): Add time; remove extensions.
108638         (Maintainer): Add self.
108639         * modules/utimecmp (Depends-on): Add time; remove timespec.
108640         * modules/utimens (Depends-on): Likewise.
108641         * modules/xnanosleep (Depends-on): Likewise.
108643 2007-02-11  Bruno Haible  <bruno@clisp.org>
108645         * lib/c-strstr.c: Include allocsa.h.
108646         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
108647         * lib/c-strcasestr.c: Include allocsa.h.
108648         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
108649         * lib/strcasestr.c: Include allocsa.h.
108650         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
108651         * lib/mbsstr.c: Include allocsa.h.
108652         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
108653         allocsa/freesa instead of malloc/free.
108654         * lib/mbscasestr.c: Include allocsa.h.
108655         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
108656         allocsa/freesa instead of malloc/free.
108657         * modules/c-strstr (Depends-on): Add allocsa.
108658         * modules/c-strcasestr (Depends-on): Likewise.
108659         * modules/strcasestr (Depends-on): Likewise.
108660         * modules/mbsstr (Depends-on): Likewise.
108661         * modules/mbscasestr (Depends-on): Likewise.
108663 2007-02-11  Bruno Haible  <bruno@clisp.org>
108665         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
108667         * modules/mbsspn-tests: New file.
108668         * tests/test-mbsspn.sh: New file.
108669         * tests/test-mbsspn.c: New file.
108671 2007-02-11  Bruno Haible  <bruno@clisp.org>
108673         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
108675         * modules/mbspbrk-tests: New file.
108676         * tests/test-mbspbrk.sh: New file.
108677         * tests/test-mbspbrk.c: New file.
108679 2007-02-11  Bruno Haible  <bruno@clisp.org>
108681         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
108682         unneeded cast.
108684         * modules/mbscspn-tests: New file.
108685         * tests/test-mbscspn.sh: New file.
108686         * tests/test-mbscspn.c: New file.
108688 2007-02-11  Bruno Haible  <bruno@clisp.org>
108690         * modules/mbscasecmp-tests: New file.
108691         * tests/test-mbscasecmp.sh: New file.
108692         * tests/test-mbscasecmp.c: New file.
108694 2007-02-11  Bruno Haible  <bruno@clisp.org>
108696         Ensure O(n) worst-case complexity of mbscasestr.
108697         * lib/mbscasestr.c: Include stdbool.h.
108698         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
108699         functions.
108700         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
108701         the bookkeeping indicates that it's worth it.
108702         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
108704         * modules/mbscasestr-tests: New file.
108705         * tests/test-mbscasestr1.c: New file.
108706         * tests/test-mbscasestr2.sh: New file.
108707         * tests/test-mbscasestr2.c: New file.
108708         * tests/test-mbscasestr3.sh: New file.
108709         * tests/test-mbscasestr3.c: New file.
108710         * tests/test-mbscasestr4.sh: New file.
108711         * tests/test-mbscasestr4.c: New file.
108712         * m4/locale-tr.m4: New file.
108714 2007-02-11  Bruno Haible  <bruno@clisp.org>
108716         Ensure O(n) worst-case complexity of mbsstr.
108717         * lib/mbsstr.c: Include stdbool.h.
108718         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
108719         functions.
108720         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
108721         bookkeeping indicates that it's worth it.
108722         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
108724         * modules/mbsstr-tests: New file.
108725         * tests/test-mbsstr1.c: New file.
108726         * tests/test-mbsstr2.sh: New file.
108727         * tests/test-mbsstr2.c: New file.
108728         * tests/test-mbsstr3.sh: New file.
108729         * tests/test-mbsstr3.c: New file.
108730         * m4/locale-fr.m4: New file.
108732 2007-02-11  Bruno Haible  <bruno@clisp.org>
108734         * lib/mbsrchr.c (mbsrchr): Fix bug.
108736         * modules/mbsrchr-tests: New file.
108737         * tests/test-mbsrchr.sh: New file.
108738         * tests/test-mbsrchr.c: New file.
108740 2007-02-11  Bruno Haible  <bruno@clisp.org>
108742         * lib/mbschr.c (mbschr): Fix bug.
108744         * modules/mbschr-tests: New file.
108745         * tests/test-mbschr.sh: New file.
108746         * tests/test-mbschr.c: New file.
108747         * m4/locale-zh.m4: New file.
108749 2007-02-11  Bruno Haible  <bruno@clisp.org>
108751         Support for copying multibyte string iterators.
108752         * lib/mbiter.h: Include <string.h>.
108753         (mbiter_multi_copy): New function.
108754         (mbi_copy): New macro.
108755         * lib/mbuiter.h: Include <string.h>.
108756         (mbuiter_multi_copy): New function.
108757         (mbui_copy): New macro.
108759 2007-02-11  Bruno Haible  <bruno@clisp.org>
108761         New module mbslen.
108762         * modules/mbslen: New file.
108763         * lib/mbslen.c: New file.
108764         * lib/string_.h (mbslen): New declaration.
108765         * m4/mbslen.m4: New file.
108766         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108767         GNULIB_MBSLEN.
108768         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
108769         * MODULES.html.sh (Internationalization functions): Add mbslen.
108771 2007-02-11  Bruno Haible  <bruno@clisp.org>
108773         Ensure O(n) worst-case complexity of strcasestr substitute.
108774         * lib/strcasestr.c: Include stdbool.h.
108775         (knuth_morris_pratt): New function.
108776         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
108777         bookkeeping indicates that it's worth it.
108778         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
108780         * modules/strcasestr-tests: New file.
108781         * tests/test-strcasestr.c: New file.
108783 2007-02-11  Bruno Haible  <bruno@clisp.org>
108785         Ensure O(n) worst-case complexity of c_strcasestr.
108786         * lib/c-strcasestr.c: Include stdbool.h, string.h.
108787         (knuth_morris_pratt): New function.
108788         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
108789         the bookkeeping indicates that it's worth it.
108790         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
108792         * modules/c-strcasestr-tests: New file.
108793         * tests/test-c-strcasestr.c: New file.
108795 2007-02-11  Bruno Haible  <bruno@clisp.org>
108797         Ensure O(n) worst-case complexity of c_strstr.
108798         * lib/c-strstr.c: Include stdbool.h, string.h.
108799         (knuth_morris_pratt): New function.
108800         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
108801         bookkeeping indicates that it's worth it.
108802         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
108804         * lib/c-strstr.c: Complete rewrite for maintainability.
108806         * modules/c-strstr-tests: New file.
108807         * tests/test-c-strstr.c: New file.
108809 2007-02-11  Bruno Haible  <bruno@clisp.org>
108811         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
108812         5.2.1 and earlier, whereby \055 was treated just like the range
108813         delimiter '-'.
108814         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
108816 2007-02-08  Bruno Haible  <bruno@clisp.org>
108818         * modules/regex (Depends-on): Add stdbool.
108819         Reported by Dalibor Topic <robilad@kaffe.org>.
108821 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
108823         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
108824         Prefer returning from main to exiting from it.
108825         Remove unnecessary parens after sizeof.
108827 2007-02-05  Bruno Haible  <bruno@clisp.org>
108829         New module mbssep.
108830         * modules/mbssep: New file.
108831         * lib/mbssep.c: New file.
108832         * lib/string_.h (strsep): Add a conditional link warning.
108833         (mbssep): New declaration.
108834         * m4/mbssep.m4: New file.
108835         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108836         GNULIB_MBSSEP.
108837         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
108838         * MODULES.html.sh (Internationalization functions): Add mbssep.
108840 2007-02-05  Bruno Haible  <bruno@clisp.org>
108842         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
108843         Optimize search in case of 1 delimiter.
108845 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
108847         * lib/acl.h: Include sys/types.h before sys/acl.h.
108849 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
108851         Merge upstream fix for glibc bugzilla #3957:
108853         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
108855         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
108856         bit for RE_HAT_LISTS_NOT_NEWLINE.
108857         (build_charclass_op): Remove bogus comment.
108859 2007-02-05  Simon Josefsson  <simon@josefsson.org>
108861         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
108863 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
108865         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
108866         * lib/memmem.c [!defined _LIBC]: Include config.h.
108868 2007-02-04  Bruno Haible  <bruno@clisp.org>
108870         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
108871         warning message.
108873 2007-02-04  Bruno Haible  <bruno@clisp.org>
108875         New module mbstok_r.
108876         * modules/mbstok_r: New file.
108877         * lib/mbstok_r.c: New file.
108878         * lib/string_.h (strtok_r): Change argument names to match the
108879         comments. Add a conditional link warning.
108880         (mbstok_r): New declaration.
108881         * m4/mbstok_r.m4: New file.
108882         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108883         GNULIB_MBSTOK_R.
108884         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
108885         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
108887 2007-02-04  Bruno Haible  <bruno@clisp.org>
108889         New module mbsspn.
108890         * modules/mbsspn: New file.
108891         * lib/mbsspn.c: New file.
108892         * lib/string_.h (strspn): Add a conditional link warning.
108893         (mbsspn): New declaration.
108894         * m4/mbsspn.m4: New file.
108895         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108896         GNULIB_MBSSPN.
108897         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
108898         * MODULES.html.sh (Internationalization functions): Add mbsspn.
108900 2007-02-04  Bruno Haible  <bruno@clisp.org>
108902         New module mbspbrk.
108903         * modules/mbspbrk: New file.
108904         * lib/mbspbrk.c: New file.
108905         * lib/string_.h (strpbrk): Add a conditional link warning.
108906         (mbspbrk): New declaration.
108907         * m4/mbspbrk.m4: New file.
108908         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108909         GNULIB_MBSPBRK.
108910         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
108911         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
108913 2007-02-04  Bruno Haible  <bruno@clisp.org>
108915         New module mbscspn.
108916         * modules/mbscspn: New file.
108917         * lib/mbscspn.c: New file.
108918         * lib/string_.h (strcspn): Add a conditional link warning.
108919         (mbscspn): New declaration.
108920         * m4/mbscspn.m4: New file.
108921         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108922         GNULIB_MBSCSPN.
108923         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
108924         * MODULES.html.sh (Internationalization functions): Add mbscspn.
108926 2007-02-04  Bruno Haible  <bruno@clisp.org>
108928         New module mbscasestr, reduced goal of strcasestr.
108929         * modules/mbscasestr: New file.
108930         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
108931         (mbscasestr): Renamed from strcasestr.
108932         * lib/strcasestr.c: Don't include mbuiter.h.
108933         (strcasestr): Remove support for multibyte locales.
108934         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
108935         Change the conditional link warning.
108936         (mbscasestr): New declaration.
108937         * m4/mbscasestr.m4: New file.
108938         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
108939         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
108940         REPLACE_STRCASESTR.
108941         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
108942         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
108943         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
108944         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
108945         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
108946         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
108947         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
108948         (Depends-on): Remove mbuiter.
108949         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
108951 2007-02-04  Bruno Haible  <bruno@clisp.org>
108953         Simplify handling of strncasecmp.
108954         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
108955         the conditional link warning.
108956         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
108957         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
108958         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
108959         * modules/strcase (configure.ac): Don't invoke
108960         gl_STRING_MODULE_INDICATOR.
108961         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
108963 2007-02-04  Bruno Haible  <bruno@clisp.org>
108965         New module mbscasecmp, reduced goal of strcasecmp.
108966         * modules/mbscasecmp: New file.
108967         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
108968         (mbscasecmp): Renamed from strcasecmp.
108969         * lib/strcasecmp.c: Don't include mbuiter.h.
108970         (strcasecmp): Remove support for multibyte locales.
108971         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
108972         Change the conditional link warning.
108973         (mbscasecmp): New declaration.
108974         * m4/mbscasecmp.m4: New file.
108975         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
108976         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
108977         REPLACE_STRCASECMP.
108978         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
108979         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108980         GNULIB_MBSCASECMP.
108981         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
108982         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
108983         * modules/strcase (Files): Remove m4/mbrtowc.m4.
108984         (Depends-on): Remove mbuiter.
108985         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
108987 2007-02-04  Bruno Haible  <bruno@clisp.org>
108989         New module mbsstr. Remove module strstr.
108990         * modules/mbsstr: New file.
108991         * modules/strstr: Remove file.
108992         * lib/mbsstr.c: Renamed from lib/strstr.c.
108993         (mbsstr): Renamed from strstr.
108994         * lib/string_.h (strstr): Remove declaration. Change the conditional
108995         link warning.
108996         (mbsstr): New declaration.
108997         * m4/mbsstr.m4: New file.
108998         * m4/strstr.m4: Remove file.
108999         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
109000         REPLACE_STRSTR.
109001         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
109002         Don't initialize GNULIB_STRSTR.
109003         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
109004         substitute GNULIB_STRSTR and REPLACE_STRSTR.
109005         * MODULES.html.sh (Internationalization functions): Add mbsstr.
109006         (Support for systems lacking ANSI C 89): Remove strstr.
109008 2007-02-04  Bruno Haible  <bruno@clisp.org>
109010         New module mbsrchr.
109011         * modules/mbsrchr: New file.
109012         * lib/mbsrchr.c: New file.
109013         * lib/string_.h (strrchr): Add a conditional link warning.
109014         (mbsrchr): New declaration.
109015         * m4/mbsrchr.m4: New file.
109016         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
109017         GNULIB_MBSRCHR.
109018         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
109019         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
109021 2007-02-04  Bruno Haible  <bruno@clisp.org>
109023         New module mbschr.
109024         * modules/mbschr: New file.
109025         * lib/mbschr.c: New file.
109026         * lib/string_.h (strchr): Add a conditional link warning.
109027         (mbschr): New declaration.
109028         * m4/mbschr.m4: New file.
109029         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
109030         GNULIB_MBSCHR.
109031         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
109032         * MODULES.html.sh (Internationalization functions): Add mbschr.
109034 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
109036         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
109038         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
109040 2007-02-04  Bruno Haible  <bruno@clisp.org>
109042         New module description section 'configure.ac-early'.
109043         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
109044         (func_get_autoconf_early_snippet): New function.
109045         (func_import, func_create_testdir): Use it. Remove special cases for
109046         modules 'extensions' and 'lock'.
109047         * modules/extensions (configure.ac-early): Require
109048         gl_USE_SYSTEM_EXTENSIONS.
109049         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
109051 2007-02-04  Bruno Haible  <bruno@clisp.org>
109053         Make use of gcj-4.3's -fsource and -ftarget option.
109054         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
109055         and if so try the options -fsource and -ftarget.
109056         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
109057         source_version, ftarget_option, target_version arguments.
109058         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
109059         (is_envjavac_oldgcj_14_14_usable): Renamed from
109060         is_envjavac_gcj_14_14_usable.
109061         (is_envjavac_oldgcj_14_13_usable): Renamed from
109062         is_envjavac_gcj_14_13_usable.
109063         (is_gcj_present): Update.
109064         (is_gcj_43, is_gcj43_usable): New functions.
109065         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
109066         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
109067         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
109068         try the options -fsource and -ftarget.
109070 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
109072         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
109073         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
109074         larger value.
109076 2007-02-03  Jim Meyering  <jim@meyering.net>
109078         Give tools a better chance to allocate space for very large buffers.
109079         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
109081         Make pwd and readlink work also when run with an unreadable parent dir
109082         on systems with openat support.
109083         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
109084         provided getcwd function, even when we have openat support.
109085         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
109087 2007-02-02  Bruno Haible  <bruno@clisp.org>
109089         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
109090         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
109091         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
109092         portability problems if one of these functions is only used on specific
109093         platforms.
109094         Reported by Paul Eggert.
109096 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
109098         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
109099         is causing more trouble than it's curing.
109100         * lib/regex_internal.h (__mempcpy): Remove.
109101         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
109102         (and make the code a tad smaller to boot).
109103         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
109105 2007-02-02  Jim Meyering  <jim@meyering.net>
109107         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
109108         section, not in the Makefile.am: one.
109110 2007-02-02  Eric Blake  <ebb9@byu.net>
109112         * lib/strchrnul.c: Always include config.h first.
109114         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
109115         gnulib strstr is not necessary here.
109117 2007-02-02  Simon Josefsson  <simon@josefsson.org>
109119         * m4/socklen.m4: Fix typo.
109121 2007-02-02  Eric Blake  <ebb9@byu.net>
109123         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
109124         * modules/netinet_in (Makefile.am): Likewise.
109126 2007-02-01  Bruno Haible  <bruno@clisp.org>
109128         * lib/string_.h (GL_LINK_WARNING): New macro.
109129         (strcasecmp, strstr, strcasestr): If provided by the system,
109130         conditionally define as a macro that leads to a warning instead of to
109131         an error.
109132         (strncasecmp): Conditionally define as a macro that leads to a warning.
109134 2007-02-01  Karl Berry  <karl@gnu.org>
109136         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
109138 2007-02-01  Bruno Haible  <bruno@clisp.org>
109140         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
109141         renamings.
109143 2007-02-01  Eric Blake  <ebb9@byu.net>
109145         * modules/regex (Depends-on): Revert dependence on mempcpy.
109146         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
109147         module's definition of mempcpy.
109148         Reported by Paul Eggert.
109150 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
109152         * lib/string_.h: If the gnulib module XYZ is not present, undefine
109153         the symbol XYZ before redefining it.  This fixes a problem with
109154         programs that don't use XYZ, when compiled on systems that define
109155         XYZ to something else.
109157 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
109159         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
109160         occurs when "mkdir -m foo" creates a setgid directory that is (1)
109161         writeable to group or other and (2) is intended to have a special
109162         mode bit that is set or cleared.  In such a case, the directory
109163         should be neither group- nor other-writeable until the special
109164         mode bits are right.
109166 2007-01-31  Eric Blake  <ebb9@byu.net>
109168         * modules/mountlist (Depends-on): Add strstr.
109170         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
109171         bug.
109172         * modules/string (Makefile.am): Remove redundant replacement.
109173         * modules/regex (Depends-on): Add mempcpy.
109175 2007-01-31  Bruno Haible  <bruno@clisp.org>
109177         New module description field 'Link'.
109178         * gnulib-tool (func_usage): Document --extract-link-directive.
109179         (sed_extract_prog): Recognize 'Link' directive.
109180         (func_get_link_directive): New function.
109181         (func_import): Show summary of link directives.
109182         Handle --extract-link-directive option.
109183         * modules/acl (Link): New section.
109184         * modules/clock-time (Link): New section.
109185         * modules/euidaccess (Link): New section.
109186         * modules/gettext (Link): New section.
109187         * modules/iconv (Link): New section.
109188         * modules/lock (Link): New section.
109189         * modules/nanosleep (Link): New section.
109190         * modules/readline (Link): New section.
109192 2007-01-27  Bruno Haible  <bruno@clisp.org>
109194         Enforce the use of gnulib modules for unportable <string.h> functions.
109195         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
109196         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
109197         (gl_HEADER_STRING_H_BODY): Require it.
109198         * lib/string_.h: If the gnulib module XYZ is not present, redefine
109199         the symbol XYZ to one that gives a link error.
109200         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
109201         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
109202         * modules/mempcpy (configure.ac): Likewise.
109203         * modules/memrchr (configure.ac): Likewise.
109204         * modules/stpcpy (configure.ac): Likewise.
109205         * modules/stpncpy (configure.ac): Likewise.
109206         * modules/strcase (configure.ac): Likewise.
109207         * modules/strcasestr (configure.ac): Likewise.
109208         * modules/strchrnul (configure.ac): Likewise.
109209         * modules/strdup (configure.ac): Likewise.
109210         * modules/strndup (configure.ac): Likewise.
109211         * modules/strnlen (configure.ac): Likewise.
109212         * modules/strpbrk (configure.ac): Likewise.
109213         * modules/strsep (configure.ac): Likewise.
109214         * modules/strstr (configure.ac): Likewise.
109215         * modules/strtok_r (configure.ac): Likewise.
109217 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
109219         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
109221 2007-01-30  Jim Meyering  <jim@meyering.net>
109223         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
109225 2007-01-29  Bruno Haible  <bruno@clisp.org>
109227         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
109228         * lib/execute.c: Likewise.
109229         * lib/pipe.c: Likewise.
109230         * lib/printf-args.h: Likewise.
109231         * lib/printf-args.c: Likewise.
109232         * lib/printf-parse.c: Likewise.
109233         * lib/vasnprintf.c: Likewise.
109235 2007-01-29  Eric Blake  <ebb9@byu.net>
109237         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
109238         declaration.
109240 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
109242         * lib/strptime.h (strptime): Use 'restrict' for args where
109243         POSIX requires this.
109244         * lib/strptime.c (strptime): Likewise.
109245         Change license notice from LGPL to GPL, since gnulib-tool will
109246         change this as needed.
109247         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
109248         defined.
109249         Include "strptime.h" first, to check interface.
109250         Do not #undef _LIBC and _NL_CURRENT.
109251         Do not include <stdlib.h>; no longer needed.
109252         Include "time_r.h" and declare ptime_locale_status
109253         only if _LIBC is not defined.
109254         (__P): Remove unused macro.
109255         (match_string): Bring back glibc version, but use it only if _LIBC
109256         is defined.
109257         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
109258         Remove unnecessary assertion and abort() call.
109259         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
109260         * m4/strptime.m4: Fix serial number comment.
109261         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
109262         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
109263         (Depends-on): Add time_r.
109265 2007-01-29  Bruno Haible  <bruno@clisp.org>
109267         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
109268         strptime.
109269         * modules/strptime (Depends-on): Add stdbool.
109270         * lib/strptime.h: Include <time.h> always. Add comments.
109272 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
109274         * modules/strptime: New file.
109275         * lib/strptime.h: New file.
109276         * lib/strptime.c: New file.
109277         * m4/strptime.m4: New file.
109279 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
109281         * MODULES.html.sh: New module mpsort.
109282         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
109284         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
109285         a circularity problem with HP-UX ia64 reported by Bob Proulx in
109286         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00394.html>.
109287         All uses changed.
109288         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
109289         All uses changed.
109290         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
109291         to _Restrict_.
109292         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
109293         the parameter matches the prototype.
109295 2007-01-28  Jim Meyering  <jim@meyering.net>
109297         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
109298         sys/time.h here, reverting that part of the previous patch:
109299         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
109301 2007-01-28  Bruno Haible  <bruno@clisp.org>
109303         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
109304         value of $(SYS_TIME_H).
109305         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
109306         remove it conditionally, too. [added by Jim Meyering]
109307         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
109308         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
109309         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
109310         GETTIMEOFDAY_REPLACEMENT to 1.
109312 2007-01-28  Bruno Haible  <bruno@clisp.org>
109314         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
109315         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
109316         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
109317         Set UNISTD_H instead of UNISTD_H2.
109318         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
109320 2007-01-28  Bruno Haible  <bruno@clisp.org>
109322         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
109323         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
109325 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109327         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
109328         (func_create_testdir): Ensure C locale for `grep' and `tr'
109329         character ranges.
109330         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
109331         ACLOCAL_AMFLAGS parsing state machine.
109333 2007-01-27  Bruno Haible  <bruno@clisp.org>
109335         * modules/unistr/base: Update.
109337 2007-01-27  Bruno Haible  <bruno@clisp.org>
109339         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
109340         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
109341         * modules/unistr/u32-mbtouc-unsafe: Renamed from
109342         modules/unistr/u32-mbtouc.
109343         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
109344         * lib/unistr.h: Update.
109345         * lib/linebreak.c: Update.
109346         * modules/unistr/u32-mbtouc: Renamed from
109347         modules/unistr/u32-mbtouc-safe.
109348         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
109349         * lib/unistr.h: Update.
109350         * lib/unistr/u32-to-u8.c: Update.
109351         * lib/unistr/u32-to-u16.c: Update.
109353 2007-01-27  Bruno Haible  <bruno@clisp.org>
109355         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
109356         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
109357         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
109358         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
109359         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
109360         * modules/unistr/u16-mbtouc-unsafe: Renamed from
109361         modules/unistr/u16-mbtouc.
109362         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
109363         * lib/unistr.h: Update.
109364         * lib/linebreak.c: Update.
109365         * modules/linebreak: Update.
109366         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
109367         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
109368         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
109369         * modules/unistr/u16-mbtouc: Renamed from
109370         modules/unistr/u16-mbtouc-safe.
109371         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
109372         * lib/unistr.h: Update.
109373         * lib/unistr/u16-to-u8.c: Update.
109374         * modules/unistr/u16-to-u8: Update.
109375         * lib/unistr/u16-to-u32.c: Update.
109376         * modules/unistr/u16-to-u32: Update.
109378 2007-01-27  Bruno Haible  <bruno@clisp.org>
109380         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
109381         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
109382         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
109383         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
109384         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
109385         * modules/unistr/u8-mbtouc-unsafe: Renamed from
109386         modules/unistr/u8-mbtouc.
109387         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
109388         * lib/unistr.h: Update.
109389         * lib/striconveh.c: Update.
109390         * modules/striconveh: Update.
109391         * lib/linebreak.c: Update.
109392         * modules/linebreak: Update.
109393         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
109394         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
109395         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
109396         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
109397         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
109398         * lib/unistr.h: Update.
109399         * lib/striconveh.c: Update.
109400         * modules/striconveh: Update.
109401         * lib/unistr/u8-to-u16.c: Update.
109402         * modules/unistr/u8-to-u16: Update.
109403         * lib/unistr/u8-to-u32.c: Update.
109404         * modules/unistr/u8-to-u32: Update.
109406 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109408         Sync from Libtool.
109409         * lib/argz.c: Do not include strings.h nor memory.h, include
109410         string.h unconditionally.  Patch by Simon Josefsson.
109412 2007-01-27  Bruno Haible  <bruno@clisp.org>
109414         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
109415         from gl_HEADER_STRING_H_BODY.
109416         (gl_HEADER_STRING_H_BODY): Require it.
109417         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
109418         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
109419         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
109420         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
109421         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
109422         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
109423         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
109424         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
109425         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
109426         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
109427         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
109428         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
109429         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
109430         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
109431         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
109433 2007-01-27  Bruno Haible  <bruno@clisp.org>
109435         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
109436         check_PROGRAMS into noinst_PROGRAMS.
109437         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
109438         check_PROGRAMS in this case.
109439         (func_import): Set for_test to false.
109440         (func_create_testdir): Set for_test to true.
109442 2007-01-27  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
109443             Bruno Haible  <bruno@clisp.org>
109445         * modules/strcasestr (Files): Remove lib/strcasestr.h.
109446         (Depends-on): Add string.
109447         (Includes): Use <string.h> instead of strcasestr.h.
109448         * modules/string (Makefile.am): Also substitute the value of
109449         REPLACE_STRCASESTR.
109450         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
109451         assume strcasestr is declared in <string.h> not <strings.h>. Also
109452         set REPLACE_STRCASESTR.
109453         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
109454         REPLACE_STRCASESTR.
109455         * lib/strcasestr.h: Remove file.
109456         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
109457         * lib/string_.h (strcasestr): New declaration.
109459 2007-01-27  Bruno Haible  <bruno@clisp.org>
109461         * lib/string_.h: Use 'extern'.
109463 2007-01-27  Jim Meyering  <jim@meyering.net>
109465         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
109466         of set-but-not-used local, "q".
109468         * lib/mempcpy.c: Include <config.h> before <string.h>.
109469         This fixes a compilation error on HP-UX, due to the system's
109470         "restrict"-using mempcpy prototype.
109472 2007-01-26  Bruno Haible  <bruno@clisp.org>
109474         Small optimization.
109475         * lib/javacomp.c: Include c-strstr.h.
109476          (is_envjavac_gcj): Use c_strstr instead of strstr.
109477         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
109479 2007-01-26  Bruno Haible  <bruno@clisp.org>
109481         * MODULES.html.sh (Unicode string functions): Add the new modules.
109483         * modules/uniconv/u32-strconv-to-locale: New file.
109484         * lib/uniconv/u32-strconv-to-locale.c: New file.
109486         * modules/uniconv/u16-strconv-to-locale: New file.
109487         * lib/uniconv/u16-strconv-to-locale.c: New file.
109489         * modules/uniconv/u8-strconv-to-locale: New file.
109490         * lib/uniconv/u8-strconv-to-locale.c: New file.
109492         * modules/uniconv/u32-strconv-from-locale: New file.
109493         * lib/uniconv/u32-strconv-from-locale.c: New file.
109495         * modules/uniconv/u16-strconv-from-locale: New file.
109496         * lib/uniconv/u16-strconv-from-locale.c: New file.
109498         * modules/uniconv/u8-strconv-from-locale: New file.
109499         * lib/uniconv/u8-strconv-from-locale.c: New file.
109501         * modules/uniconv/u32-strconv-to-enc: New file.
109502         * lib/uniconv/u32-strconv-to-enc.c: New file.
109503         * modules/uniconv/u32-strconv-to-enc-tests: New file.
109504         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
109506         * modules/uniconv/u16-strconv-to-enc: New file.
109507         * lib/uniconv/u16-strconv-to-enc.c: New file.
109508         * lib/uniconv/u-strconv-to-enc.h: New file.
109509         * modules/uniconv/u16-strconv-to-enc-tests: New file.
109510         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
109512         * modules/uniconv/u8-strconv-to-enc: New file.
109513         * lib/uniconv/u8-strconv-to-enc.c: New file.
109514         * modules/uniconv/u8-strconv-to-enc-tests: New file.
109515         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
109517         * modules/uniconv/u32-strconv-from-enc: New file.
109518         * lib/uniconv/u32-strconv-from-enc.c: New file.
109519         * modules/uniconv/u32-strconv-from-enc-tests: New file.
109520         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
109522         * modules/uniconv/u16-strconv-from-enc: New file.
109523         * lib/uniconv/u16-strconv-from-enc.c: New file.
109524         * modules/uniconv/u16-strconv-from-enc-tests: New file.
109525         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
109527         * modules/uniconv/u8-strconv-from-enc: New file.
109528         * lib/uniconv/u8-strconv-from-enc.c: New file.
109529         * lib/uniconv/u-strconv-from-enc.h: New file.
109530         * modules/uniconv/u8-strconv-from-enc-tests: New file.
109531         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
109533         * modules/uniconv/u32-conv-from-enc: New file.
109534         * lib/uniconv/u32-conv-from-enc.c: New file.
109535         * modules/uniconv/u32-conv-from-enc-tests: New file.
109536         * tests/uniconv/test-u32-conv-from-enc.c: New file.
109538         * modules/uniconv/u16-conv-from-enc: New file.
109539         * lib/uniconv/u16-conv-from-enc.c: New file.
109540         * lib/uniconv/u-conv-from-enc.h: New file.
109541         * modules/uniconv/u16-conv-from-enc-tests: New file.
109542         * tests/uniconv/test-u16-conv-from-enc.c: New file.
109544         * modules/uniconv/u8-conv-from-enc: New file.
109545         * lib/uniconv/u8-conv-from-enc.c: New file.
109546         * modules/uniconv/u8-conv-from-enc-tests: New file.
109547         * tests/uniconv/test-u8-conv-from-enc.c: New file.
109549         * modules/uniconv/base: New file.
109550         * lib/uniconv.h: New file.
109552 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
109554         * doc/gnulib-tool.texi (Initial import): Update to match current
109555         behavior with strdup module.
109556         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
109557         * lib/memmem.h: Remove; all uses removed.  This is now done
109558         by <string.h>.
109559         * lib/mempcpy.h: Likewise.
109560         * lib/memrchr.h: Likewise.
109561         * lib/stpcpy.h: Likewise.
109562         * lib/stpncpy.h: Likewise.
109563         * lib/strcase.h: Likewise.
109564         * lib/strchrnul.h: Likewise.
109565         * lib/strdup.h: Likewise.
109566         * lib/strndup.h: Likewise.
109567         * lib/strnlen.h: Likewise.
109568         * lib/strpbrk.h: Likewise.
109569         * lib/strsep.h: Likewise.
109570         * lib/strstr.h: Likewise.
109571         * lib/strtok_r.h: Likewise.
109572         * lib/string_.h: New file.
109573         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
109574         Rely on <string.h> instead.
109575         * lib/canon-host.c: Likewise.
109576         * lib/chdir-long.c: Likewise.
109577         * lib/concatpath.c: Likewise.
109578         * lib/exclude.c: Likewise.
109579         * lib/fchdir.c: Likewise.
109580         * lib/getaddrinfo.c: Likewise.
109581         * lib/getcwd.c: Likewise.
109582         * lib/getsubopt.c: Likewise.
109583         * lib/glob.c: Likewise.
109584         * lib/hard-locale.c: Likewise.
109585         * lib/iconvme.c: Likewise.
109586         * lib/javacomp.c: Likewise.
109587         * lib/mempcpy.c: Likewise.
109588         * lib/memrchr.c: Likewise.
109589         * lib/regex_internal.h: Likewise.
109590         * lib/stpncpy.c: Likewise.
109591         * lib/strcasecmp.c: Likewise.
109592         * lib/strchrnul.c: Likewise.
109593         * lib/strdup.c: Likewise.
109594         * lib/striconv.c: Likewise.
109595         * lib/striconveh.c: Likewise.
109596         * lib/striconveha.c: Likewise.
109597         * lib/strncasecmp.c: Likewise.
109598         * lib/strndup.c: Likewise.
109599         * lib/strnlen.c: Likewise.
109600         * lib/strsep.c: Likewise.
109601         * lib/strstr.c: Likewise.
109602         * lib/strtok_r.c: Likewise.
109603         * lib/userspec.c: Likewise.
109604         * lib/w32spawn.h: Likewise.
109605         * lib/xstrndup.c: Likewise.
109606         * lib/mountlist.c (strstr): Remove decl.
109607         * m4/string_h.m4: New file.
109608         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
109609         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
109610         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
109611         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
109612         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
109613         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
109614         Set REPLACE_STRCASECMP if necessary.
109615         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
109616         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
109617         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
109618         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
109619         HAVE_DECL_STRDUP if necessary.
109620         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
109621         since gl_FUNC_STRNDUP does that now.
109622         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
109623         Check for decl here...
109624         (gl_PREREQ_STRNLEN): ... not here.
109625         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
109626         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
109627         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
109628         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
109629         necessary.
109630         * modules/string: New file.
109631         * modules/memmem (Files): Remove special-purpose include file.
109632         (Depends-on): Add string.
109633         (Include): Include <string.h>, not the removed file.
109634         * modules/mempcpy: Likewise.
109635         * modules/memrchr: Likewise.
109636         * modules/stpcpy: Likewise.
109637         * modules/stpncpy: Likewise.
109638         * modules/strcase: Likewise.
109639         * modules/strchrnul: Likewise.
109640         * modules/strdup: Likewise.
109641         * modules/strndup: Likewise.
109642         * modules/strnlen: Likewise.
109643         * modules/strpbrk: Likewise.
109644         * modules/strsep: Likewise.
109645         * modules/strstr: Likewise.
109646         * modules/strtok_r: Likewise.
109647         * tests/test-dirname.c: Don't include "strdup.h", since
109648         <string.h> now suffices.
109649         * tests/test-memmem.c: Don't include "memmem.h", since
109650         <string.h> now suffices.
109652 2007-01-25  Bruno Haible  <bruno@clisp.org>
109654         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
109655         *resultp is 0.
109657         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
109658         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
109659         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
109660         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
109662         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
109663         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
109664         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
109665         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
109666         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
109667         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
109669 2007-01-24  Bruno Haible  <bruno@clisp.org>
109671         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
109672         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00279.html>.
109673         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
109674         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
109675         gl_FUNC_FTS_CORE.
109676         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
109677         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
109678         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
109679         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
109680         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
109681         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
109682         gl_FUNC_FCHOWNAT.
109683         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
109684         gl_FUNC_STRFTIME.
109685         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
109686         Reported by Ralf Wildenhues.
109688 2007-01-24  Bruno Haible  <bruno@clisp.org>
109690         Drop AC_REQUIRE calls that are redundant with the module dependencies.
109691         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
109692         gl_GETADDRINFO.
109693         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
109694         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
109695         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
109697 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
109699         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
109700         Don't use 'exit'; just return from 'main'.
109701         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
109703         * lib/fnmatch_.h: Readjust white space and comments to match
109704         glibc, to avoid spurious diffs.
109706 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
109708         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
109709         2004-12-01 change by Jakub Jelinek, since this code won't compile
109710         if !LIBC.  Problem reported by Bob Proulx.
109712 2007-01-23  Bruno Haible  <bruno@clisp.org>
109714         * lib/striconveh.c: Include c-strcaseeq.h.
109715         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
109716         * modules/striconveh (Depends-on): Add c-strcaseeq.
109718 2007-01-23  Bruno Haible  <bruno@clisp.org>
109720         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
109722         * modules/c-strcaseeq: New file.
109723         * lib/c-strcaseeq.h: New file.
109725         * modules/streq: New file.
109726         * lib/streq.h: New file.
109728 2007-01-23  Bruno Haible  <bruno@clisp.org>
109730         * modules/striconveha-tests: New file.
109731         * tests/test-striconveha.c: New file.
109733         * lib/striconveha.h: Include <stdbool.h>.
109734         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
109735         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
109736         (mem_iconveha_notranslit): Renamed from mem_iconveha.
109737         (mem_iconveha): New function.
109738         (str_iconveha_notranslit): Renamed from str_iconveha.
109739         (str_iconveha): New function.
109740         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
109741         c-strcase.
109743 2007-01-23  Bruno Haible  <bruno@clisp.org>
109745         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
109746         encodings without forgiving before trying any encoding with handler.
109747         (str_iconveha): Try all encodings without forgiving before trying any
109748         encoding with handler.
109750 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
109752         Import the following changes from libc.
109754         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
109756         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
109758         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
109760         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
109761         normal_bracket label.
109763         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
109765         [BZ #361]
109766         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
109767         to normal_bracket after fetching the next character.
109769 2007-01-22  Bruno Haible  <bruno@clisp.org>
109771         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
109772         argument.
109773         * lib/striconveh.c (iconv_carefully_1): New function.
109774         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
109775         argument.
109776         (str_cd_iconveh): Update.
109777         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
109778         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
109779         * tests/test-striconveh.c (MAGIC): New macro.
109780         (new_offsets): New function.
109781         (main): Test call with and without offsets.
109783 2007-01-22  Bruno Haible  <bruno@clisp.org>
109785         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
109786         * modules/sys_select (Makefile.am): Likewise.
109787         * modules/sys_socket (Makefile.am): Likewise.
109788         * modules/sys_time (Makefile.am): Likewise.
109790 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
109792         * modules/gettimeofday (License): Change from GPL to LGPL, since
109793         gettimeofday is a library function.
109795 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
109797         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
109799 2007-01-21  Bruno Haible  <bruno@clisp.org>
109801         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
109803 2007-01-21  Bruno Haible  <bruno@clisp.org>
109805         * modules/striconveha: New file.
109806         * lib/striconveha.h: New file.
109807         * lib/striconveha.c: New file.
109808         * MODULES.html.sh (Internationalization functions): Add striconveha.
109809         * lib/striconv.c (str_iconv): Optimize the case of an empty input
109810         string.
109811         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
109813 2007-01-21  Bruno Haible  <bruno@clisp.org>
109815         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
109816         * lib/striconveh.c (str_iconveh): Likewise.
109818 2007-01-21  Bruno Haible  <bruno@clisp.org>
109820         * lib/striconveh.h (mem_iconveh): New declaration.
109821         * lib/striconveh.c (mem_iconveh): New function.
109822         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
109824 2007-01-21  Bruno Haible  <bruno@clisp.org>
109826         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
109828         * lib/striconveh.h (mem_cd_iconveh): Change specification.
109829         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
109830         original result buffer.
109831         (str_cd_iconveh): Update.
109832         * tests/test-striconveh.c (main): Update.
109834         * lib/striconv.h (mem_cd_iconv): Change specification.
109835         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
109836         result buffer.
109837         (str_cd_iconv): Update.
109838         * tests/test-striconv.c (main): Update.
109840 2007-01-21  Bruno Haible  <bruno@clisp.org>
109842         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
109844 2007-01-20  Jim Meyering  <jim@meyering.net>
109846         * lib/userspec.c (parse_with_separator): If a user or group string
109847         starts with "+", skip the corresponding name-to-ID look-up, since
109848         such a look-up must fail: user and group names may not include "+".
109850 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
109852         * lib/poll.c: Include sys/time.h and time.h unconditionally,
109853         since we now assume the sys_time module.
109854         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
109855         check for sys/time.h; no longer needed.
109856         * modules/poll (Depends-on): Depend on sys_time.
109858 2007-01-18  Bruno Haible  <bruno@clisp.org>
109860         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
109861         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
109863         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
109864         gettimeofday.
109866         * tests/test-gettimeofday.c: Include <time.h>.
109867         (dummy): Remove variable.
109869         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
109870         gl_HEADER_SYS_TIME_H.
109871         (gl_HEADER_SYS_TIME_H): New macro.
109873         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
109874         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
109875         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
109876         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
109877         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
109878         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
109879         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
109880         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
109881         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
109882         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
109883         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
109885         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
109886         last change; it caused a compilation error when cross-compiling to
109887         Cygwin.
109889 2007-01-18  Jim Meyering  <jim@meyering.net>
109891         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
109892         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
109893         than the race-prone "test -d sys || mkdir sys".
109894         (configure.ac): Use AC_PROG_MKDIR_P.
109895         * modules/sys_select: Likewise.
109896         * modules/sys_socket: Likewise.
109897         * modules/sys_time: Likewise.
109899 2007-01-18  Eric Blake  <ebb9@byu.net>
109901         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
109902         replace gettimeofday.
109903         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
109904         name, to avoid infinite recursion.
109906 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
109908         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
109909         module sys_time.
109910         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
109911         assume timespec.h defines struct timeval.
109912         * lib/settime.c: Likewise.
109913         * lib/utimens.c: Likewise.
109914         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
109915         since we now assume the gettimeofday module.
109916         * lib/tempname.c (__gen_tempname): Likewise.
109917         * lib/gettimeofday.h: Remove.
109918         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
109919         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
109920         Include <time.h>, for 'time()'.
109921         (localtime_buffer_addr): Also use this workaround if
109922         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
109923         to simplify the uses.  All uses changed.
109924         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
109925         that #undef is inside {}, and 'const' follows type name consistently.
109926         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
109927         (gettimeofday): Do not use the maximum possible value for
109928         tv->tv_usec, since that might break usages other than ls.c.
109929         Instead, we'll leave ls.c alone.  This undoes today's patch
109930         by Bruno.  Add a compile-time warning for 1s-clock resolution;
109931         we've never observed the problem but might as well keep the
109932         canary.
109933         * lib/nanosleep.c: Include timespec.h first, for interface check.
109934         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
109935         now assume the sys_time module.
109936         * lib/tempname.c: Likewise.
109937         * lib/timespec.h: Likewise.
109938         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
109939         needed.
109940         * lib/strftime.c: Likewise.
109941         * lib/timespec.h: Likewise.
109942         * lib/posixtm.c: Include posixtm.h first, for interface check.
109943         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
109944         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
109945         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
109946         * lib/sys_time_.h: New file.
109947         * lib/timespec.h (struct timespec): Use long int, not long.
109948         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
109949         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
109950         Remove obsolescent call to AC_HEADER_TIME.
109951         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
109952         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
109953         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
109954         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
109955         Likewise.
109956         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
109957         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
109958         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
109959         into the sys_time module.  Check for gettimeofday just once.
109960         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
109961         for gettimeofday signature to just check the signature.  Merely
109962         compile it, since linking doesn't test signature.  Improve test for
109963         whether gettimeofday.o is actually needed.
109964         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
109965         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
109966         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
109967         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
109968         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
109969         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
109970         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
109971         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
109972         than worrying about sys/time.h.
109973         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
109974         Don't bother worrying about TIME_WITH_SYS_TIME.
109975         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
109976         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
109977         * m4/sys_time_h.m4: New file.
109978         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
109979         Don't include sys/time.h.  Return from main rather than exiting.
109980         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
109981         all uses changed.
109982         * modules/gethrxtime (Depends-on): Add sys_time.
109983         * modules/gettime (Depends-on): Likewise.
109984         * modules/gettimeofday (Depends-on): Likewise.
109985         * modules/nanosleep (Depends-on): Likewise.
109986         * modules/settime (Depends-on): Likewise.
109987         * modules/tempname (Depends-on): Likewise.
109988         * modules/utimens (Depends-on): Likewise.
109989         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
109990         (Include): Change back to <sys/time.h>.
109991         (Maintainer): Add self.
109992         * modules/sys_time: New file.
109993         * modules/tempname (Depends-on): Add gettimeofday.
109994         * tests/test-gettimeofday.c: Include <sys/time.h>
109995         rather than gettimeofday.h.
109997 2007-01-17  Bruno Haible  <bruno@clisp.org>
109999         * gnulib-tool (func_get_license): Revert last patch. Instead, let
110000         the license default to GPL.
110001         (func_create_testdir): Don't complain if a module is LGPL and its
110002         tests module depends on GPLed modules.
110004 2007-01-17  Bruno Haible  <bruno@clisp.org>
110006         * lib/gettimeofday.c (gettimeofday): Add code for the case
110007         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
110008         maximum possible value for tv->tv_usec, rather than the minimum one.
110010 2005-10-08  Martin Lambers  <marlam@marlam.de>
110011 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
110012 2007-01-16  Bruno Haible  <bruno@clisp.org>
110014         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
110015         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
110016         gl_FUNC_GETTIMEOFDAY.
110017         (Include): Add gettimeofday.h.
110018         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
110019         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
110020         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
110021         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
110022         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
110023         * lib/gettimeofday.h: New file.
110024         * lib/gettimeofday.c: Include <sys/timeb.h>.
110025         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
110026         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
110027         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
110028         fall back on time().
110030         * tests/test-gettimeofday.c: New file.
110031         * modules/gettimeofday-tests: New file.
110033 2007-01-16  Eric Blake  <ebb9@byu.net>
110035         * modules/fnmatch (Depends-on): Depend on wchar.
110036         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
110037         * m4/fnmatch.m4: Likewise.
110038         * modules/mbchar (Makefile.am): Assume <wchar.h>.
110039         * m4/mbchar.m4: Likewise.
110040         * modules/mbswidth (Depends-on): Depend on wchar.
110041         * lib/mbswidth.c: Assume <wchar.h>.
110042         * m4/mbswidth.m4: Likewise.
110043         * modules/quotearg (Depends-on): Depend on wchar.
110044         * lib/quotearg.c: Assume <wchar.h>.
110045         * m4/quotearg.m4: Likewise.
110046         * modules/regex (Depends-on): Depend on wchar.
110047         * lib/regex_internal.h: Assume <wchar.h>.
110048         * m4/regex.m4: Likewise.
110049         * modules/stdint (Depends-on): Depend on wchar.
110050         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
110051         * m4/stdint.m4: Likewise.
110052         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
110053         * modules/strftime (Depends-on): Depend on wchar.
110054         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
110055         * modules/strtol (Depends-on): Depend on wchar.
110056         * lib/strtol.c: Assume <wchar.h>.
110057         * modules/wcwidth (Depends-on): Depend on wchar.
110058         * lib/wcwidth.h: Assume <wchar.h>.
110059         * m4/wcwidth.m4: Likewise.
110061 2007-01-16  Bruno Haible  <bruno@clisp.org>
110063         * modules/csharpexec-script: New, created from...
110064         * modules/csharpexec: ... this.
110066 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
110068         * modules/javaexec-script: New, created from...
110069         * modules/javaexec: ... this.
110071 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
110073         * modules/poll (Dependencies): Add sys_select.
110075 2007-01-15  Jim Meyering  <jim@meyering.net>
110077         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
110078         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
110079         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
110080         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
110082 2007-01-15  Bruno Haible  <bruno@clisp.org>
110084         * modules/striconveh: New file.
110085         * lib/striconveh.h: New file.
110086         * lib/striconveh.c: New file.
110087         * MODULES.html.sh (Internationalization functions): Add striconveh.
110089         * modules/striconveh-tests: New file.
110090         * tests/test-striconveh.c: New file.
110092 2007-01-15  Bruno Haible  <bruno@clisp.org>
110094         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
110095         not from GNU libiconv or GNU libc.
110097 2007-01-15  Bruno Haible  <bruno@clisp.org>
110099         * doc/gnulib-intro.texi (Copyright): Explain the different license
110100         terms for module descriptions, autoconf macros, tests, documentation.
110102 2007-01-14  Bruno Haible  <bruno@clisp.org>
110104         * modules/striconv-tests: New file.
110105         * tests/test-striconv.c: New file.
110107 2007-01-14  Bruno Haible  <bruno@clisp.org>
110109         * modules/iconv-tests: New file.
110110         * tests/test-iconv.c: New file.
110112 2007-01-14  Bruno Haible  <bruno@clisp.org>
110114         * gnulib-tool (func_get_license): For test modules, use the license of
110115         the main module.
110117 2007-01-14  Bruno Haible  <bruno@clisp.org>
110119         * modules/iconv (Include): Clarify that <iconv.h> can only be included
110120         if iconv is found to exist.
110122 2007-01-14  Bruno Haible  <bruno@clisp.org>
110124         * modules/c-ctype-tests: New file.
110125         * tests/test-c-ctype.c: New file.
110127 2007-01-14  Bruno Haible  <bruno@clisp.org>
110129         * modules/binary-io-tests: New file.
110130         * tests/test-binary-io.sh: New file.
110131         * tests/test-binary-io.c: New file.
110133 2007-01-14  Bruno Haible  <bruno@clisp.org>
110135         * modules/array-oset-tests: New file.
110136         * tests/test-array_oset.c: New file.
110138 2007-01-14  Bruno Haible  <bruno@clisp.org>
110140         * modules/array-list-tests: New file.
110141         * tests/test-array_list.c: New file.
110143 2007-01-14  Bruno Haible  <bruno@clisp.org>
110145         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
110146         and make.
110147         Reported by Simon Josefsson in
110148         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00139.html>
110150 2007-01-14  Bruno Haible  <bruno@clisp.org>
110152         * modules/allocsa-tests: New file.
110153         * tests/test-allocsa.c: New file.
110155 2007-01-14  Bruno Haible  <bruno@clisp.org>
110157         * modules/fchdir (Depends-on): Add absolute-header.
110158         * modules/unistd (Depends-on): Likewise.
110160 2006-12-30  Bruno Haible  <bruno@clisp.org>
110162         * modules/fchdir: New file.
110163         * modules/unistd (Files): Add lib/unistd_.h.
110164         (Makefile.am): Generate unistd.h from unistd_.h.
110165         * lib/fchdir.c: New file.
110166         * lib/dirent_.h: New file.
110167         * lib/unistd_.h: New file.
110168         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
110169         * m4/fchdir.m4: New file.
110170         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
110171         (gl_HEADER_UNISTD): Invoke it.
110172         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
110173         function.
110174         * lib/backupfile.c (opendir, closedir): Undefine.
110175         * lib/chown.c (open, close): Undefine.
110176         * lib/clean-temp.c (open, close): Undefine.
110177         * lib/copy-file.c (open, close): Undefine.
110178         * lib/execute.c (open, close): Undefine.
110179         * lib/fsusage.c (open, close): Undefine.
110180         * lib/gc-gnulib.c (open, close): Undefine.
110181         * lib/getcwd.c (opendir, closedir): Undefine.
110182         * lib/glob.c (opendir, closedir): Undefine.
110183         * lib/javacomp.c (open, close): Undefine.
110184         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
110185         * lib/openat-proc.c (open, close): Undefine.
110186         * lib/pagealign_alloc.c (open, close): Undefine.
110187         * lib/pipe.c (open, close): Undefine.
110188         * lib/progreloc.c (open, close): Undefine.
110189         * lib/savedir.c (opendir, closedir): Undefine.
110190         * lib/utime.c (open, close): Undefine.
110191         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
110193 2007-01-10  Bruno Haible  <bruno@clisp.org>
110195         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
110197 2007-01-12  Eric Blake  <ebb9@byu.net>
110199         Provide a robust <wchar.h>.  Further simplifications are now
110200         possible in other modules, but not included here.
110201         * modules/wchar: New module.
110202         * m4/wchar.m4: New file.
110203         * lib/wchar_.h: Likewise.
110204         * modules/mbchar (Depends-on): Depend on wchar, as the first use
110205         of the new module.
110206         * MODULES.html.sh (Extended multibyte and wide character utilities):
110207         New section.
110209 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
110211         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
110212         to a reasonable default for memory allocation.
110213         (xreadlink): Don't allocate a huge buffer, to work around a buggy
110214         file system that reports garbage st_size values for symlinks.
110215         Problem reported by Liyang Hu.
110217 2007-01-11  Simon Josefsson  <simon@josefsson.org>
110219         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
110220         Emacs .#* auto-save files).
110222 2007-01-11  Bruno Haible  <bruno@clisp.org>
110224         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
110225         directory.
110227 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
110229         Use @...@ consistently in lib/wctype_.h.
110230         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
110231         on it being set to 1 or 0.
110232         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
110233         go back to AC_SUBSTing it.
110234         * modules/wctype (Makefile.am): Undo previous change.
110236 2007-01-10  Eric Blake  <ebb9@byu.net>
110238         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
110239         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
110240         * modules/wctype (Makefile.am): Likewise.
110241         Reported by Chris McGuire.
110243 2007-01-10  Jim Meyering  <jim@meyering.net>
110245         fts.c: a small readability/maintainability improvement
110246         * lib/fts.c (fts_read): Make this code slightly more readable and
110247         maintainable by hoisting the "sp->fts_cur = p" assignments to
110248         immediately follow the statements that set P.  Derived from
110249         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
110251 2007-01-10  Eric Blake  <ebb9@byu.net>
110253         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
110254         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
110255         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
110256         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
110257         Reported by Chris McGuire.
110259 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110261         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
110262         in sed script.
110264 2007-01-09  Bruno Haible  <bruno@clisp.org>
110266         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
110267         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
110268         variables.
110269         (func_module): Use them.
110271 2007-01-09  Bruno Haible  <bruno@clisp.org>
110273         * modules/unistr/base: New file.
110274         * lib/unistr.h: New file.
110276         * modules/unistr/u8-to-u16: New file.
110277         * lib/unistr/u8-to-u16.c: New file.
110279         * modules/unistr/u8-to-u32: New file.
110280         * lib/unistr/u8-to-u32.c: New file.
110282         * modules/unistr/u16-to-u8: New file.
110283         * lib/unistr/u16-to-u8.c: New file.
110285         * modules/unistr/u16-to-u32: New file.
110286         * lib/unistr/u16-to-u32.c: New file.
110288         * modules/unistr/u32-to-u8: New file.
110289         * lib/unistr/u32-to-u8.c: New file.
110291         * modules/unistr/u32-to-u16: New file.
110292         * lib/unistr/u32-to-u16.c: New file.
110294         * modules/unistr/u8-check: New file.
110295         * modules/unistr/u16-check: New file.
110296         * modules/unistr/u32-check: New file.
110297         * lib/unistr/u8-check.c: New file.
110298         * lib/unistr/u16-check.c: New file.
110299         * lib/unistr/u32-check.c: New file.
110301         * modules/unistr/u8-chr: New file.
110302         * modules/unistr/u16-chr: New file.
110303         * modules/unistr/u32-chr: New file.
110304         * lib/unistr/u8-chr.c: New file.
110305         * lib/unistr/u16-chr.c: New file.
110306         * lib/unistr/u32-chr.c: New file.
110308         * modules/unistr/u8-cmp: New file.
110309         * modules/unistr/u16-cmp: New file.
110310         * modules/unistr/u32-cmp: New file.
110311         * lib/unistr/u8-cmp.c: New file.
110312         * lib/unistr/u16-cmp.c: New file.
110313         * lib/unistr/u32-cmp.c: New file.
110315         * modules/unistr/u8-cpy: New file.
110316         * modules/unistr/u16-cpy: New file.
110317         * modules/unistr/u32-cpy: New file.
110318         * lib/unistr/u8-cpy.c: New file.
110319         * lib/unistr/u16-cpy.c: New file.
110320         * lib/unistr/u32-cpy.c: New file.
110321         * lib/unistr/u-cpy.h: New file.
110323         * modules/unistr/u8-cpy-alloc: New file.
110324         * modules/unistr/u16-cpy-alloc: New file.
110325         * modules/unistr/u32-cpy-alloc: New file.
110326         * lib/unistr/u8-cpy-alloc.c: New file.
110327         * lib/unistr/u16-cpy-alloc.c: New file.
110328         * lib/unistr/u32-cpy-alloc.c: New file.
110329         * lib/unistr/u-cpy-alloc.h: New file.
110331         * modules/unistr/u8-endswith: New file.
110332         * modules/unistr/u16-endswith: New file.
110333         * modules/unistr/u32-endswith: New file.
110334         * lib/unistr/u8-endswith.c: New file.
110335         * lib/unistr/u16-endswith.c: New file.
110336         * lib/unistr/u32-endswith.c: New file.
110337         * lib/unistr/u-endswith.h: New file.
110339         * modules/unistr/u8-mblen: New file.
110340         * modules/unistr/u16-mblen: New file.
110341         * modules/unistr/u32-mblen: New file.
110342         * lib/unistr/u8-mblen.c: New file.
110343         * lib/unistr/u16-mblen.c: New file.
110344         * lib/unistr/u32-mblen.c: New file.
110346         * modules/unistr/u8-mbtouc: New file.
110347         * modules/unistr/u16-mbtouc: New file.
110348         * modules/unistr/u32-mbtouc: New file.
110349         * lib/unistr/u8-mbtouc.c: New file.
110350         * lib/unistr/u16-mbtouc.c: New file.
110351         * lib/unistr/u32-mbtouc.c: New file.
110353         * modules/unistr/u8-mbtouc-safe: New file.
110354         * modules/unistr/u16-mbtouc-safe: New file.
110355         * modules/unistr/u32-mbtouc-safe: New file.
110356         * lib/unistr/u8-mbtouc-safe.c: New file.
110357         * lib/unistr/u16-mbtouc-safe.c: New file.
110358         * lib/unistr/u32-mbtouc-safe.c: New file.
110360         * modules/unistr/u8-move: New file.
110361         * modules/unistr/u16-move: New file.
110362         * modules/unistr/u32-move: New file.
110363         * lib/unistr/u8-move.c: New file.
110364         * lib/unistr/u16-move.c: New file.
110365         * lib/unistr/u32-move.c: New file.
110366         * lib/unistr/u-move.h: New file.
110368         * modules/unistr/u8-next: New file.
110369         * modules/unistr/u16-next: New file.
110370         * modules/unistr/u32-next: New file.
110371         * lib/unistr/u8-next.c: New file.
110372         * lib/unistr/u16-next.c: New file.
110373         * lib/unistr/u32-next.c: New file.
110375         * modules/unistr/u8-prev: New file.
110376         * modules/unistr/u16-prev: New file.
110377         * modules/unistr/u32-prev: New file.
110378         * lib/unistr/u8-prev.c: New file.
110379         * lib/unistr/u16-prev.c: New file.
110380         * lib/unistr/u32-prev.c: New file.
110382         * modules/unistr/u8-set: New file.
110383         * modules/unistr/u16-set: New file.
110384         * modules/unistr/u32-set: New file.
110385         * lib/unistr/u8-set.c: New file.
110386         * lib/unistr/u16-set.c: New file.
110387         * lib/unistr/u32-set.c: New file.
110388         * lib/unistr/u-set.h: New file.
110390         * modules/unistr/u8-startswith: New file.
110391         * modules/unistr/u16-startswith: New file.
110392         * modules/unistr/u32-startswith: New file.
110393         * lib/unistr/u8-startswith.c: New file.
110394         * lib/unistr/u16-startswith.c: New file.
110395         * lib/unistr/u32-startswith.c: New file.
110396         * lib/unistr/u-startswith.h: New file.
110398         * modules/unistr/u8-stpcpy: New file.
110399         * modules/unistr/u16-stpcpy: New file.
110400         * modules/unistr/u32-stpcpy: New file.
110401         * lib/unistr/u8-stpcpy.c: New file.
110402         * lib/unistr/u16-stpcpy.c: New file.
110403         * lib/unistr/u32-stpcpy.c: New file.
110404         * lib/unistr/u-stpcpy.h: New file.
110406         * modules/unistr/u8-stpncpy: New file.
110407         * modules/unistr/u16-stpncpy: New file.
110408         * modules/unistr/u32-stpncpy: New file.
110409         * lib/unistr/u8-stpncpy.c: New file.
110410         * lib/unistr/u16-stpncpy.c: New file.
110411         * lib/unistr/u32-stpncpy.c: New file.
110412         * lib/unistr/u-stpncpy.h: New file.
110414         * modules/unistr/u8-strcat: New file.
110415         * modules/unistr/u16-strcat: New file.
110416         * modules/unistr/u32-strcat: New file.
110417         * lib/unistr/u8-strcat.c: New file.
110418         * lib/unistr/u16-strcat.c: New file.
110419         * lib/unistr/u32-strcat.c: New file.
110420         * lib/unistr/u-strcat.h: New file.
110422         * modules/unistr/u8-strchr: New file.
110423         * modules/unistr/u16-strchr: New file.
110424         * modules/unistr/u32-strchr: New file.
110425         * lib/unistr/u8-strchr.c: New file.
110426         * lib/unistr/u16-strchr.c: New file.
110427         * lib/unistr/u32-strchr.c: New file.
110429         * modules/unistr/u8-strcmp: New file.
110430         * modules/unistr/u16-strcmp: New file.
110431         * modules/unistr/u32-strcmp: New file.
110432         * lib/unistr/u8-strcmp.c: New file.
110433         * lib/unistr/u16-strcmp.c: New file.
110434         * lib/unistr/u32-strcmp.c: New file.
110436         * modules/unistr/u8-strcpy: New file.
110437         * modules/unistr/u16-strcpy: New file.
110438         * modules/unistr/u32-strcpy: New file.
110439         * lib/unistr/u8-strcpy.c: New file.
110440         * lib/unistr/u16-strcpy.c: New file.
110441         * lib/unistr/u32-strcpy.c: New file.
110442         * lib/unistr/u-strcpy.h: New file.
110444         * modules/unistr/u8-strcspn: New file.
110445         * modules/unistr/u16-strcspn: New file.
110446         * modules/unistr/u32-strcspn: New file.
110447         * lib/unistr/u8-strcspn.c: New file.
110448         * lib/unistr/u16-strcspn.c: New file.
110449         * lib/unistr/u32-strcspn.c: New file.
110450         * lib/unistr/u-strcspn.h: New file.
110452         * modules/unistr/u8-strdup: New file.
110453         * modules/unistr/u16-strdup: New file.
110454         * modules/unistr/u32-strdup: New file.
110455         * lib/unistr/u8-strdup.c: New file.
110456         * lib/unistr/u16-strdup.c: New file.
110457         * lib/unistr/u32-strdup.c: New file.
110458         * lib/unistr/u-strdup.h: New file.
110460         * modules/unistr/u8-strlen: New file.
110461         * modules/unistr/u16-strlen: New file.
110462         * modules/unistr/u32-strlen: New file.
110463         * lib/unistr/u8-strlen.c: New file.
110464         * lib/unistr/u16-strlen.c: New file.
110465         * lib/unistr/u32-strlen.c: New file.
110466         * lib/unistr/u-strlen.h: New file.
110468         * modules/unistr/u8-strmblen: New file.
110469         * modules/unistr/u16-strmblen: New file.
110470         * modules/unistr/u32-strmblen: New file.
110471         * lib/unistr/u8-strmblen.c: New file.
110472         * lib/unistr/u16-strmblen.c: New file.
110473         * lib/unistr/u32-strmblen.c: New file.
110475         * modules/unistr/u8-strmbtouc: New file.
110476         * modules/unistr/u16-strmbtouc: New file.
110477         * modules/unistr/u32-strmbtouc: New file.
110478         * lib/unistr/u8-strmbtouc.c: New file.
110479         * lib/unistr/u16-strmbtouc.c: New file.
110480         * lib/unistr/u32-strmbtouc.c: New file.
110482         * modules/unistr/u8-strncat: New file.
110483         * modules/unistr/u16-strncat: New file.
110484         * modules/unistr/u32-strncat: New file.
110485         * lib/unistr/u8-strncat.c: New file.
110486         * lib/unistr/u16-strncat.c: New file.
110487         * lib/unistr/u32-strncat.c: New file.
110488         * lib/unistr/u-strncat.h: New file.
110490         * modules/unistr/u8-strncmp: New file.
110491         * modules/unistr/u16-strncmp: New file.
110492         * modules/unistr/u32-strncmp: New file.
110493         * lib/unistr/u8-strncmp.c: New file.
110494         * lib/unistr/u16-strncmp.c: New file.
110495         * lib/unistr/u32-strncmp.c: New file.
110497         * modules/unistr/u8-strncpy: New file.
110498         * modules/unistr/u16-strncpy: New file.
110499         * modules/unistr/u32-strncpy: New file.
110500         * lib/unistr/u8-strncpy.c: New file.
110501         * lib/unistr/u16-strncpy.c: New file.
110502         * lib/unistr/u32-strncpy.c: New file.
110503         * lib/unistr/u-strncpy.h: New file.
110505         * modules/unistr/u8-strnlen: New file.
110506         * modules/unistr/u16-strnlen: New file.
110507         * modules/unistr/u32-strnlen: New file.
110508         * lib/unistr/u8-strnlen.c: New file.
110509         * lib/unistr/u16-strnlen.c: New file.
110510         * lib/unistr/u32-strnlen.c: New file.
110511         * lib/unistr/u-strnlen.h: New file.
110513         * modules/unistr/u8-strpbrk: New file.
110514         * modules/unistr/u16-strpbrk: New file.
110515         * modules/unistr/u32-strpbrk: New file.
110516         * lib/unistr/u8-strpbrk.c: New file.
110517         * lib/unistr/u16-strpbrk.c: New file.
110518         * lib/unistr/u32-strpbrk.c: New file.
110519         * lib/unistr/u-strpbrk.h: New file.
110521         * modules/unistr/u8-strrchr: New file.
110522         * modules/unistr/u16-strrchr: New file.
110523         * modules/unistr/u32-strrchr: New file.
110524         * lib/unistr/u8-strrchr.c: New file.
110525         * lib/unistr/u16-strrchr.c: New file.
110526         * lib/unistr/u32-strrchr.c: New file.
110528         * modules/unistr/u8-strspn: New file.
110529         * modules/unistr/u16-strspn: New file.
110530         * modules/unistr/u32-strspn: New file.
110531         * lib/unistr/u8-strspn.c: New file.
110532         * lib/unistr/u16-strspn.c: New file.
110533         * lib/unistr/u32-strspn.c: New file.
110534         * lib/unistr/u-strspn.h: New file.
110536         * modules/unistr/u8-strstr: New file.
110537         * modules/unistr/u16-strstr: New file.
110538         * modules/unistr/u32-strstr: New file.
110539         * lib/unistr/u8-strstr.c: New file.
110540         * lib/unistr/u16-strstr.c: New file.
110541         * lib/unistr/u32-strstr.c: New file.
110542         * lib/unistr/u-strstr.h: New file.
110544         * modules/unistr/u8-strtok: New file.
110545         * modules/unistr/u16-strtok: New file.
110546         * modules/unistr/u32-strtok: New file.
110547         * lib/unistr/u8-strtok.c: New file.
110548         * lib/unistr/u16-strtok.c: New file.
110549         * lib/unistr/u32-strtok.c: New file.
110550         * lib/unistr/u-strtok.h: New file.
110552         * modules/unistr/u8-uctomb: New file.
110553         * modules/unistr/u16-uctomb: New file.
110554         * modules/unistr/u32-uctomb: New file.
110555         * lib/unistr/u8-uctomb.c: New file.
110556         * lib/unistr/u16-uctomb.c: New file.
110557         * lib/unistr/u32-uctomb.c: New file.
110559         * MODULES.html.sh (Unicode string functions): Add the new modules.
110561 2007-01-08  Bruno Haible  <bruno@clisp.org>
110563         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
110564         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
110565         subdirectories.
110567 2007-01-08  Karl Berry  <karl@gnu.org>
110569         * doc/error.texi: mention that main() fns must set program_name
110570         when progname is used.
110572 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
110574         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
110575         WCTYPE_H is empty, for the benefit of builds from non-distclean
110576         directories.  Problem reported by Eric Blake in
110577         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00157.html>.
110579 2007-01-08  Bruno Haible  <bruno@clisp.org>
110581         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
110582         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
110583         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
110584         PROVIDE_CANONICALIZE_FILENAME_MODE.
110585         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
110587 2007-01-08  Bruno Haible  <bruno@clisp.org>
110589         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
110590         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
110591         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
110592         * lib/fts.c: Likewise.
110593         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
110595 2006-12-25  Bruno Haible  <bruno@clisp.org>
110597         * modules/utf8-ucs4-safe: New file.
110598         * lib/utf8-ucs4-safe.h: New file.
110599         * lib/unistr/utf8-ucs4-safe.c: New file.
110601         * modules/utf16-ucs4-safe: New file.
110602         * lib/utf16-ucs4-safe.h: New file.
110603         * lib/unistr/utf16-ucs4-safe.c: New file.
110605         * MODULES.html.sh (Unicode string functions): Add the new modules.
110607 2007-01-08  Bruno Haible  <bruno@clisp.org>
110609         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
110610         (Depends-on): Add unitypes.
110611         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
110612         (u8_mbtouc_aux): Move out to separate file.
110613         (u8_mbtouc): Use ucs4_t, uint8_t types.
110614         * lib/unistr/utf8-ucs4.c: New file.
110616         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
110617         (Depends-on): Add unitypes.
110618         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
110619         (u16_mbtouc_aux): Move out to separate file.
110620         (u16_mbtouc): Use ucs4_t, uint16_t types.
110621         * lib/unistr/utf16-ucs4.c: New file.
110623         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
110624         (Depends-on): Add unitypes.
110625         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
110626         (u8_uctomb_aux): Move out to separate file.
110627         (u8_uctomb): Use ucs4_t, uint8_t types.
110628         * lib/unistr/ucs4-utf8.c: New file.
110630         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
110631         (Depends-on): Add unitypes.
110632         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
110633         (u16_uctomb_aux): Move out to separate file.
110634         (u16_uctomb): Use ucs4_t, uint16_t types.
110635         * lib/unistr/ucs4-utf16.c: New file.
110637 2006-12-25  Bruno Haible  <bruno@clisp.org>
110639         * modules/unitypes: New file.
110640         * lib/unitypes.h: New file.
110641         * MODULES.html.sh (func_all_modules): New section "Unicode string
110642         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
110643         this section. Add unitypes.
110645 2007-01-08  Bruno Haible  <bruno@clisp.org>
110647         Avoid variable names that conflict with those from libtool.
110648         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
110649         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
110650         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
110651         library_names_spec to acl_library_names_spec, hardcode_* to
110652         acl_hardcode_*.
110653         Reported by Ralf Wildenhues.
110655 2007-01-08  Bruno Haible  <bruno@clisp.org>
110657         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
110658         definition.
110659         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
110660         definition.
110661         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
110662         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
110663         definition.
110664         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
110665         definition.
110666         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
110667         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
110668         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
110669         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
110670         definition.
110671         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
110672         definition.
110673         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
110674         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
110675         GC_USE_<algorithm>.
110676         * lib/gc-libgcrypt.c: Likewise.
110677         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
110678         * modules/gc-arctwo (configure.ac): Likewise.
110679         * modules/gc-des (configure.ac): Likewise.
110680         * modules/gc-hmac-md5 (configure.ac): Likewise.
110681         * modules/gc-hmac-sha1 (configure.ac): Likewise.
110682         * modules/gc-md2 (configure.ac): Likewise.
110683         * modules/gc-md4 (configure.ac): Likewise.
110684         * modules/gc-md5 (configure.ac): Likewise.
110685         * modules/gc-random (configure.ac): Likewise.
110686         * modules/gc-rijndael (configure.ac): Likewise.
110687         * modules/gc-sha1 (configure.ac): Likewise.
110689 2007-01-08  Bruno Haible  <bruno@clisp.org>
110691         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
110692         macro definition.
110693         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
110694         definition.
110695         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
110696         definition.
110697         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
110698         * modules/fcntl-safer (configure.ac): Likewise.
110699         * modules/fopen-safer (configure.ac): Likewise.
110700         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
110701         GNULIB_FWRITEERROR macro definition.
110703 2007-01-08  Bruno Haible  <bruno@clisp.org>
110705         * m4/gnulib-common.m4: New file.
110706         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
110707         (func_get_filelist): Add m4/gnulib-common.m4.
110709 2007-01-08  Bruno Haible  <bruno@clisp.org>
110711         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
110712         command.
110714 2007-01-08  Jim Meyering  <jim@meyering.net>
110716         Use a more robust test for a "can't happen" condition.
110717         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
110718         narrowed the st_size value.  Presuming the "can't happen" condition
110719         is true, that narrowing could conceivably convert an invalid st_size
110720         value into a valid one.  Instead, use a change based on Matthew
110721         Woehlke's original patch.
110723         Slight readability improvement: use an assert-like macro
110724         in place of literal "abort ()" uses.
110725         * lib/fts.c (fts_assert): Define.
110726         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
110727         Use this macro instead of a bare 'abort'.
110729 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
110731         Don't worry about using IRIX 5.3's wctype.h broken definitions;
110732         simply work around them.
110733         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
110734         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
110735         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
110736         declaring.
110737         Don't bother to define as macros, since the standard doesn't require it.
110738         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
110739         longer worry about IRIX 5.3.
110740         (HAVE_WCTYPE_CTMP_BUG): Remove.
110742 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
110744         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
110745         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
110746         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
110747         Problems reported by Georg Schwarz for IRIX 5.3.
110749         * gnulib-tool (autoconf_minversion): Take the maximum version number
110750         found, not the minimum.  Problem reported by James Youngman.
110752 2007-01-03  Karl Berry  <karl@gnu.org>
110754         * doc/error.texi: new file, explaining interaction with progname.
110755         * doc/gnulib.texi: include it.  Update copyright.
110757 2007-01-03  Simon Josefsson  <simon@josefsson.org>
110759         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
110760         AC_CANONICAL_HOST, to improve autobuild outputs.
110762 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
110763             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
110765         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
110766         sockets, server sockets, and other file descriptors.  Count errors
110767         to compute the return value.  Reorder the code a bit to be easier
110768         to follow.  Don't set event bits that were not requested (except
110769         POLLERR and POLLHUP).
110771 2007-01-01  Bruno Haible  <bruno@clisp.org>
110773         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
110775 2007-01-03  Jim Meyering  <jim@meyering.net>
110777         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
110779 2007-01-02  Bruno Haible  <bruno@clisp.org>
110781         * modules/settime (Include): Require timespec.h.
110782         * modules/nanosleep (Include): Likewise.
110784 2007-01-01  Bruno Haible  <bruno@clisp.org>
110786         * gnulib-tool (func_emit_copyright_notice): Bump year.
110787         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
110789 2007-01-01  Bruno Haible  <bruno@clisp.org>
110791         Improve support for OpenBSD.
110792         * build-aux/config.rpath (libname_spec): Export.
110793         (library_names_spec): New variable. Export.
110794         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
110795         library_names_spec from the config.rpath output. Locate shared library
110796         through the name pattern in library_names_spec.
110798 2007-01-01  Eric Blake  <ebb9@byu.net>
110800         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
110802 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
110804         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
110805         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
110806         assume the C locale, and avoid an "eval" that could cause trouble.
110807         Problem with SORT reported by Bob Proulx.
110809         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
110810         Define.  Trivial patch from Henning Nielsen Lund, originally
110811         sent to bug-grep@gnu.org today.
110813 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
110815         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
110816         struct stat.  Problem reported by Henning Nielsen Lund.
110817         * lib/acl.c: Include acl.h first, to check interface.  Don't
110818         bother to include sys/types.h and sys/stat.h again.
110820 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
110822         Import the following change from libc; problem reported by
110823         Sven Verdoolaege.
110825         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
110827         [BZ #1373]
110828         * lib/argp.h: Remove __NTH for __argp_usage inline function.
110830 2006-12-28  Jim Meyering  <jim@meyering.net>
110832         * build-aux/announce-gen: Do not assume that the package
110833         builds any of tar.gz, tar.bz2, and .xdelta files.
110834         Suggestion from Simon Josefsson.
110836 2006-12-28  Simon Josefsson  <simon@josefsson.org>
110838         * modules/announce-gen: New file.
110840 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
110842         * lib/mbchar.h: Just include <wctype.h>; the wctype module
110843         handles its gotchas now.
110844         * lib/mbswidth.c: Likewise.
110845         * lib/wcwidth.h: Likewise.
110846         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
110847         and iswcntrl; the wctype module does this stuff now.
110848         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
110849         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
110850         * modules/mbchar (Depends-on): Add wctype.
110851         * modules/mbswidth (Depends-on): Likewise.
110852         * modules/wcwidth (Depends-on): Likewise.
110854 2006-12-27  Eric Blake  <ebb9@byu.net>
110856         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
110857         module uses more than what <wctype.h> is required to provide.
110859 2006-12-26  Eric Blake  <ebb9@byu.net>
110861         * gnulib-tool (sed_extract_prog): Avoid space-tab.
110863 2006-12-26  Eric Blake  <ebb9@byu.net>
110865         * modules/absolute-header: New module.
110866         * modules/fcntl (Depends-on): Depend on it.
110867         * modules/inttypes (Depends-on): Likewise.
110868         * modules/stdint (Depends-on): Likewise.
110869         * modules/sys_stat (Depends-on): Likewise.
110870         * modules/wctype (Depends-on): Likewise.
110871         * MODULES.html.sh (Support for building libraries and
110872         executables): Document it.
110874 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
110876         * gnulib-tool (SED): Remove, undoing previous change.
110877         The problem was that it broke coreutils on Solaris, because
110878         "sed --posix" leaked into a makefile.
110879         (sed): New alias, if 'alias' and GNU sed.
110881 2006-12-24  Jim Meyering  <jim@meyering.net>
110883         Work around an fchownat bug in glibc-2.4:
110884         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
110885         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
110886         in spite of the -P option.
110887         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
110888         New macros.
110889         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
110890         * modules/openat (Files): Add lib/fchownat.c.
110891         * lib/openat.c (fchownat): Don't define here.  Move to...
110892         * lib/fchownat.c: ...this new file.
110894 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
110896         Fix bug reported by Bruno Haible in
110897         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00228.html>
110898         where quotearg.c didn't compile on Mac OS X 10.2 because it
110899         lacks <wchar.h> and wint_t.
110900         * lib/wctype_.h (__wctype_wint_t): New type.
110901         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
110902         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
110903         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
110904         Arg is now of type __wctype_wint_t, not wint_t.
110905         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
110906         substitute HAVE_WINT_T.
110907         * modules/wctype (Files): Add m4/wint_t.m4.
110908         (wctype.h): Substitute HAVE_WINT_T.
110910 2006-12-23  Bruno Haible  <bruno@clisp.org>
110912         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
110914 2006-12-23  Bruno Haible  <bruno@clisp.org>
110916         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
110917         S_ISLNK.
110918         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
110919         mingw.
110921 2006-12-22  Bruno Haible  <bruno@clisp.org>
110923         * lib/copy-file.c: Include acl.h.
110924         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
110925         Close the file descriptors only after being done with copy_acl.
110926         * modules/copy-file (Depends-on): Add acl.
110928 2006-12-22  Bruno Haible  <bruno@clisp.org>
110930         * gnulib-tool (SED): New variable.
110931         Use $SED instead of sed everywhere.
110933 2006-12-22  Bruno Haible  <bruno@clisp.org>
110935         * modules/no-c++: New file.
110936         * m4/no-c++.m4: New file.
110937         * MODULES.html.sh (Support for building libraries and executables):
110938         Add no-c++.
110940 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
110942         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
110943         Include <limits.h>, and use its INT_MAX to rewrite the
110944         j loop so that it does not overflow 'int'.  Problem reported by
110945         Ralf Wildenhues in
110946         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00084.html>.
110947         Play it safe by shifting left by 1 rather than multiplying by 2,
110948         as GCC is less likely to optimize this away when the value
110949         is signed (when it assumes overflow leads to undefined behavior).
110950         Also, don't assume time_t uses two's complement.
110952 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
110954         * MODULES.html.sh: New module wctype.
110955         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
110956         * lib/fnmatch.c: Don't bother to include <wchar.h> before
110957         <wctype.h>, since the new wctype module should fix this.
110958         * lib/quotearg.c: Include <wctype.h> unconditionally, since
110959         the wctype module should arrange for it.
110960         * lib/regex_internal.h: Likewise.
110961         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
110962         since the wctype module should handle this now.
110963         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
110964         * modules/fnmatch (Depends-on): Add wctype.
110965         * modules/quotearg (Depends-on): Likewise.
110966         * modules/regex (Depends-on): Likewise.
110968 2006-12-19  Bruno Haible  <bruno@clisp.org>
110970         * lib/strdup.h [C++]: Wrap definitions in extern "C".
110971         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
110973 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110975         * modules/savewd (Depends-on): Fix dependency on fcntl.
110977 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
110979         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
110980         conforms to C99, rather than relying on the user's environment
110981         setting of STDINT_H.
110983 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
110984         and Eric Blake  <ebb9@byu.net>
110986         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
110987         This is more consistent with the other defines here.
110988         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
110989         Port to z/OS.  Problem reported by Paul Gilmartin.
110990         Change local vars to use gl_ prefix rather than ac_.
110991         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
110992         with other defines.
110993         * modules/double-slash-root: New module.
110994         * modules/dirname (Files): Remove m4/double-slash-root.m4.
110995         (Depends-on): Add double-slash-root.
110996         * MODULES.html.sh (File system functions): Mention new module.
110998 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
111000         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
111001         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
111002         This is for the benefit of gzip, which doesn't do i18n.
111004 2006-12-12  Jim Meyering  <jim@meyering.net>
111006         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
111007         Reported by Andreas Schwab <schwab@suse.de>.
111009 2006-12-12  Bruno Haible  <bruno@clisp.org>
111011         Merge these changes.
111012         2006-09-05  Bruno Haible  <bruno@clisp.org>
111013         * lib/iconvme.c (iconv_string): No need to save and restore errno when
111014         iconv_alloc succeeded.
111015         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
111016         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
111017         test for " && dest " at the end - dest is always != NULL there. Call
111018         iconv with 4xNULL arguments initially, to reset the state. Call iconv
111019         with 2xNULL arguments, also to flush the state storage. Handle the
111020         IRIX iconv behaviour. Realloc the final result, to throw away unused
111021         memory.
111023 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
111025         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
111026         and fchmodat unconditionally, since glibc 2.4 has them.
111027         Problem reported by Arkadiusz Miskiewicz.
111029 2006-12-10  Bruno Haible  <bruno@clisp.org>
111031         * gnulib-tool (func_import): Show the include files only for those
111032         modules that are copied and specified.
111033         Reported by Karl Berry.
111035 2006-12-08  Jim Meyering  <jim@meyering.net>
111037         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
111038         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
111040         * build-aux/announce-gen: Add two new options, both optional:
111041         --bootstrap-tools=TOOL_LIST
111042               a comma-separated list of tools, e.g.,
111043               autoconf,automake,bison,gnulib
111044         --gnulib-snapshot-date=DATE
111045               if gnulib is in the bootstrap tool list,
111046               then report this as the snapshot date.
111047               If not specified, use the current date/time.
111048               If you specify a date here, be sure it's UTC.
111050 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111052         * tests/test-argp-2.sh: Fix test to match actual output.
111053         (func_compare): Fix sed script to be portable.
111055 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
111057         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
111058         workaround for this case.  It is not autoconfigured now; offhand
111059         it's hard to see how to autoconfigure it.
111061 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
111063         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
111064         a directory that is about to be chowned.  Such a directory's
111065         initial file permissions should permit the owner only and this
111066         should not be changed until after the chown, since the group and
111067         other bits would be incorrect if they granted permission before
111068         the chown.
111070         Fix porting problem for iswctype reported by Georg Schwarz in:
111071         http://lists.gnu.org/r/bug-coreutils/2006-12/msg00017.html
111072         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
111073         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
111074         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
111075         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
111077 2006-12-03  Jim Meyering  <jim@meyering.net>
111079         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
111080         p->fts_statp may not yet be defined.
111081         (fts_read): Instead, set it in the caller, once p->fts_statp is
111082         sure to be defined, and corresponds to a top-level directory.
111083         This bug made du -x fail.  Here's the coreutils test case:
111084         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
111085         Reported by Mike Frysinger.
111087 2006-12-01  Jim Meyering  <jim@meyering.net>
111089         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
111090         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
111091         Reported by Simon Josefsson.
111093 2006-11-30  Jim Meyering  <jim@meyering.net>
111095         * m4/warning.m4: Use the all-permissive copyright notice
111096         recommended by RMS (rather than LGPL).
111097         * m4/vararrays.m4: Likewise.
111098         * m4/flexmember.m4: Likewise.
111100 2006-11-29  Bruno Haible  <bruno@clisp.org>
111102         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
111103         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
111104         using +=.
111105         Reported by Simon Josefsson <simon@josefsson.org>.
111107 2006-11-28  James Youngman  <jay@gnu.org>
111109         * README: Advise users that they might find the bug-gnulib@gnu.org
111110         and autotools-announce@gnu.org mailing lists useful.
111112 2006-11-28  Bruno Haible  <bruno@clisp.org>
111114         * m4/ptrdiff_max.m4: Remove file.
111116 2006-11-21  Bruno Haible  <bruno@clisp.org>
111118         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
111119         _AC_COMPUTE_INT.
111120         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
111121         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
111122         _AC_COMPUTE_INT.
111123         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
111124         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
111125         _AC_COMPUTE_INT.
111126         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
111128 2006-11-28  Jim Meyering  <jim@meyering.net>
111130         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
111131         warning from "gcc -Wshadow" about shadowing the builtin.
111133 2006-11-27  Bruno Haible  <bruno@clisp.org>
111135         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
111136         _AC_COMPUTE_INT.
111137         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
111139 2006-11-27  Bruno Haible  <bruno@clisp.org>
111140             Paul Eggert  <eggert@cs.ucla.edu>
111142         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
111144 2006-11-26  Bruno Haible  <bruno@clisp.org>
111146         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
111147         noinst_LTLIBRARIES.
111149 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
111150             Bruno Haible  <bruno@clisp.org>
111152         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
111153         if compiling with "gcc -ansi".
111155 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
111157         Fix some incompatibilities with gcc -ansi -pedantic.
111158         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
111159         if compiling pedantically with GCC, unless it's C99 or later.
111160         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
111161         it mishandles gcc -ansi -pedantic as well.
111162         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
111163         if gcc -pedantic.
111164         * lib/regexec.c (check_node_accept_bytes): Don't use auto
111165         initializers for struct if -pedantic, unless it's C99 or later.
111167 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
111169         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
111170         Don't close an fd more than once. Identical atimes indicate
111171         success, not failure.
111173 2006-11-22  Robinson Mittmann  <bob@hoplon.com>  (tiny change)
111175         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
111177 2006-11-23  Jim Meyering  <jim@meyering.net>
111179         * build-aux/announce-gen: New file.  From coreutils.
111181 2006-11-22  Jim Meyering  <jim@meyering.net>
111183         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
111184         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
111185         (fts_read): Use a temporary to narrow the overused st_size member
111186         before using it in a switch statement.  Reported by Matthew Woehlke.
111188         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
111189         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
111191 2006-11-20  Bruno Haible  <bruno@clisp.org>
111193         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
111194         changequote instead of pairs of brackets.
111195         Reported by Andreas Schwab <schwab@suse.de>.
111197 2006-11-21  Jim Meyering  <jim@meyering.net>
111199         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
111200         so as to remain compatible with older compilers.
111201         Patch from Michael Deutschmann.
111203 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
111205         * MODULES.html.sh (File system functions): Add openat.
111207         * lib/openat.h (rpl_fstatat): New macro, if
111208         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
111209         (fstatat): Define to rpl_fstatat under the same conditions,
111210         unless COMPILING_FSTATAT.
111211         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
111212         seems to have the bug.
111213         * lib/fstatat.c: New file.
111214         * modules/openat (Files): Add it.
111216 2006-11-20  Bruno Haible  <bruno@clisp.org>
111218         * Makefile: New file.
111220 2006-11-20  Jim Meyering  <jim@meyering.net>
111222         The beginnings of syntax-related checks for gnulib.
111223         * lib/Makefile: New file.
111224         * lib/t-idcache: New script.  Ensure that the two halves of
111225         idcache.c stay in sync.
111227         * lib/idcache.c: Adjust comments in user- and group- portions to
111228         be more accurate, and to be consistent with one another.
111230 2006-11-20  Jim Meyering  <jim@meyering.net>
111232         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
111233         continue using the flexible array member (thus, this module performs
111234         half as many malloc calls), with the addition that...
111235         (getgroup, getuser): Consistently record a non-match via an empty
111236         "name" string, and map an empty string match to a NULL return value.
111237         * modules/idcache (Depends-on): Re-add flexmember.
111239         * lib/idcache.c (getuser): Remove all uses of the register keyword.
111240         (getuidbyname, getgroup, getgidbyname): Likewise.
111242         Use cleaner syntax: NULL rather than 0.
111243         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
111245 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
111247         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
111248         It mishandled the case where the group was missing.
111249         Problem reported by Greg Schafer.
111250         * modules/idcache: Likewise.
111252 2006-11-18  Jim Meyering  <jim@meyering.net>
111254         * check-module (%exempt_header): Add exception for some
111255         conditionally-included headers.
111257         * modules/i-ring (Depends-on): Add verify.
111258         (License): Change to LGPL.
111260 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
111262         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
111263         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
111264         and inttostr.h.  Use snprintf rather than uinttostr, so that
111265         LGPLed code doesn't depend on GPLed.
111267 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
111269         * modules/inline (License): Change from GPL to LGPL.
111271 2006-11-17  Jim Meyering  <jim@meyering.net>
111273         * modules/d-type (License): Switch to LGPL.
111275 2006-11-15  Bruno Haible  <bruno@clisp.org>
111277         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
111279 2006-11-15  Eric Blake  <ebb9@byu.net>
111281         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
111282         the module dependency.
111284 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
111285             Bruno Haible  <bruno@clisp.org>
111287         * gnulib-tool (func_create_testdir): Add license consistency check.
111289 2006-11-15  Eric Blake  <ebb9@byu.net>
111291         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
111292         random "(cached)" in configure output.
111294 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111296         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
111297         test for conforming inttypes.h is both announced and cached.
111299         * MODULES.html.sh (seen_modules, seen_files): New variables.
111300         (func_module): Rewrite to use a few less gnulib-tool and sed
111301         invocations.  Avoid a couple of quadratic algorithms for ...
111302         (missed_modules, missed_files): ... these, with ...
111303         (func_append, func_tmpdir): ... these new functions, from
111304         gnulib-tool.  Analogously, install traps for cleanup.
111306         * tests/test-gc.c (main): Remove unused variables.
111307         * tests/test-read-file.c: Include stdlib.h, for 'free'.
111309 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
111311         * modules/inttostr (License): Change to LGPL.
111313 2006-11-14  Eric Blake  <ebb9@byu.net>
111315         * modules/tempname (License): Change to LGPL.
111317 2006-11-14  Eric Blake  <ebb9@byu.net>
111319         * doc/functions.texi (Function Portability): *printf functions on
111320         Cygwin now understand all POSIX size specifiers.
111322 2006-11-14  Bruno Haible  <bruno@clisp.org>
111324         * modules/c-ctype (License): Change to LGPL.
111326 2006-11-12  Bruno Haible  <bruno@clisp.org>
111328         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
111329         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
111330         for GNOME libraries, for which the include files are installed in
111331         subdirectories of $prefix/include.
111333 2006-11-12  Bruno Haible  <bruno@clisp.org>
111335         * m4/lib-link.m4: Require at least autoconf-2.54.
111336         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
111337         name to underscores for the --with option.
111339 2006-11-13  Bruno Haible  <bruno@clisp.org>
111341         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
111342         the tests directory.
111343         Reported by Ralf Wildenhues.
111345 2006-11-13  Bruno Haible  <bruno@clisp.org>
111347         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
111348         (func_emit_initmacro_end): Undo the override here.
111349         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
111350         Works around the famous automake error in coreutils.
111352 2006-11-13  Eric Blake  <ebb9@byu.net>
111354         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
111355         element, not its node.
111357 2006-11-12  Bruno Haible  <bruno@clisp.org>
111359         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
111360         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
111362 2006-11-12  Bruno Haible  <bruno@clisp.org>
111364         * gnulib-tool: New option --local-symlink.
111365         (func_usage): Document it.
111366         (lsymbolic): New variable.
111367         (func_import, func_create_testdir): If --symlink was not specified,
111368         test whether --local-symlink was specified and the file comes from
111369         the local_gnulib_dir.
111371 2006-11-12  Bruno Haible  <bruno@clisp.org>
111373         * gnulib-tool (func_ln): New function.
111374         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
111376 2006-11-12  Bruno Haible  <bruno@clisp.org>
111378         Finish support for source files in subdirectories.
111379         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
111380         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
111381         AUTOMAKE_OPTIONS.
111382         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
111384 2006-11-12  Bruno Haible  <bruno@clisp.org>
111386         * gnulib-tool (func_get_automake_snippet): Synthesize also an
111387         EXTRA_lib_SOURCES augmentation.
111388         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
111390 2006-11-12  Jim Meyering  <jim@meyering.net>
111392         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
111393         file descriptors.  This also averts a failure on systems with
111394         native openat support when a traversed directory lacks "x" access.
111395         * lib/fts_.h: Include "i-ring.h"
111396         (struct FTS) [fts_fd_ring]: New member.
111397         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
111398         (FCHDIR): Add parentheses.
111399         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
111400         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
111401         When descending, rather than simply closing the previous
111402         fts_cwd_fd value, push that file descriptor onto the ring.
111403         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
111404         (fts_open): Initialize the new fd_ring member.
111405         (fts_close): Clear the ring.
111406         (fts_safe_changedir): When possible, use our new fd_ring to skip
111407         the diropen and fstat and dev/ino comparison that would normally
111408         accompany a virtual `chdir ("..")'.
111410         * modules/fts (Depends-on): Add i-ring.
111411         * modules/i-ring: New module.
111412         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
111413         * m4/i-ring.m4: New file.
111415 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111417         * gnulib-tool (func_create_testdir): Fix replacement of
111418         `build-aux' in configure.ac.  Run autotools in gltests
111419         subdirectory.
111420         (func_create_testdir, func_create_megatestdir, test): There is
111421         no need for '--force' in most autotool invocations in a new
111422         tree.  Actually fail the whole test if any of the tools, or the
111423         configure or make stages fail.
111425         Sync from Automake.
111426         * build-aux/gnupload: Revert last change.  Add pointer to upload
111427         instructions of the GNU Maintenance Instructions.
111428         Suggestion by Karl Berry.
111430 2006-11-10  Jim Meyering  <jim@meyering.net>
111432         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
111434 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
111436         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
111437         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
111438         (bind_textdomain_codeset) [! ENABLE_NLS]:
111439         Evaluate all the arguments.  That way, callers get compatible behavior
111440         if the arguments have side effects.  Also, it avoids some GCC
111441         diagnostics in some cases; Joel E. Denny reported problems when Bison
111442         was configured with --enable-gcc-warnigs.
111444 2006-11-10  Jim Meyering  <jim@meyering.net>
111446         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
111447         relevant options in CFLAGS (like -O, -fno-inline) are taken into
111448         account.
111450 2006-11-10  Jim Meyering  <jim@meyering.net>
111452         * modules/inline: New file/module.
111453         * modules/xalloc (Files): Remove m4/inline.m4.
111454         (Depends-on): Add inline, instead.
111455         * modules/oset: Likewise.
111456         * modules/list: Likewise.
111458 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
111460         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
111461         Problem reported by Matthew Woehlke.
111463 2006-11-09  Bruno Haible  <bruno@clisp.org>
111465         * lib/tempname.c (gen_tempname): Remove variant that invokes
111466         __gen_tempname.
111467         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
111468         __gen_tempname.
111470 2006-11-08  Bruno Haible  <bruno@clisp.org>
111472         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
111473         to 'yes' instead of 'cross-compiling'.
111475 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
111477         * lib/quotearg.h (quotearg_free): New decl.
111478         * lib/quotearg.c (quotearg_free): New function.
111479         (slot0, nslots, slotvec0, slotvec):
111480         Now file-scope so that quotearg_free can get at them.
111482 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111484         Sync from Automake.
111485         * build-aux/gnupload: Add missing 'gnu' to example URL.
111486         Report by Karl Berry.
111488 2006-11-08  Bruno Haible  <bruno@clisp.org>
111490         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
111491         Suggested by Paul Eggert.
111493 2006-11-08  Jim Meyering  <jim@meyering.net>
111495         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
111496         It's already included if !_LIBC.
111497         (fts_safe_changedir): Add a comment.
111499 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
111501         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
111502         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
111503         Matthew Woehlke.
111505         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
111506         definitions up, to avoid colliding with change below.
111507         (static_inline) [HAVE_INLINE]: New macro.
111508         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
111509         Provide extern decls when !HAVE_INLINE.  Do not define unless
111510         static_inline is defined, either by us or by xmalloc.c.  Use
111511         static_inline rather than static inline.
111512         (XCALLOC): Optimize sizeof(T) = 1 case.
111513         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
111515 2006-11-07  Bruno Haible  <bruno@clisp.org>
111517         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
111518         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
111519         AC_C_INLINE.
111520         * modules/xalloc (Files): Add m4/inline.m4.
111522 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111524         * README: Fix typo.
111525         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
111526         (Miscellanous Notes): ...from this.
111528 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
111530         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
111531         Mention that offsetof should be used instead of sizeof.
111532         From Bruno Haible.
111534 2006-11-07  Bruno Haible  <bruno@clisp.org>
111536         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
111538 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
111540         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
111541         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
111542         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
111543         (gl_tree_add_before, gl_tree_add_after):
111544         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
111545         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
111546         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
111547         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
111548         (gl_linked_add_after, gl_linked_add_at): Likewise.
111549         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
111550         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
111551         (gl_tree_add_before, gl_tree_add_after): Likewise.
111552         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
111553         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
111554         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
111556 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111558         * lib/gl_oset.h: Use C comment style, not C++ comment style.
111560 2006-11-06  Bruno Haible  <bruno@clisp.org>
111562         * m4/inline.m4: New file.
111563         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
111564         * modules/list (Files): Add m4/inline.m4.
111565         * modules/oset (Files): Likewise.
111567 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
111569         * lib/idcache.c: Include <stddef.h>, for offsetof.
111570         (struct userid.name): Change from char * to a flexible array member.
111571         All uses changed.
111572         * modules/idcache (Depends-on): Add flexmember.
111574         * MODULES.html.sh (Core language properties): New module flexmember.
111575         * modules/flexmember, m4/flexmember.m4: New files.
111577         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
111578         inline functions that are identical with the old xnmalloc_inline,
111579         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
111580         that we can avoid some unnecessary integer multiplications and
111581         divisions in the common case where the element size is known at
111582         compile time.
111583         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
111584         needed.
111585         (xnboundedmalloc): Remove.
111586         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
111587         arguments, for consistency with rest of this header.
111588         (xcharalloc): Rewrite using XNMALLOC.
111589         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
111590         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
111591         versions have been moved to lib/xalloc.h and renamed to be the
111592         non-*_inline versions.
111593         (xmalloc, xrealloc): Implement without reference to the xnmalloc
111594         and xnrealloc functions, since those functions are now inline and
111595         now call us.
111596         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
111597         renaming described above.
111598         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
111599         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
111600         captures the dependency in AC_C_INLINE.
111602         New module canonicalize-lgpl, proposed by Charles Wilson in
111603         <http://lists.gnu.org/r/bug-gnulib/2006-11/msg00020.html>
111604         with a few small changes afterwards.
111605         * MODULES.html.sh (File system functions): New module
111606         canonicalize-lgpl.
111607         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
111608         and canonicalize_file_name.
111609         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
111610         * modules/canonicalize-lgpl: New files.
111612 2006-11-05  Bruno Haible  <bruno@clisp.org>
111614         * gnulib-tool (func_import, func_create_testdir): Create directories
111615         also for files in subdirectories of lib/.
111617 2006-11-05  Bruno Haible  <bruno@clisp.org>
111619         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
111620         ANSI C compliant.
111622 2006-11-03  Bruno Haible  <bruno@clisp.org>
111624         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
111625         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
111626         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
111627         (xnboundedmalloc): New inline function.
111628         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
111629         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
111630         xmalloc.
111631         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
111632         xmalloc.
111633         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
111634         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
111635         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
111636         xmalloc.
111637         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
111638         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
111639         xmalloc.
111640         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
111641         gl_tree_add_after): Use XMALLOC instead of xmalloc.
111642         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
111643         xmalloc.
111644         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
111645         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
111646         gl_tree_add_after): Use XMALLOC instead of xmalloc.
111647         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
111648         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
111649         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
111650         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
111652 2006-11-03  Bruno Haible  <bruno@clisp.org>
111654         * lib/c-ctype.h [C++]: Define functions without name mangling.
111655         * lib/fwriteerror.h [C++]: Likewise.
111656         * lib/gcd.h [C++]: Likewise.
111657         * lib/linebreak.h [C++]: Likewise.
111659 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
111661         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
111662         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
111663         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
111664         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
111665         Check for functions and headers just once.
111666         Check for declaration of canonicalize_file_name.
111667         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
111669 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
111671         * gnulib-tool (func_import): Fix typo in actioncmd.
111673 2006-11-02  Bruno Haible  <bruno@clisp.org>
111675         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
111676         newline sequence in the Makefile.am snippet as a space, like "make"
111677         does.
111678         Reported by Roger Persson <perrog@gmail.com>.
111680 2006-11-01  Bruno Haible  <bruno@clisp.org>
111682         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
111683         already declared in <string.h>.
111684         * lib/strcase.h (strncasecmp): Don't declare it if yes.
111686 2006-11-01  Bruno Haible  <bruno@clisp.org>
111688         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
111689         * lib/strcase.h: Include <string.h>.
111690         (strcasecmp): Define to rpl_strcasecmp here.
111692 2006-11-01  Bruno Haible  <bruno@clisp.org>
111694         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
111696 2006-11-01  Eric Blake  <ebb9@byu.net>
111698         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
111700         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
111702 2006-10-29  Bruno Haible  <bruno@clisp.org>
111704         Make it compile in C++ mode.
111705         * lib/full-write.c (full_rw): Add a cast.
111707 2006-11-01  Bruno Haible  <bruno@clisp.org>
111709         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
111710         be POSIX compliant.
111711         Reported by Roger Persson <perrog@gmail.com>.
111713 2006-11-01  Eric Blake  <ebb9@byu.net>
111715         * lib/getopt_.h: Fix comments.
111717 2006-10-31  Eric Blake  <ebb9@byu.net>
111719         * modules/tmpdir (Depends-on): Add sys_stat.
111720         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
111721         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
111722         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
111723         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
111724         tempname.
111726 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
111728         Avoid some C++ diagnostics reported by Bruno Haible.
111729         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
111730         xmalloc.
111731         (quotearg_alloc): Use xcharalloc rather than xmalloc.
111732         (struct slotvec): Move to top level.
111733         (quotearg_n_options): Rewrite to avoid xmalloc.
111734         * lib/xalloc.h (xcharalloc): New function.
111735         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
111736         [defined __cplusplus]: Add function template that provides result
111737         type propagation.  This part of the change is from Bruno Haible.
111739 2006-10-29  Bruno Haible  <bruno@clisp.org>
111741         Make it compile in C++ mode.
111742         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
111743         * lib/strnlen1.c (strnlen1): Cast memchr result.
111744         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
111745         * lib/clean-temp.c (string_equals, string_hash): Add casts.
111746         (create_temp_dir): Rename local variable 'template'.
111747         (compile_csharp_using_sscli): Add cast.
111748         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
111749         * lib/findprog.c (find_in_path): Likewise.
111750         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
111751         * lib/wait-process.c (register_slave_subprocess): Likewise.
111753 2006-10-22  Bruno Haible  <bruno@clisp.org>
111755         * modules/tsearch: New file.
111756         * lib/tsearch.h: New file.
111757         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
111758         * m4/tsearch.m4: New file.
111759         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
111761 2006-10-29  Eric Blake  <ebb9@byu.net>
111763         * lib/arcfour.c: Assume config.h.
111764         * lib/arctwo.c: Likewise.
111765         * lib/base64.c: Likewise.
111766         * lib/check-version.c: Likewise.
111767         * lib/crc.c: Likewise.
111768         * lib/des.c: Likewise.
111769         * lib/gc-gnulib.c: Likewise.
111770         * lib/gc-libgcrypt.c: Likewise.
111771         * lib/gc-pbkdf2-sha1.c: Likewise.
111772         * lib/getaddrinfo.c: Likewise.
111773         * lib/getdelim.c: Likewise.
111774         * lib/getline.c: Likewise.
111775         * lib/hmac-md5.c: Likewise.
111776         * lib/hmac-sha1.c: Likewise.
111777         * lib/iconvme.c: Likewise.
111778         * lib/md2.c: Likewise.
111779         * lib/md4.c: Likewise.
111780         * lib/memxor.c: Likewise.
111781         * lib/read-file.c: Likewise.
111782         * lib/readline.c: Likewise.
111783         * lib/rijndael-alg-fst.c: Likewise.
111784         * lib/rijndael-api-fst.c: Likewise.
111785         * lib/xgetdomainname.c: Likewise.
111787 2006-10-28  Eric Blake  <ebb9@byu.net>
111789         * lib/xstrndup.c: Assume config.h.
111791 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
111793         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
111794         stat-macros.h is now for our own macros, whereas stat_h is for
111795         macros in the <sys/stat.h> name space.
111796         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
111797         (STAT_MACROS_H): Remove.
111798         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
111799         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
111800         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
111801         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
111802         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
111803         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
111804         Move these macros to ...
111805         * lib/stat_.h: here.  Don't include stat-macros.h.
111806         * lib/canonicalize.c: Don't include stat-macros.h.
111807         * lib/chown.c: Likewise.
111808         * lib/euidaccess.c: Likewise.
111809         * lib/file-type.c: Likewise.
111810         * lib/filemode.c: Likewise.
111811         * lib/glob.c: Likewise.
111812         * lib/isapipe.c: Likewise.
111813         * lib/lchown.c: Likewise.
111814         * lib/lstat.c: Likewise.
111815         * lib/mkdir-p.c: Likewise.
111816         * lib/rmdir.c: Likewise.
111817         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
111818         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
111819         unless mkdir isn't declared, to speed up 'configure'.
111820         Always create sys/stat.h, since it's unlikely any real sys/stat.h
111821         would define all the S_* symbols.
111822         * modules/canonicalize (Depends-on):
111823         Depend on sys_stat, not stat-macros.
111824         * modules/chown: Likewise.
111825         * modules/euidaccess: Likewise.
111826         * modules/filemode: Likewise.
111827         * modules/file-type: Likewise.
111828         * modules/glob: Likewise.
111829         * modules/isapipe: Likewise.
111830         * modules/lchown: Likewise.
111831         * modules/lstat: Likewise.
111832         * modules/mkancesdirs: Likewise.
111833         * modules/rmdir: Likewise.
111834         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
111835         * modules/modechange: Likewise.
111836         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
111837         (configure.ac): Remove gl_STAT_MACROS.
111838         * modules/sys_stat (Depends-on): Remove stat-macros.
111840 2006-10-27  Bruno Haible  <bruno@clisp.org>
111842         * m4/signed.m4: Remove file.
111843         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
111844         invocation.
111845         * modules/vasnprintf (Files): Remove m4/signed.m4.
111847 2006-10-27  Bruno Haible  <bruno@clisp.org>
111849         Update to GNU gettext 0.16.
111850         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
111851         m4/inttypes-h.m4, m4/signed.m4.
111852         * m4/gettext.m4: Update to GNU gettext 0.16.
111853         * m4/intl.m4: New file, from GNU gettext.
111854         * m4/intldir.m4: New file, from GNU gettext.
111855         * config/srclist.txt: Update
111857 2006-10-27  Eric Blake  <ebb9@byu.net>
111859         * MODULES.html.sh: Document tempname.
111860         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
111861         dependencies.
111862         (Files): Move lib/tempname.c...
111863         * modules/tempname: ...to this new module.
111864         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
111865         (gl_PREREQ_TEMPNAME): Move...
111866         * m4/tempname.m4: ...to this new file.
111867         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
111868         * modules/sys_stat (Depends-on): Add stat-macros.
111869         * lib/stat_.h (includes): Pick up stat macros.
111870         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
111871         if stat macros are broken.
111872         * lib/tempname.c (includes): No need to include "stat-macros.h".
111873         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
111874         (direxists, __path_search) [!_LIBC]: Don't compile these in
111875         gnulib; the tmpdir module covers that.
111876         * lib/tempname.h: New file.
111878 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
111880         * COPYING: Explain how gnulib-tool converts licence headers.
111881         Almost all wording by Eric Blake.
111883 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
111885         * lib/mbchar.h (is_basic_table): Make read-only.
111886         * lib/mbchar.c (is_basic_table): Likewise.
111887         Reported by John Darrington.
111889 2006-10-25  Bruno Haible  <bruno@clisp.org>
111891         * lib/progname.h (set_program_name): Undefine before defining.
111893 2006-10-25  Bruno Haible  <bruno@clisp.org>
111895         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
111896         false for non-gcc C++ compilers.
111897         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
111899 2006-10-24  Bruno Haible  <bruno@clisp.org>
111901         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
111902         iconv implementations like Irix iconv.
111904 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
111906         * modules/vararrays: New file.
111907         * m4/vararrays.m4: New file, taken from diffutils.
111908         * MODULES.html.sh: New module vararrays.
111910 2006-10-24  Karl Berry  <karl@gnu.org>
111912         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
111913         Don't call GNU Unix.
111915 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111917         * users.txt: Add Libtool.
111919         Sync from Libtool:
111921         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
111923         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
111924         to gnulib's policy of including config.h unconditionally.
111926 2006-10-24  Bruno Haible  <bruno@clisp.org>
111928         * modules/wcwidth (Files): Add m4/wint_t.m4.
111929         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
111930         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
111932 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
111934         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
111935         to pacify GCC with some -W flags enabled.  Problem reported by
111936         Bruno Haible.
111938 2006-10-24  Jim Meyering  <jim@meyering.net>
111940         * MODULES.html.sh: Remove uinttostr.  It's not a module.
111941         Reported by Karl Berry.
111943 2006-10-23  Bruno Haible  <bruno@clisp.org>
111945         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
111947 2006-10-24  Bruno Haible  <bruno@clisp.org>
111949         * lib/gl_list.h: Use C comment style, not C++ comment style.
111951 2006-10-23  Eric Blake  <ebb9@byu.net>
111953         * lib/getaddrinfo.c (includes): Add missing include.
111955 2006-10-23  Bruno Haible  <bruno@clisp.org>
111956             Paul Eggert  <eggert@cs.ucla.edu>
111958         Ability to rename obstack_free.
111959         * lib/obstack.h (__obstack_free): New macro. Declare instead of
111960         obstack_free.
111961         (obstack_free): Invoke the __obstack_free macro.
111962         * lib/obstack.c (obstack_free): Use __obstack_free macro.
111964 2006-10-23  Bruno Haible  <bruno@clisp.org>
111965             Paul Eggert  <eggert@cs.ucla.edu>
111967         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
111968         __argc, __argv from the declaration. (They are defined as macros on
111969         mingw.)
111971 2006-10-22  Bruno Haible  <bruno@clisp.org>
111973         * doc/gnulib-intro.texi: New file.
111974         * doc/gnulib.texi: Include it.
111976 2006-10-21  Bruno Haible  <bruno@clisp.org>
111978         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
111979         "Introduction", "Miscellanous Notes", "Particular Modules".
111981 2006-10-21  Bruno Haible  <bruno@clisp.org>
111983         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
111984         Change mostlyclean-local rule to avoid sh syntax error from bash
111985         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
111987 2006-10-23  Jim Meyering  <jim@meyering.net>
111989         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
111990         in place of snprintf.
111992         * modules/inttostr (Files): Add lib/uinttostr.c.
111993         * lib/uinttostr.c (inttostr): New file/function.
111994         * lib/inttostr.h (uinttostr): Declare.
111995         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
111996         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
111997         Add uinttostr.
111998         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
112000 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
112002         * lib/canonicalize.c (ELOOP): Define if not already defined.
112003         Problem reported by Bruno Haible in
112004         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00282.html>.
112006 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
112008         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
112009         Problem reported by Perry Smith and Ville Laurikari.
112011         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
112012         uses.
112014 2006-10-19  Bruno Haible  <bruno@clisp.org>
112016         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
112017         for mingw.
112019 2006-10-19  Bruno Haible  <bruno@clisp.org>
112021         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
112022         Needed for mingw.
112024 2006-10-19  Bruno Haible  <bruno@clisp.org>
112026         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
112028 2006-10-19  Bruno Haible  <bruno@clisp.org>
112030         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
112031         it.
112033 2006-10-19  Bruno Haible  <bruno@clisp.org>
112035         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
112036         invocation.
112038 2006-10-19  Bruno Haible  <bruno@clisp.org>
112040         * gnulib-tool (func_create_testdir): Don't include ftruncate and
112041         mountlist by default.
112043 2006-10-16  Bruno Haible  <bruno@clisp.org>
112045         * lib/c-strstr.c: Include c-strstr.h.
112047 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
112049         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
112050         in a slash.
112052 2006-10-18  Bruno Haible  <bruno@clisp.org>
112054         * lib/lock.h [C++]: Wrap definitions in extern "C".
112056 2006-10-18  Bruno Haible  <bruno@clisp.org>
112058         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
112059         gl_LIBOBJS list.
112061 2006-10-18  Bruno Haible  <bruno@clisp.org>
112063         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
112065 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
112067         * lib/xstrtol.h: Include gettext.h.
112068         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
112069         Problem reported by Eric Blake.
112070         * modules/xstrtol (Depends-on): Add gettext-h.
112072 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
112074         * lib/strftime.c (advance): New macro.
112075         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
112076         incomplete type, so you can't add 0 to it.  Problem and patch
112077         reported by Eelco Dolstra for dietlibc.
112079 2006-10-18  Jim Meyering  <jim@meyering.net>
112081         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
112082         type for a local, and rename it: s/up/user_proc/.
112084 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
112086         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
112087         READ_UTMP_USER_PROCESS.
112088         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
112090 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
112092         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
112093         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
112095 2006-10-17  Eric Blake  <ebb9@byu.net>
112097         * lib/sigprocmask.c (sigprocmask): Fix typo.
112099         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
112101         * modules/clean-temp (Makefile.am): Don't add to make output...
112102         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
112103         config.h.
112105 2006-10-17  Bruno Haible  <bruno@clisp.org>
112107         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
112108         differently if DEFAULT_TEXT_DOMAIN is set.
112110 2006-10-16  Bruno Haible  <bruno@clisp.org>
112112         * lib/clean-temp.c: Include fwriteerror.h.
112114 2006-10-16  Bruno Haible  <bruno@clisp.org>
112116         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
112118 2006-10-16  Bruno Haible  <bruno@clisp.org>
112120         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
112121         * lib/sigprocmask.h: Include <sys/types.h>.
112122         (sigset_t): Use the system's definition if present.
112124 2006-10-17  Eric Blake  <ebb9@byu.net>
112126         * lib/xvasprintf.c (includes): Assume config.h.
112127         * lib/xasprintf.c (includes): Likewise.
112129 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
112131         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
112132         at least as wide as intmax_t.
112134 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
112136         (Imported from Automake.)
112137         * build-aux/gnupload: Update to version 1.1 of directive file.
112139 2006-10-16  Eric Blake  <ebb9@byu.net>
112141         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
112142         match Automake 1.10a.
112144 2006-10-14  Bruno Haible  <bruno@clisp.org>
112146         * modules/sigprocmask: New file.
112147         * lib/sigprocmask.h: New file.
112148         * lib/sigprocmask.c: New file.
112149         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
112150         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
112151         request sigprocmask.o.
112152         (gl_PREREQ_SIGPROCMASK): New macro.
112153         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
112154         (Depends-on): Add sigprocmask.
112155         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
112156         gt_SIGNALBLOCKING. Test for 'raise' only once.
112157         * lib/fatal-signal.c: Include sigprocmask.h.
112158         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
112159         unblock_fatal_signals): Define always.
112160         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
112161         sigprocmask.
112163 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
112165         Sync from Automake.
112166         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
112167         which incorrectly sets the mode of an existing destination
112168         directory.  In some cases the unpatched install-sh could do the
112169         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
112170         system.  We hope this is rare in practice, but it's clearly worth
112171         fixing.  Problem reported by Alex Unleashed in
112172         <http://lists.gnu.org/r/bug-autoconf/2006-10/msg00012.html>.
112173         Also, don't bother to check for -m bugs unless we're using -m;
112174         suggested by Stepan Kasal.
112176 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112178         Sync from Automake.
112179         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
112180         `-c' flag, so they appear at the same position as in %FASTDEP%
112181         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
112182         which ignores unknown options only after the first non-option.
112183         Bug report against M4 by Nelson H. F. Beebe.
112185 2006-10-13  Jim Meyering  <jim@meyering.net>
112187         Fix a bug in yesterday's change.
112188         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
112189         p->fts_statp->st_dev would be used uninitialized.
112190         Ensures that we always call fts_stat on the very first entry.
112191         Miklos Szeredi reported that find -xdev stopped working.
112193 2006-10-12  Bruno Haible  <bruno@clisp.org>
112195         * gnulib-tool (func_get_automake_snippet): Append an automatically
112196         computed EXTRA_DIST augmentation.
112197         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
112198         * modules/alloca-opt (Makefile.am): Likewise.
112199         * modules/allocsa (Makefile.am): Likewise.
112200         * modules/arcfour (Makefile.am): Likewise.
112201         * modules/arctwo (Makefile.am): Likewise.
112202         * modules/argmatch (Makefile.am): Likewise.
112203         * modules/argz (Makefile.am): Likewise.
112204         * modules/atexit (Makefile.am): Likewise.
112205         * modules/backupfile (Makefile.am): Likewise.
112206         * modules/byteswap (Makefile.am): Likewise.
112207         * modules/c-strtod (Makefile.am): Likewise.
112208         * modules/c-strtold (Makefile.am): Likewise.
112209         * modules/calloc (Makefile.am): Likewise.
112210         * modules/canon-host (Makefile.am): Likewise.
112211         * modules/canonicalize (Makefile.am): Likewise.
112212         * modules/chdir-long (Makefile.am): Likewise.
112213         * modules/chdir-safer (Makefile.am): Likewise.
112214         * modules/check-version (Makefile.am): Likewise.
112215         * modules/chown (Makefile.am): Likewise.
112216         * modules/cloexec (Makefile.am): Likewise.
112217         * modules/close-stream (Makefile.am): Likewise.
112218         * modules/closeout (Makefile.am): Likewise.
112219         * modules/crc (Makefile.am): Likewise.
112220         * modules/csharpexec (Makefile.am): Likewise.
112221         * modules/cycle-check (Makefile.am): Likewise.
112222         * modules/des (Makefile.am): Likewise.
112223         * modules/dev-ino (Makefile.am): Likewise.
112224         * modules/dirfd (Makefile.am): Likewise.
112225         * modules/dirname (Makefile.am): Likewise.
112226         * modules/dup2 (Makefile.am): Likewise.
112227         * modules/eealloc (Makefile.am): Likewise.
112228         * modules/error (Makefile.am): Likewise.
112229         * modules/euidaccess (Makefile.am): Likewise.
112230         * modules/exclude (Makefile.am): Likewise.
112231         * modules/exitfail (Makefile.am): Likewise.
112232         * modules/fcntl-safer (Makefile.am): Likewise.
112233         * modules/fcntl (Makefile.am): Likewise.
112234         * modules/file-type (Makefile.am): Likewise.
112235         * modules/fileblocks (Makefile.am): Likewise.
112236         * modules/filemode (Makefile.am): Likewise.
112237         * modules/filenamecat (Makefile.am): Likewise.
112238         * modules/fnmatch (Makefile.am): Likewise.
112239         * modules/fopen-safer (Makefile.am): Likewise.
112240         * modules/fpending (Makefile.am): Likewise.
112241         * modules/fprintftime (Makefile.am): Likewise.
112242         * modules/free (Makefile.am): Likewise.
112243         * modules/fsusage (Makefile.am): Likewise.
112244         * modules/ftruncate (Makefile.am): Likewise.
112245         * modules/fts (Makefile.am): Likewise.
112246         * modules/gc-arcfour (Makefile.am): Likewise.
112247         * modules/gc-des (Makefile.am): Likewise.
112248         * modules/gc-hmac-md5 (Makefile.am): Likewise.
112249         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
112250         * modules/gc-md4 (Makefile.am): Likewise.
112251         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
112252         * modules/gc-sha1 (Makefile.am): Likewise.
112253         * modules/gc (Makefile.am): Likewise.
112254         * modules/getaddrinfo (Makefile.am): Likewise.
112255         * modules/getcwd (Makefile.am): Likewise.
112256         * modules/getdelim (Makefile.am): Likewise.
112257         * modules/getdomainname (Makefile.am): Likewise.
112258         * modules/getgroups (Makefile.am): Likewise.
112259         * modules/gethostname (Makefile.am): Likewise.
112260         * modules/gethrxtime (Makefile.am): Likewise.
112261         * modules/getline (Makefile.am): Likewise.
112262         * modules/getloadavg (Makefile.am): Likewise.
112263         * modules/getlogin_r (Makefile.am): Likewise.
112264         * modules/getndelim2 (Makefile.am): Likewise.
112265         * modules/getopt (Makefile.am): Likewise.
112266         * modules/getpagesize (Makefile.am): Likewise.
112267         * modules/getpass-gnu (Makefile.am): Likewise.
112268         * modules/getpass (Makefile.am): Likewise.
112269         * modules/getsubopt (Makefile.am): Likewise.
112270         * modules/gettime (Makefile.am): Likewise.
112271         * modules/gettimeofday (Makefile.am): Likewise.
112272         * modules/getugroups (Makefile.am): Likewise.
112273         * modules/getusershell (Makefile.am): Likewise.
112274         * modules/glob (Makefile.am): Likewise.
112275         * modules/group-member (Makefile.am): Likewise.
112276         * modules/hard-locale (Makefile.am): Likewise.
112277         * modules/hash (Makefile.am): Likewise.
112278         * modules/hmac-md5 (Makefile.am): Likewise.
112279         * modules/hmac-sha1 (Makefile.am): Likewise.
112280         * modules/human (Makefile.am): Likewise.
112281         * modules/idcache (Makefile.am): Likewise.
112282         * modules/imaxabs (Makefile.am): Likewise.
112283         * modules/imaxdiv (Makefile.am): Likewise.
112284         * modules/inet_ntop (Makefile.am): Likewise.
112285         * modules/inet_pton (Makefile.am): Likewise.
112286         * modules/intprops (Makefile.am): Likewise.
112287         * modules/inttostr (Makefile.am): Likewise.
112288         * modules/inttypes (Makefile.am): Likewise.
112289         * modules/isapipe (Makefile.am): Likewise.
112290         * modules/javaversion (Makefile.am): Likewise.
112291         * modules/lchmod (Makefile.am): Likewise.
112292         * modules/lchown (Makefile.am): Likewise.
112293         * modules/localcharset (Makefile.am): Likewise.
112294         * modules/long-options (Makefile.am): Likewise.
112295         * modules/lstat (Makefile.am): Likewise.
112296         * modules/malloc (Makefile.am): Likewise.
112297         * modules/mathl (Makefile.am): Likewise.
112298         * modules/mbchar (Makefile.am): Likewise.
112299         * modules/md2 (Makefile.am): Likewise.
112300         * modules/md4 (Makefile.am): Likewise.
112301         * modules/md5 (Makefile.am): Likewise.
112302         * modules/memcasecmp (Makefile.am): Likewise.
112303         * modules/memchr (Makefile.am): Likewise.
112304         * modules/memcmp (Makefile.am): Likewise.
112305         * modules/memcoll (Makefile.am): Likewise.
112306         * modules/memcpy (Makefile.am): Likewise.
112307         * modules/memmem (Makefile.am): Likewise.
112308         * modules/memmove (Makefile.am): Likewise.
112309         * modules/mempcpy (Makefile.am): Likewise.
112310         * modules/memrchr (Makefile.am): Likewise.
112311         * modules/memset (Makefile.am): Likewise.
112312         * modules/memxor (Makefile.am): Likewise.
112313         * modules/mkancesdirs (Makefile.am): Likewise.
112314         * modules/mkdir-p (Makefile.am): Likewise.
112315         * modules/mkdir (Makefile.am): Likewise.
112316         * modules/mkdtemp (Makefile.am): Likewise.
112317         * modules/mkstemp (Makefile.am): Likewise.
112318         * modules/mktime (Makefile.am): Likewise.
112319         * modules/modechange (Makefile.am): Likewise.
112320         * modules/mountlist (Makefile.am): Likewise.
112321         * modules/nanosleep (Makefile.am): Likewise.
112322         * modules/obstack (Makefile.am): Likewise.
112323         * modules/openat (Makefile.am): Likewise.
112324         * modules/pagealign_alloc (Makefile.am): Likewise.
112325         * modules/pathmax (Makefile.am): Likewise.
112326         * modules/physmem (Makefile.am): Likewise.
112327         * modules/poll (Makefile.am): Likewise.
112328         * modules/posixtm (Makefile.am): Likewise.
112329         * modules/posixver (Makefile.am): Likewise.
112330         * modules/putenv (Makefile.am): Likewise.
112331         * modules/quote (Makefile.am): Likewise.
112332         * modules/quotearg (Makefile.am): Likewise.
112333         * modules/raise (Makefile.am): Likewise.
112334         * modules/read-file (Makefile.am): Likewise.
112335         * modules/readline (Makefile.am): Likewise.
112336         * modules/readlink (Makefile.am): Likewise.
112337         * modules/readtokens (Makefile.am): Likewise.
112338         * modules/readutmp (Makefile.am): Likewise.
112339         * modules/realloc (Makefile.am): Likewise.
112340         * modules/regex (Makefile.am): Likewise.
112341         * modules/rename-dest-slash (Makefile.am): Likewise.
112342         * modules/rename (Makefile.am): Likewise.
112343         * modules/rijndael (Makefile.am): Likewise.
112344         * modules/rmdir (Makefile.am): Likewise.
112345         * modules/rpmatch (Makefile.am): Likewise.
112346         * modules/safe-read (Makefile.am): Likewise.
112347         * modules/safe-write (Makefile.am): Likewise.
112348         * modules/same-inode (Makefile.am): Likewise.
112349         * modules/same (Makefile.am): Likewise.
112350         * modules/save-cwd (Makefile.am): Likewise.
112351         * modules/savedir (Makefile.am): Likewise.
112352         * modules/setenv (Makefile.am): Likewise.
112353         * modules/settime (Makefile.am): Likewise.
112354         * modules/sha1 (Makefile.am): Likewise.
112355         * modules/sig2str (Makefile.am): Likewise.
112356         * modules/snprintf (Makefile.am): Likewise.
112357         * modules/stat-macros (Makefile.am): Likewise.
112358         * modules/stat-time (Makefile.am): Likewise.
112359         * modules/stdbool (Makefile.am): Likewise.
112360         * modules/stdint (Makefile.am): Likewise.
112361         * modules/stdlib-safer (Makefile.am): Likewise.
112362         * modules/stpcpy (Makefile.am): Likewise.
112363         * modules/stpncpy (Makefile.am): Likewise.
112364         * modules/strcase (Makefile.am): Likewise.
112365         * modules/strcasestr (Makefile.am): Likewise.
112366         * modules/strchrnul (Makefile.am): Likewise.
112367         * modules/strcspn (Makefile.am): Likewise.
112368         * modules/strdup (Makefile.am): Likewise.
112369         * modules/strerror (Makefile.am): Likewise.
112370         * modules/strftime (Makefile.am): Likewise.
112371         * modules/strndup (Makefile.am): Likewise.
112372         * modules/strnlen (Makefile.am): Likewise.
112373         * modules/strpbrk (Makefile.am): Likewise.
112374         * modules/strsep (Makefile.am): Likewise.
112375         * modules/strstr (Makefile.am): Likewise.
112376         * modules/strtod (Makefile.am): Likewise.
112377         * modules/strtoimax (Makefile.am): Likewise.
112378         * modules/strtok_r (Makefile.am): Likewise.
112379         * modules/strtol (Makefile.am): Likewise.
112380         * modules/strtoll (Makefile.am): Likewise.
112381         * modules/strtoul (Makefile.am): Likewise.
112382         * modules/strtoull (Makefile.am): Likewise.
112383         * modules/strtoumax (Makefile.am): Likewise.
112384         * modules/strverscmp (Makefile.am): Likewise.
112385         * modules/sys_socket (Makefile.am): Likewise.
112386         * modules/sys_stat (Makefile.am): Likewise.
112387         * modules/sysexits (Makefile.am): Likewise.
112388         * modules/time_r (Makefile.am): Likewise.
112389         * modules/timegm (Makefile.am): Likewise.
112390         * modules/timespec (Makefile.am): Likewise.
112391         * modules/tmpfile-safer (Makefile.am): Likewise.
112392         * modules/trim (Makefile.am): Likewise.
112393         * modules/unistd-safer (Makefile.am): Likewise.
112394         * modules/unlinkdir (Makefile.am): Likewise.
112395         * modules/unlocked-io (Makefile.am): Likewise.
112396         * modules/userspec (Makefile.am): Likewise.
112397         * modules/utime (Makefile.am): Likewise.
112398         * modules/utimecmp (Makefile.am): Likewise.
112399         * modules/utimens (Makefile.am): Likewise.
112400         * modules/vasnprintf (Makefile.am): Likewise.
112401         * modules/vasprintf (Makefile.am): Likewise.
112402         * modules/vsnprintf (Makefile.am): Likewise.
112403         * modules/xalloc (Makefile.am): Likewise.
112404         * modules/xgetcwd (Makefile.am): Likewise.
112405         * modules/xnanosleep (Makefile.am): Likewise.
112406         * modules/xreadlink (Makefile.am): Likewise.
112407         * modules/xstrtod (Makefile.am): Likewise.
112408         * modules/xstrtol (Makefile.am): Likewise.
112409         * modules/xstrtold (Makefile.am): Likewise.
112410         * modules/yesno (Makefile.am): Likewise.
112411         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
112413 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
112415         * modules/error (Makefile.am): Distribute files through
112416         EXTRA_DIST, not lib_SOURCES.
112418 2006-10-12  Eric Blake  <ebb9@byu.net>
112420         * modules/error (Makefile.am): Distribute files in /lib.
112421         * modules/obstack (Makefile.am): Likewise.
112423 2006-10-12  Bruno Haible  <bruno@clisp.org>
112425         * modules/acl (Makefile.am): Distribute all files in lib/ through
112426         EXTRA_DIST.
112427         * modules/arcfour (Makefile.am): Likewise.
112428         * modules/arctwo (Makefile.am): Likewise.
112429         * modules/argmatch (Makefile.am): Likewise.
112430         * modules/argz (Makefile.am): Likewise.
112431         * modules/atexit (Makefile.am): Likewise.
112432         * modules/backupfile (Makefile.am): Likewise.
112433         * modules/c-strtod (Makefile.am): Likewise.
112434         * modules/c-strtold (Makefile.am): Likewise.
112435         * modules/calloc (Makefile.am): Likewise.
112436         * modules/canon-host (Makefile.am): Likewise.
112437         * modules/canonicalize (Makefile.am): Likewise.
112438         * modules/chdir-long (Makefile.am): Likewise.
112439         * modules/chdir-safer (Makefile.am): Likewise.
112440         * modules/check-version (Makefile.am): Likewise.
112441         * modules/chown (Makefile.am): Likewise.
112442         * modules/cloexec (Makefile.am): Likewise.
112443         * modules/close-stream (Makefile.am): Likewise.
112444         * modules/closeout (Makefile.am): Likewise.
112445         * modules/crc (Makefile.am): Likewise.
112446         * modules/cycle-check (Makefile.am): Likewise.
112447         * modules/des (Makefile.am): Likewise.
112448         * modules/dirfd (Makefile.am): Likewise.
112449         * modules/dirname (Makefile.am): Likewise.
112450         * modules/dup2 (Makefile.am): Likewise.
112451         * modules/euidaccess (Makefile.am): Likewise.
112452         * modules/exclude (Makefile.am): Likewise.
112453         * modules/exitfail (Makefile.am): Likewise.
112454         * modules/fcntl-safer (Makefile.am): Likewise.
112455         * modules/file-type (Makefile.am): Likewise.
112456         * modules/fileblocks (Makefile.am): Likewise.
112457         * modules/filemode (Makefile.am): Likewise.
112458         * modules/filenamecat (Makefile.am): Likewise.
112459         * modules/fnmatch (Makefile.am): Likewise.
112460         * modules/fopen-safer (Makefile.am): Likewise.
112461         * modules/fpending (Makefile.am): Likewise.
112462         * modules/fprintftime (Makefile.am): Likewise.
112463         * modules/free (Makefile.am): Likewise.
112464         * modules/fsusage (Makefile.am): Likewise.
112465         * modules/ftruncate (Makefile.am): Likewise.
112466         * modules/fts (Makefile.am): Likewise.
112467         * modules/gc (Makefile.am): Likewise.
112468         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
112469         * modules/getaddrinfo (Makefile.am): Likewise.
112470         * modules/getcwd (Makefile.am): Likewise.
112471         * modules/getdelim (Makefile.am): Likewise.
112472         * modules/getdomainname (Makefile.am): Likewise.
112473         * modules/getgroups (Makefile.am): Likewise.
112474         * modules/gethostname (Makefile.am): Likewise.
112475         * modules/gethrxtime (Makefile.am): Likewise.
112476         * modules/getline (Makefile.am): Likewise.
112477         * modules/getloadavg (Makefile.am): Likewise.
112478         * modules/getlogin_r (Makefile.am): Likewise.
112479         * modules/getopt (Makefile.am): Likewise.
112480         * modules/getpass (Makefile.am): Likewise.
112481         * modules/getpass-gnu (Makefile.am): Likewise.
112482         * modules/getsubopt (Makefile.am): Likewise.
112483         * modules/gettime (Makefile.am): Likewise.
112484         * modules/gettimeofday (Makefile.am): Likewise.
112485         * modules/getugroups (Makefile.am): Likewise.
112486         * modules/getusershell (Makefile.am): Likewise.
112487         * modules/glob (Makefile.am): Likewise.
112488         * modules/group-member (Makefile.am): Likewise.
112489         * modules/hard-locale (Makefile.am): Likewise.
112490         * modules/hash (Makefile.am): Likewise.
112491         * modules/hmac-md5 (Makefile.am): Likewise.
112492         * modules/hmac-sha1 (Makefile.am): Likewise.
112493         * modules/human (Makefile.am): Likewise.
112494         * modules/idcache (Makefile.am): Likewise.
112495         * modules/imaxabs (Makefile.am): Likewise.
112496         * modules/imaxdiv (Makefile.am): Likewise.
112497         * modules/inet_ntop (Makefile.am): Likewise.
112498         * modules/inet_pton (Makefile.am): Likewise.
112499         * modules/inttostr (Makefile.am): Likewise.
112500         * modules/isapipe (Makefile.am): Likewise.
112501         * modules/lchown (Makefile.am): Likewise.
112502         * modules/long-options (Makefile.am): Likewise.
112503         * modules/lstat (Makefile.am): Likewise.
112504         * modules/malloc (Makefile.am): Likewise.
112505         * modules/mathl (Makefile.am): Likewise.
112506         * modules/mbchar (Makefile.am): Likewise.
112507         * modules/md2 (Makefile.am): Likewise.
112508         * modules/md4 (Makefile.am): Likewise.
112509         * modules/md5 (Makefile.am): Likewise.
112510         * modules/memcasecmp (Makefile.am): Likewise.
112511         * modules/memchr (Makefile.am): Likewise.
112512         * modules/memcmp (Makefile.am): Likewise.
112513         * modules/memcoll (Makefile.am): Likewise.
112514         * modules/memcpy (Makefile.am): Likewise.
112515         * modules/memmem (Makefile.am): Likewise.
112516         * modules/memmove (Makefile.am): Likewise.
112517         * modules/mempcpy (Makefile.am): Likewise.
112518         * modules/memrchr (Makefile.am): Likewise.
112519         * modules/memset (Makefile.am): Likewise.
112520         * modules/memxor (Makefile.am): Likewise.
112521         * modules/mkancesdirs (Makefile.am): Likewise.
112522         * modules/mkdir (Makefile.am): Likewise.
112523         * modules/mkdir-p (Makefile.am): Likewise.
112524         * modules/mkdtemp (Makefile.am): Likewise.
112525         * modules/mkstemp (Makefile.am): Likewise.
112526         * modules/mktime (Makefile.am): Likewise.
112527         * modules/modechange (Makefile.am): Likewise.
112528         * modules/mountlist (Makefile.am): Likewise.
112529         * modules/nanosleep (Makefile.am): Likewise.
112530         * modules/openat (Makefile.am): Likewise.
112531         * modules/pagealign_alloc (Makefile.am): Likewise.
112532         * modules/physmem (Makefile.am): Likewise.
112533         * modules/poll (Makefile.am): Likewise.
112534         * modules/posixtm (Makefile.am): Likewise.
112535         * modules/posixver (Makefile.am): Likewise.
112536         * modules/putenv (Makefile.am): Likewise.
112537         * modules/quote (Makefile.am): Likewise.
112538         * modules/quotearg (Makefile.am): Likewise.
112539         * modules/raise (Makefile.am): Likewise.
112540         * modules/read-file (Makefile.am): Likewise.
112541         * modules/readline (Makefile.am): Likewise.
112542         * modules/readlink (Makefile.am): Likewise.
112543         * modules/readtokens (Makefile.am): Likewise.
112544         * modules/readutmp (Makefile.am): Likewise.
112545         * modules/realloc (Makefile.am): Likewise.
112546         * modules/regex (Makefile.am): Likewise.
112547         * modules/rename (Makefile.am): Likewise.
112548         * modules/rename-dest-slash (Makefile.am): Likewise.
112549         * modules/rijndael (Makefile.am): Likewise.
112550         * modules/rmdir (Makefile.am): Likewise.
112551         * modules/rpmatch (Makefile.am): Likewise.
112552         * modules/safe-read (Makefile.am): Likewise.
112553         * modules/safe-write (Makefile.am): Likewise.
112554         * modules/same (Makefile.am): Likewise.
112555         * modules/save-cwd (Makefile.am): Likewise.
112556         * modules/savedir (Makefile.am): Likewise.
112557         * modules/setenv (Makefile.am): Likewise.
112558         * modules/settime (Makefile.am): Likewise.
112559         * modules/sha1 (Makefile.am): Likewise.
112560         * modules/sig2str (Makefile.am): Likewise.
112561         * modules/snprintf (Makefile.am): Likewise.
112562         * modules/stdlib-safer (Makefile.am): Likewise.
112563         * modules/stpcpy (Makefile.am): Likewise.
112564         * modules/stpncpy (Makefile.am): Likewise.
112565         * modules/strcase (Makefile.am): Likewise.
112566         * modules/strcasestr (Makefile.am): Likewise.
112567         * modules/strchrnul (Makefile.am): Likewise.
112568         * modules/strcspn (Makefile.am): Likewise.
112569         * modules/strdup (Makefile.am): Likewise.
112570         * modules/strerror (Makefile.am): Likewise.
112571         * modules/strftime (Makefile.am): Likewise.
112572         * modules/strndup (Makefile.am): Likewise.
112573         * modules/strnlen (Makefile.am): Likewise.
112574         * modules/strpbrk (Makefile.am): Likewise.
112575         * modules/strsep (Makefile.am): Likewise.
112576         * modules/strstr (Makefile.am): Likewise.
112577         * modules/strtod (Makefile.am): Likewise.
112578         * modules/strtoimax (Makefile.am): Likewise.
112579         * modules/strtok_r (Makefile.am): Likewise.
112580         * modules/strtol (Makefile.am): Likewise.
112581         * modules/strtoll (Makefile.am): Likewise.
112582         * modules/strtoul (Makefile.am): Likewise.
112583         * modules/strtoull (Makefile.am): Likewise.
112584         * modules/strtoumax (Makefile.am): Likewise.
112585         * modules/strverscmp (Makefile.am): Likewise.
112586         * modules/time_r (Makefile.am): Likewise.
112587         * modules/timegm (Makefile.am): Likewise.
112588         * modules/tmpfile-safer (Makefile.am): Likewise.
112589         * modules/unistd-safer (Makefile.am): Likewise.
112590         * modules/unlinkdir (Makefile.am): Likewise.
112591         * modules/userspec (Makefile.am): Likewise.
112592         * modules/utime (Makefile.am): Likewise.
112593         * modules/utimecmp (Makefile.am): Likewise.
112594         * modules/utimens (Makefile.am): Likewise.
112595         * modules/vasnprintf (Makefile.am): Likewise.
112596         * modules/vasprintf (Makefile.am): Likewise.
112597         * modules/vsnprintf (Makefile.am): Likewise.
112598         * modules/xalloc (Makefile.am): Likewise.
112599         * modules/xgetcwd (Makefile.am): Likewise.
112600         * modules/xnanosleep (Makefile.am): Likewise.
112601         * modules/xreadlink (Makefile.am): Likewise.
112602         * modules/xstrtod (Makefile.am): Likewise.
112603         * modules/xstrtol (Makefile.am): Likewise.
112604         * modules/xstrtold (Makefile.am): Likewise.
112605         * modules/yesno (Makefile.am): Likewise.
112607 2006-10-12  Jim Meyering  <jim@meyering.net>
112609         * m4/getloadavg.m4: Revert the change below.
112611         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
112612         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
112613         fail with a symlink, which is what coreutils' ./bootstrap now
112614         creates by default.
112616 2006-10-12  Bruno Haible  <bruno@clisp.org>
112618         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
112619         mingw.
112620         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
112621         MSVC and mingw explicitly.
112623 2006-10-11  Simon Josefsson  <jas@extundo.com>
112624             Bruno Haible  <bruno@clisp.org>
112626         Add support for multiple gnulib-tool invocations in the scope of a
112627         single configure.ac file.
112628         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
112629         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
112630         with the same contents as the _LIBADD variable.
112631         (func_emit_initmacro_start, func_emit_initmacro_end,
112632         func_emit_initmacro_done): New functions.
112633         (func_import, func_create_testdir): Invoke them. Allow the identifiers
112634         gl_LIBOBJS and gl_LTLIBOBJS.
112636 2006-10-11  Bruno Haible  <bruno@clisp.org>
112638         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
112639         (func_create_testdir): Don't create po/Makefile.am, don't invoke
112640         autoreconf. Instead, invoke autopoint explicitly but move back the
112641         *.m4 files from gnulib.
112643 2006-10-11  Bruno Haible  <bruno@clisp.org>
112645         * gnulib-tool (func_usage): Make module names after --create-testdir
112646         optional.
112647         (func_create_testdir): If no module was specified, use nearly all
112648         modules.
112650 2006-10-12  Jim Meyering  <jim@meyering.net>
112652         Big performance improvement for fts-based tools that use FTS_NOSTAT.
112653         Avoid spurious inode-mismatch problems on non-POSIX file systems.
112654         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
112655         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
112656         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
112657         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
112658         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
112659         (fts_set_stat_required): New function.
112660         (fts_open): Defer the calls to fts_stat, if possible or requested.
112661         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
112662         into fts_stat itself.
112663         (fts_read): Perform any required (deferred) fts_stat call.
112664         (fts_build): Likewise, for the directory we're about to open and read.
112665         In the readdir loop, carefully decide whether each entry will require
112666         an eventual call to fts_stat, using dirent.d_type info if available.
112667         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
112668         a command line argument into this function.  Update all callers.
112669         Map a return value of FTS_DOT to FTS_D for a command line argument.
112670         * modules/fts (Depends-on): Add d-type.  Alphabetize.
112671         Thanks to Miklos Szeredi for his tenacity and for the initial
112672         bug report about "find" failing on a FUSE-based file system.
112674         * lib/fts.c (fts_open): Use consistent indentation.
112676 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
112678         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
112679         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
112680         reported by Jim Meyering.  All uses of cache variables renamed
112681         to match Autoconf's.
112682         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
112683         the other one.
112685         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
112686         Fix misspelling in diagnostic.
112688 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
112690         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
112691         defined.  Problem reported by Matthew Woehlke.
112693         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
112694         Add support for Tandem NonStop R series.
112695         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
112696         Use new macro.
112698         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
112699         (has_trailing_slash): Omit size arg; all callers changed.
112700         Omit 'inline', since it doesn't help performance and we'd
112701         need to configure it.
112702         Don't count //, ///, etc. as having a trailing slash.
112703         As a side effect, this removes a C99ism reported by Matthew Woehlke.
112704         (rpl_rename_dest_slash): On failure, use rename's errno rather
112705         than (in some cases) an incorrect or junk errno.
112706         Simplify code by removing need to compute length; this does
112707         cause it to make two passes instead of one over the file name,
112708         but it's worth it.
112710         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
112711         change, since Autoconf's version may no longer be appropriate now
112712         that we are using CVS Autoconf's version.  Add support for Tandem.
112714 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
112715             Bruno Haible  <bruno@clisp.org>
112717         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
112718         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
112719         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
112720         gl_AC_TYPE_LONG_LONG.
112722         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
112723         instead of HAVE_LONG_LONG.
112724         * lib/printf-args.c (printf_fetchargs): Likewise.
112725         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
112726         * lib/vasnprintf.c (VASNPRINTF): Likewise.
112727         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
112728         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
112729         gl_AC_TYPE_LONG_LONG.
112731 2006-10-11  Bruno Haible  <bruno@clisp.org>
112733         * m4/longlong.m4: Add comments.
112734         * m4/ulonglong.m4: Likewise.
112736 2006-10-10  Bruno Haible  <bruno@clisp.org>
112738         Make it possible to #define stpcpy, strdup to aliases.
112739         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
112740         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
112742 2006-10-10  Bruno Haible  <bruno@clisp.org>
112744         Make it possible to #define gcd to an alias.
112745         * lib/gcd.c: Include config.h.
112747 2006-10-10  Bruno Haible  <bruno@clisp.org>
112749         Make it possible to #define c_isascii to an alias.
112750         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
112751         defined. Undefine the macros before defining them, to avoid gcc
112752         warnings.
112753         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
112754         define NO_C_CTYPE_MACROS early.
112756 2006-10-10  Bruno Haible  <bruno@clisp.org>
112758         Make it possible to #define set_program_name to an alias.
112759         * lib/progname.c: Don't undefine set_program_name; instead, undefine
112760         ENABLE_RELOCATABLE early.
112762 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
112764         Port to Tandem NSK OSS, which has 64-bit signed int but at most
112765         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
112766         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00062.html
112767         More generally, don't assume that 64-bit signed int is available
112768         if unsigned int is, and vice versa.
112769         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
112770         unsigned symbols, not on their signed counterparts.
112771         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
112772         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
112773         (UINT64_C, UINTMAX_C):
112774         Likewise.
112775         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
112776         unsigned counterparts.
112777         (Have_long_long, Unsigned): New macros.
112778         (Int): Renamed from INT.
112779         (strtoimax): Use the new macros.
112780         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
112781         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
112782         * modules/inttypes (inttypes.h): Substitute
112783         HAVE_UNSIGNED_LONG_LONG_INT.
112784         * modules/stdint (stdint.h): Likewise.
112785         (Files): Add m4/ulonglong.m4.
112787 2006-10-10  Bruno Haible  <bruno@clisp.org>
112789         Fix a gcc -Wshadow warning.
112790         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
112791         to 'bucket'.
112792         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
112793         gl_linked_indexof_from_to): Likewise.
112794         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
112795         Likewise.
112796         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
112797         Likewise.
112798         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
112799         Reported by Eric Blake.
112801 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
112803         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
112804         for NetBSD.  Problem reported by Bruno Haible.
112806 2006-10-09  Jim Meyering  <jim@meyering.net>
112808         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
112809         Patch from Bruno Haible.
112811 2006-10-09  Jim Meyering  <jim@meyering.net>
112813         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
112814         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
112815         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
112817 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
112819         Don't include <config.h> twice; this doesn't work in some cases,
112820         e.g., when config.h has "#define intmax_t long long int" and
112821         we include <config.h>, <inttypes.h>, <config.h> in that order.
112822         Problem reported by Matthew Woehlke in:
112823         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00073.html
112824         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
112825         * lib/fts-cycle.c: Don't include config.h.
112826         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
112827         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
112828         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
112829         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
112830         inttypes.h.
112831         * lib/xstrtoumax.c: Likewise.
112832         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
112833         __strtol and the like, so that this module is more like its siblings.
112834         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
112835         Remove; no longer needed now that we assume gnulib inttypes.h.
112837 2006-10-08  Bruno Haible  <bruno@clisp.org>
112839         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
112840         option.
112842 2006-10-07  Jim Meyering  <jim@meyering.net>
112844         * modules/inttypes (inttypes.h): Revert what seems to have been
112845         an inadvertent part of today's change: use "|", not "/" in the
112846         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
112848 2006-10-07  Bruno Haible  <bruno@clisp.org>
112850         * modules/sublist: New file.
112852 2006-10-07  Bruno Haible  <bruno@clisp.org>
112854         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
112855         * modules/argz (argz.h): Likewise.
112856         * modules/arpa_inet (arpa/inet.h): Likewise.
112857         * modules/byteswap (byteswap.h): Likewise.
112858         * modules/configmake (configmake.h): Likewise.
112859         * modules/fcntl (fcntl.h): Likewise.
112860         * modules/fnmatch (fnmatch.h): Likewise.
112861         * modules/getopt (getopt.h): Likewise.
112862         * modules/glob (glob.h): Likewise.
112863         * modules/inttypes (inttypes.h): Likewise.
112864         * modules/netinet_in (netinet/in.h): Likewise.
112865         * modules/poll (poll.h): Likewise.
112866         * modules/stdbool (stdbool.h): Likewise.
112867         * modules/stdint (stdint.h): Likewise.
112868         * modules/sys_select (sys/select.h): Likewise.
112869         * modules/sys_socket (sys/socket.h): Likewise.
112870         * modules/sys_stat (sys/stat.h): Likewise.
112871         * modules/sysexits (sysexits.h): Likewise.
112872         * modules/unistd (unistd.h): Likewise.
112873         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
112874         Add a "DO NOT EDIT" comment to the generated file.
112875         (func_import): Likewise for gnulib-comp.m4.
112877 2006-10-07  Bruno Haible  <bruno@clisp.org>
112879         * lib/gl_sublist.h: New file.
112880         * lib/gl_sublist.c: New file.
112882 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
112884         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
112885         name (relative to the original working directory) and the file
112886         name component (relative to the temporary working directory).  All
112887         callers changed.
112888         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
112889         * lib/mkdir-p.c (make_dir_parents): Likewise.
112890         * lib/mkdir-p.h (make_dir_parents): Likewise.
112892 2006-10-06  Eric Blake  <ebb9@byu.net>
112894         Define several macros for use by the clean-temp module.
112895         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
112896         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
112897         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
112899         * lib/clean-temp.h (close_stream_temp): New declaration.
112900         * lib/clean-temp.c (includes): Pull in headers according to what
112901         other modules are in use.
112902         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
112904 2006-10-06  Bruno Haible  <bruno@clisp.org>
112906         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
112907         instead of fopen, fwriteerror.
112909 2006-10-06  Bruno Haible  <bruno@clisp.org>
112911         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
112912         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
112913         int.
112914         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
112915         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
112916         Return an error indicator.
112917         Suggested by Eric Blake.
112919 2006-10-06  Bruno Haible  <bruno@clisp.org>
112921         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
112922         Reported by Eric Blake.
112924 2006-10-06  Bruno Haible  <bruno@clisp.org>
112926         * modules/closeout (Description): Mention stderr too.
112928 2006-10-06  Bruno Haible  <bruno@clisp.org>
112929         and Paul Eggert  <eggert@cs.ucla.edu>
112931         * lib/closeout.c (close_stdout): Also close stderr.
112932         * lib/closeout.h: Update comment.
112934 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
112936         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
112937         <http://lists.gnu.org/r/bug-coreutils/2006-10/msg00063.html>.
112938         * lib/dirchownmod.c: Include lchown.h.
112939         * lib/lchown.c: Don't include files that lchown.h now includes.
112940         Don't declare chown, since lchown.h now does that.
112941         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
112942         (lchown): Define to rpl_chown if lchown is declared but
112943         does not exist.  Declare using a prototype if lchown is not
112944         declared.  Add a copyright notice.
112945         * lib/mkstemp.h: Include <unistd.h>.
112946         * lib/openat.c: Include lchown.h.
112948         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
112949         we now test for that separately.
112950         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
112951         rather than O_NOFOLLOW, when testing whether it's possible to
112952         avoid a race condition reliably.
112953         * lib/savewd.c (savewd_chdir): Likewise.
112955         Remove macros that are no longer needed now that stdint.h is
112956         reliable.
112957         * lib/fsusage.c (UINTMAX_MAX): Remove.
112958         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
112959         * lib/utimecmp.c (SIZE_MAX): Remove.
112961         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
112963         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
112964         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
112965         O_NOATIME works.
112967 2006-10-05  Bruno Haible  <bruno@clisp.org>
112969         * lib/gl_list.h (gl_sortedlist_search_from_to,
112970         gl_sortedlist_indexof_from_to): New declarations.
112971         (gl_list_implementation): New fields sortedlist_search_from_to,
112972         sortedlist_indexof_from_to.
112973         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
112974         inline functions.
112975         * lib/gl_list.c (gl_sortedlist_search_from_to,
112976         gl_sortedlist_indexof_from_to): New functions.
112977         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
112978         function.
112979         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
112980         (gl_array_sortedlist_search_from_to): New function.
112981         (gl_array_list_implementation): Update.
112982         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
112983         function.
112984         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
112985         (gl_carray_sortedlist_search_from_to): New function.
112986         (gl_carray_list_implementation): Update.
112987         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
112988         gl_linked_sortedlist_indexof_from_to): New functions.
112989         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
112990         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
112991         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
112992         gl_tree_sortedlist_indexof_from_to): New functions.
112993         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
112994         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
112995         Update.
112996         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
112997         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
112998         Update.
113000 2006-10-05  Bruno Haible  <bruno@clisp.org>
113002         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
113003         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
113004         (struct gl_list_implementation): Add fields search_from_to,
113005         indexof_from_to. Remove fields search, indexof.
113006         (gl_list_search): Use the search_from_to method.
113007         (gl_list_search_from, gl_list_search_from_to): New functions.
113008         (gl_list_indexof): Use the indexof_from_to method.
113009         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
113010         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
113011         (gl_list_search_from, gl_list_search_from_to): New functions.
113012         (gl_list_indexof): Use the indexof_from_to method.
113013         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
113014         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
113015         gl_array_indexof. Add start_index, end_index arguments.
113016         (gl_array_search_from_to): Renamed from gl_array_search. Add
113017         start_index, end_index arguments.
113018         (gl_array_remove, gl_array_list_implementation): Update.
113019         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
113020         gl_carray_indexof. Add start_index, end_index arguments.
113021         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
113022         start_index, end_index arguments.
113023         (gl_carray_remove, gl_carray_list_implementation): Update.
113024         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
113025         gl_linked_search. Add start_index, end_index arguments.
113026         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
113027         start_index, end_index arguments.
113028         (gl_linked_remove): Update.
113029         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
113030         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
113031         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
113032         field to 'size_t'.
113033         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
113034         gl_tree_search. Add start_index, end_index arguments.
113035         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
113036         start_index, end_index arguments.
113037         (gl_tree_remove): Update.
113038         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
113039         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
113040         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
113041         function.
113042         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
113043         gl_tree_search. Add start_index, end_index arguments.
113044         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
113045         start_index, end_index arguments.
113046         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
113047         Update.
113048         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
113050 2006-10-05  Bruno Haible  <bruno@clisp.org>
113052         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
113054         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
113055         fwriteerror_temp): New declarations.
113056         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
113057         (descriptors): New variable.
113058         (cleanup): First, close the descriptors.
113059         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
113060         fclose_temp, fwriteerror_temp): New functions.
113062 2006-10-04  Jim Meyering  <jim@meyering.net>
113064         * lib/fts.c (fts_open): Tiny comment change.
113066 2006-10-04  Bruno Haible  <bruno@clisp.org>
113068         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
113069         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
113070         gl_LOCK_BODY.
113071         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
113072         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
113073         gl_LOCK_EARLY_BODY.
113074         (gl_LOCK): Require gl_LOCK_BODY.
113076 2006-10-04  Bruno Haible  <bruno@clisp.org>
113078         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
113079         (gl_oset_search_atleast): New declaration.
113080         (struct gl_oset_implementation): Add field 'search_atleast'.
113081         (gl_oset_search_atleast): New inline function.
113082         * lib/gl_oset.c (gl_oset_search_atleast): New function.
113083         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
113084         (gl_array_oset_implementation): Update.
113085         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
113086         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
113087         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
113089 2006-10-04  Bruno Haible  <bruno@clisp.org>
113091         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
113093 2006-10-03  Bruno Haible  <bruno@clisp.org>
113095         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
113096         from gl_avltreehash_list_implementation.
113098 2006-10-03  Bruno Haible  <bruno@clisp.org>
113100         * lib/gl_oset.c (gl_oset_add): Fix return type.
113102 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
113104         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
113106 2006-10-02  Eric Blake  <ebb9@byu.net>
113108         * modules/strnlen (Depends-on): Add extensions.
113110 2006-10-02  Eric Blake  <ebb9@byu.net>
113112         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
113113         definition in 2.60+.
113115 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
113117         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
113118         checks.
113120 2006-10-02  Bruno Haible  <bruno@clisp.org>
113122         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
113123         to the AUTOMAKE_OPTIONS.
113124         Reported by Jim Meyering.
113126 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
113128         Work around bug in Solaris 10 /proc file system:
113129         /proc/self/fd/NNN/.. isn't the parent directory of
113130         the directory whose file descriptor is NNN.  This needs to
113131         be worked around at run time, not compile time, since a
113132         program might be built on Solaris 8, where things work, and
113133         run on Solaris 10.
113134         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
113135         to use the following interface instead:
113136         (OPENAT_BUFFER_SIZE): New macro.
113137         (openat_proc_name): New function.
113138         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
113139         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
113140         Likewise.
113141         * lib/openat-proc.c: New file.
113142         * modules/openat (Files): Add lib/openat-proc.c.
113143         (Depends-on): Add same-inode, stdbool.
113144         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
113146 2006-09-29  Bruno Haible  <bruno@clisp.org>
113148         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
113149         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
113150         argument. Set stdout_closed before testing for ferror, not after.
113151         (fwriteerror, fwriteerror_no_ebadf): New functions.
113153 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113155         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
113157 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
113159         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
113160         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
113162 2006-09-28  Jim Meyering  <jim@meyering.net>
113164         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
113165         Include <unistd.h>.
113167 2006-09-28  Bruno Haible  <bruno@clisp.org>
113169         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
113170         * modules/linkedhash-list (Depends-on): Likewise.
113171         * modules/rbtreehash-list (Depends-on): Likewise.
113173 2006-09-28  Bruno Haible  <bruno@clisp.org>
113175         * lib/strndup.h: Simplify the redefinition of strndup.
113176         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
113177         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
113179 2006-09-28  Bruno Haible  <bruno@clisp.org>
113181         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
113182         * lib/gl_linkedhash_list.c: Likewise.
113183         * lib/gl_rbtreehash_list.c: Likewise.
113185 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
113187         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
113188         getaddrinfo.
113190         * lib/__fpending.h: Don't include <stdio_ext.h> unless
113191         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
113192         it causes <stdio_ext.h> to cause a compile-time error.
113193         Problem reported by Nelson H. F. Beebe.
113194         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
113195         of HAVE_DECL___PENDING.
113197         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
113198         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
113199         declaration.
113201 2006-09-27  Jim Meyering  <jim@meyering.net>
113203         This file could end up with a definition for a function
113204         named __strndup, rather than rpl_strndup on a system with
113205         incomplete weak_alias support.
113206         * lib/strndup.c (strndup): Rename from __strndup.
113207         Remove #defines that used to map __strndup to strndup.
113208         Don't use K&R prototypes.
113209         Remove LIBC-related code, since this file is not sync'd with glibc.
113210         * lib/strndup.h: Revamp, accordingly.
113211         * m4/strndup.m4: Modernize.
113213 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
113215         * modules/savewd (Depends-on): Add 'raise'.
113216         * lib/savewd.c: Include <signal.h>, for 'raise'.
113218 2006-09-26  Jim Meyering  <jim@meyering.net>
113220         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
113221         when we detect Darwin 8.7.0's acl_get_file bug.
113222         Rearrange to perform the new (below) run-test while $LIBS
113223         contains any acl-related library.  Set USE_ACL at the end.
113224         (gl_ACL_GET_FILE): New function.
113226 2006-09-26  Eric Blake  <ebb9@byu.net>
113228         * lib/verror.c: Include <config.h> unconditionally.
113230 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
113232         * modules/clock-time (Maintainer): Add self.
113233         * modules/getlogin_r (Depends-on): Add extensions.
113235 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113237         * modules/clock-time: New module.
113238         * modules/nanosleep (Depends-on): Add clock-time.
113239         * modules/gethrxtime (Depends-on): Likewise.
113240         * modules/gettime (Depends-on): Likewise.
113241         * modules/settime (Depends-on): Likewise.
113243         * modules/fts-lgpl: Depend on openat.
113244         * modules/mkancesdirs: Depend on savewd.
113245         * modules/mkdir-p: Likewise.
113247 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113249         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
113251         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
113252         `gl_have_arbitrary_file_name_length_limit' to
113253         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
113254         actually works between configure runs.
113256 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113257             Bruno Haible  <bruno@clisp.org>
113259         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
113261 2006-09-25  Jim Meyering  <jim@meyering.net>
113263         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
113264         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
113266 2006-09-25  Eric Blake  <ebb9@byu.net>
113268         * gnulib-tool (func_import, func_create_testdir): Fix typos in
113269         exec's in 2006-09-18 patch when shuffling fds.
113271 2006-09-25  Bruno Haible  <bruno@clisp.org>
113273         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
113274         Reported by Jim Meyering.
113276 2006-09-24  Jim Meyering  <jim@meyering.net>
113278         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
113279         compare a pointer against a literal "0".  That caused failures with
113280         at least HP-UX's hpcc.
113282 2006-09-22  Simon Josefsson  <jas@extundo.com>
113284         * modules/gc-sha1:
113285         * modules/gc-md4:
113286         * modules/gc-hmac-sha1:
113287         * modules/gc-hmac-md5:
113288         * modules/gc-des:
113289         * modules/gc-arcfour: Distribute more files.
113291 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113293         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
113294         (gl_linked_iterator_from_to): Initialize struct completely.
113295         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
113296         (gl_tree_iterator_from_to): Likewise
113297         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
113298         * lib/gl_array_list.c [lint] (gl_array_iterator)
113299         (gl_array_iterator_from_to): Likewise.
113300         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
113301         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
113302         (gl_carray_iterator_from_to): Likewise.
113304         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
113305         * lib/md4.c (md4_process_block): Remove unused variable.
113306         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
113307         parentheses for clarity.
113309 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113311         * modules/bison-i18n (Depends-on): Add gettext.
113313 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113315         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
113316         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
113317         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
113318         also add missing comma that caused broken test.
113319         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
113320         stdlib.h, for `abort'.
113321         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
113322         variables.
113323         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
113324         include unistd.h if present, for `rmdir'.
113325         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
113326         variables.
113327         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
113328         in the process include standard headers for prototypes.
113329         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
113330         gets declared on GNU/Linux.
113331         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
113332         unistd.h, for `rmdir'.
113333         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
113335         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
113336         always true.
113337         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
113339         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
113341 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113343         * gnulib-tool (func_version): Create output all at once.  This
113344         may help avoid triggering unnecessary SIGPIPEs, and at any
113345         rate it doesn't hurt.
113347 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113348             Bruno Haible  <bruno@clisp.org>
113350         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
113351         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
113352         * m4/signed.m4 (bh_C_SIGNED): Likewise.
113354         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
113355         (gl_FUNC_VASPRINTF): Invoke it.
113357 2006-09-22  Bruno Haible  <bruno@clisp.org>
113359         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
113360         getloadavg.c as first argument.
113362 2006-09-22  Bruno Haible  <bruno@clisp.org>
113364         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
113365         at the beginning of the gl_INIT macro.
113366         * modules/getloadavg (configure.ac): Pass $gl_source_base to
113367         gl_GETLOADAVG.
113369 2006-09-22  Bruno Haible  <bruno@clisp.org>
113371         * gnulib-tool (func_create_megatestdir): Don't include the config-h
113372         module.
113373         Suggested by Ralf Wildenhues.
113375 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
113377         Import this patch from libc:
113379         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
113381         * lib/regex_internal.c (re_string_reconstruct): Handle
113382         offset < pstr->valid_raw_len && pstr->offsets_needed case.
113383         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
113384         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
113385         re_string_context_at.
113387         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
113388         now requires it.
113389         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
113390         gl_REGEX now does it for us.
113391         (gl_REGEX): Add test taken from
113392         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
113394         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
113395         Check that large offsets work.  Modernize Autoconf usages.
113396         Prefer "yes" to mean a good thing rather than a bad.
113397         Don't put "#define mkstemp" in config.h, as this might interfere
113398         with standard system headers that "#define mkstemp mkstemp64".
113400         * modules/mkstemp (Depends-on): Add extensions, so that
113401         mkstemp is visible on some platforms.
113402         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
113403         (Include): Change to "mkstemp.h" from <stdlib.h>.
113404         (Files): Add mkstemp.h.
113406         * lib/mkstemp.h: New file, since some standard headers
113407         #define mkstemp.
113408         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
113409         Include "mkstemp.h".
113410         Make the _LIBC code resemble glibc original more,
113411         e.g., use K&R style.
113412         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
113413         (mkstemp): Remove, since mkstemp.h does this for us.
113414         * lib/stdlib--.h: Include mkstemp.h.
113416         Import this patch from libc:
113418         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
113420         * lib/tempname.c (__gen_tempname): Change attempts_min
113421         into a macro.  Use preprocessor to decide how to initialize
113422         attempts [Coverity CID 67].
113424 2006-09-20  Bruno Haible  <bruno@clisp.org>
113426         * lib/mkdtemp.c: Import from libc.
113427         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
113428                 * sysdeps/posix/tempname.c (__gen_tempname): Change
113429                 attempts_min into a macro.  Use preprocessor to decide how to
113430                 initialize attempts [Coverity CID 67].
113431         2001-11-27  Paul Eggert  <eggert@twinsun.com>
113432                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
113433                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
113435 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113437         * gnulib-tool (func_exit): New function, to allow to pass the
113438         exit status portably through the trap.  Use everywhere.
113439         (--help, --version): Signal a write error.
113440         (trap): catch SIGPIPE, for write errors.
113441         Exit at the end of the trap, with the correct exit status.
113443 2006-09-19  Karl Berry  <karl@gnu.org>
113445         * doc/gnulib.texi: note about the license texinfo files.
113447 2006-09-19  Eric Blake  <ebb9@byu.net>
113449         * gnulib-tool: Avoid space-tab.
113451 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
113453         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
113454         that prevented coreutils 6.1 from building.  Problem reported
113455         by Petter Reinholdtsen.
113457 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
113459         * gnulib-tool (avoidlist): Fix typo that broke options like
113460         --avoid=lock that are used by coreutils bootstrap.
113462 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
113464         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
113465         more systematically.
113467 2006-09-18  Jim Meyering  <jim@meyering.net>
113469         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
113471 2006-09-18  Bruno Haible  <bruno@clisp.org>
113473         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
113475 2006-09-18  Bruno Haible  <bruno@clisp.org>
113477         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
113478         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
113479         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
113480         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
113481         * m4/gettext.m4: Require autoconf >= 2.52.
113482         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
113483         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
113484         of gl_cv_header_inttypes_h.
113486 2006-09-18  Bruno Haible  <bruno@clisp.org>
113488         * lib/javaversion.c: Include configmake.h.
113490 2006-09-18  Bruno Haible  <bruno@clisp.org>
113492         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
113493         avoid that the while loops be executed in a subshell.
113495 2006-09-18  Bruno Haible  <bruno@clisp.org>
113497         * MODULES.html.sh (func_module): Break long lines.
113498         Suggested by Bruce Korb <bkorb@gnu.org>.
113500 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113502         Speed up by a factor of 1.12.
113503         * gnulib-tool (nl): New variable.
113504         (func_import): Rewrite include directive extraction to only read each
113505         directive once.
113507 2006-09-17  Bruno Haible  <bruno@clisp.org>
113509         * modules/javaversion (Makefile.am): Remove DEFS setting.
113510         (Depends-on): Add configmake, for PKGDATADIR definition.
113512 2006-09-17  Bruno Haible  <bruno@clisp.org>
113514         * gnulib-tool (func_create_testdir): Rewrite all files at once.
113516 2006-09-17  Bruno Haible  <bruno@clisp.org>
113518         * gnulib-tool (func_append): New function, stolen from libtool.m4.
113519         (func_modules_transitive_closure, func_modules_add_dummy,
113520         func_modules_to_filelist, func_import, func_create_testdir,
113521         func_create_megatestdir, ...): Use it wherever possible.
113522         Suggested by Ralf Wildenhues.
113524 2006-09-16  Karl Berry  <karl@gnu.org>
113526         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
113527         to avoid sectioning errors.
113528         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
113529         [ifinfo]: blank line after @center-ed titles.
113530         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
113531         Spell FSF address consistently with others.
113532         (These changes approved by rms.)
113534 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113536         Speed up by a factor of 1.61.
113537         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
113538         already checked module names again.
113540 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113542         Speed up by a factor of 1.13.
113543         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
113544         for new_files, and the input to func_add_or_update.
113546 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113548         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
113549         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
113551 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
113553         * modules/mkancesdirs (Depends-on): Add fcntl.
113554         * modules/savewd: New file.
113555         * MODULES.html.sh (File system functions): Add savewd.
113557         * modules/configmake (Makefile.am): Add support for the
113558         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
113560 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
113562         * m4/savewd.m4: New file.
113564 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
113566         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
113567         (dirchownmod): New arg FD.  All callers changed.
113568         Use FD rather than opening the directory ourself, as opening is
113569         now the caller's responsibility.
113570         * lib/dirchownmod.h: Likewise.
113571         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
113572         hosts that require <sys/types.h> before <sys/stat.h>.  Include
113573         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
113574         (test_dir): Remove.
113575         (mkancesdirs): Return length of prefix of FILE that has already
113576         been made, or -2 if there is a child doing the work.  Redo
113577         algorithm so that it is O(N) rather than O(N**2).  Optimize away
113578         ".", and treat ".." specially since it might stray back into
113579         already-created areas.  Use a subprocess if necessary.  New arg
113580         WD; all users changed.  MAKE_DIR function should now return 1
113581         if it creates a directory that is not readable.  Return -2 if
113582         a child process is spun off.
113583         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
113584         Adjust signature to match code.
113585         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
113586         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
113587         all users changed.
113588         * lib/savewd.c, lib/savewd.h: New files.
113590 2006-09-15  Jim Meyering  <jim@meyering.net>
113592         * modules/rename-dest-slash: New module.
113593         * MODULES.html.sh (posix_compat): Add it here.
113595         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
113597 2006-09-15  Jim Meyering  <jim@meyering.net>
113599         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
113600         file.
113602         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
113604 2006-09-15  Jim Meyering  <jim@meyering.net>
113606         * lib/rename-dest-slash.c (has_trailing_slash): Use
113607         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
113608         (rpl_rename_dest_slash): Perform the cheaper trailing slash
113609         test before testing whether SRC is a directory.
113610         Suggestions from Bruno Haible.
113612         Avoid a warning about an unused variable.
113613         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
113614         into the #ifdef block where it's used.
113616         * lib/rename-dest-slash.c: New file.
113618 2006-09-14  Bruno Haible  <bruno@clisp.org>
113620         * lib/allocsa.c: Include <config.h> unconditionally.
113621         * lib/asnprintf.c: Likewise.
113622         * lib/asprintf.c: Likewise.
113623         * lib/c-strcasecmp.c: Likewise.
113624         * lib/c-strcasestr.c: Likewise.
113625         * lib/c-strncasecmp.c: Likewise.
113626         * lib/c-strstr.c: Likewise.
113627         * lib/classpath.c: Likewise.
113628         * lib/clean-temp.c: Likewise.
113629         * lib/concatpath.c: Likewise.
113630         * lib/copy-file.c: Likewise.
113631         * lib/csharpcomp.c: Likewise.
113632         * lib/csharpexec.c: Likewise.
113633         * lib/execute.c: Likewise.
113634         * lib/fatal-signal.c: Likewise.
113635         * lib/findprog.c: Likewise.
113636         * lib/fwriteerror.c: Likewise.
113637         * lib/gl_array_list.c: Likewise.
113638         * lib/gl_array_oset.c: Likewise.
113639         * lib/gl_avltree_list.c: Likewise.
113640         * lib/gl_avltree_oset.c: Likewise.
113641         * lib/gl_avltreehash_list.c: Likewise.
113642         * lib/gl_carray_list.c: Likewise.
113643         * lib/gl_linked_list.c: Likewise.
113644         * lib/gl_linkedhash_list.c: Likewise.
113645         * lib/gl_list.c: Likewise.
113646         * lib/gl_oset.c: Likewise.
113647         * lib/gl_rbtree_list.c: Likewise.
113648         * lib/gl_rbtree_oset.c: Likewise.
113649         * lib/gl_rbtreehash_list.c: Likewise.
113650         * lib/imaxabs.c: Likewise.
113651         * lib/imaxdiv.c: Likewise.
113652         * lib/javacomp.c: Likewise.
113653         * lib/javaexec.c: Likewise.
113654         * lib/javaversion.c: Likewise.
113655         * lib/linebreak.c: Likewise.
113656         * lib/localcharset.c: Likewise.
113657         * lib/lock.c: Likewise.
113658         * lib/mbchar.c: Likewise.
113659         * lib/mbswidth.c: Likewise.
113660         * lib/mkdtemp.c: Likewise.
113661         * lib/pipe.c: Likewise.
113662         * lib/printf-args.c: Likewise.
113663         * lib/printf-parse.c: Likewise.
113664         * lib/progname.c: Likewise.
113665         * lib/progreloc.c: Likewise.
113666         * lib/readlink.c: Likewise.
113667         * lib/sh-quote.c: Likewise.
113668         * lib/stpcpy.c: Likewise.
113669         * lib/stpncpy.c: Likewise.
113670         * lib/strcasecmp.c: Likewise.
113671         * lib/strcasestr.c: Likewise.
113672         * lib/strcspn.c: Likewise.
113673         * lib/striconv.c: Likewise.
113674         * lib/strncasecmp.c: Likewise.
113675         * lib/strnlen1.c: Likewise.
113676         * lib/strstr.c: Likewise.
113677         * lib/strtok_r.c: Likewise.
113678         * lib/tls.c: Likewise.
113679         * lib/tmpdir.c: Likewise.
113680         * lib/unicodeio.c: Likewise.
113681         * lib/unsetenv.c: Likewise.
113682         * lib/vasnprintf.c: Likewise.
113683         * lib/vasprintf.c: Likewise.
113684         * lib/wait-process.c: Likewise.
113685         * lib/xallocsa.c: Likewise.
113686         * lib/xsetenv.c: Likewise.
113687         * lib/xstriconv.c: Likewise.
113689 2006-09-13  Simon Josefsson  <jas@extundo.com>
113691         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
113692         that internally, suggested by Ralf Wildenhues
113693         <Ralf.Wildenhues@gmx.de>.
113695 2006-09-13  Simon Josefsson  <jas@extundo.com>
113697         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
113698         @LIBOBJS@.
113699         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
113701 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
113703         * lib/_fpending.c: Include <config.h> unconditionally, since we no
113704         longer worry about uses that don't define HAVE_CONFIG_H.
113705         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
113706         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
113707         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
113708         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
113709         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
113710         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
113711         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
113712         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
113713         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
113714         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
113715         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
113716         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
113717         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
113718         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
113719         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
113720         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
113721         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
113722         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
113723         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
113724         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
113725         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
113726         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
113727         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
113728         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
113729         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
113730         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
113731         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
113732         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
113733         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
113734         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
113735         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
113736         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
113737         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
113738         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
113739         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
113740         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
113741         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
113742         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
113743         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
113744         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
113745         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
113746         Likewise.
113748 2006-09-13  Eric Blake  <ebb9@byu.net>
113750         * lib/getopt.c: Fix typo in last commit.
113752 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
113754         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
113755         dgettext.
113757 2006-09-12  Jim Meyering  <jim@meyering.net>
113759         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
113760         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
113761         Reported by Nelson H. F. Beebe.
113763 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
113765         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
113766         program_invocation_name and program_invocation_short_name are
113767         initialized.
113768         * lib/argp-namefrob.h: Move declarations of program_invocation_name
113769         and program_invocation_short_name to argp.h, so they are visible
113770         to user programs.
113771         * lib/argp.h: Likewise
113773 2006-09-10  Bruno Haible  <bruno@clisp.org>
113775         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
113776         m4/inttypes_h.m4, m4/uintmax_t.m4.
113778 2006-09-10  Bruno Haible  <bruno@clisp.org>
113780         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
113781         gl_AC_TYPE_UINTMAX_T.
113783 2006-09-10  Bruno Haible  <bruno@clisp.org>
113785         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
113787 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
113789         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
113790         convention.  Text proposed by Bruno Haible.
113791         (struct argp_option): Document the use of N_() wrappers.
113793         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
113794         '\v', and translate the two parts separately, instead of feeding
113795         the whole string to gettext.  This allows to exclude
113796         '\v' from the strings visible to the translator by writing doc
113797         strings as N_("..") "\v" N_("..").
113799 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
113801         * config/srclist.txt: Undo latest change; the bug was fixed.
113803 2006-09-09  Bruno Haible  <bruno@clisp.org>
113805         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
113806         assignments if building a library without libtool.
113807         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
113808         in func_emit_lib_Makefile_am.
113809         (func_import): When building a static library libfoo.a, arrange to
113810         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
113811         (func_create_testdir): Likewise.
113812         * modules/gc (configure.ac, Makefile.am): If building statically,
113813         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
113814         * modules/iconvme (configure.ac, Makefile.am): Likewise.
113815         * modules/striconv (configure.ac, Makefile.am): Likewise.
113816         Based on a suggestion by Ralf Wildenhues.
113818 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
113820         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
113821         Check for unistd.h too, since Autoconf doesn't assume POSIX.
113822         Also:
113824         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
113825         Add year_2050_test to catch glibc bug 2821
113826         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
113828         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
113829         Prefer #ifdef to #if.
113831         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
113832         Return from 'main' instead of calling 'exit'.
113834 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
113836         * lib/mktime.c (guess_time_tm): Fix bug where mktime
113837         returned the maximum time_t value rather than (time_t) -1.
113838         Problem originally reported by William Bardwell
113839         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
113841         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
113842         Moved to here ...
113843         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
113844         ... from here.
113846 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
113848         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
113849         2821 is fixed.
113851 2006-09-08  Jim Meyering  <jim@meyering.net>
113853         Don't make generated files read-only.  That would bother too many
113854         people.  However, do retain the ability to work when targets are
113855         read-only: remove the destination and temporary files before writing
113856         them (when generated via sed or echo), or by using the -f option for
113857         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
113858         * modules/alloca-opt, modules/argz, modules/arpa_inet:
113859         * modules/byteswap, modules/configmake, modules/fcntl:
113860         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
113861         * modules/localcharset, modules/netinet_in, modules/poll:
113862         * modules/stdbool, modules/stdint, modules/sys_select:
113863         * modules/sys_socket, modules/sys_stat, modules/sysexits:
113865 2006-09-08  Jim Meyering  <jim@meyering.net>
113867         Avoid new build failure on FreeBSD 6.0.
113868         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
113869         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
113870         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
113872 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113874         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
113876 2006-09-07  Jim Meyering  <jim@meyering.net>
113878         Fix global typo in last change: use chmod u-w, not chmod u-x.
113879         Spotted by Paul Eggert and Bruce Korb.
113880         * modules/alloca-opt, modules/argz, modules/arpa_inet:
113881         * modules/byteswap, modules/configmake, modules/fcntl:
113882         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
113883         * modules/localcharset, modules/netinet_in, modules/poll:
113884         * modules/stdbool, modules/stdint, modules/sys_select:
113885         * modules/sys_socket, modules/sys_stat, modules/sysexits:
113887 2006-09-06  Jim Meyering  <jim@meyering.net>
113889         Make generated files be read-only.
113890         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
113891         Ensure that each generated file is now read-only.
113892         * modules/argz: Likewise.
113893         * modules/arpa_inet: Likewise.
113894         * modules/byteswap: Likewise.
113895         * modules/configmake: Likewise.
113896         * modules/fcntl: Likewise.
113897         * modules/fnmatch: Likewise.
113898         * modules/getopt: Likewise.
113899         * modules/glob: Likewise.
113900         * modules/inttypes: Likewise.
113901         * modules/netinet_in: Likewise.
113902         * modules/poll: Likewise.
113903         * modules/stdbool: Likewise.
113904         * modules/stdint: Likewise.
113905         * modules/sys_select: Likewise.
113906         * modules/sys_socket: Likewise.
113907         * modules/sys_stat: Likewise.
113908         * modules/sysexits: Likewise.
113909         * modules/localcharset: Same as above, but continue using temporary
113910         file named "t-$@" (why different?) rather than the "$@-t" used
113911         everywhere else.
113913         * modules/sysexits (Makefile.am): Replace literal occurrences
113914         of "sysexit.h" more readable, and more consistent, "$@".
113916 2006-09-06  Bruno Haible  <bruno@clisp.org>
113918         * modules/striconv: New file.
113919         * modules/xstriconv: New file.
113920         * MODULES.html.sh (Internationalization functions): Add striconv,
113921         xstriconv.
113923 2006-09-06  Bruno Haible  <bruno@clisp.org>
113925         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
113926         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
113927         not using libtool correctly.
113929 2006-09-06  Bruno Haible  <bruno@clisp.org>
113931         * lib/striconv.h: New file.
113932         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
113933         iconvstring.c.
113934         * lib/xstriconv.h: New file.
113935         * lib/xstriconv.c: New file.
113937 2006-09-06  Bruno Haible  <bruno@clisp.org>
113939         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
113940         lib_..._LDFLAGS.
113942 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113944         * lib/argz_.h: Sync from Libtool.
113946         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
113947                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
113949         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
113951 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
113953         * modules/trim: New file.
113955 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
113957         * lib/trim.h: New file.
113958         * lib/trim.c: New file.
113960 2006-09-05  Bruno Haible  <bruno@clisp.org>
113962         * MODULES.html.sh (String handling): Add trim.
113964 2006-09-04  Karl Berry  <karl@gnu.org>
113966         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
113967         until next release.
113969 2006-09-03  Bruno Haible  <bruno@clisp.org>
113971         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
113972         correctly.
113974 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
113976         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
113977         not gl_GETLOADAVG.  Omit unneeded semicolons.
113978         Problems reported by Ralf Wildenhues in
113979         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
113980         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
113981         at the end, which is the usual gnulib style.
113983         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
113984         of doing all the work ourselves.
113985         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
113986         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
113988 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
113990         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
113991         Problem reported by Ralf Wildenhues in
113992         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
113994         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
113995         HAVE_STRUCT_STATFS_F_FSTYPENAME.
113997 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
113999         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
114000         yesterday's patch by changing test -n to test -z.
114002 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
114004         * modules/getloadavg (Files): Add m4/getloadavg.m4.
114005         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
114006         the former is now obsolescent.
114008         * modules/chdir-long (Depends-on): Add fcntl.
114010 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
114012         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
114013         obsolescent, and programs should use gnulib instead.
114014         * m4/getloadavg.m4: New file, with contents taken from Autoconf
114015         but with prefixes changed.
114017 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
114019         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
114020         or stdbool.h, because they might not exist while configuring.
114022         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
114023         Don't include unistd.h or limits.h; not needed, since chdir-long.h
114024         does that for us.
114025         (O_DIRECTORY): Remove.
114027 2006-08-31  Eric Blake  <ebb9@byu.net>
114029         * gnulib-tool: Don't let emacs change spaces to TAB.
114031 2006-08-31  Bruno Haible  <bruno@clisp.org>
114033         * gnulib-tool: When calling func_import more than once, do it in a
114034         subshell.
114035         Reported by Eric Blake <ebb9@byu.net>.
114037 2006-08-31  Bruno Haible  <bruno@clisp.org>
114039         * gnulib-tool (nl): Remove variable.
114040         (sed_transform_lib_file): Use more robust test for config-h module.
114041         (func_import): Fix typo in 2006-08-25 patch.
114043 2006-08-31  Bruno Haible  <bruno@clisp.org>
114045         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
114046         specified, augment Makefile.am variables instead of assigning them.
114048 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
114050         Work around a bug in both the Linux and SunOS 64-bit kernels:
114051         nanosleep mishandles sleeps for longer than 2**31 seconds.
114052         Problem reported by Frank v Waveren in
114053         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
114054         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
114055         Check for nanosleep bug.
114056         (LIB_NANOSLEEP): Append clock_gettime library if needed.
114058 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
114060         Work around a bug in both the Linux and SunOS 64-bit kernels:
114061         nanosleep mishandles sleeps for longer than 2**31 seconds.
114062         Problem reported by Frank v Waveren in
114063         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
114064         * lib/nanosleep.c (BILLION): New constant.
114065         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
114066         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
114067         implementation.
114069 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
114071         * modules/nanosleep (Depends-on): Add gettime.
114073 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
114074         and Simon Josefsson  <jas@extundo.com>
114075         and Oskar Liljeblad  <oskar@osk.mine.nu>
114077         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
114078         * gnulib-tool (func_import): New license type 'unmodifiable license
114079         text'.
114080         * modules/fdl: Use it.  Longer description.
114081         * module/gpl, module/lgpl: New files.
114083 2006-08-30  Jim Meyering  <jim@meyering.net>
114085         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
114086         shadowing the parameter.
114088 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114090         Sync from Libtool:
114092         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114094         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
114095         sharing with gnulib.  Report by Eric Blake.
114097 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
114099         * modules/isapipe: New file.
114100         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
114102 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
114104         * modules/configmake (Makefile.am): Add a comment, and omit
114105         the CONFIGMAKE_ prefix from generated macro names.  Suggested
114106         by Bruno Haible.
114108 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
114110         * m4/isapipe.m4: New file.
114112 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
114114         * lib/isapipe.c, lib/isapipe.h: New files.
114116 2006-08-29  Jim Meyering  <jim@meyering.net>
114118         * modules/configmake (Makefile.am): Make configmake.h depend on
114119         Makefile.  Otherwise, a stale configmake.h could hang around.
114121 2006-08-29  Eric Blake  <ebb9@byu.net>
114123         * lib/error.c (error_at_line, print_errno_message): Match libc, after
114124         resolution of upstream bug 3044.
114126 2006-08-29  Bruno Haible  <bruno@clisp.org>
114128         * modules/localcharset (Depends-on): Add configmake.
114129         (Makefile.am): Remove setting of LIBDIR through DEFS.
114131 2006-08-29  Bruno Haible  <bruno@clisp.org>
114133         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
114134         defined.
114136 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
114138         * modules/fcntl: New file.
114139         * modules/chdir-safer (Depends-on): Add fcntl.
114140         * modules/fts: Likewise.
114141         * modules/mkdir-p: Likewise.
114143         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
114144         This undoes the most recent change, since we're now addressing the
114145         problem in a different way.
114147         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
114148         into output, since the output might be called Makefile.am even
114149         if $makefile_name is something different.
114150         (func_import): Use $makefile_am rather than
114151         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
114152         empty.
114154         * modules/inttypes (Files): Add m4/inttypes-h.m4.
114156 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
114158         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
114159         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
114160         recent change to stdint.m4, since we're now addressing the problem in a
114161         different way.
114163 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
114165         * m4/fcntl_h.m4: New file.
114167 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
114169         * lib/fcntl_.h: New file.
114170         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
114171         the fcntl module.
114172         * lib/dirchownmod.c: Likewise.
114173         * lib/fts.c: Likewise.
114175         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
114176         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
114177         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
114178         just before including <inttypes.h>, to avoid circular inclusion.
114180 2006-08-28  Jim Meyering  <jim@meyering.net>
114182         * doc/visibility.texi: Actually read and correct the grammar of the
114183         sentence affected by yesterday's change.
114185 2006-08-28  Eric Blake  <ebb9@byu.net>
114187         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
114188         needs wrapper.
114190 2006-08-28  Eric Blake  <ebb9@byu.net>
114192         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
114194 2006-08-28  Eric Blake  <ebb9@byu.net>
114196         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
114198 2006-08-28  Bruno Haible  <bruno@clisp.org>
114200         * modules/c-strstr: New file, from GNU gettext.
114201         * MODULES.html.sh (String handling): Add c-strstr.
114203 2006-08-28  Bruno Haible  <bruno@clisp.org>
114205         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
114206         macros.
114207         Reported by Eric Blake.
114209 2006-08-28  Bruno Haible  <bruno@clisp.org>
114211         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
114212         (VASNPRINTF): Return a string of length > INT_MAX without failing.
114213         * lib/vasprintf.c: Include errno.h, limits.h.
114214         (EOVERFLOW): New fallback definition.
114215         (vasprintf): Test here whether the string length is > INT_MAX.
114216         * lib/vsnprintf.c: Include errno.h, limits.h.
114217         (EOVERFLOW): New fallback definition.
114218         (vsnprintf): Fix bug when generated string was too long for the buffer.
114219         Test here whether the string length is > INT_MAX.
114221 2006-08-28  Bruno Haible  <bruno@clisp.org>
114223         * lib/inttypes_.h (SCNX*): Remove definitions.
114224         Reported by Eric Blake.
114226 2006-08-28  Bruno Haible  <bruno@clisp.org>
114228         * lib/c-strstr.h: New file, from GNU gettext.
114229         * lib/c-strstr.c: New file, from GNU gettext.
114231 2006-08-28  Bruno Haible  <bruno@clisp.org>
114233         * gnulib-tool: Reorder some statements.
114235 2006-08-28  Bruno Haible  <bruno@clisp.org>
114237         * gnulib-tool: New option --makefile-name.
114238         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
114239         $makefile_name.
114240         (func_import): Write $makefile_name to the cache file, and read it from
114241         there unless explicitly specified. Use $makefile_name as file name
114242         instead of Makefile.am. Adjust the recommendations accordingly.
114244 2006-08-28  Bruno Haible  <bruno@clisp.org>
114246         * gnulib-tool (func_verify_module): Check against misapplying patch.
114248 2006-08-28  Bruno Haible  <bruno@clisp.org>
114250         * gnulib-tool (func_relativize, func_relconcat): New functions.
114251         Give an error if --local-dir is given with --update.
114252         Remove trailing slashes from $local_gnulib_dir.
114253         (func_import): Store the relativized $local_gnulib_dir in
114254         gnulib-cache.m4, and read it from there if not specified explicitly.
114256 2006-08-28  Bruno Haible  <bruno@clisp.org>
114258         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
114259         is the current directory. Respect also $local_gnulib_dir.
114261 2006-08-28  Bruno Haible  <bruno@clisp.org>
114262             Simon Josefsson  <jas@extundo.com>
114264         BeOS portability.
114265         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
114267 2006-08-27  Jim Meyering  <jim@meyering.net>
114269         * doc/visibility.texi: Remove duplicate word: "pointer".
114271 2006-08-26  Bruno Haible  <bruno@clisp.org>
114273         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
114274         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
114275         (Makefile.am): Create inttypes.h from inttypes_.h.
114276         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
114278         * modules/imaxabs: New file.
114280         * modules/imaxdiv: New file.
114282 2006-08-26  Bruno Haible  <bruno@clisp.org>
114284         * m4/inttypes.m4: New file.
114285         * m4/_inttypes_h.m4: Remove file.
114286         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
114287         PRI_MACROS_BROKEN.
114288         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
114290         * m4/imaxabs.m4: New file.
114292         * m4/imaxdiv.m4: New file.
114294 2006-08-26  Bruno Haible  <bruno@clisp.org>
114296         * lib/inttypes_.h: New file.
114297         * lib/inttypes.h: Remove file.
114298         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
114300         * lib/imaxabs.c: New file.
114302         * lib/imaxdiv.c: New file.
114304 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
114306         New config-h module, so that "make" output needn't be cluttered
114307         by -DHAVE_CONFIG_H.
114308         * MODULES.html.sh (Support for building libraries and executables):
114309         Add config-h.
114310         * modules/config-h: New file.
114311         * gnulib-tool (nl, sed_transform_lib_file): New vars.
114312         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
114313         the config-h module is used.
114315         New configmake module, so that "make" output needn't be cluttered
114316         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
114317         * MODULES.html.sh (Support for building libraries and executables):
114318         Add configmake.
114319         * modules/configmake: New file.
114321 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
114323         * m4/config-h.m4: New file.
114325 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
114327         * config/srclist.txt: Add elisp-comp.
114329 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
114331         * MODULES.html.sh (Support for building libraries and executables):
114332         Add elisp-comp.
114333         * build-aux/elisp-comp: New file.
114334         * modules/elisp-comp: New file.
114336 2006-08-24  Bruno Haible  <bruno@clisp.org>
114338         * gnulib-tool (func_create_testdir): Use non-default values of
114339         sourcebase and m4base.
114341 2006-08-24  Bruno Haible  <bruno@clisp.org>
114343         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
114344         HTML structure.
114346 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
114348         * modules/openat (Depends-on): Add lchown.
114350 2006-08-23  Bruno Haible  <bruno@clisp.org>
114352         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
114353         of gl_LOCK_EARLY instead of gl_LOCK.
114355 2006-08-23  Bruno Haible  <bruno@clisp.org>
114357         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
114358         on OSF/1 to no.
114359         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
114361 2006-08-23  Bruno Haible  <bruno@clisp.org>
114363         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
114364         as unusable.
114366         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
114367         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
114368         (gl_LOCK): New macro.
114370 2006-08-22  Simon Josefsson  <jas@extundo.com>
114372         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
114373         to md5 module.
114375 2006-08-22  Simon Josefsson  <jas@extundo.com>
114377         * MODULES.html.sh: Add "Support for maintaining and release
114378         projects".
114380         * build-aux/gnupload: New file, from coreutils.
114382 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
114384         Avoid the need for AC_LIBSOURCES in m4 macros.
114385         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
114386         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
114387         * modules/check-version (EXTRA_DIST): Add check-version.h.
114388         * modules/crc (EXTRA_DIST): Add crc.h.
114389         * modules/des (EXTRA_DIST): Add des.h.
114390         * modules/gc (EXTRA_DIST): Add gc.h.
114391         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
114392         * modules/getline (EXTRA_DIST): Add getline.h.
114393         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
114394         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
114395         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
114396         * modules/md2 (EXTRA_DIST): Add md2.h.
114397         * modules/md4 (EXTRA_DIST): Add md4.h.
114398         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
114399         * modules/read-file (EXTRA_DIST): Add read-file.h.
114400         * modules/readline (EXTRA_DIST): Add readline.h.
114401         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
114402         rijndael-api-fst.h.
114404 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
114406         * m4/rijndael.m4 (gl_ARCFOUR):
114407         * m4/arctwo.m4 (gl_ARCTWO):
114408         * m4/check-version.m4 (gl_CHECK_VERSION):
114409         * m4/crc.m4 (gl_CRC):
114410         * m4/des.m4 (gl_DES):
114411         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
114412         * m4/gc.m4 (gl_GC):
114413         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
114414         * m4/getline.m4 (gl_FUNC_GETLINE):
114415         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
114416         * m4/hmac-md5.m4 (gl_HMAC_MD5):
114417         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
114418         * m4/md2.m4 (gl_MD2):
114419         * m4/md4.m4 (gl_MD4):
114420         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
114421         * m4/read-file.m4 (gl_FUNC_READ_FILE):
114422         * m4/readline.m4 (gl_FUNC_READLINE):
114423         * m4/rijndael.m4 (gl_RIJNDAEL):
114424         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
114425         to get the necessary .h files and whatnot.
114427 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
114429         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
114430         gnulib rather than the other way around.
114431         * config/srclistvars.sh (COREUTILS): Remove.
114433 2006-08-22  Jim Meyering  <jim@meyering.net>
114435         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
114437         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
114439 2006-08-22  Eric Blake  <ebb9@byu.net>
114441         * modules/regexprops-generic: New file.
114442         * MODULES.html.sh (Support for building documentation): List it.
114444 2006-08-22  Eric Blake  <ebb9@byu.net>
114446         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
114447         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
114448         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
114449         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
114451 2006-08-22  Bruno Haible  <bruno@clisp.org>
114453         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
114454         and lib_LTLIBRARIES like the other lib_* variables.
114456 2006-08-22  Bruno Haible  <bruno@clisp.org>
114458         * build-aux/x-to-1.in: New file, from GNU gettext.
114460 2006-08-22  Bruno Haible  <bruno@clisp.org>
114462         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
114463         <utmpx.h> exists.
114465 2006-08-22  Bruno Haible  <bruno@clisp.org>
114467         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
114468         <utmpx.h> exists.
114470 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
114472         BeOS portability.
114473         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
114474         exist.
114475         Problem reported by Bruno Haible.
114477 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
114479         Avoid the need for AC_LIBSOURCES in m4 macros.
114480         * modules/acl (EXTRA_DIST): Add acl.h.
114481         * modules/argmatch (Files): Add m4/argmatch.m4.
114482         (configure.ac): Add gl_ARGMATCH.
114483         (EXTRA_DIST): Renamed from lib_SOURCES, for
114484         consistency with the other modules.  Remove argmatch.c.
114485         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
114486         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
114487         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
114488         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
114489         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
114490         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
114491         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
114492         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
114493         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
114494         * modules/closeout (EXTRA_DIST): Add closeout.h.
114495         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
114496         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
114497         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
114498         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
114499         dirname.h; remove basename.c and stripslash.c.
114500         * modules/exclude (EXTRA_DIST): Add exclude.h.
114501         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
114502         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
114503         * modules/file-type (EXTRA_DIST): Add file-type.h.
114504         * modules/filemode (EXTRA_DIST): Add filemode.h.
114505         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
114506         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
114507         * modules/fpending (EXTRA_DIST): Add __fpending.h.
114508         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
114509         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
114510         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
114511         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
114512         * modules/getdate (EXTRA_DIST): Add getdate.c.
114513         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
114514         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
114515         * modules/getpass (EXTRA_DIST): Add getpass.h.
114516         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
114517         * modules/group-member (EXTRA_DIST): Add group-member.h.
114518         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
114519         * modules/hash (EXTRA_DIST): Add hash.h.
114520         * modules/human (EXTRA_DIST): Add human.h.
114521         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
114522         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
114523         * modules/lchown (EXTRA_DIST): Add lchown.h.
114524         * modules/long-options (EXTRA_DIST): Add long-options.h.
114525         * modules/lstat (EXTRA_DIST): Add lstat.h.
114526         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
114527         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
114528         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
114529         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
114530         * modules/memxor (EXTRA_DIST): Add memxor.h.
114531         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
114532         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
114533         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
114534         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
114535         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
114536         * modules/physmem (EXTRA_DIST): Add physmem.h.
114537         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
114538         * modules/posixver (EXTRA_DIST): Add posixver.h.
114539         * modules/quote (EXTRA_DIST): Add quote.h.
114540         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
114541         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
114542         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
114543         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
114544         regex_internal.h regexec.c.
114545         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
114546         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
114547         * modules/same (EXTRA_DIST): Add same.h.
114548         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
114549         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
114550         * modules/savedir (EXTRA_DIST): Add savedir.h.
114551         * modules/sha1 (EXTRA_DIST): Add sha1.h.
114552         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
114553         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
114554         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
114555         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
114556         * modules/strdup (EXTRA_DIST): Add strdup.h.
114557         * modules/strftime (EXTRA_DIST): Add strftime.h.
114558         * modules/strndup (EXTRA_DIST): Add strndup.h.
114559         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
114560         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
114561         * modules/time_r (EXTRA_DIST): Add time_r.h.
114562         * modules/timespec (EXTRA_DIST): Add timespec.h.
114563         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
114564         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
114565         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
114566         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
114567         * modules/userspec (EXTRA_DIST): Add userspec.h.
114568         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
114569         * modules/utimens (EXTRA_DIST): Add utimens.h.
114570         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
114571         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
114572         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
114573         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
114574         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
114575         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
114576         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
114577         * modules/yesno (EXTRA_DIST): Add yesno.h.
114579 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
114581         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
114583         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
114584         * m4/dev-ino.m4, same-inode.m4: Remove.
114586         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
114587         * m4/acl.m4 (AC_FUNC_ACL):
114588         * m4/backupfile.m4 (gl_BACKUPFILE):
114589         * m4/c-strtod.m4 (gl_C99_STRTOLD):
114590         * m4/canon-host.m4 (gl_CANON_HOST):
114591         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
114592         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
114593         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
114594         * m4/cloexec.m4 (gl_CLOEXEC):
114595         * m4/close-stream.m4 (gl_CLOSE_STREAM):
114596         * m4/closeout.m4 (gl_CLOSEOUT):
114597         * m4/dirfd.m4 (gl_FUNC_DIRFD):
114598         * m4/dirname.m4 (gl_DIRNAME):
114599         * m4/exclude.m4 (gl_EXCLUDE):
114600         * m4/exitfail.m4 (gl_EXITFAIL):
114601         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
114602         * m4/file-type.m4 (gl_FILE_TYPE):
114603         * m4/filemode.m4 (gl_FILEMODE):
114604         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
114605         * m4/fpending.m4 (gl_FUNC_FPENDING):
114606         * m4/fprintftime.m4 (gl_FPRINTFTIME):
114607         * m4/fts.m4 (gl_FUNC_FTS):
114608         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
114609         * m4/getdate.m4 (gl_GETDATE):
114610         * m4/gethrxtime.m4 (gl_GETHRXTIME):
114611         * m4/getpagesize.m4 (gl_GETPAGESIZE):
114612         * m4/getpass.m4 (gl_FUNC_GETPASS):
114613         * m4/gettime.m4 (gl_GETTIME):
114614         * m4/getugroups.m4 (gl_GETUGROUPS):
114615         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
114616         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
114617         * m4/hard-locale.m4 (gl_HARD_LOCALE):
114618         * m4/hash.m4 (gl_HASH):
114619         * m4/idcache.m4 (gl_IDCACHE):
114620         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
114621         * m4/lchown.m4 (gl_FUNC_LCHOWN):
114622         * m4/long-options.m4 (gl_LONG_OPTIONS):
114623         * m4/lstat.m4 (gl_FUNC_LSTAT):
114624         * m4/md5.m4 (gl_MD5):
114625         * m4/memcasecmp.m4 (gl_MEMCASECMP):
114626         * m4/memcoll.m4 (gl_MEMCOLL):
114627         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
114628         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
114629         * m4/memxor.m4 (gl_MEMXOR):
114630         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
114631         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
114632         * m4/modechange.m4 (gl_MODECHANGE):
114633         * m4/mountlist.m4 (gl_MOUNTLIST):
114634         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
114635         * m4/openat.m4 (gl_FUNC_OPENAT):
114636         * m4/pathmax.m4 (gl_PATHMAX):
114637         * m4/physmem.m4 (gl_PHYSMEM):
114638         * m4/posixtm.m4 (gl_POSIXTM):
114639         * m4/posixver.m4 (gl_POSIXVER):
114640         * m4/quote.m4 (gl_QUOTE):
114641         * m4/quotearg.m4 (gl_QUOTEARG):
114642         * m4/readtokens.m4 (gl_READTOKENS):
114643         * m4/readutmp.m4 (gl_READUTMP):
114644         * m4/regex.m4 (gl_REGEX):
114645         * m4/safe-read.m4 (gl_SAFE_READ):
114646         * m4/safe-write.m4 (gl_SAFE_WRITE):
114647         * m4/same.m4 (gl_SAME):
114648         * m4/save-cwd.m4 (gl_SAVE_CWD):
114649         * m4/savedir.m4 (gl_SAVEDIR):
114650         * m4/settime.m4 (gl_SETTIME):
114651         * m4/sha1.m4 (gl_SHA1):
114652         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
114653         * m4/stat-macros.m4 (gl_STAT_MACROS):
114654         * m4/stat-time.m4 (gl_STAT_TIME):
114655         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
114656         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
114657         * m4/strdup.m4 (gl_FUNC_STRDUP):
114658         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
114659         * m4/strndup.m4 (gl_FUNC_STRNDUP):
114660         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
114661         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
114662         * m4/time_r.m4 (gl_TIME_R):
114663         * m4/timespec.m4 (gl_TIMESPEC):
114664         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
114665         * m4/unlinkdir.m4 (gl_UNLINKDIR):
114666         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
114667         * m4/userspec.m4 (gl_USERSPEC):
114668         * m4/utimecmp.m4 (gl_UTIMECMP):
114669         * m4/utimens.m4 (gl_UTIMENS):
114670         * m4/xalloc.m4 (gl_XALLOC):
114671         * m4/xgetcwd.m4 (gl_XGETCWD):
114672         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
114673         * m4/xreadlink.m4 (gl_XREADLINK):
114674         * m4/xstrtod.m4 (gl_XSTRTOD):
114675         * m4/yesno.m4 (gl_YESNO):
114676         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
114677         to get the necessary .h files and whatnot.
114679 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
114680             Bruno Haible  <bruno@clisp.org>
114682         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
114683         /bin/sh understanding of '!' conditional negation.
114685 2006-08-21  Jim Meyering  <jim@meyering.net>
114687         * modules/openat (Depends-on): Really alphabetize.
114689         * modules/acl (Depends-on): Add error and quote.
114691         * check-module (find_included_lib_files): Add at-func.c to the
114692         ok-to-include-more-than-once white list.
114694         * modules/openat (Depends-on): Add lstat.  Alphabetize.
114696 2006-08-21  Bruno Haible  <bruno@clisp.org>
114698         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
114699         Emit a pkgdata_DATA variable only if some snippets add contents to it.
114700         Reported by Martin Lambers <marlam@marlam.de>.
114702 2006-08-21  Bruno Haible  <bruno@clisp.org>
114704         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
114705         specify an installation location, don't emit a noinst_LIBRARIES or
114706         noinst_LTLIBRARIES assignment.
114708 2006-08-21  Bruno Haible  <bruno@clisp.org>
114710         BeOS portability.
114711         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
114712         BeOS has mbrtowc() but no <wctype.h>.
114714 2006-08-21  Bruno Haible  <bruno@clisp.org>
114716         BeOS portability.
114717         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
114718         exist.
114720 2006-08-21  Bruno Haible  <bruno@clisp.org>
114722         BeOS portability.
114723         * lib/mbchar.h: Include <wctype.h> only if it exists.
114725 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
114727         Remove files that are no longer needed by their respective modules.
114728         * m4/obstack.m4: Remove.
114729         * m4/strerror_r.m4: Remove.
114730         * m4/uint32_t.m4: Remove.
114731         * m4/uintptr_t.m4: Remove.
114732         * m4/ullong_max.m4: Remove.
114733         * m4/xstrtoimax.m4: Remove.
114734         * m4/xstrtoumax.m4: Remove.
114736         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
114737         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
114738         dependencies now capture this.
114740         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
114741         Do not use AC_LIBSOURCES, since gnulib modules now do this.
114742         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
114743         * m4/human.m4 (gl_HUMAN): Likewise.
114744         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
114745         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
114747         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
114749         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
114750         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
114751         stdint.
114752         * m4/human.m4 (gl_HUMAN): Likewise.
114753         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
114754         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
114755         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
114756         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
114757         * m4/xstrtol (gl_XSTRTOL): Likewise.
114759         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
114760         AC_TYPE_LONG_LONG_INT.
114761         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
114762         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
114763         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
114764         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
114766         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
114767         on stdbool.
114769         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
114770         (gl_PREREQ_XSTRTOUL): Remove.
114772         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
114774         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
114775         mode.
114777 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
114779         Add and change modules to make it easier for coreutils to use
114780         gnulib-tool.
114781         * modules/backupfile (Files): Remove m4/d-ino.m4.
114782         (Depends-on): Add d-ino.
114783         * modules/cycle-check (Depends-on): Add stdint.
114784         (lib_SOURCES): Add cycle-check.h.
114785         * modules/d-ino: New module.
114786         * modules/d-type: New module.
114787         * modules/error (Files): Remove m4/strerror_r.m4.
114788         * modules/filemode (Files): Add m4/st_dm_mode.m4.
114789         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
114790         m4/inttypes_h.m4, m4/uintmax_t.m4.
114791         (Depends-on): Add stdint.
114792         (lib_SOURCES): Add fsusage.h.
114793         * modules/getcwd (Files): Remove d-ino.m4.
114794         (Depends-on): Add d-ino.
114795         * modules/getndelim2 (Depends-on): Add stdint.
114796         * modules/glob (Files): Remove m4/d-type.m4.
114797         (Depends-on): Add d-type.
114798         * modules/host-os: New module.
114799         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
114800         m4/inttypes_h.m4, m4/uintmax_t.m4.
114801         * Depends-on: Add stdint.
114802         (lib_SOURCES): Add human.h.
114803         * modules/inttostr (Files): Remove m4/intmax_t.m4,
114804         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
114805         m4/uintmax_t.m4, m4/ulonglong.m4.
114806         (Depends-on): Add stdint.
114807         (EXTRA_DIST): Add inttostr.h.
114808         * modules/lchmod: New module.
114809         * modules/link-follow: New module.
114810         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
114811         (Depends-on): Add lchmod.
114812         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
114813         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
114814         (Depends-on): Add stdint.
114815         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
114816         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
114817         (Depends-on): Add stdint.
114818         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
114819         * modules/perl: New module.
114820         * modules/regex (Depends-on): Add stdint.
114821         * modules/rmdir-errno: New module.
114822         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
114823         m4/intmax_t.m4.
114824         (Depends-on): Add stdint.
114825         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
114826         m4/uintmax_t.m4.
114827         (Depends-on): Add stdint.
114828         * modules/unlink-busy: New module.
114829         * modules/utimecmp (Depends-on): Add stdint.
114830         * modules/uptime: New module.
114831         * modules/winsz-ioctl: New module.
114832         * modules/winsz-termios: New module.
114833         * modules/xnanosleep (Depends-on): Add nanosleep.
114834         * modules/ullong_max: Remove.
114835         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
114836         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
114837         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
114838         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
114839         (Depends-on): Add inttypes.
114840         (lib_SOURCES): Add xstrtol.h.
114841         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
114842         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
114843         * MODULES.html.sh: Move 'assert' into the assert section.
114844         Move 'dummy' into the linking section.
114845         Remove ullong_max.
114846         Add section for compatibility checks for POSIX:2001 functions,
114847         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
114848         winsz-ioctl, and winsz-termios into it.
114849         Add lchmod.
114850         Add top-level Misc section and put host-os, perl, and uptime
114851         into it.
114853 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
114855         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
114856         now assume the stdint module.  Do not include inttypes.h.
114857         * lib/fsusage.h: Likewise.
114858         * lib/getndelim2.c: Likewise.
114859         * lib/human.h: Likewise.
114860         * lib/inttostr.h: Likewise.
114861         * lib/obstack.c: Likewise.
114862         * lib/regex_internal.h: Likewise.
114863         * lib/tempname.c: Likewise.
114864         * lib/utimecmp.c: Likewise.
114865         * lib/xstrtol.h: Likewise.
114867         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
114869         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
114870         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
114871         * lib/xtime.h: Likewise.
114873 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
114875         * modules/openat (Files): Add lib/fchmodat.c.
114876         Fixes problem reported by Jay Youngman.
114878 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
114880         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
114881         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
114883 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
114884             Bruno Haible  <bruno@clisp.org>
114886         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
114887         and is a script that invokes bison. Tighten the code. Add comments.
114889 2006-08-18  Jim Meyering  <jim@meyering.net>
114891         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
114892         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
114893         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
114894         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
114896 2006-08-18  Bruno Haible  <bruno@clisp.org>
114898         * modules/bison-i18n: New file.
114899         * MODULES.html.sh (Internationalization functions): Add it.
114901 2006-08-18  Bruno Haible  <bruno@clisp.org>
114903         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
114904         sys/statvfs.h. When getmntinfo was found, check its declaration and
114905         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
114907 2006-08-18  Bruno Haible  <bruno@clisp.org>
114909         * m4/bison-i18n.m4: New file, from bison.
114911 2006-08-18  Bruno Haible  <bruno@clisp.org>
114913         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
114914         (ME_DUMMY): Treat "kernfs" as a dummy.
114915         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
114917 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
114919         Update from coreutils.
114921         2006-08-15  Jim Meyering  <jim@meyering.net>
114923         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
114925         2006-01-17  Jim Meyering  <jim@meyering.net>
114927         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
114929         2006-01-11  Jim Meyering  <jim@meyering.net>
114931         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
114932         Check for the lchmod function.
114934 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
114936         Update from coreutils.
114938         * lib/__fpending.h: Add copyright notice.
114939         * lib/fprintftime.h: Likewise.
114940         * lib/savedir.c: Use (C) in copyright notice.
114941         * lib/savedir.h: Likewise.
114943         2006-08-15  Jim Meyering  <jim@meyering.net>
114945         * lib/at-func.c: New file, with the logic of all emulated at-functions.
114946         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
114947         in support of the EXPECTED_ERRNO macro.
114948         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
114949         definitions.  Instead, define the appropriate symbols and include
114950         "at-func.c".
114951         * lib/mkdirat.c (mkdirat): Likewise.
114952         * lib/fchmodat.c (fchmodat): Likewise.
114953         (ENOSYS): Remove definition.
114954         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
114955         it.  Don't include "unistd--.h" -- it wasn't ever used.
114957         2006-01-17  Jim Meyering  <jim@meyering.net>
114959         Rewrite fts.c not to change the current working directory,
114960         by using openat, fstatat, fdopendir, etc..
114962         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
114963         (HAVE_OPENAT_SUPPORT): Define.
114964         [_LIBC] (fchdir): Don't undef or define; no longer used.
114965         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
114966         Now, this `function' always succeeds, and consumes its file descriptor
114967         parameter -- so callers must not close such FDs.  Update callers.
114968         (diropen_fd, opendirat, cwd_advance_fd): New functions.
114969         (diropen): Add parameter, SP.  Adjust all callers.
114970         Implement using diropen_fd, rather than open.
114971         (fts_open): Initialize new member, fts_cwd_fd.
114972         Remove fts_rft-setting code.
114973         (fts_close): Close fts_cwd_fd, if necessary.
114974         (__opendir2): Define in terms of opendir or opendirat,
114975         depending on whether the FST_NOCHDIR flag is set.
114976         (fts_build): Since fts_safe_changedir consumes its FD, and since
114977         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
114978         and close the dup'd file descriptor upon failure.
114979         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
114980         (fts_safe_changedir): Tweak semantics to reflect that this function
114981         now calls cwd_advance_fd and hence consumes its FD argument.
114982         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
114983         [struct FTS] (fts_rft): Remove now-unused member.
114984         [struct FTS] (fts_cycle.state): Improve comment.
114986         * lib/openat.c (openat_needs_fchdir): New function.
114987         * lib/openat.h (openat_needs_fchdir): Declare it.
114989 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
114991         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
114992         Problem and fix reported by Pádraig Brady in
114993         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00099.html>.
114995 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
114997         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
114999 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
115001         * lib/memcoll.c (memcoll): Optimize for the common case where the
115002         arguments are bytewise equal.
115004 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
115006         * doc/regexprops-generic.texi: Add a copyright notice.
115008 2006-08-15  Bruno Haible  <bruno@clisp.org>
115010         * modules/tmpdir (License): Change to LGPL.
115012 2006-08-15  Bruno Haible  <bruno@clisp.org>
115014         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
115015         module.
115017 2006-08-14  Simon Josefsson  <jas@extundo.com>
115019         * config/srclist.txt: Add gnupload.
115021 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
115023         Change copyright notice from LGPL 2 to GPL 2, since that's the
115024         standard form used in the gnulib repository.
115025         * tests/test-lock.c: Likewise.
115026         * tests/test-stdint.c: Likewise.
115027         * tests/test-tls.c: Likewise.
115029         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
115030         prelude-manager.  User shorter URLs for GNU projects, without '?'.
115031         Add copyright notice.
115033         * check-module: Add copyright notice.  Output a copyright
115034         notice if "--version" is specified.
115035         * modules/COPYING: New file.
115036         * tests/test-getaddrinfo.c: Add copyright notice.
115037         * tests/test-verify.c: Likewise.
115039 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
115041         Change copyright notice from LGPL 2 to GPL 2, since that's the
115042         standard form used in the gnulib repository.
115043         * lib/lock.c: LGPL -> GPL.
115044         * lib/lock.h: Likewise.
115045         * lib/strnlen1.c: Likewise.
115046         * lib/strnlen1.h: Likewise.
115047         * lib/tls.c: Likewise.
115048         * lib/tls.h: Likewise.
115049         * lib/tmpdir.c: Likewise.
115051         * lib/TODO: Remove; this belongs only in coreutils.
115053 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
115055         Add copyright notices to long-enough files that lack them, since
115056         otherwise the files aren't clearly free.  Use the same notice that
115057         getdate.texi already uses.
115058         * doc/alloca-opt.texi: Add copyright notice.
115059         * doc/alloca.texi: Likewise.
115060         * doc/ctime.texi: Likewise.
115061         * doc/functions.texi: Likewise.
115062         * doc/gcd.texi: Likewise.
115063         * doc/gnulib-tool.texi: Likewise.
115064         * doc/inet_ntoa.texi: Likewise.
115065         * doc/visibility.texi: Likewise.
115067         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
115068         * doc/quote.texi: Add copyright notice.
115070         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
115071         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
115072         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
115073         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
115074         is now obsolete, and give a pointer to the Sun list.
115075         Add copyright notice.
115077 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
115079         * config/srclistvars.sh: Add copyright notice.
115081 2006-08-14  Eric Blake  <ebb9@byu.net>
115083         Import the following change from libc:
115085         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
115087         Upstream bug 2997.
115088         * lib/misc/error.c: Add space between program name and message if file
115089         name is missing.
115091 2006-08-12  Karl Berry  <karl@gnu.org>
115093         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
115094         remove, these originate in gnulib now.
115096 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
115098         * doc/Makefile (standards.info standards.html standards.dvi):
115099         Also depend on make-stds.texi.
115101 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
115103         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
115104         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
115106         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
115107         in wchar_t.  Problem reported by Eric Blake.
115109         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
115110         LEN is smaller than SIZE.  Suggested by Bruno Haible.
115111         Also, help the compiler to keep LEN in a register.
115113 2006-08-11  Eric Blake  <ebb9@byu.net>
115115         * users.txt: Sort.  Add tar.
115117 2006-08-11  Bruno Haible  <bruno@clisp.org>
115119         * users.txt: New file.
115121 2006-08-11  Bruno Haible  <bruno@clisp.org>
115123         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
115124         before <wchar.h>. Needed for OSF/1 and BSD/OS.
115126 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
115128         * modules/snprintf (Depends-on): Remove minmax.
115129         (Maintainer): Add self and Bruno.
115131 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
115133         * lib/.cppi-disable: Add snprintf.h, socket_.h.
115134         * lib/snprintf.c: Include <errno.h> and <limits.h>.
115135         (EOVERFLOW): Define if the system does not.
115136         Do not include "minmax.h"; it wasn't used.
115137         (snprintf): Don't assume size_t promotes to an unsigned type.
115138         Fix bug when generated string was too long for the buffer: the
115139         buffer's contents are supposed to be the initial prefix of the
115140         output.  Don't assume vasnprintf returns EOVERFLOW if the size
115141         exceeds INT_MAX; do the check ourselves.
115143         Import the following changes from libc:
115145         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
115147         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
115148         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
115149         set wc to the byte which couldn't be converted.
115150         (re_string_reconstruct): Don't clear valid_raw_len before calling
115151         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
115152         tip_context using re_string_context_at.
115154         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
115156         * lib/posix/regex.h: g++ still cannot handled [restrict].
115158         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
115160         * lib/posix/regex.h: Remove special handling for VMS.
115162 2006-08-10  Jim Meyering  <jim@meyering.net>
115164         * modules/same-inode: New module.
115165         * modules/dev-ino: New module.
115166         * modules/cycle-check: Depend on these modules, rather than simply
115167         including their .h files.
115168         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
115169         required via m4/cycle-check.m4.
115170         * modules/same: Depend on new same-inode module, rather than
115171         including same-inode.h.
115172         * modules/chdir-safer: New file.
115174         * modules/chown (Depends-on): Add stat-macros.
115176 2006-08-10  Jim Meyering  <jim@meyering.net>
115178         * m4/cycle-check.m4: New file.
115179         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
115180         * m4/dev-ino.m4, m4/same-inode.m4: New files.
115182 2006-08-10  Eric Blake  <ebb9@byu.net>
115184         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
115185         in from original proposal.
115187 2006-08-10  Eric Blake  <ebb9@byu.net>
115188         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
115190         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
115191         namespace.
115193 2006-08-10  Bruno Haible  <bruno@clisp.org>
115195         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
115196         as well.
115198 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
115200         Sync from coreutils.
115202         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
115204         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
115205         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
115207 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
115209         * modules/restrict: Remove; no longer needed now that we assume
115210         Autoconf 2.59 or later.
115211         * MODULES.html.sh: Remove 'restrict'.
115212         * modules/argp (Depends-on): Remove 'restrict'.
115213         * modules/base64 (Depends-on): Likewise.
115214         * modules/gc (Depends-on): Likewise.
115215         * modules/getaddrinfo (Depends-on): Likewise.
115216         * modules/glob (Depends-on): Likewise.
115217         * modules/inet_ntop (Depends-on): Likewise.
115218         * modules/inet_pton (Depends-on): Likewise.
115219         * modules/memxor (Depends-on): Likewise.
115220         * modules/regex (Depends-on): Likewise.
115221         * modules/strtok_r (Depends-on): Likewise.
115222         * modules/time_r (Depends-on): Likewise.
115224 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
115226         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
115227         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
115228         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
115229         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
115230         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
115231         * m4/memxor.m4 (gl_MEMXOR): Likewise.
115232         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
115233         gl_C_RESTRICT replaced by AC_C_RESTRICT.
115235         Merge from coreutils.
115236         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
115237         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
115238         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
115239         * m4/time_r.m4 (gl_TIME_R): Likewise.
115241 2006-08-09  Karl Berry  <karl@gnu.org>
115243         * config/srclist.txt: no more gettext-tools, per Bruno.
115245 2006-08-08  Eric Blake  <ebb9@byu.net>
115247         * modules/verror: New module.
115248         * MODULES.html.sh: Document it.
115250 2006-08-08  Eric Blake  <ebb9@byu.net>
115252         * lib/verror.h, lib/verror.c: New files.
115254 2006-08-08  Eric Blake  <ebb9@byu.net>
115256         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
115257         verror_at_line output complies with GNU Coding Standards even when
115258         file is NULL.
115260 2006-08-07  Bruno Haible  <bruno@clisp.org>
115262         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
115263         versions of AIX.
115264         Reported by Ralf Wildenhues.
115266 2006-08-07  Bruno Haible  <bruno@clisp.org>
115268         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
115269         in an AC_DEFUN. Needed so that the autoconf snippets can use
115270         AC_REQUIRE.
115272 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
115274         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
115275         Initialize pkgdata_DATA.
115276         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
115277         overriding it.
115279 2006-08-06  Eric Blake  <ebb9@byu.net>
115281         * lib/error.h: Fold in some upstream changes from glibc.
115282         * lib/error.c: Likewise.
115284 2006-08-04  Bruno Haible  <bruno@clisp.org>
115286         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
115287         Make the mostlyclean-local rule depend on mostlyclean-generic.
115288         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
115290 2006-07-31  Bruno Haible  <bruno@clisp.org>
115292         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
115293         <stdlib.h>, <string.h>.
115295 2006-07-30  Bruno Haible  <bruno@clisp.org>
115297         * modules/readlink (License): Change to LGPL.
115299 2006-07-30  Bruno Haible  <bruno@clisp.org>
115301         * modules/javaversion (Makefile.am): Distribute javaversion.java and
115302         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
115303         set PKGDATADIR to point to it.
115305 2006-07-30  Bruno Haible  <bruno@clisp.org>
115307         * modules/csharpexec (configure.ac): Comment out macro invocation.
115308         * modules/javaexec (configure.ac): Likewise.
115309         * modules/javacomp-script (configure.ac): Likewise.
115311         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
115313 2006-07-30  Bruno Haible  <bruno@clisp.org>
115315         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
115316         linked-list.
115318 2006-07-30  Bruno Haible  <bruno@clisp.org>
115320         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
115322 2006-07-30  Bruno Haible  <bruno@clisp.org>
115324         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
115325         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
115326         get removed.
115328 2006-07-29  Bruno Haible  <bruno@clisp.org>
115330         Make it possible for gnulib-tool to work with locally modified or
115331         augmented gnulib repositories.
115332         * gnulib-tool (func_usage): Document --local-dir option.
115333         (local_gnulib_dir): New variable.
115334         Handle --local-dir option.
115335         (func_lookup_file): New function.
115336         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
115337         (func_get_description, func_get_filelist, func_get_description,
115338         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
115339         func_get_automake_snippet, func_get_include_directive,
115340         func_get_license, func_get_maintainer): Use func_lookup_file.
115341         (func_import, func_create_testdir): Use func_lookup_file.
115343 2006-07-29  Bruno Haible  <bruno@clisp.org>
115345         * modules/setenv (Depends-on): Add unistd.
115347 2006-07-29  Bruno Haible  <bruno@clisp.org>
115349         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
115351 2006-07-29  Bruno Haible  <bruno@clisp.org>
115353         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
115355 2006-07-29  Bruno Haible  <bruno@clisp.org>
115357         * gnulib-tool (import, update): If there is no Makefile.am, look at
115358         aclocal.m4, instead of bailing out.
115360 2006-07-29  Bruno Haible  <bruno@clisp.org>
115362         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
115363         Categorize the options by when they are useful.
115365 2006-07-29  Bruno Haible  <bruno@clisp.org>
115367         * gnulib-tool (func_usage): Document option --no-libtool.
115368         Handle option --no-libtool.
115369         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
115370         for changed semantics of $libtool variable.
115371         (func_import): Likewise. If libtool is not used, show this through
115372         an option --no-libtool.
115373         (func_create_testdir): Update.
115375 2006-07-29  Bruno Haible  <bruno@clisp.org>
115377         * gnulib-tool (func_import): Extend error message about missing
115378         --doc-base.
115380 2006-07-29  Bruno Haible  <bruno@clisp.org>
115382         * gnulib-tool (func_import): Don't create the $docbase directory if
115383         there is no file to store there.
115385 2006-07-29  Bruno Haible  <bruno@clisp.org>
115387         * gnulib-tool (autoconf_minversion): If a --dir option is given and
115388         relevant, look for configure.ac there, not in the current directory.
115389         Also use a simple search for AC_PREREQ, not "autoconf --trace".
115391 2006-07-29  Bruno Haible  <bruno@clisp.org>
115393         * gnulib-tool (SORT): New variable.
115394         (func_usage): Undocument --assume-autoconf option.
115395         Remove --assume-autoconf option handling.
115396         (autoconf_minversion): Determine from the contents of configure.ac.
115397         (func_import): Remove autoconf_minversion handling.
115398         Suggested by Eric Blake.
115400 2006-07-29  Bruno Haible  <bruno@clisp.org>
115402         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
115404 2006-07-29  Bruno Haible  <bruno@clisp.org>
115406         * config/srclist.txt (*setenv.[ch]): Remove rules.
115408 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
115410         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
115412 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
115414         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
115415         arpa/inet.h.
115417 2006-07-28  Simon Josefsson  <jas@extundo.com>
115419         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
115420         * modules/inet_pton (Depends-on): Likewise.
115422 2006-07-28  Simon Josefsson  <jas@extundo.com>
115424         * m4/netinet_in_h.m4: New file.
115426 2006-07-28  Simon Josefsson  <jas@extundo.com>
115428         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
115429         #include's.
115431 2006-07-28  Simon Josefsson  <jas@extundo.com>
115433         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
115434         #include's.
115436 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
115438         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
115439         setgid on directories only if they set these bits.
115440         * lib/modechange.h: Remove obsolete comment about masks.
115442 2006-07-28  Eric Blake  <ebb9@byu.net>
115444         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
115445         macro expansion.
115447 2006-07-28  Bruno Haible  <bruno@clisp.org>
115449         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
115451 2006-07-28  Bruno Haible  <bruno@clisp.org>
115453         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
115455 2006-07-28  Bruno Haible  <bruno@clisp.org>
115457         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
115458         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
115459         Define fallbacks.
115460         Avoids link error on FreeBSD 4.x.
115461         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
115463         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
115464         encoding.
115465         * lib/mbswidth.c (iswcntrl): Likewise.
115467 2006-07-27  Bruno Haible  <bruno@clisp.org>
115469         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
115470         test.
115472 2006-07-27  Bruno Haible  <bruno@clisp.org>
115474         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
115475         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
115476         defined.
115478 2006-07-26  Eric Blake  <ebb9@byu.net>
115480         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
115482 2006-07-26  Eric Blake  <ebb9@byu.net>
115484         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
115485         like mingw that lack mkstemp.
115486         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
115487         avoid compilation warning on mingw.
115489 2006-07-26  Bruno Haible  <bruno@clisp.org>
115491         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
115492         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
115493         INT_FAST*_MIN, INTPTR_MIN.
115495 2006-07-25  Bruno Haible  <bruno@clisp.org>
115497         * modules/version-etc (Depends-on): Add stdarg.
115499 2006-07-25  Bruno Haible  <bruno@clisp.org>
115501         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
115502         complex commands.
115504 2006-07-25  Bruno Haible  <bruno@clisp.org>
115506         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
115507         defined in <stdarg.h> or config.h.
115509 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
115511         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
115512         (gl_STDIO_SAFER): Remove.
115514 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
115516         * MODULES.html.sh (File stream based Input/Output):
115517         Add fopen-safer, tmpfile-safer; remove stdio-safer.
115518         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
115519         * modules/fopen-safer, modules/tmpfile-safer: New files.
115520         * modules/stdio-safer: Remove.
115522 2006-07-24  Bruno Haible  <bruno@clisp.org>
115524         * modules/tmpdir: New file.
115525         * MODULES.html.sh (File system functions): Add it.
115527 2006-07-24  Bruno Haible  <bruno@clisp.org>
115529         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
115530         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
115532 2006-07-24  Bruno Haible  <bruno@clisp.org>
115534         * modules/clean-temp: New file.
115536 2006-07-24  Bruno Haible  <bruno@clisp.org>
115538         * m4/tmpdir.m4: New file, from GNU gettext.
115540 2006-07-24  Bruno Haible  <bruno@clisp.org>
115542         * lib/tmpdir.h: New file, from GNU gettext.
115543         * lib/tmpdir.c: New file, from GNU gettext.
115545 2006-07-24  Bruno Haible  <bruno@clisp.org>
115547         * lib/clean-temp.h: New file, from GNU gettext.
115548         * lib/clean-temp.c: New file, from GNU gettext.
115550 2006-07-23  Eric Blake  <ebb9@byu.net>
115552         * modules/stdio-safer (Files): Add tmpfile-safer.c.
115553         (Depends-on): Add binary-io.
115555 2006-07-23  Eric Blake  <ebb9@byu.net>
115557         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
115559 2006-07-23  Eric Blake  <ebb9@byu.net>
115561         * lib/tmpfile-safer.c: New file.
115562         * lib/stdio-safer.h (fopen_safer): Add prototype.
115563         * lib/stdio--.h (tmpfile): Make safer.
115565 2006-07-23  Bruno Haible  <bruno@clisp.org>
115567         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
115568         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
115569         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
115570         gl_linked_remove_at): Use it.
115572 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
115573         and Simon Josefsson <jas@extundo.com>
115575         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
115577         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
115579 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
115581         * modules/close-stream: New file.
115582         * modules/closeout (Description): Make it clear that it exits
115583         with a diagnostic on error.
115584         (Depends-on): Add close-stream.  Remove fpending, stdbool.
115585         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
115587 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
115589         * m4/close-stream.m4: New file.
115591 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
115593         * lib/close-stream.c, lib/close-stream.h: New files.
115595 2006-07-22  Bruno Haible  <bruno@clisp.org>
115597         Merge from GNU gettext 0.15.
115599         2006-05-01  Bruno Haible  <bruno@clisp.org>
115601                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
115603         2006-07-22  Bruno Haible  <bruno@clisp.org>
115605                 * modules/javaversion: New file.
115606                 * MODULES.html.sh (Java): Add javaversion.
115608         2006-03-12  Bruno Haible  <bruno@clisp.org>
115610                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
115612         2005-12-04  Bruno Haible  <bruno@clisp.org>
115614                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
115615                 (untested).
115617         2006-06-21  Bruno Haible  <bruno@clisp.org>
115619                 Avoid warnings from recent versions of mcs.
115620                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
115621                 -o, -L, -r any more. Use options documented since mcs-1.0
115622                 instead. Similarly for -g.
115624         2005-12-04  Bruno Haible  <bruno@clisp.org>
115626                 * build-aux/csharpcomp.sh.in: Suffix for resources is
115627                 .resources, not .resource.
115629         2005-07-09  Bruno Haible  <bruno@clisp.org>
115631                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
115632                 add a .dll suffix.
115633                 Reported by Mark Junker <mjscod@gmx.de>.
115635         2006-07-22  Bruno Haible  <bruno@clisp.org>
115637                 * modules/gettext: Upgrade to gettext-0.15.
115638                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
115639                 m4/visibility.m4.
115640                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
115642 2006-07-22  Bruno Haible  <bruno@clisp.org>
115644         Merge from GNU gettext 0.15.
115646         2006-03-25  Bruno Haible  <bruno@clisp.org>
115648                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
115650         2006-07-21  Bruno Haible  <bruno@clisp.org>
115652                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
115653                 "1.1".
115655         2006-05-09  Bruno Haible  <bruno@clisp.org>
115657                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
115658                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
115659                 for the conftestver execution.
115661         2006-05-01  Bruno Haible  <bruno@clisp.org>
115663                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
115664                 optional target-version argument. Verify that the compiler
115665                 groks source of the specified source-version, or add -source
115666                 option as necessary. Verify that the compiler produces
115667                 bytecode in the specified target-version, or add -target and
115668                 -source options as necessary. Make the result of the test
115669                 available as variable CONF_JAVAC. Also log error output in
115670                 config.log.
115672         2006-03-11  Bruno Haible  <bruno@clisp.org>
115674                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
115676         2006-05-09  Bruno Haible  <bruno@clisp.org>
115678                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
115679                 CLASSPATH_SEPARATOR to a semicolon.
115681         2006-03-12  Bruno Haible  <bruno@clisp.org>
115683                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
115684                 available as variable CONF_JAVA, for subsequent autoconf
115685                 tests. Also log error output in config.log.
115687         2006-07-19  Bruno Haible  <bruno@clisp.org>
115689                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
115690                 that getline works on glibc2 systems. Needed to avoid trouble
115691                 in relocatable.c.
115692                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
115694         2005-12-04  Bruno Haible  <bruno@clisp.org>
115696                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
115697                 launcher (untested).
115699         2005-12-04  Bruno Haible  <bruno@clisp.org>
115701                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
115703         2006-07-22  Bruno Haible  <bruno@clisp.org>
115705                 * gettext.m4: Update from GNU gettext-0.15.
115706                 * nls.m4: Likewise.
115707                 * po.m4: Likewise.
115708                 * inttypes-pri.m4: Likewise.
115709                 * inttypes-h.m4: Renamed from inttypes.m4.
115710                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
115712 2006-07-22  Bruno Haible  <bruno@clisp.org>
115714         Merge from GNU gettext 0.15.
115716         2005-07-05  Bruno Haible  <bruno@clisp.org>
115718                 * printf-args.c (printf_fetchargs): Work around broken
115719                 definition of wint_t on mingw.
115721         2005-02-12  Bruno Haible  <bruno@clisp.org>
115723                 * xallocsa.h: Add extern "C" for C++.
115725         2006-05-17  Bruno Haible  <bruno@clisp.org>
115727                 Cygwin portability.
115728                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
115730         2006-04-30  Bruno Haible  <bruno@clisp.org>
115732                 * progreloc.c: Include <mach-o/dyld.h> if available.
115733                 (find_executable): Use _NSGetExecutablePath when possible.
115735         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
115737                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
115738                 function.
115740         2005-12-29  Bruno Haible  <bruno@clisp.org>
115742                 * progreloc.c (set_program_name_and_installdir): Fix
115743                 compilation error.
115745         2005-12-04  Bruno Haible  <bruno@clisp.org>
115747                 Cygwin portability.
115748                 * progreloc.c: Include <windows.h> also on Cygwin.
115749                 (find_executable): Add support for Cygwin.
115750                 (set_program_name_and_installdir): Handle also platforms with
115751                 nonempty EXEEXT.
115753         2006-07-11  Bruno Haible  <bruno@clisp.org>
115755                 * javacomp.c: Fix a comment.
115756                 Reported by Jim Meyering.
115758         2006-04-30  Bruno Haible  <bruno@clisp.org>
115760                 * javacomp.h (compile_java_class): Add source_version,
115761                 target_version arguments.
115762                 * javacomp.c: Rewritten to choose only a compiler that
115763                 respects the specified source_version and target_version.
115765         2006-06-27  Bruno Haible  <bruno@clisp.org>
115767                 Assume correct S_ISDIR macro.
115768                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
115770         2006-07-22  Bruno Haible  <bruno@clisp.org>
115772                 * javaversion.h: New file, from GNU gettext.
115773                 * javaversion.c: New file, from GNU gettext.
115774                 * javaversion.java: New file, from GNU gettext.
115775                 * javaversion.class: New file, from GNU gettext.
115777         2006-05-17  Bruno Haible  <bruno@clisp.org>
115779                 Cygwin portability.
115780                 * javaexec.c (execute_java_class): Test for jview program
115781                 also on Cygwin.
115783         2006-04-09  Bruno Haible  <bruno@clisp.org>
115785                 * fatal-signal.c: Don't include string.h.
115786                 (at_fatal_signal): Use a copying loop instead of memcpy.
115788         2005-12-04  Bruno Haible  <bruno@clisp.org>
115790                 * csharpexec.c: Add support for 'clix' launcher (untested).
115791                 (execute_csharp_using_sscli): New function.
115792                 (execute_csharp_program): Call it.
115794         2006-06-21  Bruno Haible  <bruno@clisp.org>
115796                 Avoid warnings from recent versions of mcs.
115797                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
115798                 -o, -L, -r any more. Use options documented since mcs-1.0
115799                 instead. Similarly for -g.
115801         2005-07-09  Bruno Haible  <bruno@clisp.org>
115803                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
115804                 add a .dll suffix.
115805                 Reported by Mark Junker <mjscod@gmx.de>.
115807         2006-06-17  Bruno Haible  <bruno@clisp.org>
115809                 * config.charset: Update for NetBSD 3.0.
115811         2006-05-17  Bruno Haible  <bruno@clisp.org>
115813                 Cygwin portability.
115814                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
115816         2006-05-16  Bruno Haible  <bruno@clisp.org>
115818                 * localcharset.c [CYGWIN]: Include <windows.h>.
115819                 (get_charset_aliases): For Cygwin, return the same CPxxx
115820                 aliases list as under WIN32.
115821                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
115822                 the environment variables. Fall back to GetACP().
115824         2006-04-05  Bruno Haible  <bruno@clisp.org>
115826                 * config.charset: Update Juan Manuel Guerrero's address.
115828         2005-02-12  Bruno Haible  <bruno@clisp.org>
115830                 * allocsa.h: Add extern "C" for C++.
115832         2005-02-10  Bruno Haible  <bruno@clisp.org>
115834                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
115835                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
115837         2006-07-22  Bruno Haible  <bruno@clisp.org>
115839                 * gettext.h: Update to GNU gettext-0.15.
115841 2006-07-22  Bruno Haible  <bruno@clisp.org>
115843         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
115844         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
115845         lib-prefix.m4, longdouble.m4, ssize_t.m4.
115847 2006-07-21  Eric Blake  <ebb9@byu.net>
115849         * modules/stdlib-safer: New file.
115850         * MODULES.html.sh (File stream based Input/Output): Add
115851         stdlib-safer.
115853 2006-07-21  Eric Blake  <ebb9@byu.net>
115855         * lib/stdlib-safer.h: New file from coreutils, required by
115856         stdlib--.h.
115858 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
115860         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
115862 2006-07-20  Bruno Haible  <bruno@clisp.org>
115864         * gnulib-tool: Recognize new option --assume-autoconf.
115865         (autoconf_minversion): New variable.
115866         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
115868 2006-07-20  Bruno Haible  <bruno@clisp.org>
115870         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
115872 2006-07-19  Derek R. Price  <derek@ximbiot.com>
115874         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
115875         Reindent and repaginate.
115877 2006-07-19  Derek Price  <derek@ximbiot.com>
115879         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
115880         Correct grammar.
115882 2006-07-17  Bruno Haible  <bruno@clisp.org>
115884         * modules/list: New file.
115885         * modules/array-list: New file.
115886         * modules/carray-list, modules/carray-list-tests: New files.
115887         * modules/linked-list, modules/linked-list-tests: New files.
115888         * modules/avltree-list, modules/avltree-list-tests: New files.
115889         * modules/rbtree-list, modules/rbtree-list-tests: New files.
115890         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
115891         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
115892         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
115893         * modules/oset: New file.
115894         * modules/array-oset: New file.
115895         * modules/avltree-oset, modules/avltree-oset-tests: New files.
115896         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
115897         * tests/test-carray_list.c: New file.
115898         * tests/test-linked_list.c: New file.
115899         * tests/test-avltree_list.c: New file.
115900         * tests/test-rbtree_list.c: New file.
115901         * tests/test-linkedhash_list.c: New file.
115902         * tests/test-avltreehash_list.c: New file.
115903         * tests/test-rbtreehash_list.c: New file.
115904         * tests/test-avltree_oset.c: New file.
115905         * tests/test-rbtree_oset.c: New file.
115906         * MODULES.html.sh (Container data structures): New section.
115908 2006-07-17  Bruno Haible  <bruno@clisp.org>
115910         * m4/gl_list.m4: New file.
115912 2006-07-17  Bruno Haible  <bruno@clisp.org>
115914         * lib/gl_list.h: New file.
115915         * lib/gl_list.c: New file.
115916         * lib/gl_array_list.h: New file.
115917         * lib/gl_array_list.c: New file.
115918         * lib/gl_carray_list.h: New file.
115919         * lib/gl_carray_list.c: New file.
115920         * lib/gl_linked_list.h: New file.
115921         * lib/gl_linked_list.c: New file.
115922         * lib/gl_anylinked_list1.h: New file.
115923         * lib/gl_anylinked_list2.h: New file.
115924         * lib/gl_avltree_list.h: New file.
115925         * lib/gl_avltree_list.c: New file.
115926         * lib/gl_anyavltree_list1.h: New file.
115927         * lib/gl_anyavltree_list2.h: New file.
115928         * lib/gl_rbtree_list.h: New file.
115929         * lib/gl_rbtree_list.c: New file.
115930         * lib/gl_anyrbtree_list1.h: New file.
115931         * lib/gl_anyrbtree_list2.h: New file.
115932         * lib/gl_anytree_list1.h: New file.
115933         * lib/gl_anytree_list2.h: New file.
115934         * lib/gl_linkedhash_list.h: New file.
115935         * lib/gl_linkedhash_list.c: New file.
115936         * lib/gl_anyhash_list1.h: New file.
115937         * lib/gl_anyhash_list2.h: New file.
115938         * lib/gl_avltreehash_list.h: New file.
115939         * lib/gl_avltreehash_list.c: New file.
115940         * lib/gl_rbtreehash_list.h: New file.
115941         * lib/gl_rbtreehash_list.c: New file.
115942         * lib/gl_anytreehash_list1.h: New file.
115943         * lib/gl_anytreehash_list2.h: New file.
115945         * lib/gl_oset.h: New file.
115946         * lib/gl_oset.c: New file.
115947         * lib/gl_array_oset.h: New file.
115948         * lib/gl_array_oset.c: New file.
115949         * lib/gl_avltree_oset.h: New file.
115950         * lib/gl_avltree_oset.c: New file.
115951         * lib/gl_rbtree_oset.h: New file.
115952         * lib/gl_rbtree_oset.c: New file.
115953         * lib/gl_anytree_oset.h: New file.
115955 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
115957         * m4/mkancesdirs.m4: New file.
115958         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
115959         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
115960         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
115961         it.
115963 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
115965         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
115966         * lib/mkancesdirs.h: New files.
115967         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
115968         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
115969         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
115970         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
115971         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
115972         callers changed.  Revamp internals significantly, by not
115973         attempting to create directories that are temporarily more
115974         permissive than the final results.  Do not attempt to use
115975         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
115976         This removes some race conditions, fixes some bugs, and simplifies
115977         things.  Use new dirchownmod function to do owner and mode changes.
115978         * lib/mkdir-p.h: Likewise.
115979         * lib/modechange.c (octal_to_mode): New function.
115980         (struct mode_change): New member mentioned.
115981         (make_node_op_equals): New arg mentioned.  All callers changed.
115982         (mode_compile): Keep track of which mode bits the user has explicitly
115983         mentioned.
115984         (mode_adjust): New arg DIR, so that we implement the X op correctly.
115985         New arg PMODE_BITS, to keep track of which mode bits the user
115986         mentioned; it treats S_ISUID and S_ISGID speciall.
115987         All callers changed.
115988         * lib/modechange.h: Likewise.
115990 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
115992         * MODULES.html.sh: Add mkancestors.
115993         * modules/mkancesdirs: New module.
115994         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
115995         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
115996         The chdir-safer and afs files are now orphans; I'll remove them
115997         unless someone speaks up.
115998         Add lib/dirchownmod.c, lib/dirchownmod.h.
115999         (Depends-on): Remove alloca, chown, save-cwd, dirname.
116000         Add lchown, mkancesdirs.
116001         (Maintainer): Add self.
116003 2006-07-15  Karl Berry  <karl@gnu.org>
116005         * gnulib-tool: help message wording/arrangement.
116007 2006-07-14  Simon Josefsson  <jas@extundo.com>
116009         * doc/gnulib.texi (Libtool and Windows): New section.
116011 2006-07-12  Simon Josefsson  <jas@extundo.com>
116013         * modules/gendocs (License): Fix license, approved by Karl.
116015 2006-07-12  Eric Blake  <ebb9@byu.net>
116017         * MODULES.html.sh: Add gendocs.
116019 2006-07-11  Eric Blake  <ebb9@byu.net>
116021         * modules/fdl: New module, to install doc/fdl.texi.
116022         * MODULES.html.sh: Add new section for documentation modules.
116023         * gnulib-tool: Avoid space-tab.
116024         (--doc-base): New option, to manage files from doc.
116026 2006-07-11  Eric Blake  <ebb9@byu.net>
116028         * m4/absolute-header.m4: Fix comments to match recent change.
116030 2006-07-11  Eric Blake  <ebb9@byu.net>
116032         * gnulib-tool: List --doc-base before --tests-base.
116034 2006-07-11  Derek R. Price  <derek@ximbiot.com>
116036         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
116038 2006-07-11  Bruno Haible  <bruno@clisp.org>
116040         * README: Mention where to put documentation.
116042 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116044         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
116046 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
116048         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
116049         to stdint.m4.
116051 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
116053         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
116054         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
116055         "no/such/file/stdint.h" when there is no such file, so that
116056         the resulting C code can be parsed by dodgy compilers.
116057         Problems reported by Bob Proulx.
116059 2006-07-10  Derek R. Price  <derek@ximbiot.com>
116061         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
116062         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
116063         macros into the GNU _D_EXACT_NAMLEN.
116064         * lib/savedir.c:  Likewise.
116065         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
116067 2006-07-10  Derek R. Price  <derek@ximbiot.com>
116068         and Paul Eggert  <eggert@cs.ucla.edu>
116070         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
116071         * m4/savedir.m4:
116072         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
116073         macros into the GNU _D_EXACT_NAMLEN.
116075 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
116077         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
116078         around the absolute name, to work around a problem with the HP-UX
116079         11.23 native C compiler, reported by Bob Proulx.
116081 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
116083         * doc/maintain.texi, make-stds.texi: Sync from
116084         <http://savannah.gnu.org/projects/gnustandards>.
116086 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
116088         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
116090 2006-07-09  Jim Meyering  <jim@meyering.net>
116092         * m4/glob.m4: Remove a doubled word in a comment.
116094 2006-07-09  Jim Meyering  <jim@meyering.net>
116096         * lib/argp-pv.c: Remove a doubled word in a comment.
116097         * lib/check-version.c (check_version): Likewise.
116098         * lib/javacomp.c (compile_java_class): Likewise.
116100 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
116102         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
116103         for the benefit of people using Autoconf 2.60.  If you want to
116104         support older Autoconf versions you can copy m4/onceonly_2_57.m4
116105         (or m4/onceonly.m4, if pre-2.57) manually.
116107 2006-07-08  Jim Meyering  <jim@meyering.net>
116109         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
116110         comment.
116111         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
116112         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
116113         comment.
116115 2006-07-08  Jim Meyering  <jim@meyering.net>
116117         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
116119 2006-07-07  Simon Josefsson  <jas@extundo.com>
116121         * tests/test-crc.c: Change expected crc value, the test vector
116122         were probably computed using the old broken crc.c?
116124 2006-07-06  Simon Josefsson  <jas@extundo.com>
116126         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
116127         now the canonical place for the M4 file).
116129         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
116130         from the sys_socket dependency now.
116132         * modules/inet_pton (Files): Ditto.
116134         * modules/inet_ntop (Files): Ditto.
116136 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
116138         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
116139         not gl_PREREQ_GETUSERSHELL.
116141 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116143         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
116144         with only one argument, for Autoconf 2.60.
116145         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
116146         expand to nothing, so add a shell command to avoid syntax error.
116147         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
116149 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116151         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
116153 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
116155         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
116156         no longer needed.  Check for isblank decl.
116157         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
116158         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
116159         of existence.
116161 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
116163         * lib/getloadavg.c: Use __VMS, not VMS.
116164         * lib/getopt.c: Likewise.
116165         * lib/getpagesize.h: Likewise.
116166         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
116167         and probably does not work.
116169 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
116171         * lib/.cppi-disable: Add wcwidth.
116172         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
116173         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
116174         (ISGRAPH): Remove.  All uses changed to isgraph.
116175         (FOLD) [!defined _LIBC]: Remove special case.
116176         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
116177         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
116178         HAVE_ISBLANK.
116179         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
116180         case.
116182 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
116184         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
116185         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
116186         brackets.  Other minor changes to suppress some compiler
116187         warnings.
116189 2006-07-06  Derek R. Price  <derek@ximbiot.com>
116190         and Paul Eggert  <eggert@cs.ucla.edu>
116192         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
116193         of invoking obsolescent AC_HEADER_DIRENT macro.
116194         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
116195         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
116196         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
116197         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
116198         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
116199         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
116200         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
116201         * m4/readdir.m4: Remove; no longer needed.
116203 2006-07-06  Derek R. Price  <derek@ximbiot.com>
116204         and Paul Eggert  <eggert@cs.ucla.edu>
116206         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
116207         Don't worry about this obsolete case any more.
116208         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
116209         directories.
116210         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
116211         worry about this obsolete case any more.
116212         * lib/fts.c: Likewise.
116213         * lib/getcwd.c: Likewise.
116214         * lib/glob.h: Likewise.
116215         * lib/savedir.c: Likewise.
116217 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
116219         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
116220         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
116221         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
116222         needed.
116223         All uses removed.
116224         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
116225         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
116226         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
116227         needed.
116228         * m4/getdate.m4 (gl_GETDATE): Likewise.
116229         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
116230         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
116231         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
116232         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
116233         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
116234         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
116235         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
116236         needed.
116238 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
116240         * lib/memcasecmp.c: Include <limits.h>.
116241         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
116242         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
116243         Don't assume isdigit succeeds only on '0' through '9'.
116245 2006-07-05  Eric Blake  <ebb9@byu.net>
116247         * modules/getaddrinfo (Depends-on): Add snprintf.
116249 2006-07-05  Eric Blake  <ebb9@byu.net>
116251         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
116252         to avoid 'header present but could not be compiled' on cygwin.
116254 2006-07-05  Eric Blake  <ebb9@byu.net>
116256         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
116257         missing from netdb.h.
116258         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
116260 2006-07-05  Derek R. Price  <derek@ximbiot.com>
116262         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
116263         no longer needed.
116264         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
116265         * m4/getdate.m4 (gl_GETDATE): Likewise.
116266         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
116267         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
116268         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
116269         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
116270         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
116272 2006-07-05  Derek R. Price  <derek@ximbiot.com>
116274         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
116275         All uses of is_space replaced by isspace.
116276         * lib/exit.h: Don't talk about STDC_HEADERS.
116277         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
116278         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
116279         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
116280         replaced by isprint etc.
116281         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
116282         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
116283         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
116284         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
116285         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
116286         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
116288 2006-07-05  Bruno Haible  <bruno@clisp.org>
116290         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
116291         the function exists, before testing against AIX.
116292         Reported by Martin Lambers <marlam@marlam.de>.
116294 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
116296         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
116297         From Mark D. Baushke.
116299 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
116301         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
116302         to the absolute name, not just one, to bypass Sun C 5.8's
116303         "warning: #include of /usr/include/... may be non-portable".
116305 2006-07-04  Eric Blake  <ebb9@byu.net>
116307         * modules/dirname-tests: New test module.
116308         * tests/test-dirname.c: New file, replacing dirname.c
116309         TEST_DIRNAME section that was recently deleted.
116311 2006-07-04  Bruno Haible  <bruno@clisp.org>
116313         Assume ANSI C header files and <ctype.h> functions.
116314         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
116315         (mbsnwidth): Use isprint, iscntrl instead.
116317 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
116319         Merge from coreutils.
116320         * MODULES.html.sh: Add xstrtold.
116321         * modules/xstrtold: New file.
116322         * modules/cycle-check (Files): Add lib/same-inode.h.
116323         * modules/dirname (Files): Add m4/double-slash-root.m4.
116324         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
116325         * modules/mkdir-p (Files): Add lib/same-inode.h.
116326         * modules/same (Files): Add lib/same-inode.h.
116328 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
116330         * m4/absolute-header.m4: Renamed from full-header-path.m4.
116331         This is to keep the terminology clean; POSIX talks about
116332         "absolute pathnames", not "full pathnames", but the GNU
116333         Coding Standards say to use "path" for something else;
116334         so use "absolute" to keep both sides happy.
116335         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
116336         Set gl_absolute_header, not gl_full_header_path.
116337         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
116338         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
116339         All uses changed.
116341         Merge from coreutils.
116343         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
116345         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
116346         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
116347         want to require the building of c-strtod.o.
116348         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
116349         needs -lm directly.
116350         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
116352         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
116354         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
116355         --as-needed option if available.  Problem reported by Albert Chin in
116356         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00114.html>.
116357         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
116358         cc merely issues a bunch of annoying warnings for --as-needed
116359         (this problem was reported by Bob Proulx).  Also, try linking with
116360         -lm to detect a bug in binutils 2.16 (this problem was reported
116361         by Ralf Wildenhues).
116363         2006-06-18  Jim Meyering  <jim@meyering.net>
116365         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
116366         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
116367         macro.
116368         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
116369         also check for glibc-2.4's abort-inducing bug.
116371         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
116372         Low-probability clean-up should be to use rmdir to get rid of
116373         the just-created directory, not unlink.
116375         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
116376         configure fail, and request a bug report to inform us about it.
116377         Add a comment that, barring reports to the contrary, in 2007 we'll
116378         assume ftruncate is universally available.
116380         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
116382         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
116384         2006-03-12  Jim Meyering  <jim@meyering.net>
116386         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
116387         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
116388         * m4/same.m4 (gl_SAME): Likewise.
116389         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
116391         2006-03-11  Eric Blake  <ebb9@byu.net>
116393         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
116394         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
116395         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
116396         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
116398 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
116400         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
116401         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
116402         reported by Mark D. Baushke, one in
116403         <http://lists.gnu.org/r/bug-gnulib/2006-07/msg00015.html>.
116405         Merge from coreutils.
116407         * lib/.cppi-disable: Add stdint_.h.
116408         * lib/.cvsignore: Add stdint.h.
116410         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
116412         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
116413         both double and long double versions.
116414         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
116415         * lib/xstrtold.c: New file.
116416         * lib/xstrtod.h (xstrtold): New decl.
116418         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
116420         * lib/filemode.c (setst): Remove.
116421         (strmode): Rewrite to avoid setst.  This makes the code shorter,
116422         (arguably) clearer, and the generated code is a bit smaller on my
116423         Debian GNU/Linux stable x86 host.
116425         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
116427         * lib/filemode.c: Include "filemode.h" first, to test the interface.
116428         Assume that filemode.h includes sys/types.h and sys/stat.h.
116429         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
116430         (ftypelet): Reorder to put common cases first, for efficiency.
116431         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
116432         to do 'M'.
116433         (strmode): Renamed from mode_string, and now stores 12 bytes instead
116434         of 10, for compatibility with FreeBSD.  All callers changed.
116435         (filemodestring): Now stores 12 bytes instead of 10, and sets file
116436         types that can't be deduced solely from st_mode.  First arg is now a
116437         const pointer.
116438         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
116439         (strmode): Renamed from mode_string.
116440         (filemodestring): New decl.
116441         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
116442         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
116443         needed.
116444         (S_ISPORT, S_ISWHT): New macros, if not already defined.
116446         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
116448         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
116449         fsusage.h now does that.  Include fsusage.h first, to test interface.
116450         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
116451         at most one method (the old code could have generated decls that
116452         didn't conform to C89, not that this was ever exercised).
116453         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
116455         2006-03-19  Jim Meyering  <jim@meyering.net>
116457         Work even in a chroot where d_ino values for entries in "/"
116458         don't match the stat.st_ino values for the same names.
116459         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
116460         number, iterate through all entries again, using lstat instead.
116461         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
116462         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
116464         * lib/getcwd.c (__getcwd): Clarify a comment.
116465         Use memcpy in place of a call to strcpy.
116467         2006-03-12  Jim Meyering  <jim@meyering.net>
116469         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
116470         matches that of the current directory (which we're about to chdir ".."
116471         out of), then save the dev-ino of the parent, instead.
116473         * lib/same-inode.h (SAME_INODE): New file/macro.
116474         * lib/chdir-safer.c (SAME_INODE): Remove definition.
116475         Include "same-inode.h", instead.
116476         * lib/same.c: Likewise.
116477         * lib/cycle-check.h: Include "same-inode.h".
116478         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
116479         * lib/cycle-check.c (SAME_INODE): Remove definition.
116480         * lib/root-dev-ino.h: Include "same-inode.h".
116482         2006-03-11  Eric Blake  <ebb9@byu.net>
116484         * lib/same.c (same_name): s/base_name/last_component/
116485         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
116486         * lib/filenamecat.c (file_name_concat): Likewise.
116488         2006-03-11  Eric Blake  <ebb9@byu.net>,
116489                     Paul Eggert  <eggert@cs.ucla.edu>
116491         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
116492         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
116493         drive prefix.
116494         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
116495         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
116496         (last_component): New method.
116497         * lib/dirname.c (dir_len): Determine when drive letters need a
116498         subsequent slash.  Preserve // when it is special.
116499         (dir_name): Don't append dot when drive letter is absolute.
116500         [TEST_DIRNAME]: Move into a full-blown gnulib test.
116501         * lib/basename.c (base_name): New semantics - malloc the result.
116502         Preserve // when it is special.  Preserve relative files that look
116503         like drive letters.
116504         (base_len): Preserve // when it is special.
116505         (last_component): New method, similar to old base_name semantics.
116506         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
116507         base_name.  Strip redundant slashes from ///.
116509 2006-07-03  Jim Meyering  <jim@meyering.net>
116511         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
116512         macro is used before the first cycle_check call.
116514 2006-07-03  Eric Blake  <ebb9@byu.net>
116516         * modules/dirname (Depends-on): Add xstrndup.
116518 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
116520         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
116521         test cases, so that config.log is a bit easier to follow.
116523 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
116525         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
116526         both are 64 bits, since this seems to be the tradition, and this
116527         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
116528         we ever run into a host that prefers long long to long in this
116529         case, we'll need another configure-time test.  Problem reported by
116530         Jim Meyering.
116532 2006-07-02  Eric Blake  <ebb9@byu.net>
116534         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
116536 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
116538         * modules/inttypes (Depends-on): No longer depends on stdint.
116539         * modules/stdint (Description): Say more about assumptions.
116540         Say that the fast types might differ.  Say macros are used.
116541         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
116542         (Makefile.am): Revise list of substituted symbols to match
116543         new stdint.m4.
116544         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
116545         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
116546         * tests/test-stdint.c (verify_same_types)
116547         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
116548         the code conforms to C99/C89.
116549         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
116550         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
116552 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
116554         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
116555         but fix a bug, by requiring at least 64 bits.
116556         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
116557         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
116558         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
116559         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
116561         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
116562         changes.  Make 2.59 a prerequisite.  Check and substitute for
116563         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
116564         inttypes.h.  Do not use special include files; just use the
116565         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
116566         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
116567         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
116568         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
116569         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
116570         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
116571         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
116572         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
116573         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
116574         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
116575         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
116576         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
116577         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
116578         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
116579         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
116580         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
116581         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
116582         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
116583         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
116584         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
116585         WINT_MAX.  Check for C99 conformance more strictly, by detecting
116586         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
116587         not check for things that C99 does not require, e.g., int8_t.  If
116588         a test isn't needed unless <stdint.h> isn't working, and is
116589         unlikely to be needed for any other reason, then don't do it
116590         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
116591         size_t, since we assume C89 freestanding at least.  Do not check
116592         for sig_atomic_t, wchar_t, or wint_t, since the code now does
116593         the right thing even if the types are not defined.  Instead use:
116594         (gl_STDINT_TYPE_PROPERTIES): New macro.
116595         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
116596         testing whether <sys/types.h> clashes, as Autoconf does this for
116597         us now.  All uses removed.
116598         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
116599         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
116600         (gl_CHECK_TYPE_SAME):
116601         Remove; no longer needed.
116602         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
116603         exists, since we'll return 0 anyway in that case.
116604         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
116606 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
116608         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
116609         possible collision with system files.
116610         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
116611         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
116612         WCHAR_MIN and WCHAR_MAX in this case.
116613         (<stddef.h>): Do not include; no longer needed.
116614         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
116615         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
116616         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
116617         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
116618         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
116619         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
116620         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
116621         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
116622         !defined(__c99))]: Include in this case too, since it's harmless
116623         now.
116624         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
116625         dangerous to do so.
116626         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
116627         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
116628         (_STDINT_MIN, _STDINT_MAX): New macros.
116629         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
116630         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
116631         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
116632         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
116633         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
116634         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
116635         macros, not typedefs; this simplifies things quite a bit.
116636         Use long int for all types narrower than int64_t.
116637         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
116638         Define in terms of long long int or int64_t or long int,
116639         not int64_t or int32_t.  This saves some compile-time testing.
116640         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
116641         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
116642         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
116643         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
116644         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
116645         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
116646         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
116647         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
116648         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
116649         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
116650         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
116651         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
116652         undef any previous version and define our own version, for
116653         simplicity and consistency with the new macros for types.
116654         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
116655         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
116656         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
116657         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
116658         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
116659         @WINT_T_SUFFIX@ to keep things simple here.
116660         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
116661         Simplify by assuming typical 8/16/32/64 host, since we're
116662         already doing that elsewhere anyway.
116663         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
116664         and assume long long int is 64 bits if available.  This
116665         speeds up 'configure'.
116667 2006-07-01  Eric Blake  <ebb9@byu.net>
116669         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
116670         Reported by Andreas Buening.
116672 2006-07-01  Eric Blake  <ebb9@byu.net>
116674         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
116676 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
116678         * lib/getaddrinfo.c: fixed typo
116680 2006-06-29  Jim Meyering  <jim@meyering.net>
116682         * modules/strftime (Maintainer): Add my name, since with the
116683         FPRINTFTIME changes strftime.c has forked from glibc.
116685 2006-06-29  Eric Blake  <ebb9@byu.net>
116687         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
116689 2006-06-29  Eric Blake  <ebb9@byu.net>
116691         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
116693 2006-06-29  Eric Blake  <ebb9@byu.net>
116695         * lib/stat_.h: New file.
116697 2006-06-29  Eric Blake  <ebb9@byu.net>
116699         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
116700         unused static function.
116702 2006-06-29  Eric Blake  <ebb9@byu.net>
116704         * doc/functions.texi (Function Portability): Document missing lstat
116705         on mingw.
116707 2006-06-29  Eric Blake  <ebb9@byu.net>
116709         * MODULES.html.sh: Add sys_stat.
116710         * modules/sys_stat: New module.
116711         * modules/mkstemp (Depends-on): Add sys_stat.
116713 2006-06-29  Derek R. Price  <derek@ximbiot.com>
116715         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
116717 2006-06-29  Derek R. Price  <derek@ximbiot.com>
116719         * m4/c-bs-a.m4: Removed.
116721 2006-06-29  Derek R. Price  <derek@ximbiot.com>
116723         * lib/strftime.c: Assume strftime() exists.
116725 2006-06-29  Derek Price  <derek@ximbiot.com>
116727         * modules/c-bs-a: Removed - \a is C89.
116728         * MODULES.html.sh: Remove c-bs-a.
116730 2006-06-29  Bruno Haible  <bruno@clisp.org>
116732         * modules/wcwidth (License): Change to LGPL.
116734 2006-06-28  Simon Josefsson  <jas@extundo.com>
116736         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
116737         on _WIN32.
116739         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
116740         getnameinfo.
116742 2006-06-28  Simon Josefsson  <jas@extundo.com>
116744         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
116746 2006-06-28  Simon Josefsson  <jas@extundo.com>
116748         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
116749         functions there.  It will succeed on Windows XP, but on Windows
116750         2000 and (presumably) earlier, it will fail, and use the internal
116751         re-implementation.
116752         (use_win32_p): New function.
116753         (getaddrinfo): Use strtoul on servname, to support numeric ports.
116754         Support AI_NUMERICSERV to disable getservbyname.
116755         (getnameinfo): New function, only supports
116756         NI_NUMERICHOST|NI_NUMERICSERV for now.
116758         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
116759         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
116760         getnameinfo.
116762 2006-06-28  Eric Blake  <ebb9@byu.net>
116764         * modules/wcwidth: New file.
116765         * modules/mbchar (Depends-on): Add wcwidth.
116766         * modules/mbswidth (Depends-on): Add wcwidth.
116767         * MODULES.html.sh: Add wcwidth.
116769 2006-06-28  Eric Blake  <ebb9@byu.net>
116771         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
116772         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
116774 2006-06-28  Eric Blake  <ebb9@byu.net>
116776         * lib/xvasprintf.h: Fix comments.
116778 2006-06-28  Eric Blake  <ebb9@byu.net>
116780         * lib/mbchar.h (wcwidth): Include wcwidth.h.
116781         * lib/mbswidth.c (wcwidth): Move from here...
116782         * lib/wcwidth.h: ...to this new file.
116784 2006-06-28  Derek R. Price  <derek@ximbiot.com>
116786         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
116788         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
116789         it's obsolete.
116790         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
116792 2006-06-28  Derek R. Price  <derek@ximbiot.com>
116794         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
116795         Autoconf 2.60 says this stuff was obsolete.
116797 2006-06-28  Bruno Haible  <bruno@clisp.org>
116799         * modules/wcwidth (Files): Add m4/wchar_t.m4.
116801 2006-06-28  Bruno Haible  <bruno@clisp.org>
116803         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
116804         gt_TYPE_WCHAR_T.
116806 2006-06-28  Bruno Haible  <bruno@clisp.org>
116808         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
116809         declaration for wcwidth.
116810         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
116812 2006-06-28  Bruno Haible  <bruno@clisp.org>
116814         * lib/mkdtemp.c [MINGW]: Include <io.h>.
116815         (mkdir): Define using _mkdir.
116817 2006-06-28  Bruno Haible  <bruno@clisp.org>
116819         * lib/getaddrinfo.h: Fix POSIX URL.
116820         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
116821         _WIN32.
116822         (use_win32_p): Make static.
116823         (getaddrinfo): Reject service name if it is empty or does not consist
116824         solely of decimal digits, or if its value is > 65535.
116825         (getnameinfo): Remove useless casts.
116827 2006-06-27  Simon Josefsson  <jas@extundo.com>
116829         * modules/sys_select: New file, suggested by Bruno Haible, Paul
116830         Eggert and Martin Lambers.
116832 2006-06-27  Simon Josefsson  <jas@extundo.com>
116834         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
116835         Eggert and Martin Lambers.
116837 2006-06-27  Bruno Haible  <bruno@clisp.org>
116839         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
116840         result to 0, not to empty.
116841         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
116843 2006-06-27  Bruno Haible  <bruno@clisp.org>
116845         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
116847 2006-06-26  Simon Josefsson  <jas@extundo.com>
116849         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
116850         present.
116852 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
116854         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
116855         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
116856         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00181.html>.
116858 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
116860         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
116862 2006-06-26  Bruno Haible  <bruno@clisp.org>
116864         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
116866 2006-06-26  Bruno Haible  <bruno@clisp.org>
116868         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
116870 2006-06-26  Bruno Haible  <bruno@clisp.org>
116872         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
116873         SGI C compiler in pre-C99 mode.
116874         Suggested by Mark D. Baushke and Larry Jones.
116876 2006-06-26  Bruno Haible  <bruno@clisp.org>
116878         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
116879         WCHAR_MAX.
116880         Reported by Mark D. Baushke and Larry Jones.
116882 2006-06-26  Bruno Haible  <bruno@clisp.org>
116884         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
116885         in pre-C99 mode.
116886         Suggested by Mark D. Baushke and Larry Jones.
116888 2006-06-23  Simon Josefsson  <jas@extundo.com>
116889             Bruno Haible  <bruno@clisp.org>
116891         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
116892         Emit mostlyclean-local rule.
116893         (func_emit_tests_Makefile_am): Likewise.
116894         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
116896 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
116898         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
116900 2006-06-23  Bruno Haible  <bruno@clisp.org>
116902         * tests/test-stdint.c: Update to match ISO C 99 Technical
116903         Corrigendum 1.
116905 2006-06-23  Bruno Haible  <bruno@clisp.org>
116907         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
116909 2006-06-23  Bruno Haible  <bruno@clisp.org>
116911         * lib/stdint_.h: Treat IRIX like OpenBSD.
116913 2006-06-23  Bruno Haible  <bruno@clisp.org>
116915         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
116916         ISO C 99 Technical Corrigendum 1.
116918 2006-06-22  Simon Josefsson  <jas@extundo.com>
116920         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
116921         MinGW.
116923 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
116925         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
116926         needed.  Some compiler complained about some of them.  Problem reported
116927         by Larry Jones in
116928         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00172.html>.
116930 2006-06-21  Simon Josefsson  <jas@extundo.com>
116932         * tests/test-getaddrinfo.c: New file.
116934         * modules/getaddrinfo-tests: New file.
116936         * MODULES.html.sh: Add inet_pton.
116938         * modules/inet_pton: New file.
116940 2006-06-21  Simon Josefsson  <jas@extundo.com>
116942         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
116943         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
116944         of using the (limited) gnulib implementation on Windows XP.
116946         * m4/inet_pton.m4: New file.
116948 2006-06-21  Simon Josefsson  <jas@extundo.com>
116950         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
116951         variable.
116953         * lib/socket_.h: Don't define WINVER.
116955         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
116956         slightly modified to work in gnulib.
116958 2006-06-21  Simon Josefsson  <jas@extundo.com>
116960         * doc/gnulib.texi (Windows sockets): Add.
116962 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
116964         * lib/read-file.c (fread_file): Start with buffer allocation of
116965         0 bytes rather than 1 byte; this simplifies the code.
116966         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
116967         code to free buffer and save/restore errno.
116968         (internal_read_file): Remove unused local.
116970 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
116972         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
116973         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
116974         Problem reported by Denis Excoffier in
116975         <http://lists.gnu.org/r/bug-tar/2006-06/msg00023.html>.
116977 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
116979         * modules/sys_socket, modules/socklen: Include sys/types since
116980         FreeBSD 4.x's sys/socket.h needs it.
116982 2006-06-19  Simon Josefsson  <jas@extundo.com>
116984         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
116986 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
116988         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
116990 2006-06-19  Bruno Haible  <bruno@clisp.org>
116992         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
116993         and FULL_PATH_INTTYPES_H in angle brackets.
116994         Reported by Mark D. Baushke <mdb@gnu.org>.
116996 2006-06-17  Eric Blake  <ebb9@byu.net>
116998         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
116999         errno.
117001 2006-06-17  Bruno Haible  <bruno@clisp.org>
117003         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
117004         <sys/inttypes.h>.
117006 2006-06-17  Bruno Haible  <bruno@clisp.org>
117008         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
117009         whether errno is declared. Assume <errno.h> declares errno.
117011 2006-06-17  Bruno Haible  <bruno@clisp.org>
117013         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
117015 2006-06-17  Bruno Haible  <bruno@clisp.org>
117017         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
117018         problem on Solaris 2.5.1.
117020 2006-06-16  Eric Blake  <ebb9@byu.net>
117022         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
117023         * lib/unicodeio.c [!defined errno]: Likewise.
117024         * lib/strtol.c [!defined errno]: Likewise.
117025         * lib/strtod.c [!defined errno]: Likewise.
117027 2006-06-15  Eric Blake  <ebb9@byu.net>
117029         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
117031 2006-06-15  Eric Blake  <ebb9@byu.net>
117033         * config/srclist.txt (ssize_t.m4): Lose sync.
117035 2006-06-15  Bruno Haible  <bruno@clisp.org>
117037         * modules/stdint (Files): Include m4/full-header-path.m4,
117038         m4/size_max.m4, m4/wchar_t.m4.
117039         (Makefile.am): Many more substitutions.
117040         * modules/stdint-tests: New file.
117041         * tests/test-stdint.c: New file.
117043 2006-06-15  Bruno Haible  <bruno@clisp.org>
117045         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
117046         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
117047         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
117048         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
117049         gl_CHECK_TYPE_SAME): New macros.
117051 2006-06-15  Bruno Haible  <bruno@clisp.org>
117053         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
117055 2006-06-15  Bruno Haible  <bruno@clisp.org>
117057         * lib/stdint_.h: Rewritten to be fully auto-configured.
117058         Fixes bug on HP-UX/IA64.
117060 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
117062         * lib/getdate.y (__attribute__): Don't define if already defined.
117063         Problem reported by Larry Jones.
117064         * lib/utimens.c (__attribute__): Likewise.
117066 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
117068         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
117069         reported by Andreas Schwab.
117071 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
117072             Bruno Haible  <bruno@clisp.org>
117074         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
117075         check for the declaration of strnlen and a run test that exposes the
117076         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
117077         rpl_strndup.
117079 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
117080             Bruno Haible  <bruno@clisp.org>
117082         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
117084 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
117086         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
117087         compile test, for Tru64 4.0D.
117089 2006-05-28  Karl Berry  <karl@gnu.org>
117091         * config/srclist.txt (printf-args.c): lose sync.
117093 2006-05-26  Martin Lambers  <marlam@marlam.de>
117095         * lib/getpass.c: Updates the test for the native W32 API, and adds
117096         missing includes, thus fixing compilation warnings.
117098 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
117100         * lib/exclude.c (exclude_fnmatch): New function.
117101         (excluded_file_name): Call exclude_fnmatch.
117102         * lib/exclude.h (excluded_file_name): New prototype
117104 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
117106         * lib/tempname.c (small_open, large_open): New macros.
117107         (__open, __open64) [!_LIBC]: Remove.
117108         (__gen_tempname): Use small_open and large_open instead of __open
117109         and __open64.  This fixes a portability bug on HP-UX 11.11i
117110         reported by Simon Wing-Tang in
117111         <http://lists.gnu.org/r/bug-coreutils/2006-05/msg00114.html>.
117113 2006-05-24  Bruno Haible  <bruno@clisp.org>
117115         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
117116         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
117117         Reported by Thorsten Maerz <torte@netztorte.de> via
117118         Aaron Stone <aaron@serendipity.cx>.
117120 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
117122         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
117123         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
117124         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
117125         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
117126         not really conditional on the cache.
117127         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
117129 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
117131         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
117132         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
117133         (my_usleep): Don't mishandle maximum value.
117135 2006-05-19  Jim Meyering  <jim@meyering.net>
117137         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
117139 2006-05-17  Bruno Haible  <bruno@clisp.org>
117141         Cygwin portability.
117142         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
117144 2006-05-17  Bruno Haible  <bruno@clisp.org>
117146         * lib/stdint_.h: Fix recognition of Cygwin.
117148 2006-05-15  Bruno Haible  <bruno@clisp.org>
117150         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
117151         on libtool patch by Ralf Wildenhues.
117153 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
117155         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
117156         test for C99 conformance; (bool) 0.5 is an integer constant
117157         expression, but (bool) -0.5 is not.  Problem reported by Fedor
117158         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
117160 2006-05-11  Simon Josefsson  <jas@extundo.com>
117162         * m4/xvasprintf.m4: Fix obvious typo.
117164 2006-05-11  Jim Meyering  <jim@meyering.net>
117166         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
117167         James Lemley.
117169 2006-05-10  Simon Josefsson  <jas@extundo.com>
117171         * lib/md4.c: Typo fix, update copyright years.
117172         (K1, K2): Don't use L because it turn computations into 64-bit on
117173         64-bit platforms.
117175 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
117177         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
117178         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
117179         unwanted sign propagation, e.g., on hosts with 64-bit int.
117180         There still are some problems with reeelly weird theoretical hosts
117181         (e.g., 33-bit int) but it's not worth worrying about now.
117182         * lib/sha1.c (rol): Likewise.
117183         (K1, K2, K3, K4): Remove unnecessary L suffix.
117185 2006-05-10  Bruno Haible  <bruno@clisp.org>
117187         * lib/des.c: Cast to avoid warnings.
117189 2006-05-09  Bruno Haible  <bruno@clisp.org>
117191         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
117192         (Depends-on): Depend also on xsize, stdarg.
117193         (configure.ac): Add gl_XVASPRINTF.
117195 2006-05-09  Bruno Haible  <bruno@clisp.org>
117197         * m4/xvasprintf.m4: New file.
117199 2006-05-09  Bruno Haible  <bruno@clisp.org>
117201         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
117202         (EOVERFLOW): Define fallback value.
117203         (xstrcat): New function.
117204         (xvasprintf): Recognize the special case of a string concatenation.
117206 2006-05-08  Eric Blake  <ebb9@byu.net>
117208         * gnulib-tool (func_version): Base copyright year on CVS date.
117209         (func_emit_copyright_notice): New function.
117210         (func_emit_lib_Makefile_am): Use it.
117211         (func_emit_tests_Makefile_am): Likewise.
117212         (func_import): Likewise.
117214 2006-05-08  Bruno Haible  <bruno@clisp.org>
117216         * modules/stdarg: New file.
117217         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
117219 2006-05-08  Bruno Haible  <bruno@clisp.org>
117221         * m4/stdarg.m4: New file, from GNU gettext.
117223 2006-05-08  Bruno Haible  <bruno@clisp.org>
117225         * config/srclist.txt (build-aux/config.rpath): different from latest
117226         release.
117228 2006-05-08  Bruno Haible  <bruno@clisp.org>
117230         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
117232 2006-05-05  Jim Meyering  <jim@meyering.net>
117234         * m4/warning.m4: New file, derived from bison's file by the same name.
117236 2006-05-03  Bruno Haible  <bruno@clisp.org>
117238         * lib/stdint_.h: Shorter URL.
117239         * lib/inttypes.h: Likewise.
117241 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
117243         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
117245 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
117247         * lib/verify.h: Document the internals better.  Most of this change
117248         was written by Bruno Haible.
117250 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
117252         * doc/verify.texi: New file, partly based on a proposal by
117253         Bruno Haible.
117255 2006-05-02  Bruno Haible  <bruno@clisp.org>
117257         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
117258         test from here...
117259         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
117261 2006-04-29  Bruno Haible  <bruno@clisp.org>
117263         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
117264         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
117266 2006-04-29  Bruno Haible  <bruno@clisp.org>
117268         * gnulib-tool: Make --update option actually work.
117270 2006-04-29  Bruno Haible  <bruno@clisp.org>
117272         * doc/gcd.texi: New file.
117273         * doc/gnulib.texi: Include it.
117275 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
117277         * lib/getdate.y (get_date): When adding relative date, start with the
117278         initial time, not with the result of the first mktime call.
117280 2006-04-25  Bruno Haible  <bruno@clisp.org>
117282         * gnulib-tool (func_import): Output the include directives in three
117283         blocks, sorted separately.
117284         Reported by Ben Pfaff <blp@cs.stanford.edu>.
117286 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
117288         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
117289         to define main with arguments, for C++.  Reported by Eric Blake.
117290         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
117291         Prefer 'int main ()' to 'int main (void)', for C++.
117292         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
117293         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
117294         for 'main', for C99 and C++.
117296 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
117298         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
117299         Don't assume that exit status -1 is valid.
117300         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
117301         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
117302         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
117303         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
117304         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
117305         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
117306         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
117307         functions can be used without declaring them, or that you can
117308         exit with status -1.
117309         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
117311 2006-04-24  Karl Berry  <karl@gnu.org>
117313         * config/srclist.txt (longdouble.m4): sync lost.
117315 2006-04-24  Eric Blake  <ebb9@byu.net>
117317         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
117319 2006-04-24  Bruno Haible  <bruno@clisp.org>
117321         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
117322         poll() implementation in AIX.
117323         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
117325 2006-04-24  Bruno Haible  <bruno@clisp.org>
117327         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
117328         assigned exactly once.
117330 2006-04-23  Claudio Fontana  <claudio@gnu.org>
117331             Bruno Haible  <bruno@clisp.org>
117333         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
117334         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
117335         for AM_CPPFLAGS.
117337 2006-04-23  Bruno Haible  <bruno@clisp.org>
117339         * modules/copy-file: Depend on unistd.
117340         * modules/execute: Likewise.
117341         * modules/fatal-signal: Likewise.
117342         * modules/findprog: Likewise.
117343         * modules/mkdtemp : Likewise.
117344         * modules/pipe: Likewise.
117345         * modules/wait-process: Likewise.
117347 2006-04-23  Bruno Haible  <bruno@clisp.org>
117349         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
117350         condition was already detected.
117351         Reported by Ben Pfaff <blp@cs.stanford.edu>.
117353 2006-04-23  Bruno Haible  <bruno@clisp.org>
117355         * lib/copy-file.c: Include <unistd.h> unconditionally.
117356         * lib/execute.c: Likewise.
117357         * lib/fatal-signal.c: Likewise.
117358         * lib/findprog.c: Likewise.
117359         * lib/mkdtemp.c: Likewise.
117360         * lib/pipe.h: Likewise.
117361         * lib/pipe.c: Likewise.
117362         * lib/wait-process.h: Likewise.
117364 2006-04-23  Bruno Haible  <bruno@clisp.org>
117366         * gnulib-tool (func_usage): Fix --import description. Document
117367         --update.
117368         (func_import): Create temporary file in a temporary directory, if
117369         --dry-run is specified. Silence errors from 'grep' when there are no
117370         m4 files in $m4dir.
117371         (func_create_testdir): Silence errors from 'grep' when there are no
117372         m4 files in $m4dir.
117373         Reported by Karl Berry <karl@freefriends.org>.
117375 2006-04-20  Bruno Haible  <bruno@clisp.org>
117377         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
117378         one argument, so that the code will be portable to Autoconf 2.60.
117379         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
117380         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
117381         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
117383 2006-04-19  Derek Price  <derek@ximbiot.com>
117384             Eric Blake  <ebb9@byu.net>
117386         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
117387         rather than "/full/path.h".  Update comment to match.  Shorten &
117388         generalize m4_translit call via AS_TR_CPP.
117390 2006-04-19  Derek Price  <derek@ximbiot.com>
117391             Eric Blake  <ebb9@byu.net>
117393         * lib/inttypes.h: Correct grammar in comment.
117395 2006-04-18  Derek Price  <derek@ximbiot.com>
117396             Paul Eggert  <eggert@cs.ucla.edu>
117398         * modules/inttypes: New file.
117399         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
117401 2006-04-18  Derek Price  <derek@ximbiot.com>
117402             Paul Eggert  <eggert@cs.ucla.edu>
117404         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
117405         New files.
117407 2006-04-18  Derek Price  <derek@ximbiot.com>
117408             Paul Eggert  <eggert@cs.ucla.edu>
117410         * lib/inttypes.h: New file.
117411         * lib/strtoimax.c: Assume <inttypes.h>.
117413 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
117415         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
117416         isn't mounted.  Problem reported by Kir Kolyshkin.
117418 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
117420         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
117421         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
117422         Derek R. Price.
117423         * lib/regex.h (RE_DUP_MAX): Update comment to match current
117424         implementation.
117426 2006-04-12  Eric Blake  <ebb9@byu.net>
117428         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
117429         is now done automatically by the corresponding Autoconf macro.
117431 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
117433         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
117434         time_r.h.
117436 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
117438         Merge regex changes from libc, removing some of our
117439         POSIX-conformance changes that were rejected and redoing them in a
117440         less-intrusive way.
117442         * lib/regcomp.c (re_compile_internal, init_dfa):
117443         Length arg is now size_t, not Idx.  All uses changed.
117444         (peek_token): Forward decl now says internal_function.
117445         (__re_error_msgid, __re_error_msgid_idx):
117446         Now static rather than extern with attribute_hidden.
117447         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
117448         For some reason libc prefers K&R style defns for external functions.
117449         (regerror) [!defined _LIBC]: Likewise.
117450         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
117451         (seek_collating_symbol_entry, lookup_collation_sequence_value):
117452         (build_range_exp, build_collating_symbol):
117453         Use K&R-style defn.
117454         (re_compile_fastmap): Use '\0' to memset, not 0.
117455         (utf8_sb_map): Make the calculations more obvious.
117456         (init_dfa, parse_bracket_exp, build_charclass_op):
117457         Call calloc and cast result, as glibc does.
117458         (init_word_char, fetch_token, peek_token, peek_token_bracket):
117459         (build_range_exp, build_collating_symbol):
117460         Now internal functions.
117462         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
117464         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
117465         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
117466         Don't depend on VMS; depend on __VMS instead, for POSIX
117467         namespace cleanness.
117468         (regoff_t): Define to ssize_t, not long int.
117470         Remove the REG_ macros named below.  Instead, make the old names
117471         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
117472         __USE_GNU_REGEX.
117473         (REG_BACKSLASH_ESCAPE_IN_LISTS):
117474         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
117475         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
117476         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
117477         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
117478         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
117479         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
117480         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
117481         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
117482         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
117483         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
117484         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
117485         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
117486         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
117487         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
117488         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
117489         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
117490         (REG_NREGS):
117491         Remove.  All uses replaced by the old RE_* names.
117492         (RE_BACKSLASH_ESCAPE_IN_LISTS):
117493         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
117494         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
117495         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
117496         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
117497         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
117498         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
117499         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
117500         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
117501         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
117502         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
117503         Don't bother having these macros be independent of each others'
117504         values, since they no longer exist in the POSIX name space.
117506         Rename the following member names back to their old names,
117507         unless !__USE_GNU_REGEX.  All uses changed back.
117508         (buffer): Renamed from re_buffer.
117509         (allocated): Renamed from re_allocated.
117510         (used): Renamed from re_used.
117511         (syntax): Renamed from re_syntax.
117512         (fastmap): Renamed from re_fastmap.
117513         (translate): Renamed from re_translate.
117514         (can_be_null): Renamed from re_can_be_null.
117515         (regs_allocated): Renamed from re_regs_allocated.
117516         (fastmap_accurate): Renamed from re_fastmap_accurate.
117517         (no_sub): Renamed from re_no_sub.
117518         (not_bol): Renamed from re_not_bol.
117519         (not_eol): Renamed from re_not_eol.
117520         (newline_anchor): Renamed from re_newline_anchor.
117521         (num_regs): Renamed from rm_num_regs.
117522         (start): Renamed from rm_start.
117523         (end): Renamed from rm_end.
117525         (free_state): Move up a bit.
117527         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
117528         #define to be empty.
117529         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
117530         when that is what is intended.
117531         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
117532         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
117533         (MAX): New macro.
117534         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
117535         All uses changed back to re_malloc, etc.  It's now the caller's
117536         responsibility to check for overflow; all callers changed.
117537         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
117538         (re_x2nrealloc): Remove.
117539         (free_state): Remove decl.
117541         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
117542         (re_set_registers, re_exec):
117543         Use K&R-style defn.
117545         2006-01-31  Roland McGrath  <roland@redhat.com>
117547         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
117548         Reported by Mike Frysinger <vapier@gentoo.org>.
117550         2006-01-15  Andreas Jaeger  <aj@suse.de>
117552         [BZ #1950]
117553         * lib/regex_internal.c (re_string_reconstruct): Adjust for
117554         build_wcs_upper_buffer change.
117555         (build_wcs_upper_buffer): Change return type.
117557         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
117559         * lib/regex_internal.h: Include <stdint.h> if available.
117561         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
117563         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
117565         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
117567         * lib/regcomp.c: Adjust for changed secondary hash function.
117569         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
117571         * lib/regex.h: Pretty printing.
117572         Clean up namespace a bit.
117574         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
117576         * lib/regexec.c (update_cur_sifted_state, check_arrival,
117577         check_arrival_add_next_nodes): Avoid using uninitialized variable.
117579         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
117580                     Ulrich Drepper  <drepper@redhat.com>
117582         [BZ #1302]
117583         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
117584         changed.
117585         (bitset_word_t): Renamed from bitset_word.  All uses changed.
117587         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
117589         [BZ #281]
117590         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
117591         * lib/regcomp.c: Remove unnecessary uses of
117592         unsigned RE_TRANSLATE_TYPE.
117593         * lib/regex_internal.h: Likewise.
117594         * lib/regex_internal.c: Likewise.
117595         * lib/regexec.c: Likewise.
117596         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
117598         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
117600         * lib/regexec.c (find_recover_state): Remove unnecessary
117601         initialization.
117602         (transit_state_bkref): Make DFA a const pointer.
117603         (get_subexp): Likewise.
117604         (check_arrival): Likewise.
117605         (update_cur_sifted_state): Likewise.
117606         (re_search_internal): Likewise.
117607         (prune_impossible_nodes): Likewise.
117608         (acquire_init_state_context): Likewise.
117609         (proceed_next_node): Likewise.
117610         (set_regs): Likewise.
117611         (free_fail_stack_return): Likewise.
117612         (check_arrival_expand_ecl): Mark DFA parameter as const.
117613         (check_arrival_expand_ecl_sub): Likewise.
117614         (check_subexp_limits): Likewise.
117615         (sub_epsilon_src_nodes):  Likewise.
117616         (add_epsilon_src_nodes):  Likewise.
117617         (merge_state_array): Likewise.
117618         (update_regs): Likewise.
117619         (build_trtable): Likewise.
117620         (sift_states_backward): Mark MCTX parameter as const.
117621         (build_sifted_states): Likewise.
117622         (update_cur_sifted_state): Likewise.
117623         (sift_states_mkref): Likewise.
117624         (check_arrival_expand_ecl): Mark eclosure as const.
117625         (check_dst_limits_calc_pos_1): Likewise.
117626         * lib/regex_internal.h (re_match_context_t): Make dfa a const
117627         pointer.
117629         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
117631         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
117632         (transit_state_sb): Likewise.
117633         (transit_state_mb): Likewise.
117634         (sift_states_iter_mb): Likewise.
117635         (check_arrival_add_next_nodes): Likewise.
117636         (check_node_accept_bytes): Change first parameter to pointer-to-const.
117637         [_LIBC] (re_search_2_stub): Use mempcpy.
117639         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
117640         mbrtowc for very simple UTF-8 case.
117642         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
117643         a pointer-to-const.
117644         (re_acquire_state_context): Likewise.
117645         * lib/regex_internal.h: Adjust prototypes.
117647         * lib/regex.c: Prevent using C++ compilers.
117649         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
117650         (re_acquire_state_context): Likewise.
117652 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
117654         * modules/regex (Depends-on): Add ssize_t.
117656 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
117658         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
117659         translation table.
117661 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
117663         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
117665 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
117666             Bruno Haible  <bruno@clisp.org>
117668         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
117669         <sys/types.h> and <inttypes.h>.
117671 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
117673         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
117674         `__error_t_defined', so argp.h will not typedef the former.
117676 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
117678         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
117679         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
117680         glibc names.  Even if glibc is changed to conform to POSIX, the
117681         traditional names will be available anyway, since regex depends on
117682         the extensions module.  Also, fix a longstanding typo in the
117683         implementation of Spencer ERE test #75 from grep 2.3.  Problems
117684         reported by Emanuele Giaquinta.  Also, change sense of cached
117685         variable, so that the message makes sense.
117687 2006-03-24  Simon Josefsson  <jas@extundo.com>
117689         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
117690         including some doc fixes.
117691         (base64_encode_alloc): Fix +1 bug on allocation failures.
117693 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
117695         * lib/base64.c (base64_encode): Do not read past end of array with
117696         unsanitized input on systems with CHAR_BIT > 8.
117698 2006-03-24  Eric Blake  <ebb9@byu.net>
117700         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
117702 2006-03-22  Karl Berry  <karl@gnu.org>
117704         * config/srclist.txt (*setenv.[ch]): get from coreutils.
117705         * config/srclistvars.sh (COREUTILS): new var.
117707 2006-03-17  Jim Meyering  <jim@meyering.net>
117709         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
117710         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
117712 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
117714         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
117715         no longer needs it.  Instead, check that regoff_t is as least
117716         as wide as ptrdiff_t.
117718         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
117719         so that our regex.h stays compatible with the installed regex.
117720         This is helpful for installers who configure --without-included-regex.
117721         Problem reported by Emanuele Giaquinta.
117723 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
117725         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
117726         Typedef to long int, not to off_, as POSIX will likely change
117727         in that direction.
117729 2006-03-15  Eric Blake  <ebb9@byu.net>
117731         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
117733 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
117735         * lib/argp-help.c (validate_uparams): Fix typo
117736         * lib/argp-parse.c (argp_default_options): Consistently begin help
117737         messages with a lowercase letter.
117739 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
117741         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
117742         overrun buffers and shouldn't be used (much as gets shouldn't be
117743         used).
117744         * lib/time_r.c (asctime_r, ctime_r): Likewise.
117746 2006-03-08  Simon Josefsson  <jas@extundo.com>
117748         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
117749         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
117751 2006-03-08  Simon Josefsson  <jas@extundo.com>
117753         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
117754         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
117756 2006-03-08  Simon Josefsson  <jas@extundo.com>
117758         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
117759         signal that configure disabled the device.
117761 2006-03-08  Simon Josefsson  <jas@extundo.com>
117763         * build-aux/maint.mk: Fix refresh-po, to handle no translated
117764         languages.
117766 2006-03-07  Simon Josefsson  <jas@extundo.com>
117768         * modules/getopt (Depends-on): Add unistd.
117770         * modules/unistd: New file.
117772 2006-03-07  Simon Josefsson  <jas@extundo.com>
117774         * modules/gc-random: New file.
117776 2006-03-07  Simon Josefsson  <jas@extundo.com>
117778         * m4/unistd_h.m4: New file.
117780 2006-03-07  Simon Josefsson  <jas@extundo.com>
117782         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
117783         test to be side-effect free by storing the result in the cache
117784         variable gl_cv_lib_readline, and moving the assignment of
117785         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
117786         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
117788 2006-03-07  Simon Josefsson  <jas@extundo.com>
117790         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
117791         error on missing devices (the functions will return an error).
117793         * m4/gc.m4: Move random stuff to gc-random.m4
117795 2006-03-07  Simon Josefsson  <jas@extundo.com>
117797         * lib/unistd_.h: New file.
117799 2006-03-07  Simon Josefsson  <jas@extundo.com>
117801         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
117803 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
117805         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
117806         Problem reported by Juan Manuel Guerrero.
117808 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
117810         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
117811         the unistd module.
117812         * lib/getlogin_r.c: Likewise.
117813         * lib/getlogin_r.h: Likewise.
117814         * lib/glob.c: Likewise.
117815         * lib/pagealign_alloc.c: Likewise.
117816         * lib/unistd_.h: Remove; no longer needed.
117818 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
117820         * MODULES.html.sh (Support for systems lacking POSIX:2001):
117821         Add unistd.
117822         * modules/c-stack (Depends-on): Add unistd.
117823         * modules/getlogin_r: Likewise.
117824         * modules/glob: Likewise.
117825         * modules/pagealign_alloc: Likewise.
117826         * modules/unistd (Files): Remove lib/unistd_.h.
117827         (EXTRA_DIST): Remove.
117828         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
117829         need unistd_.h.
117830         (MOSTLYCLEANFILES): Remove unistd.h-t.
117832 2006-03-03  Simon Josefsson  <jas@extundo.com>
117834         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
117836 2006-03-03  Simon Josefsson  <jas@extundo.com>
117838         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
117839         libidn and bison.
117841 2006-03-03  Simon Josefsson  <jas@extundo.com>
117843         * build-aux/maint.mk: Add indent target.
117845 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
117847         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
117848         our replacement poll.h in any case, to avoid a differing
117849         declaration from a system header.  Seen on AIX.
117851 2006-03-01  Simon Josefsson  <jas@extundo.com>
117853         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
117854         <kasal@ucw.cz>.
117856 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
117858         * modules/gettime (Depends-on): Add extensions module.
117859         * modules/nanosleep (Depends-on): Likewise.
117860         * modules/settime (Depends-on): Likewise.
117862 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
117864         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
117865         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
117866         pedantically.
117867         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
117868         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
117870         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
117871         not "==".  Reported by Ralf Wildenhues.
117873 2006-03-01  Karl Berry  <karl@gnu.org>
117875         * doc/Copyright/request-*: new files, synced from gnuorg.
117877 2006-03-01  Karl Berry  <karl@gnu.org>
117879         * config/srclist.txt (Copyright/*): new entries.
117881 2006-02-28  Simon Josefsson  <jas@extundo.com>
117883         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
117885 2006-02-27  Simon Josefsson  <jas@extundo.com>
117887         * lib/base64.h: Indent #define's.  From Jim Meyering
117888         <jim@meyering.net>.
117890 2006-02-27  Jim Meyering  <jim@meyering.net>
117892         Revert the change of 2006-02-24, so these files can continue
117893         to be sync'd from gettext.
117894         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
117895         of `config.h'.
117897 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
117899         * modules/intprops: New file.
117900         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
117901         Add intprops.
117902         * modules/getloadavg (Files): Remove lib/intprops.h.
117903         (Depends-on): Add intprops.
117904         * modules/human: Likewise.
117905         * modules/inttostr: Likewise.
117906         * modules/openat: Likewise.
117907         * modules/sig2str: Likewise.
117908         * modules/userspec: Likewise.
117909         * modules/utimecmp: Likewise.
117910         * modules/xnanosleep: Likewise.
117911         * modules/xstrtol: Likewise.
117913 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
117915         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
117916         * modules/lock-tests (TESTS): Use $(EXEEXT).
117917         * modules/tls-tests: Likewise.
117918         * modules/argp-tests: Likewise.
117919         (check_PROGRAMS): New var, replacing...
117920         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
117922 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
117924         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
117925         `config.h'.
117927 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
117929         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
117931 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
117933         Sync from coreutils.
117934         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
117935         gl_CHDIR_SAFER.
117937 2006-02-22  Jim Meyering  <jim@meyering.net>
117939         Sync from coreutils.
117940         * m4/chdir-safer.m4: New file.
117942 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
117944         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
117945         AT_FDCWD exceeds INT_MAX.
117946         * lib/openat.h (AT_FDCWD): Likewise.
117948 2006-02-17  Eric Blake  <address@hidden>
117950         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
117952 2006-02-16  Simon Josefsson  <jas@extundo.com>
117954         * modules/getaddrinfo (Depends-on): Add sys_socket.
117956 2006-02-15  Simon Josefsson  <jas@extundo.com>
117958         * build-aux/maint.mk: Add dsyntax-check rule.
117960 2006-02-15  Eric Blake  <ebb9@byu.net>
117962         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
117963         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
117964         'present but cannot compile' warnings on cygwin.
117965         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
117966         use ws2tcpip.h if sys/socket.h works.
117967         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
117968         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
117970 2006-02-14  Simon Josefsson  <jas@extundo.com>
117972         * modules/maintainer-makefile (Files): Rename.
117974         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
117975         and (the local) Makefile.cfg to maint-cfg.mk.
117977         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
117978         to the latter.
117980         * modules/maintainer-makefile: New module.
117982         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
117983         severaly stripped to make it possible to build it up from scratch
117984         with reliable tests.
117986         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
117987         fixes to permit overriding the default actions when configure and
117988         makefile are not available.
117990 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
117992         Sync from coreutils.
117993         * modules/lstat (Depends-on): Don't depend on xalloc.
117994         (License): Change from GPL to LGPL, since this is now simply a
117995         replacement for a libc function.
117997 2006-02-14  Jim Meyering  <jim@meyering.net>
117999         Sync from coreutils.
118001         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
118002         failure on deficient systems, and simplify gnulib lgpl dependencies.
118003         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
118004         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
118006         * lib/xalloc-die.c: Remove unused definition of N_.
118008 2006-02-14  Jim Meyering  <jim@meyering.net>
118010         Sync from coreutils.
118011         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
118012         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
118013         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
118014         double-quote uses of that variable, to accommodate the rare case in
118015         which getmntent is available in none of the libraries checked.  This
118016         happens at least on FreeBSD 5.0.
118018 2006-02-13  Simon Josefsson  <jas@extundo.com>
118020         * gnulib-tool (Usage): Fix --import, from
118021         karl@freefriends.org (Karl Berry).
118023 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
118025         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
118027 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
118029         * lib/argp-namefrob.h: Restore changes accidentally lost during the
118030         "autoupdate" on 2005-12-12.
118032 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
118034         * modules/closeout (Depends-on): Remove atexit.
118036 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
118038         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
118039         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
118041 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
118043         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
118044         __EXTENSIONS__ if this causes compilation to fail.  Problem
118045         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
118046         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
118048 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
118050         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
118051         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
118052         <http://lists.gnu.org/r/bug-gnulib/2006-01/msg00074.html>.
118053         All uses changed.
118055 2006-01-26  Simon Josefsson  <jas@extundo.com>
118057         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
118058         prototype is visible on mingw32.
118060         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
118061         for mingw32.
118063         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
118064         mingw32).
118066 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
118068         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
118069         attempt to open for write; this always fails, at least on POSIX
118070         hosts.  This reinstates the 2006-01-09 change, which was
118071         inadvertently removed.
118073 2006-01-26  Bruno Haible  <bruno@clisp.org>
118075         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
118076         Reported by Paul Eggert.
118078 2006-01-26  Bruno Haible  <bruno@clisp.org>
118079             Paul Eggert  <eggert@cs.ucla.edu>
118081         * lib/stdbool_.h (_Bool)
118082         [(! (defined __cplusplus || defined __BEOS__)
118083           && !defined __GNUC__
118084           && !(defined __HP_cc || defined __xlc__
118085                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
118086                || defined __sgi))]:
118087         #define to signed char in these cases too; this simplifies
118088         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
118089         etc., separately) and makes it more conservative.
118091 2006-01-25  Simon Josefsson  <jas@extundo.com>
118093         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
118094         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
118095         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
118097 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
118099         * lib/argp-namefrob.h: Bugfix. Remove stray #
118101 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
118103         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
118104         so that we test the test.
118105         Check for yet another HP-UX cc bug involving *bool |= bool.
118107 2006-01-25  Karl Berry  <karl@gnu.org>
118109         * config/srclist.txt (vasnprintf.c): sync lost.
118111 2006-01-25  Jim Meyering  <jim@meyering.net>
118113         Sync from the stable (b5) branch of coreutils:
118115         * lib/fts.c (fts_children): Don't let close() clobber errno from
118116         failed fchdir().
118118         * lib/fts.c (fts_stat): When following a symlink-to-directory,
118119         don't necessarily interpret stat-fails+lstat-succeeds as indicating
118120         a dangling symlink.  That can also happen at least for ELOOP.
118121         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
118122         FYI, this bug predates the inclusion of fts.c in coreutils.
118124         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
118125         in their own block, so pre-c99 compilers don't object.
118127         Avoid the double-free (first in fts_read, second in fts_close) that
118128         would occur when an `active' directory is made inaccessible (e.g.,
118129         via chmod a-x) during a traversal.
118130         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
118131         before returning.  Reproduce this failure by
118132         mkdir -p a/b; cd a; chmod a-x . b
118133         Reported by Stavros Passas.
118135 2006-01-25  Jim Meyering  <jim@meyering.net>
118137         * lib/fileblocks.c: Remove more useless parentheses.
118138         * lib/readutmp.h: Likewise.
118140 2006-01-25  Bruno Haible  <bruno@clisp.org>
118142         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
118143         warnings.
118144         Reported by Paul Eggert.
118146 2006-01-25  Bruno Haible  <bruno@clisp.org>
118148         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
118149         rid of a trap command. For Solaris sh.
118150         Reported by Mark D. Baushke <mdb@gnu.org>.
118152 2006-01-24  Simon Josefsson  <jas@extundo.com>
118154         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
118155         Bruno.
118157 2006-01-24  Karl Berry  <karl@gnu.org>
118159         * config/srclist.txt (argp-namefrob.h): sync lost.
118161 2006-01-24  Jim Meyering  <jim@meyering.net>
118163         * modules/openat (Files): Add lib/intprops.h.
118164         From Mark D. Baushke.
118166 2006-01-24  Jim Meyering  <jim@meyering.net>
118168         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
118169         Reported by Mark D. Baushke.
118171 2006-01-24  Jim Meyering  <jim@meyering.net>
118173         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
118175 2006-01-24  Bruno Haible  <bruno@clisp.org>
118177         * modules/strnlen (Maintainer): Change from glibc to all.
118179 2006-01-24  Bruno Haible  <bruno@clisp.org>
118181         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
118182         Patch by Paul Eggert.
118184 2006-01-24  Bruno Haible  <bruno@clisp.org>
118186         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
118187         already has it.
118188         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
118189         2005-11-26.
118191         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
118192         'signed char' to avoid problems with the built-in _Bool type.
118193         Reported by Paul Eggert on 2005-11-26.
118195 2006-01-24  Bruno Haible  <bruno@clisp.org>
118197         * gnulib-tool (func_import): Avoid constructing complicated sed
118198         expressions inside backquote.
118199         Report and solution by Mark D. Baushke <mdb@gnu.org>.
118201 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
118203         These changes imported from libc.
118204         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
118205         test and two separate function calls.
118206         * lib/strndup.c (__strndup): Add libc_hidden_def.
118208 2006-01-23  Simon Josefsson  <jas@extundo.com>
118210         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
118211         Remove the test_*_SOURCES variable: automake infers it by default.
118212         * modules/tls-tests: Likewise.
118214 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
118216         Work around porting bugs reported by Dieter in
118217         <http://lists.gnu.org/r/bug-bison/2006-01/msg00049.html>.
118218         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
118219         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
118220         Include "getopt.h" first, to check interface.
118221         (getenv): Declare only if defined HAVE_DECL_GETENV &&
118222         !HAVE_DECL_GETENV.
118223         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
118224         (__strndup): Revert to K&R-style function dfns, the glibc style.
118225         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
118226         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
118227         Include strnlen.h first, to get prototype properly.
118228         (strnlen): Renamed from __strnlen.
118229         Remove weak alias.
118231 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
118233         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
118235 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
118237         * config/srclist.txt: Adjust to reflect glibc reorganization.
118238         This affects only comments.
118240 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
118242          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
118243          Reported by Bruce Korb <bkorb@gnu.org>.
118245 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
118247         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
118248         to pacify gcc -Wswitch-default.
118250 2006-01-22  Bruno Haible  <bruno@clisp.org>
118252         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
118253         temporary buffer for sprintf, take into account the precision also
118254         for 'd', 'i', 'u', 'o', 'x', 'X'.
118256 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
118258         * modules/argp-tests: New module
118259         * tests/test-argp.c: New file
118260         * tests/test-argp-2.sh: New file
118262 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
118264         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
118265         (__argp_base_name): Removed
118266         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
118267         typo.
118268         (__argp_base_name): Provide macro definition or extern declaration
118269         depending on the configuration
118271 2006-01-20  Simon Josefsson  <jas@extundo.com>
118273         * modules/inet_ntop (Depends-on): Depend on sys_socket.
118275 2006-01-20  Simon Josefsson  <jas@extundo.com>
118277         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
118279 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
118281         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
118282         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
118283         Suggested by Bruno Haible.
118285 2006-01-20  Karl Berry  <karl@gnu.org>
118287         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
118288         until changes propagate, I guess.
118290 2006-01-19  Simon Josefsson  <jas@extundo.com>
118292         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
118294 2006-01-19  Simon Josefsson  <jas@extundo.com>
118296         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
118298 2006-01-19  Simon Josefsson  <jas@extundo.com>
118300         * gnulib-tool: Set check_PROGRAMS.
118302         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
118303         modules/des-tests, modules/gc-arcfour-tests,
118304         modules/gc-arctwo-tests, modules/gc-des-tests,
118305         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
118306         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
118307         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
118308         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
118309         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
118310         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
118311         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
118312         test_*_SOURCES.
118314 2006-01-18  Simon Josefsson  <jas@extundo.com>
118316         * modules/socklen (Depends-on): Depend on sys_socket.
118318 2006-01-18  Simon Josefsson  <jas@extundo.com>
118320         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
118321         modules/des-tests, modules/gc-arcfour-tests,
118322         modules/gc-arctwo-tests, modules/gc-des-tests,
118323         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
118324         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
118325         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
118326         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
118327         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
118328         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
118329         $(EXEEXT) to automake TESTS variable, for mingw32.
118331 2006-01-17  Simon Josefsson  <jas@extundo.com>
118333         * modules/socklen (Include): Need sys/socket.h.
118335 2006-01-17  Bruno Haible  <bruno@clisp.org>
118337         * modules/ssize_t (Include): Add <sys/types.h>.
118339 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
118341         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
118342         it's not portable and it doesn't work with cross-compiles.
118343         Problem reported by Bruno Haible.  Fix missing-$ typo in
118344         'test "gl_cv_ignore_unused_libraries" ...' that prevented
118345         -zignore from being used with Sun's C compiler.
118347 2006-01-12  Simon Josefsson  <jas@extundo.com>
118349         * lib/base64.c: Fix warning, reported by Bruno Haible
118350         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
118352 2006-01-12  Bruno Haible  <bruno@clisp.org>
118354         * modules/ldd: New file.
118355         * build-aux/ldd.sh.in: New file.
118356         * MODULES.html.sh (Support for building libraries and executables): Add
118357         ldd.
118359 2006-01-12  Bruno Haible  <bruno@clisp.org>
118361         * m4/ldd.m4: New file.
118363 2006-01-12  Bruno Haible  <bruno@clisp.org>
118365         * gnulib-tool (func_import, func_create_testdir): Don't go into an
118366         endless loop while replacing $auxdir with build-aux.
118368 2006-01-11  Simon Josefsson  <jas@extundo.com>
118370         * lib/stdint_.h (SIZE_MAX): Add missing (.
118372 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
118374         Sync from coreutils.
118375         * lib/md5.c: Fix commentary typos.
118376         (alignof, UNALIGNED_P): No need for a GCC-specific version.
118377         * lib/md5.h (__attribute__): Remove; unused.
118378         * lib/sha1.c: Fix commentary to match md5 better.
118379         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
118380         so that we don't need to worry about alignment.  All uses changed.
118381         This merges the 2005-10-28 md5 change into sha1.
118383 2006-01-11  Jim Meyering  <jim@meyering.net>
118385         Sync from coreutils.
118386         * lib/md5.c (OP): Fix spacing.
118388 2006-01-11  Bruno Haible  <bruno@clisp.org>
118390         Ensure automatic ordering between gl_LOCK and gl_ARGP.
118391         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
118392         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
118394 2006-01-11  Bruno Haible  <bruno@clisp.org>
118396         Ensure automatic ordering between gl_LOCK and gl_ARGP.
118397         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
118398         the "early" section as well.
118400 2006-01-11  Bruno Haible  <bruno@clisp.org>
118402         Avoid "ar: no archive members specified" error on MacOS X.
118403         * gnulib-tool (func_modules_add_dummy): New function.
118404         (func_import, func_create_testdir): Invoke it.
118406 2006-01-11  Bruno Haible  <bruno@clisp.org>
118408         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
118409         with $auxdir in AC_CONFIG_FILES statements.
118411 2006-01-11  Bruno Haible  <bruno@clisp.org>
118413         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
118414         Initialize also noinst_HEADERS to empty.
118416 2006-01-11  Bruno Haible  <bruno@clisp.org>
118418         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
118419         variables.
118420         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
118421         autoreconf.
118423 2006-01-11  Bruno Haible  <bruno@clisp.org>
118425         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
118426         overridable by the user.
118427         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
118429 2006-01-10  Simon Josefsson  <jas@extundo.com>
118431         * modules/sys_socket: New file.
118433 2006-01-10  Simon Josefsson  <jas@extundo.com>
118435         * m4/sys_socket_h.m4: New file.
118437 2006-01-10  Simon Josefsson  <jas@extundo.com>
118439         * lib/socket_.h: New file.
118441 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
118443         * modules/readutmp (Maintainer): Add myself.
118445 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
118447         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
118448         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
118449         People who are still concerned with buggy memcmp implementations
118450         can invoke gl_FUNC_MEMCMP themselves.
118452 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
118454         * lib/regex_internal.h (BITSET_WORD_BITS):
118455         Work around a bug in 64-bit PGC (before version 6.1-2), where the
118456         preprocessor mishandles large unsigned values as if they were signed.
118457         Problem reported by Claudio Fontana in
118458         <http://lists.gnu.org/r/bug-gnulib/2005-12/msg00061.html>.
118460 2006-01-10  Jim Meyering  <jim@meyering.net>
118462         Avoid the double-free (first in fts_read, second in fts_close) that
118463         would occur when an `active' directory is made inaccessible (e.g.,
118464         via chmod a-x) during a traversal.
118465         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
118466         before returning.  Reproduce this failure by
118467         mkdir -p a/b; cd a; chmod a-x . b
118468         Reported by Stavros Passas.
118470         Sync from coreutils.
118471         * lib/sha1.c: Tweak grammar in a comment.
118473 2006-01-10  Jim Meyering  <jim@meyering.net>
118475         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
118476         Patch by Joerg Sonnenberger.
118478 2006-01-10  Bruno Haible  <bruno@clisp.org>
118480         * modules/readutmp: Depend on module free.
118481         * modules/strtok_r: Depend on module restrict.
118483 2006-01-10  Bruno Haible  <bruno@clisp.org>
118485         * modules/gettext (configure.ac): Add an invocation of
118486         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
118488 2006-01-10  Bruno Haible  <bruno@clisp.org>
118490         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
118491         Reported by Werner Lemberg <wl@gnu.org>.
118493 2006-01-10  Bruno Haible  <bruno@clisp.org>
118495         * lib/localcharset.c: Update from GNU gettext.
118497 2006-01-10  Bruno Haible  <bruno@clisp.org>
118499         * lib/argp.h (__const): Remove macro. Use const instead.
118500         * lib/argp-fmtstream.h (__const): Likewise.
118501         * lib/glob_.h (__const): Remove macro.
118502         * lib/glob-libc.h: Use const instead of __const.
118504 2006-01-10  Bruno Haible  <bruno@clisp.org>
118506         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
118507         variable.
118508         Needed to avoid an automake error regarding the 'gettext' module.
118510 2006-01-09  Simon Josefsson  <jas@extundo.com>
118512         * modules/inet_ntop (Depends-on): Add restrict.
118514 2006-01-09  Simon Josefsson  <jas@extundo.com>
118516         * modules/gc-rijndael-tests (License): Put under LGPL.
118518         * modules/gc-des-tests (License): Likewise.
118520         * modules/gc-arcfour-tests (License): Likewise.
118522         * modules/gc-arctwo-tests (License): Likewise.
118524         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
118526         * modules/gc-hmac-sha1-tests (Files): Likewise.
118528         * modules/gc-hmac-md5-tests (License): Likewise.
118530         * modules/gc-sha1-tests (License): Likewise.
118532         * modules/gc-md5-tests (License): Likewise.
118534         * modules/gc-md4-tests (License): Likewise.
118536         * modules/gc-md2-tests (License): Likewise.
118538         * modules/gc-tests (License): Likewise.
118540         * modules/des-tests (License): Likewise.
118542         * modules/md4-tests (License): Likewise.
118544         * modules/md2-tests (License): Likewise.
118546 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
118548         Sync from coreutils:
118550         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
118551         * modules/lib-ignore: New file.
118552         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
118553         chdir-safer.m4, lchmod.m4.
118554         * modules/openat: Add mkdirat.c, openat-priv.h.
118556 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
118558         Sync from coreutils.
118559         * m4/lib-ignore.m4: New file.
118560         * m4/lchmod.m4: New file.
118562 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
118564         Sync from coreutils.
118565         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
118566         for write access: POSIX says that must fail.
118567         * lib/fts.c (diropen): Likewise.
118568         * lib/save-cwd.c (save_cwd): Likewise.
118569         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
118570         well, for minor improvements on hosts that lack O_DIRECTORY.
118571         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
118572         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
118573         Fall back on chown if open failed with EACCES.
118575         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
118576         Report an error at compile-time if only a 1-second nominal clock
118577         resolution is found.
118579         * lib/lchmod.h: New file.
118580         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
118581         (make_dir_parents): Use lchown rather than chown, and
118582         lchmod rather than chmod.
118584         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
118585         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
118586         "proc" reported by n0dalus.
118588         * lib/mountlist.c: Include <limits.h>.
118589         (dev_from_mount_options)
118590         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
118591         New function.  It no longer assumes "dev=" has the System V meaning
118592         on Linux (since it doesn't).  It also parses "dev=" more carefully.
118593         (read_file_system_list)
118594         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
118595         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
118596         dev= in that case.
118598         * lib/posixtm.h (PDS_PRE_2000): New macro.
118599         * lib/posixtm.c (year): Arg is now syntax_bits rather than
118600         allow_century.  All usages changed.  Reject dates outside the range
118601         1969-1999 if PDS_PRE_2000 is used.
118603 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
118605         Sync from coreutils.
118606         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
118607         (Time of day items): Mention the possibility of leap seconds.
118608         Problem reported by Dr. David Alan Gilbert.
118610 2006-01-09  Jim Meyering  <jim@meyering.net>
118612         Sync from coreutils.
118614         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
118616         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
118618         * lib/modechange.c (mode_compile): Reject an invalid mode string
118619         that starts with an octal digit.  From Andreas Gruenbacher.
118621         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
118622         and dup to open_safer and dup_safer, respectively.
118623         (openat_permissive): Fix typo in comment.
118625         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
118626         "gettext.h"; either no longer needed or are guaranteed by openat.h.
118627         (_): Remove; no longer needed.
118628         (openat): Renamed from rpl_openat; no need for rpl_openat
118629         since openat.h renames openat for us.
118630         Replace most of the body with a call to openat_permissive,
118631         to avoid duplicate code.
118632         Port to (probably hypothetical) environments were mode_t is
118633         wider than int.
118634         (openat_permissive): Require mode arg, so that we can check
118635         types better.  Put it just after flags.  Change cwd failure
118636         indicator from pointer-to-bool to pointer-to-errno-value.
118637         All callers changed.
118638         Invoke openat_save_fail and/or openat_restore_fail if
118639         cwd_errno is null, so that openat can call us.
118640         (openat_permissive, fdopendir, fstatat, unlinkat):
118641         Simplify errno handling to avoid some duplicate code,
118642         as it's OK to set errno on success.
118643         * lib/openat.h: Revamp code so that function macros depend on
118644         __OPENAT_PREFIX only, not also on AT_FDCWD.
118645         (openat_ro): Remove.  Caller changed to use openat_permissive.
118646         (openat_permissive): Now a macro, if not a function.
118647         (openat_restore_fail, openat_save_fail): Now always functions,
118648         since mkdirat needs them even if __OPENAT_PREFIX is defined.
118650         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
118651         and openat.c.
118652         * lib/mkdirat.c: Include openat-priv.h.
118653         Remove definitions of macros defined therein.
118654         * lib/openat.c: Likewise.
118656         * lib/mkdirat.c (mkdirat): New file and function.
118657         * lib/openat.h (mkdirat): Declare.
118659         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
118661         * lib/openat.h (openat_permissive): Declare.
118662         (openat_ro): Define.
118664         * lib/openat.c (EXPECTED_ERRNO): New macro.
118665         (openat_permissive): New function -- used in remove.c rewrite.
118666         (all functions): Set errno just before returning, only if there
118667         was an actual failure.
118668         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
118670         Emulate openat-family functions using Linux's procfs, if possible.
118671         Idea and some code based on Ulrich Drepper's glibc changes.
118673         * lib/openat.c: (BUILD_PROC_NAME): New macro.
118674         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
118675         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
118676         before falling back on save_cwd and restore_cwd.
118677         (fdopendir, fstatat, unlinkat): Likewise.
118679         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
118680         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
118682         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
118683         as second argument to va_arg.  Otherwise, some versions of gcc
118684         warn that `if this code is reached, the program will abort'.
118686 2006-01-09  Jim Meyering  <jim@meyering.net>
118688         Sync from coreutils.
118689         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
118690         Require openat-priv.h.
118692 2006-01-09  Bruno Haible  <bruno@clisp.org>
118694         * modules/strnlen (Include): Use strnlen.h.
118696 2006-01-09  Bruno Haible  <bruno@clisp.org>
118698         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
118700 2006-01-09  Bruno Haible  <bruno@clisp.org>
118702         * lib/sysexit_.h (EX_OK): New macro.
118703         Suggested by Martin Lambers <marlam@marlam.de>.
118705 2006-01-09  Bruno Haible  <bruno@clisp.org>
118707         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
118708         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
118710 2006-01-09  Bruno Haible  <bruno@clisp.org>
118712         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
118713         numbers.
118715 2006-01-09  Bruno Haible  <bruno@clisp.org>
118717         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
118718         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
118719         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
118720         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
118722 2006-01-09  Bruno Haible  <bruno@clisp.org>
118724         * build-aux/javacomp.sh.in: New file, moved from lib/.
118725         * modules/javacomp-script (Files): Update.
118726         (configure.ac): Add AC_CONFIG_FILES invocation.
118727         (EXTRA_DIST): Remove variable.
118729         * build-aux/javaexec.sh.in: New file, moved from lib/.
118730         * modules/javaexec (Files): Update.
118731         (configure.ac): Add AC_CONFIG_FILES invocation.
118732         (EXTRA_DIST): Remove javaexec.sh.in.
118734         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
118735         * modules/csharpcomp-script (Files): Update.
118736         (configure.ac): Add AC_CONFIG_FILES invocation.
118737         (EXTRA_DIST): Remove variable.
118739         * build-aux/csharpexec.sh.in: New file, moved from lib/.
118740         * modules/csharpexec (Files): Update.
118741         (configure.ac): Add AC_CONFIG_FILES invocation.
118742         (EXTRA_DIST): Remove csharpexec.sh.in.
118744 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
118746         Sync from coreutils.
118748         Add POSIX ACL support
118749         * lib/acl.h (copy_acl, set_acl): Add declarations.
118750         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
118751         systems other than Linux.
118752         (chmod_or_fchmod): New function: use fchmod when possible,
118753         and chmod otherwise.
118754         (file_has_acl): Add a POSIX ACL implementation, with a
118755         Linux-specific subcase.
118756         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
118757         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
118758         acls are unsupported.
118759         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
118760         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
118761         are unsupported.
118763 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
118765         Sync from coreutils.
118766         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
118768 2006-01-07  Bruno Haible  <bruno@clisp.org>
118770         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
118771         gl_EARLY.
118773 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
118775         * lib/strftime.c (tzname): Don't declare if it is already #defined.
118776         Problem reported for Mingw by Mark Junker.
118778 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
118780         * README: Gnulib normally doesn't generate a tarball.
118782 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
118784         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
118785         long int, not int, for nanosecond counts, so that people who are
118786         used to POSIX struct timespec won't be surprised.  Reported by Jim
118787         Meyering.
118789 2005-12-28  Bruno Haible  <bruno@clisp.org>
118791         * build-aux/config.rpath: Update from GNU gettext.
118793 2005-12-16  Jim Meyering  <jim@meyering.net>
118795         * modules/fprintftime: New module.
118796         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
118798 2005-12-16  Jim Meyering  <jim@meyering.net>
118800         * m4/fprintftime.m4: New file.
118802 2005-12-16  Jim Meyering  <jim@meyering.net>
118804         * lib/fprintftime.c, lib/fprintftime.h: New files.
118806 2005-12-15  Simon Josefsson  <jas@extundo.com>
118808         * modules/socklen (configure.ac): Fix M4 macro name, to align with
118809         new m4/socklen.m4.
118811 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
118813         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
118814         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
118816 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
118818         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
118819         * lib/argp-help.c (fill_in_uparams): Check if the constructed
118820         struct uparams is valid. Fall back to the default values if it is
118821         not.
118823 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
118825         * modules/argp (Files): Add argp-pin.c
118826         (Depends-on): dirname
118827         (lib_SOURCES): Add argp-pin.c
118829 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
118831         * m4/argp.m4:  Check if program_invocation_name and
118832         program_invocation_short_name are declared and define appropriate
118833         macros if they are not.
118835 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
118837         * lib/argp-help.c (__argp_base_name): New function
118838         (__argp_short_program_name): Rewrite using __argp_base_name
118839         * lib/argp-namefrob.h: Define program_invocation_name and
118840         program_invocation_short_name if requested
118841         (__argp_base_name): Add prototype
118842         * lib/argp-parse.c (argp_def): Use gettext wrappers
118843         (argp_default_parser): Use __argp_base_name
118844         * lib/argp-pin.c: New file. Defines program_invocation_name and
118845         program_invocation_short_name on systems that lack them.
118847 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
118849         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
118850         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
118851         porting problem reported by Georg Schwarz in
118852         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
118854 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
118856         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
118857         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
118858         porting problem reported by Georg Schwarz in
118859         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
118861 2005-12-05  Bruno Haible  <bruno@clisp.org>
118863         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
118864         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
118865         Reported by Mark Junker <mjscod@gmx.de>.
118867 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
118869         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
118870         Use implementation from Albert Chin, with some
118871         comments/corrections by Stepan Kasal and myself.
118873 2005-12-02  Bruno Haible  <bruno@clisp.org>
118875         * gnulib-tool (func_import): Accept GPLed build tool modules when
118876         --lgpl is given.
118877         * modules/csharpcomp-script: New file.
118878         * modules/csharpcomp: Depend on it.
118879         * modules/javacomp-script: New file.
118880         * modules/javacomp: Depend on it.
118881         Suggested by Simon Josefsson.
118883 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
118885         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
118886         statement, to work around an HP-UX 10.20 compiler bug reported by
118887         Peter O'Gorman.
118889 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
118891         * modules/savedir (Depends-on): Add openat.
118893 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
118895         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
118896         (uintmax_t) [defined uintmax_t]: Do not declare.
118897         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
118898         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
118899         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
118900         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
118901         sake of portability to weird hosts that C allows (though we don't
118902         know of any practical examples).
118904         * lib/savedir.h (fdsavedir): New decl.
118905         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
118906         contains most of the former guts of savedir.
118907         (savedir): Use savedirstream.
118908         Include "openat.h".
118910 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
118912         * modules/obstack (Files): Add m4/ulonglong.m4.
118913         Problem reported by Davide Angelocola.
118915 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
118917         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
118918         coreutils no longer futzes with rounding modes.
118920 2005-11-14  Jim Meyering  <jim@meyering.net>
118922         * lib/mkstemp-safer.c: Include <config.h>, required for possible
118923         replacement of mkstemp.
118925 2005-11-10  Simon Josefsson  <jas@extundo.com>
118927         * lib/readline.c: Remove EOL.
118929 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
118931         * modules/gethrxtime (Depends-on): Add gettime.
118933 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
118935         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
118936         or gettimeofday; no longer needed.
118938 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
118940         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
118941         time business.
118942         (gethrxtime) [! (HAVE_NANOUPTIME
118943         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
118944         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
118945         our own approximation.
118947 2005-11-08  Eric Blake  <ebb9@byu.net>
118949         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
118951 2005-11-08  Eric Blake  <ebb9@byu.net>
118953         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
118955 2005-11-04  Bruno Haible  <bruno@clisp.org>
118957         * gnulib-tool: Implement --update mode.
118959 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
118961         Fix porting problem reported by Theodoros V. Kalamatianos.
118962         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
118963         Don't assume that futimes failing means we must fail.
118965 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
118967         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
118968         variables to suggest the intended function of the PATH_MAX check.
118970 2005-10-30  Kean Johnston  <jkj@sco.com>
118972         Trivial changes to support SCO systems.
118973         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
118974         as PATH_MAX.
118975         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
118976         where __ptr is null when no I/O is pending.
118978 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
118980         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
118981         leave errno alone.  Problem reported by Dmitry V. Levin.
118983 2005-10-28  Simon Josefsson  <jas@extundo.com>
118985         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
118986         Test more.
118988         * tests/test-gc-md2.c, tests/test-md2.c: New files.
118990         * modules/md2, modules/md2-tests: New files.
118992 2005-10-28  Simon Josefsson  <jas@extundo.com>
118994         * m4/inet_ntop.m4: More tests.
118996         * m4/gc-md2.m4, md2.m4: New file.
118998 2005-10-28  Simon Josefsson  <jas@extundo.com>
119000         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
119001         "restrict" keywords, as per POSIX.  Protect the function
119002         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
119003         Don't use K&R prototypes.  Check the sprintf return values.
119004         Re-define EAFNOSUPPORT if not present.  Indent.
119006         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
119007         suggested by Bruno Haible <bruno@clisp.org>.
119009         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
119011         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
119013         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
119014         libgcrypt).
119016         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
119018         * lib/md2.h, lib/md2.c: New files.
119020 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
119022         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
119023         errno alone.  Problem reported by Frederic Jolliton.
119025 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
119027         * modules/verify (License): Change from GPL to LGPL.  This is a
119028         tiny module and there are apparently near-equivalents that are
119029         under the BSD license.
119031 2005-10-24  Simon Josefsson  <jas@extundo.com>
119033         * modules/sha1: Relicense to LGPL.
119035 2005-10-24  Simon Josefsson  <jas@extundo.com>
119037         * lib/md4.h: Shrink buffer size, now that we changed the type.
119039 2005-10-23  Simon Josefsson  <jas@extundo.com>
119041         * gnulib-tool (func_import): Fix --tests-base.
119043 2005-10-22  Simon Josefsson  <jas@extundo.com>
119045         * modules/arcfour (Depends-on): Need stdint.
119047 2005-10-22  Simon Josefsson  <jas@extundo.com>
119049         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
119050         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
119052 2005-10-22  Simon Josefsson  <jas@extundo.com>
119054         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
119055         suggested by Bruno Haible <bruno@clisp.org>.
119057 2005-10-22  Simon Josefsson  <jas@extundo.com>
119059         * lib/crc.h: Include stddef.h, for size_t.
119061 2005-10-22  Simon Josefsson  <jas@extundo.com>
119063         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
119064         arcfour_context struct (simplify test vector testing in GNU
119065         Shishi).
119067 2005-10-21  Simon Josefsson  <jas@extundo.com>
119069         * modules/des, modules/des-tests: New files.
119071         * modules/gc-des, modules/gc-des-tests: New files.
119073         * tests/test-des.c, tests/test-gc-des.c: New file.
119075 2005-10-21  Simon Josefsson  <jas@extundo.com>
119077         * modules/arctwo, modules/arctwo-tests: New files.
119079         * tests/test-arctwo.c: New file.
119081         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
119083         * tests/test-gc-arctwo.c: New file.
119085 2005-10-21  Simon Josefsson  <jas@extundo.com>
119087         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
119088         Bruno Haible <bruno@clisp.org>.
119090         * m4/gc-des.m4: New file.
119092 2005-10-21  Simon Josefsson  <jas@extundo.com>
119094         * m4/arctwo.m4: New file.
119096         * m4/gc-arctwo.m4: New file.
119098 2005-10-21  Simon Josefsson  <jas@extundo.com>
119100         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
119101         block.
119103 2005-10-21  Simon Josefsson  <jas@extundo.com>
119105         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
119106         <bruno@clisp.org>.
119108         * lib/hmac-sha1.c (hmac_sha1): Likewise.
119110         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
119111         Bruno Haible <bruno@clisp.org>.
119113         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
119114         <bruno@clisp.org>.
119116 2005-10-21  Simon Josefsson  <jas@extundo.com>
119118         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
119120 2005-10-21  Simon Josefsson  <jas@extundo.com>
119122         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
119124 2005-10-21  Simon Josefsson  <jas@extundo.com>
119126         * lib/des.h, lib/des.c: New files.
119128         * lib/gc-gnulib.c: Support DES.c
119130 2005-10-21  Simon Josefsson  <jas@extundo.com>
119132         * lib/arctwo.h, lib/arctwo.c: New files.
119134         * lib/gc-gnulib.c: Support ARCTWO.
119136 2005-10-21  Simon Josefsson  <jas@extundo.com>
119138         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
119139         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
119141 2005-10-21  Simon Josefsson  <jas@extundo.com>
119143         * gnulib-tool (func_import, func_create_testdir): Define automake
119144         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
119145         Makefile.am snippet),
119146         suggested by Bruno Haible <bruno@clisp.org>.
119148         * modules/gc (Makefile.am): Use it.
119150 2005-10-21  Bruno Haible  <bruno@clisp.org>
119152         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
119153         patch.
119155 2005-10-19  Simon Josefsson  <jas@extundo.com>
119157         * tests/test-gc-rijndael.c: New file.
119159         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
119161 2005-10-19  Simon Josefsson  <jas@extundo.com>
119163         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
119164         interface too.
119166 2005-10-19  Simon Josefsson  <jas@extundo.com>
119168         * tests/test-gc-arcfour.c: New file.
119170         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
119172 2005-10-19  Simon Josefsson  <jas@extundo.com>
119174         * modules/gc-md4, modules/gc-md4-tests: New file.
119176         * tests/test-gc-md4.c: New file.
119178 2005-10-19  Simon Josefsson  <jas@extundo.com>
119180         * m4/gc-md4.m4: New file.
119182 2005-10-19  Simon Josefsson  <jas@extundo.com>
119184         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
119185         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
119186         <kasal@ucw.cz>.
119188 2005-10-19  Simon Josefsson  <jas@extundo.com>
119190         * m4/gc-arcfour.m4: New file.
119192         * m4/gc-rijndael.m4: New file.
119194 2005-10-19  Simon Josefsson  <jas@extundo.com>
119196         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
119198 2005-10-19  Simon Josefsson  <jas@extundo.com>
119200         * lib/gc-gnulib.c: Support ARCFOUR.
119202 2005-10-19  Simon Josefsson  <jas@extundo.com>
119204         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
119205         support.
119207         * lib/gc.h: Add ECB enum type.
119209         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
119211 2005-10-18  Simon Josefsson  <jas@extundo.com>
119213         * tests/test-md5.c: New file.
119215         * modules/md5-tests: New file.
119217 2005-10-18  Simon Josefsson  <jas@extundo.com>
119219         * tests/test-md4.c: New file.
119221         * modules/md4, modules/md4-tests: New files.
119223 2005-10-18  Simon Josefsson  <jas@extundo.com>
119225         * m4/md4.m4: New file.
119227 2005-10-18  Simon Josefsson  <jas@extundo.com>
119229         * lib/md4.h, lib/md4.c: New files, based on md5.?.
119231 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
119233         * gnulib-tool (func_create_testdir): Omit the second check whether
119234         BUILT_SOURCES in nonempty.
119236 2005-10-17  Simon Josefsson  <jas@extundo.com>
119238         * tests/test-rijndael.c: New file.
119240 2005-10-17  Simon Josefsson  <jas@extundo.com>
119242         * modules/sha1: Depend on stdint instead of md5.
119244         * modules/md5: Depend on stdint, remove uint32_t.
119246 2005-10-17  Simon Josefsson  <jas@extundo.com>
119248         * modules/gc-sha1-tests: New file.
119250         * tests/test-gc-sha1.c: New file.
119252 2005-10-17  Simon Josefsson  <jas@extundo.com>
119254         * m4/md5.m4: Remove call to uint32_t.m4.
119256 2005-10-17  Simon Josefsson  <jas@extundo.com>
119258         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
119260         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
119261         md5.h.
119263         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
119265         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
119267 2005-10-17  Simon Josefsson  <jas@extundo.com>
119269         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
119271 2005-10-17  Simon Josefsson  <jas@extundo.com>
119273         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
119275 2005-10-17  Simon Josefsson  <jas@extundo.com>
119277         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
119279         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
119281 2005-10-17  Bruno Haible  <bruno@clisp.org>
119283         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
119284         that it can also be used in a test.
119286 2005-10-16  Bruno Haible  <bruno@clisp.org>
119288         * gnulib-tool (func_emit_tests_Makefile_am): Also define
119289         TESTS_ENVIRONMENT, so that individual tests can augment it.
119291         * gnulib-tool (func_create_testdir): Use an intermediate target for
119292         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
119293         macros, like $(ALLOCA_H), which cannot be passed through the command
119294         line.
119296 2005-10-15  Simon Josefsson  <jas@extundo.com>
119298         * modules/rijndael-tests: New file.
119300         * modules/rijndael: New file.
119302 2005-10-15  Simon Josefsson  <jas@extundo.com>
119304         * m4/rijndael.m4: New file.
119306 2005-10-15  Simon Josefsson  <jas@extundo.com>
119308         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
119310         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
119312 2005-10-14  Simon Josefsson  <jas@extundo.com>
119314         * tests/test-arcfour.c: New file.
119316         * modules/arcfour, modules/arcfour-tests: New files.
119318 2005-10-14  Simon Josefsson  <jas@extundo.com>
119320         * m4/arcfour.m4: New file.
119322 2005-10-14  Simon Josefsson  <jas@extundo.com>
119324         * lib/arcfour.h, lib/arcfour.c: New files.
119326 2005-10-14  Roland McGrath  <roland@redhat.com>
119328         Import from libc.  [BZ #1331]
119329         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
119330         macro argument.
119331         Reported by Matej Vela <vela@debian.org>.
119333 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
119335         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
119336         include <wchar.h>; no longer needed.
119338 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
119340         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
119342 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
119343         and  Ulrich Drepper  <drepper@redhat.com>
119345         Import from libc.
119346         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
119347         instead of inline stream orientation test and two separate
119348         function calls.  Pay no attention to USE_IN_LIBIO.
119350 2005-10-13  Simon Josefsson  <jas@extundo.com>
119352         * modules/gc-hmac-md5-tests: New file.
119354         * tests/test-gc-hmac-sha1.c: New file.
119356         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
119358         * modules/gc-hmac-md5-tests: New file.
119360         * tests/test-gc-md5.c: New file.
119362         * modules/gc-md5-tests: New file.
119364 2005-10-13  Simon Josefsson  <jas@extundo.com>
119366         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
119367         Move memory allocation outside of loop.
119369 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
119371         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
119372         intermediate directory is in a read-only file system.  Problem
119373         reported by Eric Blake.
119375 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
119377         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
119379 2005-10-12  Simon Josefsson  <jas@extundo.com>
119381         * tests/test-hmac-sha1.c: New file.
119383         * modules/hmac-sha1-tests: New file.
119385         * modules/hmac-sha1: New file.
119387 2005-10-12  Simon Josefsson  <jas@extundo.com>
119389         * modules/gc-sha1: New file.
119391 2005-10-12  Simon Josefsson  <jas@extundo.com>
119393         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
119395         * tests/test-gc-pbkdf2-sha1.c: New file.
119397 2005-10-12  Simon Josefsson  <jas@extundo.com>
119399         * modules/gc-md5, modules/gc-hmac-md5: New files.
119401         * modules/gc (Files): Remove md5, memxor and hmac files.
119403 2005-10-12  Simon Josefsson  <jas@extundo.com>
119405         * m4/gc-pbkdf2-sha1.m4: New file.
119407         * m4/gc-hmac-sha1.m4: New file.
119409         * m4/gc-sha1: New file.
119411         * m4/hmac-sha1.m4: New file.
119413 2005-10-12  Simon Josefsson  <jas@extundo.com>
119415         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
119417         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
119419 2005-10-12  Simon Josefsson  <jas@extundo.com>
119421         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
119422         suggested by Bruno Haible <bruno@clisp.org>.
119424 2005-10-12  Simon Josefsson  <jas@extundo.com>
119426         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
119428 2005-10-12  Simon Josefsson  <jas@extundo.com>
119430         * lib/gc-pbkdf2-sha1.c: New file.
119432         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
119434 2005-10-12  Simon Josefsson  <jas@extundo.com>
119436         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
119438         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
119440 2005-10-12  Simon Josefsson  <jas@extundo.com>
119442         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
119443         GC_USE_HMAC_MD5, respectively.
119445         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
119446         (gc_md5): Fix typo.
119448         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
119450         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
119452         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
119454 2005-10-12  Bruno Haible  <bruno@clisp.org>
119456         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
119457         Reported by Stepan Kasal <kasal@ucw.cz>.
119459 2005-10-11  Simon Josefsson  <jas@extundo.com>
119461         * tests/test-crc.c: New file.
119463         * modules/crc, modules/crc-tests: New files.
119465 2005-10-11  Simon Josefsson  <jas@extundo.com>
119467         * m4/crc.m4: New file.
119469 2005-10-11  Simon Josefsson  <jas@extundo.com>
119471         * lib/gc.h: Add gc_hash and gc_hash_buffer.
119473         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
119475         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
119477 2005-10-11  Simon Josefsson  <jas@extundo.com>
119479         * lib/crc.h, lib/crc.c: New files.
119481         * lib/gc.h (gc_hash_buffer): Add doc.
119483 2005-10-11  Bruno Haible  <bruno@clisp.org>
119485         * modules/c-strcasestr: New file.
119486         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
119488 2005-10-11  Bruno Haible  <bruno@clisp.org>
119490         * modules/c-strcase: New file.
119491         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
119493 2005-10-11  Bruno Haible  <bruno@clisp.org>
119495         * lib/strcasecmp.c: Include limits.h.
119496         (strcasecmp): Avoid integer overflow on exotic platforms.
119497         * lib/strncasecmp.c: Include limits.h.
119498         (strncasecmp): Avoid integer overflow on exotic platforms.
119499         Reported by Paul Eggert.
119501 2005-10-11  Bruno Haible  <bruno@clisp.org>
119503         * lib/c-strcasestr.h: New file, from GNU gettext.
119504         * lib/c-strcasestr.c: New file, from GNU gettext.
119506 2005-10-11  Bruno Haible  <bruno@clisp.org>
119508         * lib/c-strcase.h: New file, from GNU gettext.
119509         * lib/c-strcasecmp.c: New file, from GNU gettext.
119510         * lib/c-strncasecmp.c: New file, from GNU gettext.
119512 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
119514         * modules/mempcpy (License): GPL -> LGPL.
119515         * modules/strchrnul (License): Likewise.
119516         * modules/sysexits (License): Likewise.
119518 2005-10-08  Simon Josefsson  <jas@extundo.com>
119520         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
119522 2005-10-07  Simon Josefsson  <jas@extundo.com>
119524         * m4/memxor.m4: Remove gl_C_RESTRICT call.
119526 2005-10-06  Simon Josefsson  <jas@extundo.com>
119528         * tests/test-hmac-md5.c: New file.
119530         * modules/hmac-md5-tests: New file.
119532         * modules/hmac-md5: New file.
119534 2005-10-06  Simon Josefsson  <jas@extundo.com>
119536         * m4/hmac-md5.m4: New file.
119538         * m4/memxor.m4: Require gl_C_RESTRICT.
119540 2005-10-06  Simon Josefsson  <jas@extundo.com>
119542         * lib/memxor.c (memxor): Avoid casts and warnings.
119544 2005-10-06  Simon Josefsson  <jas@extundo.com>
119546         * lib/hmac-md5.c: New file.
119548         * lib/hmac.h: New file.
119550 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
119552         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
119553         promotes to int, not unsigned int, to catch the AIX 5.3
119554         compiler bug.
119556 2005-10-05  Simon Josefsson  <jas@extundo.com>
119558         * modules/memxor: New file.
119560         * modules/iconv (Files): Move config.rpath to havelib, it is used
119561         there.
119563         * modules/havelib (Files): Add config.rpath.
119565 2005-10-05  Simon Josefsson  <jas@extundo.com>
119567         * m4/memxor.m4: New file.
119569 2005-10-05  Simon Josefsson  <jas@extundo.com>
119571         * lib/memxor.c (memxor): Fix compiler error.
119573         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
119574         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
119576         * lib/memxor.h, lib/memxor.c: New files.
119578         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
119579         we assume all systems have it, suggested by Jim Meyering
119580         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
119581         any systems lack sys/socket.h; mingw32 is known to lack it, but we
119582         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
119583         same reasons.
119585 2005-10-05  Simon Josefsson  <jas@extundo.com>
119587         * config/srclist.txt: Add glibc bug 1423 for md5.h.
119589 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
119591         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
119592         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
119593         needed, since the source code now assumes these .h files.
119595 2005-10-05  Derek Price  <derek@ximbiot.com>
119597         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
119599 2005-10-05  Bruno Haible  <bruno@clisp.org>
119601         * modules/stdint (License): Change to LGPL.
119603 2005-10-04  Simon Josefsson  <jas@extundo.com>
119605         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
119606         D. Baushke" <mdb@gnu.org>.
119608 2005-10-04  Bruno Haible  <bruno@clisp.org>
119610         * lib/verify.h (verify_true): Provide alternative definition for C++.
119612 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
119614         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
119615         (SSIZE_MAX): New macro, if not already defined.
119616         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
119617         than 2 GiB.
119619 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
119621         Sync from coreutils.
119622         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
119623         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
119624         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
119625         ULLONG_MAX doesn't work with 2.7.2.1.
119627 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
119629         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
119630         From Ben Pfaff.
119632         * modules/exclude (Depends-on): Depend on verify.
119633         * modules/strtoimax (Depends-on): Likewise.
119634         * modules/utimecmp (Depends-on): Likewise.
119636 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
119638         * lib/exclude.c: Include verify.h.
119639         (verify): Remove.  All callers changed to use verify.h's version.
119640         * lib/strtoimax.c: Likewise.
119641         * lib/utimecmp.c: Likewis.e
119643         Sync from coreutils.
119644         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
119645         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
119646         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
119647         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
119648         bother returning ENOSYS if settimeofday or stime fails; just let
119649         them return whatever errno they want to return.
119650         * lib/utimens.c: Include unistd.h, for dup2.
119651         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
119652         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
119654 2005-10-02  Jim Meyering  <jim@meyering.net>
119656         Sync from coreutils.
119657         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
119658         from glibc-2.2.5 that fails for read-only files.
119660 2005-10-02  Jim Meyering  <jim@meyering.net>
119662         Sync from coreutils.
119663         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
119664         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
119665         `#if HAVE_CONFIG_H'.
119666         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
119667         Remove AT_FDCWD test.
119668         Do not consume the fd unless successful.
119669         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
119670         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
119671         block, so that we don't even try to compile it if settimeofday is
119672         available.  This works around a compilation failure on OSF1 V5.1,
119673         due to stime requiring a `long int*' while tv_sec is `int'.
119675 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
119677         Sync from coreutils.
119678         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
119679         against `yes', rather than just testing for nonempty.
119681 2005-10-01  Simon Josefsson  <jas@extundo.com>
119683         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
119684         and Darwin.
119686         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
119687         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
119688         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
119689         freeaddrinfo and gai_strerror are declared by the POSIX headers.
119690         Check if struct addrinfo is declared.
119692 2005-10-01  Simon Josefsson  <jas@extundo.com>
119694         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
119695         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
119696         AI_* and EAI_* definitions.  Protect function declarations.
119698 2005-10-01  Jim Meyering  <jim@meyering.net>
119700         Sync from coreutils.
119702         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
119703         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
119704         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
119705         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
119706         in the inet and nsl libraries.  Required on Solaris 5.7.
119708 2005-10-01  Jim Meyering  <jim@meyering.net>
119710         Sync from coreutils.
119711         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
119712         in the inet and nsl libraries.  Required on Solaris 5.7.
119714 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
119716         * lib/getdelim.c (getdelim): Remove unused variables.
119718 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
119720         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
119721         so that the code works even with ancient cpp.  Portability problem
119722         with GCC 2.7.2.1 reported by Thomas M.Ott.
119724 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
119726         * modules/regex (Depends-on): Add strcase.
119728         * modules/gethostname (Licence): Change from GPL to LGPL, since
119729         gethostname.c is a trivial implementation of a standard library
119730         function.
119731         * modules/poll (License): Change from GPL to LGPL, since it's
119732         derived from LGPL code.
119734 2005-09-27  Jim Meyering  <jim@meyering.net>
119736         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
119737         HAVE_CONFIG_H.
119739         * lib/intprops.h (signed_type_or_expr__): Define.
119740         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
119741         for unsigned types.
119743 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
119745         * lib/verify.h (verify_expr): Remove, replacing with:
119746         (verify_true): New macro that returns true instead of void.
119747         (verify_type__): Remove.
119748         (verify): Use verify_true rather than verify_type__.
119750 2005-09-26  Bruno Haible  <bruno@clisp.org>
119752         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
119753         is necessary.
119754         (lib_SOURCES): Remove mbchar.c.
119755         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
119756         (Files): Add m4/mbrtowc.m4.
119757         * modules/mbiter: Likewise.
119758         * modules/mbuiter: Likewise.
119760 2005-09-26  Bruno Haible  <bruno@clisp.org>
119762         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
119763         compile mbchar.c if they are not both present.
119764         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
119765         * m4/mbiter.m4 (gl_MBITER): Likewise.
119766         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
119767         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
119768         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
119770 2005-09-25  Jim Meyering  <jim@meyering.net>
119772         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
119773         also uses socklen_t.
119775 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
119777         * lib/utimens.c (ENOSYS): Define if not already defined.
119778         (futimens): Support having a null PATH if the file descriptor
119779         is nonnegative.
119781         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
119782         Remove.
119783         (__attribute): Define to empty unless GCC 3.1 or later.
119784         This works around a core dump on OpenBSD 3.4, which has GCC
119785         2.95.3, which dumps core when given __attribute__(()).  It also
119786         simplifies other tests, since we really don't want to bother with
119787         worrying about which ancient version of GCC supported what.
119788         Original problem reported by Yoann Vandoorselaere, with part of
119789         the fix suggested by Derek Price.
119791 2005-09-24  Jim Meyering  <jim@meyering.net>
119793         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
119794         so we can once again use a positive bitfield width of 1 -- now we
119795         don't have to explain why we were using a bitfield width of 2.
119797 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
119799         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
119800         and similarly for the other external symbols.  Problem reported
119801         by James Gallager.
119803         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
119804         bug reported by Jim Meyering.
119806         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
119807         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
119808         not needed, since socklen is a prerequisite module.
119810 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
119812         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
119813         Problem reported by Eric Blake.
119814         (getaddrinfo): Initialize se so that it's not garbage.
119815         Redo internal storage allocation so that it doesn't make unportable
119816         assumptions about alignment.
119817         Fix a memory leak.
119819         * lib/utimens.c (futimens): Use futimesat if available.
119820         Prefer it to futimes since it doesn't have the futimes bug.
119822         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
119823         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
119824         Instead, declare a function that returns a pointer to an array,
119825         and use verify_type__ to declare the size of the array.
119826         Problem and germ of a solution reported by Bruno Haible.
119827         (verify_type__): Use 2, not 1, for bitfield size, to avoid
119828         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
119830 2005-09-23  Jim Meyering  <jim@meyering.net>
119832         Sync from coreutils.
119833         Correct build failure (socklen_t not defined) on at least
119834         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
119835         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
119837 2005-09-23  Jim Meyering  <jim@meyering.net>
119839         * modules/getaddrinfo (Depends-on): Add socklen.
119841 2005-09-23  Bruno Haible  <bruno@clisp.org>
119843         * tests/test-verify.c: New file.
119845 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
119847         Sync from coreutils.
119849         * modules/argmatch (Depends-on): Add verify.
119850         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
119851         unistd-safer.
119852         * modules/save-cwd (Depends-on): Likewise.
119854         * modules/openat (Files): Add lib/openat-die.c.
119855         (Depends-on): Remove error, exitfail.
119856         Add dirname.
119858         * modules/verify: New file.
119859         * MODULES.html.sh (Diagnostics <assert.h>): New section,
119860         with "verify" module.
119862 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
119864         Sync from coreutils.
119866         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
119867         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
119868         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
119869         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
119870         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
119871         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
119872         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
119873         Don't bother checking for string.h, stdlib.h, unistd.h.
119874         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
119875         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
119876         module's job.
119877         * m4/jm-macros.m4 (gl_MACROS): Likewise.
119878         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
119880         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
119881         (gl_GETDATE): Use it.
119883         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
119885 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
119887         Sync from coreutils.
119889         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
119890         stat-time.h.
119891         * lib/argmatch.h: Include verify.h
119892         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
119893         (ARGMATCH_ASSERT): Remove; unused.
119894         * lib/canonicalize.c: Assume STDC_HEADERS.
119895         * lib/exclude.c: Include "strcase.h".
119896         * lib/regex_internal.h [!defined _LIBC]: Likewise.
119897         * lib/getusershell.c: Include stdio--.h rather than stdio.h
119898         and stdio-safer.h.
119899         (getusershell): Call fopen, not fopen_safer.
119900         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
119901         Do not include unistd-safer.h.
119902         (save_cwd): Don't call fd_safer; no longer needed
119903         now that we include fcntl--.h.
119905         * lib/getdate.y (relative_time): New type.
119906         (RELATIVE_TIME_0): New constant.
119907         (parser_control): Use relative_time instead of doing it ourselves.
119908         (%union): Add new relative_time rel member.
119909         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
119910         Now typeless.
119911         (relunit, relunit_snumber): Now of type rel.
119912         (zone, rel, relunit, get_date): Adjust to above changes.
119914         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
119915         Do not include unistd-safer.h.
119916         (getloadavg): Don't call fd_safer; no longer needed
119917         now that we include fcntl--.h.
119919         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
119920         (make_dir_parents): Treat ENOSYS like EEXIST.
119922         Improve quality of diagnostics on restore_cwd failure.
119923         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
119924         (make_dir_parents): Last arg is now int * (for errno), not bool *.
119925         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
119926         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
119927         each time through the loop.  Do not diagnose restore_cwd failure;
119928         that is the caller's job (and perhaps the caller does not care).
119930         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
119931         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
119932         If the file already exists but is not a directory, don't bother
119933         to try to make its parents.
119934         Close potential file descriptor leak if we can't chdir("/") (!).
119935         Don't always return true if chdir($PWD) fails; return true only
119936         if the requested action was done successfully (except for the
119937         chdir($PWD)).
119938         Don't log final directory unless we actually made it.
119939         Refactor to avoid duplicate code to fix up permissions.
119940         Don't attempt to fix up parent permissions if chdir($PWD) fails.
119942         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
119943         to make it a bit faster and (I hope) clearer.
119944         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
119945         Fix bug in formats like %2N.
119947         * lib/verify.h: New file.
119949 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
119951         Sync from coreutils.
119952         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
119954 2005-09-22  Jim Meyering  <jim@meyering.net>
119956         Sync from coreutils.
119958         * m4/lstat.m4 (gl_FUNC_LSTAT):
119959         Use AC_LIBSOURCES to require lstat.c and lstat.h.
119960         Remove obsolete comment.
119961         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
119962         * m4/xstrtod.m4: Likewise.
119964         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
119966 2005-09-22  Jim Meyering  <jim@meyering.net>
119968         Sync from coreutils.
119970         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
119972         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
119973         the .tm_year member, since otherwise gcc-4.0 would now warn about
119974         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
119976         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
119977         order to avoid an unsuppressible warning from gcc on 64-bit systems.
119979         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
119980         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
119981         when run in a time zone for which daylight savings time is in effect
119982         for the starting date.
119984         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
119985         stop us from restricting permissions of just-created absolute-named
119986         directories.
119987         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
119988         to restore initial working directory.
119989         * lib/mkdir-p.c (make_dir_parents): New parameter:
119990         different_working_dir, to tell caller if/when we change the working
119991         directory and are unable to return to the initial one.
119992         * lib/mkdir-p.h (make_dir_parents): Update prototype.
119993         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
119994         `return false'.  This fixes a bug introduced on 2004-07-30.
119996         * lib/openat.c (fdopendir): Be sure to close the supplied
119997         file descriptor before returning.  This makes our replacement
119998         implementation a little closer to Solaris's, where fdopendir
119999         ties the file descriptor to the returned DIR* pointer.
120000         * lib/openat.c (unlinkat): New function.
120001         * lib/openat.h (unlinkat): Add prototype.
120002         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
120003         (openat_restore_fail): Rename from openat_restore_die.
120004         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
120006         Provide an alternative to exiting immediately upon save_cwd or
120007         restore_cwd failure.  Now, an application can arrange e.g.,
120008         to perform a longjump in that case.
120009         * lib/openat.c: Include dirname.h.
120010         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
120011         (rpl_openat, fdopendir, fstatat): Call openat_save_die
120012         and openat_restore_die rather than calling error directly.
120013         Don't include "error.h" or "exitfail.h"; they're no longer needed.
120015         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
120016         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
120017         define.
120019         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
120020         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
120021                             int utc, int nanoseconds);
120022         Background:
120023         date should not have to allocate a megabyte of virtual memory to
120024         handle a format argument like +%1048575T.  When implemented with
120025         strftime, it must allocate such a buffer, use strftime to fill it
120026         in, print it, then free it.
120027         With fprintftime, it simply prints everything and exits.
120028         With no need for memory allocation, that's one fewer way to fail.
120029         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
120030         optional field width, not before, so we accept %9:z, not %:9z.
120031         (my_strftime): Be sure to use L_('x') for literals.
120033         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
120034         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
120035         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
120036         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
120037         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
120038         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
120039         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
120040         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
120041         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
120042         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
120043         * lib/xgethostname.c, lib/xreadlink.c:
120044         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
120046         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
120047         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
120048         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
120049         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
120050         and don't include <sys/file.h>).
120052 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
120054         Sync from coreutils.
120056         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
120057         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
120058         [!LDAV_DONE]: Avoid unused variable warning.
120060 2005-09-21  Bruno Haible  <bruno@clisp.org>
120062         * lib/unicodeio.h (unicode_to_mb): New declaration.
120064 2005-09-20  Derek Price  <derek@ximbiot.com>
120066         * lib/getaddrinfo.c: Don't include <netdb.h> included from
120067         getaddrinfo.h.
120069 2005-09-20  Bruno Haible  <bruno@clisp.org>
120071         * gnulib-tool: Remove trailing slashes from the values specified for
120072         --source-base, --m4-base, --tests-base, --aux-dir.
120073         Suggested by Simon Josefsson <jas@extundo.com>.
120075 2005-09-20  Bruno Haible  <bruno@clisp.org>
120077         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
120078         func_modules_to_filelist, func_import, func_create_testdir): Make all
120079         sorting results locale-independent, so that gnulib-cache.m4 doesn't
120080         change when gnulib-tool is invoked in a different locale.
120082 2005-09-19  Simon Josefsson  <jas@extundo.com>
120084         * m4/socklen.m4: Fix typo.
120086 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
120088         Use a consistent style for including <config.h>.
120089         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
120090         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
120091         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
120092         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
120093         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
120094         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
120095         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
120096         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
120097         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
120098         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
120099         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
120100         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
120101         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
120102         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
120103         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
120104         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
120105         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
120106         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
120107         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
120108         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
120109         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
120110         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
120111         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
120112         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
120113         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
120114         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
120115         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
120116         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
120117         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
120118         lib/xstrtoumax.c, lib/yesno.c:
120119         Standardize inclusion of config.h.
120120         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
120121         lib/inttostr.h:  Removed inclusion of config.h from header files.
120122         * lib/inttostr.c:  Adjusted in-tree users.
120123         * lib/timespec.h: Remove superfluous warning to include config.h.
120124         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
120125         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
120126         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
120127         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
120128         config.h with HAVE_CONFIG_H.
120130 2005-09-19  Jim Meyering  <jim@meyering.net>
120132         * modules/pathmax (License): Change to LGPL.
120134 2005-09-19  Derek Price  <derek@ximbiot.com>
120136         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
120138 2005-09-19  Bruno Haible  <bruno@clisp.org>
120140         * gnulib-tool (import): Provide default for --tests-base.
120142 2005-09-19  Bruno Haible  <bruno@clisp.org>
120144         * doc/quote.texi: New file, extracted from gnulib.texi.
120145         * doc/ctime.texi: New file, extracted from gnulib.texi.
120146         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
120147         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
120148         * doc/gnulib.texi: Include them.
120150 2005-09-18  Bruno Haible  <bruno@clisp.org>
120152         Portability fix.
120153         * gnulib-tool (func_readlink): New function.
120154         (func_ln_if_changed): Use it.
120156 2005-09-18  Bruno Haible  <bruno@clisp.org>
120158         * gnulib-tool: Support --with-tests also with --import.
120159         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
120160         (func_import): Use variables $testsbase and $inctests. Emit a
120161         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
120162         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
120163         SUBDIRS += $testsdir.
120164         (func_create_testdir): Update.
120166 2005-09-18  Bruno Haible  <bruno@clisp.org>
120168         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
120169         instead of $dry_run.
120170         (func_cp_if_changed, func_mv_if_changed): Remove functions.
120171         (func_ln_if_changed): Don't handle dry-run here.
120172         (func_import): In dry-run mode, detect more precisely which actions
120173         would be performed, and don't use "...ing" verbs.
120175 2005-09-18  Bruno Haible  <bruno@clisp.org>
120177         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
120178         (func_import): Use join on two temporary files instead of three nested
120179         loops, in order to determine which files are new or old.
120181 2005-09-18  Bruno Haible  <bruno@clisp.org>
120183         * gnulib-tool (func_import): Comment out code that spits out the
120184         new files with --dry-run.
120186 2005-09-18  Bruno Haible  <bruno@clisp.org>
120188         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
120190 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
120192         * lib/stat-time.h: New file.
120193         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
120194         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
120195         in a different way.
120196         (timespec_cmp): New function.
120197         * lib/utimecmp.c: Include stat-time.h.
120198         (SYSCALL_RESOLUTION): Depend on whether various struct stat
120199         members exist, not on the obsolescent ST_MTIM_NSEC.
120200         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
120202 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
120204         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
120206 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
120208         * MODULES.html.sh (File system functions): Add stat-time.
120209         * modules/stat-time: New file.
120210         * modules/timespec (Files): Remove m4/st_mtim.m4; this
120211         is now done in a different way, by the stat-time module.
120212         * modules/utimecmp (Depends-on): Add stat-time.
120214 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
120216         * m4/st_mtim.m4: Remove.  Superseded by...
120217         * m4/stat-time.m4: New file.
120218         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
120219         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
120221 2005-09-15  Derek Price  <derek@ximbiot.com>
120223         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
120225 2005-09-15  Derek Price  <derek@ximbiot.com>
120227         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
120228         * lib/regex_internal.c: Ditto, using this...
120229         (__GNUC_PREREQ): ...new macro.
120230         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
120231         using...
120232         (__GNUC_PREREQ): ...this new macro.
120234         * lib/strstr.h: Include string.h. Define strstr as a macro here.
120236 2005-09-15  Derek Price  <derek@ximbiot.com>
120237             Paul Eggert  <eggert@cs.ucla.edu>
120239         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
120240         changes, consolidating in...
120241         * lib/regex_internal.h: ...this file.
120243 2005-09-13  Jim Meyering  <jim@meyering.net>
120245         * lib/canon-host.c: Filter through gnu indent and reword comments
120246         slightly.
120247         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
120249 2005-09-13  Derek Price  <derek@ximbiot.com>
120251         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
120252         failure.
120253         Reported by Jim Meyering  <jim@meyering.net>.
120255 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
120257         * lib/base64.c: Typo.
120258         (base64_encode): Put b64str in initialized data section.
120260 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
120262         Merge glibc and coreutils changes into gnulib, plus a few
120263         extra fixes.
120264         * lib/md5.c: Use #error rather than a string.
120265         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
120266         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
120267         (__attribute__): Define to empty for non recent-GCC.
120268         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
120269         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
120270         Renamed from their non-__ counterparts, with new macros replacing
120271         them if not _LIBC.  Add __THROW attribute.
120272         (rol): Remove.
120273         (struct md5_ctx): Align buffer if using GCC.
120274         * lib/sha1.h (struct sha1_ctx): Likewise.
120275         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
120276         The old name was backwards.
120277         (NOTSWAP): Remove; not used.
120278         (rol): New macro, moved here from md5.h.
120279         (sha1_process_block): Remove a FIXME that doesn't make sense.
120281 2005-09-12  Derek Price  <derek@ximbiot.com>
120283         Return usable errors from canon-host.
120284         * lib/canon-host.h: New file.
120285         * lib/canon-host.c (canon_host): Wrap...
120286         (canon_host_r): ...this new function, which now relies exclusively on
120287         getaddrinfo.
120288         (ch_strerror): New function.
120289         (last_cherror): New global.
120290         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
120291         interface.
120292         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
120293         void *.
120294         (freeaddrinfo): Free ai->ai_canonname when set.
120296 2005-09-12  Derek Price  <derek@ximbiot.com>
120298         Make canon-host require getaddrinfo.
120299         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
120300         AC_LIBSOURCE canon-host.h.  Call...
120301         (gl_PREREQ_CANON_HOST): ...this new function, which requires
120302         gl_GETADDRINFO.
120303         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
120305 2005-09-12  Derek Price  <derek@ximbiot.com>
120307         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
120308         LGPL.
120309         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
120311 2005-09-12  Derek Price  <derek@ximbiot.com>
120313         * lib/gai_strerror.c: Include config.h when available.  Include
120314         getaddrinfo.h before other headers to test interface.
120315         Reported by Larry Jones <lawrence.jones@ugs.com>.
120317 2005-09-12  Derek Price  <derek@ximbiot.com>
120318             Paul Eggert  <eggert@cs.ucla.edu>
120320         * modules/glob (Files): Add glob-libc.h.
120322 2005-09-12  Derek Price  <derek@ximbiot.com>
120323             Paul Eggert  <eggert@cs.ucla.edu>
120325         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
120326         glob_.h, glob-libc.h.
120327         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
120329 2005-09-12  Derek Price  <derek@ximbiot.com>
120330             Paul Eggert  <eggert@cs.ucla.edu>
120332         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
120333         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
120334         protecting things that should be done only in gnulib contexts.
120335         * lib/glob_.h: New file, containing only the glob things needed for
120336         gnulib.
120337         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
120338         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
120339         (glob, globfree, glob_pattern_p): Now defined simply in terms of
120340         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
120341         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
120342         and to respect the namespace rules better.
120344 2005-09-08  Simon Josefsson  <jas@extundo.com>
120346         * modules/socklen: New file.
120348 2005-09-08  Simon Josefsson  <jas@extundo.com>
120350         * m4/socklen.m4: New file.
120352 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
120354         * modules/utimens (Files): Add m4/utimbuf.m4, since
120355         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
120356         Reported by Sergey Poznyakoff.
120358 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
120360         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
120361         definitions, since that's the preferred style in glibc.
120362         Fix a minor spacing issue, and update copyright notice to match
120363         glibc's.
120365 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
120367         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
120369 2005-09-06  Simon Josefsson  <jas@extundo.com>
120371         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
120372         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
120374 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
120376         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
120377         warning.
120379 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
120381         * config/srclist.txt: Add glibc bug 1302.
120383 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
120385         Change bitset word type from unsigned int to unsigned long int,
120386         as this has better performance on typical 64-bit hosts.
120387         Port bitset code to hosts with unusual word sizes.
120388         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
120389         (build_collating_symbol):
120390         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
120391         argument is a bitset.  This is merely a style issue, but it makes
120392         it clearer that an entire array is expected.
120393         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
120394         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
120395         Port to the case where bitset_word is not the same as unsigned int.
120396         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
120397         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
120398         Likewise.
120399         * lib/regexec.c (check_dst_limits_calc_pos_1,
120400         check_subexp_matching_top):
120401         (build_trtable, group_nodes_into_DFAstates):
120402         Likewise.
120403         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
120404         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
120405         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
120406         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
120407         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
120408         * lib/regcomp.c (optimize_subexps, lower_subexp):
120409         Work even if bitset_word has holes in its bitwise representation.
120410         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
120411         * lib/regexec.c (check_dst_limits_calc_pos_1,
120412         check_subexp_matching_top):
120413         Likewise.
120414         * lib/regex_internal.c (re_string_reconstruct):
120415         Don't assume UCHAR_MAX == 255.
120416         * lib/regex_internal.h (bitset_set_all): Likewise.
120417         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
120418         All uses changed.
120419         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
120420         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
120421         All uses changed.
120422         (BITSET_WORD_MAX): New macro.
120423         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
120424         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
120425         (bitset_empty, bitset_copy):
120426         Prefer sizeof (bitset) to multiplying it out ourselves.
120427         (bitset_not_merge): Remove; unused.
120428         (bitset_contain): Return bool, not unsigned int with one bit on.
120429         All callers changed.
120430         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
120431         alignment than re_node_set; do this by defining a new internal
120432         type struct dests_alloc and using it to allocate memory.
120434 2005-09-05  Bruno Haible  <bruno@clisp.org>
120436         * gnulib-tool (func_import): Fix comparison in handling of symbolic
120437         links.
120439 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
120441         * modules/size_max (Makefile.am): Add size_max.h
120443 2005-09-04  Derek Price  <derek@ximbiot.com>
120445         * gnulib-tool (func_import): Fix reversed $symbolic logic.
120447 2005-09-03  Simon Josefsson  <jas@extundo.com>
120449         * gnulib-tool: Fix typo.
120451 2005-09-03  Simon Josefsson  <jas@extundo.com>
120453         * config/srclist.txt: Add glibc bug 1293.
120455 2005-09-03  Derek Price  <derek@ximbiot.com>
120457         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
120458         From Larry Jones <lawrence.jones@ugs.com>.
120460 2005-09-02  Simon Josefsson  <jas@extundo.com>
120462         * modules/socklen: New file.
120464 2005-09-02  Simon Josefsson  <jas@extundo.com>
120466         * modules/havelib: New module.
120468         * modules/gettext, modules/iconv, modules/lock, modules/readline:
120469         Use havelib.
120471 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
120473         Check for arithmetic overflow when calculating sizes, to prevent
120474         some buffer-overflow issues.  These patches are conservative, in the
120475         sense that when I couldn't determine whether an overflow was possible,
120476         I inserted a run-time check.
120477         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
120478         macros.
120479         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
120480         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
120481         (re_xnrealloc, re_x2nrealloc): New inline functions.
120482         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
120483         parse_bracket_exp):
120484         (build_equiv_class, build_charclass): Check for arithmetic overflow
120485         in size expression calculations.
120486         * lib/regex_internal.c (re_string_realloc_buffers):
120487         (build_wcs_upper_buffer, re_node_set_add_intersect):
120488         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
120489         (re_dfa_add_node, register_state): Likewise.
120490         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
120491         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
120492         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
120493         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
120495 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
120497         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
120498         m4/ulonglong.m4.  Problem reported by Martin Lambers.
120500 2005-09-02  Bruno Haible  <bruno@clisp.org>
120502         Support for lib vs. lib64 distinction on biarch platforms.
120503         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
120504         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
120505         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
120507 2005-09-02  Bruno Haible  <bruno@clisp.org>
120509         * gnulib-tool (import): In the other first-use case, provide defaults
120510         as well.
120512 2005-09-02  Bruno Haible  <bruno@clisp.org>
120514         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
120515         patches not yet found in the latest gettext release.
120517 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
120519         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
120520         to avoid a collision with bits/local_lim.h in glibc.
120521         All uses changed.  Problem reported by Dmitry V. Levin in
120522         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
120524         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
120525         bugs in int versus size_t comparisons.
120526         (re_string_context_at): Fix bug where the code assumed that
120527         Idx is signed.
120529         Use bool where appropriate.
120530         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
120531         All callers changed.
120532         (calc_eclosure_iter): Likewise, for ROOT arg.
120533         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
120534         (build_charclass_op): Likewise, for NON_MATCH arg.
120535         * lib/regex_internal.c (re_string_allocate, re_string_construct):
120536         (re_string_construct_common): Likewise, for ICASE arg.
120537         * lib/regexec.c (re_search_2_stub, re_search_stub):
120538         Likewise, for RET_LEN arg.
120539         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
120540         (set_regs): Likewise, for FL_BACKTRACK arg.
120541         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
120542         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
120543         (calc_eclosure_iter, parse_bracket_exp):
120544         Use bool for internal variables that are booleans.
120545         * lib/regexec.c (re_search_internal, check_matching,
120546         proceed_next_node):
120547         (set_regs, build_sifted_states, sift_states_bkref):
120548         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
120549         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
120550         (find_collation_sequence_value):
120551         Likewise.
120552         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
120553         (re_node_set_compare):
120554         Return bool, not int. All callers changed.
120555         * lib/regexec.c (check_halt_node_context, check_dst_limits):
120556         (build_trtable, check_node_accept): Likewise.
120557         * lib/regex_internal.h: Include stdbool.h.
120559         Fix bugs uncovered when converting to bool.
120560         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
120561         failure instead of charging ahead blindly.
120562         * lib/regex_internal.c (register_state): Likewise.
120563         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
120564         for freeing internal storage.
120565         (group_nodes_into_DFA_states): Use unsigned int, not int, for
120566         bitset pieces used as boolean, to avoid undefined behavior
120567         on hosts that do int overflow checking.
120569 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
120571         * config/srclist.txt: Add glibc bugs 1285-1287.
120573 2005-09-01  Jim Meyering  <jim@meyering.net>
120575         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
120576         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
120577         Require gl_STAT_MACROS, too.
120579 2005-09-01  Bruno Haible  <bruno@clisp.org>
120581         * gnulib-tool (import): In the first-use case, provide defaults.
120583 2005-09-01  Bruno Haible  <bruno@clisp.org>
120585         * gnulib-tool (func_import): Remove the .tmp files.
120587 2005-09-01  Bruno Haible  <bruno@clisp.org>
120589         * gnulib-tool (func_import): Fix handling of symbolic links.
120591 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
120593         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
120594         old glibc regex code mishandles strings longer than 2**31 bytes.
120595         This patch fixes this when the regex code is used in gnulib
120596         (i.e., outside glibc).
120598         This patch should not affect the use of the regex code inside
120599         glibc.  No doubt this problem also needs to be handled for glibc
120600         as well, but the result will be an incompatible change to the
120601         glibc ABI, and the old ABI will have to be supported too.  That
120602         can be the subject for another patch.
120604         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
120605         governing whether the rest of this patch is active.  By default,
120606         the macro is disabled and the patch has no effect.
120607         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
120608         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
120609         (struct re_pattern_buffer, re_search, re_search_2, re_match):
120610         (re_match_2, re_set_registers): Use the new types.
120611         * lib/regex_internal.h (Idx, re_hashval_t): New types.
120612         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
120613         New macros.
120614         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
120615         (re_string_context_at, bin_tree_t, re_dfastate_t):
120616         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
120617         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
120618         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
120619         (re_string_char_size_at, re_string_wchar_at):
120620         (re_string_elem_size_at):
120621         Use the new types and macros to port to 64-bit hosts.
120622         Use unsigned types for internal values, so that the code
120623         mostly works even for arrays larger than SSIZE_MAX.
120624         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
120625         (search_duplicated_node, calc_eclosure_iter, fetch_number):
120626         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
120627         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
120628         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
120629         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
120630         (calc_inveclosure, parse_dup_op, build_range_exp):
120631         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
120632         (fetch_number, create_token_tree, mark_opt_subexp):
120633         Likewise.
120634         * lib/regex_internal.c (re_string_construct_common,
120635         create_ci_newstate):
120636         (create_cd_newstate, re_string_allocate, re_string_construct):
120637         (re_string_realloc_buffers, build_wcs_upper_buffer):
120638         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
120639         (re_string_reconstruct, re_string_peek_byte_case):
120640         (re_string_fetch_byte_case, re_string_context_at):
120641         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
120642         (re_node_set_init_copy, re_node_set_add_intersect):
120643         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
120644         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
120645         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
120646         (re_acquire_state, re_acquire_state_context, register_state):
120647         Likewise.
120648         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
120649         search_cur_bkref_entry):
120650         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
120651         (re_search_internal, re_search_2_stub, re_search_stub)
120652         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
120653         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
120654         (update_cur_sifted_state, check_dst_limits):
120655         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
120656         (check_subexp_limits, sift_states_bkref, merge_state_array):
120657         (check_subexp_matching_top, get_subexp, get_subexp_sub):
120658         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
120659         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
120660         (expand_bkref_cache, check_node_accept_bytes):
120661         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
120662         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
120663         (acquire_init_state_context, check_halt_node_context):
120664         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
120665         (sift_states_backward, clean_state_log_if_needed):
120666         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
120667         (find_recover_state, transit_state_sb, transit_state_mb):
120668         (transit_state_bkref, build_trtable, match_ctx_clean):
120669         Likewise.
120670         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
120671         to work around an assumption that REG_MISSING is negative.
120673         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
120674         (seek_collating_symbol_entry) [defined _LIBC]:
120675         (lookup_collation_sequence_value) [defined _LIBC]:
120676         (build_range_exp, build_collating_symbol) [defined _LIBC]:
120677         Use prototypes rather than old-style function definitions.
120678         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
120679         (transit_state_sb) [0]:
120680         (find_collation_sequence_value) [defined _LIBC]: Likewise.
120682         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
120683         rm_eo.
120685         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
120686         (optimize_subexps, lower_subexp):
120687         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
120688         since the signed shift might overflow.  Use 1u<<31 instead.
120689         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
120690         Likewise.
120691         * lib/regexec.c (check_dst_limits_calc_pos_1,
120692         check_subexp_matching_top): Likewise.
120694         * lib/regcomp.c (optimize_subexps, lower_subexp):
120695         Use CHAR_BIT rather than 8, for clarity.
120696         * lib/regexec.c (check_dst_limits_calc_pos_1):
120697         (check_subexp_matching_top): Likewise.
120698         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
120699         have to worry about portability issues when shifting it left.
120700         Remove no-longer-needed test for table_size > 0.
120701         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
120702         in a word, as the resulting behavior is undefined.
120703         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
120704         in one case, a <= should have been an <, and in another case the
120705         whole test was missing.
120706         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
120707         the standard name CHAR_BIT.
120708         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
120709         this is not true on one's complement and signed-magnitude hosts.
120711         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
120712         next_last_offset.
120713         (struct re_dfa_t): Remove unused member states_alloc.
120714         * lib/regcomp.c (init_dfa): Don't initialize unused members.
120716 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
120718         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
120719         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
120720         and large-file glibc and in 32-bit large-file Solaris.
120722 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
120724         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
120725         lengths fit in regoff_t; this isn't true if regoff_t is the same
120726         width as size_t.
120727         * lib/regex.c (re_search_internal): 5th arg is LAST_START
120728         (= START + RANGE) instead of RANGE.  This avoids overflow
120729         problems when regoff_t is the same width as size_t.
120730         All callers changed.
120731         (re_search_2_stub): Check for overflow when adding the
120732         sizes of the two strings.
120733         (re_search_stub): Check for overflow when adding START
120734         to RANGE; if it occurs, substitute the extreme value.
120736 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
120738         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
120740 2005-08-31  Jim Meyering  <jim@meyering.net>
120742         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
120743         a pointer-to-const.
120744         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
120745         (register_state): Likewise.
120746         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
120747         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
120748         (group_nodes_into_DFAstates): Likewise.
120750 2005-08-31  Jim Meyering  <jim@meyering.net>
120752         * check-module: Add a FIXME comment.
120754 2005-08-31  Eric Blake  <ebb9@byu.net>
120756         * modules/unistd-safer (Files): Add unistd--.h.
120757         * modules/stdio-safer (Files): Add stdio--.h.
120759 2005-08-31  Derek Price  <derek@ximbiot.com>
120761         * lib/getdelim.c (getdelim): Return EOF on EOF.
120762         Reported by Larry Jones <lawrence.jones@ugs.com>.
120764 2005-08-31  Bruno Haible  <bruno@clisp.org>
120766         Avoid unnecessary diffs in the generated lib/Makefile.am.
120767         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
120768         the generated files.
120769         (func_import): Don't set cmd.
120771 2005-08-31  Bruno Haible  <bruno@clisp.org>
120773         * lib/strstr.c: Include <stddef.h>, for NULL.
120774         * lib/strcasestr.c: Likewise.
120775         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
120777 2005-08-31  Bruno Haible  <bruno@clisp.org>
120779         * gnulib-tool: New option --macro-prefix.
120780         (func_import): Use macro_prefix.
120781         (import): Handle option --macro-prefix.
120783 2005-08-31  Bruno Haible  <bruno@clisp.org>
120785         * gnulib-tool (import): Rename most ac_* variables to cached_*.
120786         Also use new variables cached_lgpl, cached_libtool.
120788 2005-08-31  Bruno Haible  <bruno@clisp.org>
120790         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
120791         always instantiating them.
120793 2005-08-31  Bruno Haible  <bruno@clisp.org>
120795         * gnulib-tool (func_import): Read the previous cached settings
120796         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
120797         earlier added by gnulib but are now dropped. Warn when a gnulib file
120798         overwrites a non-gnulib file.
120800 2005-08-31  Bruno Haible  <bruno@clisp.org>
120802         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
120803         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
120804         projects that don't keep autogenerated files in CVS. Put into
120805         actioncmd only the specified modules, not the transitive closure.
120807 2005-08-31  Bruno Haible  <bruno@clisp.org>
120809         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
120810         Create directories that shall be filled.
120811         (import): Don't look for gl_* macros in configure.ac. Recurse across
120812         all directories containing a gnulib-cache.m4 files, if meaningful.
120814 2005-08-31  Bruno Haible  <bruno@clisp.org>
120816         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
120817         (import): Set seen_libtool when we see gl_LIBTOOL.
120819 2005-08-31  Bruno Haible  <bruno@clisp.org>
120821         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
120822         declaration macro definitions from generated gnulib.m4.
120824 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
120826         * lib/iconvme.h: Add prototype for iconv_alloc.
120828 2005-08-29  Simon Josefsson  <jas@extundo.com>
120830         * lib/iconvme.c: Fix errno.
120832 2005-08-29  Bruno Haible  <bruno@clisp.org>
120834         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
120835         that it works when the directory contains spaces.
120837 2005-08-29  Bruno Haible  <bruno@clisp.org>
120839         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
120841 2005-08-29  Bruno Haible  <bruno@clisp.org>
120843         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
120844         Emit more advice.
120846 2005-08-29  Bruno Haible  <bruno@clisp.org>
120847         and Stepan Kasal  <kasal@ucw.cz>
120849         * check-module: If more parameters are given, check each of them
120850         separately; add more exceptions, as noted by Jim Meyering.
120851         (check_module): New procedure.
120852         (%exempt_header): Now contains all exceptions.
120854 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
120856         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
120858 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
120860         * lib/iconvme.c: Split iconv_string into iconv_alloc.
120862 2005-08-28  Bruno Haible  <bruno@clisp.org>
120864         * m4/gnulib-tool.m4: New file.
120866 2005-08-27  Jim Meyering  <jim@meyering.net>
120868         * modules/unistd-safer (Files): Add pipe-safer.c.
120869         * modules/fcntl-safer (Files): Add creat-safer.c.
120871 2005-08-27  Jim Meyering  <jim@meyering.net>
120873         * m4/stdlib-safer.m4: New file.  From coreutils.
120874         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
120875         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
120876         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
120877         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
120878         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
120880 2005-08-27  Jim Meyering  <jim@meyering.net>
120882         * lib/fopen-safer.c: Merge minor changes from coreutils.
120883         * lib/dup-safer.c: Likewise.
120884         * lib/fd-safer.c: Likewise.
120886         Merge from coreutils.
120887         * lib/stdio--.h: New file.
120888         * lib/stdlib--.h: New file.
120889         * lib/mkstemp-safer.c: New file.
120891         GNU tar needs these.
120892         * lib/pipe-safer.c: New file.
120893         * lib/creat-safer.c: New file.
120894         * lib/fcntl--.h (creat): Define to creat_safer.
120895         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
120896         * lib/unistd--.h (pipe): Define to pipe_safer.
120897         * lib/unistd-safer.h: Declare pipe_safer.
120899 2005-08-26  Simon Josefsson  <jas@extundo.com>
120901         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
120902         Haible <bruno@clisp.org>.
120904 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
120906         * lib/regex_internal.h: Remove all references to
120907         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
120908         or better.
120909         (bitset_not, bitset_merge, bitset_not_merge):
120910         (bitset_mask, re_string_allocate, re_string_construct):
120911         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
120912         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
120913         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
120914         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
120915         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
120916         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
120917         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
120918         (re_acquire_state_context):
120919         Remove unnecessary forward decls.
120920         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
120921         Put __attribute at function definition,
120922         now that the function decl has been removed.
120923         * lib/regex_internal.c (re_string_peek_byte_case):
120924         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
120925         Likewise.
120927 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
120929         * m4/regex.m4: Add AC_PREREQ(2.50).
120930         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
120932 2005-08-25  Simon Josefsson  <jas@extundo.com>
120934         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
120935         __fsetlocking.
120937 2005-08-25  Simon Josefsson  <jas@extundo.com>
120939         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
120940         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
120941         GLIBC specific code.
120943 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
120945         Make regex safe for g++.  This fixes one real bug (an "err"
120946         that should have been "*err").  g++ problem reported by
120947         Sam Steingold.
120948         * lib/regex_internal.h (re_calloc): New macro, consistent with
120949         re_malloc etc.  All callers of calloc changed to use re_calloc.
120950         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
120951         not int.  All callers changed.
120952         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
120953         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
120954         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
120955         (find_recover_state): Change "err" to "*err"; this fixes what
120956         appears to be a real bug.
120957         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
120958         versus int.
120960 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
120962         * modules/regex (Depends-on): Add malloc, since the code
120963         assumes that !malloc(0) means failure.
120965 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
120967         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
120969         alloca modernization/simplification for regex.
120970         * lib/regex.c: Remove portability cruft for alloca.  This no longer
120971         needs to be at the start of the file, and can be moved into
120972         regex_internal.h and simplified.
120973         * lib/regex_internal.h: Include <alloca.h>.
120974         (__libc_use_alloca) [!defined _LIBC]: New macro.
120975         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
120976         now works outside glibc.
120978 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
120980         * config/srclist.txt: Add glibc bugs 1241, 1245.
120982 2005-08-25  Jim Meyering  <jim@meyering.net>
120984         * lib/open-safer.c: Include <config.h>.
120985         Otherwise, we'd lose LARGEFILE support in any file using
120986         e.g. "fcntl--.h"
120988 2005-08-25  Bruno Haible  <bruno@clisp.org>
120990         * m4/minmax.m4: Require autoconf 2.52.
120991         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
120992         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
120993         alternatives of translit over the alphabet.
120994         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
120996 2005-08-24  Simon Josefsson  <jas@extundo.com>
120998         * tests/test-getpass.c: New file.
121000 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
121002         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
121003         for GNU regex features.
121005 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
121007         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
121008         * lib/regex.h (regerror): Likewise.
121010         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
121011         requires this.  (The code never needed it.)
121013         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
121014         All uses of recently-renamed identifiers changed to use the new,
121015         POSIX-compliant names.  The code will build and run just fine
121016         without these changes, but it's better to eat our own dog food
121017         and use the standard-conforming names.
121019         * lib/regex.h: Fix a multitude of POSIX name space violations.
121020         These changes have an effect only for programs that define
121021         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
121022         do not change anything for programs compiled in the normal way.
121023         Also, there is no effect on the ABI.
121025         (_REGEX_SOURCE): New macro.
121026         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
121027         defined and _GNU_SOURCE is not; this fixes a name space violation.
121029         Rename the following macros to obey POSIX requirements.
121030         The old names are still visible as macros if _REGEX_SOURCE is defined.
121031         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
121032         RE_BACKSLASH_ESCAPE_IN_LISTS.
121033         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
121034         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
121035         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
121036         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
121037         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
121038         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
121039         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
121040         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
121041         (REG_INTERVALS): renamed from RE_INTERVALS.
121042         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
121043         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
121044         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
121045         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
121046         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
121047         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
121048         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
121049         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
121050         RE_UNMATCHED_RIGHT_PAREN_ORD.
121051         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
121052         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
121053         (REG_DEBUG): renamed from RE_DEBUG.
121054         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
121055         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
121056         unusual, since we can't clash with the POSIX REG_ICASE.
121057         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
121058         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
121059         (REG_NO_SUB): renamed from RE_NO_SUB.
121060         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
121061         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
121062         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
121063         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
121064         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
121065         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
121066         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
121067         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
121068         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
121069         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
121070         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
121071         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
121072         RE_SYNTAX_POSIX_MINIMAL_BASIC.
121073         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
121074         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
121075         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
121076         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
121077         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
121078         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
121079         (REG_FIXED): Renamed from REGS_FIXED.
121080         (REG_NREGS): Renamed from RE_NREGS.
121082         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
121083         of other REG_* macros, since POSIX says the user is allowed to
121084         #undef these macros selectively.
121086         (reg_errcode_t): Update comment stating what other tables need
121087         to be consistent.
121089         Rename the following enum values to obey POSIX requirements.
121090         The old names are still visible as macros.
121091         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
121092         is not defined, since GNU is supposed to be a superset of POSIX as
121093         much as possible, and since we want reg_errcode_t to be a signed
121094         type for implementation consistency.
121095         (_REG_NOERROR): Renamed from REG_NOERROR.
121096         (_REG_NOMATCH): Renamed from REG_NOMATCH.
121097         (_REG_BADPAT): Renamed from REG_BADPAT.
121098         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
121099         (_REG_ECTYPE): Renamed from REG_ECTYPE.
121100         (_REG_EESCAPE): Renamed from REG_EESCAPE.
121101         (_REG_ESUBREG): Renamed from REG_ESUBREG.
121102         (_REG_EBRACK): Renamed from REG_EBRACK.
121103         (_REG_EPAREN): Renamed from REG_EPAREN.
121104         (_REG_EBRACE): Renamed from REG_EBRACE.
121105         (_REG_BADBR): Renamed from REG_BADBR.
121106         (_REG_ERANGE): Renamed from REG_ERANGE.
121107         (_REG_ESPACE): Renamed from REG_ESPACE.
121108         (_REG_BADRPT): Renamed from REG_BADRPT.
121109         (_REG_EEND): Renamed from REG_EEND.
121110         (_REG_ESIZE): Renamed from REG_ESIZE.
121111         (_REG_ERPAREN): Renamed from REG_ERPAREN.
121112         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
121113         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
121114         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
121115         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
121117         (_REG_RE_NAME, _REG_RM_NAME): New macros.
121118         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
121119         changed.  But support the old name if the new one is not defined
121120         and if _REGEX_SOURCE.
121122         Change the following member names in struct re_pattern_buffer.
121123         The old names are still supported if !_REGEX_SOURCE.
121124         The new names are always supported, regardless of _REGEX_SOURCE.
121125         (re_buffer): Renamed from buffer.
121126         (re_allocated): Renamed from allocated.
121127         (re_used): Renamed from used.
121128         (re_syntax): Renamed from syntax.
121129         (re_fastmap): Renamed from fastmap.
121130         (re_translate): Renamed from translate.
121131         (re_can_be_null): Renamed from can_be_null.
121132         (re_regs_allocated): Renamed from regs_allocated.
121133         (re_fastmap_accurate): Renamed from fastmap_accurate.
121134         (re_no_sub): Renamed from no_sub.
121135         (re_not_bol): Renamed from not_bol.
121136         (re_not_eol): Renamed from not_eol.
121137         (re_newline_anchor): Renamed from newline_anchor.
121139         Change the following member names in struct re_registers.
121140         The old names are still supported if !_REGEX_SOURCE.
121141         The new names are always supported, regardless of _REGEX_SOURCE.
121142         (rm_num_regs): Renamed from num_regs.
121143         (rm_start): Renamed from start.
121144         (rm_end): Renamed from end.
121146         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
121147         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
121148         Prepend __ to parameter names.
121150         Undo yesterday's changes.
121152 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
121154         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
121155         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
121156         lib/regex.c.
121158 2005-08-24  Jim Meyering  <jim@meyering.net>
121160         Sync from coreutils.
121161         * m4/fcntl-safer.m4: New file.
121163         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
121164         and object files for this module.
121166 2005-08-24  Jim Meyering  <jim@meyering.net>
121168         Sync from coreutils.
121169         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
121171 2005-08-24  Jim Meyering  <jim@meyering.net>
121173         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
121174         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
121176 2005-08-24  Jim Meyering  <jim@meyering.net>
121178         * modules/fcntl-safer: New module.
121179         * modules/fts (Depends-on): Add fcntl-safer.
121180         * MODULES.html.sh (File descriptor based Input/Output):
121181         Add fcntl-safer.
121183 2005-08-24  Bruno Haible  <bruno@clisp.org>
121185         Support for unit test modules.
121186         * modules/README: Mention tests modules.
121187         * modules/TEMPLATE-TESTS: New file.
121188         * gnulib-tool: New options --extract-tests-module, --with-tests and
121189         --tests-base (unused for the moment).
121190         (testsbase, inctests): New variables.
121191         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
121192         (func_verify_module): Exclude TEMPLATE-TESTS.
121193         (func_verify_nontests_module, func_verify_tests_module): New functions.
121194         (func_get_dependencies): Add implicit dependency for tests modules.
121195         (func_get_tests_module): New function.
121196         (func_modules_transitive_closure): When --with-tests was specified,
121197         include the unit tests as well, unless explicitly avoided.
121198         (func_emit_lib_Makefile_am): Ignore the tests modules here.
121199         (func_emit_tests_Makefile_am): New function.
121200         (func_create_testdir): When --with-tests was specified, emit a
121201         tests/ directory.
121202         * MODULES.html.sh (Future developments): Update.
121204 2005-08-24  Bruno Haible  <bruno@clisp.org>
121206         * modules/tls-tests: New file.
121207         * tests/test-tls.c: New file, from GNU gettext.
121209 2005-08-24  Bruno Haible  <bruno@clisp.org>
121211         * modules/lock-tests: New file.
121212         * tests/test-lock.c: New file, from GNU gettext.
121214 2005-08-24  Bruno Haible  <bruno@clisp.org>
121216         * lib/lock.h: Add multiple inclusion guard.
121217         * lib/tls.h: Add multiple inclusion guard.
121219 2005-08-24  Bruno Haible  <bruno@clisp.org>
121221         * gnulib-tool: Add support for the --aux-dir option to
121222         --create-testdir, --create-megatestdir, --test, --megatest.
121223         (func_create_testdir, func_create_megatestdir): Optionally emit a
121224         AC_CONFIG_AUX_DIR directive.
121225         (create-testdir, create-megatestdir, test, megatest): Provide a
121226         default value for $auxdir.
121228 2005-08-24  Bruno Haible  <bruno@clisp.org>
121230         * gnulib-tool (import): Use compound statement instead of subshell
121231         where possible.
121233 2005-08-24  Bruno Haible  <bruno@clisp.org>
121235         * gnulib-tool (import): Change --aux-dir default to "build-aux".
121237 2005-08-24  Bruno Haible  <bruno@clisp.org>
121239         * gnulib-tool (func_version): Update.
121241 2005-08-24  Bruno Haible  <bruno@clisp.org>
121243         * gnulib-tool (func_import, func_create_testdir,
121244         func_create_megatestdir): Quote all autoconf macro arguments.
121246 2005-08-24  Bruno Haible  <bruno@clisp.org>
121248         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
121249         option --force, because --force causes the aclocal.m4 of each
121250         subdirectory to be newer than the corresponding config.h.in.
121252 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
121254         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
121255         All contents moved to gl_REGEX.
121256         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
121257         assume that it does.
121259 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
121261         * lib/regex.h (REG_NOSYS)
121262         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
121263         Define, since POSIX requires it as of 2001.
121264         (_REG_ENOSYS)
121265         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
121266         New private symbol, used to keep the enum signed in all cases.
121267         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
121268         Youngman in
121269         <http://lists.gnu.org/r/bug-gnulib/2005-07/msg00132.html>.
121271         * lib/regex_internal.c (re_string_skip_chars, register_state):
121272         (calc_state_hash):
121273         Remove forward decls; no longer needed now that we use prototypes.
121274         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
121275         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
121276         (clean_state_log_if_needed): Likewise.
121278 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
121280         * config/srclist.txt: Add glibc bugs 1231-1233.
121282 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
121284         Fix problems reported by Sam Steingold in
121285         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00007.html>.
121286         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
121287         assumed that reg_errcode_t is a signed type, which is not
121288         necessarily true if _XOPEN_SOURCE is not defined.
121289         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
121290         since some compilers warn about it otherwise.
121292 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
121294         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
121295         (init_word_char, create_initial_state, duplicate_node_closure):
121296         (fetch_token, peek_token_bracket, build_range_exp):
121297         (build_collating_symbol): Remove forward decls; no longer needed
121298         now that we use prototypes.
121300         * lib/regcomp.c:
121301         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
121302         (re_compile_fastmap_iter, regcomp, regerror, regfree):
121303         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
121304         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
121305         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
121306         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
121307         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
121308         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
121309         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
121310         (build_range_exp, build_collating_symbol, parse_bracket_exp):
121311         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
121312         (build_charclass, build_charclass_op, fetch_number, create_tree):
121313         (create_token_tree, mark_opt_subexp, duplicate_tree):
121314         Use prototypes rather than old-style definitions.
121316         * lib/regex_internal.c:
121317         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
121318         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
121319         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
121320         (re_string_reconstruct, re_string_peek_byte_case):
121321         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
121322         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
121323         (re_node_set_init_copy, re_node_set_add_intersect):
121324         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
121325         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
121326         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
121327         (re_acquire_state, re_acquire_state_context, register_state):
121328         (create_ci_newstate, create_cd_newstate, free_state):
121329         Likewise.
121330         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
121331         re_search_2):
121332         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
121333         (re_search_internal, prune_impossible_nodes):
121334         (acquire_init_state_context, check_matching, static):
121335         (check_halt_node_context, check_halt_state_context, proceed_next_node):
121336         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
121337         (update_regs, sift_states_backward, build_sifted_states):
121338         (clean_state_log_if_needed, merge_state_array):
121339         (update_cur_sifted_state, add_epsilon_src_nodes):
121340         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
121341         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
121342         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
121343         (find_recover_state, check_subexp_matching_top, transit_state_mb):
121344         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
121345         (check_arrival, check_arrival_add_next_nodes):
121346         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
121347         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
121348         (check_node_accept_bytes, check_node_accept, extend_buffers):
121349         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
121350         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
121351         (sift_ctx_init):
121352         Likewise.
121354         * lib/regex_internal.h:
121355         (re_string_allocate, re_string_construct, re_string_reconstruct):
121356         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
121357         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
121358         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
121359         (re_string_context_at, re_string_peek_byte_case):
121360         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
121361         is defined, since we now use prototypes always.
121363         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
121364         C89 or better.  All uses removed.
121366 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
121368         * config/srclist.txt: Add glibc bugs 1220-1227.
121370 2005-08-20  Jim Meyering  <jim@meyering.net>
121372         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
121373         of unused local, dfa.
121375 2005-08-20  Bruno Haible  <bruno@clisp.org>
121377         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
121379 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
121381         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
121382         (re_node_set_insert_last, re_dfa_add_node):
121383         Rename local variables to avoid GCC shadowing warnings.
121385 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
121387         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
121388         [defined lint]: Suppress bogus uninitialized-variable warnings.
121390         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
121391         and let the caller return REG_ESPACE if out of space.  This
121392         removes an uninitialied-variable warning with GCC 4.0.1, and also
121393         avoids taking the address of a local variable.  All callers
121394         changed.
121396 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
121398         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
121399         $LIBCSRC/posix/regexec.c.
121400         Add glibc bug 1217 for regcomp.c.
121402 2005-08-19  Jim Meyering  <jim@meyering.net>
121404         * lib/regexec.c (proceed_next_node): Redo local variables to
121405         avoid GCC shadowing warnings.
121407 2005-08-18  Bruno Haible  <bruno@clisp.org>
121409         * lib/strstr.c (strstr): Fix return value in multibyte case.
121410         * lib/strcasestr.c (strcasestr): Likewise.
121412 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
121414         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
121416 2005-08-17  Jim Meyering  <jim@meyering.net>
121418         Make the %s format (seconds since the epoch) work for a negative
121419         number and when used with a zero-padded field width, e.g. %015s.
121421         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
121422         label so that it precedes the code to set `digits'.  Otherwise,
121423         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
121424         print `00-22'.  Now, it prints `-0022', as it should.
121426 2005-08-17  Bruno Haible  <bruno@clisp.org>
121428         * modules/strstr (Files): Add m4/mbrtowc.m4.
121429         (Depends-on): Add mbuiter.
121431 2005-08-17  Bruno Haible  <bruno@clisp.org>
121433         * modules/strcasestr: New file.
121434         * MODULES.html.sh (String handling, based on ANSI C 89): Add
121435         strcasestr.
121437 2005-08-17  Bruno Haible  <bruno@clisp.org>
121439         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
121441 2005-08-17  Bruno Haible  <bruno@clisp.org>
121443         * modules/mbuiter: New file.
121444         * MODULES.html.sh (Extended multibyte and wide character utilities):
121445         Add mbuiter.
121447 2005-08-17  Bruno Haible  <bruno@clisp.org>
121449         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
121450         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
121452 2005-08-17  Bruno Haible  <bruno@clisp.org>
121454         * m4/strcasestr.m4: New file.
121456 2005-08-17  Bruno Haible  <bruno@clisp.org>
121458         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
121459         * lib/strstr.c: Completely rewritten, with multibyte locale support.
121461 2005-08-17  Bruno Haible  <bruno@clisp.org>
121463         * lib/strcasestr.h: New file.
121464         * lib/strcasestr.c: New file.
121466 2005-08-17  Bruno Haible  <bruno@clisp.org>
121468         * lib/strcasecmp.c: Use mbuiter.h.
121470 2005-08-17  Bruno Haible  <bruno@clisp.org>
121472         * lib/mbuiter.h: New file.
121474 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
121476         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
121477         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
121478         and gl_GETOPT are both invoked via different paths (as happens
121479         with GNU tar CVS because it uses both argp and getopt), the former
121480         wins.
121482 2005-08-16  Bruno Haible  <bruno@clisp.org>
121484         * modules/tls: New file.
121485         * MODULES.html.sh (Multithreading): Add tls.
121487 2005-08-16  Bruno Haible  <bruno@clisp.org>
121489         * modules/strnlen1: New file.
121490         * MODULES.html.sh (String handling): Add strnlen1.
121492 2005-08-16  Bruno Haible  <bruno@clisp.org>
121494         * modules/strcase (Files): Add m4/mbrtowc.m4.
121495         (Depends-on): Add strnlen1, mbchar.
121497 2005-08-16  Bruno Haible  <bruno@clisp.org>
121499         * modules/mbiter: New file.
121500         * MODULES.html.sh (Extended multibyte and wide character utilities):
121501         Add mbiter.
121503 2005-08-16  Bruno Haible  <bruno@clisp.org>
121505         * modules/mbfile: New file.
121506         * MODULES.html.sh (Extended multibyte and wide character utilities):
121507         Add mbfile.
121509 2005-08-16  Bruno Haible  <bruno@clisp.org>
121511         * modules/mbchar: New file.
121512         * MODULES.html.sh (Extended multibyte and wide character utilities):
121513         New section.
121515 2005-08-16  Bruno Haible  <bruno@clisp.org>
121517         * m4/tls.m4: New file, from GNU gettext.
121519 2005-08-16  Bruno Haible  <bruno@clisp.org>
121521         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
121522         always.
121523         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
121525 2005-08-16  Bruno Haible  <bruno@clisp.org>
121527         * m4/mbiter.m4: New file.
121529 2005-08-16  Bruno Haible  <bruno@clisp.org>
121531         * m4/mbfile.m4: New file.
121533 2005-08-16  Bruno Haible  <bruno@clisp.org>
121535         * m4/mbchar.m4: New file.
121537 2005-08-16  Bruno Haible  <bruno@clisp.org>
121539         * lib/tls.h: New file, from GNU gettext.
121540         * lib/tls.c: New file, from GNU gettext.
121542 2005-08-16  Bruno Haible  <bruno@clisp.org>
121544         * lib/strnlen1.h: New file.
121545         * lib/strnlen1.c: New file.
121547 2005-08-16  Bruno Haible  <bruno@clisp.org>
121549         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
121550         (mbi_init): Update.
121551         (mbi_avail, mbi_advance): Let the iteration end before the terminating
121552         NUL byte, not after it.
121554 2005-08-16  Bruno Haible  <bruno@clisp.org>
121556         * lib/strcase.h (strcasecmp): Add note in comments.
121557         * lib/strncasecmp.c: Use code from strcasecmp.c.
121558         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
121559         (strcasecmp): Work correctly in multibyte locales.
121561 2005-08-16  Bruno Haible  <bruno@clisp.org>
121563         * lib/mbiter.h: New file.
121565 2005-08-16  Bruno Haible  <bruno@clisp.org>
121567         * lib/mbfile.h: New file.
121569 2005-08-16  Bruno Haible  <bruno@clisp.org>
121571         * lib/mbchar.h: New file.
121572         * lib/mbchar.c: New file.
121574 2005-08-16  Bruno Haible  <bruno@clisp.org>
121576         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
121577         the valid ones. Makes the comparison operations transitive:
121578         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
121579         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
121581 2005-08-15  Simon Josefsson  <jas@extundo.com>
121583         * modules/ssize_t (License): Change to 'unlimited'.
121585         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
121587 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
121589         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
121590         Add comments for each pending glibc patch.
121592 2005-08-15  Bruno Haible  <bruno@clisp.org>
121594         * lib/regex.h (__restrict_arr): Don't define to __restrict if
121595         __cplusplus is defined.
121597 2005-08-14  Jim Meyering  <jim@meyering.net>
121599         Sync from coreutils.
121601         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
121602         Use the hash-table-based cycle-detection code not just when
121603         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
121604         Reported by James Youngman in
121605         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00011.html>.
121606         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
121607         FTS_TIGHT_CYCLE_CHECK.
121608         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
121609         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
121610         once again.
121611         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
121612         * lib/fts.c (fd_safer): Remove decl.
121613         Include fcntl--.h rather than unistd-safer.h
121614         (fts_safe_changedir): Don't call fd_safer; no longer needed
121615         now that we include fcntl--.h.
121617 2005-08-12  Simon Josefsson  <jas@extundo.com>
121619         * modules/getndelim2: Use ssize_t module.
121620         * modules/getnline: Likewise.
121621         * modules/safe-read: Likewise.
121622         * modules/xreadlink: Likewise.
121624         * modules/ssize_t: New file.
121626 2005-08-12  Simon Josefsson  <jas@extundo.com>
121628         * m4/readline.m4: Look for termcap, curses or ncurses if required.
121630 2005-08-12  Simon Josefsson  <jas@extundo.com>
121632         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
121633         ssize_t.
121635 2005-08-12  Simon Josefsson  <jas@extundo.com>
121637         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
121638         readline, getdelim and check_version.
121639         (Support for systems lacking ISO C 99: Sizes of integer types):
121640         Add size_max.
121642 2005-08-12  Bruno Haible  <bruno@clisp.org>
121644         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
121646 2005-08-11  Simon Josefsson  <jas@extundo.com>
121648         * modules/readline: New file.
121650         * modules/strnlen (Files): Add strnlen.h.
121652 2005-08-11  Simon Josefsson  <jas@extundo.com>
121654         * m4/readline.m4: New file.
121656 2005-08-11  Simon Josefsson  <jas@extundo.com>
121658         * lib/readline.h, readline.c: New file.
121660 2005-08-11  Simon Josefsson  <jas@extundo.com>
121662         * doc/gnulib.texi (Initial import, Finishing touches): Mention
121663         gl_AVOID.
121665 2005-08-11  Bruno Haible  <bruno@clisp.org>
121667         * lib/strnlen.h (strnlen): Change parameter name to match comment.
121669 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
121671         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
121673 2005-08-10  Simon Josefsson  <jas@extundo.com>
121675         * tests/test-iconvme.c: New file.
121677 2005-08-10  Simon Josefsson  <jas@extundo.com>
121679         * m4/strnlen.m4: New file.
121681         * m4/strndup.m4: Don't check for strnlen declaration, done in
121682         strnlen.m4.
121684 2005-08-10  Simon Josefsson  <jas@extundo.com>
121686         * lib/strndup.c: Use strnlen.h.
121688         * lib/strnlen.h: New file.
121690 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
121692         * README: Typos.
121694 2005-08-02  Simon Josefsson  <jas@extundo.com>
121696         * modules/readline: New file.
121698 2005-08-02  Simon Josefsson  <jas@extundo.com>
121700         * modules/getdelim: New file.
121702         * modules/getline: Rewrite, don't use getndelim2.
121704 2005-08-02  Simon Josefsson  <jas@extundo.com>
121706         * m4/getline.m4: Separate out getdelim stuff into separate module.
121708         * m4/getdelim.m4: New file.
121710 2005-08-02  Simon Josefsson  <jas@extundo.com>
121712         * lib/getline.h, getline.c: Rewrite.
121714         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
121716 2005-07-31  Bruno Haible  <bruno@clisp.org>
121718         * lib/lock.h (gl_lock_initializer): New macro.
121719         (gl_lock_define_initialized): Use it.
121720         (gl_rwlock_initializer): New macro.
121721         (gl_rwlock_define_initialized): Use it.
121722         (gl_recursive_lock_initializer): New macro.
121723         (gl_recursive_lock_define_initialized): Use it.
121725 2005-07-30  Karl Berry  <karl@gnu.org>
121727         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
121728         Report from Ben Pfaff, regarding getopt.
121730 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
121732         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
121733         normal way.
121734         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
121735         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
121736         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
121737         (gl_GETOPT): Use the new macros.  Most of the implementation
121738         is moved to the new macros.  This is for programs like Emacs
121739         that don't want all the functionality of gl_GETOPT.
121741 2005-07-26  Bruno Haible  <bruno@clisp.org>
121743         * m4/lock.m4: Update from GNU gettext.
121745 2005-07-26  Bruno Haible  <bruno@clisp.org>
121747         * lib/lock.h: Update from GNU gettext.
121748         * lib/lock.c: Update from GNU gettext.
121750 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
121752         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
121753         obsolescent AC_TRY_RUN.  Include the default includes files, for
121754         'exit'.
121756 2005-07-24  Bruno Haible  <bruno@clisp.org>
121758         * modules/visibility: New file.
121759         * MODULES.html.sh (Misc): Add visibility.
121761 2005-07-24  Bruno Haible  <bruno@clisp.org>
121763         * m4/visibility.m4: New file.
121765 2005-07-24  Bruno Haible  <bruno@clisp.org>
121767         * doc/visibility.texi: New file.
121769 2005-07-22  Bruno Haible  <bruno@clisp.org>
121771         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
121772         $(ALLOCA_H), redundant through BUILT_SOURCES.
121773         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
121774         redundant through BUILT_SOURCES.
121775         * modules/byteswap (Makefile.am): Remove explicit dependency on
121776         $(BYTESWAP_H), redundant through BUILT_SOURCES.
121777         * modules/fnmatch (Makefile.am): Remove explicit dependency on
121778         $(FNMATCH_H), redundant through BUILT_SOURCES.
121779         * modules/getopt (Makefile.am): Remove explicit dependency on
121780         $(GETOPT_H), redundant through BUILT_SOURCES.
121781         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
121782         redundant through BUILT_SOURCES.
121783         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
121784         redundant through BUILT_SOURCES.
121785         * modules/stdbool (Makefile.am): Remove explicit dependency on
121786         $(STDBOOL_H), redundant through BUILT_SOURCES.
121787         * modules/stdint (Makefile.am): Remove explicit dependency on
121788         $(STDINT_H), redundant through BUILT_SOURCES.
121789         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
121790         Remove explicit dependency on $(SYSEXITS_H).
121791         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
121793 2005-07-18  Simon Josefsson  <jas@extundo.com>
121795         * lib/check-version.c (check_version): Accept identical versions too.
121797 2005-07-18  Bruno Haible  <bruno@clisp.org>
121799         * modules/lock: New file.
121800         * MODULES.html.sh (Multithreading): New section.
121802 2005-07-18  Bruno Haible  <bruno@clisp.org>
121804         * m4/lock.m4: New file, from GNU gettext.
121806 2005-07-18  Bruno Haible  <bruno@clisp.org>
121808         * lib/lock.h: New file, from GNU gettext.
121809         * lib/lock.c: New file, from GNU gettext.
121811 2005-07-18  Bruno Haible  <bruno@clisp.org>
121813         * lib/lock.h (gl_once_t): New type.
121814         (gl_once_define, gl_once): New macros.
121815         * lib/lock.c (fresh_once): New variable.
121816         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
121817         functions.
121819 2005-07-16  Simon Josefsson  <jas@extundo.com>
121821         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
121822         workaround, suggested by Bruno.
121824 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
121826         * modules/xalloc (Depends-on): Add xalloc-die.
121827         * modules/xvasprintf (Depends-on): Add xalloc-die.
121829 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
121831         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
121832         with a minor change.
121834 2005-07-15  Bruno Haible  <bruno@clisp.org>
121836         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
121837         When using lib/poll.c, define poll as rpl_poll.
121839 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
121841         * modules/argp (Depends-on): Remove unlocked-io.
121843 2005-07-14  Derek Price  <derek@ximbiot.com>
121845         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
121846         for glob symlink bug.
121848 2005-07-14  Bruno Haible  <bruno@clisp.org>
121850         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
121851         Instead, test for *_unlocked function declarations directly.
121853 2005-07-11  Simon Josefsson  <jas@extundo.com>
121855         * modules/size_max: New file.
121857         * modules/xsize: Depend on size_max module for size_max.m4.
121859 2005-07-11  Simon Josefsson  <jas@extundo.com>
121861         * lib/size_max.h: New file.
121863 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
121865         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
121866         copyright symbol and the year.
121867         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
121868         (version_etc_va): Use parameterized copyright notice.
121869         Reword to conform to the current GNU coding standards.
121871 2005-07-11  Karl Berry  <karl@gnu.org>
121873         * doc/gnulib.texi (Quoting): new node.
121874         (Initial import): more info, from Patrice.
121876 2005-07-11  Bruno Haible  <bruno@clisp.org>
121878         * gnulib-tool (func_usage): Document option --avoid.
121879         (Command line options): Handle --avoid.
121880         (func_acceptable): New function.
121881         (func_modules_transitive_closure): Use it.
121883 2005-07-11  Bruno Haible  <bruno@clisp.org>
121885         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
121886         Reported by Jim Meyering.
121888 2005-07-10  Bruno Haible  <bruno@clisp.org>
121890         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
121891         Needed when size_t is smaller than 'unsigned int'.
121892         Reported by Paul Eggert.
121894 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
121896         * modules/argp (Depends-on): Add unlocked-io
121898 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
121900         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
121901         block of defines.
121903 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
121905         * config/srclist.txt: Comment out regcomp.c, since we have a porting
121906         fix now.
121908 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
121909         and Paul Eggert  <eggert@cs.ucla.edu>
121911         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
121912         in wint_t, not wchar_t.  Remove now-unnecessary cast.
121914 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
121916         * modules/regex (Files): Add lib/regex_internal.c,
121917         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
121918         (Depends-on): Add extensions.
121919         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
121921 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
121923         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
121924         pathconf.
121925         * m4/same.m4 (gl_SAME): Likewise.
121926         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
121928         * m4/regex.m4: Adjust to new libc regex implementation.
121929         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
121930         all the .c and .h parts of (the new) regex.
121931         Quote the m4 stuff better.
121932         Check for RE_ICASE bug of old gnulib.
121933         Check for REG_STARTEND of recent libc.
121934         Rename local variables from jm_* to gl_*.
121935         Quote operand of "test -f".
121936         Say "recent enough" version of libc, not "version 2".
121937         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
121938         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
121939         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
121940         Remove check for btowc, isascii.
121941         Require AM_LANGINFO_CODESET.
121943 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
121945         * lib/regex.c, regex.h: Sync from libc.
121946         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
121947         * lib/regexec.c:
121948         New files, synced from libc, except that regex_internal.h
121949         currently has a small porting fix.
121951 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
121953         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
121954         regex_internal.c, regexec.c.
121955         Add regex_internal.h too, but as a comment, since the libc version
121956         is currently broken in gnulib mode.
121958 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
121960         Support programs like Emacs that use gnulib but not gettext.
121961         * MODULES.html.sh (Internationalization functions): Add gettext-h.
121962         * modules/gettext-h: New file.
121963         * modules/gettext (Files): Remove lib/gettext.h.
121964         (Depends-on): Add gettext-h.
121965         (Makefile.am): Remove lib_SOURCES.
121966         * modules/argmatch, modules/c-stack, modules/closeout:
121967         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
121968         * modules/execute, modules/file-type, modules/getaddrinfo:
121969         * modules/getopt, modules/human, modules/javacomp:
121970         * modules/javaexec, modules/mkdir-p, modules/obstack:
121971         * modules/openat, modules/pagealign_alloc, modules/pipe:
121972         * modules/quotearg, modules/regex, modules/rpmatch:
121973         * modules/unicodeio, modules/userspec, modules/version-etc:
121974         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
121975         * modules/xsetenv:
121976         Depend on gettext-h, not gettext.
121978 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
121980         * gnulib-tool (func_import): Add support for 'public domain' license.
121981         * modules/alloca, modules/atexit, modules/memmove:
121982         Now public domain, not GPL.
121983         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
121984         * modules/realloc, modules/strerror, modules/strtod:
121985         Now LGPL, not GPL.
121987 2005-07-05  Bruno Haible  <bruno@clisp.org>
121989         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
121990         autoconf CVS. Needed for mingw.
121992 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
121994         Remove the dependency of the strftime module on the tzset module.
121995         * modules/strftime (Depends-on): Remove dependency on tzset.
121997 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
121999         Remove the dependency of the strftime module on the tzset module.
122000         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
122001         gl_FUNC_TZSET_CLOBBER.
122003 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
122005         Remove the dependency of the strftime module on the tzset module.
122006         * lib/strftime.c (my_strftime)
122007         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
122008         Copy the input structure, to work around some of the bug with
122009         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
122010         Solaris releases, you should also use the tzset module, but we won't
122011         require it as a dependency any more since we don't want LGPLed code
122012         to depend on GPLed code.
122014 2005-07-02  Jim Meyering  <jim@meyering.net>
122016         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
122017         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
122018         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
122019         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
122021 2005-07-02  Jim Meyering  <jim@meyering.net>
122023         * lib/backupfile.c (backup_args): Change a `0' to NULL.
122025 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
122027         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
122028         declares only 'struct timespec;' (!).
122030 2005-07-01  Jim Meyering  <jim@meyering.net>
122032         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
122033         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
122034         * lib/save-cwd.c, tempname.c:
122035         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
122036         and don't include <sys/file.h>).
122038 2005-06-29  Jim Meyering  <jim@meyering.net>
122040         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
122041         type name.  Use the variable name instead.
122042         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
122043         Likewise.
122045 2005-06-28  Simon Josefsson  <jas@extundo.com>
122047         * modules/check-version (Files): Add check-version.m4.
122049 2005-06-28  Simon Josefsson  <jas@extundo.com>
122051         * m4/check-version.m4: New file, suggested by Jim Meyering
122052         <jim@meyering.net>.
122054 2005-06-28  Simon Josefsson  <jas@extundo.com>
122056         * lib/check-version.h, lib/check-version.c: New files.
122058 2005-06-28  Simon Josefsson  <jas@extundo.com>
122060         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
122061         collision with global variable.  Better indentation.  Don't
122062         increment buffer pointer beyond buffer end.  Based on comments
122063         from Paul Eggert <eggert@cs.ucla.edu>.
122065         * lib/base64.h: Indent.
122067 2005-06-28  Simon Josefsson  <jas@extundo.com>
122069         * doc/gnulib.texi (Library version handling): New section.
122071 2005-06-28  Jim Meyering  <jim@meyering.net>
122073         * check-module (find_included_lib_files): Hard-code another
122074         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
122075         but modules/fts-lgpl (correctly) does not list those files.
122077         * modules/canonicalize (Files): Add lib/pathmax.h.
122079 2005-06-25  Simon Josefsson  <jas@extundo.com>
122081         * modules/check-version: New file.
122083 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
122085         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
122086         initializer of struct addrinfo, as an indication that we don't
122087         care how many members the structure has.
122089 2005-06-24  Derek Price  <derek@ximbiot.com>
122090         and Bruno Haible  <bruno@clisp.org>
122092         Remove stat module & update lstat.
122093         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
122094         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
122095         * m4/stat.m4: Remove this file.
122097 2005-06-24  Derek Price  <derek@ximbiot.com>
122098         and Bruno Haible  <bruno@clisp.org>
122100         Remove stat module & update lstat.
122101         * lib/stat.c: Remove this file...
122102         (slash_aware_lstat): ...moving this content and its support...
122103         * lib/lstat.c (rpl_lstat): ...into here.
122104         * lib/lstat.h: New file.
122106 2005-06-24  Derek Price  <derek@ximbiot.com>
122107         and Bruno Haible  <bruno@clisp.org>
122109         Remove stat module & update lstat.
122110         * config/srclist.txt (libc sources): Remove stat.
122112 2005-06-24  Derek Price  <derek@ximbiot.com>
122113         and Bruno Haible  <bruno@clisp.org>
122115         Remove stat module & update lstat.
122116         * MODULES.html.sh (stat): Remove.
122117         * MODULES.html: Regenerated.
122118         * modules/lstat (Description): Correct function name.
122119         (Files): Add "lstat.h".
122120         (Depends-on): Remove stat, add xalloc, stat-macros.
122121         * modules/stat: Remove this file.
122122         (Include): Add "lstat.h", remove <sys/stat.h>.
122124 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
122126         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
122127         (ranged_convert): Don't save conversion in a temporary struct.
122128         This causes a warning with GCC 4.0.0, and anyway in the typical
122129         case it's not worth the extra 100 bytes or so of code.
122130         (ranged_convert, __mktime_internal): When calling a function via a
122131         pointer P, use P () rather than (*P) (), as we now assume C89 or
122132         better.
122134 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
122136         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
122137         "who -r" failed to give output.  Problem reported by Tim Waugh.
122139         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
122140         (xcalloc): Use it to avoid needless tests.
122141         Problem reported by Jim Meyering.
122143 2005-06-20  Derek Price  <derek@ximbiot.com>
122145         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
122146         unnecessary for Autoconfs > 2.59c.
122148 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
122150         * lib/argp.h (__option_is_short): Check upper limit of
122151         __key. Isprint() requires its argument to have the value
122152         of an unsigned char or EOF.
122154 2005-06-16  Jim Meyering  <jim@meyering.net>
122156         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
122157         when either N or S is zero.
122159 2005-06-16  Derek Price  <derek@ximbiot.com>
122161         * m4/bison.m4: Declare YACC & YFLAGS precious.
122163 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
122165         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
122166         multibyte string or pattern, fall back on unibyte matching.
122167         Problem reported by James Youngman.
122169 2005-06-08  Bruno Haible  <bruno@clisp.org>
122171         * modules/csharpcomp: New file.
122172         * MODULES.html.sh (C#): Add csharpcomp.
122174 2005-06-08  Bruno Haible  <bruno@clisp.org>
122176         * m4/csharpcomp.m4: New file, from GNU gettext.
122178 2005-06-08  Bruno Haible  <bruno@clisp.org>
122180         * lib/csharpcomp.h: New file, from GNU gettext.
122181         * lib/csharpcomp.c: New file, from GNU gettext.
122182         * lib/csharpcomp.sh.in: New file, from GNU gettext.
122184 2005-06-08  Bruno Haible  <bruno@clisp.org>
122186         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
122187         warning on mingw.
122189 2005-06-07  Derek Price  <derek@ximbiot.com>
122191         Sync from CVS.
122192         * lib/glob_.h: Indent nested #ifdef.
122194 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
122196         Sync from coreutils.
122197         Use "file name" when talking about file names, instead of "filename"
122198         or "path", as per the GNU coding standards.
122199         * lib/mkdir-p.c: Renamed from makepath.c.
122200         (make_dir_parents): Renamed from make_path.  All callers changed.
122201         * lib/mkdir-p.h: Likewise.  All includers changed.
122202         * lib/filenamecat.c: Renamed from path-concat.c.
122203         (file_name_concat): Renamed from path_concat.  All callers changed.
122204         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
122205         * lib/filenamecat.h: Likewise.  All includers changed.
122206         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
122207         in comments or local variable names.
122208         * lib/basename.c: Likewise.
122209         * lib/canonicalize.c, canonicalize.h: Likewise.
122210         * lib/dirname.c, dirname.h: Likewise.
122211         * lib/euidaccess.c: Likewise.
122212         * lib/exclude.c: Likewise
122213         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
122214         * lib/fsusage.c, fsuage.h: Likewise.
122215         * lib/fts.c, fts_.h: Likewise.
122216         * lib/getcwd.c: Likewise.
122217         * lib/getloadavg.c: Likewise.
122218         * lib/mkstemp.c: Likewise.
122219         * lib/mountlist.c, mountlist.h: Likewise.
122220         * lib/openat.c, openat.h: Likewise.
122221         * lib/readlink-stub.c: Likewise.
122222         * lib/readutmp.c, readutmp.h: Likewise.
122223         * lib/rename.c: Likewise.
122224         * lib/rmdir.c: Likewise.
122225         * lib/same.c: Likewise.
122226         * lib/savedir.c: Likewise.
122227         * lib/stripslash.c: Likewise.
122228         * lib/tempname.c: Likewise.
122229         * lib/xreadlink.c: Likewise.
122230         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
122231         All uses changed.
122232         * lib/exclude.h: Likewise.
122234         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
122235         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
122236         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
122237         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
122238         * lib/pathmax.h: Include <limits.h> unconditionally, since other
122239         files have been getting away with it for years (MORE/BSD 4.3
122240         is extinct now).
122241         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
122242         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
122244         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
122245         Define to 256, not 255, as per modern POSIX.
122247 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
122249         Sync from coreutils.
122250         Use "file name" when talking about file names, instead of "filename"
122251         or "path", as per the GNU coding standards.
122252         * MODULES.html.sh: mkdir-p renamed from makepath.
122253         filenamecat renamed from path-concat.
122254         * modules/filenamecat: Renamed from modules/path-concat.
122255         (Files): filenamecat.h and filenamecat.c renamed from
122256         path-concat.h and path-concat.c.
122257         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
122258         (Include): filenamecat.h, not path-concat.h.
122259         * modules/mkdir-p: Renamed from modules/makepath.
122260         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
122261         makepath.c.
122262         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
122263         (Include): mkdir-p.h, not makepath.h.
122265 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
122267         Sync from coreutils.
122268         * m4/mkdir-p.m4: Renamed from makepath.m4.
122269         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
122270         Rename files from makepath.c to mkdir-p.c, and from
122271         makepath.h to mkdir-p.h.
122272         * m4/filenamecat.m4: Renamed from path-concat.m4.
122273         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
122274         Rename files from path-concat.c to filenamecat.c,
122275         and from path-concat.h to filenamecat.h.
122276         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
122277         "file name" in local variables or comments.
122278         * m4/rename.m4: Likewise.
122280 2005-06-01  Bruno Haible  <bruno@clisp.org>
122282         * modules/csharpexec: New file.
122283         * MODULES.html.sh (C#): New section.
122285 2005-06-01  Bruno Haible  <bruno@clisp.org>
122287         * m4/csharp.m4: New file, from GNU gettext.
122288         * m4/csharpexec.m4: New file, from GNU gettext.
122290 2005-06-01  Bruno Haible  <bruno@clisp.org>
122292         * lib/csharpexec.h: New file, from GNU gettext.
122293         * lib/csharpexec.c: New file, from GNU gettext.
122294         * lib/csharpexec.sh.in: New file, from GNU gettext.
122296 2005-05-31  Derek Price  <derek@ximbiot.com>
122297             Paul Eggert  <eggert@cs.ucla.edu>
122299         Sync from cvs.
122300         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
122302 2005-05-31  Derek Price  <derek@ximbiot.com>
122303             Paul Eggert  <eggert@cs.ucla.edu>
122305         Sync from cvs.
122306         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
122308 2005-05-29  Derek Price  <derek@ximbiot.com>
122310         * config/srclist.txt (glob_.h, glob.c): Add these files.
122312 2005-05-29  Derek Price  <derek@ximbiot.com>
122314         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
122315         * modules/glob: New file.
122316         * modules/getlogin_r: Add link to POSIX spec in description.
122318 2005-05-29  Derek Price  <derek@ximbiot.com>
122319             Paul Eggert  <eggert@cs.ucla.edu>
122321         * m4/glob.m4: New file.
122323 2005-05-29  Derek Price  <derek@ximbiot.com>
122324             Paul Eggert  <eggert@cs.ucla.edu>
122326         * lib/glob_.h, lib/glob.c: New files.
122328 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
122330         * modules/fts (Files): Remove m4/inttypes-pri.m4.
122331         * modules/fts-lgpl (Depends-on): Remove gettext.
122333 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
122335         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
122336         and don't require gt_INTTYPES_PRI.
122338 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
122340         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
122342         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
122343         the configuration hassle isn't worth it.
122344         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
122345         (LONGEST_MODIFIER, PRIuMAX): Remove.
122347 2005-05-27  Bruno Haible  <bruno@clisp.org>
122349         * lib/getlogin_r.h: Remove second include of <stddef.h>.
122351 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
122353         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
122354         _POSIX_PTHREAD_SEMANTICS for Solaris.
122356 2005-05-25  Derek Price  <derek@ximbiot.com>
122358         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
122360 2005-05-25  Derek Price  <derek@ximbiot.com>
122361             Paul Eggert  <eggert@cs.ucla.edu>
122363         * modules/getlogin_r, m4/getlogin_r.m4: New files.
122364         * lib/getlogin_r.c, getlogin_r.h: New files.
122366 2005-05-25  Bruno Haible  <bruno@clisp.org>
122367             Derek Price  <derek@ximbiot.com>
122369         * lib/getlogin_r.h: Simplify API documentation.
122371 2005-05-23  Derek Price  <derek@ximbiot.com>
122373         * modules/minmax (Files): Add m4/minmax.m4.
122374         (configure.ac): Add gl_MINMAX.
122376 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
122378         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
122379         so that unistd-safer.h (GPL'ed code) need not be included.
122381 2005-05-22  Bruno Haible  <bruno@clisp.org>
122383         * m4/minmax.m4: New file.
122384         Based on a patch by Derek Price <derek@ximbiot.com>.
122386 2005-05-22  Bruno Haible  <bruno@clisp.org>
122388         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
122389         (INT64_MIN): Fix definition.
122390         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
122392         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
122393         NEED_SIGNED_INT_TYPES.
122395         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
122396         HAVE_SYSTEM_INTTYPES.
122398 2005-05-22  Bruno Haible  <bruno@clisp.org>
122400         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
122401         Also include <sys/param.h> if it defines MIN, MAX.
122402         Based on a patch by Derek Price <derek@ximbiot.com>.
122404 2005-05-21  Jim Meyering  <jim@meyering.net>
122406         * modules/fts (Files): Add m4/inttypes-pri.m4.
122407         (Depends-on): Add lstat and remove gettext.  Alphabetize.
122409 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
122411         New fts module.
122412         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
122413         (setup_dir, free_dir): New functions.
122414         (enter_dir, leave_dir): Define trivial
122415         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
122416         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
122417         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
122418         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
122419         Move to fts-cycle.c.
122420         (fts_open): Use setup_dir.
122421         (fts_close): Use free_dir.
122422         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
122423         This adds a label and some gotos, but the alternatives were messier.
122424         Check for memory allocation failure when entering a dir.
122425         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
122426         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
122427         (FTS): New member fts_cycle, that is a union that contains the
122428         old active_dir_ht and cycle_state.  All uses changed to mention
122429         fts_cycle.ht and fts_cycle.state.
122430         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
122431         fts.c, with the following changes:
122432         (setup_dir, free_dir): New functions.
122433         (enter_dir): Now returns bool.  Return true if successful, false
122434         if memory exhausted.  All callers changed.
122435         Do not bother partly cleaning up on
122436         memory allocation failure; that is free_dir's job.
122437         However, free ad if hash_insert fails, to avoid memory leak.
122438         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
122439         fts->fts_options to see which union member to use.
122441 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
122443         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
122444         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
122446 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
122448         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
122450 2005-05-20  Jim Meyering  <jim@meyering.net>
122452         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
122453         Now a macro, to pacify GCC.
122455 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
122457         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
122458         of -1.
122460 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
122462         * lib/chown.c (rpl_chown): Return -1 on failure.
122464 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
122466         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
122467         Don't check for stddef.h.
122468         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
122469         don't use its results.
122470         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
122471         since we include them unconditionally.  Don't require
122472         AM_STDBOOL_H, since stdbool is a prerequisite.
122473         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
122474         since we assume C89 or better.
122475         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
122476         as we don't use their results.
122477         Don't check for fchdir, memmove, memset, strrchr, as we use
122478         them unconditionally.
122479         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
122480         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
122482 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
122484         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
122485         Include <stddef.h> unconditionally, since we assume C89 now.
122486         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
122487         * lib/fts.c: Include fts_.h first, to check interface.
122488         Do not include intprops.h; no longer needed.
122489         Include cycle-check.h and hash.h, since fts_.h no longer does.
122490         Remove unnecessary casts of closedir to void.
122491         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
122492         decide whether to decrement nlinks.
122493         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
122494         (FTS): Use struct hash_table * instead of Hash_table, so that
122495         we no longer need to include hash.h here.
122497 2005-05-18  Jim Meyering  <jim@meyering.net>
122499         * modules/dirfd (License): Change to LGPL.  Most of the code
122500         is already in the public domain.
122502 2005-05-18  Jim Meyering  <jim@meyering.net>
122504         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
122505         Reported by Yoann Vandoorselaere.
122507 2005-05-17  Jim Meyering  <jim@meyering.net>
122509         * m4/fts.m4: New file, from coreutils.
122511 2005-05-17  Jim Meyering  <jim@meyering.net>
122513         * lib/fts.c, lib/fts_.h: New files, from coreutils.
122515 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
122517         Sync from coreutils.
122518         * m4/unlinkdir.m4: New file.
122520 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
122522         Sync from coreutils.
122523         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
122524         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
122525         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
122526         White space changes only.
122527         * lib/makepath.c (make_path): Port to hosts where leading "//" is
122528         special.
122529         * lib/yesno.c: Include getline.h, not ctype.h.
122530         (yesno): Don't remove leading white space; POSIX doesn't allow it.
122531         Use getline to remove arbitrary restriction on response length.
122533 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
122535         * config/srclist-update: Spell out "Street" in FSF postal
122536         mail address; this is the style the FSF seems to prefer.
122538         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
122539         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
122540         this updates FSF postal mail address.
122542         Sync from coreutils.
122543         * modules/unlinkdir: New file.
122544         * modules/yesno (Depends-on): Add getline.
122545         * MODULES.html.sh (File system functions): Add unlinkdir.
122547 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
122549         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
122550         lib/strsep.h:
122551         Change the initial comment to refer to GPL, not LGPL.
122552         gnulib-tool will change it to LGPL as needed.
122554         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
122555         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
122556         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
122557         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
122558         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
122559         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
122560         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
122561         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
122562         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
122563         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
122564         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
122565         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
122566         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
122567         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
122568         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
122569         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
122570         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
122571         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
122572         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
122573         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
122574         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
122575         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
122576         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
122577         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
122578         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
122579         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
122580         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
122581         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
122582         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
122583         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
122584         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
122585         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
122586         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
122587         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
122588         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
122589         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
122590         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
122591         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
122592         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
122593         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
122594         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
122595         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
122596         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
122597         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
122598         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
122599         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
122600         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
122601         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
122602         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
122603         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
122604         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
122605         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
122606         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
122607         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
122608         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
122609         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
122610         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
122611         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
122612         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
122613         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
122614         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
122615         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
122616         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
122617         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
122618         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
122619         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
122620         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
122621         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
122622         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
122623         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
122624         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
122625         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
122626         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
122627         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
122628         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
122629         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
122630         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
122631         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
122632         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
122633         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
122634         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
122635         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
122636         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
122637         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
122638         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
122639         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
122640         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
122641         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
122642         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
122643         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
122644         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
122645         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
122646         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
122647         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
122648         lib/yesno.c, lib/yesno.h:
122649         Update FSF postal mail address.
122651 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
122653         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
122654         tests/test-memmem.c, tests/test-stpncpy.c:
122655         Update FSF postal mail address.
122657 2005-05-13  Bruno Haible  <bruno@clisp.org>
122659         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
122660         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
122661         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
122662         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
122663         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
122664         Add support for 64-bit integers in the MSVC compiler.
122666 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
122668         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
122670 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
122672         * gnulib-tool (func_import): Sort and uniquify recommended includes.
122674 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
122676         * doc/getdate.texi (General date syntax): Don't say that date
122677         date --iso-8601=ns generates acceptable dates; it doesn't yet.
122678         Problem reported by Nic Ferrier.
122680 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
122682         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
122683         specified in ai_socktype. Fix invalid ai_protocol
122684         check. ai_protocol is usually set to 0 or depending on
122685         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
122686         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
122687         ai_socktype / ai_protocol in the returned addrinfo structure.
122689 2005-05-10  Simon Josefsson  <jas@extundo.com>
122691         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
122692         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
122694 2005-05-10  Karl Berry  <karl@gnu.org>
122696         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
122697         (from http://www.gnu.org/licenses).
122698         * doc/COPYING.LIB: also rename to COPYING.LESSER.
122699         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
122700         fdl.texi suffices.
122702 2005-05-10  Karl Berry  <karl@gnu.org>
122704         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
122705         (COPYING.DOC): remove.
122707         * config/srclist-update: new FSF address.
122709 2005-05-10  Derek Price  <derek@ximbiot.com>
122711         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
122712         possible.
122714 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
122715             Bruno Haible  <bruno@clisp.org>
122717         * modules/inet_ntop: New file.
122718         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
122719         inet_ntop.
122721 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
122722             Bruno Haible  <bruno@clisp.org>
122724         * m4/inet_ntop.m4: New file.
122726 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
122727             Bruno Haible  <bruno@clisp.org>
122729         * lib/inet_ntop.h: New file.
122730         * lib/inet_ntop.c: New file, from glibc with modifications.
122732 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
122734         * modules/time_r (License): Change to LGPL.
122735         * modules/extensions (License): Change to LGPL.  Actually,
122736         the license is more permissive than that, but currently gnulib-tool
122737         doesn't know how to handle more-permissive licenses.
122739         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
122740         Problem reported by Dave Love.
122742 2005-05-08  Jim Meyering  <jim@meyering.net>
122744         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
122745         blank.
122747 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
122749         * modules/argmatch (Depends-on): Add stdbool.
122750         * modules/backupfile (Depends-on): Likewise.
122751         * modules/chdir-long (Depends-on): Likewise.
122752         * modules/closeout (Depends-on): Likewise.
122753         * modules/cycle-check (Depends-on): Likewise.
122754         * modules/dirname (Depends-on): Likewise.
122755         * modules/fnmatch (Depends-on): Likewise.
122756         * modules/fsusage (Depends-on): Likewise.
122757         * modules/fwriteerror (Depends-on): Likewise.
122758         * modules/getcwd (Depends-on): Likewise.
122759         * modules/getloadavg (Depends-on): Likewise.
122760         * modules/hard-locale (Depends-on): Likewise.
122761         * modules/makepath (Depends-on): Likewise.
122762         * modules/mountlist (Depends-on): Likewise.
122763         * modules/nanosleep (Depends-on): Likewise.
122764         * modules/posixtm (Depends-on): Likewise.
122765         * modules/quotearg (Depends-on): Likewise.
122766         * modules/readtokens (Depends-on): Likewise.
122767         * modules/readtokens0 (Depends-on): Likewise.
122768         * modules/readutmp (Depends-on): Likewise.
122769         * modules/save-cwd (Depends-on): Likewise.
122770         * modules/strftime (Depends-on): Likewise.
122771         * modules/userspec (Depends-on): Likewise.
122772         * modules/utimecmp (Depends-on): Likewise.
122773         * modules/xgetcwd (Depends-on): Likewise.
122774         * modules/xnanosleep (Depends-on): Likewise.
122775         * modules/xstrtod (Depends-on): Likewise.
122776         * modules/yesno (Depends-on): Likewise.
122778 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
122780         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
122781         needless checks.
122783 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
122785         Merge from coreutils.  Among other things,
122786         add bulletproofing for cases where stdin, stdout, or stderr are closed.
122787         * lib/fd-safer.c: New file.
122788         * lib/fcntl-safer.h, open-safer.c: Remove.
122789         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
122790         * lib/dup-safer.c: Include unistd-safer.h first.
122791         Don't include errno.h.
122792         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
122793         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
122794         * lib/file-type.c: Rely on file-type.h change.
122795         * lib/getloadavg.c: Include unistd-safer.h.
122796         (getloadavg): Use safer open.
122797         * lib/getusershell.c: Include "stdio-safer.h".
122798         (getusershell): Use safer fopen.
122799         * lib/long-options.c (long_options): Use NULL rather than 0.
122800         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
122801         'free'.
122802         * lib/modechange.c: Likewise.
122803         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
122804         (MODE_DONE): New constant.
122805         (struct mode_change): Remove 'next' member.
122806         (make_node_op_equals): New function; like the old one of the
122807         same name, except it allocates an array.
122808         (mode_compile, mode_create_from_ref): Use it.
122809         (mode_compile): Allocate result as an array, not a linked list.
122810         Parse octal string ourself, so that we catch mistakes like "+0".
122811         (mode_adjust): Arg is an array, not a linked list.
122812         * lib/modechange.c: Include stat-macros.h, xalloc.h.
122813         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
122814         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
122815         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
122816         Remove.  This is now stat-macros.h's job.
122817         (talloc): Remove.  All callers replaced by xalloc, so that
122818         our invokers don't have to worry about reporting memory failures.
122819         (make_node_op_equals): Remove.
122820         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
122821         New constants.
122822         (struct mode_change): Moved here from modechange.h.
122823         (mode_append_entry): Remove.
122824         (mode_compile): Remove MASKED_OPS arg, since it encouraged
122825         apps to have incorrect behavior.  Use simpler algorithm for head
122826         and tail.  Don't futz with umask; that's now the job of mode_adjust.
122827         Detect more invalid usages rather than having somewhat-random behavior.
122828         Don't insert an "a=" action, as that leads to incorrect behavior.
122829         (mode_compile, mode_create_from_ref): Return NULL on error instead
122830         of an enum, since now there's only one way to have an error.  All
122831         callers changed.
122832         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
122833         at the correct time.  Simplify calculation of "+u" and its ilk.
122834         Don't mishandle "+X".
122835         (mode_free): Remove "register" and localize decls.
122836         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
122837         (struct mode_change): Move to modechange.c; callers don't
122838         need to see this stuff.
122839         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
122840         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
122841         (mode_change, mode_adjust): Reflect the new signatures noted above.
122842         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
122843         that might redefine system include files.
122844         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
122845         (my_usleep): Use NULL rather than (void *) 0.
122846         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
122847         Use siginterrupt to specify that system calls should be interrupted.
122848         (rpl_nanosleep): Move initialization of suspended closer to call of
122849         my_usleep.
122850         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
122851         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
122852         (desirable_utmp_entry): New function.
122853         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
122854         using x2nrealloc, to simplify logic.
122855         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
122856         size calculation.  Do not assume utmp file is a regular file.
122857         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
122858         (READ_UTMP_CHECK_PIDS): New constant.
122859         * lib/save-cwd.c: Include unistd-safer.h.
122860         (save_cwd): Use fd_safer.
122861         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
122862         [!_LIBC] Include "stat-macros.h" instead.
122863         * lib/unistd-safer.h (fd_safer): New decl.
122865 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
122867         * modules/getloadavg (Depends-on): Add unistd-safer.
122868         * modules/getusershell (Depends-on): Add stdio-safer.
122869         * modules/lstat (Depends-on): Remove xalloc.
122870         * modules/mkstemp (Depends-on): Add stat-macros.
122871         * modules/modechange (Depends-on): Remove xstrtol.
122872         Add stat-macros, xalloc.
122873         * modules/save-cwd (Depends-on): Add unistd-safer.
122874         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
122875         * modules/unistd-safer (Files): Add lib/fd-safer.c
122876         (Makefile.am): Remove lib_SOURCES.
122878         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
122879         Remove fcntl-safer; unistd-safer supersedes it.
122881 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
122883         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
122884         AC_HEADER_STAT.
122885         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
122886         (gl_PREREQ_CHOWN): Remove.
122887         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
122888         it.  Don't require AC_HEADER_STAT.
122889         (gl_PREREQ_LSTAT): Remove.
122890         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
122891         Don't require AC_HEADER_STAT.
122892         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
122893         (gl_PREREQ_RMDIR): Remove.
122894         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
122895         mention stat-macros.h or AC_HEADER_STAT, since we'll make
122896         the stat-macros module a prerequisite.
122897         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
122898         * m4/filemode.m4 (gl_FILEMODE): Likewise.
122899         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
122900         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
122901         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
122902         variable names.
122903         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
122904         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
122905         variable prefixes.
122906         * m4/fcntl-safer.m4: Remove.
122907         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
122908         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
122909         Invoke gl_PREREQ_FD_SAFER.
122910         (gl_PREREQ_FD_SAFER): New macro.
122911         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
122912         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
122913         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
122914         Remove duplicate call to AC_LIBOBJ(readutmp).
122915         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
122917         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
122918         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
122920 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
122922         * MODULES.html.sh (Misc): Add byteswap.
122924 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
122926         * modules/getcwd (Depends-on): Add extensions.
122927         * modules/openat (Depends-on): Likewise.
122929 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
122931         * modules/byteswap: New file.
122933 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
122935         * m4/byteswap.m4: New file.
122937 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
122939         * lib/byteswap_.h: New file.
122941 2005-04-25  Karl Berry  <karl@gnu.org>
122943         * m4/gettext.m4: Update from GNU gettext 0.14.4.
122945 2005-04-25  Albert Chin  <china@thewrittenword.com>
122947         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
122948         Toolkit C bug.
122950 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
122952         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
122953         (func_ln_if_changed): Remove forcibly for no error message
122954         in case file does not exist.
122956 2005-04-19  Simon Josefsson  <jas@extundo.com>
122958         * gnulib-tool (Options): Make --symlink mean --symbolic.
122960 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
122962         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
122964 2005-04-16  Simon Josefsson  <jas@extundo.com>
122966         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
122968 2005-04-15  Simon Josefsson  <jas@extundo.com>
122970         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
122972 2005-04-15  Simon Josefsson  <jas@extundo.com>
122974         * gnulib-tool: Rename --symlink to --symbolic.
122976 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
122978         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
122979         symbolic links to files instead of copying/moving.  Add --aux-dir,
122980         specifying directory relative --dir where auxiliary build tools
122981         are placed.
122983 2005-04-14  Bruno Haible  <bruno@clisp.org>
122985         * modules/allocsa (License): Change to LGPL.
122986         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
122988 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
122990         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
122991         that "UTC +1 second" continues to work.  Problem reported
122992         by Dmitry V. Levin.
122993         (relunit_snumber): New rule.
122994         (relunit): Use it.
122996 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
122998         * lib/getdate.y (universal_time_zone_table): New constant.
122999         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
123000         universal_time_zone_table.
123001         (lookup_zone): Prefer universal_time_zone_table to
123002         local_time_zone_table, so that "GMT" time stamps are allowed in
123003         London during the summer.  Problem reported by Ian Abbott.
123005 2005-04-12  Jim Meyering  <jim@meyering.net>
123007         * lib/human.c (humblock): Set *options even when returning due to
123008         xstrtoumax conversion failure.  Thanks to a used-uninitialized
123009         warning from gcc-4.
123011 2005-04-09  Jim Meyering  <jim@meyering.net>
123013         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
123014         -Wuninitialized: initialize tm0.tm_year.
123016 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
123018         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
123019         count, since there's no maximum.  All uses changed.
123020         Add member dsts_seen.
123021         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
123022         not being INT_MAX.
123023         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
123024         Use pc_rels_seen to decide whether a date is absolute.
123026         * lib/getdate.y (number): Don't overwrite year.
123027         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
123028         check.
123030 2005-04-02  Simon Josefsson  <jas@extundo.com>
123032         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
123033         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
123035 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
123037         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
123038         where no absolute path name can be longer than PATH_MAX.
123040 2005-03-27  Jim Meyering  <jim@meyering.net>
123042         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
123044 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
123046         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
123047         "one's complement" -> "ones' complement" in comment, as per Knuth.
123048         "value of type" -> "type or expression" in comment.
123049         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
123051 2005-03-26  Jim Meyering  <jim@meyering.net>
123053         Comment nits.
123054         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
123055         Correct typos: s/or/of/.
123057 2005-03-26  Jim Meyering  <jim@meyering.net>
123059         * modules/check-include-files: Move to ../ and rename to...
123060         * check-module: ...this.
123062 2005-03-25  Jim Meyering  <jim@meyering.net>
123064         * modules/xvasprintf (Files): Add xalloc.h.
123066 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
123068         * modules/gettext (Files): config/config.rpath ->
123069         build-aux/config.rpath
123070         * modules/iconv (Files): Likewise.
123071         Problem reported by Oskar Liljeblad.
123073 2005-03-23  Jim Meyering  <jim@meyering.net>
123075         * modules/check-include-files: New script to check for
123076         missing dependencies, multiple includes, etc.
123078         * modules/c-strtold (Depends-on): Add xalloc.
123079         * modules/c-strtod (Depends-on): Add xalloc.
123080         * modules/hash (Depends-on): Add xalloc.
123081         (Files): Remove lib/xalloc.h.
123083         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
123084         * modules/userspec (Files): Add lib/inttostr.h.
123086 2005-03-23  Jim Meyering  <jim@meyering.net>
123088         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
123090 2005-03-22  Jim Meyering  <jim@meyering.net>
123092         * modules/stat-macros: New module.
123093         * modules/canonicalize, modules/euidaccess, modules/file-type,
123094         * modules/filemode, modules/lchown, modules/makepath,
123095         * modules/rmdir, modules/stat: Depend on new stat-macros module
123096         rather than listing lib/stat-macros.h manually.
123097         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
123099 2005-03-22  Jim Meyering  <jim@meyering.net>
123101         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
123103 2005-03-22  Bruno Haible  <bruno@clisp.org>
123105         * config/srclist.txt: Replace target directory 'config' with
123106         'build-aux'.
123107         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
123108         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
123109         ../build-aux/.
123111 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
123113         * modules/chdir-long (Depends-on): Add mempcpy.
123115         * modules/acl, modules/backupfile, modules/c-strtod,
123116         modules/c-strtold, modules/canon-host, modules/canonicalize,
123117         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
123118         modules/exclude, modules/exitfail, modules/file-type,
123119         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
123120         modules/getdate, modules/getline, modules/getpagesize,
123121         modules/getpass, modules/getugroups, modules/group-member,
123122         modules/hard-locale, modules/hash, modules/human, modules/idcache,
123123         modules/inttostr, modules/long-options, modules/makepath,
123124         modules/md5, modules/memcasecmp, modules/memcoll,
123125         modules/modechange, modules/mountlist, modules/path-concat,
123126         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
123127         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
123128         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
123129         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
123130         modules/strftime, modules/strndup, modules/strverscmp,
123131         modules/timespec, modules/unlocked-io, modules/userspec,
123132         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
123133         modules/yesno:
123134         Remove lib_SOURCES line from Makefile.am section, as this is now
123135         done automatically by the corresponding Autoconf macro.
123137 2005-03-21  Jim Meyering  <jim@meyering.net>
123139         Changes imported from coreutils.
123141         * lib/cycle-check.c: Don't include xalloc.h.
123143         * lib/path-concat.c: Don't include assert.h.
123144         (path_concat): Remove assertion that would have triggered
123145         for ABASE starting with more than one slash.
123146         Reported by Andreas Schwab.
123148         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
123149         properly when ABASE is an absolute file name.
123150         Correct the description of this function.
123151         Include <assert.h>.
123152         Add an assertion and a test driver.
123153         This fixes a bug introduced on 2004-07-02.
123154         Andreas Schwab reported the resulting failure of cp --parents:
123155         http://lists.gnu.org/r/bug-coreutils/2005-01/msg00130.html
123157 2005-03-21  Jim Meyering  <jim@meyering.net>
123159         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
123160         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
123162 2005-03-21  Jim Meyering  <jim@meyering.net>
123163         and  Paul Eggert  <eggert@cs.ucla.edu>
123165         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
123166         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
123167         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
123168         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
123169         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
123170         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
123171         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
123172         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
123173         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
123174         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
123175         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
123176         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
123177         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
123178         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
123179         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
123180         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
123181         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
123182         for these modules.
123184 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
123186         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
123187         (which shouldn't happen), generate nothing instead of returning 0
123188         immediately, so that nstrftime (NULL, ...) doesn't return 0.
123190 2005-03-16  Bruno Haible  <bruno@clisp.org>
123192         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
123193         HAVE_LONGLONG_64BIT.
123195 2005-03-16  Bruno Haible  <bruno@clisp.org>
123197         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
123198         HAVE_LONGLONG_64BIT.
123200 2005-03-16  Bruno Haible  <bruno@clisp.org>
123202         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
123203         HAVE_LONGLONG_64BIT.
123205 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
123207         * lib/strftime.c (my_strftime): Prepend space to format so that we can
123208         reliably distinguish strftime failure from empty output on POSIX
123209         hosts.
123211 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
123213         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
123214         (iconv_string): Don't guess a size-zero buffer, as that might cause
123215         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
123216         result would be 'too large', where 'too large' is (heuristically)
123217         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
123218         overflow concerns.  This will prevent some unwanted malloc failures
123219         when the inputs are very large.
123221 2005-03-15  Karl Berry  <karl@gnu.org>
123223         * config/srclist.txt (config.rpath): from gettext.
123224         * config/config.rpath: update.
123226 2005-03-15  Bruno Haible  <bruno@clisp.org>
123228         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
123229         to 'negate'.
123231         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
123232         variable.
123234         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
123235         results.
123237 2005-03-14  Simon Josefsson  <jas@extundo.com>
123239         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
123240         <fx@gnu.org>.
123242 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
123244         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
123245         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
123246         intprops.h.
123247         * lib/strtol.c: Likewise.
123249 2005-03-14  Jim Meyering  <jim@meyering.net>
123251         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
123252         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
123253         to be nonzero so that we (and caller) can detect the difference
123254         between a valid zero-length expansion and an error return, even
123255         when the underlying strftime fails before writing anything into
123256         that location.
123258 2005-03-14  Bruno Haible  <bruno@clisp.org>
123260         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
123261         Update from GNU gettext 0.14.3.
123263 2005-03-10  Jim Meyering  <jim@meyering.net>
123265         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
123267 2005-03-10  Jim Meyering  <jim@meyering.net>
123269         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
123270         so that this module works on systems without fchdir.
123272 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
123274         Factor int-properties macros into a single file, except for
123275         glibc-related files.
123276         * lib/intprops.h: New file.
123277         * lib/getloadavg.c: Include it instead of limits.h.
123278         (INT_STRLEN_BOUND): Remove.
123279         * lib/human.c: Include intprops.h.
123280         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
123281         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
123282         302/1000.
123283         * lib/inttostr.h: Include intprops.h instead of limits.h.
123284         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
123285         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
123286         for consistency with intprops.h.
123287         (time_t_is_integer, twos_complement_arithmetic): Use them.
123288         * lib/sig2str.h: Include <signal.h>, intprops.h.
123289         (INT_STRLEN_BOUND): Remove.
123290         * lib/strftime.c (TYPE_SIGNED): Remove.
123291         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
123292         * lib/strtol.c: Adjust comments to match intprops.h.
123293         * lib/userspec.c: Include intprops.h.
123294         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
123295         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
123296         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
123297         instead of rolling our own expressions.
123298         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
123300         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
123301         instead of int.
123302         (my_strftime): Do not mishandle years close to INT_MAX, by doing
123303         the right thing even if adding 1900 would overflow.  Similarly
123304         for tm_mon + 1 and tm_yday + 1.
123305         Make %Y always equivalent to %C%y, and similarly for %G and %g.
123306         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
123307         (DO_SIGNED_NUMBER): New macro.
123308         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
123310 2005-03-07  Bruno Haible  <bruno@clisp.org>
123312         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
123314 2005-03-07  Bruno Haible  <bruno@clisp.org>
123316         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
123318 2005-03-04  Derek R. Price  <derek@ximbiot.com>
123320         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
123321         (func_import): Only replace files via --import when they have actually
123322         changed.
123324 2005-03-03  Derek R. Price  <derek@ximbiot.com>
123326         * m4/mmap-anon.m4: New file.
123327         * m4/pagealign_alloc.m4: New file.
123329 2005-03-03  Derek R. Price  <derek@ximbiot.com>
123330             Bruno Haible  <bruno@clisp.org>
123332         * modules/pagealign_alloc: New file.
123333         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
123335 2005-03-03  Derek R. Price  <derek@ximbiot.com>
123336             Bruno Haible  <bruno@clisp.org>
123338         * lib/pagealign_alloc.h: New file.
123339         * lib/pagealign_alloc.c: New file.
123341 2005-03-03  Bruno Haible  <bruno@clisp.org>
123343         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
123344         Use an all-permissive copyright notice, recommended by RMS.
123346 2005-03-02  Bruno Haible  <bruno@clisp.org>
123348         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
123349         of AIX, the replacement has to be done only after <string.h> is
123350         included, therefore not in config.h. stpncpy.h does the replacement,
123351         and stpncpy.c uses it.
123353 2005-03-02  Bruno Haible  <bruno@clisp.org>
123355         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
123356         stpncpy.c uses it.
123358 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
123360         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
123361         The workaround isn't strictly needed for POSIX conformance, and
123362         it's too much of a pain to configure and maintain.  We'll ask
123363         people to fix their kernels instead.
123364         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
123365         (NANOSLEEP_BUG_WORKAROUND): Remove.
123366         (xnanosleep): Remove the workaround.
123368 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
123370         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
123371         Reported by Derek Price.
123372         (Include): Add "timespec.h".
123374         * modules/xnanosleep (Depends-on): Remove gethrxtime.
123376 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
123378         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
123379         to detect nanosleep bug.
123381 2005-03-01  Bruno Haible  <bruno@clisp.org>
123383         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
123385 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
123387         * modules/gethrxtime: New file.
123388         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
123389         (Depends-on): Add gethrxtime.
123390         (configure.ac): Add gl_XNANOSLEEP.
123391         (Makefile.am): Remove lib_SOURCES line.
123393 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
123395         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
123396         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
123398 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
123400         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
123401         * lib/timespec.h (gettime): Return void, since it always
123402         succeeds now.  All uses changed.
123403         * lib/gettime.c (gettime): Likewise.
123404         [HAVE_NANOTIME]: Prefer nanotime.
123405         Assume gettimeofday succeeds, as POSIX requires.
123406         Assime time () succeeds, since other code already does.
123407         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
123408         (timespec_subtract): Remove.
123409         (NANOSLEEP_BUG_WORKAROUND): New constant.
123410         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
123411         things considerably.  Use it only on GNU/Linux hosts, since the
123412         workaround shouldn't be needed elsewhere.
123414 2005-02-24  Bruno Haible  <bruno@clisp.org>
123416         * modules/gettext (Files): Add m4/glibc2.m4.
123418 2005-02-24  Bruno Haible  <bruno@clisp.org>
123420         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
123421         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
123422         * m4/progtest.m4:
123423         Update from GNU gettext 0.14.2.
123424         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
123426 2005-02-24  Bruno Haible  <bruno@clisp.org>
123428         * lib/localcharset.c: Update from GNU gettext 0.14.2.
123429         * lib/config.charset: Update from GNU gettext 0.14.2.
123431 2005-02-24  Bruno Haible  <bruno@clisp.org>
123433         * lib/gettext.h: Update from GNU gettext 0.14.2.
123435 2005-02-23  Simon Josefsson  <jas@extundo.com>
123437         * m4/iconvme.m4: New file.
123439 2005-02-23  Jim Meyering  <jim@meyering.net>
123441         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
123442         change.
123443         Thanks to Bruno Haible for catching it.
123445 2005-02-22  Simon Josefsson  <jas@extundo.com>
123447         * modules/iconvme: New file.
123449         * MODULES.html.sh: Add iconvme.
123451 2005-02-22  Simon Josefsson  <jas@extundo.com>
123453         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
123455 2005-02-22  Simon Josefsson  <jas@extundo.com>
123457         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
123459 2005-02-22  Jim Meyering  <jim@meyering.net>
123461         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
123462         s/ifndef/ifdef/.
123464 2005-02-20  Neil Conway  <neilc@samurai.com>
123466         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
123467         returned by OSX/Darwin if the specified buffer is not large
123468         enough for the hostname.
123470 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
123472         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
123473         pass it to _help, otherwise the latter coredumps trying to
123474         dereference state.root_argp.
123476 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
123478         * modules/chdir-long (Depends-on): Add memrchr.
123479         * modules/memrchr (Files): Add lib/memrchr.h.
123480         (Include): "memrchr.h".
123482 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
123484         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
123486 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
123488         * lib/memrchr.h: New file.
123489         * lib/chdir-long.c: Include it.
123490         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
123491         Don't bother including stddef.h.
123493 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
123495         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
123496         inclusion.
123497         Include <sys/types.h>, for dev_t.
123498         (ME_DUMMY, ME_REMOTE): Move from here....
123499         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
123500         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
123501         Dmitry V. Levin.
123502         Include mountlist.h first, to test the interface.
123504 2005-01-29  Bruno Haible  <bruno@clisp.org>
123506         * lib/progname.c (program_name): Initialize.
123507         Needed when linking statically on MacOS X.
123509 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
123511         Sync from coreutils.
123512         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
123513         (Depends-on): Add c-strtod.
123514         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
123516 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
123518         Sync from coreutils.
123519         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
123521         Remove files that are specific to coreutils.
123522         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
123524 2005-01-28  Bruno Haible  <bruno@clisp.org>
123526         * modules/javacomp: New file.
123527         * MODULES.html.sh (Java): Add javacomp.
123529 2005-01-28  Bruno Haible  <bruno@clisp.org>
123531         * m4/javacomp.m4: New file, from GNU gettext.
123533 2005-01-28  Bruno Haible  <bruno@clisp.org>
123535         * lib/javacomp.sh.in: New file, from GNU gettext.
123536         * lib/javacomp.h: New file, from GNU gettext.
123537         * lib/javacomp.c: New file, from GNU gettext.
123539 2005-01-26  Simon Josefsson  <jas@extundo.com>
123541         * lib/gai_strerror.c: Use GPL in header.
123543 2005-01-26  Bruno Haible  <bruno@clisp.org>
123545         * modules/javaexec: New file.
123546         * MODULES.html.sh (Java): Add javaexec.
123548 2005-01-26  Bruno Haible  <bruno@clisp.org>
123550         * m4/javaexec.m4: New file, from GNU gettext.
123552 2005-01-26  Bruno Haible  <bruno@clisp.org>
123554         * lib/javaexec.sh.in: New file, from GNU gettext.
123555         * lib/javaexec.h: New file, from GNU gettext.
123556         * lib/javaexec.c: New file, from GNU gettext.
123558 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
123560         * modules/lchown (Depends-on): Remove lchown.h
123562 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
123564         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
123565         must be defined if the header file was not found, in order
123566         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
123568 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
123570         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
123571         initializers for struct pentry_state.
123572         (__argp_error): Check return value of __asprintf
123573         (__argp_failure): Translate error message
123575         * lib/argp-parse.c: Removed braces around the expansion of N_()
123577 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
123579         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
123580         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
123581         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
123582         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
123583         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
123584         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
123585         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
123586         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
123587         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
123588         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
123589         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
123590         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
123591         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
123592         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
123593         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
123594         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
123595         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
123596         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
123597         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
123598         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
123599         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
123600         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
123601         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
123602         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
123603         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
123604         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
123605         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
123606         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
123607         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
123608         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
123609         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
123610         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
123611         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
123612         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
123613         xstrtol.m4, xstrtoumax.m4, yesno.m4:
123614         Use an all-permissive copyright notice, recommended by RMS.
123616 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
123618         * modules/chdir-long (Depends-on): Remove mempcpy.
123620 2005-01-21  Jim Meyering  <jim@meyering.net>
123622         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
123623         same value as for Solaris 9.
123625         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
123626         component length.  This included changing the parameter to be
123627         of type `char *' rather than `char const *'.
123628         * lib/chdir-long.h (chdir_long): Update prototype.
123630         * lib/openat.c (fdopendir, fstatat): New functions.
123631         * lib/openat.h: Include headers required for use of DIR and struct
123632         stat.
123633         [AT_SYMLINK_NOFOLLOW]: Define.
123634         (fdopendir, fstatat): Add prototypes.
123636 2005-01-21  Bruno Haible  <bruno@clisp.org>
123638         * modules/classpath: New file.
123639         * MODULES.html.sh (Java): Add classpath.
123641 2005-01-21  Bruno Haible  <bruno@clisp.org>
123643         * lib/classpath.h: New file, from GNU gettext.
123644         * lib/classpath.c: New file, from GNU gettext.
123646 2005-01-20  Simon Josefsson  <jas@extundo.com>
123648         * modules/version-etc-fsf: New file.
123650 2005-01-20  Simon Josefsson  <jas@extundo.com>
123652         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
123653         * lib/version-etc.c: Remove version_etc_copyright.
123654         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
123655         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
123657 2005-01-20  Simon Josefsson  <jas@extundo.com>
123659         * lib/base64.h (isbase64): Add.
123661         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
123662         using a unsigned prototype, don't inline.
123663         (base64_decode): Use it.
123665 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
123667         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
123668         it.
123670 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
123672         * lib/save-cwd.c (save_cwd): Remove code to support the case
123673         where fchdir is missing or flaky.
123675 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
123677         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
123679 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
123681         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
123682         AC_LIBSOURCES now does this.
123683         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
123684         with new ullong_max module.
123686 2005-01-19  Bruno Haible  <bruno@clisp.org>
123688         * modules/sh-quote: New file.
123689         * MODULES.html.sh (Executing programs): Add sh-quote.
123691 2005-01-19  Bruno Haible  <bruno@clisp.org>
123693         * lib/sh-quote.h: New file, from GNU gettext.
123694         * lib/sh-quote.c: New file, from GNU gettext.
123696 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
123698         Merge from coreutils.
123699         * m4/ullong_max.m4: New file.
123700         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
123701         (gl_MACROS): Assume localeconv exists.
123703 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
123705         Merge changes from coreutils, as described below in several
123706         changelogs dated today.
123708         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
123709         (O_DIRECTORY): Remove; not needed here, since "." must be
123710         a directory.  All uses removed.
123711         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
123712         universal on Suns, and we also need to test for IRIX.
123713         Revamp code to use 'if' rather than '#if'.
123714         Avoid unnecessary comparison of cwd->desc to 0.
123716         * lib/utimens.c (futimens): Robustify the previous patch, by checking
123717         for known valid error numbers rather than observed invalid ones.
123719 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
123721         * modules/ullong_max: New file.
123723         * modules/chdir-long, modules/openat: New files.
123724         * modules/save-cwd (Depends-on): Depend on chdir-long.
123725         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
123727 2005-01-18  Jim Meyering  <jim@meyering.net>
123729         Merge from coreutils.
123730         * m4/chdir-long.m4, m4/openat.m4: New files.
123731         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
123732         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
123733         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
123734         is sane and DOES follow symlinks.  Besides, testing 20 different
123735         systems found no broken chown implementations.
123736         Prompted by a change in rsync's copy of this macro.
123737         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
123739         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
123741         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
123742         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
123743         NULL-means-set-to-current-time semantics.
123744         Remove temporary file immediately, rather than waiting
123745         for configure's at-exit trap code to do it.
123747 2005-01-18  Jim Meyering  <jim@meyering.net>
123749         * lib/version-etc.c (version_etc_copyright): Update copyright date.
123751         * lib/utimens.c (futimens): Account for the fact that futimes
123752         can also fail with errno == ENOSYS or errno == ENOENT.
123753         Patch from Dmitry V. Levin.
123755         Change the name of the robust chdir function from chdir to chdir_long.
123756         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
123757         (restore_cwd): Use chdir_long, not chdir.
123758         * lib/chdir-long.c: Renamed from chdir.c.
123759         * lib/chdir-long.h: Renamed from chdir.h.
123760         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
123761         Hurd.
123763 2005-01-18  Bruno Haible  <bruno@clisp.org>
123765         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
123766         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
123767         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
123768         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
123769         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
123770         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
123771         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
123772         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
123773         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
123774         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
123775         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
123776         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
123777         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
123778         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
123779         Use an all-permissive copyright notice, recommended by RMS.
123781 2005-01-18  Bob Proulx  <bob@proulx.com>
123783         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
123784         simplify offsetof() macro construct to avoid compile failure with
123785         native HP-UX 11.0 ANSI C compiler.
123787 2005-01-17  Bruno Haible  <bruno@clisp.org>
123789         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
123790         redundant because stpncpy.m4 takes care of it.
123792 2005-01-17  Bruno Haible  <bruno@clisp.org>
123794         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
123796 2005-01-17  Bruno Haible  <bruno@clisp.org>
123798         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
123799         used.
123801 2005-01-17  Bruno Haible  <bruno@clisp.org>
123803         * lib/fwriteerror.h (fwriteerror): Change specification to include
123804         fclose.
123805         * lib/fwriteerror.c: Include <stdbool.h>.
123806         (fwriteerror): At the end, close the file stream. Record whether
123807         stdout was already closed.
123809 2005-01-17  Bruno Haible  <bruno@clisp.org>
123811         * lib/execute.c (environ): Declare if needed.
123812         * lib/pipe.c (environ): Likewise.
123813         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
123815 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
123817         * modules/argp: Depend on vsnprintf
123819 2005-01-10  Jim Meyering  <jim@meyering.net>
123821         * modules/closeout (Depends-on): Add atexit.
123823 2005-01-06  Bruno Haible  <bruno@clisp.org>
123825         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
123827 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
123829         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
123830         definitions to be after all include files, to avoid collisions.
123831         Problem reported by Bob Proulx.
123833 2005-01-04  Jim Meyering  <jim@meyering.net>
123835         Changes imported from coreutils.
123836         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
123837         as the mkstemp template, use a temporary directory and an
123838         8.3-friendly template to avoid trouble on systems like DJGPP.
123839         Reported by Juan M. Guerrero via Stepan Kasal.
123840         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
123841         close. Remove the temporary directory right away, rather than waiting
123842         for configure's at-exit trap code to do it.
123843         Suggestion from Stepan Kasal.
123845 2005-01-01  Simon Josefsson  <jas@extundo.com>
123847         * gnulib-tool: Print #include directives when --import'ing.
123849 2004-12-28  Simon Josefsson  <jas@extundo.com>
123851         * tests/test-base64.c: Include required header files.  Remove
123852         unused variables.
123854 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
123856         * modules/error (Depends-on): Remove gettext.
123858 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
123860         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
123861         not needed.  This removes a dependency on the gettext module.
123862         [defined _LIBC]: Do not include <libintl.h>; not needed.
123864 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
123866         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
123867         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
123869 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
123871         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
123872         HAVE_DECL_STRTOLD.
123874 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
123876         * modules/getdate (Depends-on): Remove alloca-opt.
123878 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
123880         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
123882 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
123884         * lib/argp-parse.c: Include <stddef.h>.
123885         (alignof, alignto): New macros.
123886         (parser_init): Don't assume that void * is aligned sufficiently
123887         for struct option.
123889         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
123890         need to extend the stack.
123891         (YYINITDEPTH): New macro, so that the initial stack isn't overly
123892         large.
123894 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
123896         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
123898 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
123900         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
123901         (2004-10-24) change.  Apparently this was a false alarm.
123903         * modules/getdate: Depend on alloca-opt, not alloca.
123905 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
123907         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
123908         Remove now-obsolete comment about AIX.
123909         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
123910         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
123911         (YYMAXDEPTH): New macro.
123913 2004-12-18  Simon Josefsson  <jas@extundo.com>
123915         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
123917 2004-12-18  Bruno Haible  <bruno@clisp.org>
123919         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
123921 2004-12-18  Bruno Haible  <bruno@clisp.org>
123923         * lib/fatal-signal.c (fatal_signals): Make non-const.
123924         (init_fatal_signals): New function.
123925         (uninstall_handlers, install_handlers): Ignore signals that were set to
123926         SIG_IGN.
123927         (at_fatal_signal): Call init_fatal_signals.
123928         (init_fatal_signal_set): Likewise. Ignore signals that were set to
123929         SIG_IGN.
123930         Reported by Paul Eggert.
123932 2004-12-18  Bruno Haible  <bruno@clisp.org>
123934         * doc/alloca.texi: New file.
123935         * doc/alloca-opt.texi: New file.
123937 2004-12-17  Jim Meyering  <jim@meyering.net>
123939         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
123940         Otherwise, install-sh could exit with improper exit status when
123941         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
123943 2004-12-16  Simon Josefsson  <jas@extundo.com>
123945         * tests/test-base64.c: Add license.
123947 2004-12-15  Stepan Kasal  <address@hidden>
123949         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
123951 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
123953         * modules/getcwd (Files): Add m4/d-ino.m4.
123954         Suggested by Mark D. Baushke.
123956 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
123958         * lib/getdate.y (textint): New member "negative".
123959         (time_zone_hhmm): New function.
123960         Expect 14 shift-reduce conflicts, not 13.
123961         (o_colon_minutes): New rule.
123962         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
123963         (yylex): Set the "negative" member of signed numbers.
123965 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
123967         * doc/getdate.texi (Time of day items, Time zone items):
123968         Describe new formats +00:00, UTC+00:00.
123970 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
123972         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
123973         spurious "-l"s.  Problem reported by Stepan Kasal.
123975 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
123977         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
123978         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
123980 2004-12-04  Simon Josefsson  <jas@extundo.com>
123982         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
123983         Vandoorselaere <yoann@prelude-ids.org>.
123985 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
123987         Changes imported from coreutils.
123988         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
123989         exist.
123990         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
123992 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
123994         Changes imported from coreutils.
123995         * lib/hard-locale.c: Assume <locale.h> exists.
123996         Include "strdup.h".
123997         (GLIBC_VERSION): New macro.
123998         (hard_locale): Assume setlocale exists.
123999         Rewrite to avoid #ifdef.
124000         Use strdup rather than malloc + strcpy.
124001         * lib/human.c: Assume <locale.h> exists.
124002         (human_readable): Assume localeconv exists.
124004 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
124006         * modules/hard-locale (Depends-on): Add strdup.
124008 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
124010         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
124011         convert T2, not T.  (Imported from libc.)
124013 2004-11-30  Simon Josefsson  <jas@extundo.com>
124015         * modules/restrict (License): Change to LGPL.
124017 2004-11-30  Simon Josefsson  <jas@extundo.com>
124019         * m4/restrict.m4: Add copyright and copying conditions.
124021 2004-11-30  Simon Josefsson  <jas@extundo.com>
124023         * m4/base64.m4: New file.
124025 2004-11-30  Simon Josefsson  <jas@extundo.com>
124027         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
124028         base64.
124030         * tests/test-base64.c: New file.
124032         * modules/base64: New file.
124034 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
124036         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
124037         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
124039         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
124041 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
124043         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
124044         (__getcwd.c): Don't restore errno; glibc doesn't.
124045         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
124046         first, falling back to our code only if its results look suspicious.
124047         Ensure that the resulting buffer is only as large as necessary.
124049         * lib/readutmp.c: Include readutmp.h first.
124050         Include <errno.h>, since readutmp.h no longer does that.
124051         * lib/readutmp.h: Don't include <errno.h>,
124052         <sys/param.h>, <time.h>; not needed to establish interface.
124053         (errno): Remove decl.
124054         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
124055         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
124056         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
124058 2004-11-28  Simon Josefsson  <jas@extundo.com>
124060         * lib/base64.h, base64.c: New file.
124062 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
124064         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
124066 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
124068         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
124069         (Depends-on): Remove pathmax, same.  Add mempcpy.
124070         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
124071         (Makefile.am): Append getcwd.h to lib_SOURCES.
124072         (Include): Add getcwd.h.
124073         (Maintainer): Change from Jim Meyering to "all, glibc",
124074         since getdate now uses intended-for-glibc code.
124075         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
124076         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
124078 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
124080         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
124081         HP's ANSI C compiler.
124082         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
124083         Declaring int functions causes warnings on some modern systems and
124084         shouldn't be needed to compile on ancient ones.
124085         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
124086         defined.
124088         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
124089         with the following changes.
124090         (__set_errno): Parenthesize properly.
124091         Include <stdbool.h>.
124092         (MIN, MAX, MATCHING_INO): New macros.
124093         (__getcwd): Define with prototype, not K&R form.
124094         Use heuristics to allocate default buffer on stack if possible.
124095         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
124096         behavior, and to avoid the PATH_MAX limit when computing
124097         ../../../../...
124098         Use MATCHING_INO to compare inode number to file.
124099         Check for arithmetic overflow in size calculations.
124100         Fix bug in reallocation of dot array that caused getcwd to fail
124101         on directories nested deeper than 75.
124102         Be more careful about saving errno on error.
124103         Do not use realloc; use only free+malloc, as this is a bit
124104         more flexible and avoids a needless copy operation.
124105         Do not inspect st_dev and st_ino for symbolic links; POSIX
124106         doesn't specify the latter.
124107         Check for closedir errors.
124108         Avoid needless casts.
124109         Use "#ifdef weak_alias" around weak_alias, to be like other
124110         glibc code.
124111         The following changes to getcwd.c have effect only when used in
124112         gnulib; they have no effect inside glibc proper.
124113         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
124114         as alloca isn't used.
124115         (alloca, __alloca): Likewise.
124116         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
124117         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
124118         unconditionally, as gnulib assumes C89 or better.
124119         Do not include <sys/param.h>.
124120         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
124121         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
124122         better.
124123         (NULL) [!defined NULL]: Remove; we assume C89 or better.
124124         Include <dirent.h> in a way that is compatible with modern Autoconf.
124125         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
124126         New macros, if not already defined.
124127         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
124128         Use "_LIBC", not "defined _LIBC", for consistency.
124129         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
124130         a mempcpy module.
124131         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
124132         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
124133         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
124134         credit only to Jim Meyering and adjust the copyright dates.
124135         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
124136         <stdlib.h>, <unistd.h>, "pathmax.h".
124137         Instead, include "xgetcwd.h" (first) and "getcwd.h".
124138         (INITIAL_BUFFER_SIZE): Remove.
124139         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
124141 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
124143         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
124144         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
124145         Use the _ONCE methods, for efficiency.
124146         Check for fcntl.h.  In test program, include <errno.h>
124147         and <fcntl.h> if available.  Remove old K&R cruft from
124148         test program.  Check for common errors in GNU/Linux,
124149         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
124150         don't do AC_LIBOBJ, as that's getcwd.m4's job.
124151         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
124152         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
124153         name accordingly.
124154         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
124155         accommodate new getcwd.c.
124156         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
124157         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
124158         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
124159         that's all we need now.
124161 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
124163         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
124164         argp-parse.c depends on getopt internals, that means we should
124165         always use our getopt, to be on the safe side.
124166         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
124167         order not to spoil the result of an eventual previous invocation
124168         of gl_GETOPT_SUBSTITUTE.
124170 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
124172         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
124173         redefinition warnings. To avoid them, include the defines
124174         in `#if !defined __need_getopt ... #endif'. The only place
124175         where __getopt_argv_const is used is in definitions
124176         of getopt_long and getopt_long_only below, which are as well
124177         protected by `#ifndef __need_getopt'.
124178         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
124179         __need_getopt after including <stdio.h> and <unistd.h> These
124180         headers might have defined it.
124182 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
124184         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
124186 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
124188         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
124189         (futimens): New function, which uses futimes if available.
124190         (futimens, utimens): Support timespec==NULL, with same semantics
124191         as utime and utimens.
124192         * lib/utimens.h (futimens): New decl.
124194 2004-11-23  Jim Meyering  <jim@meyering.net>
124196         * lib/getopt_.h: Remove trailing blanks.
124198 2004-11-23  Jim Meyering  <jim@meyering.net>
124200         * lib/__fpending.c: Add comment.
124202 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
124204         * modules/canonicalize (Depends-on): Add xreadlink.
124205         Problem reported by James Youngman.
124207 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
124209         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
124210         New macros.
124211         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
124212         optopt): Use them instead of invoking ## directly; otherwise, the
124213         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
124215 2004-11-19  Bruno Haible  <bruno@clisp.org>
124217         * lib/strtok_r.c: Move comments from here...
124218         * lib/strtok_r.h: ... to here.
124220 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
124222         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
124223         implementations that mishandle size_t overflow.
124225 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
124227         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
124228         might fail.  Problem reported by Yoann Vandoorselaere.
124229         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
124230         implementations that mishandle size_t overflow.
124232 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
124234         * modules/canon-host (Depends-on): Add strdup.
124236 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
124238         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
124240 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
124242         * lib/canon-host.c: Include "strdup.h".
124243         (canon_host): Use getaddrinfo if available, so that IPv6 works.
124244         Use strdup instead of malloc/strcpy to duplicate strings.
124246         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
124247         (human_space_before_unit): New constant.
124248         * lib/human.c (human_readable): Support it.
124250         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
124251         (xgetcwd): Set errno correctly when failing.
124252         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
124253         the failure is actually due to a PATH_MAX problem.
124255         Further getopt changes to make it more likely that glibc will
124256         buy the changes back.
124257         * lib/getopt.c (POSIXLY_CORRECT): New constant.
124258         (getopt): Use it, so to preserve glibc semantic
124259         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
124260         when compiling for libc.
124261         * lib/getopt_.h (__getopt_argv_const): Bring it back.
124262         (getopt_long, getopt_long_only): Use it.
124264         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
124265         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
124266         (getopt): Argv is now char * const *, as per standard.
124267         (_getopt_internal_r, _getopt_internal): Argv is now char **,
124268         not char *__getopt_argv_const *.
124269         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
124270         _getopt_long_only_r): Likewise.
124271         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
124272         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
124273         _getopt_long_r, _getopt_long_only_r): Likewise.
124274         * lib/getopt_.h (__getopt_argv_const): Remove.
124275         (getopt): Argv is now char * const *, as per standard.
124277         * lib/getdate.y (tORDINAL): New token.
124278         (day, relunit): Allow it for relative times.
124279         (relative_time_table): Use tORDINAL for ordinals.
124281 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
124283         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
124284         Document that "second" isn't allowed as an ordinal number.
124286 2004-11-16  Jim Meyering  <jim@meyering.net>
124288         * modules/closeout (Depends-on): Add fpending.
124290 2004-11-15  Jim Meyering  <jim@meyering.net>
124292         * lib/closeout.c: Include "__fpending.h" once again.
124293         Include <stdbool.h>.
124294         (close_stdout): Don't fail just because stdout was closed initially,
124295         since some programs don't write to stdout in the normal course of
124296         operation (other than --version and --help), and we don't want this
124297         function to make e.g. `touch file >&-' fail.
124298         But do fail if it was closed and someone has tried to write to it.
124299         E.g., `printf foo >&-' must fail.
124301 2004-11-13  Jim Meyering  <jim@meyering.net>
124303         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
124305 2004-11-12  Simon Josefsson  <jas@extundo.com>
124307         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
124308         small doc fix is still pending.
124310 2004-11-11  Simon Josefsson  <jas@extundo.com>
124312         * modules/strtok_r: New file.
124314         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
124315         strtok_r.
124317 2004-11-11  Simon Josefsson  <jas@extundo.com>
124319         * m4/strtok_r.m4: New file.
124321         * m4/getopt.m4: Replace opterr.
124323 2004-11-11  Simon Josefsson  <jas@extundo.com>
124325         * lib/strtok_r.h, strtok_r.c: New file.
124327 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
124329         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
124330         of replacing opterr, getopt, etc.  This should handle the
124331         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
124333 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
124335         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
124336         we can stop lying to compilers about the constness of argv when we
124337         are compiled outside glibc.
124338         (getopt, getopt_long, getopt_long_only): Use it.
124339         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
124340         _getopt_internal, getopt): Likewise.
124341         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
124342         _getopt_long_only_r): Likewise.
124343         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
124344         _getopt_long_r, _getopt_long_only_r): Likewise.
124346         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
124347         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
124348         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
124349         the other external symbols.
124350         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
124351         declaration, since the above renaming now works around collisions.
124353 2004-11-11  Jim Meyering  <jim@meyering.net>
124355         * lib/linebreak.c: Remove trailing blanks.
124356         * lib/alloca_.h: Likewise.
124357         * lib/acosl.c: Likewise.
124358         * lib/euidaccess.c: Likewise.
124359         * lib/allocsa.h: Likewise.
124361 2004-11-10  Simon Josefsson  <jas@extundo.com>
124363         * m4/getaddrinfo.m4: New file.
124365 2004-11-10  Simon Josefsson  <jas@extundo.com>
124367         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
124369 2004-11-10  Simon Josefsson  <jas@extundo.com>
124371         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
124372         getaddrinfo.
124374         * modules/getaddrinfo: New file.
124376 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
124378         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
124380 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
124382         * lib/mktime.c (SHR): New macro, which is a portable
124383         substitute for >> that should work even on Crays.
124384         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
124385         Problem reported by Mark D. Baushke in
124386         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00071.html>.
124387         * lib/getdate.y (SHR): Likewise.
124388         (tm_diff): Use it.
124389         * lib/strftime.c (SHR): Likewise.
124390         (tm_diff): Use it.
124391         * lib/quotearg.c (struct quoting_options): Use unsigned int for
124392         quote_these_too, so that right shifts are well defined.  All uses
124393         changed.
124395 2004-11-10  Jim Meyering  <jim@meyering.net>
124397         Ensure that no close failure goes unreported.
124398         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
124399         return early when it seems there's nothing to flush.
124400         Don't include __fpending.h.
124402 2004-11-10  Jim Meyering  <jim@meyering.net>
124404         * modules/closeout (Depends-on): Remove fpending.
124406 2004-11-10  Jim Meyering  <jim@meyering.net>
124408         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
124410 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
124412         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
124413         gl_FUNC_STRFTIME.
124414         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
124415         and AC_REQUIRE when possible, to avoid duplicate checks.
124416         Check for <wchar.h>.
124418 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
124420         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
124422 2004-11-09  Bruno Haible  <bruno@clisp.org>
124424         * m4/sockpfaf.m4: New file.
124426 2004-11-05  Bruno Haible  <bruno@clisp.org>
124428         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
124429         Reported by Mark D. Baushke <mdb@cvshome.org>.
124431 2004-11-04  Bruno Haible  <bruno@clisp.org>
124433         2004-09-11  Bruno Haible  <bruno@clisp.org>
124434                 * allocsa.valgrind: New file.
124435         2004-02-06  Bruno Haible  <bruno@clisp.org>
124436                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
124437                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
124438                 Reported by Christopher Seip <chris.seip@hp.com>.
124440 2004-11-04  Bruno Haible  <bruno@clisp.org>
124442         * modules/allocsa (Files): Add lib/allocsa.valgrind.
124443         (Makefile.am): Distribute it.
124445 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
124447         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
124448         with errno == ERANGE if the buffer is too small.
124449         Problem reported by Mark D. Baushke.
124451 2004-11-03  Albert Chin  <china@thewrittenword.com>
124452             Paul Eggert  <eggert@cs.ucla.edu>
124454         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
124455         equivalent, substitute $ac_type for equivalent type rather than
124456         blindly using uint32_t *always* which won't work if uint32_t is not
124457         available.  Define _UINT32_T to work around typedef of uint32_t if
124458         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
124459         2.5.1.
124461 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
124463         * m4/jm-macros.m4: Sync from coreutils.
124464         (gl_MACROS): Check for mbrlen, for pathchk.
124465         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
124467 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
124469         * lib/xreadlink.c (MAXSIZE): New macro.
124470         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
124471         size does not exceed MAXSIZE.  Avoid cast.
124472         As suggested by Mark D. Baushke in
124473         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00009.html>,
124474         if readlink fails with buffer size just under MAXSIZE, try again
124475         with MAXSIZE.
124477 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
124479         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
124481 2004-11-02  Derek R. Price  <derek@ximbiot.com>
124482         and  Paul Eggert  <eggert@cs.ucla.edu>
124484         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
124485         (get_date): Overparenthesize to avoid GCC warning.
124487 2004-11-02  Bruno Haible  <bruno@clisp.org>
124489         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
124490         returns void.
124492 2004-11-02  Bruno Haible  <bruno@clisp.org>
124494         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
124495         function returns void.
124497 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
124499         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
124500         fflush_unlocked, flockfile, funlockfile, funlockfile,
124501         fputs_unlocked, putc_unlocked.
124503 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
124505         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
124506         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
124507         already declared.
124509 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
124511         * modules/getdate (Files): Add doc/getdate.texi.
124512         (Depends-on): Add setenv, xalloc.
124514 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
124516         * lib/getdate.y: Add support for TZ="foo" within a date string.
124517         Fix some bugs near time_t boundaries.  Reject dates with
124518         out-of-range components, e.g., "Sept 31".
124519         Include <stdlib.h>, "setenv.h", "xalloc.h".
124520         (ISDIGIT_LOCALE): Remove; unused.
124521         Note that the TZ and time functions used here are not reentrant.
124522         (mktime_ok, get_tz): New functions.
124523         (TZBUFSIZE): New constant.
124524         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
124525         This requires that we sometimes generate our own TZ="XXX..." setting.
124527 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
124529         * doc/getdate.texi: New file, from coreutils with modifications for
124530         the new TZ parsing.
124532 2004-10-27  Derek R. Price  <derek@ximbiot.com>
124534         * lib/mktime.c (not_equal_tm): Remove redundant check.
124536 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
124538         * modules/regex (lib_SOURCES): Add regex.c.
124539         Reported by James Youngman in
124540         <http://lists.gnu.org/r/bug-gnulib/2004-10/msg00199.html>.
124542 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
124544         * lib/getdate.y: Use Bison 1.875 features, and some minor
124545         code cleanups.  This change does not affect semantics.
124546         Don't include <stdlib.h>; no longer needed.
124547         Don't include unlocked-io.h; only the "#if TEST" code uses
124548         stdio, and performance isn't crucial there.
124549         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
124550         Bison 1.875 features as described below.
124551         All uses of "PC." replaced by "pc->".
124552         (YYSTYPE): Add a forward declaration.
124553         (yylex, yyerror): Use full prototypes in forward decls.
124554         Use "%pure-parser" rather than obsolescent "%pure_parser".
124555         Use %parse-param and %lex-param instead of obsolescent
124556         YYPARSE_PARAM and YYLEX_PARAM.
124557         (meridian_table, month_and_day_table, time_units_table,
124558         relative_time_table, time_zone_table, military_table,
124559         lookup_zone, lookup_word, get_date):
124560         Use NULL instead of 0 where appropriate.
124561         (to_hour): Avoid abort (), to avoid a dependency on
124562         stdlib.h.
124563         (yyerror, yylex): Now accepts parser_control * arg.
124564         (main) [TEST]: Use '\0' rather than 0 for char.
124566 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
124568         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
124570 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
124572         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
124573         It's now the caller's responsibility to handle the case where
124574         !HAVE_GETPAGESIZE && !defined getpagesize.
124576         * lib/mktime.c (leapyear): Arg is long int, not int.
124578 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
124580         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
124582 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
124584         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
124585         missing.  Problem reported by James Youngman.
124587 2004-10-16  Simon Josefsson  <jas@extundo.com>
124589         * gnulib-tool: Fix comments.  Fix parse problem.
124590         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
124592 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
124594         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
124595         implementation of getopt_long.  Problem reported by Alexander Taler in:
124596         http://lists.gnu.org/r/bug-gnulib/2004-10/msg00103.html
124598 2004-10-15  Bruno Haible  <bruno@clisp.org>
124600         * gnulib-tool: Untabify. Initialize supplied_libname.
124601         (func_usage): More homogenous output.
124602         (func_modules_transitive_closure, func_modules_to_filelist,
124603         func_emit_lib_Makefile_am): New functions.
124604         (func_import): New function, extracted from big case statement. Use
124605         func_get_license, func_modules_transitive_closure,
124606         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
124607         opt_lgpl. Don't use test -a, as it's not portable.
124608         (func_create_testdir): Use func_modules_transitive_closure,
124609         func_modules_to_filelist, func_emit_lib_Makefile_am.
124611 2004-10-15  Bruno Haible  <bruno@clisp.org>
124613         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
124615 2004-10-15  Bruno Haible  <bruno@clisp.org>
124617         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
124618         the portions belonging to each module.
124619         Suggested by Derek Robert Price <derek@ximbiot.com>.
124621 2004-10-12  Simon Josefsson  <jas@extundo.com>
124623         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
124624         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
124625         to real functions.
124627 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
124629         * modules/vsnprintf: New file.
124631 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
124633         * m4/vsnprintf.m4: New file.
124635 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
124637         * lib/vsnprintf.h: New file.
124638         * lib/vsnprintf.c: New file.
124640 2004-10-11  Bruno Haible  <bruno@clisp.org>
124642         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
124643         vsnprintf.
124645 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
124647         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
124649 2004-10-07  Bruno Haible  <bruno@clisp.org>
124651         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
124652         fits into the provided buffer.
124654 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
124656         * lib/diacrit.c, diacrit.h: Add GPL notice.
124658         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
124659         notice.
124660         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
124661         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
124662         This avoids a potential constant-folding bug.
124664 2004-10-05  Bruno Haible  <bruno@clisp.org>
124666         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
124667         for the declaration of strsep.
124669 2004-10-05  Bruno Haible  <bruno@clisp.org>
124671         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
124673 2004-10-04  Simon Josefsson  <jas@extundo.com>
124675         * modules/memmem: New file.
124676         * tests/test-memmem.c: New file.
124677         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
124679 2004-10-04  Simon Josefsson  <jas@extundo.com>
124681         * m4/memmem.m4: New file.
124683 2004-10-04  Simon Josefsson  <jas@extundo.com>
124685         * lib/memmem.h: New file.
124686         * lib/memmem.c: New file, taken from glibc.
124688 2004-10-04  Simon Josefsson  <jas@extundo.com>
124690         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
124691         '#ifdef USE_UNLOCKED_IO'.
124693 2004-10-04  Simon Josefsson  <jas@extundo.com>
124695         * config/srclist.txt: Add memmem from glibc.
124697 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
124699         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
124701         * modules/argmatch, modules/argp, modules/closeout, modules/error,
124702         modules/exclude, modules/getdate, modules/getline,
124703         modules/getndelim2, modules/getpass, modules/getpass-gnu,
124704         modules/getusershell, modules/linebuffer, modules/md5,
124705         modules/mountlist, modules/posixtm, modules/readtokens,
124706         modules/readutmp, modules/regex, modules/sha1,
124707         modules/version-etc, modules/yesno:
124708         Remove dependency on unlocked-io.
124710 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
124712         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
124714         * m4/unlocked-io.m4: Add copyright notice.
124715         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
124717 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
124719         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
124720         * lib/xmalloc.c (xmemdup): Likewise.
124721         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
124722         XFREE): Remove these long-obsolescent macros.
124723         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
124724         * lib/xstrdup.c: Remove.
124726         * lib/regex.c (re_comp): Cast gettext return value to char *,
124727         Problem reported by Martin Neitzel via Mark D. Baushke.
124729 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
124731         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
124732         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
124733         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
124734         regex.c, sha1.c, version-etc.c, yesno.c:
124735         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
124736         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
124737         the includer's responsibility.
124739         Sync from coreutils.
124741         * lib/modechange.c (mode_compile): Don't decrement a pointer that
124742         points to the start of a string, as the C Standard says the
124743         resulting behavior is undefined.
124745         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
124746         simple -> simple_backups, numbered_existing ->
124747         numbered_existing_backups, numbered -> numbered_backups
124748         to avoid shadowing problems.  All uses changed.
124749         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
124750         * lib/backupfile.c (check_extension, numbered_backup):
124751         Rename locals to avoid shadowing 'basename'.
124752         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
124753         once.
124755         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
124756         * lib/.cvsignore: Add getopt.h.
124758 2004-10-04  Bruno Haible  <bruno@clisp.org>
124760         * modules/README: New file.
124761         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
124762         not a module.
124764 2004-10-02  Jim Meyering  <jim@meyering.net>
124766         * lib/dirfd.h, getpagesize.h: Add copyright notice.
124768 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
124770         * modules/strsep: New file.
124772 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
124774         * m4/strsep.m4: New file.
124776 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
124778         * lib/strsep.h: New file.
124779         * lib/strsep.c: New file.
124781 2004-10-01  Simon Josefsson  <jas@extundo.com>
124783         * lib/snprintf.c (snprintf): Handle size==0.
124785 2004-10-01  Simon Josefsson  <jas@extundo.com>
124786             Bruno Haible  <bruno@clisp.org>
124788         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
124789         (snprintf): Declare 'args'.
124791 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
124793         * lib/snprintf.c: Remove comments as to why each header is needed.
124795 2004-10-01  Bruno Haible  <bruno@clisp.org>
124797         * MODULES.html.sh: Add strsep.
124799 2004-09-30  Simon Josefsson  <jas@extundo.com>
124801         * modules/snprintf: New file.
124803 2004-09-30  Simon Josefsson  <jas@extundo.com>
124805         * m4/snprintf.m4: New file.
124807 2004-09-30  Simon Josefsson  <jas@extundo.com>
124809         * lib/snprintf.h, lib/snprintf.c: New files.
124811 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
124813         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
124814         (hol_entry_help): Never translate an empty string.
124815         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
124816         * lib/argp.h (OPTION_NO_TRANS): New option.
124818 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
124820         * modules/argp (Maintainer): Replace Simon Josefsson
124821         by Sergey Poznyakoff.
124823 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
124825         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
124826         changes merged back into glibc.
124828 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
124830         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
124832 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
124834         * lib/xvasprintf.c: Include xalloc.h.
124835         (xvasprintf): Use xalloc_die, not xmalloc_die.
124837 2004-09-29  Bruno Haible  <bruno@clisp.org>
124839         * modules/alloca-opt: New file, derived from modules/alloca.
124840         * modules/allocsa: Depend on alloca-opt instead of alloca.
124841         * modules/setenv: Likewise.
124842         * modules/vasnprintf: Likewise.
124843         * MODULES.html.sh: Add alloca-opt.
124845 2004-09-28  Simon Josefsson  <jas@extundo.com>
124847         * gnulib-tool: New parameter --lgpl, to asseert that modules are
124848         LGPL, and to replace license template from GPL to LGPL.
124850 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
124852         * modules/dummy: Change license to LGPL.
124854 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
124856         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
124858 2004-09-24  Simon Josefsson  <jas@extundo.com>
124860         * modules/minmax (License): Change from GPL to LGPL.
124862 2004-09-23  Simon Josefsson  <jas@extundo.com>
124864         * gnulib-tool (--import): Typo.
124866 2004-09-23  Simon Josefsson  <jas@extundo.com>
124868         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
124870 2004-09-22  Bruno Haible  <bruno@clisp.org>
124872         * modules/*: Add 'License' field.
124873         * gnulib-tool: Accept --extract-license option.
124874         (func_get_license): New function.
124876 2004-09-21  Bruno Haible  <bruno@clisp.org>
124878         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
124879         Reported by Simon Josefsson.
124881 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
124883         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
124884         gl_AC_TYPE_LONG_LONG.
124886 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
124888         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
124890 2004-09-18  Simon Josefsson  <jas@extundo.com>
124891         and  Paul Eggert  <eggert@cs.ucla.edu>
124893         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
124894         calls with autoreconf.  Define GL_LIB.
124896 2004-09-14  Karl Berry  <karl@gnu.org>
124898         * config/srclist.txt: unsync setenv.c, sigh.
124900 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
124902         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
124903         Problem reported by Bruno Haible in:
124904         http://lists.gnu.org/r/bug-tar/2004-09/msg00023.html
124906 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
124908         * config/srclist.txt: Comment out argp-pvh.c.
124910 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
124912         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
124913         in case some system header has #define'd it.  Problem reported by
124914         Soeren D. Schulze in
124915         <http://lists.gnu.org/r/bug-gnulib/2004-09/msg00017.html>.
124917 2004-09-09  Karl Berry  <karl@gnu.org>
124919         * regex.[ch]: delete from the root.  These were supposed to be
124920                 synced with emacs cvs, but this has not happened for about
124921                 a year, and anyway nothing else uses emacs regex.[ch].
124922                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
124923                 lib/regex[.ch] is untouched.
124925 2004-09-09  Bruno Haible  <bruno@clisp.org>
124927         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
124929 2004-09-09  Bruno Haible  <bruno@clisp.org>
124931         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
124932         modifications.
124933         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
124935 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
124937         * modules/xvasprintf: New file.
124938         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
124940 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
124942         * lib/xvasprintf.h: New file.
124943         * lib/xvasprintf.c: New file.
124944         * lib/xasprintf.c: New file.
124946 2004-09-08  Bruno Haible  <bruno@clisp.org>
124948         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
124950 2004-09-08  Bruno Haible  <bruno@clisp.org>
124952         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
124953         length is > INT_MAX.
124954         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
124955         more.
124957 2004-09-08  Bruno Haible  <bruno@clisp.org>
124959         * lib/stdint_.h: New file, taken from GNU clisp.
124961 2004-09-08  Bruno Haible  <bruno@clisp.org>
124962             Oskar Liljeblad  <oskar@osk.mine.nu>
124964         * modules/stdint: New file.
124965         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
124967 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
124969         Import from coreutils.
124970         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
124971         strings on unbounded length.  alloca's performance benefits aren't
124972         that important here.
124973         (V_STRDUP): Remove.
124974         (parse_with_separator): New function, with most of the internals
124975         of the old parse_user_spec.  Allow user to omit both user and group,
124976         for compatibility with FreeBSD.
124977         Clone only the user name, not the entire spec.
124978         Do not set *uid, *gid unless entirely successful.
124979         Avoid memory leak in some failing cases.
124980         Fix regression for USER.GROUP reported by Dmitry V. Levin in
124981         <http://lists.gnu.org/r/bug-coreutils/2004-08/msg00102.html>
124982         (parse_user_spec): Rewrite to use parse_with_separator.
124984 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
124986         * modules/userspec: Don't depend on alloca.
124988 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
124990         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
124992 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
124994         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
124995         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
124996         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
124998 2004-08-16  Simon Josefsson  <jas@extundo.com>
125000         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
125001         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
125002         Add --dry-run for --import.
125003         Let user provided command line parameters override configure.ac
125004         settings.
125006 2004-08-12  Simon Josefsson  <jas@extundo.com>
125008         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
125009         as discussed with Paul Eggert in threads rooted at
125010         <http://lists.gnu.org/r/bug-gnulib/2004-06/msg00039.html>
125011         and
125012         <http://lists.gnu.org/r/bug-gnulib/2004-07/msg00001.html>.
125013         Before, the test was empty, and relied on ELIDE_CODE in source
125014         code.)
125015         (gl_PREREQ_GETOPT): New macro.
125016         (gl_GETOPT): Use them.
125018 2004-08-12  Simon Josefsson  <jas@extundo.com>
125020         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
125021         * lib/getopt_.h: Renamed from getopt.h.
125023 2004-08-12  Simon Josefsson  <jas@extundo.com>
125025         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
125026         Change default library name from libfoo to libgnu.
125027         Now, if you have a configure.ac that says:
125028                 gl_SOURCE_BASE(gl)
125029                 gl_M4_BASE(gl/m4)
125030                 gl_MODULES(error getopt etcetera)
125031                 gl_INIT
125032         you can import all you need by running:
125033                 ../gnulib/gnulib-tool --import
125035         * modules/getopt (Files): Rename getopt.h to getopt_.h.
125036         (Makefile.am): Rewrite, use logic from argz.
125037         (Include): Use <getopt.h> instead of "getopt.h".
125039 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
125041         * modules/argp (Files): Add m4/unlocked-io.m4.
125042         (Depends-on): Add extensions.
125044 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
125046         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
125047         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
125048         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
125049         Check for program_invocation_name, program_invocation_short_name,
125050         flockfile, funlockfile, features.h, _getopt_long_only_r.
125052 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
125054         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
125055         its complicated substitute.
125056         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
125057         and program_invocation_name.
125058         (__argp_basename) [!_LIBC]: Remove; the only use was
125059         replaced by its body.
125060         (__argp_short_program_name): Change condition from
125061         !defined __argp_short_program_name to
125062         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
125063         to match argp-namefrob.h.
125064         (__argp_failure): Don't assume strerror_r returns char *.
125065         * lib/argp-parse.c (N_): Define unconditionally.
125066         (argp_default_options): Fill out initializers with 0 to avoid
125067         gcc warnings.
125069 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
125071         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
125072         getopt1.c.
125074 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
125076         Merge from coreutils.
125078         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
125080         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
125081         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
125083 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
125085         Merge from coreutils.
125087         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
125088         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
125089         for Reliant Unix 5.43.
125091         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
125092         (union fooround): Use uintmax_t, not long int.
125093         The rest is a merge from libc:
125094         [defined _LIBC]: Include <shlib-compat.h>.
125095         (_obstack) [defined _LIBC]: Remove after 2.3.4.
125097         * lib/settime.c (settime): Recode to avoid warning with
125098         Sun Forte C 6U2.
125100         * lib/strverscmp.c: Convert to UTF-8.
125102 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
125104         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
125105         m4/uintmax_t.m4.
125107 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
125109         * modules/xalloc-die: New file.
125110         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
125112         * modules/md5 (Files): Add m4/uint32_t.m4.
125113         * modules/sha1: Renamed from modules/sha.
125114         (Files):
125115         Rename lib/sha.h to lib/sha1.h.
125116         Rename lib/sha.c to lib/sha1.c.
125117         Rename m4/sha.m4 to m4/sha1.m4.
125118         (lib_SOURCES): Likewise.
125119         (configure.ac): Rename gl_SHA to gl_SHA1.
125120         (Include): sha.h -> sha1.h.
125122 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
125124         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
125125         * m4/sha1.m4: Renamed from sha.m4.
125126         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
125128 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
125130         * lib/obstack.h (obstack_empty_p):
125131         Don't assume that chunk->contents is suitably aligned.
125132         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
125133         Likewise. Problem reported by Benno in
125134         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
125136         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
125137         readable.  This could be improved further but it'd take some work.
125139 2004-08-08  Simon Josefsson  <jas@extundo.com>
125141         * modules/xgethostname (Depends-on): Remove exit and error (not
125142         used).
125144         * modules/getpass-gnu: Add getpass.h.
125145         (Depends-on): Add stdbool.
125146         * modules/getpass: Add getpass.h.
125148 2004-08-08  Simon Josefsson  <jas@extundo.com>
125150         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
125151         Check getpass declaration.
125153 2004-08-08  Simon Josefsson  <jas@extundo.com>
125155         * lib/xgethostname.c: Don't include error.h (not used).
125157         * lib/getpass.h: Add.
125158         * lib/getpass.c: Include getpass.h first.
125160 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
125162         * lib/xalloc-die.c: New file.
125163         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
125164         All uses removed.
125165         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
125166         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
125167         xalloc-die.c.
125168         (_, N_, xalloc_die): Move to xalloc-die.c.
125169         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
125170         so that we needn't mess with xalloc_msg_memory_exhausted.
125172         * lib/sha1.h: Renamed from sha.h.
125173         (SHA1_H): Renamed from _SHA_H.
125174         (sha1_ctx): Renamed from sha_ctx.
125175         (sha1_init_ctx): Renamed from sha_init_ctx.
125176         (sha1_process_block): Renamed from sha_process_block.
125177         (sha1_process_bytes): Renamed from sha_process_bytes.
125178         (sha1_finish_ctx): Renamed from sha_finish_ctx.
125179         (sha1_read_ctx): Renamed from sha_read_ctx.
125180         (sha1_stream): Renamed from sha_stream.
125181         (sha1_buffer): Renamed from sha_buffer.
125182         * lib/sha1.c: Likewise; renamed from sha.c.
125183         Do not include <sys/types.h>.
125184         Include <stddef.h> rather than <stdlib.h>.
125186 2004-08-08  Bruno Haible  <bruno@clisp.org>
125188         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
125189         FILESYSTEM_PREFIX_LEN.
125190         * lib/progreloc.c: Likewise.
125191         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
125193 2004-08-06  Simon Josefsson  <jas@extundo.com>
125195         * modules/progname (Depends-on): Don't depend on stdbool.
125197 2004-08-06  Simon Josefsson  <jas@extundo.com>
125199         * modules/getsubopt: New file.
125200         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
125201         getsubopt.
125203 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
125205         More merge from coreutils.
125207         * m4/utimens.m4, m4/utimecmp.m4: New files.
125208         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
125209         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
125210         prereq.m4, sha.m4: Import changes from coreutils.
125212 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
125214         More merge from coreutils.
125215         * modules/raise, modules/readtokens0, modules/utimens:
125216         * modules/utimecmp, module/xnanosleep: New files.
125217         * modules/strftime: Add lib/strftime.h.
125218         Change include from <time.h> to "strftime.h".
125219         * modules/yesno: Add lib/yesno.h.
125220         * modules/backupfile: Remove lib/addext.c.
125221         * modules/euidaccess: Add stat-macros.h.
125222         * modules/canonicalize, modules/euidaccess,
125223         modules/filemode, modules/lchown, modules/makepath,
125224         modules/rmdir, modules/stat: Likewise.
125226 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
125228         Merge from tar.
125229         * lib/argp-help.c (make_hol, hol_append): Don't assume that
125230         SIZE_MAX is a valid preprocessor constant.
125231         (__argp_basename): Change from "#ifndef _LIBC"
125232         to "#ifndef __argp_short_program_name", so that
125233         we don't compile these functions for tar.
125235         More merges from coreutils.
125236         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
125237         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
125238         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
125239         * lib/addext.c: Remove; no longer needed.
125240         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
125241         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
125242         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
125243         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
125244         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
125245         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
125246         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
125247         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
125248         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
125249         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
125250         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
125251         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
125252         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
125253         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
125254         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
125255         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
125256         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
125257         Import changes from coreutils.
125259 2004-08-05  Simon Josefsson  <jas@extundo.com>
125261         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
125263 2004-08-05  Simon Josefsson  <jas@extundo.com>
125265         * m4/getsubopt.m4: New file.
125267 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
125269         Merge from coreutils.
125271         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
125272         * m4/getcwd-path-max.m4: New files.
125274         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
125275         FILESYSTEM_PREFIX_LEN ->
125276         FILE_SYSTEM_PREFIX_LEN.
125277         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
125278         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
125279         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
125280         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
125282         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
125283         prerequisite modules now handle the DOS stuff.
125284         Don't check for unistd.h.
125286 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
125288         Merge from coreutils.
125290         * lib/.gdb-history: Remove; this doesn't belong here.
125292         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
125293         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
125294         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
125295         * lib/getcwd.c: New files.
125297         * lib/dirname.h: Include <stdbool.h>.
125298         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
125299         for consistency with POSIX terminology.  All uses changed.
125300         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
125301         (strip_trailing_slashes): Use bool for booleans.
125302         * lib/stripslash.c (strip_trailing_slashes): Likewise.
125304         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
125305         sometimes returns a positive errno value even when it succeeds.
125306         (print_errno_message) [!LIBC]: Fall back on strerror if
125307         __strerror_r fails.
125309         * lib/path-concat.c (mempcpy): Don't define if a system header defines
125310         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
125311         (longest_relative_suffix): New function.
125312         (path_concat): Use it.  Assume first argument is not NULL.
125313         Port to DOS.  Omit redundant separators.
125314         Report an error instead of returning NULL.
125315         Use mempcpy instead of memcpy.
125316         (xpath_concat): Remove: not declared or used.
125318         * lib/same.h: Include <stdbool.h>
125319         (same_name): Return bool, not int.
125320         * lib/same.c (same_name): Likewise.
125321         (errno): Don't declare; we assume C89 or better now.
125323         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
125324         if not already defined.
125326         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
125327         * lib/dup-safer.c (errno): Likewise.
125329 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
125331         Merge from coreutils.
125332         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
125333         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
125334         * modules/path-concat: Don't depend on strdup.
125336 2004-08-03  Simon Josefsson  <jas@extundo.com>
125338         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
125339         * lib/progname.h: Don't include stdbool.h.
125341 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
125343         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
125344         * MODULES.html.sh (func_all_modules): Remove fatal.
125346 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
125348         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
125350 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
125352         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
125353         working.
125355 2004-08-02  Simon Josefsson  <jas@extundo.com>
125357         * lib/getsubopt.h: New file, with comments from Bruno Haible.
125358         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
125359         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
125361 2004-08-01  Simon Josefsson  <jas@extundo.com>
125363         * lib/xgetdomainname.c: Include stdlib.h, for free().
125365 2004-07-19  Bruno Haible  <bruno@clisp.org>
125367         * MODULES.html.sh (func_all_modules): Add dummy.
125369 2004-07-16  Simon Josefsson  <jas@extundo.com>
125371         * modules/dummy: New file.
125373 2004-07-16  Simon Josefsson  <jas@extundo.com>
125375         * lib/dummy.c: New file.
125377 2004-07-16  Bruno Haible  <bruno@clisp.org>
125379         * lib/backupfile.h: Add extern "C" for C++.
125380         * lib/closeout.h: Likewise.
125381         * lib/copy-file.h: Likewise.
125382         * lib/findprog.h: Likewise.
125383         * lib/full-write.h: Likewise.
125384         * lib/pathname.h: Likewise.
125385         * lib/progname.h: Likewise.
125386         * lib/stpcpy.h: Likewise.
125387         * lib/stpncpy.h: Likewise.
125388         * lib/strcase.h: Likewise.
125389         * lib/strstr.h: Likewise.
125390         * lib/xalloc.h: Likewise.
125392         * lib/mbswidth.h: Add extern "C" for C++.
125393         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
125395 2004-07-13  Robert Millan  <robertmh@gnu.org>
125397         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
125399 2004-07-09  Simon Josefsson  <jas@extundo.com>
125401         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
125402         failed without this.)
125404 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
125406         * modules/chown (Files): Add lib/fchown-stub.c, since
125407         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
125409 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
125411         * lib/fchown-stub.c: New file.
125413 2004-06-24  Jim Meyering  <jim@meyering.net>
125415         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
125417 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
125419         * modules/argz: Omit "#include".
125421         * MODULES.html.sh (func_all_modules): Add calloc, to match
125422         2004-06-01 addition of calloc module.
125424 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
125426         * m4/argz.m4: New file, which is autoupdated from libtool.
125428 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
125430         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
125431         libtool.
125433 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
125435         * config/srclist-update: Don't insist on "USA." before the
125436         close-comment, as libtool omits the period and puts the */ on a
125437         separate line.
125438         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
125439         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
125441 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
125443         * modules/argz: New file.
125444         * MODULES.html.sh (func_all_modules): Add argz.
125446 2004-06-12  Jim Meyering  <jim@meyering.net>
125447         and  Paul Eggert  <eggert@cs.ucla.edu>
125449         * modules/hash (Files): Add lib/xalloc.h.
125450         * modules/pipe (Depends-on): Add wait-process.
125451         * modules/stat (Depends-on): Add xalloc.
125452         * modules/userspec (Files): Add lib/userspec.h.
125453         * modules/xstrto
125455         Upgrade from gettext-0.13.
125456         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
125457         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
125458         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
125460 2004-06-10  Jim Meyering  <jim@meyering.net>
125462         * lib/calloc.c: New file.
125464 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
125466         * lib/getdate.y (yylex): Allow space between sign and number.
125467         Problem reported by Dan Jacobson.
125469 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
125471         Merge from coreutils CVS.
125473         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
125474         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
125475         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
125476         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
125477         xstrtol.m4: Fix copyright date and/or serial number.
125479         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
125480         See if we need an fchown replacement.
125481         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
125482         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
125483         and use the replacement function if we detect either defect.
125485         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
125486         gl_UTIMECMP.
125488 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
125489         and  Jim Meyering  <jim@meyering.net>
125491         Merge from coreutils CVS.
125493         * lib/stat-macros.h: New file, with contents from file-type.h
125494         and coreutils' system.h.
125495         * lib/file-type.c: Include "stat-macros.h".
125496         * lib/file-type.h (file_type): Move all macro definitions to new file,
125497         stat-macros.h.
125499         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
125500         Wrap old code with this conditional.
125501         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
125502         function that does not dereference symlinks.
125503         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
125505         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
125506         dependency problems.
125507         (xreadlink): Accept new arg SIZE, for efficiency.
125508         All decls and uses changed.
125509         * lib/xreadlink.h: Include <stddef.h>, for size_t.
125511         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
125512         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
125514         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
125515         sysexits.h.
125517 2004-06-01  Jim Meyering  <jim@meyering.net>
125519         * m4/calloc.m4: New file.
125521 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
125523         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
125524         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
125525         Also, fix a typo in a diagnostic.
125527 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
125529         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
125530         or AC_FUNC_REALLOC.
125532 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
125534         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
125535         macros to be defined.
125536         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
125537         the allocator returns NULL because the requested size is zero.
125539 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
125541         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
125542         var.  Add comment explaining why libc still defines it.  This
125543         merges the following patch from glibc:
125544         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
125546 2004-05-20  Andreas Schwab  <schwab@suse.de>
125548         * m4/free.m4: Replace free if it not known to work, not the other
125549         way round.
125551 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
125553         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
125554         present in glibc since revision 1.1 of this file.
125555         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
125556         obstack_alignment_mask, obstack_alloc, obstack_base,
125557         obstack_blank, obstack_blank_fast, obstack_chunk_size,
125558         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
125559         obstack_grow0, obstack_init, obstack_int_grow,
125560         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
125561         obstack_next_free, obstack_object_size, obstack_ptr_grow,
125562         obstack_ptr_grow_fast, obstack_room): Remove declarations of
125563         nonexistent functions.
125565 2004-05-18  Karl Berry  <karl@gnu.org>
125567         * config/srclist.txt: break link for vasnprintf.c.
125569 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
125571         Port obstack to the AS/400, where pointers are 16 bytes wide and
125572         you cannot cast an integer to a valid pointer.  This patch is
125573         currently waiting to be integrated into glibc; see
125574         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
125576         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
125577         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
125578         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
125579         (struct obstack): temp member is now a union of a pointer and
125580         an integer, instead of an integer.  All integer uses changed.
125581         This does not affect the physical layout of struct obstack,
125582         except on hosts (like the AS/400) where the size or alignment of
125583         void * is greater than that of ptrdiff_t.
125584         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
125585         __STDC__)]: Store temporary in pointer member of union, not
125586         integer member.
125587         * lib/obstack.c: Include <stddef.h>, for offsetof.
125588         (struct fooalign): Remove; it doesn't need a name.
125589         (union fooround): Change double to long double, and add void *.
125590         (DEFAULT_ALIGNMENT): Use offsetof to compute.
125591         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
125592         not a macro.  Hence the values are always int; so remove all
125593         casts-to-int in uses.
125595 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
125597         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
125598         we can get this patch merged into glibc.
125600 2004-05-17  Derek R. Price  <derek@ximbiot.com>
125601             Paul Eggert  <eggert@cs.ucla.edu>
125603         * m4/argp: Depend on alloca.
125605 2004-05-17  Derek R. Price  <derek@ximbiot.com>
125606             Paul Eggert  <eggert@cs.ucla.edu>
125608         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
125609         freecoding.
125611 2004-05-17  Bruno Haible  <bruno@clisp.org>
125613         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
125614         precision that consists of a '.' followed by an empty digit string.
125615         Patch by Tor Lillqvist <tml@iki.fi>.
125617 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
125619         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
125620         for backward compatibility with older code.  We need our own
125621         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
125622         it under some other name, and our alloca.h will define it.
125624 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
125625             Derek Price  <derek@ximbiot.com>
125627         * lib/alloca.c: Include <alloca.h>, to get our interface.
125628         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
125629         include <alloca.h> first.  Use C89 prototype for alloca; this
125630         requires including <stddef.h> for size_t.  Use extern "C" if C++.
125631         Use #elif for simplicity, since we can assume C89 now.
125632         Don't try to source the system alloca.h since it will not be found
125633         and to prevent recursively including its replacement.
125634         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
125635         * lib/regex.c: Likewise.
125637 2004-05-16  Derek Price  <derek@ximbiot.com>
125638             Paul Eggert  <eggert@cs.ucla.edu>
125640         getline cleanup.  This changes the getndelim2 API: both order of
125641         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
125642         no delimiter).
125644         * lib/getline.c: Don't include stddef.h or stdio.h, since our
125645         interface does that.
125646         (getline): Always use getdelim, so that we don't have two
125647         copies of this code.
125648         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
125649         if available.
125650         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
125651         (GETNDELIM2_MAXIMUM): New macro.
125652         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
125653         instead of the old practice of delim2==0.  All callers changed.
125654         Return -1 on overflow, instead of returning junk.
125655         Do not set *linesize unless allocation succeeds.
125656         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
125657         that we include sys/types.h.
125658         * lib/getnline.h: Likewise.
125659         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
125660         (getndelim2): Reorder arguments.
125661         * lib/getnline.c (getnline, getndelim):
125662         Don't discard the NMAX argument.
125663         (getnline): Invoke getndelim, to avoid code duplication.
125664         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
125665         of (size_t) -1 by callers of the getnline family.
125667 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
125669         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
125670         Check for gettimeofday.
125671         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
125672         Check for settimeofday, stime.
125674 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
125676         * lib/nanosleep.c (suspended): Change its type from int to
125677         sig_atomic_t volatile.
125678         (first_call): Make it private to rpl_nanosleep, and have it
125679         be zero initially as that's a bit faster.
125680         (my_usleep): Round up fractional times instead of truncating them,
125681         as this is the usual meaning for 'sleep'.
125683         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
125684         doesn't work.
125685         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
125686         (ENOSYS): Define if not defined.
125687         (settime): Fall back on stime if it exists and settimeofday fails.
125688         But don't bother with fallbacks if a method fails with errno == EPERM.
125690 2004-05-11  Jim Meyering  <jim@meyering.net>
125692         Prior to this change, the save_cwd caller required read access to the
125693         current directory on most systems (ones with the fchdir function).
125695         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
125696         fails, try write-only, and finally, resort to using xgetcwd.
125698 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
125700         * lib/obstack.c, obstack.h: Import changes from libc.
125702 2004-04-28  Bruno Haible  <bruno@clisp.org>
125704         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
125705         also implicitly appends .exe to executables.
125706         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
125707         accepts Windows pathnames.
125708         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
125709         Treat Cygwin like Windows, since it now accepts Windows pathnames.
125710         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
125711         Treat Cygwin like Windows, since it now accepts Windows pathnames.
125712         Reported by Derek Robert Price <derek@ximbiot.com>.
125714 2004-04-21  Karl Berry  <karl@gnu.org>
125716         * config/srclist.txt (localcharset.c): break sync.
125718 2004-04-20  Paul Eggert  <eggert@twinsun.com>
125720         * m4/host-os.m4: Add a copyright notice.
125722 2004-04-20  Jim Meyering  <jim@meyering.net>
125724         Change UTILS_ to gl_ in AC_DEFINE'd names.
125725         Change utils_- and jm_-prefixed variables, too.
125726         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
125727         UTILS_FUNC_MKDIR_TRAILING_SLASH.
125728         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
125730         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
125731         Don't emit trailing blanks.
125732         Also rename jm_-prefixed variables to have gl_ prefix.
125734         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
125735         Also rename jm_-prefixed variables to have gl_ prefix.
125737         * m4/jm-macros.m4: Reflect the renamings.
125738         * m4/prereq.m4: Likewise.
125740 2004-04-20  Jim Meyering  <jim@meyering.net>
125742         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
125743         memory.
125745 2004-04-20  Jim Meyering  <jim@meyering.net>
125746             Bruno Haible  <bruno@clisp.org>
125748         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
125749         memory when realloc fails.
125751 2004-04-19  Jim Meyering  <jim@meyering.net>
125753         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
125754         now that readutmp.c may call `free (0)'.
125756 2004-04-19  Bruno Haible  <bruno@clisp.org>
125758         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
125759         * m4/inttypes_h.m4: Likewise.
125760         * m4/stdint_h.m4: Likewise.
125761         * m4/intmax_t.m4: Likewise.
125762         * m4/uintmax_t.m4: Likewise.
125764 2004-04-18  Jim Meyering  <jim@meyering.net>
125766         * m4/prereq.m4: Don't forbid jm_ prefix.
125768         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
125769         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
125770         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
125771         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
125772         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
125773         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
125774         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
125775         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
125776         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
125777         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
125778         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
125779         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
125780         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
125781         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
125782         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
125783         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
125784         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
125785         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
125786         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
125788 2004-04-18  Jim Meyering  <jim@meyering.net>
125790         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
125791         failure, don't leak memory and do call END_UTMP_ENT.
125793 2004-04-16  Jim Meyering  <jim@meyering.net>
125795         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
125796         coreutils' stat program.
125797         (gl_PREREQ): Don't require jm_PREREQ_STAT.
125799 2004-04-11  Paul Eggert  <eggert@twinsun.com>
125801         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
125802         C89.
125803         (CHAR_BIT): Remove, since we assume C89.
125804         Include <stdint.h> if available, as per current Autoconf CVS advice.
125806 2004-03-31  Jim Meyering  <jim@meyering.net>
125808         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
125809         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
125810         * m4/xalloc.m4: Likewise.
125812 2004-03-30  Paul Eggert  <eggert@twinsun.com>
125814         Merge from coreutils.
125816         * m4/inttostr.m4: New file.
125817         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
125818         Require AM_STDBOOL_H and gl_TIMESPEC instead.
125819         Require gl_CLOCK_TIME.
125820         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
125822 2004-03-30  Paul Eggert  <eggert@twinsun.com>
125824         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
125825         not bool, to be more consistent with Unix conventions.
125826         Suggested by Bruno Haible.
125828         Merge from coreutils.
125830         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
125831         * lib/umaxtostr.c: New files.
125833         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
125834         the usual <time.h> dance.
125835         (get_date): Change signature to support fractional time stamps.
125836         All callers changed.
125837         * lib/getdate.y: Include "getdate.h" first, as we can now
125838         assume C89 and don't need to worry about 'const'.
125839         Similarly, include "unlocked-io.h" near start, not in middle.
125840         Include <limits.h>.
125841         (textint.value): Use long int rather than int.
125842         (textint.digits): Use size_t rather than int.
125843         (BILLION, LOG10_BILLION): New constants.
125844         (parser_control): New member rel_ns.  Members day_ordinal,
125845         time_zone, month, day, hour, minutes, rel_year, rel_month,
125846         rel_day, rel_hour, rel_minutes, rel_seconds
125847         are now long int, not int.  Member seconds is now struct timespec,
125848         not int.  New member timespec_seen.  Members dates_seen, days_seen,
125849         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
125850         not int.
125851         (%union.intval): Now long int, not int.
125852         New member timespec.
125853         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
125854         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
125855         (spec): Now is a timespec or an item list.
125856         (timespec, items): New nonterminals.
125857         (time, rel, relunit, number, get_date):
125858         Add support for fractional seconds.
125859         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
125860         (gmtime, localtime, mktime): Remove decls; not needed with C89.
125861         (to_hour): First arg is now long int, not int.
125862         (to_year): Returns long int, not int.
125863         Don't treat year -70 like 70.
125864         (tm_diff): Returns long int, not int.
125865         (lookup_word): Use bool instead of int when appropriate.
125866         (yylex): Use size_t for count, not int.
125867         Detect overflow when parsing large integer constants.
125868         Add support for fractions.
125869         (get_date): Make pointers 'const' if possible.
125870         Use more-portable code to detect integer overflow.
125871         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
125872         Don't use ctime; it's not reliable if the year has >4 digits.
125874         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
125875         This is for compatibility with BSD.
125877         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
125878         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
125879         From coreutils' system.h.
125881         * lib/userspec.c: Don't include "posixver.h".
125882         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
125883         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
125884         compatible extension.  Simplify code by removing a boolean int
125885         that was always nonzero if a string was nonnull.
125887 2004-03-30  Jim Meyering  <jim@meyering.net>
125889         Merge from coreutils.
125891         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
125892         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
125893         on some systems one must include <grp.h> before it.
125894         Reported by Christian Krackowizer.
125896 2004-03-30  Jim Meyering  <jim@meyering.net>
125898         Merge from coreutils.
125900         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
125902         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
125903         an empty input stream.
125905         * lib/readtokens.c: Include <stdbool.h>.
125906         (readtoken): Use `size_t' rather than int/long.
125907         All callers adjusted.
125908         Use `bool' rather than `int' where appropriate.
125909         Use memset rather than an explicit loop.
125910         Use x2nrealloc rather than xrealloc.
125911         Allow the use of `\0' as a delimiter.
125912         (readtokens): Likewise.
125913         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
125915 2004-03-30  Jim Meyering  <jim@meyering.net>
125917         * m4/realloc.m4: Remove file, since now it does no more than
125918         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
125919         the `configure.ac' section of module/realloc.
125920         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
125922 2004-03-30  Bruno Haible  <bruno@clisp.org>
125924         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
125925         nonnull.
125927 2004-03-29  Paul Eggert  <eggert@twinsun.com>
125929         Merge changes to getloadavg.c from coreutils and Emacs.
125931         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
125932         Define to an expression, not to the empty string.
125933         Include cloexec.h and xalloc.h.
125934         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
125935         Use set_cloexec_flag rather than rolling our own.
125936         * lib/cloexec.c, lib/cloexec.h: New files.
125938 2004-03-29  Paul Eggert  <eggert@twinsun.com>
125940         * m4/cloexec.m4: New file.
125942 2004-03-18  Paul Eggert  <eggert@twinsun.com>
125944         * lib/getopt.h: Sync with libc CVS.
125946 2004-03-18  Paul Eggert  <eggert@twinsun.com>
125947             Bruno Haible  <bruno@clisp.org>
125949         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
125950         mbswidth.
125952 2004-03-18  Paul Eggert  <eggert@twinsun.com>
125953             Bruno Haible  <bruno@clisp.org>
125955         * lib/mbswidth.h: Include <wchar.h> only if
125956         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
125957         <wchar.h>.
125958         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
125960 2004-03-09  Paul Eggert  <eggert@twinsun.com>
125962         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
125963         Sync with libc CVS.
125964         * lib/getopt_int.h: New file, also synced from libc.
125966 2004-03-09  Paul Eggert  <eggert@twinsun.com>
125968         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
125969         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
125970         Bring back getopt.c, getopt.h, getopt1.c.
125972 2004-03-07  Paul Eggert  <eggert@twinsun.com>
125974         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
125975         All uses changed.  Check for sa_sigaction member; this fixes
125976         a bug first reported by Jason Andrade in
125977         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
125979 2004-03-07  Paul Eggert  <eggert@twinsun.com>
125981         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
125982         '#if' expressions.  Unlike the code it replaces, it does not
125983         depend on (defined _SC_PAGESIZE).  However, it does depend on
125984         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
125985         first reported by Jason Andrade in
125986         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
125988 2004-02-25  Simon Josefsson  <jas@extundo.com>
125990         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
125992 2004-02-25  Simon Josefsson  <jas@extundo.com>
125994         * lib/strdup.h: New file.
125995         * lib/strdup.c: Include it.
125996         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
125997         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
125999 2004-02-23  Karl Berry  <karl@gnu.org>
126001         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
126002         (from fencepost.gnu.org:/gd/gnuorg).
126004 2004-02-23  Karl Berry  <karl@gnu.org>
126006         * config/srclistvars.sh (GNUORG) [karl]: redefine.
126007         * config/srclist.txt: add maintain/standards documents.
126009 2004-02-18  Bruno Haible  <bruno@clisp.org>
126011         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
126012         Reported by Derek Robert Price <derek@ximbiot.com>.
126014 2004-02-16  Karl Berry  <karl@gnu.org>
126016         * config/mkinstalldirs, install-sh: update from automake.
126018 2004-02-06  Karl Berry  <karl@gnu.org>
126020         * m4/po.m4: update from gettext 0.14.1.
126022 2004-02-06  Karl Berry  <karl@gnu.org>
126024         * lib/config.charset: update from gettext 0.14.1.
126026 2004-02-05  Paul Eggert  <eggert@twinsun.com>
126028         Add comments and code, prompted by suggestions from Bruno Haible
126029         for sh-quote.
126030         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
126031         describing the enum quoting_style values.
126032         * lib/quotearg.c (quotearg_alloc): New function.
126033         (quotearg_buffer_restyled): Treat lone { and } as special.
126034         Treat = as special.  Work around bug with older shells
126035         that "see" a '\' that is really the 2nd byte of a multibyte char.
126036         Quote empty string with shell_quoting_style.
126038 2004-02-03  Bruno Haible  <bruno@clisp.org>
126040         * m4/pipe.m4: New file, from GNU gettext.
126042 2004-02-03  Bruno Haible  <bruno@clisp.org>
126044         * lib/pipe.h: New file, from GNU gettext.
126045         * lib/pipe.c: New file, from GNU gettext.
126047 2004-01-27  Bruno Haible  <bruno@clisp.org>
126049         * m4/execute.m4: New file, from GNU gettext.
126051 2004-01-27  Bruno Haible  <bruno@clisp.org>
126053         * lib/execute.h: New file, from GNU gettext.
126054         * lib/execute.c: New file, from GNU gettext.
126055         * lib/w32spawn.h: New file, from GNU gettext.
126057 2004-01-24  Paul Eggert  <eggert@twinsun.com>
126059         Merge from diffutils.
126061         * lib/file-type.c (file_type): Add typed memory objects.
126062         * lib/file-type.h (S_TYPEISTMO): New macro.
126064         * lib/c-stack.h (c_stack_action): Remove argv argument.
126065         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
126066         (die): Don't calculate message unless segv_action returns.
126067         (get_stack_location, min_address_from_argv, max_address_from_argv,
126068         volatile stack_base, volatile_stack_size): Remove.
126069         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
126070         that every segmentation violation is a stack overflow.  (Ouch!)
126071         See Debian bug 136249 (still outstanding) for more info about why
126072         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
126074 2004-01-24  Paul Eggert  <eggert@twinsun.com>
126076         Exit-status fix from coreutils.
126078         Use exit_failure consistently in place of EXIT_FAILURE,
126079         so that program exit statuses are consistent on failure.
126081         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
126082         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
126083         * lib/argmatch.h: Comment fix to match the above.
126084         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
126085         Now a macro referring to exit_failure, instead of a separate
126086         variable.  Include "exitfail.h" to get it.
126087         * lib/xstrtol.h: Include "exitfail.h".
126088         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
126090         * lib/long-options.c (parse_long_options): Use prototype
126091         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
126092         for clarity.
126094 2004-01-21  Jim Meyering  <jim@meyering.net>
126096         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
126097         so as not to conflict with a different-sized __mktime_internal
126098         function in GNU libc.
126099         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
126100         Problem building statically-linked `ls' reported by Michael Brunnbauer.
126102 2004-01-20  Karl Berry  <karl@gnu.org>
126104         * config/config.guess: update from config.
126106         * config/srclistvars.sh: GNUWWWLICENSES for karl.
126108 2004-01-20  Bruno Haible  <bruno@clisp.org>
126110         Safer stack allocation.
126111         * lib/setenv.c: Include allocsa.h.
126112         (alloca): Remove fallback definition.
126113         (freea): Remove macro.
126114         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
126115         instead of freea.
126117 2004-01-20  Bruno Haible  <bruno@clisp.org>
126119         * m4/eealloc.m4: New file, from GNU gettext.
126121 2004-01-20  Bruno Haible  <bruno@clisp.org>
126123         * m4/allocsa.m4: New file, from GNU gettext.
126125 2004-01-20  Bruno Haible  <bruno@clisp.org>
126127         * lib/xallocsa.h: New file, from GNU gettext.
126128         * lib/xallocsa.c: New file, from GNU gettext.
126130 2004-01-20  Bruno Haible  <bruno@clisp.org>
126132         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
126134 2004-01-20  Bruno Haible  <bruno@clisp.org>
126136         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
126137         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
126138         specially.
126140 2004-01-20  Bruno Haible  <bruno@clisp.org>
126142         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
126143         patch.
126145 2004-01-20  Bruno Haible  <bruno@clisp.org>
126147         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
126149 2004-01-20  Bruno Haible  <bruno@clisp.org>
126151         * lib/eealloc.h: New file.
126153 2004-01-20  Bruno Haible  <bruno@clisp.org>
126155         * lib/binary-io.h: Avoid warnings on Cygwin.
126157 2004-01-20  Bruno Haible  <bruno@clisp.org>
126159         * lib/allocsa.h: New file, from GNU gettext.
126160         * lib/allocsa.c: New file, from GNU gettext.
126162 2004-01-18  Karl Berry  <karl@gnu.org>
126164         * doc/gpl.texi, doc/lgpl.texi: new files.
126166 2004-01-18  Karl Berry  <karl@gnu.org>
126168         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
126169         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
126171 2004-01-15  Paul Eggert  <eggert@twinsun.com>
126173         Merge from coreutils.
126175         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
126176         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
126177         (gl_DEFAULT_POSIX2_VERSION): Move
126178         the documentation from 'configure' into 'config.hin',
126179         so that 'configure --help' isn't burdened by it and
126180         we don't have to worry about its formatting there.
126181         Reword the documentation so that it's more succinct
126182         and can be run together into a single paragraph.
126183         * m4/same.m4 (gl_SAME): Check for pathconf.
126185 2004-01-15  Paul Eggert  <eggert@twinsun.com>
126187         Merge from coreutils.
126189         * lib/posixver.c: Include posixver.h.
126191         * lib/same.c: Include <stdbool.h>, <limits.h>.
126192         (_POSIX_NAME_MAX): Define if not defined.
126193         (MIN): New macro.
126194         (same_name): If file names are silently truncated, report
126195         that the file names are the same if they are the same after
126196         the silent truncation.
126198         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
126199         conversion function.
126200         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
126201         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
126202         longer needed.
126204 2004-01-15  Jim Meyering  <jim@meyering.net>
126206         Merge from coreutils.
126208         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
126209         if no library is required.
126210         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
126211         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
126212         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
126213         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
126214         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
126215         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
126216         value, $ac_cv_search_crypt, if it's "none required".
126217         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
126218         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
126219         not gl_FUNC_GETLOADAVG.
126220         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
126221         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
126223 2004-01-15  Jim Meyering  <jim@meyering.net>
126225         Merge from coreutils.
126227         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
126228         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
126229         http://mail.gnu.org/r/bug-coreutils/2003-11/msg00144.html
126231         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
126232         optional configure-time default.
126234         * lib/version-etc.c (version_etc_copyright): Update copyright date.
126236         * lib/xreadlink.c (xreadlink): Correct outdated comment.
126238 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
126240         Merge from coreutils.
126242         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
126243         value, $ac_cv_search_nanosleep, if it's "none required".
126245 2004-01-14  Paul Eggert  <eggert@twinsun.com>
126247         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
126248         with like-named macro in fnmatch.c.
126249         (EXT): Use an internal constant instead.
126251         Merge fnmatch patches from glibc.
126252         * lib/fnmatch.c (mbsinit): Remove define.
126253         Add libc_hidden_ver (__fnmatch, fnmatch).
126254         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
126255         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
126257 2004-01-14  Karl Berry  <karl@gnu.org>
126259         * config/install-sh: update from automake.
126261 2004-01-13  Karl Berry  <karl@gnu.org>
126263         * config/install-sh: update from automake.
126265 2004-01-09  Karl Berry  <karl@gnu.org>
126267         * config/install-sh: update from automake.
126269 2004-01-05  Karl Berry  <karl@gnu.org>
126271         * config/config.{sub,guess}: update from config.
126273 2003-12-31  Karl Berry  <karl@gnu.org>
126275         * config/depcomp: update from automake.
126277 2003-12-14  Karl Berry  <karl@gnu.org>
126279         * lib/config.charset: update from gettext-runtime.
126281 2003-12-03  Paul Eggert  <eggert@twinsun.com>
126283         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
126284         Bug reported by Alfred M. Szmidt.
126286 2003-12-03  Bruno Haible  <bruno@clisp.org>
126288         * m4/gettext.m4: Upgrade from gettext-0.13.
126289         * m4/po.m4: Upgrade from gettext-0.13.
126290         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
126291         * m4/intmax.m4: New file, from gettext-0.13.
126292         * m4/printf-posix.m4: New file, from gettext-0.13.
126294 2003-11-29  Karl Berry  <karl@gnu.org>
126296         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
126298 2003-11-25  Paul Eggert  <eggert@twinsun.com>
126299             Bruno Haible  <bruno@clisp.org>
126301         * lib/printf-parse.h: Don't include sys/types.h.
126302         (ARG_NONE): New macro.
126303         (char_directive): Change type of *arg_index fields to size_t.
126304         * lib/printf-parse.c: Don't include sys/types.h.
126305         (SSIZE_MAX): Remove macro.
126306         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
126307         Remove unnecessary overflow check.
126308         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
126309         fields.
126311 2003-11-25  Bruno Haible  <bruno@clisp.org>
126313         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
126315 2003-11-25  Bruno Haible  <bruno@clisp.org>
126317         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
126318         gt_TYPE_SSIZE_T.
126320 2003-11-24  Paul Eggert  <eggert@twinsun.com>
126322         * modules/alloca: Remove dependency on xalloc.
126324 2003-11-24  Paul Eggert  <eggert@twinsun.com>
126326         * lib/alloca.c: Remove dependency on xalloc module.
126327         (xalloc_die): Remove.
126328         (memory_full) [!defined emacs]: New macro.
126329         [!defined emacs]: Don't include xalloc.h.
126330         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
126331         address arithmetic overflows.  Change datatypes a bit to avoid
126332         unnecessary casts.
126334 2003-11-22  Jim Meyering  <jim@meyering.net>
126336         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
126337         s/size/size_t/.
126339 2003-11-21  Karl Berry  <karl@gnu.org>
126341         * config/config.{sub,guess}: update from config.
126343 2003-11-18  Karl Berry  <karl@gnu.org>
126345         * config/config.{sub,guess}: update from config.
126347         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
126349 2003-11-17  Paul Eggert  <eggert@twinsun.com>
126351         * README: Mention that S+T cannot overflow if S is the size of
126352         an existing object and T is sufficiently small.
126354 2003-11-17  Jim Meyering  <jim@meyering.net>
126356         On systems without utime and without a utimes function capable of
126357         dealing with a NULL struct utimbuf* argument, this utime replacement
126358         could -- in unusual circumstances -- leak a file descriptor.
126359         * lib/utime.c: Include <unistd.h> and <errno.h>.
126360         (utime_null): Be sure to close `fd' and to preserve errno.
126361         Reported by Geoff Collyer via Arnold Robbins.
126363 2003-11-17  Bruno Haible  <bruno@clisp.org>
126365         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
126366         (Depends-on): Add xsize.
126368 2003-11-17  Bruno Haible  <bruno@clisp.org>
126370         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
126372 2003-11-17  Bruno Haible  <bruno@clisp.org>
126374         * lib/vasnprintf.c (alloca): Remove fallback definition.
126375         (freea): Remove definition.
126376         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
126377         Reported by Paul Eggert.
126379 2003-11-16  Paul Eggert  <eggert@twinsun.com>
126380             Bruno Haible  <bruno@clisp.org>
126382         Protect against address arithmetic overflow.
126383         * lib/printf-args.h: Include stddef.h.
126384         (arguments): Change type of field 'count' to size_t.
126385         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
126386         'unsigned int' where appropriate.
126387         * lib/printf-parse.h: Include sys/types.h.
126388         (char_directive): Change type of *arg_index fields to ssize_t.
126389         (char_directives): Change type of fields 'count', max_*_length to
126390         size_t.
126391         * lib/printf-parse.c: Include sys/types.h and xsize.h.
126392         (SSIZE_MAX): Define fallback value.
126393         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
126394         instead of 'int' where appropriate. Check a_allocated, d_allocated
126395         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
126396         * lib/vasnprintf.c: Include xsize.h.
126397         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
126398         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
126399         overflow. Avoid wraparound when converting a width or precision from
126400         decimal to binary.
126402 2003-11-16  Bruno Haible  <bruno@clisp.org>
126404         Update from GNU gettext.
126405         * lib/printf-parse.c: Generalize to it can be compiled for wide
126406         strings.
126407         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
126408         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
126409         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
126410         SNPRINTF): New macros.
126411         Don't include <alloca.h> if the file is used inside libintl.
126412         (local_wcslen): New function, for Solaris 2.5.1.
126413         (VASNPRINTF): Use it instead of wcslen.
126415 2003-11-16  Bruno Haible  <bruno@clisp.org>
126417         * lib/xsize.h (xmax): New function.
126418         (xsum, xsum3, xsum4): Declare as "pure" functions.
126420 2003-11-12  Paul Eggert  <eggert@twinsun.com>
126422         * modules/xalloc (Files): Undo latest change, since xalloc.h
126423         no longer needs SIZE_MAX or PTRDIFF_MAX.
126425 2003-11-12  Paul Eggert  <eggert@twinsun.com>
126427         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
126428         gl_PTRDIFF_MAX.
126430 2003-11-12  Paul Eggert  <eggert@twinsun.com>
126432         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
126433         "return", to pacify some unknown compiler.  Problem reported
126434         by Joerg Schilling.
126436 2003-11-12  Paul Eggert  <eggert@twinsun.com>
126438         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
126439         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
126440         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
126441         heuristic is just as accurate as far as we know, and it removes a
126442         dependency on size_max.m4 and ptrdiff_max.m4.
126444 2003-11-11  Bruno Haible  <bruno@clisp.org>
126446         * modules/xsize (Files): Add m4/size_max.m4.
126447         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
126449 2003-11-11  Bruno Haible  <bruno@clisp.org>
126451         * m4/size_max.m4: New file.
126452         * m4/ptrdiff_max.m4: New file.
126453         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
126454         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
126455         (gl_XALLOC): Invoke it.
126457 2003-11-11  Bruno Haible  <bruno@clisp.org>
126459         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
126460         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
126461         defined.
126463 2003-11-10  Paul Eggert  <eggert@twinsun.com>
126465         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
126466         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
126467         rejected some allocations of exactly SIZE_MAX - 2 bytes.
126468         From Bruno Haible.
126469         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
126470         not (size_t) -1, since it's defined here.
126472 2003-11-09  Karl Berry  <karl@gnu.org>
126474         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
126476 2003-11-06  Paul Eggert  <eggert@twinsun.com>
126478         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
126479         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
126480         Reject sizes of exactly SIZE_MAX bytes.
126481         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
126482         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
126484 2003-11-05  Bruno Haible  <bruno@clisp.org>
126486         * lib/xsize.h: Include limits.h, to avoid a possible collision with
126487         SIZE_MAX defined in <limits.h> on Solaris.
126489 2003-11-04  Jim Meyering  <jim@meyering.net>
126491         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
126492         variable names, rather than @VAR@.
126493         * modules/poll: Likewise.
126495 2003-11-04  Bruno Haible  <bruno@clisp.org>
126497         * modules/xsize: New file.
126498         * modules/linebreak: Depend on xsize.
126499         * MODULES.html.sh (func_all_modules): Add xsize.
126501 2003-11-04  Bruno Haible  <bruno@clisp.org>
126503         * m4/xsize.m4: New file.
126505 2003-11-04  Bruno Haible  <bruno@clisp.org>
126507         * lib/xsize.h: New file.
126508         * lib/linebreak.c: Include xsize.h.
126509         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
126510         argument for overflow.
126511         Suggested by Paul Eggert.
126513 2003-11-03  Karl Berry  <karl@gnu.org>
126515         * config/config.{guess,sub}: update from config.
126517 2003-11-03  Jim Meyering  <jim@meyering.net>
126519         * modules/userspec (lib_SOURCES): Add userspec.h.
126520         (Include): Add "userspec.h".
126521         Improve description.
126523 2003-11-03  Jim Meyering  <jim@meyering.net>
126525         * lib/userspec.c: Include "userspec.h".
126526         * lib/userspec.h: New file.
126528 2003-11-03  Bruno Haible  <bruno@clisp.org>
126530         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
126532 2003-11-03  Bruno Haible  <bruno@clisp.org>
126534         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
126535         available, to avoid (extremely rare) race condition.
126536         Suggested by Paul Eggert.
126538 2003-11-02  Karl Berry  <karl@gnu.org>
126540         * config/srclist.txt (vasprintf.c): sync broken, sigh.
126542 2003-10-31  Paul Eggert  <eggert@twinsun.com>
126544         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
126545         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
126546         (read_filesystem_list): Set and use me_type_malloced.
126547         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
126548         whatever the type happens to be), for brevity and consistency.
126549         Check for size calculation overflow on Alphas running OSF/1.
126551 2003-10-31  Jim Meyering  <jim@meyering.net>
126553         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
126555         * lib/linebuffer.c: Include <string.h> for declaration of memset.
126557 2003-10-30  Paul Eggert  <eggert@twinsun.com>
126558             Bruno Haible  <bruno@clisp.org>
126560         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
126561         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
126563 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
126565         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
126566         netbsd*-gnu*.  Suggested by Robert Millan.
126568 2003-10-29  Paul Eggert  <eggert@twinsun.com>
126570         * modules/group-member: Depend on stdbool.
126572 2003-10-29  Paul Eggert  <eggert@twinsun.com>
126574         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
126576 2003-10-29  Paul Eggert  <eggert@twinsun.com>
126578         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
126579         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
126580         after the 'gnu' in these cases.  This fixes some bugs in the
126581         previous change, and is based on suggestions by Robert Millan.
126583 2003-10-29  Paul Eggert  <eggert@twinsun.com>
126585         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
126586         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
126587         no longer needed.
126588         * lib/quotearg.c (quotearg_n_options): Use it.
126589         * lib/group-member.c: Include <stdbool.h>.
126590         (free_group_info): Arg is now const *; don't free arg.
126591         (get_group_info): Now returns bool and accepts struct group_info *,
126592         rather than returning a malloc'ed struct group_info *.
126593         All uses changed.  Check for overflow in internal size calculation.
126595         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
126596         rather than xmalloc/xrealloc.
126597         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
126598         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
126599         conformance bug: the old code used a pointer after freeing the
126600         storage that it addressed.
126601         * lib/hash.c (hash_initialize): Simplify the code by using
126602         xalloc_oversized rather than doing it by hand.
126603         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
126604         the buffer preserved.  Use free and xmalloc instead.
126605         * lib/quotearg.c (quotearg_n_options): Likewise.
126606         Use a simpler test for size overflow.  Don't use xalloc_oversized
126607         because unsigned int might be wider than size_t (!); this suggests
126608         that we should switch from unsigned int to size_t for slot numbers.
126610 2003-10-28  Paul Eggert  <eggert@twinsun.com>
126612         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
126613         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
126614         NetBSD kernels.  Requested by Richard Stallman.
126616 2003-10-27  Paul Eggert  <eggert@twinsun.com>
126618         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
126619         to allocate the returned structure.  Do not allocate a subarray,
126620         as x2nrealloc will do that.
126621         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
126622         instead of xnrealloc.
126623         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
126625 2003-10-27  Bruno Haible  <bruno@clisp.org>
126627         * lib/stdbool_.h: Better support for BeOS.
126629 2003-10-26  Paul Eggert  <eggert@twinsun.com>
126631         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
126632         now uses inline.
126634 2003-10-26  Paul Eggert  <eggert@twinsun.com>
126636         * lib/xalloc.h (xalloc_oversized): New static inline function, for
126637         callers that want to do their own size-overflow checking.  Include
126638         <stdbool.h>, since xalloc_oversized returns bool.
126639         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
126640         to use xalloc_oversized.
126642         Add two functions x2realloc, x2nrealloc, for programs that grow
126643         arrays dynamically by doubling their sizes.
126644         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
126645         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
126646         New functions.
126648         Port to C99 semantics for 'inline' of external functions.
126649         Bug reported by Bruno Haible.
126650         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
126651         with the old contents of xnmalloc.
126652         (xnmalloc, xmalloc): Use it.
126653         (xnrealloc_inline): New static inline function,
126654         with the old contents of xnrealloc.
126655         (xnrealloc, xrealloc): Use it.
126657         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
126658         that.
126660 2003-10-26  Karl Berry  <karl@gnu.org>
126662         * config/srclist.txt (COPYING.DOC): no longer available from
126663         /gd/gnuorg; don't know where the ultimate source is.
126665 2003-10-25  Paul Eggert  <eggert@twinsun.com>
126667         Fix several address-calculation bugs in the hash modules,
126668         plus some minor code cleanup.
126670         * lib/hash.h: Include <stdbool.h>, for bool.
126671         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
126672         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
126673         hash_get_n_entries, hash_get_max_bucket_length,
126674         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
126675         hash_rehash): Use size_t rather than unsigned.
126676         * lib/hash.c (struct hash_table, hash_get_n_buckets,
126677         hash_get_n_buckets_used, hash_get_n_entries,
126678         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
126679         hash_get_entries, hash_do_for_each, hash_string, is_prime,
126680         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
126681         Likewise.
126682         (SIZE_MAX): Define if not defined.
126683         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
126684         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
126685         hash_print):
126686         Use const * when possible.
126687         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
126688         (check_tuning): Fix bug: if tuning parameters were very close to
126689         0 or 1, rounding errors could have caused subscript violations.
126690         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
126691         (hash_initialize): Add 'fail:' label
126692         to free table and return NULL, and use it to simplify code.
126693         Use calloc rather than clearing the storage ourself.
126694         (hash_initialize, hash_rehash): Check for arithmetic overflow in
126695         buffer size calculations.
126696         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
126697         Include <stddef.h>, for size_t.
126698         * lib/hash-pjw.c (hash_pjw): Likewise.
126699         Switch to method described by Bruno Haible.
126700         Include <limits.h>, for CHAR_BIT.
126701         (SIZE_BITS): New macro.
126703 2003-10-23  Paul Eggert  <eggert@twinsun.com>
126705         * m4/getline.m4 (AM_FUNC_GETLINE):
126706         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
126707         hosts.  Problem reported by Derek Robert Price in
126708         <http://mail.gnu.org/r/bug-gnulib/2003-10/msg00092.html>.
126709         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
126710         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
126712 2003-10-21  Paul Eggert  <eggert@twinsun.com>
126714         * lib/getndelim2.c (getndelim2): When size calculation overflows,
126715         ceiling the allocation at NMAX bytes rather than silently
126716         discarding input bytes before NMAX is reached.  This makes
126717         a difference only if NMAX exceeds SIZE_MAX / 2.
126719         * lib/obstack.c: Merge from glibc.
126720         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
126721         Add libc_hidden_def (_obstack_newchunk).
126722         (_obstack_free) [! defined _LIBC]: Remove.
126723         [defined _LIBC]: Make a strong alias from obstack_free, rather than
126724         a clone of the function body.
126725         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
126726         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
126728         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
126729         glibc.
126730         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
126731         arg to memcpy.
126733         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
126734         (obstack_ptr_grow_fast, obstack_int_grow_fast):
126735         Don't use lvalue casts, as GCC plans to remove support for them
126736         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
126737         was also present in the non-GCC version, indicating that this
126738         code had always been buggy and had never been widely used.
126739         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
126740         Use the fast variant of each macro, rather than copying the
126741         definiens of the fast variant; that way, we'll be more likely to
126742         catch future bugs in the fast variants.
126744 2003-10-20  Bruno Haible  <bruno@clisp.org>
126746         * modules/wait-process: New file.
126747         * MODULES.html.sh (func_all_modules): Add wait-process.
126749 2003-10-20  Bruno Haible  <bruno@clisp.org>
126751         * m4/wait-process.m4: New file.
126753 2003-10-20  Bruno Haible  <bruno@clisp.org>
126755         * lib/wait-process.h: New file, from GNU gettext.
126756         * lib/wait-process.c: New file, from GNU gettext.
126758 2003-10-19  Jim Meyering  <jim@meyering.net>
126760         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
126761         HPUX 10.20.
126763 2003-10-18  Karl Berry  <karl@gnu.org>
126765         * config/config.guess: update from config.
126767 2003-10-16  Paul Eggert  <eggert@twinsun.com>
126769         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
126770         (getgroups): First arg is int, not size_t.
126771         Don't let 'free' mangle errno.
126773 2003-10-16  Paul Eggert  <eggert@twinsun.com>
126775         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
126777 2003-10-16  Karl Berry  <karl@gnu.org>
126779         * config/config.{guess,sub}: update from config.
126781 2003-10-16  Jim Meyering  <jim@meyering.net>
126783         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
126784         memcpy.
126786 2003-10-15  Paul Eggert  <eggert@twinsun.com>
126788         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
126789         (SIZE_MAX): Remove.
126790         (new_exclude, add_exclude_file): Initial size no longer needs to
126791         be a power of 2.
126792         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
126793         our own address arithmetic overflow checking.
126795         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
126796         (fnmatch): Do not alloca more than 2000 wide characters;
126797         instead, use malloc for large buffers.
126798         Check for address arithmetic overflow, and return -1
126799         with errno set to ENOMEM in that case.
126800         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
126801         (NEW_PATTERN): Do not alloca more than 8000 bytes;
126802         instead, return -1.  Check for address arithmetic overflow.
126804 2003-10-14  Paul Eggert  <eggert@twinsun.com>
126806         Handle invalid suffixes and overflow independently, so that
126807         callers can treat them independently as needed.  Fix some bugs in
126808         suffix handling, e.g., "100k@" was not diagnosed as an invalid
126809         suffix for a human-readable blocksize.  The major caller-visible
126810         change is the addition of a new
126811         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
126812         that both overflow and suffix chars were found.
126814         * lib/human.c (humblock): Don't check separately for invalid suffix
126815         char; that is xstrtoumax's job (now that its bug is fixed).
126816         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
126817         INTMAX_MAX]: New macros.
126818         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
126819         TYPE_MAXIMUM): New macros.
126820         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
126821         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
126822         if overflow occurs, as it's what __strtol does and it's more useful
126823         in practice.
126824         (__xstrtol): If __strtol reports some error other than ERANGE,
126825         reflect it to the caller as LONGINT_INVALID.  If it reports
126826         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
126827         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
126828         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
126829         value.
126830         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
126831         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
126832         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
126833         [defined UINTMAX_MAX]: New macros.
126835 2003-10-14  Bruno Haible  <bruno@clisp.org>
126837         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
126839 2003-10-14  Bruno Haible  <bruno@clisp.org>
126841         * m4/sig_atomic_t: New file, from GNU gettext.
126842         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
126844 2003-10-14  Bruno Haible  <bruno@clisp.org>
126846         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
126847         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
126848         Also use volatile where needed.
126850 2003-10-12  Paul Eggert  <eggert@twinsun.com>
126852         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
126853         Change maintainer from Bruno Haible to 'all'.
126855 2003-10-12  Paul Eggert  <eggert@twinsun.com>
126857         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
126859 2003-10-12  Paul Eggert  <eggert@twinsun.com>
126861         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
126862         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
126863         and define in terms of the other primitives.
126864         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
126865         (SIZE_MAX): Define if not already defined.
126866         (array_size_overflow): New function.
126867         (xalloc_die): Abort instead of exiting if 'error' returns.
126868         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
126869         (xmalloc, xrealloc): Use them.
126870         (xcalloc): Check for address arithmetic overflow.
126871         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
126872         a bit faster than strcpy.
126874 2003-10-10  Simon Josefsson  <jas@extundo.com>
126876         * modules/argp (Depends-on): Add restrict and strcase.
126878 2003-10-10  Simon Josefsson  <jas@extundo.com>
126880         * m4/argp.m4: Add AC_C_INLINE.
126882 2003-10-08  Paul Eggert  <eggert@twinsun.com>
126884         Merge getpass from libc, plus a few fixes.
126886         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
126887         Include <stdbool.h>.
126888         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
126889         __fsetlocking to empty.
126890         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
126891         do include <bits/libc-lock.h>.
126892         Do not include <fcntl.h>; not needed.
126893         [_LIBC]: Include <wchar.h>.
126894         (NOTCANCEL_MODE): New macro.
126895         (flockfile, funlockfile) [_LIBC]: New macros.
126896         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
126897         [!_LIBC]: New macros.
126898         (call_fclose): New function.
126899         (getpass): Use it.  Save tty stream separately; this simplifies the
126900         code and makes it more reliable if stdin happens to equal stdout.
126901         Invoke __fsetlocking on tty.
126902         Handle thread cancellation if needed.
126903         Namespace cleanup (use __tcgetattr, __getline).
126904         Use bool for Booleans.
126905         [USE_IN_LIBIO]: Handle wide streams.
126906         [!_LIBC]: Unconditionally do the fseek, since we don't know what
126907         stream might go where.
126909         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
126910         doesn't have to include <stdio.h> before us.
126911         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
126912         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
126913         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
126914         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
126915         if not declared, so that we can use getpass.c code from libc without
126916         rewriting it.
126917         (flockfile, ftrylockfile, funlockfile): New macros.
126919 2003-10-08  Paul Eggert  <eggert@twinsun.com>
126921         * modules/getpass: Depend on stdbool.
126923 2003-10-08  Paul Eggert  <eggert@twinsun.com>
126925         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
126927 2003-10-07  Karl Berry  <karl@gnu.org>
126929         * config/config.{guess,sub}: update from config.
126931 2003-10-06  Jim Meyering  <jim@meyering.net>
126932             Bruno Haible  <bruno@clisp.org>
126934         This lets translators provide better translations for the
126935         "Written by ..." part of --version output.
126936         * lib/version-etc.h: Include stdarg.h.
126937         (version_etc_copyright): Declare as readonly.
126938         (version_etc): Make this function variadic with a NULL-terminated list
126939         of author name strings.
126940         (version_etc_va): New declaration.
126941         * lib/version-etc.c: Include stdarg.h, stdlib.h.
126942         (version_etc_copyright): Declare as readonly.
126943         (version_etc_va): New function. Provide a different translatable string
126944         for each possible number of authors < 10. Abbreviate when there are 10
126945         authors or more.
126946         (version_etc): Make this function variadic. Call version_etc_va.
126947         Suggestion from Gary V. Vaughan.
126949         * lib/long-options.h (parse_long_options): Change prototype: the
126950         authors string is moved to the end and becomes variadic.
126951         * lib/long-options.c: Include stdarg.h.
126952         (parse_long_options): Make this function variadic, too.
126953         Call version_etc_va, not version_etc.
126955 2003-10-06  Bruno Haible  <bruno@clisp.org>
126957         * modules/version-etc-2: Remove file.
126958         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
126960 2003-10-06  Bruno Haible  <bruno@clisp.org>
126962         * modules/fatal-signal: New file.
126963         * MODULES.html.sh (func_all_modules): Add fatal-signal.
126965 2003-10-06  Bruno Haible  <bruno@clisp.org>
126967         * m4/fatal-signal.m4: New file.
126968         * m4/signalblocking.m4: New file, from GNU gettext.
126970 2003-10-06  Bruno Haible  <bruno@clisp.org>
126972         * lib/version-etc-2.h: Remove file.
126973         * lib/version-etc-2.c: Remove file.
126975 2003-10-06  Bruno Haible  <bruno@clisp.org>
126977         * lib/fatal-signal.h: New file, from GNU gettext.
126978         * lib/fatal-signal.c: New file, from GNU gettext.
126980 2003-10-05  Paul Eggert  <eggert@twinsun.com>
126982         * README: Rework advice for preventing empty .o files.
126983         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
126984         not <sys/types.h>.
126986 2003-10-04  Karl Berry  <karl@gnu.org>
126988         * lib/argp*: update from libc.
126990 2003-10-04  Karl Berry  <karl@gnu.org>
126992         * config/config.{guess,sub}: update from config.
126994 2003-10-02  Bruno Haible  <bruno@clisp.org>
126996         * modules/lchown (Include): Add lchown.h.
126997         * modules/time_r (Include): Use "..." syntax.
126998         * modules/xgetdomainname (Include): Add xgetdomainname.h.
127000 2003-10-01  Simon Josefsson  <jas@extundo.com>
127002         * MODULES.html.sh (func_all_modules): Move gethostname from section
127003         'based on' to section 'lacking' POSIX:2001.
127005 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
127007         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
127008         to output mode on the same stream.
127010 2003-09-29  Paul Eggert  <eggert@twinsun.com>
127012         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
127013         Fix arg typo in previous patch.
127015 2003-09-28  Jim Meyering  <jim@meyering.net>
127017         * lib/error.c: Correct cpp indentation.
127019 2003-09-27  Paul Eggert  <eggert@twinsun.com>
127021         * modules/free: New file.
127023 2003-09-27  Paul Eggert  <eggert@twinsun.com>
127025         * m4/free.m4: New file.
127027 2003-09-27  Paul Eggert  <eggert@twinsun.com>
127029         * lib/minmax.h (MIN, MAX)
127030         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
127031         Omit the special code that used __typeof__, since we worry that
127032         it could be more trouble than it's worth.  See:
127033         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00090.html
127034         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00095.html
127036         * lib/free.c: New file.
127038 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
127040         Trivial fixes to Makefile.am parts of module listings.
127041         * modules/strstr: Append strstr.h to lib_SOURCES.
127042         * modules/strcase: Likewise, for strcase.h.
127044 2003-09-27  Karl Berry  <karl@gnu.org>
127046         * config/mkinstalldirs: update from automake.
127048 2003-09-26  Paul Eggert  <eggert@twinsun.com>
127050         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
127051         (error_tail): Do not loop, reallocating temporary buffer, since
127052         the output cannot contain more wide characters than the input
127053         contains bytes, the size must be big enough already.  This avoids
127054         one potential size overflow calculation.  Check for size overflow
127055         when calculating temporary buffer size.  Free temporary buffer
127056         when done, if it was allocated with malloc; this plugs a memory
127057         leak.  Remove casts from void * to pointers, that are no longer
127058         needed now that we're assuming C89 or better.
127060         Merge error changes from glibc.
127062         * lib/error.c, error.h: Update copyright notice header to match glibc.
127063         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
127064         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
127065         Disable cancellation while printing error.
127066         * lib/error.h: Prepend __ to parameter names.
127068 2003-09-26  Jim Meyering  <jim@meyering.net>
127070         * lib/error.c (error_tail): Move some declarations
127071         into inner scope where the local variables are used.
127073 2003-09-26  Bruno Haible  <bruno@clisp.org>
127075         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
127076         stpncpy().
127077         Don't define stpncpy through config.h; it's now done through stpncpy.h.
127079 2003-09-26  Bruno Haible  <bruno@clisp.org>
127081         * lib/stpncpy.h (gnu_stpncpy): New declaration.
127082         (stpncpy): Define as alias for gnu_stpncpy.
127083         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
127085 2003-09-25  Simon Josefsson  <jas@extundo.com>
127087         * lib/xgetdomainname.h: New file.
127088         * lib/xgetdomainname.c: New file.
127090 2003-09-25  Simon Josefsson  <jas@extundo.com>
127091             Bruno Haible  <bruno@clisp.org>
127093         * modules/getdomainname: New file.
127094         * modules/xgetdomainname: New file.
127095         * MODULES.html.sh (func_all_modules): Add getdomainname,
127096         xgetdomainname.
127098 2003-09-25  Simon Josefsson  <jas@extundo.com>
127099             Bruno Haible  <bruno@clisp.org>
127101         * m4/getdomainname.m4: New file.
127103 2003-09-25  Simon Josefsson  <jas@extundo.com>
127104             Bruno Haible  <bruno@clisp.org>
127106         * lib/getdomainname.h: New file.
127107         * lib/getdomainname.c: New file.
127109 2003-09-25  Karl Berry  <karl@gnu.org>
127111         * lib/argp-fmtstream.c, argp-help.c: update from libc.
127113 2003-09-25  Karl Berry  <karl@gnu.org>
127115         * config/install-sh: update from automake.
127117 2003-09-25  Bruno Haible  <bruno@clisp.org>
127119         * modules/version-etc-2: New file, from modules/version-etc with
127120         modifications.
127121         * MODULES.html.sh (func_all_modules): Add version-etc-2.
127123 2003-09-25  Bruno Haible  <bruno@clisp.org>
127125         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
127126         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
127128 2003-09-24  Simon Josefsson  <jas@extundo.com>
127130         * modules/xgethostname: Add xgethostname.h.
127132 2003-09-24  Paul Eggert  <eggert@twinsun.com>
127134         * lib/linebuffer.c (freebuffer): Don't free the argument, just
127135         the buffer associated with the argument.  Bug reported by
127136         Simon Josefsson.
127138 2003-09-24  Paul Eggert  <eggert@twinsun.com>
127140         * README: Document assumptions that 'int' is at least 32 bits
127141         wide, that integer arithmetic is 2's complement without overflow,
127142         that there are no holes in integer values, that adding sizes of
127143         two nonoverlapping objects can't overflow, and that all-bits-zero
127144         yields scalar zero.  Fix spelling and capitalization typos.
127146 2003-09-19  Karl Berry  <karl@gnu.org>
127148         * lib/argp.h: update from libc.
127150 2003-09-17  Paul Eggert  <eggert@twinsun.com>
127152         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
127153         to avoid spurious warnings like "AC_RUN_IFELSE was called before
127154         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
127156 2003-09-17  Paul Eggert  <eggert@twinsun.com>
127158         * gnulib-tool: Use "test -h", not "test -L", for portability
127159         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
127160         (tags_regexp): Remove, since \| doesn't conform to POSIX.
127161         (sed_extract_prog): Issue s commands one-by-one, rather than
127162         using \| in one s command.
127164 2003-09-16  Paul Eggert  <eggert@twinsun.com>
127166         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
127167         input error, instead of returning NULL the next time we are called
127168         (and therefore losing track of errno).
127170 2003-09-16  Bruno Haible  <bruno@clisp.org>
127172         * gnulib-tool (func_create_testdir): Warn about duplicated
127173         dependencies.
127175 2003-09-15  Paul Eggert  <eggert@twinsun.com>
127177         * modules/argmatch, modules/fatal, modules/obstack,
127178         modules/xalloc, modules/xgethostname: Sort dependencies by
127179         importance, not alphabetically.
127181 2003-09-15  Paul Eggert  <eggert@twinsun.com>
127183         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
127184         fails, so that the caller gets the proper errno.
127186         * lib/readutmp.c (read_utmp): Likewise.
127187         Check for fstat error.  Close stream and free storage
127188         when failing.
127190 2003-09-14  Karl Berry  <karl@gnu.org>
127192         * config/srclist.txt (strdup.c): disable for c89 changes.
127194 2003-09-14  Jim Meyering  <jim@meyering.net>
127196         * lib/getloadavg.c: Correct cpp indentation.
127197         * lib/strdup.c: Likewise.
127198         * lib/vasnprintf.c: Likewise.
127200 2003-09-14  Bruno Haible  <bruno@clisp.org>
127202         * modules/fwriteerror: New file.
127203         * MODULES.html.sh (func_all_modules): Add fwriteerror.
127205 2003-09-14  Bruno Haible  <bruno@clisp.org>
127207         * lib/fwriteerror.h: New file.
127208         * lib/fwriteerror.c: New file.
127210 2003-09-12  Paul Eggert  <eggert@twinsun.com>
127212         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
127213         modules/xgethostname, modules/xalloc: Depend on exit.
127215 2003-09-12  Paul Eggert  <eggert@twinsun.com>
127217         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
127219         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
127220         and AC_MINIX, too, so that their extensions are available.
127222         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
127223         This macro has been superseded by gl_BACKUPFILE.
127225         More patches to assume C89 or better.
127227         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
127229         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
127230         unconditionally.
127231         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
127232         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
127233         Include <string.h>, <stdlib.h> unconditionally.
127234         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
127235         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
127236         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
127237         headers or for string.h.
127238         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
127239         or strtoul.
127241         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
127242         headers.
127243         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
127244         * m4/userspec.m4 (gl_USERSPEC): Likewise.
127245         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
127246         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
127247         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
127248         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
127249         memcpy, memset.
127250         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
127251         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
127252         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
127253         strtol.
127254         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
127255         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
127256         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
127257         strtoul.
127259 2003-09-12  Paul Eggert  <eggert@twinsun.com>
127261         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
127262         * lib/obstack.c [!defined _LIBC]: Likewise.
127263         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
127264         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
127265         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
127267         More changes to assume C89 or better.
127269         * lib/error.c (error_tail): Assume vprintf.
127271         * lib/argmatch.c (getenv): Remove decl.
127272         * lib/progreloc.c (get_full_program_name): Define via prototype.
127273         * lib/setenv.c (clearenv): Likewise.
127274         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
127275         needed.
127276         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
127277         (malloc, memcpy): Remove decls.
127278         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
127279         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
127280         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
127281         (memcpy): Remove macro.
127282         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
127283         (__P): Remove.  All uses removed.
127284         (PTR): Remove.  All uses changed to void *.
127285         (CHAR_BIT, NULL): Remove.
127286         (spaces, zeros, memset_space, memset_zero)
127287         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
127288         Remove.
127289         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
127290         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
127291         Define with prototype.
127292         Remove now-unnecessary prototype decl.
127293         (extra_args_spec): Assume ANSI C.  All uses changed.
127294         (extra_args_spec_iso): Remove.
127295         (my_strftime, emacs_strftimeu): Define via prototype.
127296         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
127297         unconditionally.
127298         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
127299         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
127300         (strtoul, strtol): Remove decls.
127301         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
127302         LONG_MAX): Remove.
127303         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
127304         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
127305         (LOCALE_PARAM_PROTO): New macro.
127306         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
127307         (INTERNAL (strtol), strtol): Define with a prototype.
127308         (PARAMS): Remove.  All uses removed.
127309         * lib/tempname.c: Include <string.h> unconditionally.
127310         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
127311         * lib/xgethostname.c (main): Define with a prototype.
127312         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
127313         Include <stdlib.h> unconditionally.
127314         (calloc, malloc, realloc, free): Remove decls.
127315         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
127316         Include <stdlib.h> unconditionally.  Sort include file names.
127317         (strtod): Remove.
127318         (xstrtod): Define with a prototype.
127319         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
127320         (strtol, strtoul): Remove decls.
127322 2003-09-11  Paul Eggert  <eggert@twinsun.com>
127324         More patches to assume C89 or better.
127325         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
127326         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
127327         string.h, memchr, STDC_HEADERS.
127329 2003-09-11  Paul Eggert  <eggert@twinsun.com>
127331         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
127332         Include <stdlib.h>, <string.h> unconditionally.
127333         Remove now-unnecessary cast to char *.
127334         * lib/strnlen.c: Include <string.h> unconditionally.
127335         * lib/yesno.c (yesno): Define with a prototype.
127337 2003-09-11  Bruno Haible  <bruno@clisp.org>
127339         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
127341 2003-09-10  Jim Meyering  <jim@meyering.net>
127343         * lib/error.c: Correct indentation of cpp directives.
127345 2003-09-10  Bruno Haible  <bruno@clisp.org>
127347         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
127348         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
127349         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
127350         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
127351         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
127352         <stdlib.h> and <string.h> checks.
127353         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
127354         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
127356 2003-09-10  Bruno Haible  <bruno@clisp.org>
127358         * lib/strcspn.c: Include <string.h> unconditionally.
127359         * lib/strpbrk.c: Include <string.h> unconditionally.
127360         * lib/strstr.c: Include <string.h> unconditionally.
127361         * lib/unicodeio.c: Include <string.h> unconditionally.
127362         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
127363         * lib/unsetenv.c: Likewise.
127364         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
127365         * lib/yesno.c: Include <stdlib.h> unconditionally.
127366         (rpmatch): Add prototype.
127368 2003-09-09  Paul Eggert  <eggert@twinsun.com>
127370         More patches to assume C89 or better.
127371         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
127372         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
127373         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
127374         or for string.h.
127375         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
127376         stdlib.h.
127377         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
127378         C headers.
127379         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
127380         string.h.
127381         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
127382         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
127383         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
127384         or for string.h.
127385         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
127386         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
127387         C headers.
127388         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
127389         memcpy.
127390         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
127391         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
127392         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
127393         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
127394         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
127395         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
127396         string.h, free.
127397         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
127398         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
127399         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
127400         C headers, or for string.h.
127401         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
127402         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
127403         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
127404         headers, memory.h, stdlib.h, string.h, strings.h.
127405         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
127406         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
127407         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
127408         strchr.
127409         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
127410         headers, memory.h, string.h.
127411         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
127412         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
127413         free.
127414         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
127415         headers.
127416         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
127417         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
127418         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
127419         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
127420         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
127422 2003-09-09  Paul Eggert  <eggert@twinsun.com>
127424         More K&R removal.
127426         * lib/acosl.c (main): Use a prototype.
127427         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
127428         tanl.c: Likewise.
127430         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
127432         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
127433         (getopt, etopt_long, getopt_long_only, _getopt_internal)
127434         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
127435         with a prototype.
127436         * lib/getopt.c (const): Remove macro.
127437         Include <string.h> unconditionally.
127438         (my_index): Remove; all uses changed to strchr.
127439         (strlen): Remove decl.
127440         (exchange): Remove forward decl; no longer needed.
127441         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
127442         Define with prototype.
127443         * lib/getopt1.c (const): Remove macro.
127444         (getopt_long, getopt_long_only, main): Define with prototype.
127446         * lib/getugroups.c: Include <string.h> unconditionally.
127448         * lib/getusershell.c: Include <stdlib.h> unconditionally.
127449         (getusershell, setusershell, endusershell, readname, main):
127450         Define with prototypes.
127452         * lib/group-member.c: Include group-member.h first.
127453         Include <stdlib.h> unconditionally.
127455         * lib/hard-locale.c: Include hard-locale.h first.
127456         Include <stdlib.h>, <string.h> unconditionally.
127458         * lib/hash.c (free, malloc): Remove decls.
127459         Include <stdlib.h> unconditionally.
127461         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
127462         (getenv): Do not declare.
127464         * lib/idcache.c: Include <string.h> unconditionally.
127466         * lib/long-options.c: Include long-options.h first, to test interface.
127467         Include <stdlib.h> unconditionally.
127469         * lib/makepath.c: Include makepath.h first, to test interface.
127470         Include <stdlib.h> and <string.h> unconditionally.
127472         * lib/linebuffer.c: Include <stdlib.h>.
127473         (free): Remove decl.
127475         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
127476         stddef.h. rpl_malloc returns void *, not char *.
127477         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
127478         prototype.
127480         * lib/md5.h: Include <limits.h> unconditionally.
127481         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
127482         (__P): Remove; all uses removed.
127483         * lib/md5.c: Include "md5.h" first.
127484         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
127485         md5_buffer, md5_process_bytes, md5_process_block):
127486         Define with prototypes.
127487         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
127488         * lib/sha.c: Include "sha.h" first.
127489         Include <stdlib.h>, <string.h> unconditionally.
127491         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
127492         * lib/memcmp.c (__ptr_t): Likewise.
127493         * lib/memrchr.c (__ptr_t): Likewise.
127494         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
127495         Include <string.h> unconditionally.
127496         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
127497         * lib/memchr.c: Include <stdlib.h> unconditionally.
127498         * lib/memchr.c (LONG_MAX): Remove.
127499         * lib/memrchr.c (LONG_MAX): Likewise.
127500         * lib/memchr.c (__memchr): Define via a prototype.
127501         * lib/memrchr.c (__memrchr): Likewise.
127502         * lib/memcmp.c (__P): Remove, and remove all uses.
127503         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
127504         Remove forward decls; no longer needed.
127505         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
127506         Use types required by C89 in prototype.
127508         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
127509         * lib/savedir.c: Likewise.
127510         * lib/mkdir.c (free): Remove decl.
127511         * lib/rmdir.c (rmdir): Define with a prototype.
127512         * lib/savedir.c: Include savedir.h first, to test interface.
127514         * lib/mktime.c (STDC_HEADERS): Remove.
127515         Include <stdlib.h>, <string.h> unconditionally.
127517         * lib/modechange.c: Include <stdlib.h> unconditionally.
127518         (malloc): Remove decl.
127520         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
127521         (free): Remove decl.
127523         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
127524         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
127525         (This type really should be intptr_t, but that's a C99ism.)
127526         (_obstack_memcpy): Remove: all uses changed to memcpy.
127527         Include <string.h> unconditionally.
127528         (struct obstack): Assume __STDC__ for types of members
127529         chunkfun, freefun, extra_arg.
127530         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
127531         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
127532         obstack_begin, obstack_specify_allocation,
127533         obstack_specify_allocation_with_arg, obstack_chunkfun,
127534         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
127535         Remove unprototyped decls and the macros that use them.
127536         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
127537         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
127538         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
127539         (defined __STDC__ && __STDC__)]:
127540         Remove nonprototyped code.
127541         Include <stdlib.h> unconditionally.
127542         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
127543         _obstack_allocated_p, _obstack_free, obstack_free,
127544         _obstack_memory_used, print_and_abort):
127545         Define using prototypes.
127546         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
127547         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
127548         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
127549         obstack_next_free, obstack_object_size, obstack_room) [0]:
127550         Remove unused, unprototyped code.
127552         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
127554         * lib/physmem.c (physmem_total, physmem_available, main): Define
127555         with prototypes.
127557         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
127558         (main): Define with a prototype.
127560         * lib/posixver.c (getenv): Remove decl.
127562         * lib/putenv.c (malloc): Returns void *, not char *.
127563         Include <string.h> unconditionally.
127564         (strchr, memcpy, NULL): Do not define.
127566         * lib/readtokens.c: Include readtokens.h first, to test interface.
127567         Include <stdlib.h>, <string.h> unconditionally.
127568         (init_tokenbuffer): Define with a prototype.
127570         * lib/regex.c (PARAMS): Remove.  All uses removed.
127571         All uses of _RE_ARGS removed, too.
127572         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
127573         unconditionally.
127574         (bzero): Assume memset exists.
127575         (memcmp, memcpy, NULL): Remove.
127576         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
127577         char, or assignments to local vars of type signed char.
127578         (init_syntax_once, PREFIX(extract_number_and_incr),
127579         PREFIX(print_partial_compiled_pattern),
127580         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
127581         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
127582         PREFIX(regex_grow_registers), PREFIX(regex_compile),
127583         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
127584         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
127585         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
127586         wcs_compile_range, byte_compile_range, truncate_wchar,
127587         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
127588         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
127589         count_mbs_length, wcs_re_match_2_internal,
127590         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
127591         PREFIX(alt_match_null_string_p),
127592         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
127593         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
127594         regfree, PREFIX(extract_number)): Define with prototype.  Remove
127595         now-unnecessary declaration, if any.
127596         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
127597         regcomp, regexec):
127598         Remove now-unnecessary casts among pointer types.
127599         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
127601         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
127602         (free): Remove decl.
127604         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
127606         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
127607         (free): Remove decl.
127609         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
127610         * lib/xgetcwd.c: Likewise.
127612         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
127613         (free): Remove decl.
127615         * lib/strchrnul.c (strchrnul): Define with a prototype.
127616         Fix bug: c_in was not converted to char before searching.
127618         The following changes are not K&R related:
127620         * lib/group-member.h: Include <sys/types.h>, so that this file is
127621         self-contained.
127622         * lib/makepath.h: Likewise.
127624         * lib/getusershell.c (readname, default_index, line_size, readname):
127625         Use size_t, not int, for sizes.
127626         (readname): If the size overflows, report an error instead of
127627         looping forever.
127629 2003-09-09  Paul Eggert  <eggert@twinsun.com>
127631         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
127632         libc.
127634 2003-09-09  Paul Eggert  <eggert@twinsun.com>
127636         * README: New section: portability guidelines.
127638 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
127640         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
127641         C89 spec.
127643 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
127645         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
127647 2003-09-08  Paul Eggert  <eggert@twinsun.com>
127649         Assume C89 or better; remove K&R cruft.
127650         A few of these changes were first proposed by Derek Robert Price
127651         in <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00105.html>.
127653         * lib/addext.c: Include <string.h> unconditionally.
127654         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
127655         Don't declare getenv or malloc.
127657         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
127658         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
127659         (NULL): Remove.
127660         (find_stack_direction, alloca): Use prototypes.
127662         * lib/atexit.c (atexit): Define using a prototype.
127664         * lib/basename.c, dirname.c, stripslash.c:
127665         Include <string.h> unconditionally.
127667         * lib/bcopy.c: Include <stddef.h>.
127668         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
127670         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
127672         * lib/error.h (error, error_at_line, error_print_progname)
127673         [! (defined (__STDC__) && __STDC__)]: Remove decls.
127674         * lib/error.c: Include error.h first, to check interface.
127675         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
127676         (VA_START): Remove; all uses changeed to va_start.
127677         (exit, strerror): Remove decls.
127678         (error_print_progname): Prototype uncondionally.
127679         Don't include <errno.h>; no longer needed.
127680         (private_strerror): Remove.
127681         (error_tail): Always define.
127682         (error, error_at_line): Assume C89 or better; always use prototypes.
127683         * lib/fatal.c: Include "fatal.h" first, to test interface.
127684         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
127685         (VA_START): Remove; all uses changed to va_start.
127686         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
127687         this case.
127688         (exit): Remove decl.
127689         (fatal): Prototype unconditionally.  Assume va_start works.
127690         Abort at end, to pacify gcc.
127692         * lib/euidaccess.c (main): Define with a prototype.
127694         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
127696         * lib/exitfail.c: Include <stdlib.h> unconditionally.
127698         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
127699         prototypes.
127700         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
127701         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
127702         (getenv): Remove decl.
127703         (fnmatch): Define using a prototype.
127704         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
127705         (FCT): Define using a prototype.
127707         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
127709         * lib/gethostname.c: Include <stddef.h>.
127710         (gethostname): Define with prototype.  Length is size_t, not int.
127712 2003-09-08  Paul Eggert  <eggert@twinsun.com>
127714         Assume C89 or better; remove K&R cruft.
127715         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
127716         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
127717         string.h, getenv, malloc.
127718         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
127719         headers.
127720         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
127721         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
127722         do not check for strerror.
127723         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
127724         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
127725         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
127726         do not check for doprnt or vprintf.
127727         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
127728         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
127730 2003-09-08  Paul Eggert  <eggert@twinsun.com>
127732         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
127733         getversion.c should have been removed then, but was accidentally
127734         preserved.
127736         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
127737         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
127739 2003-09-08  Karl Berry  <karl@gnu.org>
127741         * config/config.sub, config.guess, srclistvars.sh: update from savannah
127742                 config, forget about prep.
127744         * config/depcomp, missing: update from automake.
127746 2003-09-07  Paul Eggert  <eggert@twinsun.com>
127748         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
127749         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
127751 2003-09-07  Paul Eggert  <eggert@twinsun.com>
127753         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
127754         copy_tm_result.  Bug reported by Simon Josefsson in
127755         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
127757 2003-09-06  Paul Eggert  <eggert@twinsun.com>
127759         * m4/time_r.m4: New file.
127760         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
127761         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
127762         is. Check for timegm declaration.
127763         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
127764         Do not check for gmtime_r.
127765         Replace mktime if __mktime_internal does not exist and if mktime
127766         hasn't been replaced already.
127768 2003-09-06  Paul Eggert  <eggert@twinsun.com>
127770         * lib/time_r.c, lib/time_r.h: New files.
127772         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
127773         __localtime_r.
127774         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
127775         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
127777         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
127778         __gmtime_r.
127779         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
127780         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
127781         Include <time_r.h>.
127783         * lib/timegm.c: Switch to glibc implementation, with the following
127784         changes:
127785         [defined HAVE_CONFIG_H]: Include <config.h>.
127786         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
127787         (__mktime_internal) [!defined _LIBC]: New decl.
127788         (__gmtime_r) [!defined _LIBC]: New macro and function.
127789         (timegm): Use a prototype, since gnulib assumes C89.
127790         Do not bother declaring tmp to be const, as it's not really usefu.
127791         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
127792         (timegm): Declare only if HAVE_DECL_TIMEGM.
127794 2003-09-06  Paul Eggert  <eggert@twinsun.com>
127796         * MODULES.html.sh (func_all_modules): Add time_r.
127797         * modules/time_r: New file.
127798         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
127799         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
127801 2003-09-03  Paul Eggert  <eggert@twinsun.com>
127803         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
127804         Bug reported by Lute Kamstra in
127805         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00003.html>.
127807         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
127808         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
127809         course with correspondingly smaller numbers for tomorrow and
127810         yesterday.  From Tadayoshi Funaba.  Originally installed into
127811         sh-utils on 1999-08-07, but the patch got lost (I guess during the
127812         coreutils merge?).
127814 2003-08-31  Simon Josefsson  <jas@extundo.com>
127816         * modules/timegm: New file.
127817         * MODULES.html.sh (func_all_modules): Add timegm.
127819 2003-08-31  Simon Josefsson  <jas@extundo.com>
127821         * m4/timegm.m4: New file.
127823 2003-08-31  Simon Josefsson  <jas@extundo.com>
127825         * lib/timegm.h: New file.
127826         * lib/timegm.c: New file.  Based on
127827         wget-1.8.2/src/http.c:mktime_from_utc.
127829 2003-08-31  Karl Berry  <karl@gnu.org>
127831         * lib/argp.h: update from libc.
127833 2003-08-28  Bruno Haible  <bruno@clisp.org>
127835         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
127836         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
127837         followed by '#define fnmatch fnmatch_posix' gives an error.
127839 2003-08-28  Bruno Haible  <bruno@clisp.org>
127841         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
127842         warning on QNX, which defines O_BINARY to 000000.
127844 2003-08-27  Jim Meyering  <jim@meyering.net>
127846         * m4/mkstemp.m4: Require that the system mkstemp be able to create
127847         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
127848         would fail after 32.  Reported by Danny Levinson.  Details here:
127849         http://mail.gnu.org/r/bug-coreutils/2003-08/msg00124.html
127851 2003-08-24  Bruno Haible  <bruno@clisp.org>
127853         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
127854         MSVC7 <stdio.h> is included later.
127856 2003-08-22  Simon Josefsson  <jas@extundo.com>
127858         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
127860 2003-08-20  Karl Berry  <karl@gnu.org>
127862         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
127864 2003-08-20  Bruno Haible  <bruno@clisp.org>
127866         * modules/progname: New file.
127867         * MODULES.html.sh (func_all_modules): Add progname.
127869 2003-08-20  Bruno Haible  <bruno@clisp.org>
127871         * lib/progname.h: New file, from GNU gettext.
127872         * lib/progname.c: New file, from GNU gettext.
127873         * lib/progreloc.c: New file, from GNU gettext.
127875 2003-08-19  Jim Meyering  <jim@meyering.net>
127877         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
127878         http://mail.gnu.org/r/bug-gnulib/2003-08/msg00155.html
127880 2003-08-19  Bruno Haible  <bruno@clisp.org>
127882         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
127883         more.
127885 2003-08-19  Bruno Haible  <bruno@clisp.org>
127887         * lib/xstrdup.c: Assume <string.h> exists.
127889 2003-08-18  Paul Eggert  <eggert@twinsun.com>
127891         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
127892         in makefile rules.
127894 2003-08-18  Jim Meyering  <jim@meyering.net>
127896         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
127897         * m4/lib-ld.m4: Likewise.
127899 2003-08-18  Jim Meyering  <jim@meyering.net>
127901         * lib/setenv.h: Indent nested cpp directive.
127902         * lib/vasnprintf.c: Remove trailing blanks.
127904 2003-08-17  Simon Josefsson  <jas@extundo.com>
127906         * modules/xstrndup: New file.
127907         * MODULES.html.sh (func_all_modules): Add xstrndup.
127909 2003-08-17  Simon Josefsson  <jas@extundo.com>
127911         * modules/argp: Fix autoconf macro name. Add more dependencies.
127913 2003-08-17  Simon Josefsson  <jas@extundo.com>
127915         * m4/xstrndup.m4: New file.
127917 2003-08-17  Simon Josefsson  <jas@extundo.com>
127919         * m4/argp.m4: New file.
127921 2003-08-17  Simon Josefsson  <jas@extundo.com>
127922             Bruno Haible  <bruno@clisp.org>
127924         * lib/xstrndup.h: New file.
127925         * lib/xstrndup.c: New file.
127927 2003-08-17  Bruno Haible  <bruno@clisp.org>
127929         * modules/strndup (Files, Include): Add lib/strndup.h.
127931 2003-08-17  Bruno Haible  <bruno@clisp.org>
127933         * modules/euidaccess (Files): Add lib/euidaccess.h.
127935 2003-08-17  Bruno Haible  <bruno@clisp.org>
127937         * lib/strndup.h: New file.
127939 2003-08-17  Bruno Haible  <bruno@clisp.org>
127941         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
127942         like AC_GNU_SOURCE.
127943         * modules/extensions (configure.ac): Comment out the invocation of
127944         gl_USE_SYSTEM_EXTENSIONS.
127946 2003-08-16  Paul Eggert  <eggert@twinsun.com>
127948         Merges from coreutils, etc.
127949         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
127950         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
127951         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
127952         fixing a typo.
127953         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
127954         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
127956 2003-08-16  Paul Eggert  <eggert@twinsun.com>
127958         Document merge from coreutils.
127959         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
127960         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
127961         * modules/utime: Add m4/utimes-null.m4.
127963 2003-08-16  Paul Eggert  <eggert@twinsun.com>
127965         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
127966         space, undoing this 2003-08-12 change:
127967         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
127969 2003-08-16  Paul Eggert  <eggert@twinsun.com>
127971         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
127972         strtoul.c from libc, undoing this 2003-08-12 change:
127973         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
127975 2003-08-16  Jim Meyering  <jim@meyering.net>
127977         Merges from coreutils.
127978         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
127979         prefix.  Adjust cache variables similarly.  Create 500 rather than
127980         just 300 files, to exercise bug on Darwin6.5, too.
127981         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
127982         $missing_dir.
127983         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
127984         AM_SYS_POSIX_TERMIOS.
127985         Reported by mkc@mathdogs.com.
127986         Also change use of $am_cv_sys_posix_termios
127987         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
127988         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
127989         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
127990         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
127991         in /proc/mounts until it finds one with matching device number.  This
127992         is unnecessary when the FILE argument *is* a mount point.  No stat call
127993         is necessary in that case.  So, disable the statvfs-testing code on
127994         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
127995         as RedHat bug# 84846.
127996         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
127997         to 1MB, so as not to render systems with no stack size limit (e.g.,
127998         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
127999         Include <unistd.h>.  On some systems,
128000         it is required for the definition of _SC_PAGESIZE.
128002 2003-08-16  Jim Meyering  <jim@meyering.net>
128004         Merge from coreutils.
128005         * lib/xstrtoimax.c: #else #if -> #elif.
128006         * lib/xstrtoumax.c: Likewise.
128008 2003-08-16  Jim Meyering  <jim@meyering.net>
128010         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
128011         * m4/utimes.m4: Removed.
128012         * m4/utimes-null.m4: Renamed from utimes.m4.
128014         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
128015         to 1MB, so as not to render systems with no stack size limit (e.g.,
128016         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
128017         Include <unistd.h>.  On some systems,
128018         it is required for the definition of _SC_PAGESIZE.
128020 2003-08-16  Jim Meyering  <jim@meyering.net>
128021         and Paul Eggert  <eggert@cs.ucla.edu>
128023         Merges from coreutils, etc.
128025         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
128026         using the latest version from cvs.  This avoids problems with #line
128027         directives using a vendor (Sun) compiler.
128028         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
128029         Don't set GETGROUPS_LIB here; now it's
128030         done via getgroups.m4's wrapper function.
128031         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
128032         rather than just in sh-util/configure.in, so that the
128033         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
128034         same.
128035         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
128036         AC_FUNC_GETLOADAVG where to find getloadavg.c.
128037         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
128038         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
128039         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
128040         Remove code that is now done by the newly-required macros.
128041         Append $(EXEEXT) to DF_PROG.
128042         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
128043         Do not invoke or require the following here,
128044         since prereq.m4 or some gnulib .m4 now does this for us:
128045         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
128046         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
128047         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
128048         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
128049         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
128050         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
128051         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
128052         AC_FUNC_OBSTACK.
128053         Do not replace the following functions, as this is now the job
128054         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
128055         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
128056         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
128057         atexit getpass, strdup, getpagesize.
128058         Replace 'raise'.
128059         Do not check for the following functions, as this is now the job
128060         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
128061         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
128062         setregid.
128063         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
128064         Check for sys/sysctl.h.
128065         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
128066         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
128067         of checking for ssize_t ourselves.
128069         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
128070         Require every macro that gnulib/modules/* suggests for us.
128071         (jm_PREREQ_ADDEXT): New macro.
128072         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
128073         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
128075         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
128076         (gl_PHYSMEM): Use it.
128077         Also check for `table' function.
128078         Check for new headers and functions.
128079         Add check for sys/sysmp.h.
128080         With suggestions from Kaveh Ghazi.
128081         Ignore headers that are present but cannot be compiled.  This
128082         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
128083         C 5.4.
128085 2003-08-15  Paul Eggert  <eggert@twinsun.com>
128087         Document merge from coreutils.
128088         * modules/userspec: Depend on posixver.
128089         * modules/strftime: Depend on tzset.
128091 2003-08-15  Paul Eggert  <eggert@twinsun.com>
128093         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
128094         rather than tab, after '#' in shell-script copyright notices.
128095         Suggested by Bruno Haible.
128097 2003-08-15  Paul Eggert  <eggert@twinsun.com>
128099         * config/srclist-update: Use three spaces, rather than tab, after '#'
128100         in shell-script copyright notices.  Suggested by Bruno Haible.
128101         Remove unnecessary parenthesization in regular expression.
128103 2003-08-15  Jim Meyering  <jim@meyering.net>
128105         Merge from coreutils.
128106         * lib/xgethostname.c: Include <stdlib.h>.
128107         (xghostname): Don't exit for anything other than memory-related
128108         failure; just return NULL.
128109         * lib/userspec.c: Include "posixver.h".
128110         (parse_user_spec): Accept `.' as a separator only
128111         in pre-POSIX-200112 mode.
128112         * lib/strtoimax.c: Use #elif rather than #else #if.
128113         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
128114         Remove function, now that we can rely on a working tzset function.
128115         [!_LIBC]: Ensure that the required autoconf test has been run.
128116         [!defined _NL_CURRENT && HAVE_STRFTIME]:
128117         Use underlying_strftime for %r.
128118         * lib/sha.c: Merge in some clean-up and optimization changes from
128119         glibc.
128120         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
128121         Ensure that it is a multiple of 64.
128122         Rearrange loop exit tests so as to avoid performing an
128123         additional fread after encountering an error or EOF.
128124         * lib/realloc.c: Update copyright date.
128126 2003-08-15  Jim Meyering  <jim@meyering.net>
128127         and Paul Eggert  <eggert@twinsun.com>
128129         Merge from coreutils.
128130         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
128131         member but strut utmpx does not.  Needed for AIX 4.3.3.
128132         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
128134 2003-08-15  Jim Meyering  <jim@meyering.net>
128135         and Paul Eggert  <eggert@cs.ucla.edu>
128137         Merges from coreutils, etc.
128138         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
128139         Require gl_FUNC_TZSET_CLOBBER.
128140         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
128141         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
128142         members.
128144 2003-08-14  Paul Eggert  <eggert@twinsun.com>
128146         Help the merge from coreutils.
128147         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
128148         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
128149         * m4/tzset.m4: Use it too.
128151 2003-08-14  Paul Eggert  <eggert@twinsun.com>
128153         * modules/tzset: New file.
128155 2003-08-14  Jim Meyering  <jim@meyering.net>
128157         Merges from coreutils.
128158         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
128159         variable names, rather than @FNMATCH_H@.
128160         * modules/alloca: Likewise for $(ALLOCA_H).
128162         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
128163         the three copies of the literal target, `fnmatch.h'.
128164         * modules/alloca (alloca.h): Likewise.
128166 2003-08-14  Jim Meyering  <jim@meyering.net>
128168         Merge from coreutils.
128169         * m4/tzset.m4: New file.
128170         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
128171         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
128172         otherwise, AIX 5.1 systems would end up using the latter.
128173         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
128174         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
128175         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
128176         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
128178 2003-08-14  Jim Meyering  <jim@meyering.net>
128180         Merge from coreutils.
128181         * lib/obstack.h: Whitespace changes.
128182         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
128183         and xcalloc return values.
128184         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
128185         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
128186         hang on OSF/1 5.1 for DIR on both local and remote file systems.
128187         Reported by (and fix confirmed by) Nelson H. F. Beebe.
128188         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
128189         error from mntctl.
128190         Use mntctl's return value to drive the entry-processing loop, since
128191         we can't rely on the value of the vmt_length member in the last
128192         entry.  On some systems doing so could result in exhausting
128193         virtual memory.  Based in part on a patch from Mike Jetzer.
128195 2003-08-14  Jim Meyering  <jim@meyering.net>
128196         and Paul Eggert  <eggert@twinsun.com>
128198         Merges from coreutils, plus other fixes.
128199         * lib/physmem.c: Merge in portability changes from gcc/libiberty
128200         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
128201         for credits and details.  Thanks to Kaveh Ghazi for helping
128202         to keep these files in sync.
128203         (ARRAY_SIZE): Define it.
128204         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
128205         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
128206         (memcasecmp): Don't assume size_t fits in unsigned int.
128207         Remove casts and duplicate code.
128208         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
128209         (memcpy): Remove definition.
128210         Merge in some clean-up and optimization changes from glibc.
128211         [BLOCKSIZE]: Move definition to top of file.
128212         Ensure that it is a multiple of 64.
128213         Rearrange loop exit tests so as to avoid performing an
128214         additional fread after encountering an error or EOF.
128215         * lib/md5.h (md5_uintptr): Define.
128216         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
128217         return to the initial working directory.  Preserve errno
128218         for caller.
128219         * lib/idcache.c: Include "xalloc.h".
128220         (xmalloc, xrealloc): Remove decls.
128221         (getuser): Remove casts no longer required in C89.
128222         * lib/human.c: Include stdio.h, for sprintf.
128223         * lib/group-member.c: Include "xalloc.h".
128224         (xmalloc, xrealloc): Remove decls.
128225         (get_group_info): Remove casts no longer required in C89.
128226         * lib/getusershell.c (readname): Remove casts no longer required in
128227         C89.
128228         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
128229         * lib/getline.c: Whitespace fix, from coreutils.
128231 2003-08-13  Paul Eggert  <eggert@twinsun.com>
128233         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
128234         Check for isascii.
128236         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
128237         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
128238         Undo previous (whitespace-only) change.
128240 2003-08-13  Paul Eggert  <eggert@twinsun.com>
128242         * lib/exclude.c: Include <ctype.h>
128243         (IN_CTYPE_DOMAIN): New macro.
128244         (is_space): New fn.
128245         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
128246         and empty lines.
128248         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
128249         Undo previous (whitespace-only) change.
128251 2003-08-13  Paul Eggert  <eggert@twinsun.com>
128253         * config/srclist-update: Change update back to the old behavior,
128254         leaving whitespace alone.  Use one 'sed' command rather than a
128255         pipeline.
128256         (fixlicense): Now a variable, not a function.
128257         (remove_trailing_blanks): Remove.
128258         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
128259         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
128260         Undo previous (whitespace-only) change.
128262 2003-08-12  Paul Eggert  <eggert@twinsun.com>
128264         Merge from coreutils.
128265         * modules/euidaccess: Add lib_SOURCES, include for new
128266         file euidaccess.h
128268 2003-08-12  Paul Eggert  <eggert@twinsun.com>
128270         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
128271         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
128272         Normalize leading white space and remove trailing white space.
128274         Merge from coreutils
128275         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
128277         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
128278         0.12.1.  These files are now being upgraded automatically by
128279         ../config/srclist-update.
128281 2003-08-12  Paul Eggert  <eggert@twinsun.com>
128283         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
128284         Normalize leading white space and remove trailing white space.
128285         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
128286         notice, as per ../config/srclist-update.
128288         Merge from coreutils.
128289         * lib/euidaccess.h: New file.
128290         * lib/euidaccess.c: Include it.
128291         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
128292         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
128293         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
128295 2003-08-12  Paul Eggert  <eggert@twinsun.com>
128297         * config/srclist-update: Add copyright notice.
128298         (remove_id_lines, remove_trailing_blanks): New constants.
128299         (fixfile): Use them to normalize spacing a bit in copied files.
128300         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
128301         Normalize leading white space and remove trailing white space.
128303         * config/texinfo.tex: Sync with texinfo.
128305         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
128306         strtoul.c from libc, to merge coreutils whitespace changes.
128308         * config/srclist.txt: Get the following m4 files from gettext:
128309         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
128310         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
128311         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
128312         wint_t.m4.
128314 2003-08-12  Karl Berry  <karl@gnu.org>
128316         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
128317         been made.
128319 2003-08-11  Paul Eggert  <eggert@twinsun.com>
128321         * modules/gnu-source, m4/gnu-source.m4:
128322         Remove; we're assuming Autoconf 2.54 or later now.
128323         Suggested by Bruno Haible.
128324         * MODULES.html.sh (func_all_modules): Remove gnu-source.
128326 2003-08-11  Bruno Haible  <bruno@clisp.org>
128328         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
128330 2003-08-11  Bruno Haible  <bruno@clisp.org>
128332         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
128333         (vasnprintf): Use it instead of wcslen.
128335 2003-08-11  Bruno Haible  <bruno@clisp.org>
128337         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
128338         value to ensure that _Bool promotes to int. Use #define for _Bool when
128339         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
128341 2003-08-10  Karl Berry  <karl@gnu.org>
128343         * lib/regex.h: update from libc (whitespace fix).
128345 2003-08-09  Paul Eggert  <eggert@twinsun.com>
128347         Merge some files from coreutils.  These changes were
128348         originally made by Jim Meyering.
128349         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
128350         many older Unixes require this.
128351         * lib/alloca.c (alloca): Remove cast to argument of free;
128352         no longer needed in C89.
128353         * lib/alloca_.h, regex.h: Fix white space to match
128354         what GNU indent does.
128356 2003-08-09  Paul Eggert  <eggert@twinsun.com>
128358         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
128359         apparently Emacs's Unicode mode got confused before my 2003-08-05
128360         checkin.
128362 2003-08-08  Paul Eggert  <eggert@twinsun.com>
128364         * m4/extensions.m4: New file.
128365         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
128366         Require gl_USE_SYSTEM_EXTENSIONS.
128367         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
128368         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
128370 2003-08-08  Paul Eggert  <eggert@twinsun.com>
128372         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
128373         * modules/extensions, modules/gnu-source: New files.
128374         * modules/timespec, modules/unlocked-io: Depend on extensions.
128376 2003-08-07  Paul Eggert  <eggert@twinsun.com>
128378         * modules/restrict: New file.
128379         * MODULES.html.sh (func_all_modules): Add restrict.
128380         * modules/regex: Depend on restrict.
128382 2003-08-07  Paul Eggert  <eggert@twinsun.com>
128384         * m4/restrict.m4: New file.
128385         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
128387 2003-08-07  Bruno Haible  <bruno@clisp.org>
128389         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
128390         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
128392 2003-08-07  Bruno Haible  <bruno@clisp.org>
128394         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
128395         makes the module 'getndelim2' compatible with the module 'getline'.
128397 2003-08-05  Paul Eggert  <eggert@twinsun.com>
128399         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
128400         byte with "\201" to avoid glitches when editing that source file
128401         with multi-gnome-terminal.
128403 2003-08-05  Paul Eggert  <eggert@twinsun.com>
128405         * lib/bumpalloc.h: Remove.
128407 2003-08-05  Paul Eggert  <eggert@twinsun.com>
128409         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
128410         * modules/bumpalloc: Remove.
128412 2003-08-04  Paul Eggert  <eggert@twinsun.com>
128414         * lib/getloadavg.c: Change copyright notice and spacing to conform to
128415         GNU coding style.
128417         Merge from coreutils.
128418         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
128419         1. From glibc.
128420         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
128421         from Karl Berry, implemented by Jim Meyering.
128422         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
128423         from Dmitry V. Levin.
128424         Remove anachronistic cast of xrealloc.
128425         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
128426         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
128427         type. Otherwise, it wouldn't compile with at least /bin/cc on
128428         ymp-cray-unicos9.0.2.X.
128429         Combine two mostly-identical uses of alloca into one.
128430         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
128432 2003-08-04  Dave Love  <d.love@dl.ac.uk>
128434         [From Emacs.]
128436         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
128437         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
128438         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
128439         obsolete NLIST_NAME_UNION.
128440         [__GNU__]: Undef BSD and FSCALE.
128441         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
128443 2003-08-03  Paul Eggert  <eggert@twinsun.com>
128445         * lib/stdbool_.h (_Bool): Make it signed char, instead of
128446         an enum type, so that it's guaranteed to promote to int.  See:
128447         <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00124.html>
128449 2003-08-03  Karl Berry  <karl@gnu.org>
128451         * config/depcomp: update from automake.
128453 2003-07-31  Paul Eggert  <eggert@twinsun.com>
128455         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
128456         (strerror): Don't assume that a printable int fits in 14 bytes.
128458 2003-07-31  Bruno Haible  <bruno@clisp.org>
128460         * modules/getpass-gnu: New file.
128461         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
128463 2003-07-31  Bruno Haible  <bruno@clisp.org>
128465         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
128467 2003-07-24  Karl Berry  <karl@gnu.org>
128469         * config/missing: update from automake.
128471 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
128472             Bruno Haible  <bruno@clisp.org>
128474         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
128475         * lib/getline.c (getline, getdelim): Likewise.
128476         Remove _GNU_SOURCE define; now it's defined in config.h through
128477         m4/getline.m4.
128479 2003-07-23  Karl Berry  <karl@gnu.org>
128481         * config/config.sub: update from prep.
128483 2003-07-22  Paul Eggert  <eggert@twinsun.com>
128485         * modules/xalloc (Depends-on): Add exitfail.
128486         * modules/xmemcoll: Likewise.
128488 2003-07-22  Paul Eggert  <eggert@twinsun.com>
128490         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
128491         over-parenthesization in macros.
128493         Sync with coreutils.
128495         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
128496         required by C99.
128498         Use `exit_failure' for xalloc and xmemcoll instead of their own
128499         private exit-failure variables.
128500         * lib/xalloc.h (xalloc_exit_failure): Remove.
128501         * lib/xmalloc.c: Likewise.  Include exitfail.h.
128502         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
128503         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
128504         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
128505         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
128507 2003-07-20  Jim Meyering  <jim@meyering.net>
128509         * modules/closeout (Depends-on): Add exitfail.
128510         Suggestion from Bruno Haible.
128512 2003-07-19  Karl Berry  <karl@gnu.org>
128514         * config/config.sub: update from prep.
128516 2003-07-18  Paul Eggert  <eggert@twinsun.com>
128518         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
128519         Remove.
128520         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
128521         to test that it can stand by itself.  Include "exitfail.h".
128522         Clients should set exit_failure instead.
128523         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
128525 2003-07-18  Bruno Haible  <bruno@clisp.org>
128527         * modules/getndelim2: New file.
128528         * modules/getline: Share files with module getndelim2.
128529         * modules/getnline: Depend on getndelim2 instead of sharing files with
128530         it. Add getnline.c to lib_SOURCES.
128531         * MODULES.html.sh (func_all_modules): Add getndelim2.
128533 2003-07-18  Bruno Haible  <bruno@clisp.org>
128535         * m4/getndelim2.m4: New file.
128536         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
128537         invoke gl_PREREQ_GETNDELIM2.
128538         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
128539         gl_PREREQ_GETNDELIM2.
128540         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
128541         gl_GETNDELIM2.
128543 2003-07-18  Bruno Haible  <bruno@clisp.org>
128545         * lib/getndelim2.h: New file.
128546         * lib/getndelim2.c: Make into a module of its own. Include config.h,
128547         getndelim2.h.
128548         (getndelim2): Make non-static. Change return type to ssize_t.
128549         * lib/getline.h: Change argument names.
128550         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
128551         * lib/getnline.c: Include getndelim2.h.
128553 2003-07-18  Andreas Schwab  <schwab@suse.de>
128555         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
128557 2003-07-17  Karl Berry  <karl@gnu.org>
128559         * config/config.sub: update from prep.
128561 2003-07-17  Bruno Haible  <bruno@clisp.org>
128563         * modules/getnline: New file.
128564         * modules/getline: Add lib/getndelim2.c to source file list.
128565         * MODULES.html.sh (func_all_modules): Add getnline.
128567 2003-07-17  Bruno Haible  <bruno@clisp.org>
128569         * m4/getnline.m4: New file.
128571 2003-07-17  Bruno Haible  <bruno@clisp.org>
128573         * m4/Makefile.am.in: Remove file.
128574         * m4/Makefile.am: Remove file.
128575         * m4/Makefile.in: Remove file.
128577 2003-07-17  Bruno Haible  <bruno@clisp.org>
128579         * lib/getnline.h: New file.
128580         * lib/getnline.c: New file.
128581         * lib/getndelim2.c: New file, extracted from getline.c.
128582         (getndelim2): Renamed from getdelim2, with added nmax argument.
128583         * lib/getline.c: Include getndelim2.c.
128584         (getdelim2): Moved out to getndelim2.c.
128585         (getline, getdelim): Update.
128587 2003-07-17  Bruno Haible  <bruno@clisp.org>
128589         * lib/Makefile.am: Remove file.
128590         * lib/Makefile.in: Remove file.
128592 2003-07-17  Bruno Haible  <bruno@clisp.org>
128594         * configure.in: Remove file.
128595         * Makefile.in: Remove file.
128597 2003-07-17  Bruno Haible  <bruno@clisp.org>
128599         * MODULES.html.sh: Put the </BODY> right before </HTML>.
128601 2003-07-16  Karl Berry  <karl@gnu.org>
128603         * config/srclist-update: was running fixlicense twice, which caused
128604                 texinfo.tex to be nullified for some reason.  Simplify,
128605                 $gplsrc is no longer needed as far as I can see?
128607 2003-07-16  Jim Meyering  <jim@meyering.net>
128609         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
128611 2003-07-15  Paul Eggert  <eggert@twinsun.com>
128613         * config/srclist.txt: Get the following files from gettext-runtime/intl
128614         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
128615         ref-del.sin.  From Bruno Haible.
128616         * config/srclist-update (fixfile): Change grep pattern again, since the
128617         previous fix didn't work (there was another trailing $).  Use
128618         '[$]' to escape the $s.
128620 2003-07-15  Karl Berry  <karl@gnu.org>
128622         * lib/vasnprintf.c: update from gettext.
128624 2003-07-15  Karl Berry  <karl@gnu.org>
128626         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
128627         gets expanded when surrounded by '$'.
128629 2003-07-15  Jim Meyering  <jim@meyering.net>
128631         * modules/save-cwd: Don't depend on error.  From Derek Price.
128633 2003-07-15  Jim Meyering  <jim@meyering.net>
128635         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
128637 2003-07-14  Simon Josefsson  <jas@extundo.com>
128639         * modules/mempcpy: New file.
128640         * MODULES.html.sh (func_all_modules): Add mempcpy.
128642 2003-07-14  Simon Josefsson  <jas@extundo.com>
128644         * m4/mempcpy.m4: New file.
128646 2003-07-14  Simon Josefsson  <jas@extundo.com>
128648         * lib/mempcpy.h: New file.
128649         * lib/mempcpy.c: New file.
128651 2003-07-14  Paul Eggert  <eggert@twinsun.com>
128653         * modules/getdate, modules/posixtm: Depend on mktime.
128655 2003-07-14  Paul Eggert  <eggert@twinsun.com>
128657         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
128658         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
128659         unicodeio.c, unicodeio.h, unlocked-io.h:
128660         Switch from LGPL to GPL.
128662 2003-07-14  Paul Eggert  <eggert@twinsun.com>
128664         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
128665         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
128666         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
128667         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
128668         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
128669         updated automatically by ../config/srclist-update.  This changes
128670         their license from LPGL to GPL.
128672 2003-07-14  Paul Eggert  <eggert@twinsun.com>
128674         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
128675         assumed to refer to the root of the most recent stable gettext version.
128676         * config/srclistvars.sh: Add defaults for eggert.
128677         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
128678         Match "This program" as well as "The program".  This is needed
128679         for gettext.
128681 2003-07-14  Jim Meyering  <jim@meyering.net>
128683         Don't emit diagnostics.  Let callers do that.
128684         * lib/save-cwd.c: Don't include "error.h".
128685         (save_cwd): Don't call error.  Ensure that errno is valid
128686         when returning nonzero.
128688         * lib/save-cwd.h (restore_cwd): Update prototype.
128689         * lib/save-cwd.c (restore_cwd): Remove two parameters.
128690         Simplify.  Don't call error upon failure.  Let callers do that.
128691         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
128692         when auditing is enabled.  But don't bother updating the #if.
128694 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
128696         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
128697         it breaks C++ compilation.
128698         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
128700 2003-07-10  Simon Josefsson  <jas@extundo.com>
128702         * modules/strchrnul (Makefile.am): Add strchrnul.h.
128704 2003-07-10  Jim Meyering  <jim@meyering.net>
128706         * m4/clock_time.m4: Remove trailing blank.
128707         * m4/intmax_t.m4: Likewise.
128709 2003-07-10  Jim Meyering  <jim@meyering.net>
128711         * lib/vasnprintf.c: Remove trailing blanks.
128712         Make cpp indentation consistent.
128714 2003-07-09  Paul Eggert  <eggert@twinsun.com>
128716         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
128717         posixver.c, strftime.c, strnlen.c, strverscmp.c:
128718         Switch from LGPL to GPL.
128720 2003-07-09  Paul Eggert  <eggert@twinsun.com>
128722         * config/srclist.txt: Sort sublists.  Add
128723         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
128724         that differ from gnulib for one reason or another; we'd like this list
128725         to be smaller but for now let's document what we have.
128727 2003-07-08  Paul Eggert  <eggert@twinsun.com>
128729         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
128730         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
128731         and sweeter "eval x=$x".
128732         * config/srclist.txt: Get lib/argp* from glibc.
128734 2003-07-07  Paul Eggert  <eggert@twinsun.com>
128736         * lib/mktime.c: Fix some boundary cases and remove need for floating
128737         point.
128739         Issue a compile-time diagnostic if time_t is floating point, or if
128740         two's complement arithmetic is not in effect, or if arithmetic
128741         right shift does not propagate the sign.  These assumptions were
128742         all in the original code but they weren't checked.
128744         (TIME_T_MIDPOINT, verify): New macros.
128745         (__isleap): Remove; it has integer overflow problems.
128746         (leapyear): New function, without those problems.
128747         (ydhms_tm_diff): Remove; splitting into two parts.
128748         (ydhms_diff): New function, containing the arithmetic part of
128749         the old ydhms_tm_diff function.  Issue a compile-time
128750         diagnostic if we are not using C99 integer division.
128751         Avoid casts when possible.
128752         (guess_time_tm): New function, containing the checking part of
128753         the old ydhms_tm_diff function.  Return the new value, rather than
128754         the difference between it and the old.  Accept a new argument T
128755         so that *T specifies the old value.  Check for overflow in the result.
128757         (__mktime_internal): Use a time_t offset, not a long int offset.
128758         This undoes the 2003-06-04 change, which is no longer needed now
128759         that we have better overflow checking.
128760         (localtime_offset): Likewise.
128762         (__mktime_internal): Avoid harmful overflow on hosts where time_t
128763         and long are 64-bit but int is only 32-bit.
128764         (ydhms_diff): Use long int to store year1 and yday1.
128765         Issue a compile-time diagnostic if long int is not wide enough.
128767         (__mktime_internal): Use long int to store adjusted year and yday.
128768         Use plain C rather than preprocessor commands, if that doesn't
128769         affect efficiency.
128770         Check for overflow (and try to repair) after each probe
128771         rather than checking only at the very end.  This avoids some bugs
128772         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
128773         does not equal GMT offset at maximum time).
128774         Use integer to check for overflow rather than floating point; this
128775         is more portable to non-IEEE hosts, and is a tad faster.
128776         When we detect that we are oscillating between two values,
128777         don't check whether tm_isdst has the requested value, since
128778         we already know the answer.  When tm_isdst has the wrong value,
128779         use a different heuristic to find the right one, based on the
128780         extreme values actually observed in practice in tz2003a,
128781         rather than the (overly optimistic) "previous 3 calendar quarters".
128783         (not_equal_tm, print_tm, check_result): Use "const T" rather than
128784         "T const" to accommodate glibc style.
128785         (check_result): Use less-confusing report format.  "long" -> "long int.
128786         (main): Likewise.
128787         Don't loop if the iteration overflows time_t.
128788         Allow a negative step in the iteration.
128790 2003-07-06  Karl Berry  <karl@gnu.org>
128792         * config/depcomp: update from automake.
128793         * config/config.sub: update from prep.
128795 2003-07-03  Karl Berry  <karl@gnu.org>
128797         * config/config.guess: update from prep.
128799 2003-07-01  Paul Eggert  <eggert@twinsun.com>
128801         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
128802         xreadlink.c now includes it unconditionally.
128804 2003-07-01  Paul Eggert  <eggert@twinsun.com>
128806         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
128807         having it depend on HAVE_SYS_TYPES_H.
128809 2003-07-01  Bruno Haible  <bruno@clisp.org>
128811         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
128812         <sys/types.h> should be sufficient.
128813         Reported by Paul Eggert.
128815 2003-06-26  Karl Berry  <karl@gnu.org>
128817         * config/depcomp: update from automake.
128819 2003-06-26  Bruno Haible  <bruno@clisp.org>
128821         * modules/human: Depend on module stdbool.
128823 2003-06-25  Bruno Haible  <bruno@clisp.org>
128825         * modules/readlink: New file.
128826         * modules/xreadlink: Depend on it.
128827         * MODULES.html.sh (func_all_modules): Add readlink.
128829 2003-06-25  Bruno Haible  <bruno@clisp.org>
128831         * m4/readlink.m4: New file.
128833 2003-06-25  Bruno Haible  <bruno@clisp.org>
128835         * lib/readlink.c: New file.
128837 2003-06-22  Karl Berry  <karl@gnu.org>
128839         * config/srclist.txt: update mkinstalldirs from automake.
128840         * config/mkinstalldirs: update.
128842 2003-06-22  Bruno Haible  <bruno@clisp.org>
128844         Portability to mingw32.
128845         * m4/ssize_t.m4: New file, from GNU gettext.
128846         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
128847         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
128849 2003-06-22  Bruno Haible  <bruno@clisp.org>
128851         * modules/safe-read: Add m4/ssize_t.m4.
128852         * modules/xreadlink: Add m4/ssize_t.m4.
128854 2003-06-20  Bruno Haible  <bruno@clisp.org>
128856         Assume C89, so PARAMS isn't needed.
128857         * lib/unicodeio.h (PARAMS): Remove.
128858         * lib/unicodeio.c: Don't use PARAMS.
128860 2003-06-18  Karl Berry  <karl@gnu.org>
128862         * config/config.{guess,sub}: update from prep.
128864 2003-06-18  Jim Meyering  <jim@meyering.net>
128866         Merge changes from coreutils.
128867         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
128868         Remove explicit declarations of xmalloc and realloc.
128869         Include xalloc.h.
128870         (read_utmp): Remove anachronistic cast of xmalloc.
128872 2003-06-17  Paul Eggert  <eggert@twinsun.com>
128874         Assume C89, so PARAMS isn't needed.
128875         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
128876         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
128877         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
128878         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
128879         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
128880         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
128881         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
128882         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
128883         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
128884         lib/xstrtod.h, lib/xstrtol.h: Likewise.
128885         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
128886         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
128887         no longer needed. Anyway, config.h should always be included before any
128888         other file.
128890 2003-06-11  Simon Josefsson  <jas@extundo.com>
128892         * modules/sysexits: New file.
128893         * MODULES.html.sh (func_all_modules): Add sysexits.
128895 2003-06-11  Simon Josefsson  <jas@extundo.com>
128897         * lib/sysexit_.h: New file.
128899 2003-06-11  Derek Price  <derek@ximbiot.com>
128901         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
128902         necessary.
128904 2003-06-11  Bruno Haible  <bruno@clisp.org>
128906         * m4/sysexits.m4: New file.
128908 2003-06-10  Simon Josefsson  <jas@extundo.com>
128910         * lib/argp.h: New file, from glibc.
128911         * lib/argp-ba.c: New file, from glibc.
128912         * lib/argp-eexst.c: New file, from glibc.
128913         * lib/argp-fmtstream.c: New file, from glibc.
128914         * lib/argp-fmtstream.h: New file, from glibc.
128915         * lib/argp-fs-xinl.c: New file, from glibc.
128916         * lib/argp-help.c: New file, from glibc.
128917         * lib/argp-namefrob.h: New file, from glibc.
128918         * lib/argp-parse.c: New file, from glibc.
128919         * lib/argp-pv.c: New file, from glibc.
128920         * lib/argp-pvh.c: New file, from glibc.
128921         * lib/argp-xinl.c: New file, from glibc.
128923 2003-06-10  Simon Josefsson  <jas@extundo.com>
128925         * modules/strchrnul: New file.
128927 2003-06-10  Simon Josefsson  <jas@extundo.com>
128929         * modules/argp: New file.
128931 2003-06-10  Simon Josefsson  <jas@extundo.com>
128933         * m4/strchrnul.m4: New file.
128935 2003-06-10  Simon Josefsson  <jas@extundo.com>
128937         * lib/strchrnul.h: New file.
128938         * lib/strchrnul.c: New file.
128940 2003-06-10  Bruno Haible  <bruno@clisp.org>
128942         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
128944 2003-06-07  Karl Berry  <karl@gnu.org>
128946         * config/config.{guess,sub}: update from prep.
128948 2003-06-07  Jim Meyering  <jim@meyering.net>
128950         * modules/strtod: Use $(...) notation, not @...@ for
128951         AC_REPLACE'd variables.
128952         * modules/localcharset: Likewise.
128954 2003-06-07  Jim Meyering  <jim@meyering.net>
128956         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
128957         in place of my name in the copyright comment.
128958         Remove definition and uses of __P.
128960         From coreutils.
128961         * lib/stat.c: Don't declare xmalloc explicitly.
128962         Instead, include "xalloc.h".
128963         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
128964         xrealloc, and xcalloc return values.
128965         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
128966         Improve comment.
128967         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
128969 2003-06-07  Bruno Haible  <bruno@clisp.org>
128971         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
128972         avoid AC_CONFIG_LINKS.
128973         * modules/fnmatch (Makefile.am): Use explicit creation rule for
128974         fnmatch.h, to avoid AC_CONFIG_LINKS.
128975         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
128977 2003-06-07  Bruno Haible  <bruno@clisp.org>
128979         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
128980         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
128981         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
128982         directory.
128983         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
128984         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
128985         directory.
128987 2003-06-06  Jim Meyering  <jim@meyering.net>
128989         Merge from coreutils.
128990         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
128991         Consolidate declarations and initializations of *_base* locals.
128993         Merge from coreutils.
128994         This avoids a core dump on systems without GNU putenv,
128995         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
128996         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
128997         (unsetenv): New static function, from GNU libc.
128998         (rpl_putenv): Use it.
129000         * lib/modechange.c: Remove trailing blanks.
129002         Merge from coreutils.
129003         * lib/fsusage.c: Remove declaration of statfs.
129004         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
129006         * lib/posixtm.c: Include <stdbool.h> unconditionally.
129008 2003-06-06  Jim Meyering  <jim@meyering.net>
129010         * lib/stdbool_.h: Renamed from stdbool.h.in.
129012 2003-06-06  Jim Meyering  <jim@meyering.net>
129013             Bruno Haible  <bruno@clisp.org>
129015         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
129016         Adjust Makefile.am snippet not to redirect directly to target.
129017         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
129019 2003-06-05  Paul Eggert  <eggert@twinsun.com>
129021         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
129022         mismatch, look in future quarters as well as past.  This fixes a
129023         bug when processing fall-backwards gaps immediately after a long
129024         period of daylight-saving time.
129026         * lib/mktime.c: Assume freestanding C89 or better.
129027         (HAVE_LIMITS_H): Remove.  Assume it's 1.
129028         (__P): Remove; not used.
129029         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
129030         (mktime, not_equal_tm, print_tm, check_result,
129031         main): Use prototypes.  Use const * where appropriate.
129032         (main): Fix typo in testing code that uncovered by above changes.
129033         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
129035 2003-06-04  Paul Eggert  <eggert@twinsun.com>
129037         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
129038         locale.h, localeconv.  This merges changes from coreutils.
129040         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
129041         It can be removed after the next Autoconf is released.
129042         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
129043         needed.
129045 2003-06-04  Paul Eggert  <eggert@twinsun.com>
129047         * lib/mktime.c: Fix Debian bug 177940
129048         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
129049         (localtime_offset): Now long int, not time_t, because we want it
129050         to be guaranteed to be signed.  All uses changed.
129051         (__mktime_internal): If overflow would occur when adding offset,
129052         don't add it.
129054         Merge 'human' changes from coreutils.  Rewrite to support
129055         locale-specific notations like thousands separators.
129056         * lib/human.c: Simplify authorship notice.
129057         Include human.h immediately after config.h.
129058         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
129059         <limits.h>: Do not include, since human.h does.
129060         (SIZE_MAX, UINTMAX_MAX): New macros.
129061         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
129062         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
129063         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
129064         (power_letter): Renamed from suffixes.
129065         (generate_suffix_backwards): Remove.
129066         (adjust_value): Now takes int style (because of human.h changes)
129067         and long double value (for greater precision on some platforms).
129068         (group_number): New function.
129069         (human_readable): Use it.  Use integer options, not enum.
129070         Put the options before the sizes in the arg list.
129071         Support all the new options.
129072         The old human_readable function has been removed;
129073         use inttostr.h instead.
129074         (human_readable, default_block_size, humblock):
129075         Use uintmax_t, not int, for block sizes.
129076         (human_readable_inexact, block_size_types): Remove.
129077         (block_size_opts): New constant.
129078         (human_options): Renamed from human_block_size, with new signature
129079         that allows block sizes up to UINTMAX_MAX.  All callers changed.
129080         * lib/human.h: Add copyright and authorship notice.
129081         Include <limits.h> and <stdbool.h> unconditionally.
129082         (PARAMS): Remove.  All uses removed.
129083         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
129084         (enum human_inexact_style): Remove tag; now a nameless enum.
129085         (human_floor, human_ceiling, human_round_to_even): Now have
129086         values 2, 0, 1 rather than -1, 1, 0.
129087         (human_group_digits, human_suppress_point_zero, human_autoscale,
129088         human_base_1024, human_SI, human_B): New constants.
129089         (human_readable_inexact, human_block_size): Remove.
129090         (human_readable): Size args are now uintmax_t, not int.
129091         (human_options): New decl.
129093         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
129094         unnecessary now that we assume C89 or better.  This change
129095         imported from coreutils.
129097         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
129098         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
129099         in the 2003-05-30 sync from glibc.
129101         .h files should stand alone, but we shouldn't include <sys/types.h>
129102         if we can get away with just <stddef.h>.
129104         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
129105         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
129106         rather than <sys/types.h>, as we merely need size_t.
129107         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
129108         to get size_t.
129109         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
129110         Include <stdio.h>, to get FILE.
129111         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
129112         memcasecmp.h has included <stddef.h> and all we need is size_t.
129113         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
129114         our interface, instead of including <sys/types.h>
129116 2003-06-04  Paul Eggert  <eggert@twinsun.com>
129118         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
129119         now, as glibc mktime is buggy on non-glibc systems.
129121 2003-06-03  Karl Berry  <karl@gnu.org>
129123         * config/config.sub: update from prep.
129125 2003-06-02  Paul Eggert  <eggert@twinsun.com>
129127         [from coreutils]
129128         Fix some minor time-related bugs with POSIX time arguments.
129129         Some valid time stamps were being rejected (notably -1, and
129130         time stamps before 1900 on 64-bit hosts).  And some invalid
129131         time stamps were being accepted, e.g. September 31.
129133         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
129134         that we can return (time_t) -1 successfully.
129135         * lib/posixtm.c: Likewise.
129136         [HAVE_STDBOOL_H]: Include <stdbool.h>.
129137         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
129138         (t): Remove static var.
129139         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
129140         of static var.  All uses changed.
129141         (year): Do not reject years before 1900; they can occur with
129142         64-bit time_t.
129143         (posix_time_parse): Do not check for out-of-range components;
129144         that is now the caller's responsibility, since our checks were
129145         only approximations.
129146         (posixtime): Use mktime to check for out-of-range components,
129147         since it knows them exactly.
129148         If mktime returns (time_t) -1, check whether an error actually occurred
129149         by invoking localtime on -1.
129150         (main) [TEST_POSIXTIME]: Check for input data errors, and report
129151         posixtime failures better.
129152         Improve the test data (in comments only).
129154 2003-06-02  Karl Berry  <karl@gnu.org>
129156         * config/mkinstalldirs (version): new variable.
129157         (--version): new option.
129158         (usage): improve message.
129160 2003-05-30  Karl Berry  <karl@gnu.org>
129162         * lib/mktime.c: update from libc.
129164 2003-05-30  Bruno Haible  <bruno@clisp.org>
129166         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
129167         * config/config.rpath: Upgrade to gettext-0.12.1.
129169 2003-05-30  Bruno Haible  <bruno@clisp.org>
129171         * m4/gettext.m4: Upgrade to gettext-0.12.1.
129172         * m4/nls.m4: New file, from gettext-0.12.1.
129173         * m4/po.m4: New file, from gettext-0.12.1.
129174         * m4/progtest.m4: Upgrade to gettext-0.12.1.
129176 2003-05-30  Bruno Haible  <bruno@clisp.org>
129178         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
129179         * lib/localcharset.h: Likewise.
129180         * lib/localcharset.c: Likewise.
129182 2003-05-29  Karl Berry  <karl@gnu.org>
129184         * config/config.rpath: update from gettext.
129186 2003-05-28  Paul Eggert  <eggert@twinsun.com>
129188         Assume the headers required for C89 freestanding compilers.
129189         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
129190         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
129191         * m4/human.m4 (gl_HUMAN): Likewise.
129192         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
129193         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
129194         * m4/userspec.m4 (gl_USERSPEC): Likewise.
129195         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
129196         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
129197         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
129199 2003-05-28  Paul Eggert  <eggert@twinsun.com>
129201         Assume the headers required for C89 freestanding compilers.
129202         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
129203         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
129204         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
129205         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
129206         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
129207         define, since <limits.h> is guaranteed to do that.
129208         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
129209         * lib/exclude.c: Include <stdbool.h> unconditionally.
129210         * lib/tempname.c: Include <stddef.h> unconditionally.
129211         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
129212         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
129213         <stddef.h> does that.
129214         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
129215         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
129216         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
129217         needed.
129218         * lib/xstrtol.c: Likewise.
129219         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
129220         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
129222         * lib/addext.c (addext): Use assignment rather than cast, to avoid
129223         warnings on some platforms.
129225         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
129226         arbitrarily.
129228 2003-05-26  Jim Meyering  <jim@meyering.net>
129230         Merge in a change from coreutils:
129231         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
129232         that is guaranteed to be `no'.  Use `no_such_member' to indicate
129233         that condition, rather than `-1' which is slightly misleading.
129234         Change the name of the cache variable to have the gl_ prefix.
129235         Prompted by a patch from Richard Dawe for DJGPP.
129237 2003-05-24  Karl Berry  <karl@gnu.org>
129239         * config/config.guess: update from prep.
129241 2003-05-22  Karl Berry  <karl@gnu.org>
129243         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
129245 2003-05-20  Karl Berry  <karl@gnu.org>
129247         * config/config.guess: update from prep.
129249 2003-05-18  Karl Berry  <karl@gnu.org>
129251         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
129252         might actually be set by the user.
129254         * config/depcomp, install-sh, mdate-sh: update from automake.
129256 2003-05-17  Bruno Haible  <bruno@clisp.org>
129258         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
129259         invalid expansion for AC_EGREP_CPP.
129260         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
129261         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
129262         Suggested by Akim Demaille <akim@epita.fr> in
129263         http://mail.gnu.org/r/bug-autoconf/2003-05/threads.html
129265 2003-05-12  Jim Meyering  <jim@meyering.net>
129267         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
129268         the space-padded-by-default conversion specifiers, %e, %k, %l.
129270 2003-05-12  Bruno Haible  <bruno@clisp.org>
129272         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
129273         the string is longer than 4 KB.
129275 2003-05-11  Karl Berry  <karl@gnu.org>
129277         * config/config.{guess,sub}: update from prep.
129279 2003-05-09  Bruno Haible  <bruno@clisp.org>
129281         * modules/error: Add m4/strerror_r.m4 to file list.
129283 2003-05-03  Bruno Haible  <bruno@clisp.org>
129285         Upgrade to Unicode-4.0.
129286         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
129287         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
129288         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
129289         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
129290         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
129291         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
129292         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
129293         Change width of U+E0100..U+E01EF from 1 to 0.
129295 2003-04-25  Jim Meyering  <jim@meyering.net>
129297         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
129298         of type size_t, not int.
129300 2003-04-25  Bruno Haible  <bruno@clisp.org>
129302         * lib/copy-file.c: Include <stddef.h>, for size_t.
129304 2003-04-21  Paul Eggert  <eggert@twinsun.com>
129306         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
129307         code which expansion is under static control.  Patch imported from
129308         Akim Demaille's patch to Bison; see
129309         <http://mail.gnu.org/r/bison-patches/2003-03/msg00057.html>.
129311 2003-04-14  Bruno Haible  <bruno@clisp.org>
129313         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
129315 2003-04-11  Jim Meyering  <jim@meyering.net>
129317         Merge changes from Coreutils.
129319         2003-03-22  Jim Meyering  <jim@meyering.net>
129321         * lib/strftime.c (widen): Cast alloca return value to proper type.
129323         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
129325         From GNU libc.
129326         * lib/strftime.c (my_strftime): Handle very large width
129327         specifications for numeric values correctly.  Improve checks for
129328         overflow.
129330         2003-01-19  Jim Meyering  <jim@meyering.net>
129332         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
129333         definitions.
129334         (nl_get_alt_digit) [! defined my_strftime]: Define.
129335         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
129336         _nl_get_alt_digit and _nl_get_walt_digit.
129338         * lib/strftime.c (my_strftime): Merge in locale-related changes from
129339         libc. These changes have no effect outside of _LIBC.
129341 2003-04-10  Bruno Haible  <bruno@clisp.org>
129343         * modules/findprog: New file.
129344         * MODULES.html.sh (func_all_modules): Add it.
129346 2003-04-10  Bruno Haible  <bruno@clisp.org>
129348         * m4/findprog.m4: New file.
129349         * m4/eaccess.m4: New file.
129351 2003-04-10  Bruno Haible  <bruno@clisp.org>
129353         * lib/findprog.h: New file, from GNU gettext.
129354         * lib/findprog.c: New file, from GNU gettext.
129356 2003-04-05  Jim Meyering  <jim@meyering.net>
129358         Merge changes from Coreutils.
129360         * lib/exclude.h (PARAMS): Remove definition and uses.
129361         * lib/exclude.c: Remove uses of `PARAMS'.
129363         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
129364         Add test-cases for DOS filenames. Declare program_name.
129365         (main): Set up program_name.  Patch by Rich Dawe.
129367         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
129368         error from mntctl.
129369         Use mntctl's return value to drive the entry-processing loop, since
129370         we can't rely on the value of the vmt_length member in the last
129371         entry.  On some systems doing so could result in exhausting
129372         virtual memory.  Based in part on a patch from Mike Jetzer.
129374 2003-04-04  Bruno Haible  <bruno@clisp.org>
129376         * modules/linebreak: New file.
129377         * MODULES.html.sh (func_all_modules): Add it.
129379 2003-04-04  Bruno Haible  <bruno@clisp.org>
129381         * m4/linebreak.m4: New file.
129383 2003-04-04  Bruno Haible  <bruno@clisp.org>
129385         * lib/linebreak.h: New file, from GNU gettext.
129386         * lib/linebreak.c: New file, from GNU gettext with slight
129387         modifications.
129388         * lib/lbrkprop.h: New file, from GNU gettext.
129390 2003-04-03  Bruno Haible  <bruno@clisp.org>
129392         * modules/utf8-ucs4: New file.
129393         * modules/utf16-ucs4: New file.
129394         * modules/ucs4-utf8: New file.
129395         * modules/ucs4-utf16: New file.
129396         * MODULES.html.sh (func_all_modules): Add them.
129398 2003-04-03  Bruno Haible  <bruno@clisp.org>
129400         * m4/utf-ucs4.m4: New file.
129401         * m4/ucs4-utf.m4: New file.
129403 2003-04-03  Bruno Haible  <bruno@clisp.org>
129405         * lib/utf8-ucs4.h: New file, from GNU gettext.
129406         * lib/utf16-ucs4.h: New file, from GNU gettext.
129407         * lib/ucs4-utf8.h: New file, from GNU gettext.
129408         * lib/ucs4-utf16.h: New file, from GNU gettext.
129410 2003-04-02  Bruno Haible  <bruno@clisp.org>
129412         * modules/binary-io: New file.
129413         * MODULES.html.sh (func_all_modules): Add it.
129415 2003-04-02  Bruno Haible  <bruno@clisp.org>
129417         * lib/binary-io.h: New file, from GNU gettext.
129419 2003-04-01  Bruno Haible  <bruno@clisp.org>
129421         * modules/pathname: New file.
129422         * MODULES.html.sh (func_all_modules): Add it.
129424 2003-04-01  Bruno Haible  <bruno@clisp.org>
129426         * lib/pathname.h: New file, from GNU gettext.
129427         * lib/concatpath.c: New file, from GNU gettext.
129429 2003-03-30  Bruno Haible  <bruno@clisp.org>
129431         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
129433 2003-03-30  Bruno Haible  <bruno@clisp.org>
129435         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
129436         function chown() doesn't exist.
129438 2003-03-28  Bruno Haible  <bruno@clisp.org>
129440         * modules/copy-file: New file.
129441         * MODULES.html.sh (func_all_modules): Add it.
129443 2003-03-28  Bruno Haible  <bruno@clisp.org>
129445         * m4/copy-file.m4: New file.
129447 2003-03-28  Bruno Haible  <bruno@clisp.org>
129449         * lib/copy-file.h: New file, from GNU gettext.
129450         * lib/copy-file.c: New file, from GNU gettext.
129452 2003-03-18  Jim Meyering  <jim@meyering.net>
129454         * lib/quote.c (quote_n): Fix typo in comment.
129456 2003-03-18  Bruno Haible  <bruno@clisp.org>
129458         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
129459         checking.
129460         * m4/onceonly_2_57.m4: Likewise.
129462 2003-03-17  Bruno Haible  <bruno@clisp.org>
129464         * m4/onceonly.m4: Require autoconf 2.54 or newer.
129465         (m4_quote): Remove macro.
129466         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
129468 2003-03-14  Jim Meyering  <jim@meyering.net>
129470         Merge changes from Coreutils.
129471         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
129472         to be const, in order to avoid warnings.
129473         (obstack_room): Likewise.
129474         (obstack_empty_p): Likewise.
129476 2003-03-14  Bruno Haible  <bruno@clisp.org>
129478         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
129479         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
129481 2003-03-13  Paul Eggert  <eggert@twinsun.com>
129483         Merge changes from Bison.
129484         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
129485         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
129486         when compiling Bison 1.875's `bitset bset = obstack_alloc
129487         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
129488         * lib/hash.c: Include <stdbool.h> unconditionally.
129490 2003-03-13  Paul Eggert  <eggert@twinsun.com>
129492         * m4/onceonly.m4 (m4_quote): New macro.
129493         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
129494         Quote AC_FOREACH variable-expansions properly.
129496 2003-03-13  Paul Eggert  <eggert@twinsun.com>
129498         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
129500 2003-03-09  Paul Eggert  <eggert@twinsun.com>
129502         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
129503         Reported by Bruce Becker; see:
129504         http://mail.gnu.org/r/bug-bison/2003-03/msg00017.html
129506 2003-03-03  Paul Eggert  <eggert@twinsun.com>
129507             Bruno Haible  <bruno@clisp.org>
129509         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
129510         Reported by John Hughes, see
129511         http://mail.gnu.org/r/bug-bison/2003-02/msg00030.html
129513 2003-02-20  Bruno Haible  <bruno@clisp.org>
129515         * MODULES.html.sh (func_all_modules): Add poll.
129517 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
129519         * modules/poll: New file.
129521 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
129523         * lib/poll_.h: New file.
129524         * lib/poll.c: New file.
129526 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
129528         * m4/poll.m4: New file.
129530 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
129532         * modules/mathl: New file.
129534 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
129536         * lib/mathl.h: New file.
129537         * lib/acosl.c: New file.
129538         * lib/asinl.c: New file.
129539         * lib/atanl.c: New file.
129540         * lib/ceill.c: New file.
129541         * lib/cosl.c: New file.
129542         * lib/expl.c: New file.
129543         * lib/floorl.c: New file.
129544         * lib/frexpl.c: New file.
129545         * lib/ldexpl.c: New file.
129546         * lib/logl.c: New file.
129547         * lib/sincosl.c: New file.
129548         * lib/sinl.c: New file.
129549         * lib/sqrtl.c: New file.
129550         * lib/tanl.c: New file.
129551         * lib/trigl.c: New file.
129552         * lib/trigl.h: New file.
129554 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
129556         * m4/mathl.m4: New file.
129558 2003-02-18  Bruno Haible  <bruno@clisp.org>
129560         * MODULES.html.sh (func_all_modules): Add mathl.
129562 2003-02-17  Bruno Haible  <bruno@clisp.org>
129564         * modules/mkdtemp: New module.
129565         * MODULES.html.sh (func_all_modules): Add it.
129567 2003-02-17  Bruno Haible  <bruno@clisp.org>
129569         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
129571 2003-02-17  Bruno Haible  <bruno@clisp.org>
129573         * lib/mkdtemp.h: New file, from GNU gettext.
129574         * lib/mkdtemp.c: New file, from GNU gettext.
129576 2003-02-02  Jim Meyering  <jim@meyering.net>
129578         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
129579         e.g. glibc-2.2.93.
129581 2003-01-31  Bruno Haible  <bruno@clisp.org>
129583         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
129584         'rpl_rename'.
129585         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
129586         'rpl_strnlen'.
129587         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
129588         'rpl_strtod'.
129589         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
129590         'rpl_utime'.
129592 2003-01-31  Bruno Haible  <bruno@clisp.org>
129594         * lib/rename.c: #undef rename before defining rpl_rename.
129595         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
129597 2003-01-30  Bruno Haible  <bruno@clisp.org>
129599         * modules/vasnprintf, modules/vasprintf: New modules.
129600         * MODULES.html.sh (func_all_modules): Add them.
129602 2003-01-30  Bruno Haible  <bruno@clisp.org>
129604         * m4/signed.m4: New file, from GNU gettext.
129605         * m4/longdouble.m4: New file, from GNU gettext.
129606         * m4/wchar_t.m4: New file, from GNU gettext.
129607         * m4/wint_t.m4: New file, from GNU gettext.
129608         * m4/vasnprintf.m4: New file.
129609         * m4/vasprintf.m4: New file.
129611 2003-01-30  Bruno Haible  <bruno@clisp.org>
129613         * lib/printf-args.h: New file, from GNU gettext.
129614         * lib/printf-args.c: New file, from GNU gettext.
129615         * lib/printf-parse.h: New file, from GNU gettext.
129616         * lib/printf-parse.c: New file, from GNU gettext.
129617         * lib/vasnprintf.h: New file, from GNU gettext.
129618         * lib/vasnprintf.c: New file, from GNU gettext.
129619         * lib/asnprintf.c: New file, from GNU gettext.
129620         * lib/vasprintf.h: New file, from GNU gettext with modifications.
129621         * lib/vasprintf.c: New file, from GNU gettext.
129622         * lib/asprintf.c: New file, from GNU gettext.
129624 2003-01-29  Bruno Haible  <bruno@clisp.org>
129626         * modules/stpncpy: New module.
129627         * MODULES.html.sh (func_all_modules): Add it.
129629 2003-01-29  Bruno Haible  <bruno@clisp.org>
129631         * m4/stpncpy.m4: New file.
129633 2003-01-29  Bruno Haible  <bruno@clisp.org>
129635         * lib/stpncpy.h: New file, from GNU gettext with modifications.
129636         * lib/stpncpy.c: New file, from GNU gettext with modifications.
129638 2003-01-28  Bruno Haible  <bruno@clisp.org>
129640         * modules/c-ctype: New module.
129641         * MODULES.html.sh (func_all_modules): Add it.
129643 2003-01-28  Bruno Haible  <bruno@clisp.org>
129645         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
129646         Paul Eggert.
129647         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
129648         Paul Eggert.
129650 2003-01-27  Bruno Haible  <bruno@clisp.org>
129652         * modules/xsetenv: New module.
129653         * MODULES.html.sh (func_all_modules): Add it.
129655 2003-01-27  Bruno Haible  <bruno@clisp.org>
129657         * lib/xsetenv.h: New file, from GNU gettext.
129658         * lib/xsetenv.c: New file, from GNU gettext.
129660 2003-01-23  Jim Meyering  <jim@meyering.net>
129662         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
129663         from working on systems without dirfd (at least Irix and OSF1/Tru64).
129665 2003-01-23  Bruno Haible  <bruno@clisp.org>
129667         * modules/minmax: New module.
129668         * MODULES.html.sh (func_all_modules): Add it.
129670 2003-01-23  Bruno Haible  <bruno@clisp.org>
129672         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
129673         Eggert.
129675 2003-01-22  Bruno Haible  <bruno@clisp.org>
129677         * modules/exit: New module.
129678         * MODULES.html.sh (func_all_modules): Add it.
129680 2003-01-22  Bruno Haible  <bruno@clisp.org>
129682         * lib/exit.h: New file, from GNU gettext.
129684 2003-01-19  Bruno Haible  <bruno@clisp.org>
129686         * gnulib-tool: Recognize option --extract-maintainer.
129687         (func_get_maintainer): New function.
129688         * modules/*: Add Maintainer entry.
129690 2003-01-16  Jim Meyering  <jim@meyering.net>
129692         * m4/regex.m4: The `regex' struct is both input and output.
129693         Initialize it before each use.  Patch by Tim Waugh.
129695 2003-01-16  Bruno Haible  <bruno@clisp.org>
129697         * MODULES.html.sh: Add a table of contents. Add the module name as
129698         leftmost column. Add hyperlinks.
129700 2003-01-15  Bruno Haible  <bruno@clisp.org>
129702         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
129704 2003-01-15  Bruno Haible  <bruno@clisp.org>
129706         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
129707         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
129708         suffix.
129710 2003-01-15  Bruno Haible  <bruno@clisp.org>
129712         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
129714 2003-01-15  Bruno Haible  <bruno@clisp.org>
129716         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
129717         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
129719 2003-01-14  Jim Meyering  <jim@meyering.net>
129721         * lib/same.c (same_name): Tweak a comment.
129723 2003-01-14  Bruno Haible  <bruno@clisp.org>
129725         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
129726         when a string comparison is sufficient.
129728 2003-01-14  Bruno Haible  <bruno@clisp.org>
129730         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
129731         'unsigned int'.
129733 2003-01-14  Bruno Haible  <bruno@clisp.org>
129735         * lib/hash-pjw.c: Add comment about low quality of this function.
129737 2003-01-13  Bruno Haible  <bruno@clisp.org>
129739         * modules/stpcpy: Distribute lib/stpcpy.h.
129740         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
129742 2003-01-13  Bruno Haible  <bruno@clisp.org>
129744         * modules/*: Add a description.
129745         * modules/strpbrk: Fix Makefile.am snippet.
129746         * modules/strtoimax: Fix dependencies.
129747         * modules/strtoumax: Likewise.
129749 2003-01-13  Bruno Haible  <bruno@clisp.org>
129751         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
129752         * modules/alloca (Makefile.am): All object files depend on alloca.h.
129753         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
129755 2003-01-13  Bruno Haible  <bruno@clisp.org>
129757         * gnulib-tool (func_create_testdir): Store config/* files in the main
129758         directory.
129759         * config.rpath: Move to ...
129760         * config/config.rpath: ... here.
129761         * modules/gettext: Contains config/config.rpath, not config.rpath.
129762         * modules/iconv: Likewise.
129764 2003-01-12  Paul Eggert  <eggert@twinsun.com>
129766         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
129767         to avoid collisions with libcurses and libreadline.
129769         * m4/getstr.m4: Remove.
129770         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
129772 2003-01-12  Paul Eggert  <eggert@twinsun.com>
129774         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
129775         to avoid collisions with libcurses and libreadline.
129777         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
129778         * lib/getstr.h, getstr.c: Remove.
129779         * lib/getline.c: Include "getline.h", to check interface.
129780         Move body of old getstr.c here: this defines MIN_CHUNK and
129781         declares getdelim2, which is renamed from getstr.
129782         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
129784         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
129785         All uses changed.
129786         * lib/linebuffer.h: Likewise.
129787         (readline): Remove backward-compatibility macro.
129789 2003-01-12  Paul Eggert  <eggert@twinsun.com>
129791         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
129792         to avoid collisions with libcurses and libreadline.
129793         * getstr: Remove.
129794         * MODULES.html.sh: Remove getstr.
129795         * modules/getline: Depend on unlocked-io, not getstr.
129797 2003-01-12  Jim Meyering  <jim@meyering.net>
129799         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
129801 2003-01-10  Bruno Haible  <bruno@clisp.org>
129803         * modules/alloca: Change Makefile.am requirements. Simplify Include
129804         requirements. Add lib/alloca_.h to file list.
129806 2003-01-10  Bruno Haible  <bruno@clisp.org>
129808         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
129810 2003-01-10  Bruno Haible  <bruno@clisp.org>
129812         * lib/alloca_.h: New file.
129813         * lib/getdate.y: Unconditionally include alloca.h.
129814         * lib/makepath.c: Likewise.
129815         * lib/setenv.c: Likewise.
129816         * lib/userspec.c: Likewise.
129818 2003-01-09  Karl Berry  <karl@gnu.org>
129820         * MODULES.html.sh: include `dirname $0` in PATH, to find
129821         gnulib-tool.
129823 2003-01-09  Bruno Haible  <bruno@clisp.org>
129825         * modules/stdbool: Change configure.ac, Makefile.am requirements.
129826         Simplify Include requirements. Add lib/stdbool.h.in to file list.
129828 2003-01-09  Bruno Haible  <bruno@clisp.org>
129830         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
129832 2003-01-09  Bruno Haible  <bruno@clisp.org>
129834         * lib/stdbool.h.in: New file.
129836 2003-01-09  Bruno Haible  <bruno@clisp.org>
129838         * gnulib-tool (func_all_modules): Ignore files ending in ~.
129839         * MODULES.html.sh: Likewise.
129841 2003-01-08  Jim Meyering  <jim@meyering.net>
129843         * lib/full-write.c: Undefine and define-away `const' after inclusion
129844         of errno.h, not before.  Suggestion from Bruno Haible.
129846 2003-01-08  Bruno Haible  <bruno@clisp.org>
129848         * modules/full-read: Depend on full-write.
129850 2003-01-08  Bruno Haible  <bruno@clisp.org>
129852         * lib/safe-read.c: Include specification header first, to ensure its
129853         selfcontainedness.
129854         * lib/full-write.c: Likewise.
129856 2003-01-07  Jim Meyering  <jim@meyering.net>
129858         * lib/full-write.c: Rework so that it may serve to define full_read,
129859         too.
129860         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
129862 2003-01-07  Bruno Haible  <bruno@clisp.org>
129864         * lib/strtoimax.c: Include <stdint.h> as an alternative to
129865         <inttypes.h>.
129866         * lib/xstrtol.h: Likewise.
129867         * lib/xstrtoimax.c: Likewise.
129868         * lib/xstrtoumax.c: Likewise.
129869         * lib/human.h: Likewise.
129871         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
129872         on systems that have <inttypes.h> but not <stdint.h>.
129874 2003-01-07  Bruno Haible  <bruno@clisp.org>
129876         * MODULES.html.sh: Add copyright notice.
129877         (missed_files): Omit CVS directory entries.
129878         (func_module): Make it work with sed-3.02.
129879         * MODULES.txt: Remove file.
129881 2003-01-06  Jim Meyering  <jim@meyering.net>
129883         * lib/version-etc.c: Update year in translatable copyright string.
129885 2003-01-03  Karl Berry  <karl@gnu.org>
129887         * config/config.{guess,sub}: update from prep.
129889 2003-01-02  Karl Berry  <karl@gnu.org>
129891         * doc/COPYING.DOC: belatedly updated to 1.2.
129893 2003-01-01  Karl Berry  <karl@gnu.org>
129895         * gnulib-tool (func_verify_module): report module name $module in
129896         error message, not $1.
129897         * gnulib-tool (create-testdir): don't complain if destdir couldn't
129898         be created, only if it doesn't exist.
129899         * gnulib-tool (last_checkin_date): don't expand the $Date here.
129901 2002-12-31  Paul Eggert  <eggert@twinsun.com>
129903         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
129905 2002-12-31  Paul Eggert  <eggert@twinsun.com>
129907         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
129908         memcmp if strcoll doesn't work.
129910 2002-12-31  Bruno Haible  <bruno@clisp.org>
129912         * lib/utime.c (utime_null): No need to call ftruncate if the file was
129913         nonempty.
129915 2002-12-31  Bruno Haible  <bruno@clisp.org>
129917         * lib/memcoll.c (STRCOLL): New macro.
129918         (memcoll): Use it.
129920 2002-12-31  Bruno Haible  <bruno@clisp.org>
129922         * lib/localcharset.h: New file.
129923         * lib/localcharset.c: Include it.
129924         * lib/unicodeio.c: Likewise.
129926 2002-12-31  Bruno Haible  <bruno@clisp.org>
129928         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
129929         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
129931 2002-12-31  Bruno Haible  <bruno@clisp.org>
129933         * lib/getline.h: Include <stddef.h>, for size_t.
129935         * lib/unicodeio.h: Include <stddef.h>, for size_t.
129936         * lib/unicodeio.c: Don't include <stddef.h>.
129938 2002-12-31  Bruno Haible  <bruno@clisp.org>
129940         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
129941         HAVE_TM_ZONE.
129943 2002-12-24  Karl Berry  <karl@gnu.org>
129945         * config/config.guess: update from prep.
129947 2002-12-24  Bruno Haible  <bruno@clisp.org>
129949         General infrasructure.
129950         * m4/README: Rewritten.
129951         * m4/onceonly.m4: New file.
129952         * m4/onceonly_2_57.m4: New file.
129954         Module atexit.
129955         * m4/atexit.m4: New file.
129957         Module strtod.
129958         * m4/strtod.m4: New file.
129960         Module strtol.
129961         * m4/strtol.m4: New file.
129963         Module strtoul.
129964         * m4/strtoul.m4: New file.
129966         Module memchr.
129967         * m4/memchr.m4: New file.
129969         Module memcmp.
129970         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
129971         (jm_FUNC_MEMCMP): Invoke it.
129973         Module memcpy.
129974         * m4/memcpy.m4: New file.
129976         Module memmove.
129977         * m4/memmove.m4: New file.
129979         Module memset.
129980         * m4/memset.m4: New file.
129982         Module strcspn.
129983         * m4/strcspn.m4: New file.
129985         Module strpbrk.
129986         * m4/strpbrk.m4: New file.
129988         Module strstr.
129989         * m4/strstr.m4: New file.
129991         Module strerror.
129992         * m4/strerror.m4: New file.
129994         Module mktime.
129995         * m4/mktime.m4: Renamed from jm-mktime.m4.
129996         (gl_PREREQ_MKTIME): New macro.
129997         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
129999         Module malloc.
130000         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
130001         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
130002         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
130004         Module realloc.
130005         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
130006         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
130007         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
130009         Module strftime.
130010         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
130011         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
130012         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
130013         gl_TM_GMTOFF.
130014         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
130016         Module xalloc.
130017         * m4/xalloc.m4: New file.
130019         Module alloca.
130020         * m4/alloca.m4: New file.
130022         Module putenv.
130023         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
130024         (jm_FUNC_PUTENV): Invoke it.
130026         Module setenv.
130027         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
130028         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
130029         when invoked twice.
130030         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
130031         gt_FUNC_SETENV.
130033         Module memrchr.
130034         * m4/memrchr.m4: New file.
130036         Module stpcpy.
130037         * m4/stpcpy.m4: New file.
130039         Module strcase.
130040         * m4/strcase.m4: New file.
130042         Module strdup.
130043         * m4/strdup.m4: New file.
130045         Module strnlen.
130046         * m4/strnlen.m4: New file.
130048         Module strndup.
130049         * m4/strndup.m4: New file.
130051         Module xstrtod.
130052         * m4/xstrtod.m4: New file.
130054         Module xstrtol.
130055         * m4/xstrtol.m4: New file.
130057         Module getdate.
130058         * m4/getdate.m4: New file.
130060         Module unlocked-io.
130061         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
130062         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
130063         * m4/jm-glibc-io.m4n: Remove file.
130065         Module long-options.
130066         * m4/long-options.m4: New file.
130068         Module md5.
130069         * m4/md5.m4: New file.
130071         Module sha.
130072         * m4/sha.m4: New file.
130074         Module getstr.
130075         * m4/getstr.m4: New file.
130077         Module getline.
130078         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
130079         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
130080         <sys/types.h>, for size_t. Use the function name gnu_getline, not
130081         simply getline. Infoke gl_PREREQ_GETLINE.
130083         Module obstack.
130084         * m4/obstack.m4: New file.
130086         Module hash.
130087         * m4/hash.m4: New file.
130089         Module readtokens.
130090         * m4/readtokens.m4: New file.
130092         Module strverscmp.
130093         * m4/strverscmp.m4: New file.
130095         Module stdbool.
130096         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
130097         OSF/1.
130099         Module strtoll.
130100         * m4/strtoll.m4: New file.
130102         Module strtoull.
130103         * m4/strtoull.m4: New file.
130105         Module strtoimax.
130106         * m4/strtoimax.m4: New file.
130108         Module strtoumax.
130109         * m4/strtoumax.m4: New file.
130111         Module xstrtoimax.
130112         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
130113         jm_AC_PREREQ_XSTRTOIMAX.
130114         Moved the strtol prerequisites to strtol.m4.
130115         Moved the strtoll prerequisites to strtoll.m4.
130116         Moved the strtoimax prerequisites to strtoimax.m4.
130118         Module xstrtoumax.
130119         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
130120         jm_AC_PREREQ_XSTRTOUMAX.
130121         Moved the strtoul prerequisites to strtoul.m4.
130122         Moved the strtoull prerequisites to strtoull.m4.
130123         Moved the strtoumax prerequisites to strtoumax.m4.
130125         Module chown.
130126         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
130127         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
130129         Module dup2.
130130         * m4/dup2.m4: New file.
130132         Module ftruncate.
130133         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
130134         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
130136         Module getgroups.
130137         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
130138         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
130140         Module gettimeofday.
130141         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
130142         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
130143         gl_PREREQ_GETTIMEOFDAY.
130145         Module mkdir.
130146         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
130147         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
130149         Module mkstemp.
130150         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
130151         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
130152         jm_AC_TYPE_UINTMAX_T.
130153         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
130155         Module stat.
130156         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
130157         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
130159         Module lstat.
130160         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
130161         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
130163         Module timespec.
130164         * m4/timespec.m4 (gl_TIMESPEC): New macro.
130165         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
130166         * m4/st_mtim.m4: Indentation.
130168         Module nanosleep.
130169         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
130170         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
130171         gl_PREREQ_NANOSLEEP.
130173         Module regex.
130174         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
130175         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
130176         (gl_REGEX): New macro.
130178         Module rename.
130179         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
130180         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
130182         Module rmdir.
130183         * m4/rmdir.m4: New file.
130185         Module utime.
130186         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
130187         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
130188         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
130190         Module dirname.
130191         * m4/dirname.m4: New file.
130193         Module getopt.
130194         * m4/getopt.m4: New file.
130196         Module unistd-safer.
130197         * m4/unistd-safer.m4: New file.
130199         Module fnmatch.
130200         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
130201         declaration.
130202         (gl_PREREQ_FNMATCH_EXTRA): New macro.
130203         (gl_FUNC_FNMATCH_POSIX): New macro.
130204         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
130205         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
130206         simply fnmatch.
130208         Module exclude.
130209         * m4/exclude.m4: New file.
130211         Module human.
130212         * m4/human.m4: New file.
130214         Module acl.
130215         * m4/acl.m4: Nop.
130217         Module backupfile.
130218         * m4/backupfile.m4: New file.
130219         * m4/d-ino.m4: Indentation.
130221         Module fsusage.
130222         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
130223         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
130224         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
130226         Module dirfd.
130227         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
130228         requirements.
130230         Module euidaccess.
130231         * m4/euidaccess.m4: New file.
130233         Module file-type.
130234         * m4/file-type.m4: New file.
130236         Module fileblocks.
130237         * m4/fileblocks.m4: New file.
130239         Module filemode.
130240         * m4/filemode.m4: New file.
130242         Module isdir.
130243         * m4/isdir.m4: New file.
130245         Module lchown.
130246         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
130247         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
130249         Module makepath.
130250         * m4/makepath.m4: New file.
130252         Module modechange.
130253         * m4/modechange.m4: New file.
130255         Module mountlist.
130256         * m4/mountlist.m4: New file.
130257         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
130258         Indentation.
130260         Module path-concat.
130261         * m4/path-concat.m4: New file.
130263         Module pathmax.
130264         * m4/pathmax.m4: New file.
130266         Module same.
130267         * m4/same.m4: New file.
130269         Module save-cwd.
130270         * m4/save-cwd.m4: New file.
130272         Module savedir.
130273         * m4/savedir.m4: New file.
130275         Module xgetcwd.
130276         * m4/xgetcwd.m4: New file.
130277         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
130279         Module xreadlink.
130280         * m4/xreadlink.m4: New file.
130282         Module safe-read.
130283         * m4/safe-read.m4: New file.
130285         Module safe-write.
130286         * m4/safe-write.m4: New file.
130288         Module closeout.
130289         * m4/closeout.m4: New file.
130291         Module stdio-safer.
130292         * m4/stdio-safer.m4: New file.
130294         Module getpass.
130295         * m4/getpass.m4: New file.
130297         Module getugroups.
130298         * m4/getugroups.m4: New file.
130300         Module group-member.
130301         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
130302         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
130304         Module idcache.
130305         * m4/idcache.m4: New file.
130307         Module userspec.
130308         * m4/userspec.m4: New file.
130310         Module gettime.
130311         * m4/clock_time.m4: New file.
130312         * m4/gettime.m4: New file.
130314         Module settime.
130315         * m4/settime.m4: New file.
130317         Module posixtm.
130318         * m4/posixtm.m4: New file.
130320         Module gethostname.
130321         * m4/gethostname.m4: New file.
130323         Module canon-host.
130324         * m4/canon-host.m4: New file.
130326         Module gettext.
130327         * m4/codeset.m4: New file, from gettext-0.11.5.
130328         * m4/gettext.m4: New file, from gettext-0.11.5.
130329         * m4/glibc21.m4: New file, from gettext-0.11.5.
130330         * m4/iconv.m4: New file, from gettext-0.11.5.
130331         * m4/intdiv0.m4: New file, from gettext-0.11.5.
130332         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
130333         * m4/inttypes.m4: New file, from gettext-0.11.5.
130334         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
130335         * m4/isc-posix.m4: New file, from gettext-0.11.5.
130336         * m4/lcmessage.m4: New file, from gettext-0.11.5.
130337         * m4/lib-ld.m4: New file, from gettext-0.11.5.
130338         * m4/lib-link.m4: New file, from gettext-0.11.5.
130339         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
130340         * m4/progtest.m4: New file, from gettext-0.11.5.
130341         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
130342         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
130343         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
130345         Module localcharset.
130346         * m4/localcharset.m4: New file.
130348         Module hard-locale.
130349         * m4/hard-locale.m4: New file.
130351         Module mbswidth.
130352         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
130353         onceonly macros.
130354         * m4/mbrtowc.m4: Add comment.
130356         Module memcasecmp.
130357         * m4/memcasecmp.m4: New file.
130359         Module memcoll.
130360         * m4/memcoll.m4: New file.
130362         Module unicodeio.
130363         * m4/unicodeio.m4: New file.
130365         Module rpmatch.
130366         * m4/rpmatch.m4: New file.
130368         Module yesno.
130369         * m4/yesno.m4: New file.
130371         Module exitfail.
130372         * m4/exitfail.m4: New file.
130374         Module c-stack.
130375         * m4/c-stack.m4 (gl_C_STACK): New macro.
130376         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
130378         Module error.
130379         * m4/error.m4 (gl_ERROR): New macro.
130380         (jm_PREREQ_ERROR): Use onceonly macros.
130382         Module fatal.
130383         * m4/fatal.m4: New file.
130385         Module getloadavg.
130386         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
130387         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
130389         Module getpagesize.
130390         * m4/getpagesize.m4: New file.
130392         Module getusershell.
130393         * m4/getusershell.m4: New file.
130395         Module physmem.
130396         * m4/physmem.m4: New file.
130398         Module posixver.
130399         * m4/posixver.m4: New file.
130401         Module quotearg.
130402         * m4/quotearg.m4: New file.
130404         Module quote.
130405         * m4/quote.m4: New file.
130407         Module readutmp.
130408         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
130410         Module sig2str.
130411         * m4/sig2str.m4: New file.
130413         Other.
130414         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
130415         ulonglong.m4.
130416         * m4/intmax_t.m4: New file.
130417         * m4/d-type.m4: Indentation.
130418         * m4/jm-macros.m4: Update.
130419         * m4/prereq.m4 (jm_PREREQ): Update.
130420         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
130421         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
130422         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
130423         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
130424         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
130425         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
130426         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
130427         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
130428         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
130429         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
130430         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
130431         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
130432         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
130433         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
130434         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
130435         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
130436         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
130437         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
130438         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
130440 2002-12-24  Bruno Haible  <bruno@clisp.org>
130442         * MODULES.txt: Update according to m4/ changes.
130444         Module gettext.
130445         * config.rpath: New file, from gettext-0.11.5.
130447         * modules/*: New module descriptions.
130448         * gnulib-tool: New file.
130449         * MODULES.html.sh: New file.
130451 2002-12-21  Karl Berry  <karl@gnu.org>
130453         * doc/fdl.texi: update to version 1.2.
130455 2002-12-19  Karl Berry  <karl@gnu.org>
130457         * config/config.guess: update from prep.
130459 2002-12-18  Bruno Haible  <bruno@clisp.org>
130461         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
130462         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
130464 2002-12-17  Bruno Haible  <bruno@clisp.org>
130466         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
130467         stdlib.h, string.h.
130469 2002-12-17  Bruno Haible  <bruno@clisp.org>
130471         * lib/canon-host.c (strdup): Remove unused declaration.
130473         * lib/fsusage.c: Include full_read.h.
130474         (get_fs_usage): Use full_read instead of safe_read.
130476         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
130478 2002-12-12  Karl Berry  <karl@gnu.org>
130480         * config/config.guess: update from prep.
130482 2002-12-11  Bruno Haible  <bruno@clisp.org>
130484         * m4/setenv.m4: New file, from gettext-0.11.5.
130486 2002-12-11  Bruno Haible  <bruno@clisp.org>
130488         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
130489         not unsetenv().
130490         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
130491         modifications:
130493         2002-12-11  Bruno Haible  <bruno@clisp.org>
130495                 * setenv.c (alloca): Fall back to malloc.
130496                 (freea): New macro.
130497                 (setenv): Use freea() to free memory allocated with alloca().
130499         2002-11-13  Bruno Haible  <bruno@clisp.org>
130501                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
130502                 function declarations.
130503                 * unsetenv.c (unsetenv): Likewise.
130505         2002-03-04  Bruno Haible  <bruno@clisp.org>
130507                 Portability to AIX 4.3.3.
130508                 * unsetenv.c: New file, extracted from setenv.c.
130509                 * setenv.c: Move the unsetenv() function to unsetenv.c.
130511         2001-12-20  Bruno Haible  <bruno@clisp.org>
130513                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
130514                 use malloc instead. For SunOS 4.
130516         2001-12-11  Bruno Haible  <bruno@clisp.org>
130518                 * setenv.c: Declare alloca.
130519                 (compar_fn_t): New typedef.
130520                 (KNOWN_VALUE, STORE_VALUE): Use it.
130522         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
130523         setenv.h.
130525 2002-12-10  Paul Eggert  <eggert@twinsun.com>
130527         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
130528         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
130529         Choose values that are less likely to collide with system fnmatch
130530         options.
130531         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
130532         defined (e.g., a pure POSIX system).
130533         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
130534         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
130536 2002-12-06  Paul Eggert  <eggert@twinsun.com>
130538         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
130539         a pain in practice to deal with generated m4 files.  This change
130540         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
130542         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
130543         and jm-glibc-io.m4, as they are no longer a special case.
130544         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
130545         kludge and the auto-generation stuff.  Check only whether the
130546         functions are declared, not whether they exist, since older hosts
130547         that don't declare the functions can't use the optimization anyway.
130549 2002-12-06  Jim Meyering  <jim@meyering.net>
130551         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
130553         Merge in changes from libc's misc/error.c, in preparation
130554         for the merge of gnulib's changes back into libc.
130556         * lib/error.c (_): Define only if not already defined.
130557         Move definition to follow all #include directives.
130558         Include unlocked-io.h only if !_LIBC.
130559         [_LIBC]: Include <libio/libioP.h>.
130560         [USE_IN_LIBIO]: Include <libio/iolibio.h>
130561         (fflush): Tweak definition to use INTUSE.
130562         (putc): Define.
130564 2002-12-05  Paul Eggert  <eggert@twinsun.com>
130566         * lib/alloca.c [defined emacs]: Include "lisp.h".
130567         (xalloc_die) [defined emacs]: New macro.
130568         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
130569         [! defined emacs]: Include <xalloc.h>.
130570         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
130571         (pointer): Typedef to POINTER_TYPE *.
130572         (malloc): Remove decl; we now always use xmalloc.
130573         (alloca): Use old-style definition, since Emacs needs this.
130574         Check for arithmetic overflow when computing combined size.
130576 2002-12-04  Paul Eggert  <eggert@twinsun.com>
130578         Do not generate unlocked-io.h automatically, since it's easier to
130579         maintain it by hand.
130581         * lib/unlocked-io.h: New file, from GNU diffutils,
130582         but with proper copyright notice and attribution.
130583         * lib/gen-uio: Remove.
130584         * lib/Makefile.am: Add copyright notice.
130585         (libfetish_a_SOURCES): Add unlocked-io.h.
130586         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
130587         (DISTCLEANFILES, io_functions): Remove macros.
130588         (EXTRA_DIST): Remove gen_uio.
130589         (unlocked-io.h): Remove rule.
130591 2002-12-04  Jim Meyering  <jim@meyering.net>
130593         Reflect the fact that stat.c and lstat.c are no longer generated.
130594         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
130595         (DISTCLEANFILES): Likewise.
130596         (EXTRA_DIST): Likewise.
130597         (all_local): Don't depend on stat.c or lstat.c.
130598         (stat.c, lstat.c): Remove rules.
130599         (EXTRA_DIST): Remove xstat.in.
130601         * lib/xstat.in: Remove file.  Contents moved into stat.c.
130602         * lib/stat.c: New file.  Contents mostly from xstat.in.
130603         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
130604         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
130606         * lib/safe-read.c: Rework so that it may serve to define safe_write,
130607         too.
130608         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
130610 2002-12-03  Jim Meyering  <jim@meyering.net>
130612         * lib/safe-read.c, safe-write.c: Change variable names and comments,
130613         but not semantics, to minimize the differences between these two files.
130614         (safe_read): Change comment to mention SAFE_READ_ERROR.
130616         * lib/safe-read.c (IS_EINTR): Define.
130617         (safe_read): Use IS_EINTR in place of in-function cpp directives.
130619 2002-12-02  Jim Meyering  <jim@meyering.net>
130621         * lib/safe-read.c (EINTR): Define.
130622         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
130623         (INT_MAX): Provide fallback.
130624         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
130626         * lib/safe-read.h (SAFE_READ_ERROR): Define.
130628 2002-12-02  Bruno Haible  <bruno@clisp.org>
130630         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
130631         Define, taken from safe-read.c.
130632         (INT_MAX): Provide fallback.
130633         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
130634         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
130636         * lib/safe-read.c (EINTR): Remove definition.
130637         (safe_read): Don't use EINTR if it is absent.
130639 2002-12-01  Jim Meyering  <jim@meyering.net>
130641         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
130642         zero.
130643         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
130645 2002-11-27  Paul Eggert  <eggert@twinsun.com>
130647         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
130648         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
130649         with `if (! (value < limit)) abort ();', for readability.
130651 2002-11-26  Karl Berry  <karl@gnu.org>
130653         * lib/strdup.c: copy from libc again, with jim's ok.
130654         * lib/.cppi-disable: re-add strdup.c
130656 2002-11-25  Karl Berry  <karl@gnu.org>
130658         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
130659         instead of "strtol.c".
130661 2002-11-25  Karl Berry  <karl@gnu.org>
130663         * config/install-sh: update from automake for variable quoting, $0 in
130664         error msgs, etc.
130666         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
130667         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
130668         entry.
130670 2002-11-25  Jim Meyering  <jim@meyering.net>
130672         * lib/mktime.c: Sync from libc, now that it has the latest fix.
130674 2002-11-24  Karl Berry  <karl@gnu.org>
130676         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
130677         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
130679 2002-11-24  Jim Meyering  <jim@meyering.net>
130681         Update from coreutils:
130683         * lib/mktime.c: Merge in changes from libc.
130685         Avoid a link-time failure on some Linux systems.
130686         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
130687         (otherwise).
130688         (__mon_yday): Declare with the STATIC attribute.
130689         (__mktime_internal): Likewise.
130690         Based on a report from Greg Schafer.
130692 2002-11-23  Jim Meyering  <jim@meyering.net>
130694         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
130695         Use `unsigned', not `int', as type of index.
130697         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
130699         * lib/fsusage.c: Remove unneeded parentheses around operands of
130700         `defined'.
130702 2002-11-22  Paul Eggert  <eggert@twinsun.com>
130704         * lib/quotearg.h: Allow multiple inclusion by surrounding with
130705         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
130706         so that we can be included first.
130707         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
130708         * lib/quotearg.c: Include quotearg.h immediately after config.h.
130709         No need to include stddef.h or sys/types.h any more.
130710         Surround local include files with "", not "<>".
130711         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
130712         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
130713         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
130714         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
130715         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
130716         (ISPRINT): Remove; no longer needed now that we assume C89.
130718         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
130719         Preserve errno.
130721         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
130722         quotearg_char): Use SIZE_MAX rather than
130723         (size_t) -1 when we are talking about "infinity".
130725         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
130727 2002-11-22  Paul Eggert  <eggert@twinsun.com>
130729         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
130730         hint that one should use `if (! x) abort ();' rather than `assert
130731         (x);', and anyway it's one less thing to worry about configuring.
130732         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
130733         hash_rehash, hash_insert): Use abort rather than assert.
130735 2002-11-22  Bruno Haible  <bruno@clisp.org>
130737         * lib/safe-read.h: Assume C89. Add comments.
130738         (safe_read): Change return type to size_t.
130739         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
130740         byte counts > SSIZE_MAX correctly.
130741         * lib/safe-write.h: New file.
130742         * lib/safe-write.c: New file.
130743         * lib/full-read.h: New file.
130744         * lib/full-read.c: New file.
130745         * lib/full-write.h: Assume C89. Add comments.
130746         * lib/full-write.c: Include safe-write.h.
130747         (full_write): Rewritten to use safe_write.
130748         Suggested by Jim Meyering and Paul Eggert.
130750 2002-11-21  Jim Meyering  <jim@meyering.net>
130752         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
130754         Merge in changes from the coreutils.
130756         2002-09-25  Paul Eggert  <eggert@twinsun.com>
130757         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
130758         <stdint.h>.
130759         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
130760         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
130761         int.  Work more efficiently if X is the same width as uintmax_t.
130762         Do not compare X to -1, to avoid bogus compiler warning.
130763         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
130764         Don't assume that f_frsize and f_bsize are the same type.
130766         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
130767         warning on FreeBSD.
130769         * lib/makepath.c (make_path): Restore umask *before* creating the final
130770         component.
130771         (make_path): Minor reformatting.
130773         * lib/xmalloc.c: Adjust to work with new autoconf macros,
130774         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
130775         HAVE_MALLOC/HAVE_REALLOC.
130777         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
130778         dummy ones.  At least on GNU/Linux systems, `auto' means something
130779         else.
130780         From Michael Stone.
130782 2002-11-21  Bruno Haible  <bruno@clisp.org>
130784         Remove case insensitive option matching.
130785         * lib/argmatch.h (argcasematch): Remove declaration.
130786         (ARGCASEMATCH): Remove macro.
130787         (__xargmatch_internal): Remove case_sensitive argument.
130788         (XARGMATCH): Update.
130789         (XARGCASEMATCH): Remove macro.
130790         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
130791         case_sensitive argument.
130792         (argcasematch): Remove function.
130793         (__xargmatch_internal): Remove case_sensitive argument.
130794         (main): Use XARGMATCH instead of XARGCASEMATCH.
130796         * lib/xmalloc.c: Change compile-time error message. Add comment about
130797         required autoconf version.
130799 2002-11-20  Paul Eggert  <eggert@twinsun.com>
130801         Merge argmatch cleanups from Bison.  Assume C89.
130803         * lib/argmatch.c: Include config.h here, not in argmatch.h.
130804         Include stdlib.h, for EXIT_FAILURE.
130805         Always include <string.h>, since we assume C89.
130806         (EXIT_FAILURE): Remove pre-C89 bug workaround.
130807         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
130808         Include <stddef.h> instead, since it's all we need for size_t.
130809         (PARAMS): Remove.  All uses removed.
130810         (ARRAY_CARDINALITY): Do not bother to #undef.
130811         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
130812         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
130813         Remove unnecessary parentheses.
130814         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
130815         Insert necessary parentheses.
130816         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
130817         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
130819 2002-11-19  Bruno Haible  <bruno@clisp.org>
130821         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
130822         * lib/mbswidth.h: Include <stddef.h>, for size_t.
130824         * lib/mbswidth.h (PARAMS): Remove macro.
130825         (mbswidth, mbsnwidth): Use ANSI C function declarations.
130826         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
130828         * lib/gcd.h (PARAMS): Remove macro.
130829         (gcd): Use ANSI C function declarations.
130830         * lib/gcd.c (gcd): Likewise.
130832 2002-11-15  Bruno Haible  <bruno@clisp.org>
130834         * lib/strcspn.c: Include <stddef.h>.
130835         (strcspn): Use ANSI C function declaration. Change return type to
130836         size_t. Use NULL.
130837         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
130838         (strpbrk): Use NULL.
130839         * lib/strpbrk.h (PARAMS): Remove macro.
130840         (strpbrk): Use ANSI C function declaration.
130841         * lib/strstr.c: Don't include <sys/types.h>.
130842         * lib/strstr.h (PARAMS): Remove macro.
130843         (strstr): Use ANSI C function declarations.
130845 2002-11-14  Karl Berry  <karl@gnu.org>
130847         * config/mkinstalldirs: `do' on separate line, instead of
130848         `for var; do'.
130850 2002-11-06  Bruno Haible  <bruno@clisp.org>
130852         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
130853         * lib/gcd.c (gcd): Likewise.
130855 2002-11-05  Bruno Haible  <bruno@clisp.org>
130857         * lib/gcd.h: New file, from gettext-0.11.5.
130858         * lib/gcd.c: New file, from gettext-0.11.5.
130860 2002-11-05  Bruno Haible  <bruno@clisp.org>
130862         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
130863         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
130864         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
130865         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
130867         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
130868         <libintl.h>.
130869         * lib/makepath.c: Include gettext.h instead of <locale.h> and
130870         <libintl.h>.
130872         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
130873         * lib/human.c: Include gettext.h instead of <libintl.h>.
130874         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
130875         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
130876         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
130877         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
130878         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
130879         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
130880         (textdomain): Remove definition.
130881         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
130883         * lib/long-options.c: Remove include of <libintl.h> and definition of
130884         _.
130885         * lib/same.c: Remove include of <libintl.h> and definition of _.
130887 2002-11-04  Owen Taylor  <otaylor@redhat.com>
130889         * lib/config.charset: A few additions for Solaris.
130891 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
130893         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
130894         * lib/localcharset.c (locale_charset): Declare as extern "C".
130896 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
130898         * lib/config.charset: msdos in uk_UA uses CP1125.
130900 2002-11-04  Bruno Haible  <bruno@clisp.org>
130902         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
130903         * lib/strcase.h: New file, from GNU gettext-0.11.5.
130904         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
130905         * lib/strstr.h: New file, from GNU gettext-0.11.5.
130906         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
130908 2002-11-04  Bruno Haible  <bruno@clisp.org>
130910         * lib/localcharset.c (locale_charset): Don't return an empty string.
130912 2002-11-04  Bruno Haible  <bruno@clisp.org>
130914         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
130915         aliases.
130917 2002-11-04  Bruno Haible  <bruno@clisp.org>
130919         * lib/config.charset: Update for newest glibc. Add canonical names
130920         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
130922 2002-11-04  Bruno Haible  <bruno@clisp.org>
130924         * lib/config.charset: Add support for NetBSD.
130926 2002-11-04  Bruno Haible  <bruno@clisp.org>
130928         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
130930 2002-11-01  Bruno Haible  <bruno@clisp.org>
130932         * configure.in: Add AC_CONFIG_AUX_DIR call.
130933         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
130934         test/Makefile.
130935         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
130937 2002-09-28  Karl Berry  <karl@gnu.org>
130939         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
130940         installed automake until the next release, since changes have been
130941         made.
130943 2002-09-25  Karl Berry  <karl@gnu.org>
130945         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
130946         * lib/getopt*: copy from libc/posix.
130947         * lib/gettext.h: copy from gettext.
130948         * lib/.cppi-disable: add strdup.c, gettext.h.
130950 2002-09-25  Karl Berry  <karl@gnu.org>
130952         * config/srclist.txt: enable gettext.h check.
130953         * config/config.{guess,sub}: update from prep.
130954         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
130955                 from automake 1.6.3.
130956         See srclist*.
130958 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
130960         * regex.c (PATFETCH): Remove the translating fetch.
130961         (PATFETCH_RAW): Rename to PATFETCH.
130962         (set_image_of_range): New fun.
130963         (SET_RANGE_TABLE_WORK_AREA): Use it.
130964         (regex_compile): Don't translate the pattern chars so eagerly.
130965         Only do it when inserting an `exactn' bytecode or when handling
130966         a char-range.
130967         (mutually_exclusive_p): Avoid empty statement.
130969 2002-07-06  Jim Meyering  <meyering@lucent.com>
130971         * m4/README: Don't mention Makefile.am.in.
130972         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
130974 2002-07-01  Jim Meyering  <meyering@lucent.com>
130976         * lib/c-stack.c: Include sys/time.h.
130977         From Volker Borchert.
130979 2002-06-26  Paul Eggert  <eggert@twinsun.com>
130981         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
130983 2002-06-26  Paul Eggert  <eggert@twinsun.com>
130985         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
130986         New macro.  Use it uniformly instead of
130987         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
130988         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
130989         reported by Vin Shelton.
130991 2002-06-22  Paul Eggert  <eggert@twinsun.com>
130993         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
130994         Do not assume SA_SIGINFO behavior.
130995         Bug reported by Jim Meyering on NetBSD 1.5.2.
130997 2002-06-22  Jim Meyering  <meyering@lucent.com>
130999         * m4/c-stack.m4: New file, from diffutils-2.8.2.
131000         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
131002         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
131003         now that configure.ac uses AC_GNU_SOURCE.
131004         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
131005         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
131007         Update to latest tools.  Suggestions from Paul Eggert.
131008         * m4/stdbool.m4: New file, from diffutils-2.8.2.
131009         * m4/gnu-source.m4: Update from diffutils-2.8.2.
131010         * m4/fnmatch.m4: Likewise.
131011         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
131012         to AC_HEADER_STDBOOL
131014 2002-06-22  Jim Meyering  <meyering@lucent.com>
131016         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
131017         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
131019 2002-06-22  Jim Meyering  <meyering@lucent.com>
131021         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
131023         * lib/exitfail.c, exitfail.h: Likewise.
131024         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
131026         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
131027         of fnmatch.h.
131028         (EXTRA_DIST): Add fnmatch_loop.c.
131029         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
131031         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
131032         * lib/fnmatch.c: Update from diffutils-2.8.2.
131033         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
131034         * lib/fnmatch.h: Remove file.
131036 2002-06-21  Jim Meyering  <meyering@lucent.com>
131038         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
131039         * m4/mbrtowc.m4: Likewise.
131041         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
131042         * m4/mbswidth.m4: Reflect name change:
131043         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
131044         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
131046         * m4/lib-link.m4: Update from gettext-0.11.2.
131047         * m4/gettext.m4: Likewise.
131049         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
131050         From Alfred M. Szmidt.
131052 2002-06-18  Paul Eggert  <eggert@twinsun.com>
131054         * lib/file-type.h: Report an error if neither S_ISREG nor
131055         S_IFREG is defined, instead of using a test specific to glibc
131056         2.2.  This should be safe, since POSIX requires S_ISREG and
131057         Unix Version 7 had S_IFREG.  We don't need to check for
131058         <sys/types.h> since we don't use any symbols that it defines.
131060 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
131062         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
131063         $@-t, so that each temporary file name is unique and valid in the first
131064         8 characters, for operation under DOS.
131066 2002-06-15  Paul Eggert  <eggert@twinsun.com>
131068         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
131070 2002-06-15  Jim Meyering  <meyering@lucent.com>
131072         Work even with DJGPP 2.03, which lacks support for symlinks.
131073         From Richard Dawe.
131074         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
131075         is defined.
131076         * lib/lchown.c (S_ISLNK): Likewise.
131078 2002-06-15  Jim Meyering  <meyering@lucent.com>
131080         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
131081         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
131082         have been included before this file.
131084 2002-06-14  Jim Meyering  <meyering@lucent.com>
131086         * lib/file-type.h: Use the version from diffutils-2.8.2.
131087         * lib/file-type.c: Likewise.
131089 2002-06-07  Jim Meyering  <meyering@lucent.com>
131091         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
131092         They're needed at least for NetBSD 1.5.2.
131093         ($statxfs_includes): Include those same headers.
131094         ($statxfs_includes): Include sys/vfs.h if available.
131095         ($statxfs_includes): Likewise for sys/statvfs.h.
131096         Check for the following members in both structs statfs and statvfs:
131097         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
131099 2002-06-01  Jim Meyering  <meyering@lucent.com>
131101         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
131102         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
131104 2002-05-28  Jim Meyering  <meyering@lucent.com>
131106         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
131107         Reported by Volker Borchert.
131109 2002-05-27  Jim Meyering  <meyering@lucent.com>
131111         Fix a problem seen only on nonconforming systems whereby ls.c's
131112         use of localtime, and then of gettimeofday would cause trouble:
131113         the localtime call used to initialize rpl_gettimeofday's save
131114         mechanism would clobber ls's current local time information so
131115         that in any long listing the first file would always be listed
131116         with date 1970-01-01.  Analysis by Volker Borchert.
131118         * lib/gettimeofday.c (localtime): Undefine.
131119         (rpl_localtime): New function.
131121 2002-05-27  Jim Meyering  <meyering@lucent.com>
131123         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
131124         localtime.
131126         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
131127         use the replacement function; it wouldn't resolve at link time.
131128         Reported by Volker Borchert.
131130 2002-05-22  Jim Meyering  <meyering@lucent.com>
131132         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
131133         file-type.h.
131134         * lib/file-type.h: New file.
131135         * lib/file-type.c (file_type): New file/function.  Extracted from
131136         diffutils.
131138 2002-04-30  Jim Meyering  <meyering@lucent.com>
131140         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
131142 2002-04-29  Paul Eggert  <eggert@twinsun.com>
131144         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
131146 2002-04-29  Paul Eggert  <eggert@twinsun.com>
131148         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
131149         Do not check for alloca.h (no longer used) or stdbool.h (was never
131150         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
131152 2002-04-29  Paul Eggert  <eggert@twinsun.com>
131154         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
131156 2002-04-29  Jim Meyering  <meyering@lucent.com>
131158         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
131159         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
131160         Use AC_FUNC_STRNLEN here instead.
131162         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
131163         With autoconf-2.53a, it's part of AC_PROG_CC.
131165 2002-04-28  Paul Eggert  <eggert@twinsun.com>
131167         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
131168         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
131170 2002-04-28  Paul Eggert  <eggert@twinsun.com>
131172         * lib/sig2str.h, lib/sig2str.c: New files.
131173         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
131175 2002-04-28  Paul Eggert  <eggert@twinsun.com>
131177         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
131178         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
131179         of 127, since 64 is the largest conceivable number for ancient
131180         nonstandard hosts.
131181         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
131183 2002-04-28  Jim Meyering  <meyering@lucent.com>
131185         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
131187 2002-04-24  Jim Meyering  <meyering@lucent.com>
131189         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
131190         (jm_PREREQ): Use it.
131192         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
131193         mach/mach.h fcntl.h.
131194         Check for this function: setlocale.
131196 2002-04-24  Jim Meyering  <meyering@lucent.com>
131198         * lib/gettext.h: New file, from Gettext.
131199         * lib/Makefile.am (INCLUDES): Remove -I../intl.
131200         (libfetish_a_SOURCES): Add gettext.h.
131202 2002-04-16  Jim Meyering  <meyering@lucent.com>
131204         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
131205         ut_pid, ut_id, ut_exit.
131207 2002-04-16  Jim Meyering  <meyering@lucent.com>
131209         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
131210         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
131211         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
131213 2002-04-12  Jim Meyering  <meyering@lucent.com>
131215         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
131216         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
131217         existence of the getmntinfo function.  Needed for Darwin 5.3.
131219         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
131220         This is necessary at least on Darwin 5.3.
131222         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
131223         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
131224         strnlen.o in the library, and that makes some versions of ranlib
131225         object.
131227 2002-04-12  Jim Meyering  <meyering@lucent.com>
131229         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
131231 2002-04-09  Jim Meyering  <meyering@lucent.com>
131233         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
131234         to be more precise.  Rather than saying we're checking whether the
131235         function `works', say what we're testing.
131236         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
131237         Reported by Bruno Haible.
131239 2002-03-10  Jim Meyering  <meyering@lucent.com>
131241         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
131242         Suggestion from Santiago Vila.
131244 2002-03-08  Jim Meyering  <meyering@lucent.com>
131246         * lib/rename.c: Mention that this wrapper is needed also on
131247         mips-dec-ultrix4.4 systems.
131249 2002-03-02  Jim Meyering  <meyering@lucent.com>
131251         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
131252         not HAVE_CLOCK_SETTIME.
131254 2002-02-27  Paul Eggert  <eggert@twinsun.com>
131256         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
131257         Check for clock_settime.
131259 2002-02-27  Paul Eggert  <eggert@twinsun.com>
131261         * lib/nanosleep.h: Rename to....
131262         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
131264         * lib/gettime.c: New file.
131265         * lib/settime.c: New file.
131266         * lib/stime.c: Remove.
131268         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
131269         timespec.h.  Remove nanosleep.h.
131271 2002-02-25  Paul Eggert  <eggert@twinsun.com>
131273         * m4/acl.m4: New file.
131274         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
131275         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
131277 2002-02-25  Paul Eggert  <eggert@twinsun.com>
131279         * lib/acl.c, lib/acl.h: New files.
131280         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
131282 2002-02-24  Jim Meyering  <meyering@lucent.com>
131284         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
131285         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
131286         cause trouble.  Reported by Nelson Beebe.
131288 2002-02-23  Paul Eggert  <eggert@twinsun.com>
131290         * lib/path-concat.c (xpath_concat): Reorder code to pacify
131291         compilers that don't know that xalloc_die never returns.
131293 2002-02-20  Jim Meyering  <meyering@lucent.com>
131295         * lib/getdate.c: Regenerate using bison-1.33.
131297 2002-02-17  Jim Meyering  <meyering@lucent.com>
131299         * config/config.guess (main): Don't use `head -1'; it's no longer
131300         portable. Use `sed 1q' instead.
131302 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
131304         * m4/codeset.m4: Upgrade to gettext-0.11.
131305         * m4/gettext.m4: Upgrade to gettext-0.11.
131306         * m4/glibc21.m4: Upgrade to gettext-0.11.
131307         * m4/iconv.m4: Upgrade to gettext-0.11.
131308         * m4/isc-posix.m4: Upgrade to gettext-0.11.
131309         * m4/lcmessage.m4: Upgrade to gettext-0.11.
131310         * m4/lib-ld.m4: New file, from gettext-0.11.
131311         * m4/lib-link.m4: New file, from gettext-0.11.
131312         * m4/lib-prefix.m4: New file, from gettext-0.11.
131313         * m4/progtest.m4: Upgrade to gettext-0.11.
131315 2002-02-15  Paul Eggert  <eggert@twinsun.com>
131317         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
131318         (jm_PREREQ): Use it.
131320 2002-02-15  Paul Eggert  <eggert@twinsun.com>
131322         * lib/posixver.c, lib/posixver.h: New files.
131323         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
131325 2002-02-02  Paul Eggert  <eggert@twinsun.com>
131326             Bruno Haible  <bruno@clisp.org>
131328         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
131329         (fwrite_success_callback): New declaration.
131330         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
131331         print_unicode_char. Call failure callback instead of error.
131332         (fwrite_success_callback): New function.
131333         (exit_failure_callback): New function.
131334         (fallback_failure_callback): New function.
131335         (print_unicode_char): Call unicode_to_mb.
131337 2002-01-26  Jim Meyering  <meyering@lucent.com>
131339         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
131340         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
131342 2002-01-26  Jim Meyering  <meyering@lucent.com>
131344         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
131346 2002-01-22  Paul Eggert  <eggert@twinsun.com>
131348         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
131350 2002-01-22  Jim Meyering  <meyering@lucent.com>
131352         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
131353         Otherwise, some versions of automake would omit the rule that makes
131354         Makefile from Makefile.in.
131356 2002-01-21  Paul Eggert  <eggert@twinsun.com>
131358         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
131359         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
131360         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
131361         (memcoll): Set errno to zero if there is no error.
131363         * lib/quotearg.c (quotearg_buffer_restyled):
131364         Fix bug with quoting buffers containing NUL when backslashing escapes.
131365         This bug was exposed by the other changes in this patch.
131366         (quotearg_n_options): New arg ARGSIZE.
131367         All callers changed.
131368         (quoting_options_from_style): New function.
131369         (quotearg_n_style): Use it.
131370         (quotearg_n_style_mem): New function.
131372         * lib/quotearg.h (quotearg_n_style_mem): New function.
131374 2002-01-19  Jim Meyering  <meyering@lucent.com>
131376         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
131377         Remove useless quotes: DF_PROG="df".
131378         * m4/strnlen.m4: New file.
131380 2002-01-16  Paul Eggert  <eggert@twinsun.com>
131382         * lib/backupfile.c (ISDIGIT): Comment fix.
131383         * lib/getdate.y (ISDIGIT): Likewise.
131384         * lib/posixtm.c (ISDIGIT, year): Likewise.
131385         * lib/strverscmp.c (ISDIGIT): Likewise.
131386         * lib/userspec.c (ISDIGIT): Likewise.
131388 2002-01-16  Jim Meyering  <meyering@lucent.com>
131390         * lib/getdate.y: Add three semicolons, each just before a closing
131391         brace. Bison (as of version 1.31) no longer papers over that mistake.
131393 2002-01-05  Jim Meyering  <meyering@lucent.com>
131395         * lib/version-etc.c (version_etc_copyright): Update copyright year.
131397 2001-12-19  Paul Eggert  <eggert@twinsun.com>
131399         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
131400         not silently exit merely because the output buffer happens to
131401         have nothing pending.
131403 2001-12-18  Paul Eggert  <eggert@twinsun.com>
131405         See the big note in ../ChangeLog.
131406         * lib/human.c (suffixes): Prefer K to k for 1024.
131407         (generate_suffix_backwards): New function.
131408         (human_readable_inexact): Use it.
131409         * lib/xstrtol.c (__xstrtol): If there is no number but there
131410         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
131411         Accept 'K' as well as 'k'.
131413 2001-12-15  Jim Meyering  <meyering@lucent.com>
131415         * lib/regex.h (__restrict_arr): Update from libc.
131417         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
131418         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
131419         (STREQ): Define.
131421 2001-12-14  Jim Meyering  <meyering@lucent.com>
131423         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
131424         Suggestion from Bruno Haible.
131426 2001-12-10  Jim Meyering  <meyering@lucent.com>
131428         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
131429         xrealloc, Instead, include "xalloc.h".
131430         (initbuffer): Don't cast xmalloc return value to char*.
131431         (readline): Reword comment.
131432         Don't cast xrealloc return value to char*
131433         Return NULL, not 0.
131435 2001-12-09  Jim Meyering  <meyering@lucent.com>
131437         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
131438         about `signed and unsigned type in conditional expression'.
131439         * lib/posixtm.c (posix_time_parse): Likewise.
131441         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
131443         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
131444         to avoid a pedantic warning.
131446         * lib/getstr.c: Don't include assert.h.
131447         (getstr): Remove warning-evoking assertions.
131448         Return -1 if offset parameter is out of bounds.
131449         Change the type of a local from int to size_t.
131451         * lib/strftime.c (my_strftime_localtime_r): Include this function
131452         definition in the `#if ! HAVE_TM_GMTOFF' block.
131454         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
131455         Include xalloc.h instead.
131457 2001-12-02  Jim Meyering  <meyering@lucent.com>
131459         * lib/tempname.c: Don't declare getenv, thus reverting the change of
131460         2001-11-18.  It's no longer necessary, now that stdlib.h is always
131461         included.
131463         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
131464         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
131466 2001-11-30  Akim Demaille  <akim@epita.fr>
131468         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
131469         before being defined.
131471 2001-11-27  Paul Eggert  <eggert@twinsun.com>
131473         * lib/quotearg.h (quotearg_n, quotearg_n_style):
131474         First arg is int, not unsigned.
131475         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
131476         (SIZE_MAX, UINT_MAX): New macros.
131477         (quotearg_n_options): Abort if N is negative.
131478         Avoid overflow check on hosts where size_t is 64 bits and int
131479         is 32 bits, as overflow is impossible there.
131480         Fix off-by-one typo that caused unnecessary reallocation.
131482 2001-11-27  Jim Meyering  <meyering@lucent.com>
131484         * lib/tempname.c: Merge with version from libc.
131485         * lib/regex.c: Likewise.
131487         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
131488         systems for which STDC_HEADERS is 0, it was not included, resulting in
131489         a warning about an integer-to-pointer conversion problem with getenv.
131490         Reported by Volker Borchert.
131492 2001-11-26  Jim Meyering  <meyering@lucent.com>
131494         * lib/gtod.h: Remove file.
131495         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
131496         * lib/gettimeofday.c: Don't include gtod.h.
131497         (GTOD_init): Remove function.
131498         (rpl_gettimeofday): Do its job here instead, rather than aborting.
131499         Suggestion from Volker Borchert.
131501 2001-11-23  Jim Meyering  <meyering@lucent.com>
131503         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
131504         it.
131505         * lib/hash.c (struct hash_table): Define it here instead.
131507 2001-11-22  Jim Meyering  <meyering@lucent.com>
131509         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
131511 2001-11-20  Jim Meyering  <meyering@lucent.com>
131513         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
131514         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
131516 2001-11-19  Jim Meyering  <meyering@lucent.com>
131518         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
131519         directory.  Use "conftestXXXXXX" as the template.
131520         Suggestion from Paul Eggert.
131522         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
131523         immediately, so the test doesn't mistakenly hit the max-open-files
131524         limit.
131526 2001-11-18  Paul Eggert  <eggert@twinsun.com>
131528         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
131529         (TEMPORARIES): New macro.
131530         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
131531         removes an artificial limitation (e.g. HP-UX 10.20, where
131532         TMP_MAX is 17576).
131534 2001-11-18  Jim Meyering  <meyering@lucent.com>
131536         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
131538 2001-11-18  Jim Meyering  <meyering@lucent.com>
131540         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
131541         on SunOS 4.
131543         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
131544         files will be created before anything else.
131546 2001-11-17  Paul Eggert  <eggert@twinsun.com>
131548         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
131549         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
131551 2001-11-17  Jim Meyering  <meyering@lucent.com>
131553         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
131554         Prompted by a report from Bob Proulx.
131556         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
131557         Instead, require UTILS_FUNC_MKSTEMP.
131559 2001-11-17  Jim Meyering  <meyering@lucent.com>
131561         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
131562         Now, that's done as part of AC_FUNC_STRTOD.
131564 2001-11-17  Jim Meyering  <meyering@lucent.com>
131566         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
131567         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
131568         rather than group writable.  Patch by Juan F. Codagnone.
131570         * lib/readtokens.c: Remove explicit declarations of xmalloc and
131571         xrealloc, Instead, include "xalloc.h".
131573         * lib/mountlist.c: Include unlocked-io.h after all system headers.
131574         Remove explicit declarations of xmalloc, xrealloc,
131575         and xstrdup.  Instead, include "xalloc.h".
131577         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
131578         unlocked-io.h.
131579         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
131580         Likewise.
131581         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
131583         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
131584         Reported by Padraig Brady.
131586         * lib/mkstemp.c: #undef mkstemp.
131587         Include config.h.
131588         (rpl_mkstemp): Rename from mkstemp.
131589         Protoize.
131591 2001-11-16  Jim Meyering  <meyering@lucent.com>
131593         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
131594         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
131595         determine the amount of total physical memory, use pstat_getstatic.
131596         HPUX-11 doesn't define _SC_PHYS_PAGES.
131597         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
131598         If sysconf couldn't be used to determine the amount of available
131599         physical memory, use both pstat_getstatic and pstat_getdynamic.
131600         Based on a patch from Bob Proulx.
131602 2001-11-10  Jim Meyering  <meyering@lucent.com>
131604         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
131605         (jm_PREREQ): Use it.
131607 2001-11-09  Jim Meyering  <meyering@lucent.com>
131609         * m4/jm-macros.m4: Require autoconf-2.52f.
131610         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
131611         Use these AC_-prefixed names, not the AM_-prefixed ones.
131613         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
131615 2001-11-05  Jim Meyering  <meyering@lucent.com>
131617         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
131619 2001-11-04  Jim Meyering  <meyering@lucent.com>
131621         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
131622         $DEFS.
131624 2001-11-03  Jim Meyering  <meyering@lucent.com>
131626         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
131627         of AC_DEFUN.
131629         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
131630         know the name of the variable in the macro definition.
131632 2001-11-03  Jim Meyering  <meyering@lucent.com>
131634         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
131635         in argmatch_to_argument call.
131637         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
131638         argument.
131640         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
131641         e.g., a fault due to an attempt to free a NULL pointer.
131643 2001-11-01  Jim Meyering  <meyering@lucent.com>
131645         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
131646         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
131648 2001-11-01  Jim Meyering  <meyering@lucent.com>
131650         * lib/dirfd.c, lib/dirfd.h: New files.
131651         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
131653         * lib/hash.c (hash_print) [TESTING]: Clean up.
131655 2001-10-22  Paul Eggert  <eggert@twinsun.com>
131657         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
131658         to avoid a warning if -Wall.
131660 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
131662         * README: New file
131663         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
131664         (per RMS's instructions, this is now the canonical source)
131665         * lgpl/, gpl/: New directories.
131667 2001-10-21  Paul Eggert  <eggert@twinsun.com>
131669         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
131671 2001-10-21  Jim Meyering  <meyering@lucent.com>
131673         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
131674         this code would end up calling gettext even in packages built
131675         with --disable-nls.
131676         * lib/getopt.c (_): Likewise.
131677         * lib/regex.c (_): Likewise.
131679 2001-10-20  Paul Eggert  <eggert@twinsun.com>
131681         * m4/error.m4 (jm_PREREQ_ERROR):
131682         Do not invoke AC_CHECK_FUNCS with strerror_r, as
131683         AC_FUNC_STRERROR_R does that.
131684         Check for strerror declaration.
131686         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
131687         are supposed to have them these days.
131688         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
131689         Merge changes from latest Autoconf CVS.
131690         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
131691         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
131692         POSIX decided to standardize on the int flavor of strerror_r.
131694 2001-10-20  Paul Eggert  <eggert@twinsun.com>
131696         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
131697         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
131698         Use strerror_r that is only a macro, even if it is not a function.
131699         (strerror): Check for HAVE_DECL_STRERROR before declaring.
131700         (private_strerror): Use prototypes, not old-style function definition.
131701         (print_errno_message): New function.
131702         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
131703         char*-flavored one.
131704         (error_tail, error, error_at_line): Use it.
131706 2001-10-11  Jim Meyering  <meyering@lucent.com>
131708         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
131709         and quote_n (1, ... to avoid clobbering a buffer.
131711 2001-10-05  Jim Meyering  <meyering@lucent.com>
131713         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
131714         hash-pjw.h.
131715         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
131716         * lib/hash-pjw.h: New file.
131718 2001-09-30  Jim Meyering  <meyering@lucent.com>
131720         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
131721         `struct fsstat' has the `f_fstypename' member.
131722         Use that to define FS_TYPE, which is now used to make
131723         the getfsstat link test tighter.
131725 2001-09-30  Jim Meyering  <meyering@lucent.com>
131727         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
131728         Include <sys/ucred.h>, for Apple Darwin.
131729         Include sys/mount.h and sys/fs_types.h only if available.
131730         (FS_TYPE): Define.
131731         (read_filesystem_list): Use FS_TYPE.
131733 2001-09-29  Paul Eggert  <eggert@twinsun.com>
131735         * lib/exclude.c (excluded_filename): 0 -> false, since it's
131736         a boolean context.
131738 2001-09-29  Jim Meyering  <meyering@lucent.com>
131740         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
131741         [one-argument getmntent function]): Include stdio.h before mntent.h.
131742         SunOS 4.1.x needs it for the declaration of `FILE'.
131743         Patch by Volker Borchert.
131745         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
131746         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
131747         sys/fs_types.h, and make the link-test for getfsstat guard #include
131748         directives with appropriate #if HAVE_*_H tests so that we can
131749         detect getfsstat on Apple Darwin1.3.7 systems.
131750         Reported by Nelson Beebe.
131751         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
131753 2001-09-28  Paul Eggert  <eggert@twinsun.com>
131755         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
131756         #defines strtoimax.  Also treat the other strto* functions
131757         like strtoimax.
131759         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
131760         Check for strtoul and strtoumax,
131761         as those declarations are made even in the signed case.
131762         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
131763         Likewise, for strtol and strtoimax.
131765 2001-09-28  Paul Eggert  <eggert@twinsun.com>
131767         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
131768         #defines strtoimax.  Also treat the other strto* functions
131769         like strtoimax.
131771         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
131772         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
131773         (strtoimax, strtoumax): Do not declare if already defined as a macro.
131775 2001-09-26  Jim Meyering  <meyering@lucent.com>
131777         Most macros in unlocked-io.h had the wrong number of arguments.
131778         * lib/gen-uio: New script.
131779         (USE_UNLOCKED_IO): Define to 1 if not already defined.
131780         * lib/unlocked-io.hin: Remove file.
131781         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
131782         rather than trying to embed it here.
131783         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
131784         Reported by Padraig Brady.
131786 2001-09-25  Volker Borchert  <bt@teknon.de>
131788         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
131789         `result'.
131791 2001-09-24  Jim Meyering  <meyering@lucent.com>
131793         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
131795 2001-09-23  Jim Meyering  <meyering@lucent.com>
131797         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
131798         instead of the mere test for existence of mntent.h.  The latter
131799         would get a false-positive on AIX 3.4 systems.
131800         In the outer getmntent if-block, don't die if neither of the getmntent
131801         tests succeeds.  Instead, just fall through and continue with the
131802         remaining tests.
131804 2001-09-23  Jim Meyering  <meyering@lucent.com>
131806         * lib/mountlist.c: Remove useless parentheses in #if directives.
131807         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
131808         the deprecated MOUNTED symbol is no longer defined in mntent.h.
131810 2001-09-22  Jim Meyering  <meyering@lucent.com>
131812         * m4/gettext.m4: New file.  From gettext.
131813         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
131814         * m4/progtest.m4: Likewise
131815         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
131816         * m4/glibc21.m4: Likewise.
131818         * m4/libintl.m4: Remove.  No longer used.
131820 2001-09-22  Jim Meyering  <meyering@lucent.com>
131822         * lib/localcharset.c: Update from latest gettext.
131823         * lib/config.charset: Likewise.
131825 2001-09-20  Jim Meyering  <meyering@lucent.com>
131827         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
131828         strtoimax.
131829         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
131830         strtoumax.
131832 2001-09-20  Jim Meyering  <meyering@lucent.com>
131834         * lib/xstrtol.c (strtoimax): Guard declaration with
131835         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
131836         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
131837         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
131838         (strtoumax): Likewise, for completeness (it wasn't necessary).
131840 2001-09-17  Paul Eggert  <eggert@twinsun.com>
131842         * lib/strtoimax.c (HAVE_LONG_LONG):
131843         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
131844         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
131845         to work around bug in IBM C compiler.
131847 2001-09-17  Jim Meyering  <meyering@lucent.com>
131849         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
131850         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
131851         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
131852         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
131853         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
131854         whenever the right hand side need not be expanded by the shell.
131856 2001-09-16  Paul Eggert  <eggert@twinsun.com>
131858         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
131859         library.  It's not correct, as some older glibcs are buggy.
131860         fnmatch wasn't fixed until glibc 2.2.
131862         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
131863         special shell magic here.
131865 2001-09-16  Jim Meyering  <meyering@lucent.com>
131867         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
131868         * m4/jm-macros.m4: Require it.
131870 2001-09-16  Jim Meyering  <meyering@lucent.com>
131872         * lib/mkdir.c: New file.
131874 2001-09-15  Jim Meyering  <meyering@lucent.com>
131876         * m4/jm-macros.m4: Check for help2man.
131878 2001-09-11  Jim Meyering  <meyering@lucent.com>
131880         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
131881         The body, by Paul Eggert, was moved here from configure.in.
131882         * m4/jm-macros.m4: Require UTILS_HOST_OS.
131884 2001-09-04  Paul Eggert  <eggert@twinsun.com>
131886         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
131887         (jm_PREREQ): Use it.
131889 2001-09-04  Paul Eggert  <eggert@twinsun.com>
131891         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
131892         Use ssize_t, not int, to store result of readlink.
131893         Check for ssize_t overflow as well as size_t overflow,
131894         as POSIX says the result of readlink is implementation-defined
131895         when ssize_t overflows.
131896         Remove unnecessary cast to char*.
131897         Use free+malloc instead of realloc, as the storage doesn't need
131898         to be preserved and it's clearer and can be more efficient that way.
131899         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
131900         * lib/xreadlink.h (xreadlink): Update prototype.
131902 2001-09-04  Paul Eggert  <eggert@twinsun.com>
131904         * lib/xgetcwd.c: Revert some of the previous change; intead,
131905         fix the HAVE_GETCWD_NULL code to behave more like the
131906         !HAVE_GETCWD_NULL code used to.
131908         Include "xalloc.h".
131909         (xgetcwd): Do not return NULL when memory is exhausted; instead,
131910         invoke xalloc_die.
131912 2001-09-03  Paul Eggert  <eggert@twinsun.com>
131914         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
131915         sys/param.h, as pathmax.h includes them.
131917 2001-09-03  Paul Eggert  <eggert@twinsun.com>
131919         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
131920         (jm_PREREQ_XGETCWD): New macro.
131922         * m4/getcwd.m4: New file.
131924 2001-09-03  Paul Eggert  <eggert@twinsun.com>
131926         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
131927         like the HAVE_GETCWD_NULL code.
131928         Include pathmax.h if not HAVE_GETCWD.
131929         Do not include xalloc.h.
131930         (INITIAL_BUFFER_SIZE): New symbol.
131931         Do not use xmalloc / xrealloc, since the caller is responsible for
131932         handling errors.  Preserve errno around `free' during failure.
131933         Do not overrun buffer when using getwd.
131935 2001-09-03  Paul Eggert  <eggert@twinsun.com>
131937         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
131938         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
131939         getcwd (NULL, 0).
131941 2001-09-03  Paul Eggert  <eggert@twinsun.com>
131943         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
131944         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
131945         spotted by Jim Meyering.
131947 2001-09-03  Jim Meyering  <meyering@lucent.com>
131949         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
131950         failure.
131952 2001-09-02  Jim Meyering  <meyering@lucent.com>
131954         * lib/error.c: Update from GNU libc.
131956 2001-09-01  Jim Meyering  <meyering@lucent.com>
131958         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
131959         Used by df.
131961 2001-09-01  Jim Meyering  <meyering@lucent.com>
131963         * lib/xreadlink.c: New file.
131964         * lib/xreadlink.h: New file.
131965         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
131966         xreadlink.h.
131968         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
131969         doesn't conflict with sparc Solaris 7's definition in
131970         /usr/include/sys/int_types.h.
131972         * lib/exclude.c: Use `""', not `<>' to #include non-system header
131973         files.
131974         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
131975         and strncasecmp as r-values.  Unixware didn't have declarations.
131977 2001-08-31  Paul Eggert  <eggert@twinsun.com>
131979         * lib/xstrtol.h: Add copyright notice.
131980         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
131981         LONGINT_INVALID_SUFFIX_CHAR.
131983 2001-08-31  Paul Eggert  <eggert@twinsun.com>
131985         * lib/xstrtol.c (strtoimax): New decl.
131987 2001-08-31  Paul Eggert  <eggert@twinsun.com>
131989         * lib/xgetcwd.c: Don't include pathmax.h.
131990         Include stdlib.h and unistd.h if available.
131991         Include xalloc.h.
131992         (xmalloc, xstrdup, free): Remove decls.
131993         (xgetcwd): Don't assume sizes fit in unsigned.
131994         Check for overflow when computing sizes.
131995         Simplify reallocation code.
131997 2001-08-31  Paul Eggert  <eggert@twinsun.com>
131999         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
132000         a directory's st_size can have an arbitrary value, so the old
132001         usage could waste an arbitrary amount of memory.  All uses
132002         changed.
132003         * lib/savedir.h: Update prototype.
132005 2001-08-31  Paul Eggert  <eggert@twinsun.com>
132007         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
132009         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
132010         old strtoimax.c.
132012         Also, make the following further changes to make this file's
132013         configuration more similar to that of strtol.c:
132014         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
132015         (strtoumax, uintmax_t, strtoull, strtol): Remove.
132016         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
132017         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
132018         changed to signed values.
132020         And make the following changes as well:
132021         Fix copyright notice, as 1999 was missing.
132022         (verify): New macro.
132023         (strtoimax): Check sizes at compile-time, not run-time.
132024         Prefer strtol to strtoll if both work.
132025         (main): Remove; it was not that useful and was a pain to maintain.
132027         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
132029 2001-08-31  Jim Meyering  <meyering@lucent.com>
132031         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
132032         Use an initial, malloc'd, buffer of length 128 rather than
132033         a statically allocated one of length 1024.
132035 2001-08-30  Paul Eggert  <eggert@twinsun.com>
132037         Simplify code, partly by assuming autoconf 2.52 semantics.
132039         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
132041         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
132042         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
132043         All uses removed.
132044         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
132045         Move AC_REQUIRE to next-to-top level, to avoid confusion.
132046         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
132047         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
132048         jm_AC_HEADER_INTTYPES_H.
132049         * m4/jm-macros.m4 (jm_MACROS): Likewise.
132051         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
132053         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
132054         Quote first arg of AC_DEFUN.
132055         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
132056         since they are needed to parse the include file even if we need
132057         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
132058         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
132059         but with opposite signedness.
132061 2001-08-30  Paul Eggert  <eggert@twinsun.com>
132063         Merge 'exclude' changes from tar 1.13.22.
132064         This fixes one or two unlikely storage allocation overflow bugs,
132065         but doesn't change user-visible behavior otherwise.
132067 2001-08-30  Paul Eggert  <eggert@twinsun.com>
132069         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
132070         (jm_PREREQ_EXCLUDE): New macro.
132072 2001-08-30  Paul Eggert  <eggert@twinsun.com>
132074         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
132075         tm to be declared.
132077 2001-08-30  Paul Eggert  <eggert@twinsun.com>
132079         * lib/hash.c: Remove '2001' from copyright notice.
132081 2001-08-30  Paul Eggert  <eggert@twinsun.com>
132083         * lib/full-write.h: New file.
132084         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
132085         * lib/full-write.c: Correct credits, as cccp.c no longer
132086         exists and anyway it was so heavily changed from the old cccp
132087         code as to be unrecognizable.  Include full-write.h.
132088         (full_write): Return size_t, with short writes meaning failure.
132089         All callers changed.  This fixes a bug with large buffers
132090         on 64-bit hosts.
132091         * lib/utime.c: Include full-write.h.
132093 2001-08-30  Paul Eggert  <eggert@twinsun.com>
132095         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
132096         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
132097         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
132098         Include if available.
132099         (<xalloc.h>): Include
132100         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
132101         (verify): New macro.  Use it to verify that EXCLUDE macros do not
132102         collide with FNM macros.
132103         (struct patopts): New struct.
132104         (struct exclude): Use it, as exclude patterns now come with options.
132105         (new_exclude): Support above changes.
132106         (new_exclude, add_exclude_file):
132107         Initial size must now be a power of two to simplify overflow checking.
132108         (free_exclude, fnmatch_no_wildcards): New function.
132109         (excluded_filename): No longer requires options arg, as the options
132110         are determined by add_exclude.  Now returns bool, not int.
132111         (excluded_filename, add_exclude):
132112         Add support for the fancy new exclusion options.
132113         (add_exclude, add_exclude_file): Now takes int options arg.
132114         Check for arithmetic overflow when computing sizes.
132115         (add_exclude_file): xrealloc might modify errno, so don't
132116         realloc until after errno might be used.
132118         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
132119         New macros.
132120         (free_exclude): New decl.
132121         (add_exclude, add_exclude_file): Now takes int options arg.
132122         (excluded_filename): No longer requires options arg, as the options
132123         are determined by add_exclude.  Now returns bool, not int.
132125 2001-08-30  Paul Eggert  <eggert@twinsun.com>
132127         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
132129 2001-08-27  Jim Meyering  <meyering@lucent.com>
132131         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
132133         * lib/version-etc.c (N_): Remove definition.
132134         Revert most of last change.
132135         Instead, simply don't mark the `Copyright...' string for translation.
132136         Based on advice from Paul Eggert.
132138         * lib/strtoxmax.c: Tweak comment.
132140 2001-08-26  Jim Meyering  <meyering@lucent.com>
132142         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
132144         * m4/xstrtoimax.m4: New file.
132145         * m4/xstrtoumax.m4: Add comments explaining why we
132146         AC_REPLACE_FUNCS(strtol).
132148 2001-08-26  Jim Meyering  <meyering@lucent.com>
132150         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
132151         of copyright with `%s' so translators don't get an untranslated
132152         message in 2002.
132153         (COPYRIGHT_YEAR): Define.
132154         (version_etc): Use fprintf rather than fputs.
132155         Suggestion from Ulrich Drepper.
132157         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
132159         * lib/strtoll.c: New file, from GNU libc.
132160         * lib/xstrtoimax.c: New file.
132162         * lib/xstrtol.h: Add xstrtoimax.
132163         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
132164         * lib/strtoimax.c: New file.  Likewise, but first define
132165         STRTOUXMAX_SIGNED.
132167         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
132168         ...
132169         * lib/strtoxmax.c: ... then renamed to this.
132171 2001-08-18  Paul Eggert  <eggert@twinsun.com>
132173         * m4/inttypes.m4: Add AC_PREREQ(2.13).
132174         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
132175         (jm_AC_TYPE_INTMAX_T): New macro.
132176         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
132178         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
132180         * m4/longlong.m4: Renamed from ulonglong.m4.
132181         * m4/inttypes.m4: Renamed from inttypes_h.m4.
132182         * m4/uintmax_t.m4: Removed.
132184 2001-08-13  Paul Eggert  <eggert@twinsun.com>
132186         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
132187         Port to Solaris 8, where 'sed' requires a space after the 'r'
132188         command, and where sh dislikes "$/".  Clean up the spacing a bit.
132189         Redirect output to $tmp just once.
132191 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
132193         * lib/addext.c (<errno.h>): Include.
132194         (errno): Declare if not defined.
132195         (addext): Work correctly when pathconf returns -1 and leaves
132196         errno alone because there is no limit.  Also, work even if
132197         pathconf returns a value greater than SIZE_MAX.
132199 2001-08-12  Jim Meyering  <meyering@lucent.com>
132201         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
132202         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
132203         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
132204         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
132205         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
132206         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
132207         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
132208         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
132209         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
132210         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
132211         utime.m4, utimes.m4, xstrtoumax.m4:
132212         Quote the first argument in each use of AC_DEFUN.
132214 2001-08-12  Jim Meyering  <meyering@lucent.com>
132216         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
132217         Simply `return getcwd (NULL, 0);'.
132218         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
132219         Use 1300 as initial value for length, not PATH_MAX.
132221         * lib/pathmax.h: Clean up cpp syntax.
132223 2001-08-12  Jim Meyering  <meyering@lucent.com>
132225         * lib/gettimeofday.c: New file.
132226         * lib/gtod.h: New file.
132227         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
132229 2001-08-05  Jim Meyering  <meyering@lucent.com>
132231         * m4/jm-macros.m4: Require autoconf-2.52.
132233 2001-08-04  Jim Meyering  <meyering@lucent.com>
132235         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
132236         stmt, to get in sync with glibc.
132238 2001-08-03  Paul Eggert  <eggert@twinsun.com>
132240         The following changes are from gettext 0.10.39 as maintained by
132241         Bruno Haible.
132243         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
132244         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
132245         with inverted sense.  All uses changed.
132247         * lib/mbswidth.c: Don't include <limits.h>.
132248         Include <stdlib.h> and <string.h> unconditionally.
132249         (iswcntrl, mbsinit, ISCNTRL): New macros.
132250         (mbsnwidth): Use K&R style function declarations.
132251         Don't bother checking for MB_LEN_MAX == 1, since the compiler
132252         can optimize it when MB_CUR_MAX == 1.
132253         The width of control characters is zero, not 1.
132255 2001-08-03  Paul Eggert  <eggert@twinsun.com>
132257         The following changes are from gettext 0.10.39 as maintained by
132258         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
132260         * m4/codeset.m4: Upgrade to serial AM1.
132261         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
132262         all uses changed.  Quote first arg of AC_DEFUN.
132263         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
132265         * m4/iconv.m4: Upgrade to serial AM2.
132266         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
132267         Add --with-libconv-prefix.
132268         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
132269         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
132270         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
132271         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
132272         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
132274         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
132275         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
132276         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
132277         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
132278         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
132279         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
132280         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
132281         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
132282         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
132284         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
132285         string.h any more.
132287         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
132288         not the default value.
132290         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
132291         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
132292         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
132293         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
132294         Also check for iswcntrl, used for wcwidth fallback.
132295         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
132296         to Autoconf 2.13.
132298 2001-08-03  Jim Meyering  <meyering@lucent.com>
132300         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
132301         as it was in the original.  Reported by Paul Eggert.
132303 2001-07-16  Jim Meyering  <meyering@lucent.com>
132305         * m4/gettimeofday.m4: New file.
132306         Prompted by a report from Bernhard Baehr.
132308 2001-07-15  Jim Meyering  <meyering@lucent.com>
132310         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
132311         stuff. Now it's in ../Makefile.cfg.
132313 2001-07-15  Jim Meyering  <meyering@lucent.com>
132315         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
132316         (BUILT_SOURCES): Add unlocked-io.h.
132317         (io_functions): Define.
132318         (unlocked-io.h): New rule.
132319         (DISTCLEANFILES): Add unlocked-io.h.
132320         (all-local): Depend on unlocked-io.h, to ensure it is created.
132322         * lib/unlocked-io.hin: New file
132324         * lib/regex.c: Update from glibc.
132326 2001-07-05  Jim Meyering  <meyering@lucent.com>
132328         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
132329         recommendation.
132330         (libfetish_a_SOURCES): Put all .h files here instead.
132331         Remove a thus-exposed (better checks in automake) duplicate and
132332         two unnecessary .h files.
132334 2001-07-04  Jim Meyering  <meyering@lucent.com>
132336         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
132337         that generates jm-glibc-io.m4 so that it doesn't trigger any make
132338         distcheck failure.
132340 2001-07-02  Jim Meyering  <meyering@lucent.com>
132342         The following changes were prompted by suggestions from Bruno Haible.
132344         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
132345         is now generated.
132346         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
132347         definition of EXTRA_DIST.
132348         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
132349         ensure that the generated file is created/updated whenever the list
132350         of $(unlocked_functions) is changed.
132351         (jm-glibc-io.m4): New rule.
132352         (unlocked-io.h): New rule -- currently unused.
132354 2001-06-24  Jim Meyering  <meyering@lucent.com>
132356         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
132357         unmatched right bracket, rather than kludging it with an extra,
132358         falsely-matching quote in a comment.  Patch by Akim Demaille.
132360 2001-06-11  Jim Meyering  <meyering@lucent.com>
132362         * lib/regex.c: Update from GNU libc.
132364 2001-05-27  Jim Meyering  <meyering@lucent.com>
132366         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
132367         Check for ut_type in struct utmp.
132369 2001-05-27  Jim Meyering  <meyering@lucent.com>
132371         * lib/readutmp.h (UT_TYPE): Define.
132373 2001-05-24  Jim Meyering  <meyering@lucent.com>
132375         * lib/argmatch.c: Include "quote.h".
132376         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
132377         quote function.  Reported by Göran Uddeborg.
132379 2001-05-22  Jim Meyering  <meyering@lucent.com>
132381         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
132382         now that we use the package-supplied version unconditionally.
132383         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
132385 2001-05-21  Jim Meyering  <meyering@lucent.com>
132387         * m4/regex.m4: Change a couple backticks to single quotes to avoid
132388         shell syntax errors.
132390 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
132392         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
132394 2001-05-20  Paul Eggert  <eggert@twinsun.com>
132396         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
132397         Don't bother to check library strftime, since
132398         we'll be using our own my_strftime function anyway.
132399         Define my_strftime instead of strftime.
132401 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
132403         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
132404         which is not yet declared.
132406 2001-05-15  Jim Meyering  <meyering@lucent.com>
132408         * m4/regex.m4: Use proper quoting so brackets appear in the test
132409         program.
132410         Reported by, and with help from, Bruno Haible.
132412 2001-05-13  Jim Meyering  <meyering@lucent.com>
132414         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
132415         undefined.
132417 2001-05-11  Paul Eggert  <eggert@twinsun.com>
132419         dirname code cleanup.  base_name now behaves more compatibly
132420         with POSIX basename when given file names that have trailing
132421         slashes, and similarly for dir_name.  Add new primitives
132422         base_len and dir_len.  Put the directory-name-related decls
132423         into dirname.h.
132425         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
132426         * lib/backupfile.c (base_name): Likewise.
132427         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
132428         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
132429         * lib/makepath.c (strip_trailing_slashes): Likewise.
132430         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
132431         ISSLASH): Likewise.
132432         * lib/rename.c (strip_trailing_slashes): Likewise.
132433         * lib/same.c (base_name): Likewise.
132434         * lib/stripslash.c (ISSLASH): Likewise.
132436         * lib/addext.c: Include <dirname.h> after size_t is defined.
132437         * lib/backupfile.c: Likewise.
132439         * lib/addext.c (addext): Use base_len to trim redundant
132440         trailing slashes instead of doing it ourselves.
132441         But do not trim the last slash if it is not redundant.
132443         * lib/backupfile.c (find_backup_file_name,
132444         max_backup_version): Use base_len instead of rolling it ourselves.
132445         Handle the case of "" and (on DOS) "C:" correctly.
132447         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
132448         needed. Include <string.h>, <dirname.h>.
132449         (base_name): Allow file names ending in slashes, other than names
132450         that are all slashes.  In this case, return the basename followed
132451         by the slashes.  This is more general, and can be used in places
132452         where the original base_name purposely had an assertion failure.
132453         (base_len): New function.
132455         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
132456         Do not include <assert.h>; no longer needed.
132457         Include xalloc.h.
132458         (memrchr): Remove decl.
132459         (dir_name_r): Remove.
132460         (dir_len): Renamed from dirlen.  All callers changed.
132461         Rewrite in terms of base_name, for simplicity and consistency.
132462         (dir_name): Never return NULL.  All callers changed.
132463         Do not include <stdlib.h> in test program; no longer needed.
132464         return 0; is fine for test program.
132466         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
132467         New macros.
132468         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
132470         * lib/path-concat.c (path_concat): Use base_len to compute
132471         base length, not strlen; this means we cannot rely on memcpy
132472         to null-terminate.
132474         * lib/same.c (STREQ): Remove.
132475         (same_name): Handle the case where the basename ends in trailing '/'.
132477         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
132478         a slash was stripped.  Do not strip the last slash after a
132479         file system prefix.
132481 2001-05-11  Paul Eggert  <eggert@twinsun.com>
132483         * lib/Makefile.am (libfetish_a_SOURCES):
132484         Add strftime.c, since we now compile it on all hosts.
132486         * lib/strftime.c (my_strftime):
132487         Define to nstrftime if emacs, but only if my_strftime is not defined.
132488         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
132489         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
132490         Add one more extra argument: a nanoseconds value.
132491         All uses changed.
132492         (ns): New macro.
132493         (my_strftime function): Add %N format.
132494         (emacs_strftimeu): Renamed from emacs_strftime,
132495         with extra ut argument.
132497 2001-05-09  Paul Eggert  <eggert@twinsun.com>
132499         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
132501 2001-04-21  Jim Meyering  <meyering@lucent.com>
132503         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
132504         doesn't interfere.
132506 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
132508         * m4/ftruncate.m4: Check for chsize.
132509         Link with ftruncate.o unconditionally if ftruncate is missing.
132510         This was required when cross-compiling to i586-mingw32msvc.
132512 2001-04-08  Jim Meyering  <meyering@lucent.com>
132514         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
132515         recomputed; that's necessary when the offset spans a DST transition.
132516         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
132518 2001-04-02  Jim Meyering  <meyering@lucent.com>
132520         * lib/regex.h, regex.c: Update from GNU libc.
132522 2001-03-24  Jim Meyering  <meyering@lucent.com>
132524         * m4/jm-macros.m4: Require autoconf-2.49d.
132526 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
132528         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
132530 2001-03-19  Paul Eggert  <eggert@twinsun.com>
132532         * lib/version-etc.c (version_etc_copyright): Update to 2001.
132534 2001-03-17  Jim Meyering  <meyering@lucent.com>
132536         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
132537         now that the version in autoconf is equivalent.
132538         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
132540         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
132541         Suggestion from Akim Demaille.
132543         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
132544         (jm_PREREQ_TEMPNAME): New function.
132546 2001-03-16  Paul Eggert  <eggert@twinsun.com>
132548         * lib/tempname.c (uint64_t): Define to uintmax_t if
132549         not defined, and if UINT64_MAX is not defined.
132550         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
132551         Reported by John David Anglin.
132553 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
132555         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
132556         resolve alias if codeset is empty.
132557         * lib/config.charset (BeOS): Use wildcard syntax.
132559 2001-03-13  Jim Meyering  <meyering@lucent.com>
132561         * lib/path-concat.c (path_concat)
132562         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
132563         concatenating e.g., `C:' and `foo'.
132564         From Bruno Haible.
132566 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
132568         * lib/localcharset.c (locale_charset): Don't use
132569         setlocale(LC_CTYPE,NULL). Don't return NULL.
132570         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
132572 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
132574         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
132575         support for DOS/DJGPP.
132577 2001-03-01  Paul Eggert  <eggert@twinsun.com>
132579         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
132580         lacks mkstemp.  Compile our own tempname.c if we compile our own
132581         mkstemp.c, as mkstemp relies on tempname.
132583 2001-03-01  Jim Meyering  <meyering@lucent.com>
132585         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
132586         AH_VERBATIM really does output its argument verbatim.
132588 2001-02-28  Paul Eggert  <eggert@twinsun.com>
132590         * lib/Makefile.am (libfetish_a_SOURCES):
132591         Add dup-safer.c, fopen-safer.c.
132592         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
132594         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
132595         * lib/unistd-safer.h: New files.
132597 2001-02-25  Paul Eggert  <eggert@twinsun.com>
132599         The mkstemp replacement is taken from glibc 2.2.2, with some
132600         portability fixes for use outside glibc, as follows:
132602         * lib/tempname.c (struct_stat64): New macro.
132603         (direxists, __gen_tempname): Use it.
132604         This avoids a portability problem with Solaris 8.
132606         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
132607         (<stddef.h>, <stdint.h>, <string.h>):
132608         Include only if STDC_HEADERS || _LIBC.
132609         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
132610         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
132611         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
132612         (__set_errno): Define this macro if <errno.h> doesn't.
132613         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
132614         Define these macros if <stdio.h> doesn't.
132615         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
132616         Define these macros if <sys/stat.h>
132617         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
132618         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
132619         __xstat64): Define if not _LIBC.
132620         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
132621         (__gen_tempname): Invoke gettimeofday only if
132622         HAVE_GETTIMEOFDAY || _LIBC;
132623         otherwise, fall back on plain "time".
132624         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
132626         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
132628         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
132630 2001-02-18  Paul Eggert  <eggert@twinsun.com>
132632         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
132634 2001-02-17  Paul Eggert  <eggert@twinsun.com>
132636         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
132637         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
132638         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
132639         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
132641 2001-02-17  Paul Eggert  <eggert@twinsun.com>
132643         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
132644         Remove workaround macros for hosts that have mbrtowc but not
132645         mbstate_t, as we now insist on proper declarations for both
132646         before using mbrtowc.
132648 2001-02-17  Jim Meyering  <meyering@lucent.com>
132650         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
132651         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
132652         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
132653         UnixWare 7.1.1.
132655         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
132656         rather than AC_CACHE_VAL.
132658 2001-02-17  Jim Meyering  <meyering@lucent.com>
132660         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
132661         around included file name.
132663         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
132665         * lib/strftime.c: Update from GNU libc (the only changes were to
132666         comments).
132668 2001-02-17  Jim Meyering  <meyering@lucent.com>
132670         * lib/regex.c: Update from libc.
132672 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
132674         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
132675         clash.
132677 2001-02-16  Paul Eggert  <eggert@twinsun.com>
132679         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
132680         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
132681         Reported by Mark Hounschell via Paul Eggert.
132683 2001-02-07  Jim Meyering  <meyering@lucent.com>
132685         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
132687 2001-02-05  Jim Meyering  <meyering@lucent.com>
132689         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
132690         it includes the patch required for `large file' support with at least
132691         HP-UX's 10.20 /bin/cc.
132693 2001-02-03  Jim Meyering  <meyering@lucent.com>
132695         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
132696         AS_IF, now that it works once again (mysteriously).
132697         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
132699 2001-01-30  Jim Meyering  <meyering@lucent.com>
132701         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
132702         * m4/chown.m4: Rename conftestchown to conftest.chown.
132703         * m4/rename.m4: s/conftestdir/conftest.d1/ and
132704         s/conftestdir2/conftest.d2/.
132705         * m4/utimes.m4: s/conftestdata/conftest.data/
132706         Inspired by Pavel Roskin's change in autoconf.
132708 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
132710         * lib/config.charset: Update for FreeBSD 4.2.
132712 2001-01-27  Jim Meyering  <meyering@lucent.com>
132714         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
132715         a use of AS_IF.
132716         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
132718 2001-01-26  Jim Meyering  <meyering@lucent.com>
132720         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
132721         quotearg.c includes it.
132723 2001-01-26  Jim Meyering  <meyering@lucent.com>
132725         * lib/quotearg.c: Include stddef.h.
132726         * lib/quote.c: Include stddef.h.
132727         Reported by Axel Kittenberger.
132729         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
132730         line in double quotes so that it evokes a better diagnostic.
132731         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
132732         Reported by Axel Kittenberger.
132734 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
132736         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
132737         as if it was a `charset'.
132739 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
132741         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
132742         has const.
132744 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
132746         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
132747         to avoid a warning.  Add back 'const' to inptr.
132749 2001-01-20  Jim Meyering  <meyering@lucent.com>
132751         Be sure that headers are checked before used in code compiled
132752         for the type checks.
132753         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
132754         In place of that, invoke jm_CHECK_ALL_TYPES.
132755         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
132756         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
132757         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
132758         The check for ssize_t was mistakenly run before the test for unistd.h.
132760         The configure-time check for stdbool.h was missing.
132761         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
132762         (jm_PREREQ_HASH): New function.
132764 2001-01-17  Jim Meyering  <meyering@lucent.com>
132766         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
132767         for autoconf-2.49c.
132768         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
132770 2001-01-16  Jim Meyering  <meyering@lucent.com>
132772         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
132773         From Bruno Haible.
132775 2001-01-14  Jim Meyering  <meyering@lucent.com>
132777         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
132778         foo and bar.  Create conftestdir/ in the script, not in the C code.
132779         Remove directories in the script, not in the C code.
132780         Remove conftestdir{,2} before trying to create the directory.
132781         Make the entire configure script fail if the mkdir fails.
132783 2001-01-14  Jim Meyering  <meyering@lucent.com>
132785         * lib/rename.c: New file.  From Volker Borchert.
132786         Include stdlib.h, string.h or strings.h, and xalloc.h.
132787         Use strip_trailing_slashes rather than open-coding it.
132789 2001-01-03  Paul Eggert  <eggert@twinsun.com>
132791         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
132793 2001-01-03  Jim Meyering  <meyering@lucent.com>
132795         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
132796         of local `inptr' to avoid warning with some system declarations of
132797         iconv.
132799 2001-01-02  Volker Borchert  <bt@teknon.de>
132801         * m4/rename.m4: New file.
132802         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
132804 2001-01-01  Jim Meyering  <meyering@lucent.com>
132806         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
132807         even on systems with utmpx.h.  It's necessary for the declaration of
132808         utmp's ut_user member.  Reported by Andreas Jaeger.
132810         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
132811         available. They are required for the declarations of getgrgid and
132812         getpwuid resp.
132813         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
132814         Reported by Andreas Jaeger.
132816 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
132818         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
132819         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
132820         so `make install' also works in VPATH builds.
132822 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
132824         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
132825         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
132826         can be used in subdirectories.
132828 2000-12-29  Paul Eggert  <eggert@twinsun.com>
132830         * lib/modechange.c: Do not assume that mode_t uses the
132831         traditional octal encoding.  E.g. "chmod 1 FOO" should set
132832         the other-execute bit of FOO even if S_IXOTH != 1.
132834         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
132835         WOTH, XOTH, ALLM): New macros.
132836         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
132837          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
132838         Use them.
132839         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
132840         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
132841         (mode_compile):
132842         No need to use uintmax_t; unsigned long is long enough.
132843         Don't bother to get suffix since we don't use it.
132845 2000-12-26  Jim Meyering  <meyering@lucent.com>
132847         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
132848         better with autoheader.
132850 2000-12-24  Jim Meyering  <meyering@lucent.com>
132852         * lib/hash.c (is_prime): Return explicit boolean values.
132853         (hash_get_first): Return NULL to appease Irix5.6's 89.
132854         Reported by Nelson Beebe.
132856 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
132858         * lib/localcharset.c (locale_charset): Add support for Win32.
132860 2000-12-18  Paul Eggert  <eggert@twinsun.com>
132862         * lib/physmem.h, lib/physmem.c: New files.
132864         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
132865         (noinst_HEADERS): Add physmem.h.
132867         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
132868         't' for compatibility with Solaris 8 sort.
132870 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
132872         * lib/config.charset: Add support for BeOS.
132874 2000-12-17  Jim Meyering  <meyering@lucent.com>
132876         * m4/dos.m4 (jm_AC_DOS): New file and macro.
132877         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
132879 2000-12-16  Jim Meyering  <meyering@lucent.com>
132881         This bug had a serious impact on chown: `chown N:M FILE' (for integer
132882         N and M) would have treated it like `chown N:N FILE'.
132884         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
132886 2000-12-16  Jim Meyering  <meyering@lucent.com>
132888         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
132889         SHELLS_FILE to a file name that's useful on djgpp systems.
132890         Include stdlib.h.
132891         (ADDITIONAL_DEFAULT_SHELLS): Define.
132892         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
132893         Based mostly on a patch from Prashant TR.
132895 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
132897         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
132898         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
132899         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
132901 2000-12-08  Andreas Schwab  <schwab@suse.de>
132903         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
132904         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
132906 2000-12-07  Jim Meyering  <meyering@lucent.com>
132908         * lib/stripslash.c (ISSLASH): Define.
132909         (strip_trailing_slashes): Use ISSLASH rather than comparing against
132910         `/'.
132911         From Prashant TR.
132913         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
132914         (dir_name_r): Declare this function as static.
132915         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
132916         manifest itself on a name containing a mix of slashes and
132917         backslashes.
132918         Make this function work with names starting with a DOS-style
132919         drive letter and colon prefix.
132920         (dir_name): Append `.' if necessary.
132921         Based mostly on patches from Prashant TR and Eli Zaretskii.
132923         * lib/dirname.h (dir_name_r): Remove prototype.
132925 2000-12-06  Paul Eggert  <eggert@twinsun.com>
132927         * m4/off_t-format.m4: Remove this file.
132928         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
132930 2000-12-06  Jim Meyering  <meyering@lucent.com>
132932         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
132933         replacement strtoull, we may well need the replacement strtoul, too.
132934         Check for declarations of strtoul and strtoull.
132935         Check for strtol.  Mainly as a cue to cause automake to include
132936         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
132937         Check for limits.h -- strtol.c needs it.
132939 2000-12-05  Jim Meyering  <meyering@lucent.com>
132941         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
132943 2000-12-04  Jim Meyering  <meyering@lucent.com>
132945         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
132946         Also include memory.h, stdlib.h, unistd.h if appropriate.
132947         Reported by Andreas Jaeger (conflicting declaration of malloc).
132949 2000-12-02  Jim Meyering  <meyering@lucent.com>
132951         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
132952         * m4/jm-macros.m4 (jm_MACROS): require it.
132954 2000-12-02  Jim Meyering  <meyering@lucent.com>
132956         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
132958 2000-12-01  Paul Eggert  <eggert@twinsun.com>
132960         * lib/memrchr.c: Include <config.h> before any system include file.
132962 2000-11-30  Jim Meyering  <meyering@lucent.com>
132964         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
132966 2000-11-30  Jim Meyering  <meyering@lucent.com>
132968         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
132970 2000-11-29  Paul Eggert  <eggert@twinsun.com>
132972         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
132974 2000-11-26  Jim Meyering  <meyering@lucent.com>
132976         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
132978 2000-11-22  Paul Eggert  <eggert@twinsun.com>
132980         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
132981         size of (size_t) -1; it's not portable.
132983 2000-11-17  Jim Meyering  <meyering@lucent.com>
132985         * lib/strstr.c: Update from GNU libc.
132987 2000-11-17  Akim Demaille  <akim@epita.fr>
132989         * lib/obstack.h: Formatting changes.
132990         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
132991         prevent type checking.
132992         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
132993         cast the value to (void *): assigning a `foo *' to a `void *'
132994         variable is valid.
132995         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
132997 2000-11-16  Jim Meyering  <meyering@lucent.com>
132999         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
133001 2000-11-11  Jim Meyering  <meyering@lucent.com>
133003         * lib/error.c: Add a couple #includes, merging from GNU libc version.
133005 2000-11-10  Jim Meyering  <meyering@lucent.com>
133007         * lib/obstack.h: Update from GNU libc.
133008         * lib/obstack.c: Likewise.
133010 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
133012         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
133014 2000-11-06  Paul Eggert  <eggert@twinsun.com>
133016         * lib/getusershell.c (setusershell): Use rewind rather than
133017         fseek/fseeko, to avoid configuration hassles with fseeko.
133018         Don't bother opening SHELLS_FILE if shellstream is NULL;
133019         it's not necessary.
133021 2000-11-05  Jim Meyering  <meyering@lucent.com>
133023         * lib/makepath.h (make_dir): Declare.
133024         * lib/makepath.c (make_dir): Remove `static' attribute.
133025         Tweak a comment.
133027 2000-11-04  Jim Meyering  <meyering@lucent.com>
133029         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
133031 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
133033         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
133034         last one in a bucket, advance to the next bucket.
133036 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
133038         * lib/fnmatch.c: Do not comment out all the code if we are using
133039         the GNU C library, because in some cases we are replacing buggy
133040         code in the GNU C library itself.
133042 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
133044         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
133045         (regex_compile): Catch bogus \(\1\).
133047 2000-10-30  Paul Eggert  <eggert@twinsun.com>
133049         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
133050         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
133051         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
133053 2000-10-30  Paul Eggert  <eggert@twinsun.com>
133055         * lib/error.h, getline.h, modechange.h:
133056         Remove "2000" from Copyright line, as the file hasn't been
133057         changed this year other than in the copyright notice.
133059         * lib/xalloc.h: Add "2000" to Copyright line, as this file
133060         was changed this year.
133062 2000-10-29  Jim Meyering  <meyering@lucent.com>
133064         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
133065         renaming.
133066         * m4/ls-mntd-fs.m4: Likewise
133068 2000-10-29  Jim Meyering  <meyering@lucent.com>
133070         * lib/xstat.in: Fix grammar in comment.
133072 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
133074         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
133075         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
133076         doesn't define __restrict_arr.
133078 2000-10-28  Jim Meyering  <meyering@lucent.com>
133080         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
133081         (jm_PREREQ_MEMCHR): New function.
133083 2000-10-28  Jim Meyering  <meyering@lucent.com>
133085         * lib/memchr.c: Update from libc.
133086         Adjust for portability:
133087         [HAVE_STDLIB_H]: Include stdlib.h.
133088         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
133089         Undef __memchr, too.
133090         [!weak_alias]: Define __memchr to memchr.
133092         * lib/regex.c: Update from libc.
133093         * lib/regex.h: Likewise.
133094         * lib/getopt1.c: Likewise.
133095         * lib/memcmp.c: Likewise.
133097         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
133098         Avoid using fseek, when possible -- it's broken by design.
133099         Patch by Ulrich Drepper.
133101 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
133103         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
133104         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
133105         Giving in to popular pressure to shut up the compiler with casts.
133107 2000-10-26  Jim Meyering  <meyering@lucent.com>
133109         * lib/strftime.c: Update from libc.
133111 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
133113         * regex.c: More `unsigned char' -> `re_char' changes.
133114         Also change several `int' into `re_wchar_t'.
133115         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
133116         (PUSH_FAILURE_POINTER): Don't cast any more.
133117         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
133118         We want GCC to complain, since this piece of code makes
133119         re_match non-reentrant, which *should* be fixed.
133120         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
133121         (EXTEND_BUFFER): Use RETALLOC.
133122         (SET_LIST_BIT): Don't cast.
133123         (re_wchar_t): New type.
133124         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
133125         that those two functions will always properly return.
133126         (IMMEDIATE_QUIT_CHECK): Cast to void.
133127         (analyse_first): Use recursion rather than an explicit stack.
133128         (re_compile_fastmap): Can't fail anymore.
133129         (re_search_2): Don't check re_compile_fastmap for failure.
133130         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
133131         Now also sets the new value (passed in a new argument).
133132         (re_match_2_internal): Use it.
133133         Also, use a new var `reg' of type size_t when looping through regs
133134         rather than reuse the inappropriate `mcnt'.
133136 2000-10-25  Jim Meyering  <meyering@lucent.com>
133138         * lib/obstack.c: Update from libc.
133140 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
133142         * regex.c (regex_compile): Change the way of handling a range from
133143         a char less than 256 to a char not less than 256.
133145 2000-10-24  Andrew Innes  <andrewi@gnu.org>
133147         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
133148         NT-Emacs only.
133149         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
133150         so that re_search functions only quit when callers expect them to.
133152 2000-10-23  Jim Meyering  <meyering@lucent.com>
133154         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
133155         wrong.  That set_locale call must not have any side effects.
133156         From Paul Eggert.
133158 2000-10-22  Jim Meyering  <meyering@lucent.com>
133160         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
133161         [CYCLIC]: Remove now-unused definition.
133163         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
133164         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
133165         Suggestion from Ulrich Drepper.
133167 2000-10-21  Jim Meyering  <meyering@lucent.com>
133169         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
133170         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
133171         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
133173 2000-10-21  Jim Meyering  <meyering@lucent.com>
133175         * lib/dirname.c (memrchr): Declare if necessary.
133176         (dir_name): Remove the restriction that there be no
133177         trailing slashes.  Now, this code skips past them, effectively
133178         ignoring them.
133179         [TEST_DIRNAME] (main): New unit tests.
133181         * lib/memrchr.c: New file from GNU libc.
133182         Undef __memrchr, too.
133183         [!weak_alias]: Define __memrchr to memrchr.
133184         Guard weak_alias use with `#ifdef weak_alias'.
133186 2000-10-21  Jim Meyering  <meyering@lucent.com>
133188         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
133189         (dir_name): Use dir_name_r.
133190         * lib/dirname.h (dir_name_r): Declare it.
133192 2000-10-17  Jim Meyering  <meyering@lucent.com>
133194         * lib/quote.h (PARAMS): Define and use.
133195         Reported by Akim Demaille.
133197         * lib/getopt.c: Update from libc.
133199 2000-10-16  Jim Meyering  <meyering@lucent.com>
133201         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
133202         setlocale.
133203         From Jan Fedak.
133205 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
133207         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
133209 2000-09-25  Jim Meyering  <meyering@lucent.com>
133211         * lib/md5.h (rol): Define (from GnuPG).
133213         * lib/sha.c: Give credit (GnuPG) where due.
133214         (M): Use rol rather than open-coding it.
133215         Add a FIXME comment.
133217 2000-09-21  Jim Meyering  <meyering@lucent.com>
133219         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
133220         Reported by Michael Stone.
133222 2000-09-20  Jim Meyering  <meyering@lucent.com>
133224         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
133225         (noinst_HEADERS): Add sha.h.
133226         Based on code from Scott G. Miller and from GnuPG.
133228 2000-09-18  Jim Meyering  <meyering@lucent.com>
133230         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
133231         LIBS. Otherwise, everyone ends up linking with -lelf for some
133232         configurations.
133233         Reported by Mike Stone.
133235 2000-09-15  Jim Meyering  <meyering@lucent.com>
133237         * lib/regex.c: Update from libc.
133239 2000-09-10  Jim Meyering  <meyering@lucent.com>
133241         * lib/getopt.c (_getopt_internal): Update from glibc.
133243 2000-09-09  Jim Meyering  <meyering@lucent.com>
133245         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
133246         think it should be used as a general replacement for isascii.
133247         * lib/fnmatch.c: Likewise.
133248         * lib/mbswidth.c: Likewise
133249         * lib/regex.c: Likewise.
133251         Don't use atoi.
133252         * lib/userspec.c: Include sys/param.h and limits.h.
133253         Include xstrtol.h.
133254         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
133255         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
133256         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
133257         UID, GID.  Check range.
133259 2000-09-06  Jim Meyering  <meyering@lucent.com>
133261         * lib/getopt.c (_getopt_internal): Update from glibc.
133263 2000-08-30  Jim Meyering  <meyering@lucent.com>
133265         * lib/strftime.c: Merge in changes from GNU libc.
133267 2000-08-26  Jim Meyering  <meyering@lucent.com>
133269         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
133270         * m4/fpending.m4: New file.
133272 2000-08-26  Jim Meyering  <meyering@lucent.com>
133274         * lib/closeout.c: Include "__fpending.h".
133275         (close_stdout_status): Return right away if there's nothing to flush.
133277         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
133278         * lib/__fpending.c: New file.
133279         * lib/__fpending.h: New file.
133281 2000-08-20  Jim Meyering  <meyering@lucent.com>
133283         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
133284         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
133285         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
133287 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
133289         Improve fileutils installation on systems where running
133290         programs (like install) can't be unlinked.
133291         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
133292         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
133294 2000-08-07  Paul Eggert  <eggert@twinsun.com>
133296         Standardize on "memory exhausted" instead of "Memory exhausted"
133297         or "virtual memory exhausted".
133298         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
133299         "virtual memory exhausted".
133300         * lib/same.c (same_name): Invoke xalloc_die instead of printing
133301         our own message.
133302         * lib/userspec.c (parse_user_spec): Likewise.
133303         * lib/bumpalloc.h: comment fix
133304         * lib/same.c, userspec.c: Include xalloc.h.
133306         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
133307         not char *const and pointing to a constant array.
133308         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
133309         (xrealloc): Comment fix.
133311         * lib/userspec.c (parse_user_spec):
133312         Don't translate a message until just before returning,
133313         to avoid unnecessary translation.
133315 2000-08-07  Jim Meyering  <meyering@lucent.com>
133317         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
133318         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
133319         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
133320         getgroups.c, gethostname.c, getopt.h, group-member.c,
133321         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
133322         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
133323         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
133324         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
133325         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
133326         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
133327         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
133328         yesno.c: Back out Copyright date changes for each file with no change
133329         this year.  This eases coordination with other programs using the same
133330         source code modules.  From Paul Eggert.
133332 2000-08-06  Paul Eggert  <eggert@twinsun.com>
133334         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
133335         not char, for compatibility with glibc 2.1.3 strftime.c.
133337 2000-08-03  Greg McGary  <greg@mcgary.org>
133339         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
133340         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
133341         (EXTEND_BUFFER): Use them.
133343 2000-08-01  Jim Meyering  <meyering@lucent.com>
133345         * lib/dirname.c (ISSLASH): Define.
133346         (BACKSLASH_IS_PATH_SEPARATOR): Define.
133347         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
133348         both `\' and `/' may be use as path separators.
133349         Based on a patch from Prashant TR.
133351 2000-07-31  Paul Eggert  <eggert@twinsun.com>
133353         * lib/quotearg.c (quotearg_n_options): Don't make the initial
133354         slot vector a constant, since it might get modified.
133356 2000-07-31  Jim Meyering  <meyering@lucent.com>
133358         * lib/xmalloc.c: Use `virtual memory exhausted', not
133359         `Memory exhausted'.
133360         * lib/obstack.c (print_and_abort): Likewise.
133362 2000-07-30  Paul Eggert  <eggert@twinsun.com>
133364         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
133365         buffer, so that the caller can always quote one small
133366         component of a "memory exhausted" message in slot 0.
133367         From a suggestion by Jim Meyering.
133369 2000-07-30  Jim Meyering  <meyering@lucent.com>
133371         * lib/makepath.c (make_path): Quote the other instance, too.
133373         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
133374         (STATIC_BUF_SIZE): Define.
133375         (quotearg_n_options): Use only statically allocated storage when
133376         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
133377         than STATIC_BUF_SIZE.
133379 2000-07-29  Jim Meyering  <meyering@lucent.com>
133381         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
133382         * lib/dirname.c (dir_name): Likewise.
133384         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
133385         `/'.
133387         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
133388         (dir_name): Assert that there are no trailing slashes.
133390 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
133392         * lib/mbswidth.h (mbswidth): Add a flags argument.
133393         (mbswidth): New declaration.
133394         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
133395         * lib/mbswidth.c (mbswidth): Add a flags argument.
133396         (mbsnwidth): New function.
133398 2000-07-24  Jim Meyering  <meyering@lucent.com>
133400         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
133402 2000-07-23  Paul Eggert  <eggert@twinsun.com>
133404         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
133406 2000-07-23  Paul Eggert  <eggert@twinsun.com>
133408         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
133409         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
133410         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
133411         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
133412         invoke multibyte primitives.
133414 2000-07-23  Paul Eggert  <eggert@twinsun.com>
133416         * lib/quotearg.c:
133417         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
133418         so that mbstate_t is always defined.
133420         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
133421         be 1 in at least one GCC installation, and this configuration
133422         error is likely to be common.  Ignoring MB_LEN_MAX hurts
133423         performance on hosts that have mbrtowc but have only unibyte
133424         locales, but I assume these hosts are rare.
133426 2000-07-23  Paul Eggert  <eggert@twinsun.com>
133428         * lib/mbswidth.c (_XOPEN_SOURCE):
133429         Don't define; this causes problems on Solaris 7.
133430         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
133432 2000-07-23  Jim Meyering  <meyering@lucent.com>
133434         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
133435         too: getgrgid, getpwuid, getuid.
133437 2000-07-23  Jim Meyering  <meyering@lucent.com>
133439         * lib/basename.c (base_name): Add an assertion.
133441 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
133443         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
133444         shadow its mbsinit function.
133446 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
133448         * lib/mbswidth.h: New file.
133449         * lib/mbswidth.c: New file.
133450         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
133451         (noinst_HEADERS): Add mbswidth.h.
133453 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
133455         * lib/config.charset: Add support for FreeBSD. Improve support for
133456         HP-UX and IRIX 6.
133458 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
133460         * m4/mbswidth.m4: New file.
133461         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
133463 2000-07-15  Jim Meyering  <meyering@lucent.com>
133465         * lib/makepath.c: Include quote.h.
133466         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
133467         corresponding argument in a `quote (...)' call.
133468         Give better diagnostics.
133470         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
133471         (noinst_HEADERS): Add quote.h.
133473         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
133474         from tar's src/misc.c.
133475         * lib/quote.h: New file.  Prototypes for same.
133477 2000-07-14  Paul Eggert  <eggert@twinsun.com>
133479         From a suggestion by Bruno Haible.
133480         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
133481         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
133482         to decide whether to define the BeOS workaround macro;
133483         this adjusts to the change to AC_MBSTATE_T.
133485 2000-07-14  Jim Meyering  <meyering@lucent.com>
133487         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
133488         jm_AC_TYPE_UINTMAX_T.
133490 2000-07-13  Paul Eggert  <eggert@twinsun.com>
133492         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
133494         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
133495         quotearg_buffer_restyled): Add support for
133496         clocale_quoting_style.  Undo previous change to
133497         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
133498         and "{RIGHT QUOTATION MARK}" msgids.
133500 2000-07-10  Paul Eggert  <eggert@twinsun.com>
133502         From a suggestion by Bruno Haible.
133503         * m4/mbstate_t.m4 (AC_MBSTATE_T):
133504         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
133505         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
133506         and mbstate_t, to a single-part test that simply defines mbstate_t.
133507         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
133508         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
133510 2000-07-10  Jim Meyering  <meyering@lucent.com>
133512         * m4/strerror_r.m4: Mirror the correction made in autoconf.
133514         * m4/gnu-source.m4: Output to confdefs.h directly.
133515         Suggestion from Akim Demaille.
133517 2000-07-09  Paul Eggert  <eggert@twinsun.com>
133519         The old behavior of quoting `like this' doesn't look good with
133520         newer, ISO-style fonts.  See:
133521         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
133523         Instead, quote "like this" by default.  Let the translator
133524         tailor the locale-specific quoting behavior by providing
133525         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
133527         * lib/quotearg.c (N_): New macro.
133528         (gettext_default): New function.
133529         (quotearg_buffer_restyled): Use
133530         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
133531         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
133533 2000-07-09  Jim Meyering  <meyering@lucent.com>
133535         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
133536         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
133538         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
133539         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
133541 2000-07-09  Jim Meyering  <meyering@lucent.com>
133543         * lib/Most files: Update copyright dates to include 2000.
133545 2000-07-08  Jim Meyering  <meyering@lucent.com>
133547         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
133548         if not defined.
133549         (xgethostname): Remove now-unnecessary #ifdef.
133550         Move declaration of `err' into loop where it's used.
133552 2000-07-05  Paul Eggert  <eggert@twinsun.com>
133553         and Bruno Haible  <haible@clisp.cons.org>
133555         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
133556         only if the test for an object-type mbstate_t fails.  This
133557         prevents us from mistakenly reporting that mbstate_t is a
133558         system object type after we "#define mbstate_t int" to work
133559         around its lack.
133561 2000-07-05  Paul Eggert  <eggert@twinsun.com>
133562         and Bruno Haible  <haible@clisp.cons.org>
133564         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
133566 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
133568         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
133569         to strerror_r.
133570         Include <ctype.h> for use of isalpha.
133572 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
133574         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
133575         by allocating a larger buffer. Test the gethostname return value for
133576         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
133577         returns an error and ENAMETOOLONG isn't defined.
133579 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
133581         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
133582         dimension.
133584 2000-07-04  Jim Meyering  <meyering@lucent.com>
133586         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
133587         of the deprecated AC_CHECKING.
133589 2000-07-04  Jim Meyering  <meyering@lucent.com>
133591         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
133592         Reported by Bruno Haible.
133594 2000-07-04  Jim Meyering  <meyering@lucent.com>
133596         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
133597         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
133598         lacks mbrtowc.
133600 2000-07-03  Paul Eggert  <eggert@twinsun.com>
133602         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
133603         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
133605 2000-07-03  Paul Eggert  <eggert@twinsun.com>
133606         and Bruno Haible  <haible@clisp.cons.org>
133608         * lib/quotearg.c (mbrtowc):
133609         Assign to *pwc, and return 1 only if result is nonzero.
133610         (iswprint): Use ISPRINT when substituting our own mbrtowc.
133612 2000-07-03  Jim Meyering  <meyering@lucent.com>
133614         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
133616 2000-07-03  Jim Meyering  <meyering@lucent.com>
133618         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
133619         This is necessary to get a definition of e.g., UTMP_FILE on
133620         HP-UX 10.20.
133621         From Bob Proulx.
133623 2000-07-02  Jim Meyering  <meyering@lucent.com>
133625         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
133627         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
133628         AC_LIBOBJ(function_name).
133629         * m4/chown.m4: Likewise.
133630         * m4/fnmatch.m4: Likewise.
133631         * m4/ftruncate.m4: Likewise.
133632         * m4/getgroups.m4: Likewise.
133633         * m4/getline.m4: Likewise.
133634         * m4/group-member.m4: Likewise.
133635         * m4/jm-macros.m4: Likewise.
133636         * m4/lstat.m4: Likewise.
133637         * m4/malloc.m4: Likewise.
133638         * m4/memcmp.m4: Likewise.
133639         * m4/nanosleep.m4: Likewise.
133640         * m4/putenv.m4: Likewise.
133641         * m4/realloc.m4: Likewise.
133642         * m4/regex.m4: Likewise.
133643         * m4/stat.m4: Likewise.
133644         * m4/strftime.m4: Likewise.
133646 2000-07-02  Jim Meyering  <meyering@lucent.com>
133648         * lib/quotearg.c (mbstate_t): Don't define here.
133650 2000-07-02  Jim Meyering  <meyering@lucent.com>
133652         * lib/nanosleep.c (SIGCONT): Define if not already defined.
133654 2000-07-01  Jim Meyering  <meyering@lucent.com>
133656         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
133658 2000-07-01  Jim Meyering  <meyering@lucent.com>
133660         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
133661         problem.
133663 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
133665         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
133666         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
133668 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
133670         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
133671         per change in ../m4/ls-mntd-fs.m4.
133672         (read_filesystem_list): Ignore symbolic links.
133674 2000-06-29  Jim Meyering  <meyering@lucent.com>
133676         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
133677         for declaration of strcmp.
133679         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
133681         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
133682         Avoid warning by casting result to `char *' to remove `const'.
133684 2000-06-28  Jim Meyering  <meyering@lucent.com>
133686         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
133687         included by quotearg.c, for which we perform this test.  From
133688         Bruno Haible.
133690 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
133692         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
133693         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
133694         <utmpx.h> exists, put readutmp.o into LIBOBJS.
133696 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
133698         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
133700 2000-06-26  Paul Eggert  <eggert@twinsun.com>
133702         savedir now sets errno on failure and invokes xmalloc to get memory.
133703         Fix a couple of other minor bugs while we're at it.
133705         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
133706         (NAMLEN): Remove macro.
133707         (malloc, realloc): Remove decls.
133708         (stpcpy): Likewise.
133709         ("xalloc.h"): Include.
133710         (NAME_SIZE_DEFAULT): New macro.
133711         (savedir): Use xmalloc / xrealloc to allocate memory.
133712         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
133713         Skip "" directory entries.
133714         Use strlen to calculate directory entry length, since the old method
133715         is rarely used these days and isn't worth supporting.
133716         Don't use a pointer after freeing it.
133717         Check for integer overflow when calculating allocation size.
133718         Use memcpy to copy entries, instead of stpcpy.
133719         Set errno properly when returning NULL.
133720         Check for readdir error.
133722 2000-06-26  Jim Meyering  <meyering@lucent.com>
133724         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
133726 2000-06-25  Jim Meyering  <meyering@lucent.com>
133728         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
133729         Linux header bug when _XOPEN_SOURCE is defined to 500.
133731 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
133733         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
133734         deficiency.
133736 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
133738         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
133739         Include xalloc.h.
133740         Don't include <stdlib.h>.  Don't declare malloc, realloc.
133742 2000-06-24  Jim Meyering  <meyering@lucent.com>
133744         * m4/strerror_r.m4: Revive this file -- to try out an experimental
133745         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
133746         for which strerror does return char*, but which lacks a conveniently
133747         accessible declaration of the function.  If the compile-test says
133748         strerror_r doesn't work, then resort to a `run'-test that works on
133749         BeOS and segfaults on DEC Unix.
133751 2000-06-24  Jim Meyering  <meyering@lucent.com>
133753         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
133755 2000-06-23  Paul Eggert  <eggert@twinsun.com>
133757         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
133758         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
133760 2000-06-23  Paul Eggert  <eggert@twinsun.com>
133762         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
133763         (mbrtowc, mbstate_t): Define substitutes if
133764         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
133765         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
133766         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
133768 2000-06-23  Jim Meyering  <meyering@lucent.com>
133770         * m4/afs.m4: Add missing AC_MSG_RESULT.
133771         Reported by Bruno Haible.
133773         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
133774         Suggestion from Bruno Haible.
133776 2000-06-23  Jim Meyering  <meyering@lucent.com>
133778         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
133780 2000-06-21  Jim Meyering  <meyering@lucent.com>
133782         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
133784 2000-06-21  Jim Meyering  <meyering@lucent.com>
133786         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
133787         (noinst_HEADERS): Add getstr.h.
133789         * lib/getline.c (getstr): Move into a separate file.
133790         * lib/getstr.c (getstr): New file, extracted from getline.c, with
133791         the following changes: new parameter, delim2; both delim[12]
133792         parameters have type `int', not `char'.  The latter would lose
133793         with 8-bit delimiters.
133794         * lib/getstr.h: New file.
133796 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
133798         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
133799         than 1024, return a memory chunk of least possible size, instead
133800         of size PATH_MAX + 2. In the loop, increment the size proportionally.
133801         Use free/xmalloc instead of xrealloc to avoid copying for very long
133802         paths.
133804 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
133806         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
133807         the empty string.
133809 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
133811         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
133812         address, not strdup.  Include <stdlib.h> and don't declare free().
133814 2000-06-19  Jim Meyering  <meyering@lucent.com>
133816         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
133818 2000-06-18  Jim Meyering  <meyering@lucent.com>
133820         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
133822         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
133823         `checking whether...' message to be consistent with that of the
133824         lstat test.
133826 2000-06-18  Jim Meyering  <meyering@lucent.com>
133828         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
133829         Besides, these days every porting target provides a mkdir function.
133831         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
133832         needed. (this snippet comes from src/system.h).
133834 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
133836         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
133838 2000-06-15  Paul Eggert  <eggert@twinsun.com>
133840         * lib/human.c (adjust_value): New function.
133841         (human_readable_inexact): Apply rounding style even when
133842         printing approximate values.
133844 2000-06-14  Paul Eggert  <eggert@twinsun.com>
133846         * lib/human.c (human_readable_inexact): Allow an input block
133847         size that is not a multiple of the output block size, and vice versa.
133848         Reported by Piergiorgio Sartor.
133850 2000-06-14  Paul Eggert  <eggert@twinsun.com>
133852         * lib/getdate.y (get_date): Apply relative times after time
133853         zone indicator, not before.  Reported by Todd A. Jacobs.
133855 2000-06-13  Jim Meyering  <meyering@lucent.com>
133857         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
133859         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
133861 2000-06-12  Paul Eggert  <eggert@twinsun.com>
133863         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
133865 2000-06-12  Jim Meyering  <meyering@lucent.com>
133867         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
133868         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
133869         optional argument.
133870         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
133871         the optional argument, `lib'.
133873 2000-06-08  Jim Meyering  <meyering@lucent.com>
133875         * m4/largefile.m4: Remove file (now that it's part of autoconf).
133877 2000-06-04  Paul Eggert  <eggert@twinsun.com>
133879         Rewrite largefile configuration so that we don't need to run
133880         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
133881         AC_CANONICAL_HOST in configure.in -- jmm]
133883         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
133884         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
133885         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
133886         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
133887         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
133888         All uses changed.
133889         Instead of inspecting the output of getconf, try to compile the
133890         test program without and with the macro definition.
133891         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
133892         for getconf.  Instead, check for the needed flags by compiling
133893         test programs.
133895 2000-06-04  Paul Eggert  <eggert@twinsun.com>
133897         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
133899 2000-06-04  Jim Meyering  <meyering@lucent.com>
133901         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
133902         SunOS 4.1.4 for which gid_t is an unsigned type.
133904 2000-06-03  Jim Meyering  <meyering@lucent.com>
133906         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
133907         now that autoconf requires that.
133909         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
133910         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
133911         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
133913 2000-06-03  Jim Meyering  <meyering@lucent.com>
133915         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
133917 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
133919         * m4/glibc21.m4: New file.
133920         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
133922 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
133924         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
133925         newer, don't install charset.alias.
133926         * lib/config.charset: Change the Linux/glibc rules so they become empty
133927         on glibc-2.1 or newer.
133929 2000-06-02  Jim Meyering  <meyering@lucent.com>
133931         * lib/mountlist.c: Back out last change.  Instead, do this...
133932         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
133933         me_dummy member using the same `ignore'-testing code.
133934         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
133935         fs_type strings.
133936         From Mark D. Roth.
133938 2000-05-29  Jim Meyering  <meyering@lucent.com>
133940         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
133941         mounts with the `ignore' attribute.  Based on a patch from
133942         Mark D. Roth.
133944 2000-05-28  Jim Meyering  <meyering@lucent.com>
133946         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
133947         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
133948         * m4/stat.m4: Likewise.
133949         * m4/lstat.m4: Likewise.
133950         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
133952         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
133953         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
133955 2000-05-26  Jim Meyering  <meyering@lucent.com>
133957         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
133959 2000-05-24  Jim Meyering  <meyering@lucent.com>
133961         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
133962         autoconf requires that.
133963         * m4/lib-check.m4: Likewise.
133964         * m4/jm-macros.m4: Likewise.
133965         * m4/strftime.m4: Likewise.
133967         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
133968         AC_CHECK_DECLS, now that autoconf requires that.
133970 2000-05-22  Jim Meyering  <meyering@lucent.com>
133972         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
133973         * m4/lstat.m4: Likewise.
133975 2000-05-22  Jim Meyering  <meyering@lucent.com>
133977         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
133979 2000-05-20  Jim Meyering  <meyering@lucent.com>
133981         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
133982         (jm_PREREQ): Use it.
133984 2000-05-18  Jim Meyering  <meyering@lucent.com>
133986         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
133987         back, too, since it may have been modified by allocate_entry.
133988         (hash_delete): Rewrite to use neither the assignment operator
133989         nor the comma operator in an if-expression.
133991 2000-05-15  Paul Eggert  <eggert@twinsun.com>
133993         * lib/closeout.c:
133994         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
133995         Remove; no longer needed.
133996         "quotearg.h": Add include.
133997         (file_name): Do not bother to explicitly initialize to NULL; it's less
133998         efficient on some hosts.
133999         (close_stdout_status): Remove test as to whether stdout was already
134000         closed; it breaks for the case "echo x | sort >&-".
134001         Quote file name colons.
134002         Do not assume that _("write error") lacks format strings.
134004 2000-05-15  Jim Meyering  <meyering@lucent.com>
134006         * lib/version-etc.c (version_etc_copyright): Update the copyright
134007         string used in all --version output.
134009 2000-05-14  Jim Meyering  <meyering@lucent.com>
134011         * lib/closeout.c (close_stdout_set_file_name): New function.
134012         (close_stdout_status): Use new file-scoped global.
134013         Return right away if fstat says the stdout file descriptor is invalid.
134014         * lib/closeout.h (close_stdout_set_file_name): Declare.
134016 2000-05-10  Jim Meyering  <meyering@lucent.com>
134018         * lib/closeout.c [default_exit_status]: New file-scoped variable.
134019         (close_stdout_set_status): New function.
134020         * lib/closeout.h (close_stdout_set_status): Declare.
134022 2000-05-09  Jim Meyering  <meyering@lucent.com>
134024         * m4/gettext.m4: Rename this...
134025         * m4/libintl.m4: ...to this.
134027 2000-05-08  Jim Meyering  <meyering@lucent.com>
134029         * lib/long-options.c: Don't include closeout.h.
134030         (parse_long_options): Don't call close_stdout for --version.
134032 2000-05-06  Paul Eggert  <eggert@twinsun.com>
134034         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
134035         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
134036         2.1.3 bug.  This avoids a clash when files like regex.c define
134037         _GNU_SOURCE.
134039 2000-05-06  Jim Meyering  <meyering@lucent.com>
134041         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
134042         (AC_REPLACE_FUNCS): Add strnlen.
134044         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
134045         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
134047         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
134048         AC_SEARCH_LIBS call for nanosleep.
134049         (LIB_NANOSLEEP): Set and AC_SUBST.
134051 2000-05-06  Jim Meyering  <meyering@lucent.com>
134053         * lib/strnlen.c: Undefine __strnlen and strnlen.
134054         [!weak_alias]: Define __strnlen to strnlen.
134056         * lib/atexit.c: New file, from libiberty.
134058 2000-05-06  Jim Meyering  <meyering@lucent.com>
134060         * lib/closeout.c (close_stdout_status): Also check for errors on the
134061         stderr stream.
134063 2000-05-05  Jim Meyering  <meyering@lucent.com>
134065         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
134066         AC_SEARCH_LIBS call for clock_gettime.
134067         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
134069         * m4/search-libs.m4: Update from autoconf.
134071         su doesn't work on Solaris 2.6.
134072         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
134073         <shadow.h>.  Reported by Dragos Harabor.
134075 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
134077         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
134078         memcpy instead of xmalloc, xrealloc, path_concat.
134079         (locale_charset): Treat empty environment variables as absent.
134080         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
134082 2000-05-04  Jim Meyering  <meyering@lucent.com>
134084         * lib/getopt.c: Update from glibc.
134085         * lib/obstack.c: Likewise.
134086         * lib/obstack.h: Likewise.
134087         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
134088         file
134090         * lib/regex.h: Likewise.
134091         * lib/strndup.c: Likewise.
134092         * lib/strnlen.c: New file, from glibc.
134094 2000-05-03  Jim Meyering  <meyering@lucent.com>
134096         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
134098 2000-05-02  Paul Eggert  <eggert@twinsun.com>
134100         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
134101         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
134102         compile-time test, rather than inspecting host and OS, to
134103         decide whether to define _LARGEFILE_SOURCE.
134105 2000-05-01  Jim Meyering  <meyering@lucent.com>
134107         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
134109         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
134110         Based on a patch from Bruno Haible.
134112 2000-05-01  Jim Meyering  <meyering@lucent.com>
134114         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
134116 2000-04-29  Jim Meyering  <meyering@lucent.com>
134118         * lib/path-concat.c: Declare strdup only if it's not defined.
134119         * lib/canon-host.c: Likewise.
134121 2000-04-28  Jim Meyering  <meyering@lucent.com>
134123         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
134124         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
134125         is included first, then limits.h is included by locale.h by libintl.h.
134126         From John David Anglin.
134128 2000-04-25  Jim Meyering  <meyering@lucent.com>
134130         * lib/makepath.c (S_IRWXUGO): Define.
134131         (make_path): Always perform explicit chmod if MODE specifies any
134132         of the `special' permission bits.  Prompted by a bug report against
134133         install from Mate Wierdl and Joost van Baal.
134135 2000-04-18  Jim Meyering  <meyering@lucent.com>
134137         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
134138         (jm_PREREQ): Use it.
134140 2000-04-18  Jim Meyering  <meyering@lucent.com>
134142         * lib/README: New file.
134144         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
134145         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
134147 2000-04-17  Jim Meyering  <meyering@lucent.com>
134149         Get it right :-)
134150         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
134151         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
134152         Suggestion from Akim Demaille.
134154 2000-04-17  Jim Meyering  <meyering@lucent.com>
134156         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
134157         the definition of it to rpl_strftime also defined-away the system's
134158         declaration.
134160 2000-04-15  Jim Meyering  <meyering@lucent.com>
134162         Use `C' to denote so-called `contiguous' files, the same way
134163         that tar does.
134164         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
134165         (ftypelet): Use S_ISCTG.
134166         From Michael Deutschmann.
134168 2000-04-14  Jim Meyering  <meyering@lucent.com>
134170         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
134171         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
134172         clobbered.
134174 2000-04-14  Jim Meyering  <meyering@lucent.com>
134176         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
134178 2000-04-13  Jim Meyering  <meyering@lucent.com>
134180         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
134181         AH_VERBATIM to insert required #ifndef into config.h.in.
134182         Suggestion from Akim Demaille.
134184 2000-04-12  Jim Meyering  <meyering@lucent.com>
134186         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
134187         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
134188         Christian Krackowizer.
134190         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
134191         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
134192         (AC_SYS_LARGEFILE): Require.
134193         (AM_C_PROTOTYPES): Require.
134195 2000-04-08  Jim Meyering  <meyering@lucent.com>
134197         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
134198         names don't conflict.  Reported by Eli Zaretskii.
134200 2000-04-07  Jim Meyering  <meyering@lucent.com>
134202         * lib/putenv.c: Move inclusion of errno.h so it follows that of
134203         sys/types.h, to work around system header problems on AIX 3.2.5.
134204         From Bruno Haible.
134206 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
134208         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
134209         bug.  Deal with the different error behavior of Irix iconv.
134211 2000-04-05  Paul Eggert  <eggert@twinsun.com>
134213         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
134214         IRIX if the installer said otherwise.
134216 2000-04-05  Jim Meyering  <meyering@lucent.com>
134218         Portability tweaks required for ultrix4.3.
134219         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
134220         (jm_CHECK_DECLS): Add getutent to the list of functions.
134221         (_jm_DECL_HEADERS): Add utmpx.h.
134222         From John David Anglin.
134224         * m4/strftime.m4: Back out the 2000-04-02 change.
134225         Instead of that change, simply undefine putenv in the test program.
134227 2000-04-05  Jim Meyering  <meyering@lucent.com>
134229         Portability tweaks required for ultrix4.3.
134230         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
134231         getutent.
134232         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
134233         * lib/canon-host.c: Declare strdup.
134234         * lib/path-concat.c: Likewise.
134235         From John David Anglin.
134237 2000-04-04  Jim Meyering  <meyering@lucent.com>
134239         Be more DOS 8.3-friendly.
134240         * lib/ref-add.sin: Renamed from ref-add.sed.in.
134241         * lib/ref-del.sin: Renamed from ref-del.sed.in.
134242         * lib/Makefile.am: Reflect renaming.
134243         Reported by Eli Zaretskii.
134245         Use a temporary file name that won't clash with `charset.alias'
134246         in the DOS 8.3 name space.
134247         * lib/Makefile.am (charset_tmp): Define.
134248         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
134249         (uninstall-local): Likewise.
134250         Reported by Eli Zaretskii.
134252 2000-04-03  Jim Meyering  <meyering@lucent.com>
134254         * m4/gettext.m4: Fix typo in comment.
134256         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
134257         textutils/configure.in).  Suggestion from Paul Eggert.
134258         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
134260 2000-04-02  Paul Eggert  <eggert@twinsun.com>
134262         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
134263         variable in the shell rather than using putenv, which isn't
134264         portable.  This avoids the configure-time inter-test dependency
134265         on the potentially-renamed putenv function.
134267 2000-03-30  Paul Eggert  <eggert@twinsun.com>
134269         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
134270         before checking struct stat.st_blksize, so that
134271         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
134273 2000-03-29  Paul Eggert  <eggert@twinsun.com>
134275         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
134276         since strftime.c uses HAVE_STRFTIME to decide whether to use
134277         the underlying strftime.
134279 2000-03-29  Paul Eggert  <eggert@twinsun.com>
134281         * lib/time/strftime.c (my_strftime): Make sure we call the system
134282         strftime, not ourselves, when invoking the underlying strftime.
134284 2000-03-24  Jim Meyering  <meyering@lucent.com>
134286         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
134287         (charset_alias): Define.
134288         (install-exec-local): Factor out common code.
134289         (uninstall-local): Split lines longer than 80.
134290         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
134291         (SUFFIXES): Define.
134292         (.sed.in.sed): New rule.  Don't redirect directly to $@.
134293         (CLEANFILES): Add ref-add.sed and ref-del.sed.
134295 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
134297         * lib/config.charset: Output a line containing "Packages using this
134298         file".
134299         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
134300         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
134301         ref-del.sed): New rules.
134303 2000-03-17  Jim Meyering  <meyering@lucent.com>
134305         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
134306         Otherwise, include <strings.h>
134308 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
134310         * lib/unicodeio.c (utf8_wctomb): New function.
134311         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
134312         format instead of in UCS-4 with platform dependent endianness.
134314 2000-03-10  Jim Meyering  <meyering@lucent.com>
134316         * m4/lib-check.m4: Look for getspnam in -lgen, too.
134317         From Marco Franzen.
134319 2000-03-07  Paul Eggert  <eggert@twinsun.com>
134321         * lib/savedir.c (savedir): Work even if directory size is
134322         negative; this can happen with some screwy NFS configurations.
134324 2000-03-06  Jim Meyering  <meyering@lucent.com>
134326         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
134327         if it's NULL (because we ran out of memory).  From Bruno Haible.
134329 2000-03-05  Jim Meyering  <meyering@lucent.com>
134331         * lib/localcharset.c ("path-concat.h"): Include.
134332         (get_charset_aliases): Use path_concat instead of ANSI string
134333         concatenation.
134335         * lib/unicodeio.h (PARAMS): Define.
134336         Use it to guard prototype.
134338 2000-03-04  Jim Meyering  <meyering@lucent.com>
134340         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
134341         for lib/localcharset.c.
134343 2000-03-04  Jim Meyering  <meyering@lucent.com>
134345         * lib/Makefile.am (install-exec-local): Create $(libdir) before
134346         installing into it.
134347         (uninstall-local): Uncomment this rule so `make distcheck' works
134348         once again.
134350         * lib/unicodeio.c (<errno.h>): Include it.
134351         (errno): Declare if not defined.
134353         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
134355         * lib/config.charset: New version, incorporating remarks from a linux
134356         i18n mailing list.  From Bruno Haible.
134358 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
134360         * m4/codeset.m4: New file.
134361         * m4/iconv.m4: New file.
134362         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
134364 2000-03-03  Jim Meyering  <meyering@lucent.com>
134366         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
134368 2000-03-02  Jim Meyering  <meyering@lucent.com>
134370         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
134371         the messages come out on separate lines.
134373         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
134374         rather than jm_CHECK_DECLARATIONS.
134375         * m4/decl.m4: Remove now-unused file.
134377         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
134378         geteuid.
134380 2000-03-02  Jim Meyering  <meyering@lucent.com>
134382         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
134384 2000-03-01  Jim Meyering  <meyering@lucent.com>
134386         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
134387         * lib/unicodeio.c: Likewise.
134389 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
134391         * lib/config.charset: New file.
134392         * lib/localcharset.c: New file.
134393         * lib/unicodeio.h, lib/unicodeio.c: New files.
134394         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
134395         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
134396         (noinst_HEADERS): Add unicodeio.h.
134397         (all-local, install-exec-local, charset.alias): New targets.
134399 2000-02-28  Paul Eggert  <eggert@twinsun.com>
134401         * lib/quotearg.c (ALERT_CHAR): New macro.
134402         (quotearg_buffer_restyled): Use it.
134404 2000-02-27  Jim Meyering  <meyering@lucent.com>
134406         * m4/check-decl.m4: Add getenv to the list.
134408 2000-02-27  Jim Meyering  <meyering@lucent.com>
134410         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
134411         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
134413         * lib/backupfile.c: Guard inclusion of stdlib.h with
134414         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
134415         Declare malloc if needed.
134417         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
134418         `#ifndef HAVE_DECL..'
134419         now that autoconf always defines the HAVE_DECL_ symbols.
134420         * lib/human.c: Likewise.
134421         * lib/same.c: Likewise.
134422         * lib/strtoumax.c: Likewise.
134424         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
134425         declaration check was not run.
134426         * lib/hash.c: Likewise.
134427         * lib/human.c: Likewise.
134428         * lib/same.c: Likewise.
134429         * lib/strtoumax.c: Likewise.
134431         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
134432         `.', then first look up the entire `.'-containing string as a login
134433         name.
134435 2000-02-23  Jim Meyering  <meyering@lucent.com>
134437         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
134438         in place of my hack.
134440 2000-02-18  Paul Eggert  <eggert@twinsun.com>
134442         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
134443         (textint): New typedef.
134444         (parser_control): Member year changed from int to textint.
134445         All uses changed.
134446         (YYSTYPE): Removed; replaced by %union with int and textint members.
134447         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
134448         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
134449         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
134450         (tSNUMBER, tUNUMBER): Now of type <textintval>.
134451         (date, number, to_year): Use width of number in digits, not its value,
134452         to determine whether it's a 2-digit year, or a 2-digit time.
134453         (yylex): Store number of digits of numeric tokens.
134454         Reported by John Kendall.
134456         (parser_control): Changed from struct parser_control to typedef (for
134457         consistency).  All uses changed.
134459         (tID): Removed; not used.
134460         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
134462 2000-02-14  Paul Eggert  <eggert@twinsun.com>
134464         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
134465         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
134467 2000-02-12  Jim Meyering  <meyering@lucent.com>
134469         * lib/userspec.c (ISDIGIT): Define it.
134470         (isdigit): Remove definition.
134471         (is_number): Use ISDIGIT, not isdigit.
134472         <libintl.h>: Include.
134473         (_ and N_): Define.
134474         (parse_user_spec): Mark translatable strings.
134476 2000-02-10  Jim Meyering  <meyering@lucent.com>
134478         With these changes, nanosleep.[ch] are finally enough like the other
134479         lib/* replacement files to compile on a few more losing systems.
134481         * lib/nanosleep.h: Don't include config.h.
134482         Remove prototype from declaration of nanosleep.
134483         (PARAMS): Remove now-unneeded definition.
134484         * lib/nanosleep.c: #undef nanosleep.
134485         (rpl_nanosleep): Rename from nanosleep.
134487 2000-02-10  Jim Meyering  <meyering@lucent.com>
134489         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
134490         gnu_nanosleep to rpl_nanosleep.
134492 2000-02-09  Jim Meyering  <meyering@lucent.com>
134494         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
134495         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
134497 2000-02-08  Akim Demaille  <akim@epita.fr>
134499         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
134500         `[' and `]' and remove uses of `changequote'.
134501         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
134502         (AC_SYS_LARGEFILE): Likewise.
134503         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
134504         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
134505         of changequote.
134506         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
134507         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
134508         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
134509         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
134511 2000-02-05  Jim Meyering  <meyering@lucent.com>
134513         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
134514         Remove explicit use of AC_HEADER_TIME.  It is required by
134515         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
134516         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
134517         in autoconf whereby the expansion of the latter ended up preceding
134518         the expansion of its prerequisite, AC_HEADER_TIME.
134519         Reported by Volker Borchert.
134521 2000-02-03  Jim Meyering  <meyering@lucent.com>
134523         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
134525 2000-02-03  Jim Meyering  <meyering@lucent.com>
134527         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
134528         rather than with `#if HAVE_UTMPNAME'.
134530 2000-02-02  Jim Meyering  <meyering@lucent.com>
134532         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
134533         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
134534         Reported by Eli Zaretskii.
134536 2000-02-01  Jim Meyering  <meyering@lucent.com>
134538         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
134540 2000-01-31  Jim Meyering  <meyering@lucent.com>
134542         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
134543         functions.  Add the time.h and sys/time.h headers along with the
134544         AC_REQUIRE'ment of AC_HEADER_TIME.
134546 2000-01-31  Jim Meyering  <meyering@lucent.com>
134548         * lib/nanosleep.h (nanosleep): Guard declaration with
134549         `#if ! HAVE_DECL_NANOSLEEP'.
134550         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
134551         the declaration in that vendor's sys/timers.h.
134552         Reported by Christian Krackowizer.
134554         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
134555         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
134556         (ISPRINT): Likewise.
134557         Reported by Tom Tromey.
134559 2000-01-30  Jim Meyering  <meyering@lucent.com>
134561         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
134563         * m4/prereq.m4 (utmp_includes): Define.
134564         Check for ut_user and ut_name members in both struct utmpx
134565         and struct utmp.
134567 2000-01-30  Jim Meyering  <meyering@lucent.com>
134569         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
134570         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
134571         header files where only utmpx.ut_user is declared.
134573         * lib/readutmp.h (UT_USER): Define.
134575 2000-01-29  Jim Meyering  <meyering@lucent.com>
134577         * m4/lib-check.m4: New file containing library-related checks from
134578         fileutils and sh-utils (textutils had none).
134580 2000-01-28  Jim Meyering  <meyering@lucent.com>
134582         * m4/perl.m4: Change format of warning message to look more like that
134583         from the missing script.  Suggestion from François Pinard.
134585 2000-01-25  Jim Meyering  <meyering@lucent.com>
134587         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
134588         well as time.h in the compile check.
134589         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
134590         Fix typo in cross-compiling case: s/yes/no/.
134592 2000-01-23  Jim Meyering  <meyering@lucent.com>
134594         * m4/jm-macros.m4: Move df-related tests here from
134595         fileutils/configure.in
134597         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
134598         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
134600         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
134601         s/space/ac_fsusage_space/.
134602         (jm_FILE_SYSTEM_USAGE): Take two parameters.
134604         * m4/ftruncate.m4: New file (derived from part of
134605         fileutils/configure.in).
134606         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
134607         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
134609         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
134610         AC_SUBST these here, rather than just in sh-util/configure.in, so
134611         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
134612         all the same.
134613         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
134614         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
134615         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
134616         (AC_SUBST(POW_LIBM)): Likewise.
134617         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
134619 2000-01-23  Jim Meyering  <meyering@lucent.com>
134621         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
134622         obstack.c.
134624 2000-01-22  Jim Meyering  <meyering@lucent.com>
134626         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
134628         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
134630         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
134631         configure.in
134632         (AC_CHECK_HEADERS): Likewise for sh-utils.
134633         (AC_CHECK_HEADERS): Likewise for textutils.
134634         Merge the three lists of headers.
134636         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
134637         from fileutils' configure.in.
134639         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
134640         code. Moved tests into their own function (_jm_DECL_HEADERS) in
134641         check-decl.m4.
134643         * m4/check-decl.m4: Use #if rather than #ifdef.
134644         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
134645         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
134646         (_jm_DECL_HEADERS): Define new function.
134647         (jm_CHECK_DECLARATIONS): Require it.
134649 2000-01-22  Jim Meyering  <meyering@lucent.com>
134651         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
134652         [! HAVE_DECL_STRTOULL]: Declare strtoull.
134653         Required for some AIX systems.  Reported by Christian Krackowizer.
134654         [TESTING] (main): New function.
134656         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
134657         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
134658         letters.
134660         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
134661         iswprint.
134663         * lib/strverscmp.c (ISDIGIT): Define.
134664         (strverscmp): Use ISDIGIT, not isdigit.
134666 2000-01-19  Jim Meyering  <meyering@lucent.com>
134668         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
134669         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
134670         defines `struct timespec' in <sys/time.h>
134672         * m4/c-bs-a.m4: Remove uses of changequote altogether.
134673         Thanks to Akim for explaining.
134675 2000-01-17  Paul Eggert  <eggert@twinsun.com>
134677         * lib/nanosleep.c (nanosleep):
134678         Don't use SA_INTERRUPT to decide whether to call sigaction, as
134679         POSIX.1 doesn't require SA_INTERRUPT and some systems
134680         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
134681         it's been part of POSIX.1 since day 1 (in 1988).
134683 2000-01-17  Jim Meyering  <meyering@lucent.com>
134685         * lib/interlock: Remove unused file.  Reported by François Pinard.
134687 2000-01-16  Paul Eggert  <eggert@twinsun.com>
134689         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
134690         alert, backslash, formfeed, and vertical tab unnecessarily in
134691         shell quoting style.
134693 2000-01-16  Jim Meyering  <meyering@lucent.com>
134695         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
134696         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
134697         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
134698         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
134700 2000-01-16  Jim Meyering  <meyering@lucent.com>
134702         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
134703         because the latter didn't work.
134705 2000-01-15  Jim Meyering  <meyering@lucent.com>
134707         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
134708         (AC_REPLACE_FUNCS): Add memcpy and memset.
134709         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
134710         Add strpbrk.
134711         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
134713 2000-01-12  Jim Meyering  <meyering@lucent.com>
134715         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
134716         (jm_PREREQ): Use it.
134717         (jm_PREREQ_READUTMP): New macro.
134718         (jm_PREREQ): Use it.
134720 2000-01-11  Paul Eggert  <eggert@twinsun.com>
134722         Quote multibyte characters correctly.
134723         * m4/c-bs-a.m4: New file.
134724         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
134725         (jm_PREREQ): Use it.
134727 2000-01-11  Paul Eggert  <eggert@twinsun.com>
134729         * m4/uintmax_t.m4: Port to autoconf 2.13.
134731 2000-01-08  Jim Meyering  <meyering@ascend.com>
134733         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
134734         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
134736 2000-01-04  Jim Meyering  <meyering@ascend.com>
134738         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
134739         jm_STRUCT_DIRENT_D_TYPE.
134740         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
134741         jm_STRUCT_DIRENT_D_INO.
134742         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
134743         jm_STRUCT_UTIMBUF.
134744         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
134745         renamings.
134746         * m4/utime.m4: Likewise.
134748         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
134749         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
134751 2000-01-03  Paul Eggert  <eggert@twinsun.com>
134753         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
134754         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
134756 2000-01-02  Jim Meyering  <meyering@ascend.com>
134758         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
134759         remember if this is necessary.
134761 1999-12-26  Jim Meyering  <meyering@ascend.com>
134763         * m4/jm-macros.m4: Use it here.
134764         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
134766 1999-12-23  Jim Meyering  <meyering@ascend.com>
134768         * m4/jm-macros.m4: Check for clock_gettime (moved from
134769         fileutils/configure.in)
134770         Check for gettimeofday.
134772 1999-12-20  Jim Meyering  <meyering@ascend.com>
134774         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
134775         autoconf-2.14a-1999-12-20.
134777 1999-12-19  Jim Meyering  <meyering@ascend.com>
134779         * m4/lstat-slash.m4: New file.
134780         * m4/jm-macros.m4: Use the new macro:
134781         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
134783 1999-12-07  Jim Meyering  <meyering@ascend.com>
134785         * m4/perl.m4: Require that File::Compare be available, too.
134786         Too many systems seem to lack it.
134788         * m4/strftime.m4: Add checks for most of the cpp macros tested in
134789         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
134791 1999-11-18  Paul Eggert  <eggert@twinsun.com>
134793         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
134794         problem with the QNX 4.25 shell, which doesn't propagate exit
134795         status of failed commands inside shell assignments.
134797 1999-11-17  Jim Meyering  <meyering@ascend.com>
134799         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
134801 1999-11-07  Jim Meyering  <meyering@ascend.com>
134803         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
134805 1999-11-06  Jim Meyering  <meyering@ascend.com>
134807         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
134808         * m4/jm-macros.m4 (jm_MACROS): Use it here.
134810 1999-11-05  Jim Meyering  <meyering@ascend.com>
134812         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
134813         configure.in of textutils, fileutils, and sh-utils into this one
134814         (shared between those packages) file.
134815         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
134816         AC_STRUCT_ST_BLKSIZE.
134818 1999-11-03  Jim Meyering  <meyering@ascend.com>
134820         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
134821         of AC_CHECK_TYPE checks includes unistd.h.
134822         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
134823         Suggestion from Akim Demaille.
134825 1999-10-30  Jim Meyering  <meyering@ascend.com>
134827         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
134828         m4-quoted string.
134829         * m4/ls-mntd-fs.m4: Likewise.
134830         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
134831         * m4/jm-winsz1.m4: Likewise.
134833         * m4/const.m4: Remove file, since the fix made it into the experimental
134834         version of autoconf.
134835         * m4/mktime.m4: Likewise.
134837         * m4/check-type.m4: Remove file, now that the latest version of
134838         AC_CHECK_TYPE takes a third arg to specify additional #includes.
134840         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
134841         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
134842         AC_CHECK_TYPE.
134844 1999-10-04  Jim Meyering  <meyering@ascend.com>
134846         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
134848 1999-09-22  Paul Eggert  <eggert@twinsun.com>
134850         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
134851         2.95.1 bug with HP-UX 10.20.
134853 1999-09-17  Jim Meyering  <meyering@ascend.com>
134855         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
134856         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
134857         due to missing strdup (against sh-utils-2.0).
134859 1999-08-29  Jim Meyering  <meyering@ascend.com>
134861         * m4/jm-macros.m4: Require jm_BISON.
134862         * m4/bison.m4: New file.
134864 1999-08-17  Paul Eggert  <eggert@twinsun.com>
134866         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
134867         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
134869 1999-08-05  Jim Meyering  <meyering@ascend.com>
134871         * m4/getline.m4: Rename test file from conftestdata to conftest.data
134872         to avoid conflicts with `conftest' on 8+3 filesystems.
134873         Suggestion from Eli Zaretskii.
134875 1999-08-04  Jim Meyering  <meyering@ascend.com>
134877         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
134878         fileutils and sh-utils (textutils's getline test was inadequate).
134879         (AM_FUNC_GETLINE): Run this test.
134880         (AC_CHECK_FUNCS): Check for getdelim.
134881         Reported by Bob Proulx.
134883 1999-08-02  Jim Meyering  <meyering@ascend.com>
134885         * m4/jm-macros.m4: Add a comment.
134887 1999-08-01  Paul Eggert  <eggert@twinsun.com>
134889         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
134890         <inttypes.h> defines strtoumax as a macro (and not as a
134891         function).
134893 1999-08-01  Paul Eggert  <eggert@twinsun.com>
134895         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
134896         that we can shift, multiply and divide unsigned long long
134897         values; Ultrix cc can't do it.
134899 1999-08-01  Paul Eggert  <eggert@twinsun.com>
134901         * m4/mktime.m4: New file, which is a preview of what should appear
134902         in the next public autoconf release.
134904 1999-08-01  Paul Eggert  <eggert@twinsun.com>
134906         * m4/lfs.m4: Remove this file.
134907         * m4/largefile.m4: New file.  It contains the old contents of
134908         lfs.m4, except that all names with prefix AC_LFS have been
134909         changed to use the prefix AC_SYS_LARGEFILE instead, to be
134910         compatible with future autoconf versions.  Also, some minor m4
134911         quoting problems have been fixed.
134913 1999-08-01  Paul Eggert  <eggert@twinsun.com>
134915         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
134916         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
134917         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
134918         and simplify the shell code.
134920 1999-08-01  Jim Meyering  <meyering@ascend.com>
134922         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
134923         m4.
134925 1999-07-20  Jim Meyering  <meyering@ascend.com>
134927         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
134929 1999-07-15  Jim Meyering  <meyering@ascend.com>
134931         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
134933 1999-05-22  Jim Meyering  <meyering@ascend.com>
134935         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
134937 1999-05-20  Jim Meyering  <meyering@ascend.com>
134939         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
134940         Add a colon after each `then' in case $4 is empty.
134942 1999-05-16  Jim Meyering  <meyering@ascend.com>
134944         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
134946 1999-05-10  Jim Meyering  <meyering@ascend.com>
134948         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
134950         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
134951         AC_FUNC_MKTIME.
134953 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
134955         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
134957 1999-05-04  Paul Eggert  <eggert@twinsun.com>
134959         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
134960         not CPPFLAGS, so that linking works correctly in IRIX.
134962 1999-04-30  Paul Eggert  <eggert@twinsun.com>
134964         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
134966 1999-04-20  Paul Eggert  <eggert@twinsun.com>
134968         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
134969         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
134970         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
134971         jm_AC_TYPE_UNSIGNED_LONG_LONG.
134972         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
134974         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
134976 1999-04-20  Jim Meyering  <meyering@ascend.com>
134978         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
134979         AC_REPLACE xstroull if necessary.  From Paul Eggert.
134980         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
134982 1999-04-18  Jim Meyering  <meyering@ascend.com>
134984         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
134985         * m4/jm-macros.m4: Use it.
134987 1999-04-06  Jim Meyering  <meyering@ascend.com>
134989         * m4/strftime.m4: Remove test for %f.
134991 1999-03-29  Jim Meyering  <meyering@ascend.com>
134993         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
134994         superset of the AC_TYPE_* checks in the textutils, fileutils,
134995         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
134996         AC_TYPE_PID_T.
134998 1999-03-28  Jim Meyering  <meyering@ascend.com>
135000         * m4/jm-macros.m4: Define GNU_PACKAGE here.
135001         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
135002         replaced e.g., in the *.sh files of the sh-utils.
135004 1999-03-20  Jim Meyering  <meyering@ascend.com>
135006         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
135007         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
135008         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
135010 1999-03-19  Jim Meyering  <meyering@ascend.com>
135012         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
135014 1999-03-12  Jim Meyering  <meyering@ascend.com>
135016         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
135018 1999-03-07  Jim Meyering  <meyering@ascend.com>
135020         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
135021         declared.
135023 1999-02-17  Jim Meyering  <meyering@ascend.com>
135025         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
135026         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
135028 1999-02-07  Jim Meyering  <meyering@ascend.com>
135030         * m4/group-member.m4: New file -- extracted from sh-utils'
135031         configure.in.
135033         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
135034         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
135036 1999-02-06  Jim Meyering  <meyering@ascend.com>
135038         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
135039         * m4/fnmatch.m4: Likewise.
135040         * m4/getgroups.m4: Likewise.
135041         * m4/lstat.m4: Likewise.
135042         * m4/malloc.m4: Likewise.
135043         * m4/putenv.m4: Likewise.
135044         * m4/realloc.m4: Likewise.
135045         * m4/regex.m4: Likewise.
135046         * m4/stat.m4: Likewise.
135047         * m4/strftime.m4: Likewise.
135048         Suggestion from Alain Magloire.
135050         * m4/chown.m4: Use `.$ac_objext', not `.o'.
135051         * m4/fnmatch.m4: Likewise.
135052         * m4/getgroups.m4: Likewise.
135053         * m4/getline.m4: Likewise.
135054         * m4/lstat.m4: Likewise.
135055         * m4/malloc.m4: Likewise.
135056         * m4/memcmp.m4: Likewise.
135057         * m4/putenv.m4: Likewise.
135058         * m4/realloc.m4: Likewise.
135059         * m4/regex.m4: Likewise.
135060         * m4/stat.m4: Likewise.
135061         * m4/strftime.m4: Likewise.
135062         Suggestion from Alain Magloire.
135064         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
135065         an argument.
135067         * m4/regex.m4: Add a run-time Test for proper operation of
135068         re_compile_pattern.
135070 1999-01-31  Jim Meyering  <meyering@ascend.com>
135072         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
135074 1999-01-30  Jim Meyering  <meyering@ascend.com>
135076         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
135078         * m4/jm-mktime.m4: Make this a wrapper around the official
135079         AM_FUNC_MKTIME rather than my private copy, now that the official one
135080         is up to date.
135081         * m4/mktime.m4: Remove file.
135083         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
135084         * m4/uptime.m4: Likewise.
135085         * m4/uintmax_t.m4: Likewise.
135087 1999-01-28  Jim Meyering  <meyering@ascend.com>
135089         * m4/jm-macros.m4: Use jm_AFS.
135090         * m4/afs.m4: New file (from fileutils' configure.in).
135092         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
135093         * m4/chown.m4: Likewise.
135094         * m4/d-ino.m4: Likewise.
135095         * m4/d-type.m4: Likewise.
135096         * m4/fnmatch.m4: Likewise.
135097         * m4/getgroups.m4: Likewise.
135098         * m4/gettext.m4: Likewise.
135099         * m4/jm-mktime.m4: Likewise.
135100         * m4/jm-winsz2.m4: Likewise.
135101         * m4/lcmessage.m4: Likewise.
135102         * m4/ls-mntd-fs.m4: Likewise.
135103         * m4/malloc.m4: Likewise.
135104         * m4/memcmp.m4: Likewise.
135105         * m4/putenv.m4: Likewise.
135106         * m4/realloc.m4: Likewise.
135107         * m4/st_mtim.m4: Likewise.
135108         * m4/strftime.m4: Likewise.
135110 1999-01-16  Jim Meyering  <meyering@ascend.com>
135112         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
135113         (ARGMATCH_DIE_DECL): Define.
135115 1999-01-12  Jim Meyering  <meyering@ascend.com>
135117         * m4/Makefile.am.in: Rewrite to avoid using fmt.
135118         Reported by Lars Hecking.
135120 1999-01-10  Jim Meyering  <meyering@ascend.com>
135122         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
135123         gross kludge.
135124         * m4/inttypes_h.m4: Likewise.
135125         * m4/lstat.m4: Likewise.
135126         * m4/malloc.m4: Likewise.
135127         * m4/readdir.m4: Likewise.
135128         * m4/realloc.m4: Likewise.
135129         * m4/st_dm_mode.m4: Likewise.
135130         * m4/stat.m4: Likewise.
135131         * m4/utimbuf.m4: Likewise.
135132         * m4/utimes.m4: Likewise.
135134         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
135135         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
135136         comments in config.h.in are meaningful.
135138         * m4/jm-macros.m4: Require autoconf-2.13 here.
135140         * m4/regex.m4: By default, don't use the included regex.c on systems
135141         with glibc 2.  Suggestion from Uli Drepper.
135143 1999-01-02  Jim Meyering  <meyering@ascend.com>
135145         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
135147 1998-12-18  Jim Meyering  <meyering@ascend.com>
135149         * m4/Makefile.am.in (Makefile.am): Simplify rule.
135150         Based on a suggestion from Lars Hecking.
135152 1998-11-16  Paul Eggert  <eggert@twinsun.com>
135154         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
135156 1998-11-16  Jim Meyering  <meyering@ascend.com>
135158         * m4/lfs.m4: Double-quote the `uname...` expression.
135160 1998-11-14  Jim Meyering  <meyering@ascend.com>
135162         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
135163         * m4/stat.m4: Likewise.
135165 1998-11-03  Jim Meyering  <meyering@ascend.com>
135167         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
135168         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
135170 1998-10-18  Jim Meyering  <meyering@ascend.com>
135172         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
135174 1998-10-17  Jim Meyering  <meyering@ascend.com>
135176         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
135177         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
135178         calls for those previously hard-coded headers.  Instead, take a new
135179         parameter.
135180         (jm_CHECK_DECLARATIONS): Reflect interface change.
135181         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
135182         (jm_CHECK_DECL_LOCALTIME_R): New macro.
135184         * m4/mktime.m4: Test for spring-forward gap before long-running test.
135186 1998-10-14  Jim Meyering  <meyering@ascend.com>
135188         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
135189         instead of "TZ=America/Vancouver".  From Paul Eggert.
135191 1998-10-11  Jim Meyering  <meyering@ascend.com>
135193         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
135194         This adds a test for a recently added compatibility fix for mktime.c.
135195         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
135197 1998-09-27  Jim Meyering  <meyering@ascend.com>
135199         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
135201         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
135202         ../configure.in, including a change from Gordon Matzigkeit to allow
135203         cross-compiling for the Hurd.
135205         * m4/glibc.m4: New file/macro to test for the GNU C Library
135206         versions 1 and 2.  From Gordon Matzigkeit.
135207         Indent.
135209 1998-09-21  Jim Meyering  <meyering@ascend.com>
135211         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
135213 1998-08-18  Paul Eggert  <eggert@twinsun.com>
135215         Port nanosecond-resolution times to UnixWare 2.1.2 and
135216         pedantic Solaris 2.6.
135218         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
135219         AC_STRUCT_ST_MTIM.
135220         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
135221         Generate name of ns member, instead of just 1 or undef.
135222         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
135224 1998-08-15  Jim Meyering  <meyering@ascend.com>
135226         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
135227         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
135228         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
135229         instead of jm_TYPE_SSIZE_T.
135231 1998-08-12  Jim Meyering  <meyering@ascend.com>
135233         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
135235 1998-08-02  Jim Meyering  <meyering@ascend.com>
135237         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
135238         in acconfig.h manually.
135240 1998-07-31  Paul Eggert  <eggert@twinsun.com>
135242         * m4/st_mtim.m4: New file.
135244 1998-07-28  Jim Meyering  <meyering@ascend.com>
135246         * m4/utimes.m4: Undef stat.
135248 1998-07-25  Jim Meyering  <meyering@ascend.com>
135250         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
135251         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
135253 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
135255         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
135256         uid and gid actually remain unchanged.
135258 1998-07-07  Jim Meyering  <meyering@ascend.com>
135260         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
135262 1998-07-04  Jim Meyering  <meyering@ascend.com>
135264         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
135265         to prove that this macro can be used in packages without regex.c.
135267 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
135269         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
135270         is to be used.
135272 1998-07-03  Jim Meyering  <meyering@ascend.com>
135274         * m4/gettext.m4: Add -lintl if it's found to be necessary.
135276         * m4/gettext.m4: New file -- from gettext-0.10.35.
135277         * m4/lcmessage.m4: Likewise.
135278         * m4/progtest.m4: Likewise.
135280         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
135281         * m4/jm-macros.m4: Require the new macro.
135283 1998-06-29  Jim Meyering  <meyering@ascend.com>
135285         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
135286         for the definition of NGROUPS (used in a system header included
135287         by sys/mount.h).
135289 1998-06-28  Jim Meyering  <meyering@ascend.com>
135291         * m4/ls-mntd-fs.m4: New file.
135292         * m4/fstypename.m4: New file.
135294         * m4/jm-macros.m4: Require the new macro.
135295         * m4/jm-glibc-io.m4: New file.
135297 1998-05-19  Jim Meyering  <meyering@ascend.com>
135299         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
135300         * m4/lchown.m4: New file.
135302         * m4/Makefile.am.in: New file.
135303         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
135305 1998-05-14  Jim Meyering  <meyering@ascend.com>
135307         * m4/Makefile.am (EXTRA_DIST): Add them.
135308         * m4/jm-macros.m4: New file.
135309         * m4/utimbuf.m4: New file.
135311 1998-05-12  Jim Meyering  <meyering@ascend.com>
135313         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
135315 1998-05-11  Jim Meyering  <meyering@ascend.com>
135317         * m4/isc-posix.m4: New file.
135319 1998-05-10  Jim Meyering  <meyering@ascend.com>
135321         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
135323 1998-05-09  Jim Meyering  <meyering@ascend.com>
135325         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
135326         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
135327         with automake.
135329         * m4/ssize_t.m4: New file.
135330         * m4/mktime.m4: Remove file -- the new automake has this now.
135332 1998-04-26  Jim Meyering  <meyering@ascend.com>
135334         * m4/assert.m4: New file.
135335         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
135337 1998-04-05  Jim Meyering  <meyering@ascend.com>
135339         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
135340         (jm_PREREQ): Use it here.
135342 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
135344         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
135345         in acconfig.h.
135347 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
135349         * m4/prereq.m4: New file.
135350         * m4/error.m4: New file.
135351         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
135353 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
135355         * m4/getline.m4: Don't set am_cv_func_working_getline before the
135356         cache-check for the same variable -- that defeated the purpose of
135357         the test; the test program was never run.  This was a problem only
135358         on systems with losing getline functions -- HP-UX 10.20 is one.
135359         Reported by Bjorn Helgaas.
135361 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
135363         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
135365 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
135367         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
135369         * m4/const.m4: New file.  Use an initializer in this declaration
135370         typedef int charset[2]; const charset x;
135371         Reported by Bob Glickstein.
135373 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
135375         * m4/chown.m4: Fix reversed types on -1 args to chown.
135376         From Kaveh Ghazi.
135378 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
135380         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
135381         Add lseek and memchr.
135383         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
135384         T.E.Dickey <dickey@clark.net> said that some older preprocessors
135385         have a 20-character limit on names.
135387 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
135389         * m4/inttypes_h.m4: New file.
135390         * m4/uintmax_t.m4: New file.
135391         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
135394         -----
135396         Local Variables:
135397         coding: utf-8
135398         End:
135400         Copyright (C) 1997-2021 Free Software Foundation, Inc.
135402         Copying and distribution of this file, with or without
135403         modification, are permitted provided the copyright notice
135404         and this notice are preserved.